forked from willow-god/FlareDrive-R2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
55 lines (51 loc) · 1.92 KB
/
index.html
File metadata and controls
55 lines (51 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>FlareDrive-R2 - 优雅的 Cloudflare R2 网盘文件库</title>
<script src="https://cdn.jsdmirror.com/npm/vue@3.2.37/dist/vue.global.min.js"></script>
<script src="https://cdn.jsdmirror.com/npm/axios@0.27.2/dist/axios.min.js"></script>
<script src="https://cdn.jsdmirror.com/npm/vue3-sfc-loader@0.9.5/dist/vue3-sfc-loader.min.js"></script>
<script defer src="https://events.vercount.one/js"></script>
<link rel='stylesheet' href='https://static.zeoseven.com/zsft/243/main/result.css' />
<link rel="prefetch" href="/assets/main.mjs" />
<link rel="stylesheet" href="/assets/main.css" />
<link rel="manifest" href="/assets/manifest.json" />
<link rel="icon" type="image/png" href="/favicon.ico" />
</head>
<body>
<div id="app"></div>
<script>
const { loadModule } = window["vue3-sfc-loader"];
const options = {
moduleCache: { vue: Vue },
async getFile(url) {
const res = await fetch(url);
if (!res.ok)
throw Object.assign(new Error(res.statusText + " " + url), { res });
return {
getContentData: (asBinary) =>
asBinary ? res.arrayBuffer() : res.text(),
};
},
addStyle(textContent) {
const style = document.createElement("style");
style.textContent = textContent;
const ref = document.head.getElementsByTagName("style")[0] || null;
document.head.insertBefore(style, ref);
},
};
const app = Vue.createApp({
components: {
App: Vue.defineAsyncComponent(() =>
loadModule("/assets/App.vue", options)
),
},
template: "<App></App>",
});
app.mount("#app");
</script>
<script type="module"></script>
</body>
</html>