mirror of
https://github.com/YuleBest/LuminPro.git
synced 2026-12-04 00:54:42 +08:00
refactor!: 全量迁移到 Go,移除 Rust 与 jq 依赖
- 删除 rust/、script/up.sh、script/daemon.sh、bin/jq(ZIP 少 1.8MB 依赖) - service.sh 改为薄启动器;boost.sh / script/restart.sh 转发到 Go 子命令 - customize.sh 全部 jq 调用改为 luminpro config(init/ensure/set/get/summary/ inspect/migrate),安装向导与旧配置迁移逻辑保持不变 - CI 去掉 Rust 工具链与 NDK,改为 setup-go + go vet/test + 交叉编译 - build-module.js 排除 go/ dist/ .zcode/;.gitignore 忽略 bin/luminpro - WebUI 清理 up.flag 死引用,状态页标签改为「守护进程」 - README / README_en / DEVELOPMENT 同步为 Go 架构说明
This commit is contained in:
1 parent
db3cc2faa5
commit
e50cf5bd89
24 files changed
+286
-1164
No files matched your search
@@ -6,7 +6,6 @@ import {
|
||||
updateConfig,
|
||||
BACKUP_CONFIG_FILE,
|
||||
PID_FILE,
|
||||
FLAG_FILE,
|
||||
DEFAULT_NOW_BRI_FILE,
|
||||
DEFAULT_SYS_MAX_BRI_FILE,
|
||||
} from '../utils.js'
|
||||
@@ -147,7 +146,6 @@ export function useConfig() {
|
||||
compatibility_mode: compatibilityMode.value ? 1 : 0,
|
||||
sleep_time: getSleepTimeStr(),
|
||||
})
|
||||
await runCmd(`rm -f "${FLAG_FILE}"`)
|
||||
const pidRes = await runCmd(`cat "${PID_FILE}"`)
|
||||
toast(
|
||||
pidRes.errno === 0 && pidRes.stdout.trim()
|
||||
|
||||
@@ -5,7 +5,6 @@ export const CONFIG_DIR = `${MODULE_DIR}/config`
|
||||
export const CONFIG_FILE = `${MODULE_DIR}/config/config.json`
|
||||
export const BACKUP_CONFIG_FILE = `${MODULE_DIR}/config/.backup/config.json`
|
||||
export const PID_FILE = `${MODULE_DIR}/pid/inotifyd.pid`
|
||||
export const FLAG_FILE = `${MODULE_DIR}/pid/up.flag`
|
||||
export const STOP_FLAG_FILE = `${MODULE_DIR}/pid/stop.flag`
|
||||
export const OPLOCK_FILE = `${MODULE_DIR}/pid/oplock`
|
||||
export const LOG_FILE = `${MODULE_DIR}/service.log`
|
||||
|
||||
@@ -281,7 +281,7 @@ function handleSaveWebUI() {
|
||||
|
||||
<div class="config-item">
|
||||
<div class="config-label">
|
||||
<span class="config-name">lumipro 监听事件</span>
|
||||
<span class="config-name">监听事件</span>
|
||||
<span class="config-desc">默认 c,改后需重启模块</span>
|
||||
<button
|
||||
class="btn-text-s"
|
||||
|
||||
@@ -64,8 +64,8 @@ async function onSliderChange(e) {
|
||||
const statusItems = computed(() => [
|
||||
{ label: '当前亮度', value: status.currentBri.value || '—', icon: SunMedium },
|
||||
{ label: '系统最大亮度', value: status.sysMaxBri.value || '—', icon: Smartphone },
|
||||
{ label: 'lumipro PID', value: status.inotifydPid.value, icon: Activity },
|
||||
{ label: 'lumipro 状态', value: status.inotifydState.value, icon: Clock },
|
||||
{ label: '守护进程 PID', value: status.inotifydPid.value, icon: Activity },
|
||||
{ label: '守护进程状态', value: status.inotifydState.value, icon: Clock },
|
||||
{ label: '休眠状态', value: status.sleepStatus.value, icon: Moon },
|
||||
{ label: 'HDR/SDR 比率', value: status.hdrRatio.value, icon: Layers },
|
||||
])
|
||||
|
||||
Reference in new issue
Block a user