Commit Graph

598 Commits

Author SHA1 Message Date
renovate[bot]
f4ed9d27e2 update dependency date-fns to v2.23.0 (#7637)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-26 17:39:06 -04:00
Nicola Krumschmidt
ba43e3139e Add create-directus-extension package (#7329)
* Make spinner success message bold in extension cli

* Expose extension-sdk cli functions

* Add create-directus-extension package

* Bump version

* Fix type fun times

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-08-26 17:32:27 -04:00
Nicola Krumschmidt
8dead37a0c Allow json imports and replace NODE_ENV env var when building extensions (#7627)
* Replace NODE_ENV env var when building extensions

* Add json plugin to extension build chain
2021-08-26 16:24:43 -04:00
Nicola Krumschmidt
0230174b84 Enable browser module resolution when building app extensions (#7624)
Fixes #7620
2021-08-26 10:56:32 -04:00
Nicola Krumschmidt
e7af9f5b5d Share vue-router between App and extensions (#7629)
It is very unlikely that we will ever stop using vue-router.
Without this it is not possible to use useRouter() in extensions.
2021-08-26 10:36:33 -04:00
renovate[bot]
56ad9eeab7 update dependency nock to v13.1.3 (#7595)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-25 11:37:40 -04:00
renovate[bot]
1ef1e13407 update vue monorepo to v3.2.6 (#7579)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-24 14:01:54 -04:00
renovate[bot]
28fd3bf369 update vue monorepo to v3.2.5 (#7576)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-24 12:47:04 -04:00
rijkvanzanten
8f943a34f9 v9.0.0-rc.91 2021-08-23 16:08:06 -04:00
renovate[bot]
19ed19be72 update dependency ts-jest to v27.0.5 (#7453)
* update dependency ts-jest to v27.0.5

* update dependency @types/jest to v27

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-23 10:43:44 -04:00
renovate[bot]
cfa94b4bd4 update dependency rollup to v2.56.3 (#7542)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-23 09:37:19 -04:00
renovate[bot]
44a9ac013a update dependency @types/js-yaml to v4.0.3 (#7529)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-22 16:07:11 -04:00
renovate[bot]
764f3d1b0d update dependency nock to v13.1.2 (#7530)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-22 16:06:35 -04:00
Jacob Rienstra
07848b73af Image auth (#7528)
* basic gatsby source plugin fix

* update import of sdk

* remove tar

* auth for images

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-08-20 16:54:52 +00:00
Sam Milledge
e1cbfc4ca4 Fix SDK request url in fields update one request (#7514)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-08-20 09:59:58 -04:00
renovate[bot]
1ef34d060d pin dependency gatsby-source-graphql to 3.12.0 (#7524)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-20 09:53:35 -04:00
Jacob Rienstra
cbefa74070 Update dependencies of gatsby-source-directus (#7523)
* basic gatsby source plugin fix

* update import of sdk

* remove tar

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-08-20 13:45:37 +00:00
Rijk van Zanten
ebb810b9af Explicitly nullify user/role when the other is set in presets (#7512)
Fixes #7366
2021-08-20 00:15:43 +02:00
renovate[bot]
05b3f27b78 pin dependency jest-environment-jsdom to 27.0.6 (#7504)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-19 12:52:43 -04:00
Rob
8c965ba1e7 Fix SDK Tests (#7469)
* POST instead of PATCH for invite accept test

* Replace Jest JSDOM environment

Using `jest-environment-jsdom-global` didn't seem to bring any used advantages over the default `jest-environment-node`

* remove mockdate, use modern jest fake timers

* update package lock

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Jay Cammarano <67079013+jaycammarano@users.noreply.github.com>
2021-08-19 10:51:45 -04:00
Oreille
49e4a9b0de Don't allow empty filter for non-string types. Add null filter. (#7501) 2021-08-19 10:02:54 -04:00
renovate[bot]
67e9b94f10 update dependency gatsby-source-filesystem to v3.12.0 (#7482)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-18 15:19:26 -04:00
Oreille
fb64df54be Fix server error when a postgres view contains geometry columns (#7487)
* Fix server error when a postgres view contains geometry columns

* Fixed typo

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-08-18 15:19:12 -04:00
renovate[bot]
d66d55a6bf update dependency ts-node to v10.2.1 (#7495)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-18 14:14:06 -04:00
Oreille
02cf1741bb Fix server error when a postgres view contains geometry columns (#7486) 2021-08-18 15:14:46 +02:00
Nicola Krumschmidt
f933663972 Add basic support for a config file to extension building (#7332)
The config file has to be a file inside the cwd.
It should be named "extension.config.(m|c)?js".
Right now it only supports specifying a plugins array.
2021-08-17 16:55:32 -04:00
renovate[bot]
6144b5b815 update vue monorepo to v3.2.4 (#7467)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-08-17 14:29:55 -04:00
Ben Haynes
60fc455bbd Add FAQs to title formatter 2021-08-17 11:19:05 -04:00
renovate[bot]
9d9e2800d1 update vue monorepo to v3.2.3 (#7444)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-17 10:57:26 -04:00
renovate[bot]
33f71a4294 update dependency marked to v3 (#7424)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-16 10:32:59 -04:00
Nicola Krumschmidt
415f6d1a94 Move geojson from devDeps to deps of shared (#7403)
Geojson has to be a regular dependency in order for the imported types to be available when installing shared.
Ideally, we should bundle type definitions to a single file.
2021-08-13 09:08:35 -04:00
renovate[bot]
0b720daee2 pin dependencies (#7384)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-12 16:11:03 -04:00
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
renovate[bot]
0207d78ffe update vue monorepo to v3.2.2 (#7355)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-11 17:43:55 -04:00
rijkvanzanten
9f4e855826 v9.0.0-rc.90 2021-08-11 13:46:49 -04:00
Pascal Jufer
cacd4f4ff1 Fix HTTP method for collections.createMany in SDK (#7304)
* Fix HTTP method for collections.createMany in SDK

* Post collections in data body

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-08-10 09:30:24 -04:00
renovate[bot]
b4a6d73835 update dependency rollup to v2.56.2 (#7303)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-10 08:56:38 -04:00
rijkvanzanten
dc9ede85ee v9.0.0-rc.89 2021-08-09 17:27:01 -04:00
renovate[bot]
1fa975e59f update vue monorepo to v3.2.1 (#7293)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-09 21:20:38 +00:00
renovate[bot]
5ad5544bf4 update dependency vue to v3.2.0 (#7289)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-09 16:35:59 -04:00
Nicola Krumschmidt
e5683e0d0b Fix gitignore file in extension templates being deleted when publishing (#7279) 2021-08-09 12:00:09 -04:00
Nicola Krumschmidt
aca8c1078e Only loads app extensions if SERVE_APP is true (#7275)
This also ensures API/App only load their respective extensions in dev.
2021-08-09 09:44:27 -04:00
renovate[bot]
d1b851e34a update dependency ts-node to v10.2.0 (#7271)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-09 09:38:49 -04:00
renovate[bot]
e43065bc12 update dependency vue-router to v4.0.11 (#7272)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-09 09:38:35 -04:00
renovate[bot]
4449310c1a update dependency rollup to v2.56.1 (#7269)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-09 09:38:24 -04:00
Rijk van Zanten
90793d5645 Don't use tags interface for CSV filter (#7258)
Fixes #6778
2021-08-06 23:53:15 +02:00
renovate[bot]
4bd5c94669 update dependency rollup to v2.56.0 (#7208)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-05 09:25:32 -04:00
Rijk van Zanten
d0f6cb35e3 Support dynamic variables in conditional fields (#7202)
* Move accountability type to shared

* Rely on shared for parse-filter

* Install date-fns

* Support dynamic variables in conditional fields

Closes #7157
2021-08-05 01:51:15 +02:00
Jay Cammarano
61a994ea4f added .keep to common folder (#7196) 2021-08-04 16:15:02 -04:00
Jay Cammarano
1e16065bb0 Updated routes for SDK Settings, Relations, Collections, and Fields (#7192)
* draft

* enpoints tested(manually) and working

* Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>

* removed optional params

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-08-04 16:00:05 -04:00