8 Commits

Author SHA1 Message Date
83512887aa fix code style issues
All checks were successful
CI / build (push) Successful in 12s
CI / lint (push) Successful in 9s
CI / build-and-push-docker (push) Successful in 18s
2025-08-31 15:56:36 +02:00
4ef2bdb772 add small 420 widget
Some checks failed
CI / build (push) Successful in 13s
CI / lint (push) Failing after 9s
CI / build-and-push-docker (push) Successful in 18s
2025-08-31 15:55:32 +02:00
6559a06acc fix code style
All checks were successful
CI / build (push) Successful in 14s
CI / lint (push) Successful in 8s
CI / build-and-push-docker (push) Successful in 17s
2025-08-30 23:49:17 +02:00
449096b8c4 add token for biome
Some checks failed
CI / build (push) Successful in 13s
CI / lint (push) Failing after 9s
CI / build-and-push-docker (push) Successful in 17s
2025-08-30 23:47:11 +02:00
9abd91b2ed use biome giithub action
Some checks failed
CI / build (push) Successful in 12s
CI / lint (push) Failing after 6s
CI / build-and-push-docker (push) Successful in 16s
2025-08-30 23:39:03 +02:00
8c7fb8d9a5 use bunx to run biome
All checks were successful
CI / build (push) Successful in 13s
CI / lint (push) Successful in 9s
CI / build-and-push-docker (push) Successful in 17s
2025-08-30 23:37:04 +02:00
29548029a1 run bun install before lint
Some checks failed
CI / build (push) Successful in 15s
CI / lint (push) Successful in 13s
CI / build-and-push-docker (push) Has been cancelled
2025-08-30 23:36:03 +02:00
b0471a3a2f run multiple lint commands in one sub step
All checks were successful
CI / build (push) Successful in 12s
CI / lint (push) Successful in 7s
CI / build-and-push-docker (push) Successful in 17s
2025-08-30 23:34:53 +02:00
9 changed files with 60 additions and 15 deletions

View File

@@ -31,12 +31,13 @@ jobs:
image: oven/bun image: oven/bun
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install Biome - name: Setup Biome
run: bun install -g biome uses: biomejs/setup-biome@v2
- name: Run Biome lint with:
run: biome lint --write version: latest
- name: Run Biome format check token: ${{ secrets.BIOME_TOKEN }}
run: biome format --write - name: Run Biome
run: biome ci .
build-and-push-docker: build-and-push-docker:
needs: [build] needs: [build]

View File

@@ -6,7 +6,7 @@
}, },
"files": { "files": {
"ignoreUnknown": false, "ignoreUnknown": false,
"includes": ["**","!**/dist"] "includes": ["**", "!**/dist"]
}, },
"formatter": { "formatter": {
"enabled": true, "enabled": true,

View File

@@ -1,8 +1,8 @@
const token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI3N2JmOTk1ODI3MzA0ZWIzOWYwNThjMzQ4YTY3ZDJkYyIsImlhdCI6MTc1NjQ3NTM4OSwiZXhwIjoyMDcxODM1Mzg5fQ.TZZ4SUGlERuIVrhzC_wfCN-qS1wSAKNN9uMMDjkqOgA"; const token =
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI3N2JmOTk1ODI3MzA0ZWIzOWYwNThjMzQ4YTY3ZDJkYyIsImlhdCI6MTc1NjQ3NTM4OSwiZXhwIjoyMDcxODM1Mzg5fQ.TZZ4SUGlERuIVrhzC_wfCN-qS1wSAKNN9uMMDjkqOgA";
async function fetchTentHumidity() { async function fetchTentHumidity() {
const url = const url = `https://home.rivercry.com/api/states/sensor.third_reality_inc_3rths0224z_luftfeuchtigkeit_2`;
`https://home.rivercry.com/api/states/sensor.third_reality_inc_3rths0224z_luftfeuchtigkeit_2`;
const response = await fetch(url, { const response = await fetch(url, {
method: "GET", method: "GET",
headers: { headers: {

View File

@@ -11,7 +11,7 @@ import Footer from "@/components/Footer/Footer";
import Terminal from "@/components/Terminal/Terminal"; import Terminal from "@/components/Terminal/Terminal";
import Timetable from "@/components/Timetable/Timetable"; import Timetable from "@/components/Timetable/Timetable";
import Weather from "@/components/Weather/Weather"; import Weather from "@/components/Weather/Weather";
import FourTwenty from "../FourTwenty/FourTwenty";
import style from "./style.module.css"; import style from "./style.module.css";
export default function Dashboard() { export default function Dashboard() {
@@ -56,6 +56,9 @@ export default function Dashboard() {
<Card icon="🌤" name="Weather"> <Card icon="🌤" name="Weather">
<Weather /> <Weather />
</Card> </Card>
<Card icon="🍁" name="420">
<FourTwenty />
</Card>
</CardRow> </CardRow>
<Card icon="🔔" name="Terminal" active={true}> <Card icon="🔔" name="Terminal" active={true}>

View File

@@ -1,6 +1,6 @@
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import clockImage from "/img/clock.png" import clockImage from "/img/clock.png";
import style from "./style.module.css"; import style from "./style.module.css";

View File

@@ -1,6 +1,5 @@
import style from "./style.module.css";
import weedImage from "/img/weed.png"; import weedImage from "/img/weed.png";
import style from "./style.module.css";
export default function Footer() { export default function Footer() {
return ( return (

View File

@@ -0,0 +1,37 @@
// import style from "./style.module.css";
// function Timer({ hours, minutes }: { hours: number; minutes: number }) {
// const x = hours > 0 ? `${hours}h ` : "";
// const y = minutes > 0 ? `${minutes % 60}m` : "";
// return (
// <div>
// <p>
// {x}
// {y}
// </p>
// </div>
// );
// }
// function FourTwentyLoading() {}
// function FourTwentySmoking() {
// return (
// <div className={style.container}>
// <img
// className={style.image}
// src="https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExMjFlYnhzYzJnc3ZzejBnOGZzcHFpNGpxOHNrN2dwcnZ3NmZ2eWJ0dyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/5xaOcLRnsWIB0CkfE3u/giphy.gif"
// alt="Smoking"
// />
// </div>
// );
// }
export default function FourTwenty() {
return (
<div>
<FourTwentySmoking />
</div>
);
}

View File

@@ -0,0 +1,5 @@
.container img {
all: unset;
object-fit: contain;
width: 200px;
}

View File

@@ -1,7 +1,7 @@
import path from "node:path"; import path from "node:path";
import react from "@vitejs/plugin-react-swc"; import react from "@vitejs/plugin-react-swc";
import { defineConfig } from "vite"; import { defineConfig } from "vite";
import mkcert from 'vite-plugin-mkcert' import mkcert from "vite-plugin-mkcert";
export default defineConfig({ export default defineConfig({
plugins: [react(), mkcert()], plugins: [react(), mkcert()],