mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
chore: fix errors
This commit is contained in:
1 parent
07ab76d26b
commit
9a58edd2c9
7 files changed
+6
-9
No files matched your search
@@ -7,7 +7,6 @@
|
||||
import type { Models } from '@appwrite.io/console';
|
||||
import { onMount } from 'svelte';
|
||||
import { updateOAuth } from '../updateOAuth';
|
||||
import type { Models } from '@appwrite.io/console';
|
||||
import { Alert } from '@appwrite.io/pink-svelte';
|
||||
|
||||
const projectId = page.params.project;
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
import type { Models } from '@appwrite.io/console';
|
||||
import { onMount } from 'svelte';
|
||||
import { updateOAuth } from '../updateOAuth';
|
||||
import type { Models } from '@appwrite.io/console';
|
||||
import { Alert } from '@appwrite.io/pink-svelte';
|
||||
|
||||
const projectId = page.params.project;
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
import type { Models } from '@appwrite.io/console';
|
||||
import { onMount } from 'svelte';
|
||||
import { updateOAuth } from '../updateOAuth';
|
||||
import type { Models } from '@appwrite.io/console';
|
||||
import { Alert } from '@appwrite.io/pink-svelte';
|
||||
|
||||
const projectId = page.params.project;
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
import { Button, InputPassword, InputSwitch, InputText } from '$lib/elements/forms';
|
||||
import { oAuthProviders, type Provider } from '$lib/stores/oauth-providers';
|
||||
import { getApiEndpoint } from '$lib/stores/sdk';
|
||||
import type { Models } from '@appwrite.io/console';
|
||||
import { onMount } from 'svelte';
|
||||
import { updateOAuth } from '../updateOAuth';
|
||||
import type { Models } from '@appwrite.io/console';
|
||||
|
||||
+4
-4
@@ -3,18 +3,18 @@ import { sdk } from '$lib/stores/sdk';
|
||||
import { RuleTrigger, RuleType } from '$lib/stores/sdk';
|
||||
import { Dependencies } from '$lib/constants.js';
|
||||
|
||||
export const load = async ({ parent, depends }) => {
|
||||
export const load = async ({ parent, depends, params }) => {
|
||||
const { site } = await parent();
|
||||
depends(Dependencies.DOMAINS, Dependencies.SITES_DOMAINS);
|
||||
|
||||
const [rules, installations] = await Promise.all([
|
||||
sdk
|
||||
.forProject(page.params.region, page.params.project)
|
||||
.forProject(params.region, params.project)
|
||||
.proxy.listRules([
|
||||
Query.equal('type', RuleType.DEPLOYMENT),
|
||||
Query.equal('trigger', RuleTrigger.MANUAL)
|
||||
]),
|
||||
sdk.forProject(page.params.region, page.params.project).vcs.listInstallations()
|
||||
sdk.forProject(params.region, params.project).vcs.listInstallations()
|
||||
]);
|
||||
|
||||
return {
|
||||
@@ -24,7 +24,7 @@ export const load = async ({ parent, depends }) => {
|
||||
branches:
|
||||
site?.installationId && site?.providerRepositoryId
|
||||
? await sdk
|
||||
.forProject(page.params.region, page.params.project)
|
||||
.forProject(params.region, params.project)
|
||||
.vcs.listRepositoryBranches(site.installationId, site.providerRepositoryId)
|
||||
: undefined
|
||||
};
|
||||
|
||||
@@ -21,7 +21,7 @@ export const load = async ({ params, depends, url, route, parent }) => {
|
||||
query,
|
||||
site,
|
||||
logs: await sdk
|
||||
.forProject(page.params.region, page.params.project)
|
||||
.forProject(params.region, params.project)
|
||||
.sites.listLogs(params.site, [
|
||||
Query.limit(limit),
|
||||
Query.offset(offset),
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { sdk } from '$lib/stores/sdk';
|
||||
import { Dependencies } from '$lib/constants';
|
||||
import { page } from '$app/state';
|
||||
|
||||
export const load = async ({ params, depends, parent }) => {
|
||||
depends(Dependencies.VARIABLES);
|
||||
|
||||
Reference in new issue
Block a user