185 Commits

Author SHA1 Message Date
Rijk van Zanten
b6a0f0b216 Fix map layout not rendering items on search (#14543)
Fixes #13941
2022-07-20 17:17:33 -04:00
Jay Cammarano
820457690f Optimize media loading across app (#10592)
* v-image and "lazy load" working

* fixed vars

* all the other img uses

* No longer require access token in url for files

* Add lazy loading and size limits

* Rename map-component source prop

* Fix lint warning

* Update app/src/views/public/public-view.vue

Co-authored-by: ian <licitdev@gmail.com>

* Fix lint

* Fix missing file type icon

* Fix null imageInfo error

* Use video.js for media playback

* Fix .js file display

* Update package-lock.json

* Update package-lock.json

* update package.json

* Update pnpm-lock.yaml

* Remove unrelated addition on VDatePicker

* Remove folder abstraction

* Use image data based aspect ratio on preview

* Base app rate throttle on API rate limit config

* Configure app rate limit throttle based on api config

* Convert v-image to script[setup]

* Convert v-media to script[setup]

* Cleanup v-media

* Remove unneeded addTokenToUrl usages

* Remove video.js

It doesn't do authorization headers for mp4/mp3, so it's pointless

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
Co-authored-by: ian <licitdev@gmail.com>
2022-07-20 15:52:38 -04:00
Addison Elliott
033e12323e Fix field aliasing not returning null after merging documents (#14256)
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2022-07-11 14:45:58 +02:00
Rijk van Zanten
cef060a0fc Use string displays on the calendar layout (#14232) 2022-06-30 18:45:52 -04:00
Brainslug
78541d35dc Big Integer fields sort as strings (#13904)
* inelegant solution for BigInt sorting

* Revert "inelegant solution for BigInt sorting"

This reverts commit e804588140.

* always use server sorting in the tabular layout

* Update app/src/layouts/tabular/tabular.vue

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-06-16 13:49:22 +00:00
Brainslug
a88a80d6b9 O2M relation does not display correctly (#13866)
* fix for o2m displaying item count

* fixes value structure for multi relations

* removed debugging code and comments and improved data mapping

* fix aliased fields for single relations

* removed unneeded fixes
2022-06-14 14:30:49 -04:00
Azri Kahar
0922627632 Use aliases for relational fields (#12759)
* Use aliases for relational fields

* Fix value for extra fields fetched by displays

* fix faulty spread syntax
2022-06-08 09:57:31 +02:00
Azri Kahar
f4c1a5745f Fix filter error when switching between collections with map layout (#13768)
* use computed locationFilter

* type fix
2022-06-07 15:34:59 -04:00
Rijk van Zanten
3a614d0058 Only render first 10000 items on calendar layout view (#13724)
* Update fullcalendar

* Update eslint
2022-06-03 17:49:54 -04:00
Rijk van Zanten
f03e2e4256 Add local export capability (#13099)
* Add local export capability

* Add local download capability to every layout

* Use queried fields in export logic

* Update tooltip text
2022-05-03 12:58:44 -04:00
Rob Lee
b62456fca8 first attempt at nested sorting (#12084)
* first attempt at nested sorting

* pull out addJoin so it can be reused

* Move get-relation-info to file, add tests

* Extract get-column-path, add tests

* Little cleanup

* Prevent the regex from blowing up with malicious input

* Allow sorting on m2o fields in the tabular layout

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-04-27 15:02:10 -04:00
Azri Kahar
26147acbe1 check for valid date when parsing end date (#12957) 2022-04-22 13:27:08 +00:00
Azri Kahar
c54434d854 Show minutes by default in Calendar month layout (#12929) 2022-04-21 14:17:58 +00:00
Jay Cammarano
f7c8789800 Move more utils to shared (#12825)
* getEndpoint()

* cssVar() and abbreviateNumber

* remove unneeded type. Tests.

* better tests

* getEndpoint Tests

* cssVar => browser folder, test not passing yet

* tests passing
2022-04-19 11:25:48 -04:00
Azri Kahar
6298b9e995 Prevent stale filter value when switching maps (#12797) 2022-04-18 10:23:23 -04:00
Azri Kahar
74c718c684 Sticky permissions overview header (#12704)
* Sticky permissions overview header

* refactor to script setup

* add header bar height as css variable
2022-04-13 10:33:15 -04:00
Rijk van Zanten
f89aa95140 Re-style file detail preview + replace interaction (#12689)
* Return BigIntegers as Strings in GraphQL

Fixes #12051

* Redesign fallback image style

* Re-add replace button in new position
2022-04-11 18:24:12 -04:00
Rijk van Zanten
02a01fa0c9 Align section label between layouts (#12641)
Fixes #12627
2022-04-08 10:02:24 -04:00
Azri Kahar
fab5543e33 Add first day of the week option to calendar (#12613) 2022-04-07 09:38:39 -04:00
rijkvanzanten
4b6fa290f0 Disable sorting on nested relational
Has to be disabled until #12084 lands
2022-03-18 16:03:28 -04:00
Ben Haynes
2474a0ddc0 Style updates (#12229)
* default badge color to red

* update notice styling to avoid color variants

* darker warning color

* update dark mode primary color

* update svg previews

* show slider values by default

* add subtle glow to field focus

* add additional color options

* no yellow in settings

* Give status display proper defaults

* Use setup script + translations

* Add low-contrast flag to preset

* update date-picker header style

* add placeholder to datetime interface

* Fix sizing of image preview

* Fix spacing / border situation

* select color

* Render small images at original size

* More file library love

* update datetime placeholder

* datetime font weights

* Fix style lint issue

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-03-18 15:52:04 +00:00
Rijk van Zanten
5a77ac2f30 Group groups in field select, add search when number of fields exceeds 20 (#12157)
* Group groups in field select

* Fix selecting nested o2m

* Add search to field-list

* Only show search if fields > 20

* Fix default value for v-input

* Add search to field selection

* Make search work on nested subset

* Make search work nested+insensitive

* Fix sorting in field select

* Fix relational fields nested in groups
2022-03-16 10:47:24 -04:00
rijkvanzanten
768ce16a14 Tweak an icon, have some fun with it 2022-03-14 15:51:23 -04:00
Rijk van Zanten
267cfd8554 Upgrade table layout (#12154)
* Refactor v-table to script setup, add header append slot

* Rework table components + fix volar config

* Convert table-row to setup sfc

* Remove vetur config, now that volar works

* Remove unused component

* Remove field option from sidebar detail

* Add reusable v-field-list component

* Disable already selected fields

* Add col header ctx menus on tabular

* Tweak styling, add hover to resize handle

* Add column reordering

* Add support for nested relational fields

* Render header for relational interfaces better

* Ellipsis overflow in formatted-value
2022-03-14 15:49:01 -04:00
Rijk van Zanten
6a3eb823c3 Update base theme of the App (#11952)
* Add migration to remove default value from project_color

* Upgrade the default theme

* Do a pass over the header buttons

* Do another pass over --warning uses

* Little things

* Tweak smoke

* Use updated map

* Use dark system elements in dark mode

* Remove outdated files, update toasts

* Use correct delete button style for role

* Use primary for created point

* Tweak spacing in revisions section

* Use primary for sidebar sections

* Various color tweaks and changes

* Update base color palette

* Update "css reset" code

* Remove splashscreens, add default favicon

* Add primary highlight to datamodel page

* dark mode color update

* fix sign out hover color

* Does this help?!

* This fixes some loading issues

Fixes https://github.com/directus/directus/issues/10707

* Calculate default pretty background?

* Fix public view with logo

* Fix responsiveness of login page

* adjust notification group width to be equal

* Do an absolute pointless task that doesn't do anything

It was suggested that it could fix the stylelint error in tests, but alas

* Remove stylelint

Doesn't seem to play nice with script setup and other changes

Co-authored-by: Ben Haynes <ben@rngr.org>
2022-03-04 18:53:39 -05:00
Malte Jürgens
04c65e6d09 Fix Map Attribution Problems (#10696)
* Fix Map Attribution Errors

* Move "Limit" Dropdown to the left

* fix pagination styles

* move attribution to the left
2021-12-27 14:35:52 -05:00
Malte Jürgens
75abe59951 Add OpenStreetMaps Attribution (#10691) 2021-12-25 23:38:40 -05:00
Oreille
500d57073c Removed unused GeometryFormat (#10341) 2021-12-06 17:17:40 +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
José Varela
eb68f85e54 Support 'selectionMode' on tabular and cards (#8010)
* showSelect as 'none', 'one' or 'multiple' on table

* showSelect on cards

* showSelect and fix on calendar

* showSelect and fix on map

* fix layout selection prop type

* fix tabular row click on select mode

* remove unused import

* minor strict equality changes

* hide checkbox for activity table

* Update app/src/modules/notifications/routes/collection.vue

Co-authored-by: ian <licitdev@gmail.com>

* Make preset item reactive

* Add comment clarifying ref wrapper

* Fix type signature of layout props

Co-authored-by: Azri Kahar <azrikahar@outlook.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-12-02 16:02:13 -05:00
Pascal Jufer
d4ec4a9672 Fixing some type errors in app #2 (#9637)
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-12-01 17:36:56 -05: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
Jay Cammarano
25375cc481 Add notifications system and support user mentions in comments (#9861)
* v-menu de/activated onKeyDown. No List yet.

* v-list

* add user suggestion

* uuids replaced

* user-popover working

* avatars flex row with usernames in suggestions

* added space to end of uuid insert

* autofocus + move caret to end of last insert

* removed unnecessary setTimeout()

* fixed filter 500 with ids

* better fix

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

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

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

* New translations en-US.yaml (Russian) (#9918)

* New translations en-US.yaml (Swedish) (#9920)

* Email updates (#9921)

* add from name for emails

* updatd email template style

* reset password email copy

* updated logo to newest version

* update invite email copy

* decouple field template logic

* push up styling

* Start on new v-template-input

* Add notifications API endpoints

Squashed commit of the following:

commit 9d86721ef795d03bc55693c0f99bde8e269d60e9
Merge: b4458c19f 34131d06e
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Mon Nov 22 09:27:43 2021 -0500

    Merge branch 'mentions' into mentions-api

commit b4458c19f7c54f18fa415fc04c63642c2f5a17b0
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Nov 18 18:34:04 2021 -0500

    Remove unused import

commit e6a9d36bbfdf95cb18d29336da61ecb14b677934
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Nov 18 18:28:31 2021 -0500

    Extract user mentions from comments

commit b3e571a2daa287e1740a050096913662a57e9861
Merge: c93b833d2 af2a6dd7f
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Nov 18 17:39:52 2021 -0500

    Merge branch 'mentions' into mentions-api

commit c93b833d2b848e306c434b370d4e4e11967e85d0
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Nov 18 17:35:45 2021 -0500

    Send emails w/ parsed MD

commit 64bbd6596f20a07028d2387d60e33dfe4f91c032
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Nov 18 16:18:16 2021 -0500

    Add notifications endpoint + permissions

commit fba55c02dc9c303a38b1b958350684cccd3dd82c
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Thu Nov 18 15:33:28 2021 -0500

    Add system data for notifications

* push

* Make v-template-input work

* Add the two-way binding

* submit button posting, not clearing text area

* comment text area clearing on submit

* Replace insertion correctly

* Added scope support to LDAP group and user search (#9529)

* Added scope support LDAP group and user search

* Fixed linter screwing up my markdown

* Update docs/configuration/config-options.md

* Always return correct DN for user with sub scope

* Fix indeterminate meta and schema property in advanded field creation (#9924)

* Fix impossibility to save M2M (alterations not triggered) (#9992)

* Fix alterations refactor

* fix roles aggregate query (#9994)

* Update iis.md (#9998)

added the IIS URL Rewrite module as a requirement

* New translations en-US.yaml (English, United Kingdom) (#10001)

* Fix LDAP race condition (#9993)

* Fix input ui

* Revert changes to v-field-template

* Update mentions permissions

* Fix linter warnings

* Optimize sending flow

* Revert "Rename activity->notifications module (#9446)"

This reverts commit 428e5d4ea9.

* Add notifications drawer

* Update migrations

* Improve constraints

* Add email notifications toggle on users

* Add docs, fix graphql support

* Move caret-pos to devdeps

* Remove unused new triggerKeyPressed system

* Remove unused use-caret composable

Co-authored-by: Nitwel <nitwel@arcor.de>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Ben Haynes <ben@rngr.org>
Co-authored-by: Aiden Foxx <aiden.foxx@sbab.se>
Co-authored-by: Oreille <33065839+Oreilles@users.noreply.github.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: Paul Boudewijn <paul@helderinternet.nl>
2021-11-24 16:11:26 -05:00
Oreille
094384647d Use correct filter in calendar layout (#9914) 2021-11-22 14:32:32 -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
e7f64292b4 Patch parameter type for syncRefProperty (#9662)
* Patch parameter type

* Use computed value for reactivity
2021-11-09 14:00:04 -05:00
Oreille
ce97a40271 Fix unexpected camera update and unavailable clustering option in map (#9615)
* Fix unexpected camera update and unavailable clustering option in map layout.

* lint warning

* Use defaultSort ref instead of value.

Co-authored-by: Azri Kahar <azrikahar@outlook.com>
2021-11-09 16:03:27 +00:00
Oreille
68a755b87d Use view.activeStart instead of view.currentStart in calendar layout date filter (#9638) 2021-11-09 20:02:29 +08:00
Ben Haynes
24df365135 Data model dense (#9558)
* remove extra popup padding

* tweak sidebar spacing

* use dense on data model collection listing
2021-11-06 16:00:11 -04:00
Adrian Dimitrov
b8fabe46f2 Fix missing and wrong translations (#9537) 2021-11-05 12:30:59 -04:00
Oreille
5f43b20ebf Update geometric types and patch new field flow. (#9397)
* Update geometric types and patch new field flow.

* Add migration

* Fixed migrations

* Also fixed migrations

* Update migration ID

* Cleanup type selector a bit

* Add missing fallback interface/display for new types

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-11-04 21:47:54 -04:00
rijkvanzanten
4259587ce5 Remove leading slash 2021-11-04 12:09:42 -04:00
Rijk van Zanten
abfc7ba899 Resolve calendar link to detail page (#9477) 2021-11-04 12:08:46 -04:00
Rijk van Zanten
caa053a467 Rename Collections Modules to Content Module (#9441)
* Rename collections->content module

* Replace collection name

* Replace some loose ends
2021-11-03 18:34:55 -04:00
Oreille
013733a8b9 Use primary key as default sort in map layout (#9403) 2021-11-03 13:17:51 -04:00
Oreille
6331ad0347 Map layout and interface improvements (#9288)
* Map layout and interface improvements
* Fix marker not showing up on geocoder search
* Replaced geocoder search placeholder
* Fix geocoder hit area
* Fix item popup positioning
* Removed unselect button
* Removed "No results" popup
* Removed option to filter map on demand vs automatically
* Renamed Geometry field option
* Added placeholder to template option
* Hide "Delete" button when no feature are selected

* Lint fix

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-11-01 16:33:09 -04:00
Oreille
d917274fab Set calendar height to 100% (#9295)
* Set calendar height to 100% and set `smallHeader to true

* Unset `smallHeader`

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-11-01 11:58:48 -04:00
Oreille
1a52c23761 Map interface improvements (#9239)
* Add tooltips on feature hover on the interface
* Add marker on geocoder search result
* Improve map interface style
2021-10-29 12:24:45 -04:00
renovate[bot]
54ba54d3d6 Update dependency stylelint to v14 (#9016)
* Update dependency stylelint to v14

* Update dependency stylelint-scss to v4

* Update dependency stylelint-order to v5

* Undo command change

* Update stylelint command

* Use modern color syntax

Who knew this was already supported everywhere? Awesome!!

* Update stylelint-config-standard

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-10-25 22:26:57 -04:00
José Varela
a7c16ca975 Feat: allow ctrl click to open new tab on tabular (#9115)
* feat: allow ctrl click to open new tab on tabular

* support metaKey + click
2021-10-25 11:22:48 -04:00