diff --git a/.eslintignore b/.eslintignore index 3897265..c9c8fb2 100644 --- a/.eslintignore +++ b/.eslintignore @@ -11,3 +11,4 @@ node_modules pnpm-lock.yaml package-lock.json yarn.lock +/backend \ No newline at end of file diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml index 5661b31..afa9f64 100644 --- a/.github/dependabot.yaml +++ b/.github/dependabot.yaml @@ -1,14 +1,14 @@ version: 2 updates: - - package-ecosystem: "npm" - directory: "/" + - package-ecosystem: 'npm' + directory: '/' schedule: - interval: "daily" + interval: 'daily' reviewers: - - "bartvdbraak" - - package-ecosystem: "github-actions" - directory: "/" + - 'bartvdbraak' + - package-ecosystem: 'github-actions' + directory: '/' schedule: - interval: "weekly" + interval: 'weekly' reviewers: - - "bartvdbraak" \ No newline at end of file + - 'bartvdbraak' diff --git a/.github/renovate.json b/.github/renovate.json index 7269f0b..35fbcc2 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -2,4 +2,4 @@ "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": ["config:base"], "reviewers": ["bartvdbraak"] -} \ No newline at end of file +} diff --git a/.github/workflows/linting.yaml b/.github/workflows/linting.yaml index 4bb5963..e12ab60 100644 --- a/.github/workflows/linting.yaml +++ b/.github/workflows/linting.yaml @@ -35,4 +35,4 @@ jobs: uses: wearerequired/lint-action@v2.3.0 with: eslint: true - prettier: true \ No newline at end of file + prettier: true diff --git a/.github/workflows/unlighthouse.yaml b/.github/workflows/unlighthouse.yaml index 6738805..2d1f3ab 100644 --- a/.github/workflows/unlighthouse.yaml +++ b/.github/workflows/unlighthouse.yaml @@ -167,4 +167,4 @@ jobs: with: header: ${{ env.COMMENT_ID }} message: | - ⚡️ Lighthouse report cancelled \ No newline at end of file + ⚡️ Lighthouse report cancelled diff --git a/.prettierignore b/.prettierignore index cc41cea..d90086a 100644 --- a/.prettierignore +++ b/.prettierignore @@ -2,3 +2,4 @@ pnpm-lock.yaml package-lock.json yarn.lock +/backend \ No newline at end of file diff --git a/backend/pb_migrations/1706833675_updated_users.js b/backend/pb_migrations/1706833675_updated_users.js deleted file mode 100644 index 17dd6b3..0000000 --- a/backend/pb_migrations/1706833675_updated_users.js +++ /dev/null @@ -1,33 +0,0 @@ -/// -migrate((db) => { - const dao = new Dao(db) - const collection = dao.findCollectionByNameOrId("_pb_users_auth_") - - // add - collection.schema.addField(new SchemaField({ - "system": false, - "id": "rncq13xn", - "name": "appearance_mode", - "type": "select", - "required": false, - "presentable": false, - "unique": false, - "options": { - "maxSelect": 1, - "values": [ - "light", - "dark" - ] - } - })) - - return dao.saveCollection(collection) -}, (db) => { - const dao = new Dao(db) - const collection = dao.findCollectionByNameOrId("_pb_users_auth_") - - // remove - collection.schema.removeField("rncq13xn") - - return dao.saveCollection(collection) -}) diff --git a/backend/pb_migrations/1706834435_updated_users.js b/backend/pb_migrations/1706834435_updated_users.js deleted file mode 100644 index f6eb82e..0000000 --- a/backend/pb_migrations/1706834435_updated_users.js +++ /dev/null @@ -1,49 +0,0 @@ -/// -migrate((db) => { - const dao = new Dao(db) - const collection = dao.findCollectionByNameOrId("_pb_users_auth_") - - // update - collection.schema.addField(new SchemaField({ - "system": false, - "id": "rncq13xn", - "name": "appearance_mode", - "type": "select", - "required": false, - "presentable": false, - "unique": false, - "options": { - "maxSelect": 1, - "values": [ - "light", - "dark", - "system" - ] - } - })) - - return dao.saveCollection(collection) -}, (db) => { - const dao = new Dao(db) - const collection = dao.findCollectionByNameOrId("_pb_users_auth_") - - // update - collection.schema.addField(new SchemaField({ - "system": false, - "id": "rncq13xn", - "name": "appearance_mode", - "type": "select", - "required": false, - "presentable": false, - "unique": false, - "options": { - "maxSelect": 1, - "values": [ - "light", - "dark" - ] - } - })) - - return dao.saveCollection(collection) -}) diff --git a/backend/pb_migrations/1707253263_updated_users.js b/backend/pb_migrations/1707253263_updated_users.js index feced8f..2edf955 100644 --- a/backend/pb_migrations/1707253263_updated_users.js +++ b/backend/pb_migrations/1707253263_updated_users.js @@ -1,50 +1,35 @@ /// -migrate((db) => { - const dao = new Dao(db) - const collection = dao.findCollectionByNameOrId("_pb_users_auth_") +migrate( + (db) => { + const dao = new Dao(db); + const collection = dao.findCollectionByNameOrId('_pb_users_auth_'); - // update - collection.schema.addField(new SchemaField({ - "system": false, - "id": "rncq13xn", - "name": "appearanceMode", - "type": "select", - "required": false, - "presentable": false, - "unique": false, - "options": { - "maxSelect": 1, - "values": [ - "light", - "dark", - "system" - ] - } - })) + // update + collection.schema.addField( + new SchemaField({ + system: false, + id: 'rncq13xn', + name: 'appearanceMode', + type: 'select', + required: false, + presentable: false, + unique: false, + options: { + maxSelect: 1, + values: ['light', 'dark', 'system'] + } + }) + ); - return dao.saveCollection(collection) -}, (db) => { - const dao = new Dao(db) - const collection = dao.findCollectionByNameOrId("_pb_users_auth_") + return dao.saveCollection(collection); + }, + (db) => { + const dao = new Dao(db); + const collection = dao.findCollectionByNameOrId('_pb_users_auth_'); - // update - collection.schema.addField(new SchemaField({ - "system": false, - "id": "rncq13xn", - "name": "appearance_mode", - "type": "select", - "required": false, - "presentable": false, - "unique": false, - "options": { - "maxSelect": 1, - "values": [ - "light", - "dark", - "system" - ] - } - })) + // remove + collection.schema.removeField('rncq13xn'); - return dao.saveCollection(collection) -}) + return dao.saveCollection(collection); + } +); diff --git a/src/routes/(dashboard)/settings/(components)/avatar-form.svelte b/src/routes/(dashboard)/settings/(components)/avatar-form.svelte index e3df797..0bb613b 100644 --- a/src/routes/(dashboard)/settings/(components)/avatar-form.svelte +++ b/src/routes/(dashboard)/settings/(components)/avatar-form.svelte @@ -1,17 +1,17 @@