refactor(all): biomejs
This commit is contained in:
parent
4aa7fac47f
commit
7243cd8872
8 changed files with 99 additions and 56 deletions
18
.vscode/launch.json
vendored
18
.vscode/launch.json
vendored
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"command": "./node_modules/.bin/astro dev",
|
||||
"name": "Development server",
|
||||
"request": "launch",
|
||||
"type": "node-terminal"
|
||||
}
|
||||
]
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"command": "./node_modules/.bin/astro dev",
|
||||
"name": "Development server",
|
||||
"request": "launch",
|
||||
"type": "node-terminal"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { defineConfig } from "astro/config";
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
import { defineConfig } from "astro/config";
|
||||
|
||||
export default defineConfig({
|
||||
vite: {
|
||||
|
|
43
biome.json
Normal file
43
biome.json
Normal file
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
|
||||
"vcs": {
|
||||
"enabled": false,
|
||||
"clientKind": "git",
|
||||
"useIgnoreFile": false
|
||||
},
|
||||
"files": {
|
||||
"ignoreUnknown": false,
|
||||
"ignore": ["node_modules", "dist"]
|
||||
},
|
||||
"formatter": {
|
||||
"enabled": true,
|
||||
"indentStyle": "tab"
|
||||
},
|
||||
"organizeImports": {
|
||||
"enabled": true
|
||||
},
|
||||
"linter": {
|
||||
"enabled": true,
|
||||
"rules": {
|
||||
"recommended": true
|
||||
}
|
||||
},
|
||||
"javascript": {
|
||||
"formatter": {
|
||||
"quoteStyle": "double"
|
||||
}
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"include": ["*.astro"],
|
||||
"linter": {
|
||||
"rules": {
|
||||
"style": {
|
||||
"useConst": "off",
|
||||
"useImportType": "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
BIN
bun.lockb
BIN
bun.lockb
Binary file not shown.
50
package.json
50
package.json
|
@ -1,27 +1,27 @@
|
|||
{
|
||||
"name": "homepage",
|
||||
"type": "module",
|
||||
"version": "1.0.0",
|
||||
"scripts": {
|
||||
"dev": "astro dev",
|
||||
"start": "astro dev",
|
||||
"build": "astro check && astro build",
|
||||
"preview": "astro preview",
|
||||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^5.1.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@astrojs/check": "^0.9.4",
|
||||
"@biomejs/biome": "1.9.4",
|
||||
"@tailwindcss/vite": "^4.0.0-beta.9",
|
||||
"tailwindcss": "^4.0.0-beta.9"
|
||||
},
|
||||
"trustedDependencies": [
|
||||
"@biomejs/biome",
|
||||
"@parcel/watcher",
|
||||
"esbuild",
|
||||
"sharp"
|
||||
]
|
||||
"name": "homepage",
|
||||
"type": "module",
|
||||
"version": "1.0.0",
|
||||
"scripts": {
|
||||
"dev": "astro dev",
|
||||
"start": "astro dev",
|
||||
"build": "astro check && astro build",
|
||||
"preview": "astro preview",
|
||||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^5.1.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@astrojs/check": "^0.9.4",
|
||||
"@biomejs/biome": "^1.9.4",
|
||||
"@tailwindcss/vite": "^4.0.0-beta.9",
|
||||
"tailwindcss": "^4.0.0-beta.9"
|
||||
},
|
||||
"trustedDependencies": [
|
||||
"@biomejs/biome",
|
||||
"@parcel/watcher",
|
||||
"esbuild",
|
||||
"sharp"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
export interface ServiceProps {
|
||||
serviceName: string;
|
||||
serviceUrl?: string;
|
||||
serviceName: string;
|
||||
serviceUrl?: string;
|
||||
}
|
||||
|
||||
const { serviceName, serviceUrl } = Astro.props;
|
||||
|
|
|
@ -3,24 +3,24 @@ import "/src/css/app.css";
|
|||
import ServiceCard from "../components/ServiceCard.astro";
|
||||
|
||||
const services = [
|
||||
{ serviceName: "Amnezia" },
|
||||
{ serviceName: "Blog", serviceUrl: "https://blog.z0x.home.arpa" },
|
||||
{ serviceName: "Dockge" },
|
||||
{ serviceName: "Dozzle" },
|
||||
{ serviceName: "Element" },
|
||||
{ serviceName: "Gitea", serviceUrl: "https://git.home.arpa" },
|
||||
{ serviceName: "Immich" },
|
||||
{ serviceName: "Lodestone" },
|
||||
{ serviceName: "Navidrome" },
|
||||
{ serviceName: "Radicale" },
|
||||
{ serviceName: "Redlib" },
|
||||
{ serviceName: "Scrutiny" },
|
||||
{ serviceName: "Synapse Admin" },
|
||||
{ serviceName: "Umami" },
|
||||
{ serviceName: "Unifi" },
|
||||
{ serviceName: "Vaultwarden" },
|
||||
{ serviceName: "Zyxel", serviceUrl: "https://10.0.0.1" },
|
||||
{ serviceName: "z0x" },
|
||||
{ serviceName: "Amnezia" },
|
||||
{ serviceName: "Blog", serviceUrl: "https://blog.z0x.home.arpa" },
|
||||
{ serviceName: "Dockge" },
|
||||
{ serviceName: "Dozzle" },
|
||||
{ serviceName: "Element" },
|
||||
{ serviceName: "Gitea", serviceUrl: "https://git.home.arpa" },
|
||||
{ serviceName: "Immich" },
|
||||
{ serviceName: "Lodestone" },
|
||||
{ serviceName: "Navidrome" },
|
||||
{ serviceName: "Radicale" },
|
||||
{ serviceName: "Redlib" },
|
||||
{ serviceName: "Scrutiny" },
|
||||
{ serviceName: "Synapse Admin" },
|
||||
{ serviceName: "Umami" },
|
||||
{ serviceName: "Unifi" },
|
||||
{ serviceName: "Vaultwarden" },
|
||||
{ serviceName: "Zyxel", serviceUrl: "https://10.0.0.1" },
|
||||
{ serviceName: "z0x" },
|
||||
];
|
||||
---
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue