inital upgrade
This commit is contained in:
parent
fb64e3421a
commit
36ec3e1d1e
6 changed files with 363 additions and 437 deletions
|
@ -1,7 +1,6 @@
|
||||||
// @ts-check
|
// @ts-check
|
||||||
import { defineConfig } from "astro/config";
|
import { defineConfig } from "astro/config";
|
||||||
|
|
||||||
import tailwind from "@astrojs/tailwind";
|
|
||||||
|
|
||||||
import mdx from "@astrojs/mdx";
|
import mdx from "@astrojs/mdx";
|
||||||
|
|
||||||
|
@ -13,10 +12,14 @@ import node from "@astrojs/node";
|
||||||
|
|
||||||
import icon from "astro-icon";
|
import icon from "astro-icon";
|
||||||
|
|
||||||
|
|
||||||
|
import tailwindcss from "@tailwindcss/vite";
|
||||||
|
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
output: "server",
|
output: "server",
|
||||||
integrations: [tailwind(), expressiveCode(), react(), icon(), mdx()],
|
integrations: [ expressiveCode(), react(), icon(), mdx()],
|
||||||
|
|
||||||
adapter: node({
|
adapter: node({
|
||||||
mode: "standalone",
|
mode: "standalone",
|
||||||
|
@ -39,5 +42,7 @@ export default defineConfig({
|
||||||
process.env.LOGTO_API_ENDPOINT,
|
process.env.LOGTO_API_ENDPOINT,
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
|
||||||
|
plugins: [tailwindcss()],
|
||||||
},
|
},
|
||||||
});
|
});
|
43
package.json
43
package.json
|
@ -10,47 +10,48 @@
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/mdx": "^4.2.3",
|
"@astrojs/mdx": "4.2.5",
|
||||||
"@astrojs/node": "^9.1.3",
|
"@astrojs/node": "9.2.1",
|
||||||
"@astrojs/react": "^4.2.3",
|
"@astrojs/react": "4.2.5",
|
||||||
"@astrojs/tailwind": "^6.0.2",
|
"@heroui/react": "^2.7.6",
|
||||||
"@heroui/react": "^2.7.5",
|
|
||||||
"@iconify-json/heroicons": "^1.2.2",
|
"@iconify-json/heroicons": "^1.2.2",
|
||||||
"@iconify-json/mdi": "^1.2.3",
|
"@iconify-json/mdi": "^1.2.3",
|
||||||
"@iconify/react": "^5.2.0",
|
"@iconify/react": "^5.2.1",
|
||||||
|
"@tailwindcss/vite": "^4.1.4",
|
||||||
"@types/highlight.js": "^10.1.0",
|
"@types/highlight.js": "^10.1.0",
|
||||||
"@types/js-yaml": "^4.0.9",
|
"@types/js-yaml": "^4.0.9",
|
||||||
"@types/lodash": "^4.17.15",
|
"@types/lodash": "^4.17.16",
|
||||||
"@types/react": "^19.1.0",
|
"@types/react": "^19.1.2",
|
||||||
"@types/react-dom": "^19.1.1",
|
"@types/react-dom": "^19.1.2",
|
||||||
"astro": "^5.5.6",
|
"astro": "5.7.5",
|
||||||
"astro-expressive-code": "^0.40.2",
|
"astro-expressive-code": "^0.40.2",
|
||||||
"astro-icon": "^1.1.5",
|
"astro-icon": "^1.1.5",
|
||||||
"chart.js": "^4.4.7",
|
"chart.js": "^4.4.9",
|
||||||
"dexie": "^4.0.11",
|
"dexie": "^4.0.11",
|
||||||
"framer-motion": "^12.6.2",
|
"framer-motion": "^12.9.2",
|
||||||
"highlight.js": "^11.11.1",
|
"highlight.js": "^11.11.1",
|
||||||
"js-yaml": "^4.1.0",
|
"js-yaml": "^4.1.0",
|
||||||
"jszip": "^3.10.1",
|
"jszip": "^3.10.1",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"motion": "^11.15.0",
|
"motion": "^11.18.2",
|
||||||
"next": "^15.1.2",
|
"next": "^15.3.1",
|
||||||
"pocketbase": "^0.25.1",
|
"pocketbase": "^0.25.2",
|
||||||
"prismjs": "^1.29.0",
|
"prismjs": "^1.30.0",
|
||||||
"react": "^19.1.0",
|
"react": "^19.1.0",
|
||||||
"react-chartjs-2": "^5.3.0",
|
"react-chartjs-2": "^5.3.0",
|
||||||
"react-dom": "^19.1.0",
|
"react-dom": "^19.1.0",
|
||||||
"react-hot-toast": "^2.5.2",
|
"react-hot-toast": "^2.5.2",
|
||||||
"react-icons": "^5.4.0",
|
"react-icons": "^5.5.0",
|
||||||
"rehype-expressive-code": "^0.40.2",
|
"rehype-expressive-code": "^0.40.2",
|
||||||
"tailwindcss": "^3.4.16"
|
"tailwindcss": "^4.1.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/prismjs": "^1.26.5",
|
"@types/prismjs": "^1.26.5",
|
||||||
"daisyui": "^4.12.23",
|
"autoprefixer": "^10.4.21",
|
||||||
"prettier": "^3.4.2",
|
"daisyui": "^4.12.24",
|
||||||
|
"prettier": "^3.5.3",
|
||||||
"prettier-plugin-astro": "^0.14.1",
|
"prettier-plugin-astro": "^0.14.1",
|
||||||
"tailwindcss-animated": "^1.1.2",
|
"tailwindcss-animated": "^1.1.2",
|
||||||
"tailwindcss-motion": "^1.0.0"
|
"tailwindcss-motion": "^1.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
import Navbar from "../components/core/Navbar.astro";
|
import Navbar from "../components/core/Navbar.astro";
|
||||||
import Footer from "../components/core/Footer.astro";
|
import Footer from "../components/core/Footer.astro";
|
||||||
import InView from "../components/core/InView.astro";
|
import InView from "../components/core/InView.astro";
|
||||||
|
import "../styles/global.css";
|
||||||
---
|
---
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
|
|
|
@ -11,6 +11,7 @@ import { OfficerTypes } from "../schemas/pocketbase/schema";
|
||||||
import { initAuthSync } from "../scripts/database/initAuthSync";
|
import { initAuthSync } from "../scripts/database/initAuthSync";
|
||||||
import ToastProvider from "../components/dashboard/universal/ToastProvider";
|
import ToastProvider from "../components/dashboard/universal/ToastProvider";
|
||||||
import FirstTimeLoginManager from "../components/dashboard/universal/FirstTimeLoginManager";
|
import FirstTimeLoginManager from "../components/dashboard/universal/FirstTimeLoginManager";
|
||||||
|
import "../styles/global.css";
|
||||||
|
|
||||||
const title = "Dashboard";
|
const title = "Dashboard";
|
||||||
|
|
||||||
|
|
1
src/styles/global.css
Normal file
1
src/styles/global.css
Normal file
|
@ -0,0 +1 @@
|
||||||
|
@import "tailwindcss";
|
Loading…
Reference in a new issue