Skip to content

Commit

Permalink
Showing 7 changed files with 15 additions and 11 deletions.
3 changes: 3 additions & 0 deletions src/app.html
Original file line number Diff line number Diff line change
@@ -3,7 +3,10 @@
<head>
<meta charset="utf-8" />
<meta name="description" content="" />

<link rel="icon" type="image/svg+xml" href="/logos/appwrite-icon.svg" />
<link rel="mask-icon" type="image/png" href="/logos/appwrite-icon.png" />

<link
rel="preload"
href="/fonts/inter/inter-v8-latin-600.woff2"
2 changes: 1 addition & 1 deletion src/lib/components/empty.svelte
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@
{#if single}
<article class="card u-grid u-cross-center u-width-full-line common-section">
<div
class="u-flex u-flex-vertical u-cross-center u-gap-24 u-width-full-line u-overflow-hidden">
class="u-flex u-flex-vertical u-cross-center u-gap-24 u-width-full-line u-overflow-hidden u-padding-block-8">
{#if !noMedia}
<button
type="button"
7 changes: 4 additions & 3 deletions src/lib/layout/shell.svelte
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@
import { page } from '$app/stores';
import { log } from '$lib/stores/logs';
import { wizard } from '$lib/stores/wizard';
import { activeHeaderAlert } from '$routes/console/store';
export let isOpen = false;
export let showSideNavigation = false;
@@ -47,9 +48,9 @@
class:grid-with-side={showSideNavigation}
class:is-open={isOpen}
class:u-hide={$wizard.show || $log.show || $wizard.cover}
class:is-fixed-layout={$$slots.alert}>
{#if $$slots.alert}
<slot name="alert" />
class:is-fixed-layout={$activeHeaderAlert?.show}>
{#if $activeHeaderAlert?.show}
<svelte:component this={$activeHeaderAlert.component} />
{/if}
<header class="main-header u-padding-inline-end-0">
<button
7 changes: 6 additions & 1 deletion src/lib/stores/stripe.ts
Original file line number Diff line number Diff line change
@@ -20,7 +20,12 @@ export async function initializeStripe() {
isStripeInitialized.set(true);

const methods = await sdk.forConsole.billing.listPaymentMethods();
clientSecret = methods.paymentMethods[0]?.clientSecret;

// Get the client secret from empty payment method if available
clientSecret = methods.paymentMethods?.filter(
(method) => !!method?.clientSecret && !method?.providerMethodId
)[0]?.clientSecret;

// If there is no payment method, create an empty one and get the client secret
if (!clientSecret) {
paymentMethod = await sdk.forConsole.billing.createPaymentMethod();
5 changes: 0 additions & 5 deletions src/routes/console/+layout.svelte
Original file line number Diff line number Diff line change
@@ -301,11 +301,6 @@
!$page.url.pathname.includes('/console/account') &&
!$page.url.pathname.includes('/console/card') &&
!$page.url.pathname.includes('/console/onboarding')}>
<svelte:fragment slot="alert">
{#if $activeHeaderAlert?.show}
<svelte:component this={$activeHeaderAlert.component} />
{/if}
</svelte:fragment>
<Header slot="header" />
<SideNavigation slot="side" bind:isOpen />
<slot />
2 changes: 1 addition & 1 deletion src/routes/console/organization-[organization]/+layout.ts
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ export const load: LayoutLoad = async ({ params, depends }) => {
if (isCloud) {
await failedInvoice.load(params.organization);

if (!get(failedInvoice)) {
if (get(failedInvoice)) {
headerAlert.add({
show: true,
component: ProjectsAtRisk,
Binary file added static/logos/appwrite-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 10c01a5

Please sign in to comment.