diff --git a/src/routes/console/account/organizations/[[page]]/+page.ts b/src/routes/console/account/organizations/[[page]]/+page.ts index e51c4b1467..f0f5c57cf7 100644 --- a/src/routes/console/account/organizations/[[page]]/+page.ts +++ b/src/routes/console/account/organizations/[[page]]/+page.ts @@ -12,8 +12,7 @@ export const load: PageLoad = async ({ params }) => { offset, organizations: await sdkForConsole.teams.list([ Query.offset(offset), - Query.limit(CARD_LIMIT), - Query.orderDesc('$createdAt') + Query.limit(CARD_LIMIT) ]) }; }; diff --git a/src/routes/console/organization-[organization]/[[page]]/+page.ts b/src/routes/console/organization-[organization]/[[page]]/+page.ts index e6f6520c38..b302f4fb16 100644 --- a/src/routes/console/organization-[organization]/[[page]]/+page.ts +++ b/src/routes/console/organization-[organization]/[[page]]/+page.ts @@ -13,8 +13,7 @@ export const load: PageLoad = async ({ params }) => { projects: await sdkForConsole.projects.list([ Query.offset(offset), Query.limit(CARD_LIMIT), - Query.equal('teamId', params.organization), - Query.orderDesc('$createdAt') + Query.equal('teamId', params.organization) ]) }; }; diff --git a/src/routes/console/project-[project]/auth/[[page]]/+page.ts b/src/routes/console/project-[project]/auth/[[page]]/+page.ts index 132a73b2ee..7774ad5207 100644 --- a/src/routes/console/project-[project]/auth/[[page]]/+page.ts +++ b/src/routes/console/project-[project]/auth/[[page]]/+page.ts @@ -15,7 +15,7 @@ export const load: PageLoad = async ({ params, parent, url }) => { search, page, users: await sdkForProject.users.list( - [Query.limit(PAGE_LIMIT), Query.offset(offset), Query.orderDesc('$createdAt')], + [Query.limit(PAGE_LIMIT), Query.offset(offset)], search ) }; diff --git a/src/routes/console/project-[project]/auth/teams/[[page]]/+page.ts b/src/routes/console/project-[project]/auth/teams/[[page]]/+page.ts index dfd5d40df2..f687ec0f75 100644 --- a/src/routes/console/project-[project]/auth/teams/[[page]]/+page.ts +++ b/src/routes/console/project-[project]/auth/teams/[[page]]/+page.ts @@ -15,7 +15,7 @@ export const load: PageLoad = async ({ params, parent, url }) => { search, page, teams: await sdkForProject.teams.list( - [Query.limit(PAGE_LIMIT), Query.offset(offset), Query.orderDesc('$createdAt')], + [Query.limit(PAGE_LIMIT), Query.offset(offset)], search ) }; diff --git a/src/routes/console/project-[project]/auth/teams/team-[team]/members/[[page]]/+page.ts b/src/routes/console/project-[project]/auth/teams/team-[team]/members/[[page]]/+page.ts index 38c6fd9300..646165c70c 100644 --- a/src/routes/console/project-[project]/auth/teams/team-[team]/members/[[page]]/+page.ts +++ b/src/routes/console/project-[project]/auth/teams/team-[team]/members/[[page]]/+page.ts @@ -17,7 +17,7 @@ export const load: PageLoad = async ({ params, parent, depends, url }) => { search, memberships: await sdkForProject.teams.listMemberships( teamId, - [Query.limit(PAGE_LIMIT), Query.offset(offset), Query.orderDesc('$createdAt')], + [Query.limit(PAGE_LIMIT), Query.offset(offset)], search ) }; diff --git a/src/routes/console/project-[project]/databases/[[page]]/+page.ts b/src/routes/console/project-[project]/databases/[[page]]/+page.ts index 47cc014c6a..f854f6f191 100644 --- a/src/routes/console/project-[project]/databases/[[page]]/+page.ts +++ b/src/routes/console/project-[project]/databases/[[page]]/+page.ts @@ -13,8 +13,7 @@ export const load: PageLoad = async ({ params, parent }) => { offset, databases: await sdkForProject.databases.list([ Query.limit(CARD_LIMIT), - Query.offset(offset), - Query.orderDesc('$createdAt') + Query.offset(offset) ]) }; }; diff --git a/src/routes/console/project-[project]/databases/database-[database]/[[page]]/+page.ts b/src/routes/console/project-[project]/databases/database-[database]/[[page]]/+page.ts index d7c69f3caf..eba0b24b9e 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/[[page]]/+page.ts +++ b/src/routes/console/project-[project]/databases/database-[database]/[[page]]/+page.ts @@ -13,8 +13,7 @@ export const load: PageLoad = async ({ params, parent }) => { offset, collections: await sdkForProject.databases.listCollections(params.database, [ Query.limit(CARD_LIMIT), - Query.offset(offset), - Query.orderDesc('$createdAt') + Query.offset(offset) ]) }; }; diff --git a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/[[page]]/+page.ts b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/[[page]]/+page.ts index 7c19bb9dca..56ff066f34 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/[[page]]/+page.ts +++ b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/[[page]]/+page.ts @@ -14,8 +14,7 @@ export const load: PageLoad = async ({ params, parent, depends }) => { offset, documents: await sdkForProject.databases.listDocuments(params.database, params.collection, [ Query.limit(PAGE_LIMIT), - Query.offset(offset), - Query.orderDesc('$createdAt') + Query.offset(offset) ]) }; }; diff --git a/src/routes/console/project-[project]/functions/[[page]]/+page.ts b/src/routes/console/project-[project]/functions/[[page]]/+page.ts index 3c3b826a6a..19f53a6b06 100644 --- a/src/routes/console/project-[project]/functions/[[page]]/+page.ts +++ b/src/routes/console/project-[project]/functions/[[page]]/+page.ts @@ -14,8 +14,7 @@ export const load: PageLoad = async ({ params, parent, depends }) => { offset, functions: await sdkForProject.functions.list([ Query.limit(CARD_LIMIT), - Query.offset(offset), - Query.orderDesc('$createdAt') + Query.offset(offset) ]) }; }; diff --git a/src/routes/console/project-[project]/functions/function-[function]/[[page]]/+page.ts b/src/routes/console/project-[project]/functions/function-[function]/[[page]]/+page.ts index 9472fd6af1..3160a72605 100644 --- a/src/routes/console/project-[project]/functions/function-[function]/[[page]]/+page.ts +++ b/src/routes/console/project-[project]/functions/function-[function]/[[page]]/+page.ts @@ -14,8 +14,7 @@ export const load: PageLoad = async ({ params, parent, depends }) => { offset, deployments: await sdkForProject.functions.listDeployments(params.function, [ Query.limit(PAGE_LIMIT), - Query.offset(offset), - Query.orderDesc('$createdAt') + Query.offset(offset) ]) }; }; diff --git a/src/routes/console/project-[project]/functions/function-[function]/executions/[[page]]/+page.ts b/src/routes/console/project-[project]/functions/function-[function]/executions/[[page]]/+page.ts index 5d5c50f056..5a1b64c054 100644 --- a/src/routes/console/project-[project]/functions/function-[function]/executions/[[page]]/+page.ts +++ b/src/routes/console/project-[project]/functions/function-[function]/executions/[[page]]/+page.ts @@ -14,8 +14,7 @@ export const load: PageLoad = async ({ params, parent, depends }) => { offset, executions: await sdkForProject.functions.listExecutions(params.function, [ Query.limit(PAGE_LIMIT), - Query.offset(offset), - Query.orderDesc('$createdAt') + Query.offset(offset) ]) }; }; diff --git a/src/routes/console/project-[project]/storage/[[page]]/+page.ts b/src/routes/console/project-[project]/storage/[[page]]/+page.ts index 30ed7b167c..8384dd85eb 100644 --- a/src/routes/console/project-[project]/storage/[[page]]/+page.ts +++ b/src/routes/console/project-[project]/storage/[[page]]/+page.ts @@ -13,8 +13,7 @@ export const load: PageLoad = async ({ params, parent }) => { offset, buckets: await sdkForProject.storage.listBuckets([ Query.limit(CARD_LIMIT), - Query.offset(offset), - Query.orderDesc('$createdAt') + Query.offset(offset) ]) }; }; diff --git a/src/routes/console/project-[project]/storage/bucket-[bucket]/[[page]]/+page.ts b/src/routes/console/project-[project]/storage/bucket-[bucket]/[[page]]/+page.ts index 0c15a026ef..23abe1ae59 100644 --- a/src/routes/console/project-[project]/storage/bucket-[bucket]/[[page]]/+page.ts +++ b/src/routes/console/project-[project]/storage/bucket-[bucket]/[[page]]/+page.ts @@ -16,7 +16,7 @@ export const load: PageLoad = async ({ params, parent, depends, url }) => { search, files: await sdkForProject.storage.listFiles( params.bucket, - [Query.limit(PAGE_LIMIT), Query.offset(offset), Query.orderDesc('$createdAt')], + [Query.limit(PAGE_LIMIT), Query.offset(offset)], search ) }; diff --git a/vite.config.ts.timestamp-1682949685828.mjs b/vite.config.ts.timestamp-1682949685828.mjs deleted file mode 100644 index 839d5dbde4..0000000000 --- a/vite.config.ts.timestamp-1682949685828.mjs +++ /dev/null @@ -1,45 +0,0 @@ -// vite.config.ts -import { defineConfig } from 'file:///home/thomas/Programming/Work/Appwrite/console/node_modules/vitest/dist/config.js'; -import { sveltekit } from 'file:///home/thomas/Programming/Work/Appwrite/console/node_modules/@sveltejs/kit/src/exports/vite/index.js'; -var config = defineConfig({ - plugins: [sveltekit()], - optimizeDeps: { - include: ['echarts', 'prismjs'] - }, - ssr: { - noExternal: ['echarts', 'prismjs', '@analytics/google-analytics', 'analytics'] - }, - define: { - 'import.meta.env.VERCEL_ANALYTICS_ID': JSON.stringify(process.env.VERCEL_ANALYTICS_ID) - }, - legacy: { - buildSsrCjsExternalHeuristics: true - }, - server: { - port: 3e3 - } -}); -var testConfig = defineConfig({ - resolve: { - // hotfix for https://github.com/vitest-dev/vitest/issues/2834 - conditions: ['browser'] - }, - test: { - include: ['tests/unit/**/*.test.ts'], - environment: 'jsdom', - globals: true, - threads: true, - setupFiles: ['./tests/unit/setup.ts'], - deps: { - inline: ['@analytics/type-utils'] - } - } -}); -var vite_config_default = process.env.VITEST - ? { - ...config, - ...testConfig - } - : config; -export { vite_config_default as default }; -//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCIvaG9tZS90aG9tYXMvUHJvZ3JhbW1pbmcvV29yay9BcHB3cml0ZS9jb25zb2xlXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCIvaG9tZS90aG9tYXMvUHJvZ3JhbW1pbmcvV29yay9BcHB3cml0ZS9jb25zb2xlL3ZpdGUuY29uZmlnLnRzXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ltcG9ydF9tZXRhX3VybCA9IFwiZmlsZTovLy9ob21lL3Rob21hcy9Qcm9ncmFtbWluZy9Xb3JrL0FwcHdyaXRlL2NvbnNvbGUvdml0ZS5jb25maWcudHNcIjtpbXBvcnQgeyBkZWZpbmVDb25maWcgfSBmcm9tICd2aXRlc3QvY29uZmlnJztcbmltcG9ydCB7IHN2ZWx0ZWtpdCB9IGZyb20gJ0BzdmVsdGVqcy9raXQvdml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