Commit Graph

142 Commits

Author SHA1 Message Date
Oreille
8590eec662 Fix navigation search (#5834)
* Fix navigation search

* Update use-navigation.ts

* Add changeset

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-05-24 12:24:14 -04:00
rijkvanzanten
a0512f8b5e Sanitize all user inputted md 2021-05-14 16:04:36 -04:00
ernst86913
c4fc0ea92b Move export to layouts (#5557)
* Export Fix

* Remove unused fields

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-05-14 16:02:05 +00:00
José Varela
9ecbeee488 app: fix export with filters (#5653)
When filters are applied and flag is checked,
should export taking into account the active filters
2021-05-13 16:10:53 -04:00
dependabot[bot]
bc30ee2bde Bump prettier from 2.2.1 to 2.3.0 (#5593)
* Bump prettier from 2.2.1 to 2.3.0

Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.2.1...2.3.0)

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

* Fix lint issues for updated prettier

* Lets remove dev: true again so we can auto-add it later why don't we

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-05-11 10:38:42 -04:00
rijkvanzanten
2ff66cfecd Make sure active collection is in overflow view of the menu 2021-05-07 14:18:50 -04:00
rijkvanzanten
801e868554 Fix remaining eslint errors
h/t @paescuj
2021-04-29 15:55:12 -04:00
Pascal Jufer
acd41eb0be Syntax fixes (#5367)
* Declare return types on functions

And a very few other type related minor fixes

* Minor syntax fixes

* Remove unnecessary escape chars in regexes
* Remove unnecessary awaits
* Replace deprecated req.connection with req.socket
* Replace deprecated upload with uploadOne
* Remove unnecessary eslint-disable-next-line comments
* Comment empty functions / catch or finally clauses
* Fix irregular whitespaces
* Add missing returns (null)
* Remove unreachable code
* A few logical fixes
* Remove / Handle non-null assertions which are certainly unnecessary (e.g. in
tests)
2021-04-29 12:11:43 -04:00
Rijk van Zanten
84f4a1da01 Add singular/plural collection name translations (#5302)
* Add singular/plural options to collection translations

* Use singular/plural item names in related values

* Use singular / plural names on item detail

* Use singular/plural for drawer item

* Fix translation
2021-04-27 16:22:52 -04:00
José Varela
6a28847e9a app: go back instead of push new route (#5168)
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-23 15:15:48 +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
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
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
Nitwel
78b8653369 Make collection list searchable (#4780)
* add searchability to collections

* restyle and make collection search persistent

* increase min collection

* hide whole search

* Style tweaks

* More style tweaks

* Rename collections navigation search

* Remove unused prop

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-09 14:55:08 -04:00
Nitwel
3905157258 keep bookmark on detail (#4860) 2021-04-09 12:39:52 -04:00
rijkvanzanten
48f2653406 Fix type issue 2021-04-08 17:22:22 -04:00
Nitwel
93f8b7720c Fix translations not working on displays, modules... (#4734)
* generalyze extensions

* replace vue-i18n tranlslations

* replace vue-i18n tranlslations

* add missing commas

* replace translations recursive

* restructure translate

* remove unused i18n

* remove unused i18n

* remove unused i18n

* Remove i18n context in define

* Rename translate util file

* Fix type errors

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-08 16:36:55 -04:00
Nitwel
534c207c48 Render Template load relational data (#4852)
* remove non existing fields

* show relational template on items

* make relational loading cleaner

* Move item templateValues fetching to item detail

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-08 16:04:31 -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
70b15eef46 fix discard not closing on singleton (#4727) 2021-03-29 10:13:00 -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
301d5a3337 Add "show hidden collections" context menu
Closes #3310
2021-02-22 19:49:53 -05:00
Nitwel
2ee639964c Show prompt when having unsaved changes (#4174)
* show prompt when having unsaved changes

* alert also for users and files
2021-02-19 14:51:53 -05:00
rijkvanzanten
07ea3870ba Fix revisions permissions check for admin users
Fixes #4114
2021-02-17 10:32:49 -05:00
rijkvanzanten
5aad79dc5a Navigate away from bookmark on bookmark delete
Fixes #3766
2021-02-16 16:58:41 -05:00
YannickMol
927042189c Remove dots when disabled (#4075)
* Remove dots when disabled

Fixes #4038

* Revert "Remove dots when disabled"

This reverts commit 2276023471.

* Update save-options

Fixes #4038

* Remove dots in files and users routes

* Remove :disabled tags
2021-02-16 14:07:09 -05:00
Nitwel
e1b353b38b fix translation of module names (#4057) 2021-02-15 11:32:36 -05:00
Rijk van Zanten
81fc8443df Don't wrap text in nav (#4035)
* Move v-list-item-text to v-text-overflow, use in tables

* Fix type issue
2021-02-12 16:39:17 -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
rijkvanzanten
3103d9d7ea Fix archive button on collection module collection overview
Fixes #3826
2021-01-29 18:39:01 -05:00
Rijk van Zanten
5d96529341 Don't navigate on save as copy on validation error (#3854)
Fixes #3430
2021-01-29 18:04:22 -05:00
Peter Stuifzand
734f39e155 Fix typo for batchEditAllowed -> batchArchiveAllowed 2021-01-28 22:57:12 +01:00
rijkvanzanten
e547a72693 Use correct permissions in drawer-item
Fixes #3811
2021-01-28 16:48:51 -05:00
Nicola Krumschmidt
4bfbc2ba9f Prevent add/edit dialogs from saving if value is null 2021-01-26 13:14:32 +01:00
Ben Haynes
55b0ae581d fix plural title 2021-01-14 21:18:07 -05:00
Jakob-em
efce49930a Add missing tooltips
- create bookmark
- delete filter
- change operator
- table sort icons
2020-12-29 21:48:09 +01:00
rijkvanzanten
becba663b4 Start groups open when start open
Fixes #3397
2020-12-11 18:15:56 -05:00
rijkvanzanten
ec9ce55720 Use batch drawer for users / files
Fixes #985
2020-11-13 12:03:22 -05:00
rijkvanzanten
49f261f990 Show revisions/comments on singletons
Fixes #978
2020-11-13 10:34:35 -05:00
rijkvanzanten
ef901218a5 Don't navigate on save error 2020-11-11 15:57:32 -05:00
rijkvanzanten
e3af581e8e Don't navigate on delete with error
Fixes #947
2020-11-11 13:41:57 -05:00
rijkvanzanten
32db7ae505 Persist collections nav group state
Fixes #929
2020-11-11 11:41:54 -05:00
rijkvanzanten
dd803a915b Fix archive button permissions check
Fixes #900
2020-11-06 14:57:44 -05:00
rijkvanzanten
94c03b4d4a Use new error handler where we don't handle errors better 2020-11-05 17:24:27 -05:00
rijkvanzanten
4130337f7a Merge branch 'main' into error-handling 2020-11-05 16:16:44 -05:00
rijkvanzanten
d6cf3eb30d Update batch archive to use new update flow 2020-11-05 15:57:02 -05:00
rijkvanzanten
8dbfd34862 Update batch style to drawer 2020-11-05 15:39:07 -05:00