diff --git a/client/INSTALL_LINUX.md b/client/INSTALL_LINUX.md index 982e53d..0fa1a5e 100644 --- a/client/INSTALL_LINUX.md +++ b/client/INSTALL_LINUX.md @@ -46,13 +46,13 @@ cd client chmod +x build.sh ./build.sh ``` -Sau khi build xong, file thực thi sẽ nằm tại: `client/build/bin/simple_care_v1.0` +Sau khi build xong, file thực thi sẽ nằm tại: `client/build/bin/simple_care_v1.1` --- ## 2. Cho Người dùng cuối (End-user - Chỉ chạy ứng dụng) -Người dùng cuối **không cần** cài đặt Go, Node hay trình biên dịch C. Họ chỉ cần tệp thực thi `simple_care_v1.0` và cài đặt các thư viện đồ họa cơ bản của hệ thống: +Người dùng cuối **không cần** cài đặt Go, Node hay trình biên dịch C. Họ chỉ cần tệp thực thi `simple_care_v1.1` và cài đặt các thư viện đồ họa cơ bản của hệ thống: * **Ubuntu / Debian / Linux Mint:** ```bash @@ -73,8 +73,8 @@ Người dùng cuối **không cần** cài đặt Go, Node hay trình biên d ### Lệnh chạy ứng dụng: Cấp quyền chạy cho file và khởi chạy: ```bash -chmod +x simple_care_v1.0 -./simple_care_v1.0 +chmod +x simple_care_v1.1 +./simple_care_v1.1 ``` --- diff --git a/client/frontend/package-lock.json b/client/frontend/package-lock.json index fdfde65..79320fd 100644 --- a/client/frontend/package-lock.json +++ b/client/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "frontend", - "version": "0.0.0", + "version": "1.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "frontend", - "version": "0.0.0", + "version": "1.1.0", "dependencies": { "pdfjs-dist": "^3.11.174" }, diff --git a/client/frontend/package.json b/client/frontend/package.json index 5a3c773..d3d6f5f 100644 --- a/client/frontend/package.json +++ b/client/frontend/package.json @@ -1,7 +1,7 @@ { "name": "frontend", "private": true, - "version": "0.0.0", + "version": "1.1.0", "scripts": { "dev": "vite", "build": "vite build", diff --git a/client/frontend/package.json.md5 b/client/frontend/package.json.md5 index 35df6d0..c51c624 100644 --- a/client/frontend/package.json.md5 +++ b/client/frontend/package.json.md5 @@ -1 +1 @@ -967eadb7b0ec47c936144695be4b0b15 \ No newline at end of file +39a3c87a78e46d8e7ef5f5042d044ee3 \ No newline at end of file diff --git a/client/frontend/src/app.css b/client/frontend/src/app.css index 08bb0e3..c5e0c86 100644 --- a/client/frontend/src/app.css +++ b/client/frontend/src/app.css @@ -140,6 +140,10 @@ body { line-height: 1.2; } +.login-brand-name .app-version { + font-size: 0.72em; +} + .login-brand-sub { font-size: 0.72rem; font-weight: 500; @@ -224,6 +228,15 @@ body { line-height: 1.2; } +.app-version { + font-size: 0.68em; + font-weight: 700; + color: var(--accent); + letter-spacing: 0; + margin-left: 0.2rem; + vertical-align: middle; +} + .brand-sub { font-size: 0.62rem; font-weight: 500; diff --git a/client/frontend/src/main.js b/client/frontend/src/main.js index 48338d7..039062d 100644 --- a/client/frontend/src/main.js +++ b/client/frontend/src/main.js @@ -19,6 +19,7 @@ if (typeof window.go.main.App === 'undefined') { } const brandLogoHtml = `Simple Care`; +const APP_VERSION = '1.1'; // Trạng thái cục bộ let loggedIn = false; @@ -126,7 +127,7 @@ function renderLoginPrompt() {
${brandLogoHtml}
- +
@@ -498,7 +499,7 @@ function renderDashboard() {
${brandLogoHtml}
- Simple Care + Simple Care v${APP_VERSION} Rikkei Education
diff --git a/client/internal/blocker/blocker_darwin.go b/client/internal/blocker/blocker_darwin.go index 4b1148e..ab4d793 100644 --- a/client/internal/blocker/blocker_darwin.go +++ b/client/internal/blocker/blocker_darwin.go @@ -154,6 +154,7 @@ var systemAllowed = map[string]bool{ // ── Our app + IDE/dev tools ──────────────────────────────────────────────── "client": true, "simple_care_v1.0": true, + "simple_care_v1.1": true, "simple_care": true, "wails": true, "code": true, // VSCode diff --git a/client/internal/blocker/blocker_linux.go b/client/internal/blocker/blocker_linux.go index fa2e401..d9e01ad 100644 --- a/client/internal/blocker/blocker_linux.go +++ b/client/internal/blocker/blocker_linux.go @@ -221,6 +221,7 @@ var systemAllowed = map[string]bool{ "idea": true, "client": true, "simple_care_v1.0": true, + "simple_care_v1.1": true, "simple_care": true, } diff --git a/client/internal/blocker/blocker_windows.go b/client/internal/blocker/blocker_windows.go index 24c01ad..c07e73d 100644 --- a/client/internal/blocker/blocker_windows.go +++ b/client/internal/blocker/blocker_windows.go @@ -316,6 +316,7 @@ var systemAllowed = map[string]bool{ // ── Our app + IDE/dev tools ──────────────────────────────────────────────── "client.exe": true, "simple_care_v1.0.exe": true, + "simple_care_v1.1.exe": true, "simple_care.exe": true, "wails.exe": true, "msedgewebview2.exe": true, // WebView2 runtime (Wails renderer) diff --git a/client/main.go b/client/main.go index 827332a..672f2df 100644 --- a/client/main.go +++ b/client/main.go @@ -62,7 +62,7 @@ func main() { // Create application with options err := wails.Run(&options.App{ - Title: "Simple Care — Rikkei Education", + Title: "Simple Care v1.1 — Rikkei Education", Width: 1024, Height: 768, Menu: appMenu, diff --git a/client/wails.json b/client/wails.json index bbda809..a9da5c2 100644 --- a/client/wails.json +++ b/client/wails.json @@ -1,7 +1,7 @@ { "$schema": "https://wails.io/schemas/config.v2.json", "name": "Simple Care by Rikkei Edu", - "outputfilename": "simple_care_v1.0", + "outputfilename": "simple_care_v1.1", "frontend:install": "npm install", "frontend:build": "npm run build", "frontend:dev:watcher": "npm run dev",