Commit Graph

448 Commits

Author SHA1 Message Date
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
dependabot-preview[bot]
8a9daf554f Bump @types/lodash from 4.14.150 to 4.14.151 (#573) 2020-05-15 12:48:15 +00:00
dependabot-preview[bot]
c38ff5af1b Bump vue-i18n from 8.17.5 to 8.17.6 (#572) 2020-05-15 01:41:25 +00:00
Jacob Rienstra
c222e2123d Tags interface (#556)
* afirst draft

* mtag adding works, chekcing for bugs

* fixed it

* readme

* fixes

* Finish tags

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-05-13 19:31:30 -04:00
Jacob Rienstra
536967553c Color Interface (#531)
* styling for color inputs....messy

* values line up

* color swatch

* color picker working html

* hsl

* hsl works!

* added preset option kinda (needs repeater)

* added color preset colors pretty

* Fix input up/down

* Remove empty test file

* Remove deprecated prop on v-menu

* fixed portal and click outside

* Add color placeholder text

* Emit color value on every type of change

* Rename middleware

* Remove empty readme

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2020-05-13 19:13:11 -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
Rijk van Zanten
276021657d Various collection/field setup tweaks (#570)
* Add no collections notice to settings

* Use db safe inputs for name / primary key field

* Only show filter notice when there are items

* Move english strings to translations

* Fix padding top

* Fix dialog in menu

* Add note on dialog in menu

* Save UUID field as type uuid

* Restructure fields management

* Tweak active state / colors

* Fix field-duplicate
2020-05-13 18:31:22 -04:00
dependabot-preview[bot]
63219134b7 Bump @directus/format-title from 3.1.4 to 3.2.0 (#569) 2020-05-13 21:03:40 +00: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
dependabot-preview[bot]
87f63734ca Bump @types/jest from 25.2.1 to 25.2.2 (#568) 2020-05-13 19:42:45 +00: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
dependabot-preview[bot]
8243a08fe0 Bump @directus/format-title from 3.1.3 to 3.1.4 (#565) 2020-05-13 18:32:51 +00: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
dependabot-preview[bot]
e90a0c72f5 Bump @types/semver from 7.1.0 to 7.2.0 (#564) 2020-05-13 18:03:20 +00: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
dependabot-preview[bot]
ef1912c109 Bump @typescript-eslint/eslint-plugin from 2.32.0 to 2.33.0 (#562) 2020-05-12 22:55:40 +00:00
dependabot-preview[bot]
134f30e798 Bump @typescript-eslint/parser from 2.32.0 to 2.33.0 (#561) 2020-05-12 22:48:12 +00:00
dependabot-preview[bot]
91cf4f410f Bump @typescript-eslint/typescript-estree from 2.32.0 to 2.33.0 (#560) 2020-05-12 22:38:02 +00:00
dependabot-preview[bot]
c4c3eb9437 Bump typescript from 3.8.3 to 3.9.2 (#559) 2020-05-12 21:51:49 +00:00
Rijk van Zanten
38454dc2a4 Fix editor size, init without crop (#558) 2020-05-12 12:10:20 -04:00
Rijk van Zanten
fb43a5dde9 Split up v-form, add repeater (#557)
* Add translation strings

* Move type styles to mixins

* Add repeater interface

* Prevent stepper buttons when disabled

* Split up v-form

* Support disabled in repeater
2020-05-12 12:00:16 -04:00
dependabot-preview[bot]
c4885d41f4 Bump nanoid from 3.1.6 to 3.1.7 (#554) 2020-05-11 21:35:56 +00:00
dependabot-preview[bot]
3059ab6f4d Bump @typescript-eslint/eslint-plugin from 2.31.0 to 2.32.0 (#553) 2020-05-11 21:17:45 +00:00
dependabot-preview[bot]
8680008c28 Bump @typescript-eslint/parser from 2.31.0 to 2.32.0 (#552)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.31.0 to 2.32.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.32.0/packages/parser)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-11 17:11:03 -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
dependabot-preview[bot]
3aec11c42a Bump @typescript-eslint/typescript-estree from 2.31.0 to 2.32.0 (#550) 2020-05-11 20:40:37 +00:00
Rijk van Zanten
648c2a4e0b Add user interface (#549) 2020-05-11 13:23:41 -04:00
Rijk van Zanten
62ef2bb59a Optimize slug/db-safe modes on v-input, add slug interface (#548)
* Optimize slug functionality

* Add slug interface
2020-05-11 12:58:07 -04:00
dependabot-preview[bot]
34b71dc584 Bump @directus/format-title from 3.1.2 to 3.1.3 (#547) 2020-05-11 15:34:11 +00:00
dependabot-preview[bot]
150b748642 Bump vuepress from 1.4.1 to 1.5.0 (#546) 2020-05-11 15:33:29 +00:00
dependabot-preview[bot]
e7cc058a7f Bump jest-sonar from 0.2.7 to 0.2.8 (#545) 2020-05-10 18:08:10 +00:00
dependabot-preview[bot]
931ab2dab0 Bump vue-i18n from 8.17.4 to 8.17.5 (#544) 2020-05-10 16:54:24 +00:00
Rijk van Zanten
631d152c79 Various (#543)
* Fix default size of cards

* Fix layout picker not auto closing

* Fix cards getting huge when theres less than 1 row
2020-05-08 18:27:59 -04:00
Rijk van Zanten
e3120afc7d Fix cp duplication and default values (#542)
* Fix cp duplication and default values

* Fix tests
2020-05-08 17:43:46 -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
45c01b6a64 Fix collection race condition + search pagination (#540) 2020-05-08 16:51:14 -04:00
Rijk van Zanten
c08d9ccfe2 Hash (#539)
* Add placeholder color css var

* Add hash interface
2020-05-08 15:58:51 -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
9e5c0f0078 Inline select (#537)
* Add inline mode support to v-select

* Use inline selects on tabular/cards
2020-05-08 14:09:06 -04:00
Rijk van Zanten
a070a25353 Field setup (#536)
* Use the correct table header widths for settings / colections

* [WIP] Rework field setup flow

* Finish setup actions logic

* Remove old field-setup

* Use fixed strategy in popper, render to portal

* Stop relying on no-overflow mode

* Stop propagation of outside click event

* Finish field setup, start on relational setup

* Finish up v-menu

* Add relational m2o markup

* Add relational m2o markup

* Remove empty source, fix codesmell
2020-05-08 14:07:00 -04:00
dependabot-preview[bot]
6fd43f8e8e Bump nanoid from 3.1.5 to 3.1.6 (#535) 2020-05-08 16:13:24 +00:00
Rijk van Zanten
caaf4244b7 Improve v-menu performance (#534)
By not rendering the popper content, we can vastly improve rendering performance for the v-form.
2020-05-07 18:28:15 -04:00
Jacob Rienstra
f06a56bc4c fixes for numeric and icon readme (#527) 2020-05-07 11:21:39 -04:00
dependabot-preview[bot]
fb3521f65a Bump @sindresorhus/slugify from 0.11.0 to 1.0.0 (#532)
Bumps [@sindresorhus/slugify](https://github.com/sindresorhus/slugify) from 0.11.0 to 1.0.0.
- [Release notes](https://github.com/sindresorhus/slugify/releases)
- [Commits](https://github.com/sindresorhus/slugify/compare/v0.11.0...v1.0.0)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-07 11:05:05 -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
dependabot-preview[bot]
b4fdf96900 Bump date-fns from 2.12.0 to 2.13.0 (#530) 2020-05-06 21:41:12 +00:00
dependabot-preview[bot]
03e6c8ab03 Bump @vue/test-utils from 1.0.0 to 1.0.2 (#529) 2020-05-06 14:24:56 +00:00
dependabot-preview[bot]
418e222382 Bump stylelint-scss from 3.17.1 to 3.17.2 (#528) 2020-05-06 13:17:51 +00:00
dependabot-preview[bot]
1513bb9f5d Bump nanoid from 3.1.4 to 3.1.5 (#525) 2020-05-05 19:12:54 +00: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