-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathGetAuthlibInjector.vue
80 lines (68 loc) · 1.95 KB
/
GetAuthlibInjector.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
79
80
<script setup>
import { computed } from 'vue'
const props = defineProps({
latest: String,
updated: String,
download: String,
})
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import { faFileArrowDown } from '@fortawesome/free-solid-svg-icons'
const downloadMirror = computed(() => {
return props.download.replace('https://authlib-injector.yushi.moe/', 'https://bmclapi2.bangbang93.com/mirrors/authlib-injector/')
})
</script>
<template>
<div class="ncard">
<div class="ncardBody">
<div class="card-title text">获取最新版本的 authlib-injector</div>
<div class="card-text text">
<p><code>authlib-injector-{{ props.latest }}.jar</code> , 更新于 {{ props.updated }}</p>
<a class="download-button" target="_blank" :href="props.download">
<FontAwesomeIcon :icon="faFileArrowDown" /> 开发者提供的网站
</a><a class="download-button" target="_blank" :href="downloadMirror">
<FontAwesomeIcon :icon="faFileArrowDown" /> BMCLAPI
</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>