fix: vendor htmx.min.js locally instead of loading from CDN #19

Merged
AI-Manager merged 1 commits from fix/vendor-htmx-locally into master 2026-03-26 08:02:28 +00:00
4 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ var basePage = template.Must(template.New("base").Parse(`<!DOCTYPE html>
<link rel="apple-touch-icon" href="/static/icon-192.png">
<title>{{.Title}} — Gitea Mobile</title>
<link rel="stylesheet" href="/static/style.css">
<script src="https://unpkg.com/htmx.org@1.9.10"></script>
<script src="/static/htmx.min.js"></script>
</head>
<body>
<div class="content" id="main-content">
+1 -1
View File
@@ -10,7 +10,7 @@
<link rel="apple-touch-icon" href="/static/icon-192.png">
<title>{{.Title}} — Gitea Mobile</title>
<link rel="stylesheet" href="/static/style.css">
<script src="https://unpkg.com/htmx.org@1.9.10"></script>
<script src="/static/htmx.min.js"></script>
</head>
<body>
<div class="content" id="main-content">
+1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -1,14 +1,14 @@
// Service Worker for Gitea Mobile PWA
// Caches the app shell for offline/fast loading.
const CACHE_NAME = 'gitea-mobile-v1';
const CACHE_NAME = 'gitea-mobile-v2';
const APP_SHELL = [
'/',
'/static/style.css',
'/static/manifest.json',
'/static/icon-192.png',
'/static/icon-512.png',
'https://unpkg.com/htmx.org@1.9.10'
'/static/htmx.min.js'
];
// Install: cache app shell resources.