Commit Graph

133 Commits

Author SHA1 Message Date
Oreille
83e8814b2d Add support for Geometry type, add Map Layout & Interface (#5684)
* Added map layout

* Cleanup and bug fixes

* Removed package-lock

* Cleanup and fixes

* Small fix

* Added back package-lock

* Saved camera, autofitting option, bug fixes

* Refactor and ui improvements

* Improvements

* Added seled mode

* Removed unused dependency

* Changed selection behaviour, cleanup.

* update import and dependencies

* make custom style into drawer

* remove unused imports

* use lodash functions

* add popups

* allow header to become small

* reorganize settings

* add styling to popup

* change default template

* add projection option

* add basic map interface

* finish simple map

* add mapbox style

* support more mapbox layouts

* add api key option

* add mapbox backgrounds to layout

* warn when no api key is set

* fix for latest version

* Improved map layout and interface, bug fixes, refactoring.

.

.

* Added postgis geometry format, added marker icon shadow

* Made map buttons bigger and their icons thinner. Added transition to header bar.

* Bug fixes and error handling in map interface.

* Moved box-select control out of the map component. Removed material icons sprite and use addImage for marker support.

* Handle MultiGeometry -> Geometry interface error.

* Removed hardcoded styles. Added migrations for basemap column. Lots of refactoring.

Removed hardcoded styles. Added migrations for basemap column. Lots of refactoring.

* Fixed style reloading error. Added translations.

* Moved worker code to lib.

* Removed worker code. Prevent Mapbox from removing access_token from the URL.

* Refactoring.

* Change basemap selection to in-map dropdown for layout and interface.

* Touchscreen selection support and small fixes.

* Small change.

* Fixed unused imports.

* Added support for PostgreSQL identity column

* Renamed migration. Added crs translation.

* Only show fields using the map interface in the map layout.

* Removed logging.

* Reverted Dockerfile change.

* Improved crs support.

* Fixed translations.

* Check for schema identity before updating it.

* Fixed popup not updating on feature hover.

* Added feature hover styling. Fixed layer customization input. Added out of bounds error handling.

* Added geometry type and support for database native geometries.

* Fixed linting.

* Fixed layout.

* Fixed layout.

* Actually fixed linting

* Full support for native geometries
Fixed basemap input
Improved feature popup on hover
Locked interfaced support

* Fixed geometryType option not updating

* Bug fixes in interface

* Fixed crash when empty basemap settings. Fixed fitBounds option not updating.

* Added back storage type option. Improved interface behaviour.

* Dropped wkb because of vendor inconsistency with binary data

* Updated layout to match new geometry type. Fixed geojson payload transform.

* Added missing geometry_format attributes to local types.

* Fixed typos & refactoring

* Removed dependency on proj4

* Fix error when empty map interface options

* Set geometry SRID to 4326 when inserting into the database

* Add support for selectMode

* Fix error on initial source load

* Added geocoder, use GeoJSON for api i/o, removed geometry_format option, refactoring

* Added geometry intersects filter. Created geometry helper class.

* Fix error when null geometryOptions, added mapbox_key setting.

* Moved all geometry parsing/serializing into processGeometries in `payload.ts`. Fixed type errors.

* Migrate to Vue 3

* Use wellknown instead of wkx

* Fixed basemap selection.

* Added available operator for geometry type

* Added nintersects filter, fixed map interface for filter input

* Added intersects_bbox filter & bug fixes.

* Fixed icons rendering

* Fixed cursor icon in select mode

* Added geometry aggregate function

* Fixed geometry processing bug when imported from relational field.

* Fixed error with geocoder instanciation

* Removed @types/maplibre-gl dependency

* Removed fitViewToData options

* Merge remote-tracking branch 'upstream/main' into map-layout

* Fixed style and geometryType in map interface options

* Fixed style change on map interface.

* Improved fitViewToData behaviour

* Fixed type imports and previous merge conflict

* Fixed linting

* Added available operators

* Fix and merge migrations

* Remove outdated p-queue dep

* Fix get-schema column extract

* Replace pg with postgis for local debugging

* Re-add missing import

* Add mapbox as a basemap when key exists

* Remove unused tz flag

* Process delta in payloadservice

* Set default map, add limit number styling

* Default display template to just PK

* Tweak styling of error dialog

* Fix method usage in helpers

* Move sdo_geo to oracle section

* Remove extensions from ts config exclude

* Move geo types to shared, remove _Geometry

* Remove unused type

* Tiny Tweaks

* Remove fit to bounds option in favor of on

* Validate incoming intersects query

* Deepmap filter values

* Add GraphQL support

* No defaultValue for geometryType

* Resolve c

* Fix translations

Co-authored-by: Nitwel <nitwel@arcor.de>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-08-12 22:01:34 +02:00
Rijk van Zanten
92e1ee77bd Add support for Conditional Fields (#6864)
* Add conditions field to directus_fields

* Add conditions configuration

* Apply conditional overrides

* Handle conditions in nested groups

* Fix reverse mutating conditions

* Start on filter setup interface

* Move field types/constants to shared

* [WIP] Updated client side filter validation

* Support logical operators in client validation step

* Use new validation util in conditions check

* Add nesting in filter seutp

* Add filter rule setup configurator

* Fixes that should've been done in the merge

* Strip out filter-settings interface

TBD in a new PR

* Move browser to index
2021-07-26 18:02:24 -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
c310afa846 Rely on npm Workspaces for module resolving (#4656)
* Move devDeps to API

* Move app to npm workspaces

* Tweaks / add lockfiles

* Add locks, fix devdeps across packages

* Move eslint config rootlevel

* Use eslint fix for vue files instead of vue-cli-service

* Add global prettier format option

* Create lockfiles for all packages

* Replace husky with simple-git-hooks
2021-03-24 16:01:49 -04:00
Ben Haynes
a769711772 default color 2021-03-08 15:12:58 -05:00
rijkvanzanten
fa7daa1f86 Revert seeds change 2021-03-05 10:32:56 -05:00
rijkvanzanten
1e89c25872 Remove "locked" field from directus_fields
Closes #3925
2021-03-04 18:41:59 -05:00
Nicola Krumschmidt
08293b8570 Update Knex to version 0.95.0 (#4374)
* Update Knex to version 0.95.0

* Fix formatting in schema dialects

* Fix Knex imports

* Update package-lock

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-03-03 19:37:44 -05:00
rijkvanzanten
05f0bc967e Turn hash into type
Fixes #3542
2021-01-12 17:08:19 -05:00
Igor Savin
7cddb458cb Run prettier across app and api 2020-12-08 02:22:00 +02:00
rijkvanzanten
dca88cefa6 Fix seed creation on SQLite 2020-11-13 17:30:36 -05:00
rijkvanzanten
3a620fe1f8 Fix migrations reading .ts files 2020-10-30 15:50:00 -04:00
rijkvanzanten
1b0d381161 Fix seeder data, run migrations on install through cli 2020-10-30 11:52:16 -04:00
rijkvanzanten
bcb4041ff9 Add migrations 2020-10-29 14:05:36 -04:00
rijkvanzanten
ee9baf02c0 Move system fields out of DB 2020-10-29 13:06:37 -04:00
rijkvanzanten
3bf7f6e6a8 Add migration for removing FK constraint to collections 2020-10-28 17:30:09 -04:00
rijkvanzanten
23fd029687 Move system collection rows out of DB 2020-10-28 16:26:46 -04:00
rijkvanzanten
b4f82efcee Return project branding in /server/info endpoint at all times 2020-10-26 18:52:51 +01:00
Nicola Krumschmidt
3052b850ef Remove field.meta.required property 2020-10-22 18:52:45 +02:00
Nicola Krumschmidt
151df2b63c Make Storage Asset Presets options required 2020-10-22 18:50:06 +02:00
rijkvanzanten
f583fae41a Allow setting now() as default value
Fixes #742
2020-10-21 13:28:33 +02:00
rijkvanzanten
51c2eb0af9 Set default value for modified on column
Fixes #716
2020-10-21 13:06:36 +02:00
rijkvanzanten
6c0afa9651 Add userName util function to render user's name 2020-10-19 13:31:44 -04:00
rijkvanzanten
4d8ba0ad93 Fix datetime interface name 2020-10-19 10:19:56 -04:00
rijkvanzanten
387571f745 Fix sort values of user detail page 2020-10-15 18:00:37 -04:00
rijkvanzanten
c116f90d7a Remove timezone field from directus_users
Fixes #42
2020-10-15 17:38:06 -04:00
rijkvanzanten
e5152fca6d Add missing relation seeds 2020-10-15 10:34:13 -04:00
rijkvanzanten
7f23159760 Default new users to active status 2020-10-15 10:26:28 -04:00
rijkvanzanten
121e200a11 Use csv type for ip access 2020-10-13 15:49:52 -04:00
rijkvanzanten
1c405000fc Add custom css field to settings 2020-10-13 15:24:16 -04:00
rijkvanzanten
773edc6e6e Use boolean flag for webhooks "data" field
Fixes #614
2020-10-12 17:25:06 -04:00
rijkvanzanten
c11c42584f Merge branch 'main' into fix/i18n 2020-10-12 14:24:41 -04:00
rijkvanzanten
470ff12859 Set correct primary key for collections in relations 2020-10-12 14:17:56 -04:00
rijkvanzanten
fa2e255b7e Update spec service to use m2a 2020-10-12 14:16:54 -04:00
Rijk van Zanten
c8092011b2 Merge pull request #585 from directus/fix-381
Add unnamed custom collection grouping.
2020-10-11 19:03:13 -04:00
Rijk van Zanten
5230ed44ec Merge branch 'main' into add-modified_on 2020-10-11 18:53:42 -04:00
maartenvn
716784a1c8 Replace 'locale' with 'language'
- Update fields translations use 'language' instead of 'locale'
- Replace all translation files from locale to language
- Update the docs with locale to language
2020-10-10 00:59:10 +02:00
rijkvanzanten
34323d48fc Add one_collection_field / one_allowed_collections columns to relations 2020-10-09 13:07:15 -04:00
Nitwel
7753b79f02 add headerPlaceholder prop to repeater 2020-10-09 18:42:42 +02:00
Nitwel
447c59ce2d clean code 2020-10-09 14:05:00 +02:00
Nitwel
fb756f75f4 support unnamed collection navigations and fix repeater naming 2020-10-08 11:35:06 +02:00
Nitwel
a5e59d050e add displays 2020-10-08 10:39:46 +02:00
Nitwel
c2751a630b add displays for hidden fields 2020-10-08 10:38:30 +02:00
Nicola Krumschmidt
b824b9fa10 Add relation between presets and roles to seeds
This fixes the presets and bookmarks browse view showing All instead of
the role if the scope is set to a role.
2020-10-08 02:16:15 +02:00
Ben Haynes
157878b387 fixes #487 2020-10-07 17:25:37 -04:00
Nitwel
6aab9a76eb add modified_by 2020-10-07 19:10:16 +02:00
Nitwel
7b257cd038 add modified_on to files 2020-10-07 18:51:23 +02:00
Ben Haynes
6cb496492c Fix activity action display 2020-10-06 16:19:18 -04:00
rijkvanzanten
746e4de41a Set proper default browse preset for roles
Fixes #525
2020-10-05 17:35:52 -04:00