diff --git a/.prettierrc.yaml b/.prettierrc.yaml
index 93841fd..f82509d 100644
--- a/.prettierrc.yaml
+++ b/.prettierrc.yaml
@@ -7,5 +7,4 @@ endOfLine: 'auto'
pluginSearchDirs: false
plugins:
- 'prettier-plugin-astro'
- - 'prettier-plugin-svelte'
- 'prettier-plugin-tailwindcss'
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
index a57e938..e3cf23f 100644
--- a/.vscode/extensions.json
+++ b/.vscode/extensions.json
@@ -4,7 +4,6 @@
"mgmcdermott.vscode-language-babel",
"EditorConfig.EditorConfig",
"esbenp.prettier-vscode",
- "svelte.svelte-vscode",
"bradlc.vscode-tailwindcss",
"redhat.vscode-yaml"
]
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 17850c4..6c36765 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -5,14 +5,9 @@
"emmet.includeLanguages": { "javascript": "javascriptreact", "astro": "javascriptreact" },
"files.eol": "\n",
"prettier.documentSelectors": ["**/*.astro"],
- "svelte.enable-ts-plugin": true,
"tailwindCSS.classAttributes": ["class", "className", "class:list"],
"tailwindCSS.experimental.classRegex": [["/\\* tw \\*/ ([^;]*);", "'([^']*)'"]],
- "tailwindCSS.includeLanguages": {
- "javascript": "javascriptreact",
- "astro": "javascriptreact",
- "svelte": "javascriptreact"
- },
+ "tailwindCSS.includeLanguages": { "javascript": "javascriptreact", "astro": "javascriptreact" },
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}
diff --git a/astro.config.ts b/astro.config.ts
index 6c1456e..951d42d 100644
--- a/astro.config.ts
+++ b/astro.config.ts
@@ -1,12 +1,11 @@
import image from '@astrojs/image';
-import svelte from '@astrojs/svelte';
import tailwind from '@astrojs/tailwind';
import { defineConfig } from 'astro/config';
import { visualizer } from 'rollup-plugin-visualizer';
// https://astro.build/config
export default defineConfig({
- integrations: [tailwind(), image(), svelte()],
+ integrations: [tailwind(), image()],
vite: {
plugins: [visualizer()],
},
diff --git a/package-lock.json b/package-lock.json
index 73b7d53..b6c2cbf 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -9,7 +9,8 @@
"version": "0.0.1",
"dependencies": {
"@floating-ui/dom": "1.1.0",
- "iconify-icon": "1.0.2"
+ "iconify-icon": "1.0.2",
+ "nanoid": "4.0.0"
},
"devDependencies": {
"@astrojs/image": "0.12.1",
@@ -5206,15 +5207,14 @@
"dev": true
},
"node_modules/nanoid": {
- "version": "3.3.4",
- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz",
- "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==",
- "dev": true,
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-4.0.0.tgz",
+ "integrity": "sha512-IgBP8piMxe/gf73RTQx7hmnhwz0aaEXYakvqZyE302IXW3HyVNhdNGC+O2MwMAVhLEnvXlvKtGbtJf6wvHihCg==",
"bin": {
- "nanoid": "bin/nanoid.cjs"
+ "nanoid": "bin/nanoid.js"
},
"engines": {
- "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+ "node": "^14 || ^16 || >=18"
}
},
"node_modules/napi-build-utils": {
@@ -5834,6 +5834,18 @@
"integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",
"dev": true
},
+ "node_modules/postcss/node_modules/nanoid": {
+ "version": "3.3.4",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz",
+ "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==",
+ "dev": true,
+ "bin": {
+ "nanoid": "bin/nanoid.cjs"
+ },
+ "engines": {
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+ }
+ },
"node_modules/prebuild-install": {
"version": "7.1.1",
"resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.1.tgz",
@@ -12187,10 +12199,9 @@
"dev": true
},
"nanoid": {
- "version": "3.3.4",
- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz",
- "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==",
- "dev": true
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-4.0.0.tgz",
+ "integrity": "sha512-IgBP8piMxe/gf73RTQx7hmnhwz0aaEXYakvqZyE302IXW3HyVNhdNGC+O2MwMAVhLEnvXlvKtGbtJf6wvHihCg=="
},
"napi-build-utils": {
"version": "1.0.2",
@@ -12552,6 +12563,14 @@
"nanoid": "^3.3.4",
"picocolors": "^1.0.0",
"source-map-js": "^1.0.2"
+ },
+ "dependencies": {
+ "nanoid": {
+ "version": "3.3.4",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz",
+ "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==",
+ "dev": true
+ }
}
},
"postcss-import": {
diff --git a/package.json b/package.json
index 53d9c54..23ecce4 100644
--- a/package.json
+++ b/package.json
@@ -20,15 +20,13 @@
},
"dependencies": {
"@floating-ui/dom": "1.1.0",
- "iconify-icon": "1.0.2"
+ "iconify-icon": "1.0.2",
+ "nanoid": "4.0.0"
},
"devDependencies": {
"@astrojs/image": "0.12.1",
"@astrojs/react": "1.2.2",
- "@astrojs/svelte": "1.0.2",
"@astrojs/tailwind": "2.1.3",
- "@types/react": "18.0.26",
- "@types/react-dom": "18.0.10",
"astro": "1.9.2",
"concurrently": "7.6.0",
"iconify-icon-names": "1.1.0",
@@ -36,10 +34,8 @@
"postcss": "8.4.21",
"prettier": "2.8.2",
"prettier-plugin-astro": "0.7.2",
- "prettier-plugin-svelte": "2.9.0",
"prettier-plugin-tailwindcss": "0.2.1",
"rollup-plugin-visualizer": "5.9.0",
- "svelte": "3.55.1",
"tailwindcss": "3.2.4",
"typescript": "4.9.4"
}
diff --git a/src/components/icon-button.astro b/src/components/icon-button.astro
index 7781344..4775de1 100644
--- a/src/components/icon-button.astro
+++ b/src/components/icon-button.astro
@@ -1,7 +1,7 @@
---
import type { IconName } from '@/types/icon';
-import Icon from './icon.svelte';
+import Icon from './icon.astro';
type IconButtonSize = 'small' | 'large';
@@ -28,5 +28,5 @@ const classes = /* tw */ {
---
-