Commit Graph

216 Commits

Author SHA1 Message Date
rijkvanzanten
173121fa3a Fix render-template line-height 2021-04-22 16:26:35 -04:00
rijkvanzanten
2c557b2c9e Fix alignment of repeater row previews 2021-04-22 13:34:36 -04:00
rijkvanzanten
cb4bf88e66 Tweak relational interfaces
Squashed commit of the following:

commit ade7ce72e7dac9908504eacf420875baaae1cc47
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 13:16:03 2021 -0400

    Add no-items notice

commit e47dd5ac1f28300a33478a2be3c50496859b09fc
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 13:13:58 2021 -0400

    Remove files interface

commit 2925fb9c86719c48006f7b2619df7fd26bf7b523
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 13:10:44 2021 -0400

    Fix sort field in m2m

commit 009e2b1fd99f7a31f20fba04cd9980eaa3566ac8
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 13:06:45 2021 -0400

    Add dense at item count

commit 83b088f4da3ea4a1d7e030f34a07aa1cb2235b43
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 12:05:40 2021 -0400

    Tweak rendering of thumbnails inside relational interfaces

commit 06770a0f16e344ab62c0228b87824a6c00ad39bc
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 11:36:07 2021 -0400

    Rename $file->$thumbnail, render properly in render-template

commit 954fd725629ce055459a7925be4aaddf3fb723c2
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 11:35:53 2021 -0400

    Fix injection on v-field-select

commit 83073dea2fc26af61a5155adddd5d4e3afa5cb14
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 11:35:39 2021 -0400

    Adjust for virtual $thumbnail field on files

commit ee57b8316479204c0a5c931c86807afde55423a1
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 10:49:35 2021 -0400

    Don't hardcode file/user relations

commit 31ed92c5a785f20b7dc58bb62f35f6e31c95cfc6
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 10:49:22 2021 -0400

    Allow injecting temporary fields in field template

commit 9d98d4fe4def7bdba12d1613bd08bdb9bd9e1431
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 10:36:53 2021 -0400

    Render collection level template in placeholder

commit 0e0dda1e9f5a930ce3c73c2f8003d98853d58bc0
Merge: 65fa8084f 1e3b64bf9
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 10:35:21 2021 -0400

    Merge branch 'main' into relational-tweaks

commit 65fa8084f84aa1a90686fe6407a6d54ca47d1371
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 10:29:03 2021 -0400

    Make input container relative

commit 0674a0a00faa5df2208b466114721ba5d5116bf7
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Apr 22 10:28:44 2021 -0400

    Add placeholder option to v-field-template
2021-04-22 13:16:20 -04:00
Nitwel
7d64c8ab47 Relational consistency (#4093)
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-21 23:31:12 +00:00
José Varela
acc145006c App: encode primary key (#5143)
* app: encode primary key
Since primary keys could be manually entered strings,
we should encode those in order to prevent accessing
inexistent routes.
E.g.
Document with primary key: 'clients/John Doe'

* fixup! app: encode primary key Since primary keys could be manually entered strings, we should encode those in order to prevent accessing inexistent routes. E.g. Document with primary key: 'clients/John Doe'

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-04-19 11:35:01 -04:00
Nicola Krumschmidt
30b16cca89 Reset v-textfield to null when cleared (#5141)
* Reset v-textfield to null when cleared

* Add option to configure nullable to textarea interface

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-04-19 10:49:27 -04:00
Rijk van Zanten
40b9fb0fe6 Allow disabling activity/revisions (#5112)
* Add accountability column

* Add field info for accountability

* Add accountability to collection type

* Fetch accountability info from collection meta

* Add field name translation for accountability field

* Hide revisions drawer detail if revisions aren't available

* Only save activity where accountability flag matches

* Disable revisions for directus_presets

Fixes #3767

* Tweak field option naming
2021-04-16 16:26:18 -04:00
rijkvanzanten
2a1f4ead88 Pass on update:filters event
Closes #5024
2021-04-14 19:34:36 -04:00
Rijk van Zanten
fea49a12e3 Filter out circular fields in relational drawer-item use (#5067)
Fixes #2961
2021-04-14 19:32:53 -04:00
rijkvanzanten
c41b5a8179 Fix loading order of lang changing 2021-04-13 17:33:49 -04:00
Rijk van Zanten
bcac4b80c2 Fix perf regression in translations (#5041)
* Only translate extensions on language load

* Make table-row functional
2021-04-13 17:00:22 -04:00
Nitwel
c7f2b05c00 Fix drawer item title not showing data (#4940)
* fix drawer item title not showing data

* load template items relational

* Only render preview on first load

* Fix type issue

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-09 18:05:41 -04:00
Nitwel
44091e6f41 Add option to auto refresh collections (#4777)
* add auto refresh

* add refresh_interval to DB

* remove refresh_interval template

* set refresh interval default to null

* Fix typo in filename

* Rename sidebar-auto-refresh to refresh-sidebar-detail

* Rename import

* Add badge on active refresh, change options

* Fix refresh not working on refresh

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-09 17:24:40 -04:00
WoLfulus
42393951e0 Test runners for storage drivers (#4716)
* add tests to drive

* add azure test runner

* add gcs test runner

* add s3 test runner

* quick changes

* Re-add npm run dev

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-09 15:40:12 -04:00
Ben Haynes
d20e675877 Revision user should not “steal” click 2021-04-08 17:07:40 -04:00
Nitwel
ea7ab2b28d Fix svg overflow (#4719)
* fix svg overflow

* fix max height on svg

* Fix padding in card preview

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-08 16:49:41 -04:00
Nitwel
1b57bc3e82 use display template in drawer-item when possible (#4872) 2021-04-07 11:50:28 -04:00
Ben Haynes
ecd5526b55 fixes #4442 2021-04-02 14:51:56 -04:00
Nitwel
6f9b2cafcd Add page titles (#4775)
* restructure template rendering

* add useTitle composable

* Split up render-string-template from getFieldsFromTemplate

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-03-31 10:53:57 -04:00
Nitwel
706dca1740 allow for temporary presets (#4724) 2021-03-29 10:20:09 -04:00
Rijk van Zanten
be611a03f9 Change revert action to insert changes into page (#4637)
Closes #3941
2021-03-23 11:59:00 -04:00
Ben Haynes
7599e0a7aa primary color and various design updates 2021-03-04 18:50:47 -05:00
rijkvanzanten
490870858c Make revisions drawer detail more resiliant
Fixes #4344 (i think)
2021-03-04 14:05:27 -05:00
rijkvanzanten
47c9657cc3 Prefix export url with app root path
Fixes #4258
2021-03-03 20:02:33 -05:00
rijkvanzanten
3a7fd847e4 Filter out revisions without related activity record
Fixes #4160
2021-02-26 14:44:18 -05:00
Nitwel
c2e7c85bbd Update documentation of app (#4222)
* move component docs to documentation

* update app docs tables for components

* update docs

* Add components to docs sidebar

* fix generated tables

* fix tables

* rename transitions

* update tables

* update nested components

* update tables

* update tables

* update tables

* update v-table table

* add basic documentation to each component

* remove all stories of storybook

* add missing documentation

* undate tables

* update tables

* update docs sidebar

* update app docs

* remove unused references

* add general readme

* update docs

* make reference titiles smaller

* add reference tag

* improve docs

* update order of tabs in sidebar

* remove all readmes and stories from interfaces/displays

* Cleanup menu

* Remove storybook

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-02-24 17:48:19 -05:00
YannickMol
01e1a8c958 Make headline visible if title is short (#4107)
* Make headline visible if title is short

Fixes #4101

* Revert "Make headline visible if title is short"

This reverts commit eb5ef8212d.

* Add min-width to title-container

Not the most beautiful solution, but it works for most cases.

* Revert "Add min-width to title-container"

This reverts commit 6d0afb7e43.

* Move title-outer inside title-container
2021-02-23 17:43:59 -05:00
rijkvanzanten
fab082b63f Fix revisions drawer detail when number of revisions > 100
Fixes #4187
2021-02-23 14:38:38 -05:00
rijkvanzanten
036c9810f9 Don't show unchanged data in diff
Fixes #2914
2021-02-22 19:09:23 -05:00
Nitwel
78bd05bff4 Fix advanced filtering on relational fields (#4217)
* fix advanced filtering on relational fields

* Fix relational lookup for o2m fields

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-02-22 10:42:45 -05:00
Nitwel
7a2a4c311a Add expand_more icons to sidebar detail (#4153)
* add expand_more icons to sidebar detail

* remove moving sidebar header

* Use mandatory for open state

* Use mandatory to toggle first item

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-02-18 12:51:07 -05:00
Nitwel
bdec23c796 Fix bookmarks not updating properly (#4134)
* first try on fixing bookmarks

* fix bookmarks and search not updating on single word

* Fix double inject on paste

Fixes #3792

* Remove unused import

* Set bookmark saved state on clear local value

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-02-18 11:21:49 -05:00
Nitwel
e1b353b38b fix translation of module names (#4057) 2021-02-15 11:32:36 -05:00
rijkvanzanten
e3b39f211f Use overflow helper for text-only displays 2021-02-12 16:48:40 -05:00
Rijk van Zanten
c440c66461 Trigger search on input and paste (#4034)
Fixes #3792
2021-02-12 15:41:54 -05:00
Rijk van Zanten
ee3f5cbad3 Various m2a builder fixes (#4032)
* Fix drawer opening empty item after sort

* Fix null sorting

* Fix sending null for a type in field creation

* Fix sort / edit existing on sorted values in m2a builder

Fixes #4005, fixes #4007

* Remove stray console log
2021-02-12 15:23:23 -05:00
Rijk van Zanten
1064d10296 Fix file imports now that vetur supports monorepos (#4016) 2021-02-11 13:08:59 -05:00
Rijk van Zanten
b7d87e581a System permissions for app access (#4004)
* Pass relations through schema, instead of individual reads

* Fetch field transforms upfront

* Fix length check

* List if user has app access or not in accountability

* Load permissions up front, merge app access minimal permissions

* Show app access required permissions in permissions overview

* Show system minimal permissions in permissions detail

* Fix app access check in authenticate for jwt use

* Fix minimal permissions for presets

* Remove /permissions/me in favor of root use w/ permissions

* Fix logical nested OR in an AND

* Use root permissions endpoint with filter instead of /me

* Allow filter query on /permissions

* Add system minimal app access permissions into result of /permissions

* Remove stray console log

* Remove stray console.dir

* Set current role as role for minimal permissions

* Fix no-permissions state for user detail

* Add filter items function that allows altering existing result set
2021-02-11 12:50:56 -05:00
Rijk van Zanten
df22a58c6a Update in-app docs (#3989)
* Fix root redirect

* Fix html in headings

* Add graphql syntax mode

* Install markdown-it + plugins

* Fix file copying on mac

* Replace md rendering engine

* Fix wrong links in guides

* Scroll to top on every route change

* Update in-app links

* Fix home redirect

* Fix deep-linking paths

* Add to reference

* Fix nested group scoping

* Fix open path reference
2021-02-09 18:31:25 -05:00
Rijk van Zanten
c049daf418 Fix save-button overflow in header-bar (#3970)
Fixes #3910
2021-02-08 15:42:09 -05:00
rijkvanzanten
e547a72693 Use correct permissions in drawer-item
Fixes #3811
2021-01-28 16:48:51 -05:00
Nicola Krumschmidt
8f8b33de09 Fix v-input usages requiring nullable to be false 2021-01-26 13:08:29 +01:00
Ben Haynes
0b3aa71940 Merge branch 'main' of https://github.com/directus/directus into main 2021-01-25 10:52:51 -05:00
Ben Haynes
8ec04fa458 update public logo 2021-01-25 10:52:47 -05:00
rijkvanzanten
9e2826057e Optimize search performance 2021-01-21 14:38:37 -05:00
rijkvanzanten
7bbce08b98 Add edit drawers to file/image interfaces
Closes #3752
2021-01-21 11:49:35 -05:00
Ben Haynes
5bd9e60fdf style updates 2021-01-20 19:28:57 -05:00
rijkvanzanten
4ea6aa1f7c Add image picker to md interface 2021-01-19 12:11:16 -05:00
rijkvanzanten
b30324a06c Add custom syntax block option to markdown
And fix v-form overrides
2021-01-15 11:43:27 -05:00
Ben Haynes
b0af07ae99 public page style updates 2021-01-14 09:58:23 -05:00