Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate to astro #998

Closed
wants to merge 16 commits into from
Closed

migrate to astro #998

wants to merge 16 commits into from

Conversation

ryoppippi
Copy link
Owner

I really love SvelteKit, but managing multiple pages are tough for me.

@ryoppippi
Copy link
Owner Author

move all sveltekit implementation to sveltekit dir

Copy link

cloudflare-workers-and-pages bot commented Oct 9, 2024

Deploying ryoppippi-com with  Cloudflare Pages  Cloudflare Pages

Latest commit: 99c9819
Status:🚫  Build failed.

View logs

Copy link

socket-security bot commented Oct 9, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@astrojs/check@0.9.4 Transitive: environment, eval, filesystem, network, shell, unsafe +97 25.4 MB fredkschott, matthewp, natemoo-re
npm/@astrojs/mdx@3.1.7 Transitive: environment, eval, filesystem, network +181 21.4 MB fredkschott
npm/@astrojs/svelte@5.7.2 Transitive: environment, filesystem, network, shell +24 8.17 MB fredkschott
npm/@astrojs/ts-plugin@1.10.2 Transitive: environment, filesystem +11 6.68 MB fredkschott
npm/astro-meta-tags@0.3.1 None 0 7.18 kB patrick91
npm/astro@4.15.12 Transitive: environment, eval, filesystem, network, shell +316 64.9 MB fredkschott
npm/eslint-plugin-astro@1.2.4 unsafe Transitive: environment, filesystem +61 12 MB ota-meshi
npm/svelte@5.0.0-next.263 None +17 4.67 MB conduitry, rich_harris, svelte-admin
npm/typescript@5.6.3 None 0 22.4 MB andrewbranch, minestarks, rbuckton, ...5 more

🚮 Removed packages: npm/@secretlint/secretlint-rule-preset-recommend@8.4.0, npm/@shikijs/markdown-it@1.22.0, npm/@shikijs/twoslash@1.22.0, npm/@sveltejs/adapter-auto@3.2.5, npm/@sveltejs/adapter-static@3.0.5, npm/@sveltejs/enhanced-img@0.3.8, npm/@sveltejs/kit@2.6.3, npm/@sveltejs/vite-plugin-svelte@4.0.0-next.7, npm/@total-typescript/ts-reset@0.6.1, npm/@types/dom-view-transitions@1.0.5, npm/@types/fs-extra@11.0.4, npm/@types/markdown-it-link-attributes@3.0.5, npm/@types/markdown-it@14.1.2, npm/@types/node@22.7.5, npm/buffer@6.0.3, npm/date-fns@4.1.0, npm/favicons@7.2.0, npm/feed@4.2.2, npm/fs-extra@11.2.0, npm/markdown-it-anchor@9.2.0, npm/markdown-it-budoux@1.0.5, npm/markdown-it-github-alerts@0.3.0, npm/markdown-it-image-figures@2.1.1, npm/markdown-it-link-attributes@4.0.1, npm/markdown-it@14.1.0, npm/reading-time@1.5.0, npm/rss-parser@3.13.0, npm/secretlint@8.4.0, npm/sort-on@6.1.0, npm/svelte-check@4.0.4, npm/svelte-meta-tags@3.1.4, npm/svelte-preprocess-import-assets@1.1.0, npm/svelte-vertical-timeline@1.0.2, npm/svelte@5.0.0-next.262, npm/ts-patch@3.2.1, npm/typescript-svelte-plugin@0.3.42, npm/typescript@5.6.2, npm/unplugin-icons@0.19.3, npm/unplugin-svelte-components@0.3.1, npm/vite-env-only@3.0.3, npm/vite-plugin-favicons@0.1.5

View full report↗︎

diff --git a/package.json b/package.json
index 590fe0c..299117e 100644
--- a/package.json
+++ b/package.json
@@ -29,6 +29,9 @@
 		"@core/pipe": "npm:@jsr/core__pipe@0.3.1",
 		"@iconify-json/catppuccin": "^1.2.4",
 		"@iconify-json/material-symbols-light": "^1.2.2",
+		"@iconify-json/ph": "^1.2.0",
+		"@iconify-json/solar": "^1.2.0",
+		"@iconify-json/system-uicons": "^1.2.0",
 		"@ryoppippi/eslint-config": "npm:@jsr/ryoppippi__eslint-config@^0.0.23",
 		"@ryoppippi/unocss-preset": "npm:@jsr/ryoppippi__unocss-preset@^1.0.3",
 		"@std/collections": "npm:@jsr/std__collections@^1.0.7",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index d4960eb..3fb4389 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -48,6 +48,15 @@ importers:
       '@iconify-json/material-symbols-light':
         specifier: ^1.2.2
         version: 1.2.2
+      '@iconify-json/ph':
+        specifier: ^1.2.0
+        version: 1.2.0
+      '@iconify-json/solar':
+        specifier: ^1.2.0
+        version: 1.2.0
+      '@iconify-json/system-uicons':
+        specifier: ^1.2.0
+        version: 1.2.0
       '@ryoppippi/eslint-config':
         specifier: npm:@jsr/ryoppippi__eslint-config@^0.0.23
         version: '@jsr/ryoppippi__eslint-config@0.0.23(@typescript-eslint/utils@8.8.1(eslint@9.12.0(jiti@1.21.6))(typescript@5.6.3))(@vue/compiler-sfc@3.5.11)(astro-eslint-parser@1.0.3(typescript@5.6.3))(eslint-plugin-astro@1.2.4(eslint@9.12.0(jiti@1.21.6))(typescript@5.6.3))(eslint-plugin-format@0.1.2(eslint@9.12.0(jiti@1.21.6)))(eslint-plugin-svelte@2.44.1(eslint@9.12.0(jiti@1.21.6))(svelte@5.0.0-next.263))(eslint@9.12.0(jiti@1.21.6))(svelte-eslint-parser@0.41.1(svelte@5.0.0-next.263))(svelte@5.0.0-next.263)(typescript@5.6.3)'
@@ -688,6 +697,15 @@ packages:
   '@iconify-json/material-symbols-light@1.2.2':
     resolution: {integrity: sha512-Wey9XCGiZPK9zenZATmA0yz6jUK40c3WwgCOhxbtEbPji/IidgtAd3Oa57AfUcViC3M3AP5sHIb2FV2o5p1NEA==}

+  '@iconify-json/ph@1.2.0':
+    resolution: {integrity: sha512-013eLpgTmX1lACOuDnkuhC7gRHyYj9w/j8SyDmlyUYvsKQrwdRsv1otcXtwH3DevuDAzSkreeeRsCeez+gTyVA==}
+
+  '@iconify-json/solar@1.2.0':
+    resolution: {integrity: sha512-xMspRoN2S2Op8mgjZHgiMJq2Xqo5oVlBp/1NICTeMByfePpkEKF67Fwh5KdBRF+SBey/cNLhjkTuHmKeSIEkog==}
+
+  '@iconify-json/system-uicons@1.2.0':
+    resolution: {integrity: sha512-ZT3DX8FwfnP21Z6qBsdJlvi6qlSrtTaDEExAdo9XR34HN+FARzZIuZab12Y/UYyJgYoq/eCC5X4nT1hWz49U9g==}
+
   '@iconify/types@2.0.0':
     resolution: {integrity: sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==}

@@ -4188,6 +4206,18 @@ snapshots:
     dependencies:
       '@iconify/types': 2.0.0

+  '@iconify-json/ph@1.2.0':
+    dependencies:
+      '@iconify/types': 2.0.0
+
+  '@iconify-json/solar@1.2.0':
+    dependencies:
+      '@iconify/types': 2.0.0
+
+  '@iconify-json/system-uicons@1.2.0':
+    dependencies:
+      '@iconify/types': 2.0.0
+
   '@iconify/types@2.0.0': {}

   '@iconify/utils@2.1.33':
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro
new file mode 100644
index 0000000..b7a8048
--- /dev/null
+++ b/src/layouts/Layout.astro
@@ -0,0 +1,28 @@
+---
+type Props = {
+	title: string;
+};
+
+const { title } = Astro.props;
+---
+
+<html lang="en">
+	<head>
+		<meta charset="utf-8" />
+		<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
+		<meta name="viewport" content="width=device-width" />
+		<meta name="generator" content={Astro.generator} />
+		<title>{title}</title>
+	</head>
+	<body>
+		<main
+			max-w-4xl
+			mxa
+			my3
+			px-8
+			un-dark
+		>
+			<slot />
+		</main>
+	</body>
+</html>
diff --git a/src/pages/index.astro b/src/pages/index.astro
index 2d14107..926e3ea 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -1,16 +1,8 @@
 ---
+import Layout from '@/layouts/Layout.astro';

 ---

-<html lang="en">
-	<head>
-		<meta charset="utf-8" />
-		<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
-		<meta name="viewport" content="width=device-width" />
-		<meta name="generator" content={Astro.generator} />
-		<title>Astro</title>
-	</head>
-	<body>
-		<h1>Astro</h1>
-	</body>
-</html>
+<Layout title="ryoppippi.com">
+	fuck you
+</Layout>
@ryoppippi
Copy link
Owner Author

It is better in some aspects.

I just want to use fetch api in sync.

Maybe SvelteKit provides it in the future?

@ryoppippi ryoppippi closed this Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant