Commit Graph

671 Commits

Author SHA1 Message Date
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
Rijk van Zanten
eea9f45624 Add authenticate hook to implement custom auth checks against current request (#11942)
* Add "authenticate" filter hook that allows custom auth check

* Start on test

* Update Jest, restructure API tests, start implementing authenticate test

* Move access token verify to util function

* Ensure jest can show inline warnings on correct lines

* Update is-directus-jwt to use jsonwebtoken decode + add tests

* Remove unused package

* Tweak and finish + test authenticate

* Tweak test

* Add authenticate filter to docs

* Don't scan tests for codeql

* No seriously, ignore tests
2022-03-03 16:29:13 -05:00
Eron Donevan Powell
1bc7da6967 Docs: update CSS and pics (#11634)
* .gitignored package-lock.json that was created in the docs subfolder

* tweaked color names, except the ones in in vue files

* converted terminal screencaps into markdown

* updated images in 'Content'

* updated user-directory images

* updated media in file-library

* moved picsto cloud in reference>files

* updated images in config > datamodels > relationships

* updated primary colors in app-overview.svg

* updated insights images

* swapped quickstart-guide media and touched up copy

* Update last colors, remove linting from docs temporarily

* Fix theme color

* Update homepage header image

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-02-21 15:32:09 -05:00
Rijk van Zanten
4e68cd2df4 Upgrade E2E test setup (#11272) 2022-01-25 21:37:39 +00:00
Jay Cammarano
ef9b30c0e1 Integration tests set up and examples (#10419)
* tsconfig loosened to match api

* integration test folder and script

* .env mock isn't needed

* mock-env, locations of tests

* I was wrong.

* Updated progress

* schemas => getSchema(), exported getColumnPreprocessor()

* change imports to allow build

* add MockClient as DB Client (should mock getDBClient())

* move authservice into. not used elsewhere

* test passing

* remove unneeded test for this PR

* removed unneded fields from rawItem

* formatting

* createOne test passing

* typo

* removed int specific jest.config

* use systemSchema over getSchema()

* this.knex over getDatabase()

* mock getDatabaseClient

* removed unused mock-env

* formatting

* removed unused collections from schema

* response => responseOnce

* more direct

* unused var

* more tests please!

* test for: createOne no permissions

* removed broken test for now

* clean up

* readOne tests what does into db and returned

* added bindings check

* added into db sql check

* moved tests outside src

* changed ts config

* cli test location changed

* removed looking for tests in src

* readding it for e2e tests? Seems fishy

* Integration tests for ItemsService user tables (#11208)

* renamed ItemsService test to match src file name

* add user table schema

* system/user tables use .each, formatting needed

* format system and user better in title

* tables/table=> schemas/schema

* filter _eq test passing

* comment for later and formatting

* everything in it's right place

* future proofing as more fields are added

* removed duplicate test

* formatting

* readMany() filter: _or

Co-authored-by: Jay Cammarano <jaycammarano@gmail.com>

* added knex check before getDatabase()

* Move util test to tests folder

Co-authored-by: Jay Cammarano <jaycammarano@gmail.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-01-24 19:55:08 +00:00
Oreille
9dda9caddb Enable end-to-end tests for Oracle and SQLite (#11094)
* Enable end-to-end tests for Oracle and SQLite

* Add Oracle back to allVendors

* Use yum

* Use dnf

* Actually use yum

* Actually use dnf

* Actually use yum

* Try again

* Try manual install

* Fix env declaration

* Bump knex version (because https://github.com/knex/knex/issues/4844)

* Set max pool size for Oracle

* Add awaitDatabaseConnection

* Cache install and build step

* Run different tests sequentially

* Fix workflow name

* Show test results

* Fix names

* Fix success check

* Fix outputs

* Add oracle driver install

* Fix env

* Revert to previous structure to benchmark performance

* Only build specs and drive packages for unit tests

* Don't install everything to run linters

* Use this branch

* Fix missing lint dep

* Revert "Don't install everything to run linters", also build shared package

* Skip app build for tests

* Don't serve app for e2e tests

* Change time fields to timestamp becaues of inconsistencies between vendors

* Make npm ci faster

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-01-19 13:00:44 -05:00
renovate[bot]
054c085f74 Update Node.js to v16.13.2 (#11086)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-17 14:34:35 -05:00
Jay Cammarano
00a838f020 Docs for testing the API (#10275)
* mock-knex

* test on the migrations run started.

* test passing for run.up()

* reorganize /tests/ to allow integration tests

* e2e setup changes

* e2e jest.config moved

* e2e paths fixed, integration config

* add nonadmin role and user seed+migration

* auth/login w/ documentation (docs will be moved)

* update user seed

* add postgres10 to the ci?

* argon2 saves the day

* items tests passing with postgres10 support

* removed comments

* move generateHash out of directus_users

Co-authored-by: Jay Cammarano <jaycammarano@gmail.com>
2021-12-10 14:58:51 -05:00
renovate[bot]
b2dffeb4de Update Node.js to v16.13.1 (#10319)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-06 10:08:54 -05:00
renovate[bot]
241dc13c65 Update NPM dependencies (non-major) (#9968)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-22 10:05:40 -05:00
renovate[bot]
ad3a503f25 Update NPM dependencies (non-major) (#9585)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-09 11:18:41 -05:00
renovate[bot]
39918a1c6b Update NPM dependencies (non-major) (#9506)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-06 16:15:32 -04:00
renovate[bot]
88f1684803 Update dependency knex to v0.95.13 (#9378)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-02 20:10:00 -04:00
renovate[bot]
a58bedafb5 Update typescript-eslint monorepo to v5.3.0 (#9317)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-01 18:06:35 +00:00
renovate[bot]
366eb3e775 Update dependency knex to v0.95.12 (#9208)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-11-01 14:04:25 -04:00
renovate[bot]
195e46fe32 Update dependency npm to v8.1.2 (#9221)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-01 12:43:09 -04:00
Rijk van Zanten
41abc23922 Update package.json 2021-10-29 17:26:27 -04:00
Rijk van Zanten
58f1c7621f Update package.json 2021-10-29 17:25:32 -04:00
renovate[bot]
641ee9f97c Update dependency simple-git-hooks to v2.7.0 (#9195)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-27 18:32:52 -04:00
renovate[bot]
d4af01bf5a Update dependency lint-staged to v11.2.6 (#9175) 2021-10-26 19:58:22 -04:00
renovate[bot]
ccc8042df8 Update Node.js to v16.13.0 (#9174)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-26 18:33:34 +00:00
renovate[bot]
76ba6f1bc6 Update dependency stylelint to v14.0.1 (#9168)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-26 12:52:00 -04:00
renovate[bot]
93481302e6 Update dependency lint-staged to v11.2.5 (#9155)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-26 09:49:06 -04:00
renovate[bot]
01e091e27f Update typescript-eslint monorepo to v5.2.0 (#9133)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-26 06:18:51 +00:00
renovate[bot]
8f7b8e863f Update dependency oracledb to v5.3.0 (#9042)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-26 06:13:37 +00:00
renovate[bot]
1c0d17d48e Update dependency eslint to v8.1.0 (#9091)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-26 06:10:11 +00:00
renovate[bot]
1d2f139bb6 Update dependency ts-node to v10.4.0 (#9083)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-26 03:25:06 +00:00
renovate[bot]
1a1eca43dd Pin dependency stylelint-config-standard to 23.0.0 (#9140)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-25 22:35:22 -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
renovate[bot]
8e89110ac2 Update dependency stylelint-config-standard to v23 (#9026)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-25 21:36:26 -04:00
renovate[bot]
24bbe3114c Update dependency axios to v0.24.0 (#9132)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-25 20:52:06 -04:00
renovate[bot]
ade9d0c822 Update dependency lint-staged to v11.2.4 (#9100)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-25 20:38:09 -04:00
renovate[bot]
3402869a45 Update Node.js to v16.12.0 (#9137)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-25 20:29:45 -04:00
renovate[bot]
a257f324c0 Update dependency rollup to v2.58.3 (#9114)
* Update dependency rollup to v2.58.3

* node version

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jay Cammarano <jay.cammarano@gmail.com>
2021-10-25 18:45:12 -04:00
renovate[bot]
667341ad99 Update dependency npm to v8 (#8625)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-25 16:15:13 -04:00
renovate[bot]
f8587497d8 Update dependency ts-node to v10.3.1 (#9025)
* Update dependency ts-node to v10.3.1

* Update package-lock

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-10-21 15:10:39 -04:00
renovate[bot]
cce1c05b4c Pin dependencies (#8980)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-20 16:42:15 -04:00
Jay Cammarano
a379c77280 E2E Factories and Testing Migration and Seeding (#8912)
* added faker

* added factories and tests

* removed unnecessary factory

* new schema

* seedTable test

* included all dbs in db relevant tests

* json string for insert in dbs that aren't postgres

* added organizer

* polished up geometry types

* added raw option to seedTable return

* forgot await disonnect

* createMany func with test

* remove an only

* createMany w/ options for relations and tests

* tests for json field

* removed an only

* json support

* factories working, ignore tests leaving for future
2021-10-20 17:24:34 +00:00
renovate[bot]
8c6a7b1b3e Update jest monorepo to v27.3.1 (#8967)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-20 09:23:55 -04:00
renovate[bot]
84ba3d0032 Update typescript-eslint monorepo to v5.1.0 (#8974)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-20 09:21:13 -04:00
renovate[bot]
30c1a64ed1 Update dependency eslint-plugin-vue to v7.20.0 (#8971)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-20 09:07:03 -04:00
renovate[bot]
6e3a63df2b Update jest monorepo to v27.3.0 (#8918)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-18 15:33:32 +00:00
renovate[bot]
f3400bb54d Update dependency ts-jest to v27.0.7 (#8915)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-18 11:02:42 -04:00
renovate[bot]
4fb2dcc9a9 Update dependency ts-jest to v27.0.6 (#8803)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-14 16:53:18 -04:00
renovate[bot]
7eb15389d4 Update dependency stylelint-config-prettier to v9.0.3 (#8802)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-14 16:28:43 -04:00
renovate[bot]
5f3c5660ae Update dependency eslint to v8 (#8681)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-14 11:14:45 -04:00
renovate[bot]
350025f973 Update dependency nanoid to v3.1.30 (#8775)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-13 23:40:17 +00:00
Jay Cammarano
eaa5cc1f86 tedious downgrade and remove sqlite3 from tests. (#8771) 2021-10-13 21:17:33 +00:00
renovate[bot]
b9a2a3a18b Update dependency axios to v0.23.0 (#8744) 2021-10-12 14:45:16 -04:00
renovate[bot]
ae77ec8e2f Update dependency @types/dockerode to v3.3.0 (#8741)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-12 17:49:36 +00:00