Merge pull request #1850 from appwrite/more-fixes

More fixes
This commit is contained in:
Jake Barnby
2025-05-18 14:28:57 +00:00
committed by GitHub
4 changed files with 14 additions and 8 deletions
+10 -3
View File
@@ -18,6 +18,7 @@
import { page } from '$app/state';
import { Click, trackEvent } from '$lib/actions/analytics';
import { goto } from '$app/navigation';
import { Typography } from '@appwrite.io/pink-svelte';
let currentIndex = 0;
let openModalOnMobile = false;
@@ -223,7 +224,9 @@
{/if}
<div class="u-flex-vertical u-gap-4 u-padding-inline-8">
<h3 class="body-text-2 u-bold">{currentModalAlert.title}</h3>
<Typography.Text variant="m-500" color="--fgcolor-neutral-primary">
{currentModalAlert.title}
</Typography.Text>
<span class="u-width-fit-content">
{#if currentModalAlert.isHtml}
@@ -328,7 +331,9 @@
{/if}
<div class="u-flex-vertical u-gap-8 u-padding-inline-8">
<h3 class="body-text-2 u-bold">{currentModalAlert.title}</h3>
<Typography.Text variant="m-500" color="--fgcolor-neutral-primary">
{currentModalAlert.title}
</Typography.Text>
<span class="u-width-fit-content">
{#if currentModalAlert.isHtml}
@@ -393,7 +398,9 @@
}}>
<div class="u-flex-vertical u-gap-4">
<div class="u-flex u-cross-center u-main-space-between">
<h3 class="body-text-2 u-bold">{mobileConfig.title}</h3>
<Typography.Text variant="m-500" color="--fgcolor-neutral-primary">
{currentModalAlert.title}
</Typography.Text>
<button on:click={hideAllModalAlerts} aria-label="Close">
<span class="icon-x"></span>
</button>
+1 -1
View File
@@ -122,7 +122,7 @@ export function addBottomModalAlerts() {
export function isPromoLive(
date: string,
time: string,
timeZone: string = 'Asia/Kolkata'
timeZone: string = 'Europe/Paris'
): boolean {
const now = new Date();
const targetString = `${date}T${time}:00`;
@@ -21,14 +21,13 @@
async function createProject() {
isLoading = true;
console.log(data);
try {
const teamId = data.organization.$id;
const project = await sdk.forConsole.projects.create(
id ?? ID.unique(),
projectName,
teamId,
region ?? Region.Fra
isCloud ? region : undefined
);
trackEvent(Submit.ProjectCreate, {
customId: !!id,
@@ -39,7 +38,7 @@
setTimeout(async () => {
await invalidate(Dependencies.ACCOUNT);
goto(`${base}/project-${project.region}-${project.$id}`);
goto(`${base}/project-${project.region ?? 'default'}-${project.$id}`);
}, 3000);
} catch (e) {
trackError(e, Submit.ProjectCreate);
@@ -95,7 +95,7 @@
id ?? ID.unique(),
projectName,
selectedOrg,
isCloud ? (region as Region) : Region.Fra
isCloud ? (region as Region) : undefined
);
trackEvent(Submit.ProjectCreate, {
customId: !!id,