-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathGetCSL.vue
78 lines (67 loc) · 1.97 KB
/
GetCSL.vue
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<script setup>
import { ref } from 'vue'
const latest = ref('')
const updated = ref('')
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import { faFileArrowDown } from '@fortawesome/free-solid-svg-icons'
fetch('https://csl.3-3.dev/detail.json').then(r => r.json()).then(r => {
latest.value = r.version
updated.value = new Date(r.timestamp).toLocaleString()
})
</script>
<template>
<div class="ncard">
<div class="ncardBody">
<div class="card-title text">获取最新版本的 CustomSkinLoader</div>
<div class="card-text text">
<p>稳定版 {{ latest }} , 更新于 {{ updated }}</p>
<a class="download-button" target="_blank" href="https://littleskin.cn/user/config">
<FontAwesomeIcon :icon="faFileArrowDown" /> LittleSkin
</a>
<a class="download-button" target="_blank" href="https://3-3.dev/csl-download">
<FontAwesomeIcon :icon="faFileArrowDown" /> 开发者提供的网站
</a>
</div>
</div>
</div>
</template>
<style scoped>
.ncard {
border: 1px solid var(--vp-c-border);
margin: 2em 0;
border-radius: 8px;
}
.ncardBody {
padding: 1.8em;
}
a {
color: var(--vp-c-text-1);
text-decoration-line: none;
}
.card-title {
font-size: 1.2em;
margin-bottom: .8em;
}
.card-text {
font-size: 0.9em;
}
.download-button {
cursor: pointer;
background-color: var(--vp-c-bg);
box-shadow: none;
color: var(--vp-c-text-1);
border: 1px solid var(--vp-c-text-1);
border-radius: 0.25rem;
text-align: center;
margin-right: 1em;
padding: .6em 2em;
display: inline-block;
font-size: 1em;
line-height: 1.5;
vertical-align: middle;
transition: all 200ms ease;
}
.download-button:hover {
border: 1px solid var(--vp-c-brand);
}
</style>