Skip to content

Commit c9d12e4

Browse files
authored
Merge branch 'main' into blog-multi-cloud
2 parents 3768de5 + adb0225 commit c9d12e4

File tree

202 files changed

+3290
-835
lines changed

Some content is hidden

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

202 files changed

+3290
-835
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The Appwrite Website has been built with the following frameworks:
1515

1616
## Development
1717

18-
_If this is your first time setting up the repository, please run `pnpm install` inside the repo's directory._
18+
_If this is your first time setting up the repository, please run `pnpm install` inside the repo's directory and create a `.env` file based on `.env.example`._
1919

2020
To get the repo up and running in your local environment, use the following command:
2121

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"download-contributors": "node ./scripts/download-contributor-data.js",
1313
"format": "prettier --write .",
1414
"format:check": "prettier --check .",
15-
"generate:icons": "pnpx svgo -rf src/icons/svg -o src/icons/optimized",
15+
"generate:icons": "node ./src/icons/optimize.js",
1616
"icons:build": "node ./src/icons/build.js",
1717
"icons:generate": "node ./src/icons/optimize.js && node ./src/icons/build.js",
1818
"icons:optimize": "node ./src/icons/optimize.js",
@@ -28,15 +28,14 @@
2828
"dependencies": {
2929
"@number-flow/svelte": "^0.3.3",
3030
"h3": "^1.14.0",
31-
"melt": "^0.28.2",
3231
"posthog-js": "^1.210.2",
3332
"sharp": "^0.33.5"
3433
},
3534
"devDependencies": {
3635
"@appwrite.io/console": "^0.6.4",
3736
"@appwrite.io/pink": "~0.26.0",
3837
"@appwrite.io/pink-icons": "~0.26.0",
39-
"@appwrite.io/repo": "github:appwrite/appwrite#1.6.x",
38+
"@appwrite.io/repo": "github:appwrite/appwrite#feat-multi-region-docs",
4039
"@eslint/compat": "^1.2.7",
4140
"@eslint/js": "^9.21.0",
4241
"@fingerprintjs/fingerprintjs": "^4.5.1",
@@ -54,6 +53,7 @@
5453
"@types/markdown-it": "^13.0.9",
5554
"@types/morgan": "^1.9.9",
5655
"analytics": "^0.8.16",
56+
"bits-ui": "^1.3.19",
5757
"clsx": "^2.1.1",
5858
"cva": "npm:class-variance-authority@^0.7.1",
5959
"date-fns": "^3.6.0",
@@ -70,6 +70,7 @@
7070
"highlight.js": "^11.11.1",
7171
"markdown-it": "^14.1.0",
7272
"meilisearch": "^0.37.0",
73+
"melt": "^0.29.2",
7374
"motion": "^10.18.0",
7475
"node-html-parser": "^6.1.13",
7576
"openapi-types": "^12.1.3",

pnpm-lock.yaml

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

src/app.css

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,14 @@
8484
/* Animations */
8585
--animate-scale-in: scale-in 200ms ease-out forwards;
8686
--animate-caret-blink: caret-blink 1s ease-in-out infinite;
87-
--animate-text:
88-
fade 0.75s ease-in-out both, blur 0.75s ease-in-out both, up 0.75s ease-in-out both;
87+
--animate-enter:
88+
fade-in 0.75s ease-in-out both, blur 0.75s ease-in-out both, up 0.75s ease-in-out both;
8989
--animate-scroll: scroll 60s linear infinite;
9090
--animate-fade-in: fade-in 0.5s ease-in-out both;
9191
--animate-marquee: marquee var(--speed, 30s) linear infinite var(--direction, forwards);
9292
--animate-lighting: lighting 1.25s ease-out forwards;
93+
--animate-menu-in: menu-in 0.25s ease-out forwards;
94+
--animate-menu-out: menu-out 0.25s ease-out forwards;
9395

9496
/* Keyframes */
9597
@keyframes scale-in {
@@ -168,6 +170,32 @@
168170
}
169171
}
170172

173+
@keyframes menu-in {
174+
0% {
175+
opacity: 0;
176+
filter: blur(2px);
177+
transform: translateY(8px);
178+
}
179+
100% {
180+
opacity: 1;
181+
filter: blur(0px);
182+
transform: translateY(0px);
183+
}
184+
}
185+
186+
@keyframes menu-out {
187+
0% {
188+
opacity: 1;
189+
filter: blur(0px);
190+
transform: translateY(0px);
191+
}
192+
100% {
193+
opacity: 0;
194+
filter: blur(2px);
195+
transform: translateY(8px);
196+
}
197+
}
198+
171199
/* Fonts */
172200
--font-sans: 'Inter', arial, sans-serif;
173201
--font-mono: 'Fira Code', monospace;

src/icons/optimized/edge.svg

Lines changed: 1 addition & 0 deletions
Loading

src/icons/optimized/pop-locations.svg

Lines changed: 1 addition & 0 deletions
Loading

src/icons/optimized/regions.svg

Lines changed: 1 addition & 0 deletions
Loading

src/icons/scripts.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const outputPath = resolve(process.cwd(), 'src/lib/components/ui/icon');
1111

1212
const generateIconSprite = () => {
1313
const files = readdirSync(optimized);
14-
const outputDir = resolve(`${outputPath}`);
14+
const outputDir = resolve(`${outputPath}/sprite`);
1515
const spriteOutputPath = resolve(outputDir, 'sprite.svelte');
1616

1717
if (!existsSync(outputDir)) {
@@ -31,7 +31,9 @@ const generateIconSprite = () => {
3131
const svgMatch = svgContent.match(/<svg[^>]*>([\s\S]*?)<\/svg>/i);
3232

3333
if (svgMatch && svgMatch[1]) {
34-
const innerContent = svgMatch[1].trim();
34+
const innerContent = svgMatch[1]
35+
.trim()
36+
.replace(/fill=['"]([^'"]*)['"]/g, 'fill="currentColor"');
3537
const viewBoxMatch = svgContent.match(/viewBox=['"]([^'"]*)['"]/i);
3638
const viewBox = viewBoxMatch ? viewBoxMatch[1] : '0 0 24 24';
3739

@@ -74,7 +76,10 @@ export const optimizeSVG = async () => {
7476
showProgressBar: true
7577
});
7678

77-
await fixer.fix();
79+
await fixer
80+
.fix()
81+
.then(() => generateIconSprite())
82+
.then(() => generateIconType());
7883
};
7984

8085
export const generateIcons = async () => {
@@ -98,7 +103,5 @@ export const generateIcons = async () => {
98103
},
99104
emptyDist: true,
100105
generateInfoData: true
101-
})
102-
.then(() => generateIconSprite())
103-
.then(() => generateIconType());
106+
});
104107
};

src/icons/svg/edge.svg

Lines changed: 14 additions & 0 deletions
Loading

src/icons/svg/pop-locations.svg

Lines changed: 13 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)