config files, etc

This commit is contained in:
Lio 2024-06-30 21:16:15 +02:00
parent e6a2c2f7d6
commit dc735a1256
8 changed files with 3574 additions and 2970 deletions

View file

@ -7,7 +7,7 @@ import react from "@astrojs/react";
// https://astro.build/config
export default defineConfig({
integrations: [tailwind(), react()],
output: "server",
output: "hybrid",
adapter: node({
mode: "standalone",
}),

13
config.yaml Normal file
View file

@ -0,0 +1,13 @@
title: Gallery
description: this is a very long description so i can test if my css for this works fine
icon: /avatar.jpg
background: /bg.png
socials:
- name: bsky
url: https://lio.to/bluesky
- name: twitter
url: https://lio.to/twitter
- name: furaffinity
url: https://lio.to/bluesky
- name: mastodon
url: https://lio.to/mastodon

View file

@ -1,5 +1,5 @@
{
"name": "",
"name": "phobos",
"type": "module",
"version": "0.0.1",
"scripts": {
@ -11,19 +11,24 @@
},
"dependencies": {
"@astrojs/check": "^0.7.0",
"@astrojs/node": "^8.2.5",
"@astrojs/react": "^3.4.0",
"@astrojs/node": "^8.3.2",
"@astrojs/react": "^3.6.0",
"@astrojs/tailwind": "^5.1.0",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.3.0",
"astro": "^4.9.1",
"astro": "^4.11.3",
"nanostores": "^0.10.3",
"pocketbase": "^0.21.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-icons": "^5.2.1",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.5"
},
"devDependencies": {
"@rollup/plugin-yaml": "^4.1.2"
"@rollup/plugin-yaml": "^4.1.2",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.14",
"sass": "^1.77.3"
}
}

6455
pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff

BIN
public/avatar.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

BIN
public/bg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 892 KiB

14
src/config.d.ts vendored
View file

@ -1,4 +1,18 @@
declare module "*config.yaml" {
const value: {
title?: string;
description?: string;
icon?: string;
background?: string;
socials: {
name: string;
url: string;
icon?: string;
}[];
};
export default value;
}
declare module "*config.yml" {
const value: {
title?: string;
description?: string;

7
src/lib/pb.ts Normal file
View file

@ -0,0 +1,7 @@
import PB from "pocketbase";
const pb = new PB(import.meta.env.POCKETBASE_URL)
// pb.admins.authWithPassword(import.meta.env.POCKETBASE_USERNAME, import.meta.env.POCKETBASE_PASSWORD)
// pb.autoCancellation(false);
export default pb