Skip to content

Commit cfe031d

Browse files
committed
Merge branch 'main' into update-timestamps-doc
2 parents a82f508 + 434e7fb commit cfe031d

File tree

241 files changed

+11828
-5060
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

241 files changed

+11828
-5060
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"optimize": "node ./scripts/optimize-assets.js",
2525
"optimize:all": "node ./scripts/optimize-all.js"
2626
},
27-
"packageManager": "pnpm@10.14.0",
27+
"packageManager": "pnpm@10.15.0",
2828
"dependencies": {
2929
"h3": "^1.14.0",
3030
"posthog-js": "^1.210.2",
@@ -34,7 +34,7 @@
3434
"@appwrite.io/console": "^0.6.4",
3535
"@appwrite.io/pink": "~0.26.0",
3636
"@appwrite.io/pink-icons": "~0.26.0",
37-
"@appwrite.io/repo": "github:appwrite/appwrite#1.7.x",
37+
"@appwrite.io/repo": "github:appwrite/appwrite#1.8.x",
3838
"@eslint/compat": "^1.2.7",
3939
"@eslint/js": "^9.21.0",
4040
"@fingerprintjs/fingerprintjs": "^4.5.1",

pnpm-lock.yaml

Lines changed: 1794 additions & 1735 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/components/FooterNav.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999

100100
<nav
101101
aria-label="Footer"
102-
class="web-footer-nav relative container mt-24"
102+
class="web-footer-nav relative mt-24"
103103
class:web-u-sep-block-start={!noBorder}
104104
>
105105
<img class="web-logo" src="/images/logos/appwrite.svg" alt="appwrite" height="24" width="130" />
@@ -134,7 +134,7 @@
134134
>
135135
<h5 use:melt={$heading({ level: 5 })}>
136136
<button
137-
class="web-footer-nav-button web-is-only-mobile"
137+
class="web-footer-nav-button web-is-only-mobile px-0!"
138138
use:melt={$trigger({ value: title })}
139139
>
140140
<span class="text-caption font-medium uppercase">{title}</span>

src/lib/components/MainFooter.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</li>
2626
{/each}
2727
</ul>
28-
<div class="mt-1 grid grid-cols-2 gap-y-4 md:grid-cols-3">
28+
<div class="mt-1 grid grid-cols-1 gap-y-4 md:grid-cols-3">
2929
<div>Copyright © {year} Appwrite</div>
3030

3131
<iframe

src/lib/components/Newsletter.svelte

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -38,50 +38,6 @@
3838
}
3939
</script>
4040

41-
<div class="pre-footer-bg" style="pointer-events:none;">
42-
<svg
43-
xmlns="http://www.w3.org/2000/svg"
44-
width="692"
45-
height="1171"
46-
viewBox="0 0 692 1171"
47-
fill="none"
48-
style="max-inline-size:100%;"
49-
>
50-
<g opacity="0.4" filter="url(#filter0_f_1577_37321)">
51-
<path
52-
d="M-96.9811 29.2126C-329.155 33.7322 -513.706 225.611 -509.186 457.785C-504.667 689.959 -312.788 874.51 -80.6141 869.99C33.1857 867.775 -132.237 523.592 -36.8339 437.579C62.4044 348.109 394.063 627.529 391.759 509.155C387.239 276.98 135.193 24.693 -96.9811 29.2126Z"
53-
fill="url(#paint0_radial_1577_37321)"
54-
/>
55-
</g>
56-
<defs>
57-
<filter
58-
id="filter0_f_1577_37321"
59-
x="-809.268"
60-
y="-270.847"
61-
width="1501.04"
62-
height="1440.92"
63-
filterUnits="userSpaceOnUse"
64-
color-interpolation-filters="sRGB"
65-
>
66-
<feFlood flood-opacity="0" result="BackgroundImageFix" />
67-
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape" />
68-
<feGaussianBlur stdDeviation="150" result="effect1_foregroundBlur_1577_37321" />
69-
</filter>
70-
<radialGradient
71-
id="paint0_radial_1577_37321"
72-
cx="0"
73-
cy="0"
74-
r="1"
75-
gradientUnits="userSpaceOnUse"
76-
gradientTransform="translate(-88.7975 449.601) rotate(178.885) scale(420.468 420.468)"
77-
>
78-
<stop offset="0.281696" stop-color="#FE9567" />
79-
<stop offset="0.59375" stop-color="#FD366E" />
80-
</radialGradient>
81-
</defs>
82-
</svg>
83-
</div>
84-
8541
<div class="web-big-padding-section">
8642
<div class="py-10">
8743
<div class="web-big-padding-section-level-2">
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<script lang="ts">
2+
import { getContext } from 'svelte';
3+
import { handleCopy } from '$lib/utils/copy';
4+
import { cn } from '$lib/utils/cn';
5+
import { rawContent } from '$routes/docs/+layout.svelte';
6+
7+
interface CopyAsMarkdownProps {
8+
class?: string;
9+
}
10+
11+
const { copy, copied } = handleCopy($rawContent ?? '', 2000);
12+
13+
const { class: classNames }: CopyAsMarkdownProps = $props();
14+
</script>
15+
16+
{#if $rawContent}
17+
<button
18+
class={cn(
19+
'text-caption hover:text-accent text-secondary ml-4 flex cursor-pointer items-center gap-2.5 rounded-md p-1.5 transition-colors',
20+
classNames
21+
)}
22+
onclick={copy}
23+
>
24+
<svg xmlns="http://www.w3.org/2000/svg" class="w-6" viewBox="0 0 208 128"
25+
><rect
26+
width="198"
27+
height="118"
28+
x="5"
29+
y="5"
30+
ry="10"
31+
stroke="currentColor"
32+
stroke-width="10"
33+
fill="none"
34+
/><path
35+
d="M30 98V30h20l20 25 20-25h20v68H90V59L70 84 50 59v39zm125 0l-30-33h20V30h20v35h20z"
36+
fill="currentColor"
37+
/>
38+
</svg>
39+
{#if $copied}
40+
Copied
41+
{:else}
42+
Copy page as markdown
43+
{/if}
44+
</button>
45+
{/if}

src/lib/components/blog/post-meta.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import { handleCopy } from '$lib/utils/copy';
44
import { formatDate } from '$lib/utils/date';
55
import type { AuthorData } from '$routes/blog/content';
6+
import { page } from '$app/state';
67
78
interface Props {
89
date?: string;

src/lib/components/blog/table-of-contents.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<script lang="ts">
1212
import { cn } from '$lib/utils/cn';
1313
import { onMount, tick } from 'svelte';
14+
import CopyAsMarkdown from './copy-as-markdown.svelte';
1415
interface TableOfContentProps {
1516
toc?: Array<TocItem>;
1617
heading?: string;
@@ -38,7 +39,7 @@
3839
<span class="text-eyebrow text-primary font-aeonik-fono ps-6 uppercase">{heading}</span>
3940
<div class="relative">
4041
<ul
41-
class="text-caption flex max-h-[600px] flex-col gap-4 overflow-scroll pb-11 [scrollbar-width:none]"
42+
class="text-caption flex max-h-[600px] flex-col gap-4 overflow-scroll [scrollbar-width:none]"
4243
bind:clientHeight={height}
4344
>
4445
{#each toc as parent (parent.href)}
@@ -80,4 +81,5 @@
8081
style:transform={`translateY(${position}px)`}
8182
></div>
8283
</div>
84+
<CopyAsMarkdown />
8385
</nav>

src/lib/layouts/DocsArticle.svelte

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,35 @@
1212
level?: number;
1313
}>;
1414
};
15+
16+
export type HeaderSectionInfoAlert = {
17+
title?: string;
18+
description?: string;
19+
};
1520
</script>
1621

1722
<script lang="ts">
18-
import { setContext } from 'svelte';
19-
import { writable } from 'svelte/store';
23+
import { getContext, hasContext, setContext } from 'svelte';
24+
import { readable, type Readable, writable } from 'svelte/store';
2025
import { Feedback } from '$lib/components';
2126
import TableOfContents from '$lib/components/blog/table-of-contents.svelte';
2227
import { Button, Icon } from '$lib/components/ui';
28+
import Info from '$markdoc/tags/Info.svelte';
2329
2430
export let title: string;
2531
export let toc: Array<TocItem>;
2632
export let back: string | undefined = undefined;
2733
export let date: string | undefined = undefined;
2834
2935
const reducedArticleSize = setContext('articleHasNumericBadge', writable(false));
36+
const headerSectionInfoAlert = hasContext('headerSectionInfoAlert')
37+
? getContext<Readable<HeaderSectionInfoAlert | null>>('headerSectionInfoAlert')
38+
: readable(null);
3039
</script>
3140

3241
<main class="contents" id="main">
3342
<article class="web-article contents">
34-
<header class="web-article-header">
43+
<header class="web-article-header flex flex-col">
3544
<div class="web-article-header-start web-u-cross-start flex flex-col">
3645
{#if back}
3746
<a
@@ -60,10 +69,10 @@
6069
/>
6170
</Button>
6271
{/if}
72+
6373
<h1 class="text-title font-aeonik-pro text-primary">{title}</h1>
6474
</div>
6575
</div>
66-
<div class="web-article-header-end"></div>
6776
</header>
6877
<div class="web-article-content prose" class:web-reduced-article-size={$reducedArticleSize}>
6978
<slot />

src/lib/layouts/DocsTutorial.svelte

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import { page } from '$app/state';
99
import { Button, Icon } from '$lib/components/ui';
1010
import { cn } from '$lib/utils/cn';
11+
import CopyAsMarkdown from '$lib/components/blog/copy-as-markdown.svelte';
1112
1213
export let toc: Array<TocItem>;
1314
export let back: string;
@@ -262,12 +263,14 @@
262263
</li>
263264
{/each}
264265
</ol>
265-
<div class="border-greyscale-900/4 border-t pt-5">
266+
267+
<div class="border-greyscale-900/4 border-t">
266268
<button class="web-link inline-flex items-center gap-2" use:scrollToTop>
267269
<span class="web-icon-arrow-up" aria-hidden="true"></span>
268270
<span class="text-caption">Back to top</span>
269271
</button>
270272
</div>
273+
<CopyAsMarkdown class="mt-4 ml-0" />
271274
</div>
272275
</aside>
273276
</article>

0 commit comments

Comments
 (0)