mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
chore: update pink
This commit is contained in:
1 parent
57ec375a66
commit
ca3e4174c0
6 files changed
+51
-112
No files matched your search
+2
-2
@@ -21,9 +21,9 @@
|
||||
"dependencies": {
|
||||
"@appwrite.io/console": "https://pkg.pr.new/appwrite/appwrite/@appwrite.io/console@9193",
|
||||
"@appwrite.io/pink-icons": "0.25.0",
|
||||
"@appwrite.io/pink-icons-svelte": "https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@1e68aef5",
|
||||
"@appwrite.io/pink-icons-svelte": "https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@ed1c55b6",
|
||||
"@appwrite.io/pink-legacy": "^1.0.0",
|
||||
"@appwrite.io/pink-svelte": "https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@1e68aef5",
|
||||
"@appwrite.io/pink-svelte": "https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@ed1c55b6",
|
||||
"@popperjs/core": "^2.11.8",
|
||||
"@sentry/sveltekit": "^8.38.0",
|
||||
"@stripe/stripe-js": "^3.5.0",
|
||||
|
||||
Generated
+16
-16
@@ -15,14 +15,14 @@ importers:
|
||||
specifier: 0.25.0
|
||||
version: 0.25.0
|
||||
'@appwrite.io/pink-icons-svelte':
|
||||
specifier: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@1e68aef5
|
||||
version: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@1e68aef5(svelte@4.2.19)
|
||||
specifier: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@ed1c55b6
|
||||
version: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@ed1c55b6(svelte@4.2.19)
|
||||
'@appwrite.io/pink-legacy':
|
||||
specifier: ^1.0.0
|
||||
version: 1.0.0
|
||||
'@appwrite.io/pink-svelte':
|
||||
specifier: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@1e68aef5
|
||||
version: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@1e68aef5(react-dom@18.3.1(react@18.3.1))(svelte@4.2.19)
|
||||
specifier: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@ed1c55b6
|
||||
version: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@ed1c55b6(react-dom@18.3.1(react@18.3.1))(svelte@4.2.19)
|
||||
'@popperjs/core':
|
||||
specifier: ^2.11.8
|
||||
version: 2.11.8
|
||||
@@ -107,7 +107,7 @@ importers:
|
||||
version: 6.6.3
|
||||
'@testing-library/svelte':
|
||||
specifier: ^5.2.4
|
||||
version: 5.2.6(svelte@4.2.19)(vite@5.4.14(@types/node@22.12.0)(sass@1.83.4))(vitest@1.6.0(@types/node@22.12.0)(@vitest/ui@1.6.0)(jsdom@22.1.0)(sass@1.83.4))
|
||||
version: 5.2.6(svelte@4.2.19)(vite@5.4.14(@types/node@22.12.0)(sass@1.83.4))(vitest@1.6.0)
|
||||
'@testing-library/user-event':
|
||||
specifier: ^14.5.2
|
||||
version: 14.6.1(@testing-library/dom@10.4.0)
|
||||
@@ -218,14 +218,14 @@ packages:
|
||||
resolution: {tarball: https://pkg.pr.new/appwrite/appwrite/@appwrite.io/console@9193}
|
||||
version: 1.2.1
|
||||
|
||||
'@appwrite.io/pink-icons-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@1e68aef5':
|
||||
resolution: {tarball: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@1e68aef5}
|
||||
'@appwrite.io/pink-icons-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@ed1c55b6':
|
||||
resolution: {tarball: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@ed1c55b6}
|
||||
version: 1.0.0-next.7
|
||||
peerDependencies:
|
||||
svelte: ^4.0.0
|
||||
|
||||
'@appwrite.io/pink-icons-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@1e68aef5b9e86db01776ba1b734cecc49bb678e7':
|
||||
resolution: {tarball: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@1e68aef5b9e86db01776ba1b734cecc49bb678e7}
|
||||
'@appwrite.io/pink-icons-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@ed1c55b661bc7366834955c04bbcabca06a49e3d':
|
||||
resolution: {tarball: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@ed1c55b661bc7366834955c04bbcabca06a49e3d}
|
||||
version: 1.0.0-next.7
|
||||
peerDependencies:
|
||||
svelte: ^4.0.0
|
||||
@@ -239,8 +239,8 @@ packages:
|
||||
'@appwrite.io/pink-legacy@1.0.0':
|
||||
resolution: {integrity: sha512-EZk/wX8oDhIsCXf2A0oQjdNOaHvh5MnWbLQI4pAiGrdy5qQGPoU19AK6iVX6z3QoOq7geoEu0zVwAowBy5hZbQ==}
|
||||
|
||||
'@appwrite.io/pink-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@1e68aef5':
|
||||
resolution: {tarball: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@1e68aef5}
|
||||
'@appwrite.io/pink-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@ed1c55b6':
|
||||
resolution: {tarball: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@ed1c55b6}
|
||||
version: 1.0.0-next.85
|
||||
peerDependencies:
|
||||
react-dom: ^18.0.0
|
||||
@@ -4089,11 +4089,11 @@ snapshots:
|
||||
|
||||
'@appwrite.io/console@https://pkg.pr.new/appwrite/appwrite/@appwrite.io/console@9193': {}
|
||||
|
||||
'@appwrite.io/pink-icons-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@1e68aef5(svelte@4.2.19)':
|
||||
'@appwrite.io/pink-icons-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@ed1c55b6(svelte@4.2.19)':
|
||||
dependencies:
|
||||
svelte: 4.2.19
|
||||
|
||||
'@appwrite.io/pink-icons-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@1e68aef5b9e86db01776ba1b734cecc49bb678e7(svelte@4.2.19)':
|
||||
'@appwrite.io/pink-icons-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@ed1c55b661bc7366834955c04bbcabca06a49e3d(svelte@4.2.19)':
|
||||
dependencies:
|
||||
svelte: 4.2.19
|
||||
|
||||
@@ -4106,9 +4106,9 @@ snapshots:
|
||||
'@appwrite.io/pink-icons': 1.0.0
|
||||
the-new-css-reset: 1.11.3
|
||||
|
||||
'@appwrite.io/pink-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@1e68aef5(react-dom@18.3.1(react@18.3.1))(svelte@4.2.19)':
|
||||
'@appwrite.io/pink-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@ed1c55b6(react-dom@18.3.1(react@18.3.1))(svelte@4.2.19)':
|
||||
dependencies:
|
||||
'@appwrite.io/pink-icons-svelte': https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@1e68aef5b9e86db01776ba1b734cecc49bb678e7(svelte@4.2.19)
|
||||
'@appwrite.io/pink-icons-svelte': https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@ed1c55b661bc7366834955c04bbcabca06a49e3d(svelte@4.2.19)
|
||||
'@floating-ui/dom': 1.6.13
|
||||
'@melt-ui/pp': 0.3.2(@melt-ui/svelte@0.86.2(svelte@4.2.19))(svelte@4.2.19)
|
||||
'@melt-ui/svelte': 0.86.2(svelte@4.2.19)
|
||||
@@ -5349,7 +5349,7 @@ snapshots:
|
||||
lodash: 4.17.21
|
||||
redent: 3.0.0
|
||||
|
||||
'@testing-library/svelte@5.2.6(svelte@4.2.19)(vite@5.4.14(@types/node@22.12.0)(sass@1.83.4))(vitest@1.6.0(@types/node@22.12.0)(@vitest/ui@1.6.0)(jsdom@22.1.0)(sass@1.83.4))':
|
||||
'@testing-library/svelte@5.2.6(svelte@4.2.19)(vite@5.4.14(@types/node@22.12.0)(sass@1.83.4))(vitest@1.6.0)':
|
||||
dependencies:
|
||||
'@testing-library/dom': 10.4.0
|
||||
svelte: 4.2.19
|
||||
|
||||
@@ -1,58 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { throttle } from '$lib/helpers/functions';
|
||||
import { Tabs } from '@appwrite.io/pink-svelte';
|
||||
|
||||
let showLeft = false;
|
||||
let showRight = false;
|
||||
let tabsList: HTMLDivElement;
|
||||
|
||||
function slide(direction: 'left' | 'right') {
|
||||
let scrollCompleted = 0;
|
||||
let slideVar = setInterval(() => {
|
||||
if (direction == 'left') {
|
||||
tabsList.scrollLeft -= 10;
|
||||
} else {
|
||||
tabsList.scrollLeft += 10;
|
||||
}
|
||||
scrollCompleted += 10;
|
||||
if (scrollCompleted >= 100) {
|
||||
clearInterval(slideVar);
|
||||
}
|
||||
}, 10);
|
||||
}
|
||||
|
||||
function onScroll() {
|
||||
if (!tabsList) {
|
||||
return;
|
||||
}
|
||||
const { offsetWidth, scrollLeft, scrollWidth } = tabsList;
|
||||
showLeft = scrollLeft > 10;
|
||||
showRight = scrollLeft < scrollWidth - offsetWidth - 10;
|
||||
}
|
||||
</script>
|
||||
|
||||
<svelte:window on:resize={throttle(onScroll, 25)} />
|
||||
|
||||
<div>
|
||||
{#if showLeft}
|
||||
<button
|
||||
class="tabs-button-scroll is-start"
|
||||
aria-label="Show items in start side"
|
||||
on:click={() => slide('left')}>
|
||||
<span class="icon-cheveron-left" aria-hidden="true" />
|
||||
</button>
|
||||
{/if}
|
||||
{#if showRight}
|
||||
<button
|
||||
class="tabs-button-scroll is-end"
|
||||
aria-label="Show items in end side"
|
||||
on:click={() => slide('right')}>
|
||||
<span class="icon-cheveron-right" aria-hidden="true" />
|
||||
</button>
|
||||
{/if}
|
||||
<div class="scroll-shadow-horizontal" bind:this={tabsList} on:scroll={throttle(onScroll, 25)}>
|
||||
<Tabs.Root>
|
||||
<slot />
|
||||
</Tabs.Root>
|
||||
</div>
|
||||
</div>
|
||||
<Tabs.Root>
|
||||
<slot />
|
||||
</Tabs.Root>
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
<div class="top-cover-console">
|
||||
<div class="cover-container" {style}>
|
||||
<Layout.Stack direction="row" alignItems="baseline">
|
||||
<Layout.Stack direction="row" alignItems="center">
|
||||
<slot name="header" />
|
||||
</Layout.Stack>
|
||||
<slot />
|
||||
|
||||
@@ -2,15 +2,7 @@
|
||||
import { goto } from '$app/navigation';
|
||||
import { base } from '$app/paths';
|
||||
import { page } from '$app/stores';
|
||||
import {
|
||||
AvatarGroup,
|
||||
DropList,
|
||||
DropListItem,
|
||||
DropListLink,
|
||||
Heading,
|
||||
Tab,
|
||||
Tabs
|
||||
} from '$lib/components';
|
||||
import { AvatarGroup, Heading, Tab, Tabs } from '$lib/components';
|
||||
import { BillingPlan } from '$lib/constants';
|
||||
import { Pill } from '$lib/elements';
|
||||
import { Button } from '$lib/elements/forms';
|
||||
@@ -101,44 +93,42 @@
|
||||
{#if $organization?.$id}
|
||||
<Cover>
|
||||
<svelte:fragment slot="header">
|
||||
<Heading tag="h1" size="4" class="u-flex u-cross-center u-gap-8">
|
||||
<span class="u-flex u-cross-center u-gap-8 u-min-width-0">
|
||||
<span class="u-trim">
|
||||
<Typography.Title color="--color-fgcolor-neutral-primary" size="xl"
|
||||
>{$organization.name}</Typography.Title>
|
||||
</span>
|
||||
{#if isCloud && $organization?.billingPlan === BillingPlan.GITHUB_EDUCATION}
|
||||
<Pill class="eyebrow-heading-3" style="--p-tag-content-height:2rem">
|
||||
<span class="icon-github" aria-hidden="true" />EDUCATION
|
||||
</Pill>
|
||||
{:else if isCloud && $organization?.billingPlan === BillingPlan.FREE}
|
||||
<Pill class="eyebrow-heading-3" style="--p-tag-content-height:2rem"
|
||||
>FREE</Pill>
|
||||
{/if}
|
||||
{#if isCloud && $organization?.billingTrialStartDate && $daysLeftInTrial > 0 && $organization.billingPlan !== BillingPlan.FREE && $plansInfo.get($organization.billingPlan)?.trialDays}
|
||||
<Tooltip>
|
||||
<div class="u-flex u-cross-center">
|
||||
<Pill class="eyebrow-heading-3" style="--p-tag-content-height:2rem"
|
||||
>TRIAL</Pill>
|
||||
</div>
|
||||
<span slot="tooltip"
|
||||
>{`Your trial ends on ${toLocaleDate(
|
||||
$organization.billingStartDate
|
||||
)}. ${$daysLeftInTrial} days remaining.`}</span>
|
||||
</Tooltip>
|
||||
{/if}
|
||||
<span class="u-flex u-cross-center u-gap-8 u-min-width-0">
|
||||
<span class="u-trim">
|
||||
<Typography.Title color="--color-fgcolor-neutral-primary" size="xl"
|
||||
>{$organization.name}</Typography.Title>
|
||||
</span>
|
||||
</Heading>
|
||||
{#if isCloud && $organization?.billingPlan === BillingPlan.GITHUB_EDUCATION}
|
||||
<Pill class="eyebrow-heading-3" style="--p-tag-content-height:2rem">
|
||||
<span class="icon-github" aria-hidden="true" />EDUCATION
|
||||
</Pill>
|
||||
{:else if isCloud && $organization?.billingPlan === BillingPlan.FREE}
|
||||
<Pill class="eyebrow-heading-3" style="--p-tag-content-height:2rem">FREE</Pill>
|
||||
{/if}
|
||||
{#if isCloud && $organization?.billingTrialStartDate && $daysLeftInTrial > 0 && $organization.billingPlan !== BillingPlan.FREE && $plansInfo.get($organization.billingPlan)?.trialDays}
|
||||
<Tooltip>
|
||||
<div class="u-flex u-cross-center">
|
||||
<Pill class="eyebrow-heading-3" style="--p-tag-content-height:2rem"
|
||||
>TRIAL</Pill>
|
||||
</div>
|
||||
<span slot="tooltip"
|
||||
>{`Your trial ends on ${toLocaleDate(
|
||||
$organization.billingStartDate
|
||||
)}. ${$daysLeftInTrial} days remaining.`}</span>
|
||||
</Tooltip>
|
||||
{/if}
|
||||
</span>
|
||||
<div class="u-margin-inline-start-auto">
|
||||
<div class="u-flex u-gap-16 u-cross-center">
|
||||
<a href={`${path}/members`} class="is-not-mobile">
|
||||
<AvatarGroup size={40} {avatars} total={$members?.total ?? 0} />
|
||||
<AvatarGroup size={32} {avatars} total={$members?.total ?? 0} />
|
||||
</a>
|
||||
|
||||
<div>
|
||||
{#if $isOwner}
|
||||
<Button
|
||||
secondary
|
||||
size="s"
|
||||
on:click={() => newMemberModal.set(true)}
|
||||
disabled={areMembersLimited}>
|
||||
<span class="icon-plus" aria-hidden="true" />
|
||||
|
||||
@@ -16,12 +16,12 @@
|
||||
} from '$lib/components';
|
||||
import { Button } from '$lib/elements/forms';
|
||||
import { toLocaleDate, toLocaleDateTime } from '$lib/helpers/date';
|
||||
import { Container, ContainerHeader } from '$lib/layout';
|
||||
import { Container } from '$lib/layout';
|
||||
import type { Models } from '@appwrite.io/console';
|
||||
import { writable } from 'svelte/store';
|
||||
import type { PageData } from './$types';
|
||||
import Create from './createUser.svelte';
|
||||
import { Badge, Icon, Table, Layout, Tooltip } from '@appwrite.io/pink-svelte';
|
||||
import { Badge, Icon, Table, Layout } from '@appwrite.io/pink-svelte';
|
||||
import { Tag } from '@appwrite.io/pink-svelte';
|
||||
import { IconDuplicate } from '@appwrite.io/pink-icons-svelte';
|
||||
import { canWriteUsers } from '$lib/stores/roles';
|
||||
|
||||
Reference in new issue
Block a user