feat(web): Initial web branch
This commit is contained in:
28
web/.gitignore
vendored
Normal file
28
web/.gitignore
vendored
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
#SPDX-FileCopyrightText: 2024 Linnea Gräf <nea@nea.moe>
|
||||||
|
#
|
||||||
|
#SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
|
# build output
|
||||||
|
dist/
|
||||||
|
# generated types
|
||||||
|
.astro/
|
||||||
|
|
||||||
|
# dependencies
|
||||||
|
node_modules/
|
||||||
|
|
||||||
|
# logs
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
pnpm-debug.log*
|
||||||
|
|
||||||
|
|
||||||
|
# environment variables
|
||||||
|
.env
|
||||||
|
.env.production
|
||||||
|
|
||||||
|
# macOS-specific files
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
# jetbrains setting folder
|
||||||
|
.idea/
|
||||||
4
web/.vscode/extensions.json
vendored
Normal file
4
web/.vscode/extensions.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"recommendations": ["astro-build.astro-vscode"],
|
||||||
|
"unwantedRecommendations": []
|
||||||
|
}
|
||||||
11
web/.vscode/launch.json
vendored
Normal file
11
web/.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"command": "./node_modules/.bin/astro dev",
|
||||||
|
"name": "Development server",
|
||||||
|
"request": "launch",
|
||||||
|
"type": "node-terminal"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
20
web/REUSE.toml
Normal file
20
web/REUSE.toml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
#SPDX-FileCopyrightText: 2024 Linnea Gräf <nea@nea.moe>
|
||||||
|
#
|
||||||
|
#SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
|
version = 1
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = ["src/**/*"]
|
||||||
|
SPDX-License-Identifier = "GPL-3.0-or-later"
|
||||||
|
SPDX-FileCopyrightText = ["Linnea Gräf <nea@nea.moe>", "Firmament Contributors"]
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = ["pnpm-lock.yaml"]
|
||||||
|
SPDX-License-Identifier = "CC0-1.0"
|
||||||
|
SPDX-FileCopyrightText = ["Auto Generated"]
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = ["*.json", "*.mjs", ".vscode/*"]
|
||||||
|
SPDX-License-Identifier = "CC0-1.0"
|
||||||
|
SPDX-FileCopyrightText = ["Linnea Gräf <nea@nea.moe>", "Firmament Contributors"]
|
||||||
7
web/astro.config.mjs
Normal file
7
web/astro.config.mjs
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
// @ts-check
|
||||||
|
import { defineConfig } from 'astro/config';
|
||||||
|
|
||||||
|
// https://astro.build/config
|
||||||
|
export default defineConfig({
|
||||||
|
|
||||||
|
});
|
||||||
17
web/package.json
Normal file
17
web/package.json
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"name": "",
|
||||||
|
"type": "module",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"scripts": {
|
||||||
|
"dev": "astro dev",
|
||||||
|
"start": "astro dev",
|
||||||
|
"build": "astro check && astro build",
|
||||||
|
"preview": "astro preview",
|
||||||
|
"astro": "astro"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"astro": "^4.16.13",
|
||||||
|
"@astrojs/check": "^0.9.4",
|
||||||
|
"typescript": "^5.6.3"
|
||||||
|
}
|
||||||
|
}
|
||||||
3931
web/pnpm-lock.yaml
generated
Normal file
3931
web/pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
12
web/src/components/Base.astro
Normal file
12
web/src/components/Base.astro
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
import Head, {type Props as HeadProps} from "./Head.astro";
|
||||||
|
|
||||||
|
type Props = {} & HeadProps;
|
||||||
|
---
|
||||||
|
|
||||||
|
<html>
|
||||||
|
<Head {...Astro.props}></Head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
12
web/src/components/Head.astro
Normal file
12
web/src/components/Head.astro
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
export type Props = {
|
||||||
|
title: string
|
||||||
|
}
|
||||||
|
---
|
||||||
|
<head lang="en">
|
||||||
|
<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.props.title}</title>
|
||||||
|
</head>
|
||||||
0
web/src/components/Hero.astro
Normal file
0
web/src/components/Hero.astro
Normal file
1
web/src/env.d.ts
vendored
Normal file
1
web/src/env.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/// <reference path="../.astro/types.d.ts" />
|
||||||
10
web/src/pages/index.astro
Normal file
10
web/src/pages/index.astro
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
import Head from "../components/Head.astro";
|
||||||
|
---
|
||||||
|
|
||||||
|
<html lang="en">
|
||||||
|
<Head title="Firmament"></Head>
|
||||||
|
<body>
|
||||||
|
<h1>Astro</h1>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
3
web/tsconfig.json
Normal file
3
web/tsconfig.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"extends": "astro/tsconfigs/strictest"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user