Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit e7e5ccb

Browse files
committed
fix, feat: bundled update
- Now theme system will work even you did not open settings panel. - Added tauri-plugin-autostart, but without feature codes. App version bumped to 0.1.2 Fix #5
1 parent 2fbcfe4 commit e7e5ccb

16 files changed

Lines changed: 272 additions & 69 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5959
with:
6060
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
61-
releaseName: "LiteView v__VERSION__"
61+
releaseName: "Trackify v__VERSION__"
6262
releaseBody: "See the assets to download this version and install."
6363
releaseDraft: true
6464
prerelease: false

package.json

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
11
{
2-
"name": "trackify",
3-
"private": true,
4-
"version": "0.1.0",
5-
"type": "module",
6-
"scripts": {
7-
"dev": "vite",
8-
"build": "vue-tsc --noEmit && vite build",
9-
"preview": "vite preview",
10-
"tauri": "tauri"
11-
},
12-
"dependencies": {
13-
"@tauri-apps/api": "^2",
14-
"@tauri-apps/plugin-opener": "^2",
15-
"@tauri-apps/plugin-store": "~2",
16-
"vue": "^3.5.13",
17-
"vue-router": "^4.5.0"
18-
},
19-
"devDependencies": {
20-
"@tailwindcss/vite": "^4.0.17",
21-
"@tauri-apps/cli": "^2",
22-
"@vitejs/plugin-vue": "^5.2.1",
23-
"daisyui": "^5.0.9",
24-
"sass-embedded": "^1.86.0",
25-
"tailwindcss": "^4.0.17",
26-
"typescript": "~5.6.2",
27-
"vite": "^6.0.3",
28-
"vue-tsc": "^2.1.10"
29-
}
2+
"name": "trackify",
3+
"private": true,
4+
"version": "0.1.2",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "vue-tsc --noEmit && vite build",
9+
"preview": "vite preview",
10+
"tauri": "tauri"
11+
},
12+
"dependencies": {
13+
"@tauri-apps/api": "^2",
14+
"@tauri-apps/plugin-autostart": "~2",
15+
"@tauri-apps/plugin-opener": "^2",
16+
"@tauri-apps/plugin-store": "~2",
17+
"vue": "^3.5.13",
18+
"vue-router": "^4.5.0"
19+
},
20+
"devDependencies": {
21+
"@tailwindcss/vite": "^4.0.17",
22+
"@tauri-apps/cli": "^2",
23+
"@vitejs/plugin-vue": "^5.2.1",
24+
"daisyui": "^5.0.9",
25+
"sass-embedded": "^1.86.0",
26+
"tailwindcss": "^4.0.17",
27+
"typescript": "~5.6.2",
28+
"vite": "^6.0.3",
29+
"vue-tsc": "^2.1.10"
30+
}
3031
}

pnpm-lock.yaml

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

src-tauri/Cargo.lock

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

src-tauri/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "trackify"
3-
version = "0.1.0"
3+
version = "0.1.2"
44
description = "A Tauri App"
55
authors = ["you"]
66
edition = "2021"
@@ -25,5 +25,5 @@ serde_json = "1"
2525
tauri-plugin-store = "2"
2626

2727
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
28+
tauri-plugin-autostart = "2"
2829
tauri-plugin-single-instance = "2"
29-
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "../gen/schemas/desktop-schema.json",
3+
"identifier": "desktop-capability",
4+
"platforms": ["macOS", "windows", "linux"],
5+
"windows": ["main"],
6+
"permissions": [
7+
"autostart:default",
8+
"autostart:allow-enable",
9+
"autostart:allow-disable",
10+
"autostart:allow-is-enabled"
11+
]
12+
}

src-tauri/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
22
use tauri::{AppHandle, Manager};
3+
use tauri_plugin_autostart::MacosLauncher;
34

45
fn show_window(app: &AppHandle) {
56
let windows = app.webview_windows();
@@ -15,6 +16,7 @@ fn show_window(app: &AppHandle) {
1516
#[cfg_attr(mobile, tauri::mobile_entry_point)]
1617
pub fn run() {
1718
tauri::Builder::default()
19+
.plugin(tauri_plugin_autostart::init(MacosLauncher::LaunchAgent, Some(vec![])))
1820
.plugin(tauri_plugin_store::Builder::new().build())
1921
.plugin(tauri_plugin_single_instance::init(|app, _args, _cwd| {
2022
let _ = show_window(app);

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "Trackify",
4-
"version": "0.1.1",
4+
"version": "0.1.2",
55
"identifier": "tech.nexora-studios.trackify",
66
"build": {
77
"beforeDevCommand": "pnpm dev",

src/App.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<script setup lang="ts">
2+
import ThemeController from "./components/ThemeController.vue";
23
// 导航菜单项
34
const navItems = [
45
{ name: "仪表盘", path: "/", icon: "dashboard" },
@@ -10,6 +11,7 @@
1011
</script>
1112

1213
<template>
14+
<ThemeController />
1315
<div class="min-h-screen bg-base-100">
1416
<!-- 顶部导航栏 -->
1517
<div class="navbar bg-base-200 shadow-md">
@@ -44,10 +46,10 @@
4446
<!-- Logo -->
4547
<router-link to="/" class="flex items-center px-4 normal-case text-xl text-[#39A7B3] font-bold">
4648
<img src="/logo.png" alt="logo" width="32" />
47-
<span class="translate-y-0.25 ml-2">Trackify</span>
49+
<span class="translate-y-0.25 ml-2 hidden lg:block">Trackify</span>
4850
</router-link>
4951
<span
50-
class="badge badge-warning rounded-sm translate-y-0.25 text-warning-content font-bold text-[16px] px-2">
52+
class="badge badge-warning rounded-sm translate-y-0.25 text-warning-content font-bold text-[16px] px-2 hidden sm:block">
5153
Demo
5254
</span>
5355
</div>
@@ -64,7 +66,7 @@
6466
</div>
6567

6668
<!-- 右侧用户信息 -->
67-
<div class="navbar-end">
69+
<div class="navbar-end mr-1">
6870
<div class="dropdown dropdown-end">
6971
<label tabindex="0" class="btn btn-ghost btn-circle avatar">
7072
<div

src/assets/main.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
* {
2+
user-select: none;
3+
}
4+
5+
img {
6+
pointer-events: none;
7+
}
8+
19
@import "tailwindcss";
210
@plugin "daisyui" {
311
themes: all;
@@ -55,4 +63,4 @@ main#main-container {
5563

5664
main#main-container.fade-out {
5765
opacity: 0;
58-
}
66+
}

0 commit comments

Comments
 (0)