fixed things, ran formatter.

This commit is contained in:
Darshan committed 2025-01-10 19:45:12 +05:30
1 parent aacd0301bc
commit e6b2f1a19c
9 files changed
+52 -49

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@
"@appwrite.io/pink": "0.25.0",
"@appwrite.io/pink-icons": "0.25.0",
"@appwrite.io/pink-icons-svelte": "1.0.0-next.7",
"@appwrite.io/pink-svelte": "https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@244",
"@appwrite.io/pink-svelte": "https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@246",
"@popperjs/core": "^2.11.8",
"@sentry/sveltekit": "^8.38.0",
"@stripe/stripe-js": "^3.5.0",
+11 -11
View File
@@ -21,8 +21,8 @@ importers:
specifier: 1.0.0-next.7
version: 1.0.0-next.7(svelte@4.2.19)
'@appwrite.io/pink-svelte':
specifier: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@244
version: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@244(react-dom@18.3.1(react@18.3.1))(svelte@4.2.19)
specifier: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@246
version: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@246(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.11(@types/node@22.10.1)(sass@1.81.0))(vitest@1.6.0)
version: 5.2.6(svelte@4.2.19)(vite@5.4.11(@types/node@22.10.1)(sass@1.81.0))(vitest@1.6.0(@types/node@22.10.1)(@vitest/ui@1.6.0)(jsdom@22.1.0)(sass@1.81.0))
'@testing-library/user-event':
specifier: ^14.5.2
version: 14.5.2(@testing-library/dom@10.4.0)
@@ -223,8 +223,8 @@ packages:
peerDependencies:
svelte: ^4.0.0
'@appwrite.io/pink-icons-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@4093c9ebd33d3267b9ad28992c119d193e5d4281':
resolution: {tarball: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@4093c9ebd33d3267b9ad28992c119d193e5d4281}
'@appwrite.io/pink-icons-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@fd8846c3c7186379d300f897fe6ee4b7b7c346e2':
resolution: {tarball: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@fd8846c3c7186379d300f897fe6ee4b7b7c346e2}
version: 1.0.0-next.7
peerDependencies:
svelte: ^4.0.0
@@ -232,8 +232,8 @@ packages:
'@appwrite.io/pink-icons@0.25.0':
resolution: {integrity: sha512-0O3i2oEuh5mWvjO80i+X6rbzrWLJ1m5wmv2/M3a1p2PyBJsFxN8xQMTEmTn3Wl/D26SsM7SpzbdW6gmfgoVU9Q==}
'@appwrite.io/pink-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@244':
resolution: {tarball: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@244}
'@appwrite.io/pink-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@246':
resolution: {tarball: https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@246}
version: 1.0.0-next.85
peerDependencies:
react-dom: ^18.0.0
@@ -4044,15 +4044,15 @@ snapshots:
dependencies:
svelte: 4.2.19
'@appwrite.io/pink-icons-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@4093c9ebd33d3267b9ad28992c119d193e5d4281(svelte@4.2.19)':
'@appwrite.io/pink-icons-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@fd8846c3c7186379d300f897fe6ee4b7b7c346e2(svelte@4.2.19)':
dependencies:
svelte: 4.2.19
'@appwrite.io/pink-icons@0.25.0': {}
'@appwrite.io/pink-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-svelte@244(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@246(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@4093c9ebd33d3267b9ad28992c119d193e5d4281(svelte@4.2.19)
'@appwrite.io/pink-icons-svelte': https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@fd8846c3c7186379d300f897fe6ee4b7b7c346e2(svelte@4.2.19)
'@floating-ui/dom': 1.6.12
'@melt-ui/svelte': 0.83.0(svelte@4.2.19)
pretty-bytes: 6.1.1
@@ -5314,7 +5314,7 @@ snapshots:
lodash: 4.17.21
redent: 3.0.0
'@testing-library/svelte@5.2.6(svelte@4.2.19)(vite@5.4.11(@types/node@22.10.1)(sass@1.81.0))(vitest@1.6.0)':
'@testing-library/svelte@5.2.6(svelte@4.2.19)(vite@5.4.11(@types/node@22.10.1)(sass@1.81.0))(vitest@1.6.0(@types/node@22.10.1)(@vitest/ui@1.6.0)(jsdom@22.1.0)(sass@1.81.0))':
dependencies:
'@testing-library/dom': 10.4.0
svelte: 4.2.19
+1 -1
View File
@@ -65,4 +65,4 @@
on:invalid={handleInvalid}
on:input
on:change
bind:value />
bind:value />
+1 -1
View File
@@ -22,7 +22,7 @@
export let buttonType: 'primary' | 'secondary' | 'text' = 'primary';
</script>
<Tooltip {disabled}>
<Tooltip disabled={!disabled}>
<Button
size="s"
text={buttonType === 'text'}
-1
View File
@@ -19,7 +19,6 @@
export let isOpen = false;
$: project = $page.params.project;
$: projectPath = `${base}/project-${project}`;
@@ -237,10 +237,14 @@
{@const formatted = formatColumn(document[column.id])}
<TableCell>
<Tooltip disabled={!formatted.truncated}>
<div class="u-width-fit-content" data-private class:truncated={formatted.whole.length >
formatted.value.length}
class:less-width-truncated={$columns.filter((col) => col.show)
.length > 1}>
<div
class="u-width-fit-content"
data-private
class:truncated={formatted.whole.length >
formatted.value.length}
class:less-width-truncated={$columns.filter(
(col) => col.show
).length > 1}>
{formatted.value}
</div>
<span>{formatted.whole}</span>
@@ -93,10 +93,7 @@
async function cancelDeployment() {
try {
await sdk.forProject.sites.updateDeploymentBuild(
deployment.resourceId,
deployment.$id
);
await sdk.forProject.sites.updateDeploymentBuild(deployment.resourceId, deployment.$id);
await invalidate(Dependencies.DEPLOYMENTS);
addNotification({
type: 'success',
@@ -21,32 +21,36 @@
<Modal title="Create site" bind:show>
<Layout.Stack direction="row" gap="m" wrap="wrap">
<div style="flex-grow: 1; min-width: 245px">
<LabelCard
variant="secondary"
padding="xs"
radius="s"
imageRadius="xxs"
src={$app?.themeInUse === 'dark' ? RepoDark : RepoLight}
title="Connect a repository"
name="connect"
bind:group={behaviour}
value="repositories">
Connect to one of your existing Git repositories
</LabelCard>
<Layout.Stack direction="column" justifyContent="center">
<LabelCard
variant="secondary"
padding="xs"
radius="s"
imageRadius="xxs"
src={$app?.themeInUse === 'dark' ? RepoDark : RepoLight}
title="Connect a repository"
name="connect"
bind:group={behaviour}
value="repositories">
Connect to one of your existing Git repositories
</LabelCard>
</Layout.Stack>
</div>
<div style="flex-grow: 1; min-width: 245px">
<LabelCard
variant="secondary"
padding="xs"
radius="s"
imageRadius="xxs"
src={$app?.themeInUse === 'dark' ? TemplateDark : TemplateLight}
title="Clone a template"
name="clone"
bind:group={behaviour}
value="templates">
Clone a pre-built template to quickly set up your site
</LabelCard>
<Layout.Stack direction="column" justifyContent="center">
<LabelCard
variant="secondary"
padding="xs"
radius="s"
imageRadius="xxs"
src={$app?.themeInUse === 'dark' ? TemplateDark : TemplateLight}
title="Clone a template"
name="clone"
bind:group={behaviour}
value="templates">
Clone a pre-built template to quickly set up your site
</LabelCard>
</Layout.Stack>
</div>
</Layout.Stack>
<svelte:fragment slot="footer">
@@ -38,8 +38,7 @@
icon="exclamation"
state="warning">
<p data-private>
Are you sure you want to delete this site and all associated deployments from your
project?
Are you sure you want to delete this site and all associated deployments from your project?
</p>
<svelte:fragment slot="footer">
<Button text on:click={() => (showDelete = false)}>Cancel</Button>