diff --git a/src/lib/components/breadcrumbs.svelte b/src/lib/components/breadcrumbs.svelte
index ffa48e0b6..194d0b6e9 100644
--- a/src/lib/components/breadcrumbs.svelte
+++ b/src/lib/components/breadcrumbs.svelte
@@ -80,7 +80,7 @@
title: 'Switch Organization',
items: organizations.map((organization) => ({
name: organization.name,
- href: `/console/organization-${organization?.$id}`
+ href: `${base}/organization-${organization?.$id}`
}))
},
bottom: {
@@ -101,7 +101,7 @@
items: [
{
name: 'Organization overview',
- href: `/console/organization-${selectedOrg?.$id}`
+ href: `${base}/organization-${selectedOrg?.$id}`
}
]
},
@@ -139,12 +139,12 @@
if (index < 4) {
return {
name: project.name,
- href: `/console/project-${project.$id}/overview`
+ href: `${base}/project-${project.$id}/overview`
};
} else if (index === 4) {
return {
name: 'All projects',
- href: `/console/organization-${selectedOrg?.$id}`
+ href: `${base}/organization-${selectedOrg?.$id}`
};
}
return null;
@@ -156,7 +156,7 @@
{
name: 'Create project',
trailingIcon: IconPlus,
- href: `/console/organization-${selectedOrg?.$id}?create-project`
+ href: `${base}/organization-${selectedOrg?.$id}?create-project`
}
]
},
@@ -167,7 +167,7 @@
{
name: 'Create project',
trailingIcon: IconPlus,
- href: `/console/organization-${selectedOrg?.$id}?create-project`
+ href: `${base}/organization-${selectedOrg?.$id}?create-project`
}
]
}
@@ -221,7 +221,7 @@
{#if selectedOrg}
-
-
-
-
+{#if isStudio}
+
+{:else}
+
-
+{/if}
diff --git a/src/routes/(console)/+layout.svelte b/src/routes/(console)/+layout.svelte
index e8f555fc0..c2dbb2932 100644
--- a/src/routes/(console)/+layout.svelte
+++ b/src/routes/(console)/+layout.svelte
@@ -3,6 +3,7 @@
import { BillingPlan, INTERVAL } from '$lib/constants';
import Footer from '$lib/layout/footer.svelte';
import Shell from '$lib/layout/shell.svelte';
+ import ShellStudio from '$lib/layout/shellStudio.svelte';
import { app } from '$lib/stores/app';
import { newOrgModal, organization, type Organization } from '$lib/stores/organization';
import { database, checkForDatabaseBackupPolicies } from '$lib/stores/database';
@@ -32,7 +33,7 @@
import { openMigrationWizard } from './(migration-wizard)';
import { project } from './project-[project]/store';
import { feedback } from '$lib/stores/feedback';
- import { hasStripePublicKey, isCloud, VARS } from '$lib/system';
+ import { hasStripePublicKey, isCloud, isStudio, VARS } from '$lib/system';
import { stripe } from '$lib/stores/stripe';
import MobileSupportModal from './wizard/support/mobileSupportModal.svelte';
import { showSupportModal } from './wizard/support/store';
@@ -329,21 +330,24 @@
-
-
-
-
-
-
+{#if isStudio}
+
+{:else}
+
+
+
+
+
+{/if}
{#if $wizard.show && $wizard.component}
{:else if $wizard.cover}
diff --git a/src/routes/(console)/organization-[organization]/+page.svelte b/src/routes/(console)/organization-[organization]/+page.svelte
index b30ff5e66..a97193616 100644
--- a/src/routes/(console)/organization-[organization]/+page.svelte
+++ b/src/routes/(console)/organization-[organization]/+page.svelte
@@ -4,7 +4,7 @@
import { Container } from '$lib/layout';
import CreateProject from './createProject.svelte';
import CreateOrganization from '../createOrganization.svelte';
- import { GRACE_PERIOD_OVERRIDE, isCloud } from '$lib/system';
+ import { GRACE_PERIOD_OVERRIDE, isCloud, isStudio } from '$lib/system';
import { page } from '$app/stores';
import { registerCommands } from '$lib/commandCenter';
import {
@@ -28,7 +28,7 @@
import { onMount, type ComponentType } from 'svelte';
import { canWriteProjects } from '$lib/stores/roles';
import { checkPricingRefAndRedirect } from '$lib/helpers/pricingRedirect';
- import { Badge, Icon, Typography } from '@appwrite.io/pink-svelte';
+ import { Badge, Divider, Icon, Typography, Card, Layout } from '@appwrite.io/pink-svelte';
import {
IconAndroid,
IconApple,
@@ -48,6 +48,7 @@
let showCreateProjectCloud = false;
function allServiceDisabled(project: Models.Project): boolean {
+ return false;
let disabled = true;
services.load(project);
$services.list.forEach((service) => {
@@ -142,94 +143,124 @@
}
-
-
-
Projects
+{#if isStudio}
+
+
+
+ Projects
+
+
-
- {#if $canWriteProjects}
-
- {/if}
-
- (showCreate = true)}>Empty project
-
-
- Import project Experimental
-
-
-
-
-
+
- {#if data.projects.total}
-
+
+ {#each data.projects.projects as project}
+
+ {/each}
+
+
+
+{:else}
+
+
+
Projects
+
+
+ {#if $canWriteProjects}
+
+ {/if}
+
+ (showCreate = true)}>Empty project
+
+
+ Import project Experimental
+
+
+
+
+
+
+ {#if data.projects.total}
+
+ {#each data.projects.projects as project}
+ {@const platforms = filterPlatforms(
+ project.platforms.map((platform) => getPlatformInfo(platform.type))
+ )}
+
+
+ {project?.platforms?.length ? project?.platforms?.length : 'No'} apps
+
+
+ {project.name}
+
+ {#if allServiceDisabled(project)}
+
+ All services are
+ disabled.
+
+ {/if}
+
+ {#each platforms as platform, i}
+ {#if i < 3}
+ {@const icon = getIconForPlatform(platform.icon)}
+
+
+
+ {/if}
+ {/each}
+ {#if platforms?.length > 3}
+
+ {/if}
+
+ {#if isCloud && regions}
+ {@const region = findRegion(project)}
+
+ {region?.name}
+
+ {/if}
+
+
+ {/each}
+
+ Create a new project
+
+
+ {:else}
+
+ {/if}
+
+
- {#each data.projects.projects as project}
- {@const platforms = filterPlatforms(
- project.platforms.map((platform) => getPlatformInfo(platform.type))
- )}
-
-
- {project?.platforms?.length ? project?.platforms?.length : 'No'} apps
-
-
- {project.name}
-
- {#if allServiceDisabled(project)}
-
- All services are disabled.
-
- {/if}
-
- {#each platforms as platform, i}
- {#if i < 3}
- {@const icon = getIconForPlatform(platform.icon)}
-
-
-
- {/if}
- {/each}
- {#if platforms?.length > 3}
-
- {/if}
-
- {#if isCloud && regions}
- {@const region = findRegion(project)}
-
- {region?.name}
-
- {/if}
-
-
- {/each}
-
- Create a new project
-
-
- {:else}
-
- {/if}
-
-
-
+ total={data.projects.total} />
+
+{/if}
diff --git a/src/routes/(studio)/+layout.svelte b/src/routes/(studio)/+layout.svelte
index 122e3c85f..da755c82b 100644
--- a/src/routes/(studio)/+layout.svelte
+++ b/src/routes/(studio)/+layout.svelte
@@ -11,7 +11,6 @@
import SidebarProject from '$lib/components/studio/sidebarProject.svelte';
$: hasProjectSidebar = $page.url.pathname.startsWith('/studio/proj');
- $: console.log('hasProjectSidebar', hasProjectSidebar);
$: loadedProjects = $page.data.projects.map((project) => {
return {
@@ -34,8 +33,6 @@
projects: loadedProjects
};
});
-
- $: console.log('organizations', organizations);