Commit Graph

131 Commits

Author SHA1 Message Date
Rijk van Zanten
b3bbc1ef9a Add preset info sections (#705) 2020-06-11 13:25:22 -04:00
rijkvanzanten
ad4906b720 Squashed commit of the following:
commit aa2876a64653f3cca2f35e513fdd1c370da14438
Merge: ee219e87 fd5ccb5e
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Jun 11 11:39:49 2020 -0400

    Merge branch 'master' into tweaks

commit ee219e872b4b41f3e0673dc673c8bb643e5f5f20
Merge: bf3dca79 16cb51de
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Jun 11 11:39:34 2020 -0400

    Merge branch 'master' into tweaks

commit bf3dca7906f031fea771c3a20c0529782416056d
Merge: 1e114c0b 51c59cda
Author: Ben Haynes <ben@rngr.org>
Date:   Thu Jun 11 10:59:51 2020 -0400

    Merge branch 'master' into tweaks

commit 1e114c0b5660a25574c3a0551fc4e87261d45e20
Author: Ben Haynes <ben@rngr.org>
Date:   Thu Jun 11 10:59:25 2020 -0400

    preset field styling

commit 43f3fbc98a68b6898294ed4c68a6240c1f8a72e8
Author: Ben Haynes <ben@rngr.org>
Date:   Thu Jun 11 10:58:56 2020 -0400

    differentiate nested repeaters

commit 6a4d9c9df64efd9161ce862d8b29c3be04dc90cb
Author: Ben Haynes <ben@rngr.org>
Date:   Thu Jun 11 10:58:27 2020 -0400

    repeater sizing

commit ec136f0d3b1314f941afaeade6458b36266634fc
Author: Ben Haynes <ben@rngr.org>
Date:   Wed Jun 10 19:37:25 2020 -0400

    checkbox contract and hover styling

commit 0118c0c76f7a650d567965accea972e68336e1d7
Author: Ben Haynes <ben@rngr.org>
Date:   Wed Jun 10 19:36:32 2020 -0400

    increase repeater item edge contrast

commit dc852c4e78989dc421c61b71f13058add86077f3
Author: Ben Haynes <ben@rngr.org>
Date:   Wed Jun 10 19:13:54 2020 -0400

    fix repeater field spacing

commit 23da947ad5f1b84127411f6b9e271414140348a3
Author: Ben Haynes <ben@rngr.org>
Date:   Wed Jun 10 19:13:42 2020 -0400

    no “editing” on role title

commit d84eaa7f3a8ec2a25d67514d5507a46e24521a6a
Merge: 0f512448 79f1f13a
Author: Ben Haynes <ben@rngr.org>
Date:   Wed Jun 10 18:29:01 2020 -0400

    Merge branch 'master' into tweaks

commit 0f512448b76ab2c53f1a9059e2a130d52cc52b60
Merge: 7974bd2a 0c5b0a6f
Author: Ben Haynes <ben@rngr.org>
Date:   Wed Jun 10 16:18:01 2020 -0400

    Merge branch 'master' into tweaks

commit 7974bd2a81e2be5b4a2e1b24bf3ede017562bcf8
Author: Ben Haynes <ben@rngr.org>
Date:   Wed Jun 10 16:17:30 2020 -0400

    project settings link to docs

commit de46007be6eb5ff59332571b7c18caaba4ed815c
Author: Ben Haynes <ben@rngr.org>
Date:   Wed Jun 10 14:50:05 2020 -0400

    use new folder_move icon

commit 0ac93d84f0f577d6cedda9a7498dd4caa3064fc9
Author: Ben Haynes <ben@rngr.org>
Date:   Wed Jun 10 14:49:46 2020 -0400

    add custom “folder move” icon

commit dd057f0c6fda81b5c1aa696f893c8e2e53d83ed7
Merge: 4034025c 51b939be
Author: Ben Haynes <ben@rngr.org>
Date:   Wed Jun 10 14:36:19 2020 -0400

    Merge branch 'master' into tweaks

commit 4034025cb3577def69f4540d1160c8be23b98c4a
Author: Ben Haynes <ben@rngr.org>
Date:   Wed Jun 10 14:35:32 2020 -0400

    more room for revision text

commit c840e622db5d83db02ff279736eb9bc5c0fcd98d
Author: Ben Haynes <ben@rngr.org>
Date:   Wed Jun 10 14:35:15 2020 -0400

    fix revision header layering

commit 3e5804a9fc6db0f7c7b5e35a4f6ea9f0aae563b5
Author: Ben Haynes <ben@rngr.org>
Date:   Wed Jun 10 14:34:50 2020 -0400

    hide user box when new

commit 485bc26f887198f0726e62efb71c94c9140eccaf
Author: Ben Haynes <ben@rngr.org>
Date:   Wed Jun 10 13:44:49 2020 -0400

    fix select all/none on cards

commit bdc3615fbbe9ab29b5a132eeda1e2ced6aece4b7
Author: Ben Haynes <ben@rngr.org>
Date:   Wed Jun 10 13:44:27 2020 -0400

    only show divider if there are other revisions

commit 1bdb9644be621adbd6edca1d9ce49825518c02a0
Merge: dfd006a5 aa23da68
Author: Ben Haynes <ben@rngr.org>
Date:   Wed Jun 10 10:39:56 2020 -0400

    Merge branch 'master' into tweaks

commit dfd006a57f9a72718a4adcd6528bb45206542ea2
Merge: 01100fea e2e86957
Author: Ben Haynes <ben@rngr.org>
Date:   Tue Jun 9 18:20:08 2020 -0400

    Merge branch 'master' into tweaks

commit 01100fead3ef23fcb6b447544f17cb08e49e0d7a
Merge: 809e7900 945a19ca
Author: Ben Haynes <ben@rngr.org>
Date:   Tue Jun 9 18:06:04 2020 -0400

    Merge branch 'master' of https://github.com/directus/app-next into tweaks

commit 809e7900b8b5e04e389c61b78daa8c0237ce17d9
Merge: 84e484b1 b4491602
Author: Ben Haynes <ben@rngr.org>
Date:   Tue Jun 9 17:15:07 2020 -0400

    Merge branch 'master' into tweaks

commit 84e484b163db2b055e07c8e08a9bfbe09d3df20a
Author: Ben Haynes <ben@rngr.org>
Date:   Mon Jun 8 18:58:28 2020 -0400

    fix missing card hover shadow
2020-06-11 11:40:39 -04:00
rijkvanzanten
e2e86957eb Add missing immediate 2020-06-09 18:16:32 -04:00
rijkvanzanten
5382afab19 Extract content padding into two separate vars 2020-06-09 13:02:22 -04:00
dependabot-preview[bot]
08b3310029 Bump @vue/composition-api from 0.5.0 to 0.6.1 (#683)
* Bump @vue/composition-api from 0.5.0 to 0.6.1

Bumps [@vue/composition-api](https://github.com/vuejs/composition-api) from 0.5.0 to 0.6.1.
- [Release notes](https://github.com/vuejs/composition-api/releases)
- [Changelog](https://github.com/vuejs/composition-api/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vuejs/composition-api/compare/v0.5.0...v0.6.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Support composition api 0.6+

* Remove failing tests

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-06-08 18:17:58 -04:00
Rijk van Zanten
df3f6edf83 Many to Many (#675)
* Start on files inteface

* Return related m2m relation in store

* Add useRelations to files

* Fetch current items in files

* Allow dot notation in table row

* Render tableHeaders

* Add file display

* Register file display

* Remove unused css

* Rough in select modal

* Start on saving selected items

* Finish selecting existing item

* Auto fix line width of file display

* Rename var to be clearer

* Rework to allow editing junctino row

* Add support for junction fields in modal detail

* Stage changes to existing items correctly

* Show previously made edits in modal detail

* Blammo bunch of changes, lets do m2m first

* Stage newly created items

* Stage newly created items

* Add editing of newly added records

* Stage new edits of existing items

* Allow updating existing rows

* Stage selection of newly selected items

* Add fetching preview for related item

* Allow for updating staged selected existing items

* Fix nested m2o in m2m

* Finish deep fetch of multi-related item

* Finish deselecting of rows

* Add a little note to future self
2020-06-04 18:28:12 -04:00
Jacob Rienstra
90d01a5ed6 Fixes (#665)
* search input colors

* import tinymce icons
2020-06-04 14:49:12 -04:00
Ben Haynes
c38e167069 Tweaks (#659)
* user component styling

* badge alignment

* selected checkbox label color

* add commit node custom icon

* fix translation key

* cleaner badge centering

* clean up last comment spacing

* style cleanup, badges for revision/comment count

* button styling

* fix tags styling

this supercedes the fix by jacob

* divider icon positioning

* correct help text

* remove docs module

* updated help text and other tweaks

* WIP: add heading and subheading to all modals

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2020-06-04 14:27:19 -04:00
Rijk van Zanten
4c2f5dc2ba Change print width to 120 (#671)
* Increase line-width to 120

* Auto-fix 100->120 columns
2020-06-01 16:50:08 -04:00
Rijk van Zanten
d463460548 Leave navigation guard (#633)
* Add leave navigation guard to collections module

* Add leave guard to users module

* Add leave navigation guard to file detail
2020-05-26 14:10:18 -04:00
Rijk van Zanten
b01e1b0ce6 Use system revert endpoint (#632) 2020-05-26 11:23:44 -04:00
Ben Haynes
3e5a9fe7c4 user component styling (#617)
* user component styling

* badge alignment

* selected checkbox label color

* add commit node custom icon

* fix translation key

* cleaner badge centering

* clean up last comment spacing

* style cleanup, badges for revision/comment count

* button styling

* Update src/modules/settings/routes/data-model/fields/components/fields-management/fields-management.vue

* Update src/modules/settings/routes/data-model/fields/components/fields-management/fields-management.vue

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2020-05-26 11:10:13 -04:00
Ben Haynes
ebd78f86fc Tweaks (#615)
* checkbox inactive styling

* fix options

* fix translation

* dropdown placeholder default

* cleanup text input options

* roles layout setup

* add placeholder option to dropdown

* add translations

* info on global settings

* elipses after placeholders

* update to bytes for better formatting control

* clean up mime type displays

* new template formatting

* WIP info and help sidebar

* add support for svgs

* user popover styling

* have un-styled logo spinner feel centered

* consistent missing avatar colors

* fix asset url

* add info drawers

* initial help drawer

* WIP add help components to all pages

* Remove non-existing trim

* Fix file interface deselect

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2020-05-22 18:19:33 -04:00
Rijk van Zanten
085f6dc581 Module collections override (#614)
* Fix errors in repeater

* Use custom module listing in sidebar

* Refresh user store on role update

* Add custom module info to type

* Add collections interface

* Add collections interface translations

* Add collections listing types

* Use custom collections listing in collections module nav

* Remove outdated nav test
2020-05-22 17:04:20 -04:00
Rijk van Zanten
df2587810c Revisions flow (#612)
* WIP rework revisions, fetch data

* Render revision items in sidebar

* Show created externally

* Install diff

* Add strings for revisions modal

* Allow slot to override subtitle in modal

* Add tabs content to revisions modal

* Add revert button
2020-05-22 15:45:35 -04:00
Rijk van Zanten
dbe4d319a9 Fix project chooser not closing on click (#611) 2020-05-22 11:36:51 -04:00
Rijk van Zanten
0347426e12 Interface single file (#605)
* Start on file interface

* Add preview icon

* Add readable mimetypes to extension

* Add file interface strings

* Fix type errors

* Add file select / deselect

* Add new file upload support

* Add import from url

* Fix loading state of url import

* Add filename in download attribute

* Replace option names with replace when file exists

* Remove / fix outdated tests
2020-05-21 16:47:01 -04:00
Rijk van Zanten
7b2cb9d329 Fix project logo, use unbranded spinner (#602)
* Use asset URL in logo / public pages

* Use correct project logo in module bar

* Use unbranded loader state
2020-05-21 11:00:22 -04:00
Rijk van Zanten
66e6af7a3d User popover (#599)
* Change large/x-large sizes

* Force update to popper on content change

* Use smaller size avatar in module bar

* Make the readme up to date

* Add support for trigger / delay props on v-menu

* Add user-popover component, use in comments drawer detail

* Add loading state to user popoer

* Fix trigger target in comments drawer etail item header
2020-05-20 16:38:31 -04:00
Rijk van Zanten
3f9d5d7d96 Add SSO flow (#595)
* Store / parse sso providers in project info

* Render sso provider links on login form

* Provide path to api on sso

* Finish SSO

* Fix user detail route

* Accept string error codes

* Rename color->type, fix old v-notices

* Add adding user string

* Fix reading order in v-menu
2020-05-19 18:02:04 -04:00
Rijk van Zanten
feaafe6440 109 tiny tweaks (#574)
* no cursor when disabled

* consistent disabled styling

* divider icon alignment

* don’t show last item’s border

* notifications spacing

* status placeholder

* default status icon placeholder

* fix textarea focus style

* tags styling

* proper tags padding when empty

* proper input number step hovers

* show background color

* Fix data-model collections overview name class

* Don't use display template for batch mode

* Fix headline being hidden

* Use formatted name fo bookmarks breadcrumb

* Move drawer open to app store

* Fix tests

* slider value style

* Add comments to users/files

* Make comments selectable

* Move window width drawer state to app parent

* Fix private user condition

* Allow relationships to system collections

* Refresh revisions drawer detail on save and stay

* Add disabled support to m2o / user

* Center v-infos

* Hide default drag image

* Ellipsis all the things

* Use icon interface for fallback icon

* Render icons grid based on available space

* Fix ellipsis on cardsl

* fix batch edit checkbox styling

* Let render template ellipsis its raw values

* Fix render template

* Default cropping to current aspect ratio

* missing translation

* secondary button style

so sorry, rijk… it’s the only one (promise)

* Add image dimensions, add drag mode

* track the apology

* no elipses on titles

* Add cancel crop button

* Only show new dimensions on crop

* Inform file preview if it's in modal

* preview styling

* Install pretty-bytes

* Show file info in drawer sidebar

* Use outline icons in drawer sidebar

* don’t confuse null with subdued text value

* edge-case justification

* Show character count remaining

* Fix storybook + typing error

* Add length constraints to color

* Watch value prop

* Fix tags

* Open icon on icon click

* Fix overflow of title

* Show batch editing x items

* Fix edits emptying input on cancel

* Don't count locked filters in no results message

* simple batch edit title

* Fix headline being invisible

* Add no-options notice to interfaces/displays

* Use existing collection preset in browse modal

* Don't emit null on invalid hex

* Use correct titles in modal-detail

* style char remaining

* file info sidebar styling

* Another attempt at trying to make render template behave in any contetx

* Show remaining char count on focus only

* Remove fade, prevent jumping

* Render skeleton loader in correct height

* Fix o2m not fetching items

* Pass collection/field to render display in o2m

* Add no-items message in table

* Add default state to v-table

* Allow ISO8601 in datetime interface

* Title format selected icon name

* avoid blinking bg on load

* align characters remaining

* Default to tabular in browse modal

* Add disabled string

* Add center + make gray default notice

* Add disabled-no-value state

* Export getItems

* Expose refresh method on layouts

* Fix (batch) deletion from browse)

* Fix interface disabled on batch

* Add interface not found notice

* Add default label (active) for toggle interface

* Use options / prop default for toggle

* Support ISO 8601 in datetime display

* Render edit form in form width

* Fix deselecting newly selected item

* Undo all selection when closing browse modal

* Fix deselecting newly selected item

* wider divider

* update webhooks table

* Fix checkbox label disappearing

* Fix tests.. by removing them

Co-authored-by: Ben Haynes <ben@rngr.org>
2020-05-15 18:44:21 -04:00
Rijk van Zanten
bac71cdc48 Form batch toggle fix (#571)
* Lint css files as well

* Fix batch mode toggle on fields

* Fix display handler function rendering in display
2020-05-13 18:52:35 -04:00
Ben Haynes
f780152a7d Various tweaks (#567)
* better button text alignment

* don’t wrap page title

* filter placeholders

* Update src/views/private/components/filter-drawer-detail/filter-input.vue

* Update src/lang/en-US/index.json

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2020-05-13 17:00:32 -04:00
Rijk van Zanten
860a062dff Minor tweaks in installation (#566)
* Don't show super admin password while loading

* Allow tab key in slug input (for tabbing to another field)

* Don't show project chooser arrow when 1 project
2020-05-13 14:47:42 -04:00
Ben Haynes
d715f86b34 Combine layout options (#563)
* icon width

* updated pagination style

* file preview zoom

WIP — shouldn’t show up on MODAL preview

* overlay/modal close button styling

* duplicate key

* bookmark styling

* card fade

also adds an rgb value for the page background variable

* style per page dropdown

* cards per page dropdown color

* inset non-dense notifications within sidebar

* reduce border radius for xs avatars

* hide non-expanded prepend/append

* reduce sidebar padding

this gives content a bit more room

* WIP: split and update comments and revisions

work in progress

* fix collections module name

* fix file library title

* consistent border on disabled

* fix title/breadcrumb positioning

* breadcrumb fixes

* add “open” button to image interface

WIP — this needs the actual logic, and we might want to remove a button

* hide presets delete until selection

* image shadow and subtext color

* Remove breadcrumb calculation

* increase contrast for image subtitle

* fix textarea hover style

* Update src/modules/collections/index.ts

* Fix typing of translateresult to format

* Add undefined check to collection name

* Put v-if on dialog instead of button

* Remove breadcrumb logic

* Remove breadcrumb calculation

* Rename shadow to collapsed in header bar

* fix rating star display going over table header

* show collection breadcrumb for bookmarks

WIP — needs the formatted collection title

* shorter error to avoid wrapping

* remove periods

* new grid layout icon

* better inline divier text styling

* add v-detail and update layouts to use it

* Finish readme of detail

* Use translations for default value in title

* Add layout options translation

* Don't have margin on base component

* Add margin to v-detail

* Remove duplicated style

* Update src/layouts/cards/cards.vue

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-05-13 14:06:14 -04:00
Ben Haynes
7aa4911caa Various style tweaks (#555)
* icon width

* updated pagination style

* file preview zoom

WIP — shouldn’t show up on MODAL preview

* overlay/modal close button styling

* duplicate key

* bookmark styling

* card fade

also adds an rgb value for the page background variable

* style per page dropdown

* cards per page dropdown color

* inset non-dense notifications within sidebar

* reduce border radius for xs avatars

* hide non-expanded prepend/append

* reduce sidebar padding

this gives content a bit more room

* WIP: split and update comments and revisions

work in progress

* fix collections module name

* fix file library title

* consistent border on disabled

* fix title/breadcrumb positioning

* breadcrumb fixes

* add “open” button to image interface

WIP — this needs the actual logic, and we might want to remove a button

* hide presets delete until selection

* image shadow and subtext color

* Remove breadcrumb calculation

* increase contrast for image subtitle

* fix textarea hover style

* Update src/modules/collections/index.ts

* Fix typing of translateresult to format

* Add undefined check to collection name

* Put v-if on dialog instead of button

* Remove breadcrumb logic

* Remove breadcrumb calculation

* Rename shadow to collapsed in header bar

* fix rating star display going over table header

* show collection breadcrumb for bookmarks

WIP — needs the formatted collection title

* shorter error to avoid wrapping

* remove periods

* Fix standard font-size of divider label, use large in interface

* Add extra date format strings

* Structure comments, support date headers

* Add ability to delete comments

* Add edited on status badge

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-05-12 20:10:48 -04:00
Rijk van Zanten
38454dc2a4 Fix editor size, init without crop (#558) 2020-05-12 12:10:20 -04:00
Rijk van Zanten
5c00ddddb1 Display template display template display (#551)
* Add util to find related collection

* Allow display.fields to be function

* Return fixed relation for user types

* Pass type / collection / field to displays

* Add template display

* Finish display template display template display
2020-05-11 17:05:11 -04:00
Rijk van Zanten
648c2a4e0b Add user interface (#549) 2020-05-11 13:23:41 -04:00
Rijk van Zanten
f1132168ee Date display (#541)
* Add datetime display

* Pass type to displays

* Fix types
2020-05-08 17:33:12 -04:00
Rijk van Zanten
828d81e044 Collection presets (#538)
* Fix table select all

* Fix defaulting + staging changes on new preset

* Navigate to bookmark after creation

* Support exact prop on v-list

* Use exact links in browse

* Show bookmark title when on bookmark

* Force layout refresh on navigation change

* Allow numbers in v-badge

* Add edit bookmark string

* Rename add-bookmark to bookmark-add

* Add bookmark-edit

* Save name changes to bookmark
2020-05-08 15:33:54 -04:00
Rijk van Zanten
0c17735e0e Interface one to many (#533)
* Extract edit modal to standalone component

* Fix creating new item from m2o edit modal

* Rename item-modal to modal-detail

* Extract selection modal in standalone component

* Add required primary-key prop to v-form

* Add inline prop to table

* Fetch items in o2m

* Accept numbers for primary key in v-form

* Use correct collection in render template in m2o

* Render modal detail

* Fix edit existing

* Add add-new

* Do things

* Finish o2m
2020-05-07 10:53:51 -04:00
Rijk van Zanten
70c3f05050 Interface many to one (#524)
* Start on m2o

* Render preview in m2o

* Add icons

* Style inline icons

* Add editing modal

* Disable any linter

* Add add-new button

* Pass existing selection on to layout

* Update v-table to allow for keys-only-selection

* Fix batch on tabular
2020-05-05 14:22:01 -04:00
Rijk van Zanten
622570cc45 Add presets settings (#517)
* Add shared component creation modal

* Add bookmark strings

* Expose save-as-bookmark method

* Fix typing of filter

* Add save bookmark button

* Add presets browse page

* Add select / delete functionality

* Render null value in layout as value-null

* Start on presets detail view

* Render presets detail view

* Save view options correctly

* Add readonly mode to cards layout

* Add layout drawer to presets detail

* Add delete on detail

* Add empty state

* Fix linter warnings
2020-05-04 12:31:11 -04:00
Rijk van Zanten
31ef7a48c9 Various fixes (#515)
* Fix image deselection when newID isn't set

* Fix svg support in image interface

* Render correct title on file library detail

* Default to interfaces based on type

* Remove unused import

* Don't show dropdown indicator on field label when readonly

* Accept datetime_created datetime_updated in datetime interface

* Add reused value-null component

* Fix z-index of v-badge

* Close status on content click

* Move edit button to header on file detail

* Increase tooltip z-index

* Add warning notice to edit image modal

* Fix extra spacing in divider interface

* Use wide style for notifications when drawer is open

* Click on image to open file preview
2020-05-01 18:08:37 -04:00
Ben Haynes
4dabcc6a25 Various style tweaks (#513)
* true title alignment

not sure why, but normal was optically best for me

* flip dropdown arrow when open

* flip dropdown arrow and add dot contrast

* fix icon expanding label height

keep arrow visible when menu open

* global form size and clean-up file preview

* updated console log

WIP — also includes format for warnings, errors, timing, etc

* add form max width

* fix search input width with value

* style chips

* no arguments

* 00 == 60

* update tags/chip styling

* wysiwyg editor style fixes

* conditional formatting

* seconds option and wip 12h time

* even editor tool spacing

* avoid vertical text clipping

* add circle option to image display

* add circle option to user display

* add circle to translations

* add rating display

* remove log

* button vertical alignment

* correct image width

* polish image styles

* Fix datetime interface

* Use flip transition

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-05-01 16:01:22 -04:00
Rijk van Zanten
27c7c055da Interface image (#510)
* Add format filesize util

* Move and tweak file-preview

* Add file lightbox componetn

* WIP add image interface

* Add download prop option to v-button

* Add active model support to image editor

* Add functionality for buttons

* Add deselect button

* Add upload lang

* Fix translations of upload notifications

* Fix local vs global dropzone

* Add v-upload component

* Finish image interface
2020-04-30 17:01:14 -04:00
Rijk van Zanten
e8206b06a2 Rename compositions to composables (#508)
* Rename compositions to composables

* Rename test helper, replace some other occurances

* Log error to console
2020-04-30 10:15:32 -04:00
Rijk van Zanten
0bf32c230b Fix file drop, again (#504) 2020-04-29 17:09:07 -04:00
Rijk van Zanten
4b7fcb79fa Add reusable image editor modal (#503)
* Install cropperjs

* Add cropper js styles

* Add editing image string

* Track inner active state

* Add temp edit button

* Start on image editor modal

* Add custom icons for image manipulation

* Add image manipulation strings

* Tweak cropper styles

* Remove unused import

* Save as blob

* Expose getItem method for manual refreshes

* Add cache-busting to file preview

* Use new API post endpoint, emit refresh event on success

* Add a cache buster to the image editor
2020-04-29 16:44:34 -04:00
Rijk van Zanten
eb129ec750 File preview (#490)
* Don't show filters that are locked

* Change status badge size

* Fix letter spacing

* Optically align title

* Add file-preview at top of files page

* Add missing alt attr
2020-04-27 15:06:19 -04:00
Ben Haynes
65888e7ba3 Various style tweaks (#488)
* secondary action button style

will apply to other modules if we like this

* card styling

filled grid
static gaps
improved selections/hovering

* action button colors

* dialog styling

* updated pagination

* choose layout name

* move page count to footer

* card footer

* correct list group icon orientation

* move card size to header

* header icon color

* radios are not labels

* clean up projcet chooser styling

* don’t collapse pagination when empty

* logout style and tooltips

* correct css variable

* layout translation key

* use general “per page” translation

* hide per page when not in use

also increases min per page from 10 to 25

* more per page fixes

* add regex placeholder

* add new custom grid icons

* new card size toggle and tooltips

* differentiate between inner/outer border radius

WIP

* display icons

* horizontal alignment for status dot

WIP

* beautiful badges

* fix jumping table loader

* show search “x” when minimized

* shorten page count string

* system tooltips

* user menu avatar hover

* edit vs new detail page

don’t show delete if new
rijk might not like my nested ternary

* conditional divider spacing

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2020-04-27 14:09:40 -04:00
Rijk van Zanten
9e28932a42 Collection display template (#487)
* Add translation strings for adding/editing item

* Add display_template to collection type

* Dont use functional for skeleton loader

* Make title optional and add title slot

* Make title prop optional in private view

* Render -- for null values in render template

* Render display template in header bar

* Render null values in template as subdued --

* Render status dot aligned in the middle

* Fetch latest collections on settings save
2020-04-27 10:50:38 -04:00
Rijk van Zanten
d338ee7b4f Close search input on empty click (#481) 2020-04-24 19:01:58 -04:00
Ben Haynes
b30dd930e7 Various style tweaks (#479)
* secondary action button style

will apply to other modules if we like this

* card styling

filled grid
static gaps
improved selections/hovering

* action button colors

* dialog styling

* updated pagination

* choose layout name

* move page count to footer

* card footer

* correct list group icon orientation

* move card size to header

* header icon color

* radios are not labels

* clean up projcet chooser styling

* don’t collapse pagination when empty

* logout style and tooltips

* correct css variable

* layout translation key

* use general “per page” translation

* hide per page when not in use

also increases min per page from 10 to 25

* more per page fixes

* add regex placeholder

* add new custom grid icons

* new card size toggle and tooltips

* differentiate between inner/outer border radius

WIP

* display icons

* horizontal alignment for status dot

WIP

* beautiful badges
2020-04-24 18:48:05 -04:00
Rijk van Zanten
871cd9c228 Block filters while loading (#478)
* Register filter drawer detail globally

* Add loading state mode to filter drawer detail

* Fix cursor clicking in search-filter

* Move filter drawer detail to layouts

* Fix typing of badge in drawer detail

* Close filter dropdown on content click

* Close project chooser on click outside
2020-04-24 18:23:59 -04:00
Rijk van Zanten
5a3d3ddc08 Filter close on click (#477)
* Dont bubble up click event from list group toggle

* Close filter field select on selection
2020-04-24 17:29:22 -04:00
Rijk van Zanten
d460946a34 Add drawer-detail-badge-value support (#476) 2020-04-24 17:26:22 -04:00
Rijk van Zanten
91e67ea581 Link to project if project url is set in settings (#475) 2020-04-24 17:24:02 -04:00
Rijk van Zanten
9138e7ab5b Search input (#473)
* Add search-input component

* Add searchquery support to tabular view

* Add search bar on collections browse

* Debounce input values

* Handle searchQuery in collection preset composition

* Handle searchquery in use-items composition

* Support search query in cards layout

* Add search-input to files/users
2020-04-24 16:27:17 -04:00