Skip to content

Commit

Permalink
version
Browse files Browse the repository at this point in the history
  • Loading branch information
storyxc committed Jun 20, 2023
1 parent 4badd9c commit 7239ef3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ido",
"private": true,
"version": "0.0.2",
"version": "1.0.0",
"scripts": {
"dev": "vite",
"build": "vue-tsc && vite build && electron-builder",
Expand Down
11 changes: 11 additions & 0 deletions src/views/PreferenceView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
<el-checkbox v-model="preferences.startAtLogin" @change="handleStartAtLoginChange">Launch on system startup
</el-checkbox>
</el-form>
<div class="version">
<span>v{{ pkg.version }}</span>
</div>
</div>
</template>
<script setup lang="ts">
import pkg from "../../package.json"

const preferences = reactive({
startAtLogin: false,
Expand All @@ -29,5 +33,12 @@ const handleStartAtLoginChange = async (enabled: boolean) => {
<style scoped lang="less">
.container {
font-weight: 500;

.version {
position: absolute;
color: #7C7B7B;
bottom: 5px;
right: 7px;
}
}
</style>

0 comments on commit 7239ef3

Please sign in to comment.