mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge branch 'feat-pink-v2' into fix-feedback-changes
This commit is contained in:
@@ -45,8 +45,8 @@
|
||||
title="No installation was added to the project yet"
|
||||
description="Add an installation to connect repositories">
|
||||
<svelte:fragment slot="actions">
|
||||
<Button size="m" secondary href={connectGitHub().toString()} disabled={!isVcsEnabled}>
|
||||
<Icon slot="start" icon={IconGithub} size="m" />
|
||||
<Button secondary href={connectGitHub().toString()} disabled={!isVcsEnabled}>
|
||||
<Icon slot="start" icon={IconGithub} />
|
||||
Connect to GitHub
|
||||
</Button>
|
||||
</svelte:fragment>
|
||||
|
||||
@@ -18,10 +18,10 @@ export enum View {
|
||||
Grid = 'grid'
|
||||
}
|
||||
|
||||
export function getView(url: URL, route: Page['route'], fallback: View): View {
|
||||
export function getView(url: URL, route: Page['route'], fallback: View, overwrite?: View): View {
|
||||
return (url.searchParams.get('view') ?? preferences.get(route).view) === View.Grid
|
||||
? View.Grid
|
||||
: (View.Table ?? fallback);
|
||||
: (overwrite ?? View.Table ?? fallback);
|
||||
}
|
||||
|
||||
export function getColumns(route: Page['route'], fallback: string[]): string[] {
|
||||
|
||||
@@ -10,7 +10,7 @@ export const load = async ({ url, depends, route }) => {
|
||||
const search = getSearch(url);
|
||||
const limit = getLimit(url, route, CARD_LIMIT);
|
||||
const offset = pageToOffset(page, limit);
|
||||
const view = getView(url, route, View.Grid);
|
||||
const view = getView(url, route, View.Grid, View.Grid);
|
||||
|
||||
const siteList = await sdk.forProject.sites.list(
|
||||
[Query.limit(limit), Query.offset(offset), Query.orderDesc('')],
|
||||
|
||||
Reference in New Issue
Block a user