feat: various improvements

This commit is contained in:
Dan Finch 2026-05-19 00:19:01 +02:00
parent 6598030888
commit 4999423af4
9 changed files with 42 additions and 23 deletions

View file

@ -2,8 +2,8 @@
"folders": [ "folders": [
{ {
"name": "da.nfin.ch", "name": "da.nfin.ch",
"path": "." "path": ".",
} },
], ],
"settings": { "settings": {
"oxc.path.oxfmt": "node_modules/.bin/oxfmt", "oxc.path.oxfmt": "node_modules/.bin/oxfmt",
@ -18,7 +18,7 @@
"explorer.fileNesting.enabled": true, "explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": { "explorer.fileNesting.patterns": {
"tsconfig.json": "tsconfig.*.json", "tsconfig.json": "tsconfig.*.json",
"package.json": "bun.lock, bunfig.toml, *.bun.plugin.ts, ox*.config.ts, .gitignore, .mirrorignore, regime.config.json, commitlint.config.*, release.config.*js", "package.json": "bun.lock, bunfig.toml, *.bun.plugin.ts, ox*.config.ts, .gitignore, .mirrorignore, regime.*.json, regime.internal.json, commitlint.config.*, release.config.*js, hypeup.config.*",
"vite.config.ts": "*.vite.plugin.ts", "vite.config.ts": "*.vite.plugin.ts",
"README.md": "LICENSE, LICENSE.md", "README.md": "LICENSE, LICENSE.md",
}, },

12
hypeup.config.ts Normal file
View file

@ -0,0 +1,12 @@
import { defineConfig } from "hypeup"
export default defineConfig({
clean: true,
dir: "src/routes",
vite: {
server: {
allowedHosts: [Bun.env.HOSTNAME!],
host: true,
},
},
})

View file

@ -15,13 +15,10 @@ export default defineConfig({
ignorePatterns: ["**/*.gen.ts"], ignorePatterns: ["**/*.gen.ts"],
overrides: [ overrides: [
{ {
files: [ files: ["**/ui/**/*.ts"],
"**/ui/**/*.ts"
],
options: { options: {
printWidth: 60, printWidth: 60,
}, },
}, },
], ],
}) })

View file

@ -22,10 +22,10 @@
"check": "tsgo --build", "check": "tsgo --build",
"test": "bun test --pass-with-no-tests --tsconfig-override tsconfig.test.json", "test": "bun test --pass-with-no-tests --tsconfig-override tsconfig.test.json",
"lint": "oxlint", "lint": "oxlint",
"start": "hypeup generate --dir src/routes --watch", "start": "hypeup generate --watch",
"build": "hypeup generate --dir src/routes", "build": "hypeup generate",
"publish:main": "rsync -avz dist/ quickbasic.org:~/da.nfin.ch", "publish:main": "rsync -avz --delete dist/ da.nfin.ch:~/da.nfin.ch",
"publish:errilaz": "rsync -avz errilaz.org/ quickbasic.org:~/errilaz.org", "publish:errilaz": "rsync -avz --delete errilaz.org/ da.nfin.ch:~/errilaz.org",
"publish": "bun run publish:main && bun run publish:errilaz" "publish": "bun run publish:main && bun run publish:errilaz"
}, },
"files": [ "files": [

View file

@ -86,7 +86,7 @@ function Task({
textAlign.left, textAlign.left,
div( div(
width("100%"), width("100%"),
pad("4px"), gap("4px"),
display.flex, display.flex,
justifyContent.flexStart, justifyContent.flexStart,
img( img(

View file

@ -12,8 +12,8 @@ export default function Theme() {
), ),
), ),
rule("a.button", [ rule("a.button", [
textDecoration("none"), textDecoration.none,
cursor("default"), cursor._default,
display.flex, display.flex,
alignItems.center, alignItems.center,
]), ]),
@ -27,14 +27,13 @@ export default function Theme() {
fontSize("14px"), fontSize("14px"),
rule("h1", fontSize("28px")), rule("h1", fontSize("28px")),
rule("h2", fontSize("20px")), rule("h2", fontSize("20px")),
rule( rule(aside,
"aside",
float.right, float.right,
marginLeft("20px"), marginLeft("20px"),
paddingBottom(0), paddingBottom(0),
), ),
rule("p, h1, h2, h3, ul", margin("12px 0")), rule("p, h1, h2, h3, ul", margin("12px 0")),
), ),
rule("iframe", border(0)), rule(iframe, border(0)),
] ]
} }

View file

@ -1,7 +1,7 @@
const DEFAULT_WIDTH = "770px" const DEFAULT_WIDTH = "770px"
export default function Window( export default function Window(
props: { title: string; width?: Content; flat?: boolean }, props: { title: Content; width?: Content; flat?: boolean },
...contents: Content[] ...contents: Content[]
) { ) {
return article.window( return article.window(

View file

@ -2,12 +2,15 @@ import Layout from "ui/Layout"
import Window from "ui/Layout/Window" import Window from "ui/Layout/Window"
const title = "Dan Finch - Projects" const title = "Dan Finch - Projects"
const sigitex = "https://sigitex.com"
export default function Projects() { export default function Projects() {
return Layout( return Layout(
{ title, url: "/projects" }, { title, url: "/projects" },
Window( Window(
{ title }, {
title: span(title, " (", a({ href: sigitex }, color.yellow, "SIGITEX.COM"), ")")
},
backgroundColor.black, backgroundColor.black,
display.flex, display.flex,
iframe({ src: "https://sigitex.com" }, iframe({ src: "https://sigitex.com" },

View file

@ -3,10 +3,18 @@
"compilerOptions": { "compilerOptions": {
"composite": true, "composite": true,
"paths": { "paths": {
"ui/*": ["./src/ui/*"], "ui/*": [
"shared/*": ["./src/shared/*"], "./src/ui/*"
"assets/*": ["./assets/*"], ],
"public/*": ["./public/*"] "shared/*": [
"./src/shared/*"
],
"assets/*": [
"./assets/*"
],
"public/*": [
"./public/*"
]
} }
}, },
"include": [ "include": [