forked from mubaidr/vite-vue3-browser-extension-v3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Changelog.vue
47 lines (44 loc) · 956 Bytes
/
Changelog.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
<script setup lang="ts">
import { marked } from 'marked'
const version = __VERSION__
const changelog = __CHANGELOG__
const gitCommit = __GIT_COMMIT__
const gitURL = __GITHUB_URL__
const commitURL = `${gitURL}/commit/${gitCommit}`
</script>
<template>
<div style="grid-area: content">
<div
style="grid-area: version"
class="self-start"
>
<p>
Version: {{ version }}
<a
class="text-green-500"
:href="commitURL"
target="_blank"
>
(#{{ gitCommit }})
</a>
</p>
<h1>Changelog</h1>
</div>
<!-- eslint-disable vue/no-v-html -->
<div
class="prose changelog"
v-html="marked(changelog)"
/>
<!--eslint-enable-->
</div>
</template>
<style lang="scss" scoped>
:deep(.changelog) {
input[type='checkbox'] {
@apply checkbox checkbox-info disabled:opacity-100;
}
table {
@apply table table-zebra;
}
}
</style>