From 0964715817eefb561eec678e21c08da40e2af52b Mon Sep 17 00:00:00 2001 From: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> Date: Sat, 9 Aug 2025 20:57:23 -0400 Subject: refactor: use Decky UI components --- src/index.tsx | 154 +++++++++++++++++----------------------------------------- 1 file changed, 45 insertions(+), 109 deletions(-) (limited to 'src/index.tsx') diff --git a/src/index.tsx b/src/index.tsx index ed3327f..be40c3a 100755 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,13 +1,20 @@ -import {useEffect, useState} from "react"; -import {FaClipboardList} from "react-icons/fa"; -import remarkHtml from "remark-html" -import remarkParse from "remark-parse" -import remarkGfm from "remark-gfm" -import {unified} from "unified" -import {patchPartnerEventStore} from "./PartnerEventStorePatch"; -import {staticClasses} from "@decky/ui"; -import {definePlugin} from "@decky/api" -import {fetchReleases} from "./FetchReleases"; +import { useEffect, useState } from "react"; +import { FaClipboardList } from "react-icons/fa"; +import remarkHtml from "remark-html"; +import remarkParse from "remark-parse"; +import remarkGfm from "remark-gfm"; +import { unified } from "unified"; +import { patchPartnerEventStore } from "./PartnerEventStorePatch"; +import { + staticClasses, + PanelSection, + PanelSectionRow, + ButtonItem, + Field, + SteamSpinner, +} from "@decky/ui"; +import { definePlugin } from "@decky/api"; +import { fetchReleases } from "./FetchReleases"; function Content() { const [changelogHtml, setChangelogHtml] = useState(null); @@ -64,33 +71,10 @@ function Content() { }; return ( -
-

Bazzite Release Notes

-
- - -
- {error ? ( -

- {error} -

- ) : changelogHtml ? ( -
- -
-
- ) : ( -

Loading...

- )} -
+ + + + {error ? ( + {error} + ) : changelogHtml ? ( + +
+ + ) : ( + + )} + + ); } -- cgit v1.2.3 From 9c1b7e1e48677e071cc2d41ccdefb059418a2140 Mon Sep 17 00:00:00 2001 From: xXJSONDeruloXx Date: Mon, 25 Aug 2025 19:48:15 -0400 Subject: add justfile and docker build --- src/index.tsx | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 79 insertions(+), 1 deletion(-) (limited to 'src/index.tsx') diff --git a/src/index.tsx b/src/index.tsx index be40c3a..fe9a7ad 100755 --- a/src/index.tsx +++ b/src/index.tsx @@ -100,8 +100,86 @@ function Content() { ) : changelogHtml ? (
+ * { + max-width: 100% !important; + word-wrap: break-word !important; + overflow-wrap: break-word !important; + box-sizing: border-box !important; + } + h1, h2, h3, h4, h5, h6 { + font-size: 14px !important; + color: #67a3ff !important; + margin: 8px 0 4px 0 !important; + font-weight: bold !important; + } + p { + margin: 4px 0 !important; + font-size: 13px !important; + line-height: 1.4 !important; + } + ul, ol { + margin: 4px 0 !important; + padding-left: 16px !important; + } + li { + margin: 2px 0 !important; + font-size: 13px !important; + } + code { + background: rgba(255, 255, 255, 0.1) !important; + padding: 2px 4px !important; + border-radius: 3px !important; + font-size: 12px !important; + word-break: break-all !important; + } + pre { + background: rgba(255, 255, 255, 0.1) !important; + padding: 8px !important; + border-radius: 4px !important; + overflow-x: auto !important; + font-size: 12px !important; + white-space: pre-wrap !important; + word-break: break-all !important; + } + a { + color: #67a3ff !important; + text-decoration: underline !important; + } + blockquote { + border-left: 3px solid #67a3ff !important; + padding-left: 8px !important; + margin: 4px 0 !important; + opacity: 0.8 !important; + } + table { + width: 100% !important; + max-width: 100% !important; + border-collapse: collapse !important; + font-size: 12px !important; + } + td, th { + padding: 4px !important; + border: 1px solid rgba(255, 255, 255, 0.2) !important; + word-break: break-word !important; + } + img { + max-width: 100% !important; + height: auto !important; + } + ${changelogHtml}`, }} /> -- cgit v1.2.3