Skip to content

Commit 60a7938

Browse files
committed
release: v3.1.1
1 parent 1c29f91 commit 60a7938

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

package-lock.json

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"homepage": "https://github.com/jaonoctus/nip06-web",
1010
"private": true,
11-
"version": "3.1.0",
11+
"version": "3.1.1",
1212
"type": "module",
1313
"scripts": {
1414
"dev": "vite",

src/App.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ onUnmounted(() => {
162162
blurTimeout = null
163163
}
164164
})
165+
166+
const appVersion = __APP_VERSION__
165167
</script>
166168

167169
<template>
@@ -316,7 +318,7 @@ onUnmounted(() => {
316318
<footer class="footer">
317319
<div class="content has-text-centered">
318320
<p>
319-
<strong>v3.1.0</strong> | made by <a href="https://github.com/jaonoctus/nip06-web" target="_blank" class="has-text-weight-semibold">jaonoctus</a> with <a href="https://vuejs.org" target="_blank">Vue.js</a>, <a href="https://bulma.io" target="_blank">Bulma</a>, <a href="https://github.com/jaonoctus/nip06" target="_blank">nip06</a> and <span class="has-text-danger has-text-weight-semibold">love</span>
321+
<strong>v{{ appVersion }}</strong> | made by <a href="https://github.com/jaonoctus/nip06-web" target="_blank" class="has-text-weight-semibold">jaonoctus</a> with <a href="https://vuejs.org" target="_blank">Vue.js</a>, <a href="https://bulma.io" target="_blank">Bulma</a>, <a href="https://github.com/jaonoctus/nip06" target="_blank">nip06</a> and <span class="has-text-danger has-text-weight-semibold">love</span>
320322
</p>
321323
<p>You can <a href="https://github.com/jaonoctus/nip06-web/releases" target="_blank">download the nip06-standalone.html</a> offline version from the latest GitHub release</p>
322324
</div>

src/vite-env.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
/// <reference types="vite/client" />
2+
3+
declare const __APP_VERSION__: string

vite.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
import { defineConfig } from 'vite'
22
import vue from '@vitejs/plugin-vue'
33
import { viteSingleFile } from 'vite-plugin-singlefile'
4+
import { version } from './package.json'
45

56
// https://vitejs.dev/config/
67
export default defineConfig({
78
plugins: [vue(), viteSingleFile()],
9+
define: {
10+
__APP_VERSION__: JSON.stringify(version),
11+
},
812
})

0 commit comments

Comments
 (0)