Commit Graph

693 Commits

Author SHA1 Message Date
ciril.tr
203b406d25 Add default folder upload to WYSIWYG editors (#7199)
* Add default folder upload to WYSIWYG editors

* Tweak options formatting + translations keys

* Tweak options structure

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-12-23 21:51:51 -05:00
Azri Kahar
9603fbcd3a Add v-date-picker base component & use it in datetime interface (#10438)
* WIP

* clean up emitted values & add locale support

* fix styling and add dynamic width

* fix logic for getting the last key

* lock flatpickr version

* add "set to now" button

* add locale & fix input flash

* fix locale issue

* fix initial value not setting

* use v-menu & reuse date-fns locales

* add max-height-none prop to v-menu

* remove unused styles

* touch up style

* use flatpickr locale constructed from date-fns

* minor style tweak

* Various style tweaks

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-12-23 21:43:25 -05:00
Rijk van Zanten
dbf35a1736 Add ability to share items with people outside the platform (#10663)
* Add directus_shares

* Don't check for usage limit on refresh

* Add all endpoints to the shares controller

* Move route `/auth/shared` to `/shared/auth`

* Add password protection

* Add `share` action in permissions

* Add `shares/:pk/info`

* Start on shared-view

* Add basic styling for full shared view

* Fixed migrations

* Add inline style for shared view

* Allow title override

* Finish /info endpoint for shares

* Add basic UUID validation to share/info endpont

* Add UUID validation to other routes

* Add not found state

* Cleanup /extract/finish share login endpoint

* Cleanup auth

* Added `share_start` and `share_end`

* Add share sidebar details.

* Allow share permissions configuration

* Hide the `new_share` button for unauthorized users

* Fix uses_left displayed value

* Show expired / upcoming shares

* Improved expired/upcoming styling

* Fixed share login query

* Fix check-ip and get-permissions middlewares behaviour when role is null

* Simplify cache key

* Fix typescript linting issues

* Handle app auth flow for shared page

* Fixed /users/me response

* Show when user is authenticated

* Try showing item drawer in shared page

* Improved shared card styling

* Add shares permissions and change share card styling

* Pull in schema/permissions on share

* Create getPermissionForShare file

* Change getPermissionsForShare signature

* Render form + item on share after auth

* Finalize public front end

* Handle fake o2m field in applyQuery

* [WIP]

* New translations en-US.yaml (Bulgarian) (#10585)

* smaller label height (#10587)

* Update to the latest Material Icons (#10573)

The icons are based on https://fonts.google.com/icons

* New translations en-US.yaml (Arabic) (#10593)

* New translations en-US.yaml (Arabic) (#10594)

* New translations en-US.yaml (Portuguese, Brazilian) (#10604)

* New translations en-US.yaml (French) (#10605)

* New translations en-US.yaml (Italian) (#10613)

* fix M2A list not updating (#10617)

* Fix filters

* Add admin filter on m2o role selection

* Add admin filter on m2o role selection

* Add o2m permissions traversing

* Finish relational tree permissions generation

* Handle implicit a2o relation

* Update implicit relation regex

* Fix regex

* Fix implicitRelation unnesting for new regex

* Fix implicitRelation length check

* Rename m2a to a2o internally

* Add auto-gen permissions for a2o

* [WIP] Improve share UX

* Add ctx menu options

* Add share dialog

* Add email notifications

* Tweak endpoint

* Tweak file interface disabled state

* Add nicer invalid state to password input

* Dont return info for expired/upcoming shares

* Tweak disabled state for relational interfaces

* Fix share button for non admin roles

* Show/hide edit/delete based on permissions to shares

* Fix imports of mutationtype

* Resolve (my own) suggestions

* Fix migration for ms sql

* Resolve last suggestion

Co-authored-by: Oreilles <oreilles.github@nitoref.io>
Co-authored-by: Oreilles <33065839+oreilles@users.noreply.github.com>
Co-authored-by: Ben Haynes <ben@rngr.org>
Co-authored-by: Thien Nguyen <72242664+tatthien@users.noreply.github.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2021-12-23 18:51:59 -05:00
Azri Kahar
89f93d320c fix M2A list not updating (#10617) 2021-12-20 13:15:18 -05:00
Thien Nguyen
e92b8c0415 Update to the latest Material Icons (#10573)
The icons are based on https://fonts.google.com/icons
2021-12-17 15:25:25 -05:00
Tien Tran
5e7fa633b0 Custom filter support for list-m2m, list-o2m, list-o2m-tree-view and select-dropdown-m2o interfaces (#9135) 2021-12-16 17:19:51 -05:00
Alejandro Castaño González
27dc636007 Update formatted-value display (#9773)
* Update formatted-value display

* Update common link parameters

* Fix bigInteger & decimals

* Improve decimals

* Improve links

* Remove clipboard

* Remove backgroundColor

* Remove text align

* Update prefix and suffix & Use vue-i18n's n

* Refactor link options

* Add item prop when render display

* Refactor format rules

* color interface: make palette icon not clickable

* fix TS errors

* fix rules not being applied

* allow conditions to be applied on strings too

* Update options

* Update options & display

* Remove unused item prop

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Jose Varela <joselcvarela@gmail.com>
2021-12-16 22:10:56 +00:00
Nicola Krumschmidt
23951e5a02 Align display options type with interface options type (#10524)
* Align display options type with interface options type

* Fix linter warnings

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-12-15 20:25:46 +00:00
Azri Kahar
1bb728117f Autofocus form for repeater (#10464) 2021-12-13 08:13:12 +00:00
Harikrushna
8f8f0e5c12 Relations: fix M2M related primary key (#10368)
* correction in m2m relation filed name

* prevent m2m reload on form change

* rely on junction PK instead of relation PK
When relation PK is a manually entered string, we cannot rely on relation PK.

* prevent m2a reload on form change

Co-authored-by: Jose Varela <joselcvarela@gmail.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-12-10 20:09:36 +00:00
Malte Jürgens
f6264371ef fix broken wysiwyg editor when width and height are set in image (#10440) 2021-12-10 14:29:13 -05:00
Ben Haynes
99c8f59870 interface padding (#10441) 2021-12-10 13:18:07 -05:00
Azri Kahar
5a7e31bc98 update selection styling to use css variable (#10437) 2021-12-10 11:42:03 -05:00
Azri Kahar
60c0a05a94 patch translations interface for new languages (#10430) 2021-12-10 04:23:42 +00:00
Azri Kahar
bc04d76774 fix translations not refreshing on save (#10410)
* fix translations not refreshing on save

* remove unused imports
2021-12-09 18:17:12 -05:00
Rijk van Zanten
2897264acb Use variables for default colors in boolean interface/display (#10346)
* Use variables for default colors in boolean interface/display

Fixes #10333

* Fix translations name
2021-12-06 14:19:43 -05:00
Argomix
e629c17fdb Update input-rich-text-html.vue (#10331)
Soft wrap in HTML source code view.
2021-12-06 15:26:21 +00:00
Rijk van Zanten
8881011f55 Add disabled state to translations interface (#10338)
Fixes #10337
2021-12-06 15:24:37 +00:00
Oreille
cf09f6cd21 Fix non-native geometries not visible in map layout (#10308)
* Fix non-native geometries not showing up in map layout
* Don't add bbox to edited and parsed geometries
2021-12-04 23:47:20 +00:00
Rijk van Zanten
a3e127f70f Add integer support to radio and dropdown (#10274)
Fixes #10267
2021-12-03 10:45:11 -05:00
Rijk van Zanten
6e866487d7 Handle unexpected filter formats better in system-filter ui (#10251)
Fixes #9573
2021-12-02 19:42:39 -05:00
rijkvanzanten
4150b3b175 Remove unused attr 2021-12-02 19:11:28 -05:00
rclee91
ca8343b299 Markdown Interface Updates (#9267)
* Markdown Interface Updates
  - "Editor" button text fixed to "Edit"
  - Edit and Preview buttons stay highlighted based on current mode
  - Added interface option for Editor and Preview Font type
  - Copied WYSIWYG CSS correct stylings to Markdown
  - Added custom block option placeholders for each input
  - Changed icon heading to use format_size icon
  - Added toolbar controls

* Refactoring based on review
  - Edit translation string for name in placeholder
  - Wrapped preview hidden toolbars with a <template v-if>
  - Changed .indexOf to .includes
  - Added translation strings for Edit and Preview

* Refactoring - took off uncessary text

* Markdown Interface Updates
  - "Editor" button text fixed to "Edit"
  - Edit and Preview buttons stay highlighted based on current mode
  - Added interface option for Editor and Preview Font type
  - Copied WYSIWYG CSS correct stylings to Markdown
  - Added custom block option placeholders for each input
  - Changed icon heading to use format_size icon
  - Added toolbar controls

* Refactoring based on review
  - Edit translation string for name in placeholder
  - Wrapped preview hidden toolbars with a <template v-if>
  - Changed .indexOf to .includes
  - Added translation strings for Edit and Preview

* Refactoring - took off uncessary text

* Changed to use --family- fonts

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
Co-authored-by: Jose Varela <joselcvarela@gmail.com>
2021-12-02 19:09:38 -05:00
Rijk van Zanten
b1af0a1cf7 Fix token manipulation on alignment change in images (#10234)
* Fix token manipulation on alignment change in images

Fixes #10145

* Update app/src/interfaces/input-rich-text-html/input-rich-text-html.vue

Co-authored-by: Nicola Krumschmidt <nicola.krumschmidt@freenet.de>

Co-authored-by: Nicola Krumschmidt <nicola.krumschmidt@freenet.de>
2021-12-02 14:41:59 -05:00
Dr. Matthias Jung
c16592806d Added Line Wrapping to Codeview of CodeMirror (#9563)
* Added Line Wrapping to Codeview of CodeMirror

In the formated code fields line breaks are not done, which requires
scrolling. This might be configurable in the future.

* Make line-wrapping an opt-in options

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-12-01 17:27:09 -05:00
Azri Kahar
3391ac9f01 Add default values when tracking edits in list interface (#9707)
* add default values when tracking edits in list

* reset edits when drawer is closed
2021-12-01 16:31:03 -05:00
Azri Kahar
0dc0fd4360 Simplify presentation/aliases & accordion setup flow (#9742)
* move title input up for dividers

* WIP

* simplify key id

* add contrast to notices in field configuration

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-12-01 21:29:02 +00:00
Oreille
9c9e2eff5b Fix ability to change M2O field type and prevent incompatible interfaces in advanced mode (#10096)
* Fix ability to change M2O field type and prevent incompatible interfaces in advanced mode

* Removed unused imports

* Rename interface variable
2021-12-01 16:16:37 -05:00
Azri Kahar
c4f8214ad8 Autofocus first input in create item form (#9583)
* autofocus first input in create form

* add autofocus to translations interface

* avoid setting firstEditableField to hidden fields

* Base autofocus on prop

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-12-01 16:09:21 -05:00
Azri Kahar
5feaac88d7 fix tree view interface display template (#9600) 2021-12-01 16:05:24 -05:00
Malte Jürgens
1be8e1cd8d save wysiwyg image size in url params instead of html tags (#10054)
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-12-01 19:30:39 +00:00
Azri Kahar
1bad781db5 fix translation input blur on revert to old value (#10068) 2021-12-01 14:19:08 -05:00
Azri Kahar
646cc3a0d6 Hide options for date type in datetime interface (#10073)
* hide options for date type in datetime interface

* clear options when switching to date
2021-12-01 14:18:35 -05:00
Azri Kahar
1c8181c6c1 add colorOn & colorOff to checkbox interface (#10149) 2021-12-01 14:02:57 -05:00
Azri Kahar
23b9e22344 add text path to autocomplete api input (#10183) 2021-12-01 11:36:05 -05:00
Ben Haynes
59c45c92e2 add crop and contain options, increase full height (#9628)
* add crop and contain options, increase full height

* template literal string tweak

* Update app/src/interfaces/file-image/file-image.vue

Co-authored-by: Azri Kahar <azrikahar@outlook.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-12-01 15:38:30 +00:00
Azri Kahar
481d03df7d add dot indicator to groups with modified fields (#10147) 2021-11-30 19:29:38 -05:00
ian
1f9dfb5722 Set isEditorDirty flag before saving changes (#10048) 2021-11-25 10:52:31 -05:00
Oreille
b55abff734 Fix tag interface allowCustom default value to true (#10021) 2021-11-24 17:13:20 -05:00
José Varela
7eb106e229 fix color picker position (#10009) 2021-11-24 17:11:53 -05:00
Azri Kahar
bebea58a88 fix translations input issues (#9803)
Co-authored-by: Jose Varela <joselcvarela@gmail.com>
2021-11-24 16:17:12 -05:00
José Varela
6dc551b7db Fix M2O display inside M2M relations (#9533)
* Fix M2O display inside M2M relations

* Fix fetching every time value changed
2021-11-24 16:02:07 -05:00
Oreille
f669fec5eb Remove geometryFormat from map interface options. (#9750)
* Remove geometryFormat from map interface options.

* resolve lint warnings

Co-authored-by: Azri Kahar <azrikahar@outlook.com>
2021-11-15 10:17:42 -05:00
ian
b9c3e18796 Fix existing files drawer selection (#9609)
Co-authored-by: Jose Varela <joselcvarela@gmail.com>
2021-11-11 14:40:18 -05:00
rijkvanzanten
c0ea45fa05 Prevent system-filter from crashing on unknown field 2021-11-11 14:35:46 -05:00
José Varela
153c3d55a3 Fix missing initialItems added on M2M (#9736)
@rijkvanzanten I am merging this because it was approved on M2M and it's preventing users from selecting files.
2021-11-11 17:24:25 +00:00
Azri Kahar
b1494e8a22 Fix repeater interface template (#9588) 2021-11-09 10:44:32 -05:00
José Varela
528abe4593 Import 'Fira Mono' & 'Merriweather' into WYSIWYG (#9618)
* import 'Fira Mono' into wysiwyg

* use import statements for monospace & serif fonts

Co-authored-by: Azri Kahar <azrikahar@outlook.com>
2021-11-09 10:16:22 -05:00
Azri Kahar
7050a9f489 fix elements z-index higher than app header bar (#9530) 2021-11-06 16:18:25 -04:00
José Varela
bbd6e13e1e Fix lose data on M2M (#9548)
* save initial items of m2m relation

* merge initial, draft and selected on new selection
2021-11-06 16:13:38 -04:00