Skip to content

Commit

Permalink
Test 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Jan 28, 2025
1 parent 3efef1c commit 5e3467f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 25 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.18.9
FROM alpine:3.18.11

RUN mkdir -p /etc/udhcpc ; echo 'RESOLV_CONF="no"' >> /etc/udhcpc/udhcpc.conf

Expand Down
49 changes: 25 additions & 24 deletions views/Tools.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
import type {FC} from 'hono/jsx';


export const Tools: FC = () => (
<section hx-swap="outerHTML" hx-target="this">
<h3>Tools</h3>
<div class="grid">
<form id="rebuild-epg" hx-post="/rebuild-epg" hx-trigger="submit">
<button class="outline" id="rebuild-epg-button">
Rebuild EPG
</button>
</form>
<form id="reset-channels" hx-post="/reset-channels" hx-trigger="submit">
<button class="outline" id="reset-channels-button">
Reset Active Playing Channels
</button>
</form>
</div>
<hr />
<script
dangerouslySetInnerHTML={{
__html: `
export const Tools: FC = () => {
return (
<section hx-swap="outerHTML" hx-target="this">
<h3>Tools</h3>
<div class="grid">
<form id="rebuild-epg" hx-post="/rebuild-epg" hx-trigger="submit">
<button class="outline" id="rebuild-epg-button">
Rebuild EPG
</button>
</form>
<form id="reset-channels" hx-post="/reset-channels" hx-trigger="submit">
<button class="outline" id="reset-channels-button">
Reset Active Playing Channels
</button>
</form>
</div>
<hr />
<script
dangerouslySetInnerHTML={{
__html: `
var rebuildEpgForm = document.getElementById('rebuild-epg');
if (rebuildEpgForm) {
Expand All @@ -38,7 +38,8 @@ export const Tools: FC = () => (
});
}
`,
}}
/>
</section>
);
}}
/>
</section>
);
};

0 comments on commit 5e3467f

Please sign in to comment.