From 7cc73782d505630da194cc0c816a25a4ee53d5e8 Mon Sep 17 00:00:00 2001 From: Searchstars Date: Tue, 4 Feb 2025 00:21:20 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E6=B8=85=E9=99=A4=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E5=AE=8C=E6=88=90=202.=20=E7=94=A8=E6=88=B7=E4=B8=BB=E9=A1=B5?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=BC=80=E5=A7=8B=E7=A7=81=E4=BF=A1=203.=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=85=B3=E4=BA=8E=E6=9D=83=E9=99=90=E5=92=8C?= =?UTF-8?q?screenWidth=E7=9A=84=E9=94=99=E8=AF=AF=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- quickapp.config.js | 2 + src/components/DefaultButton/DefaultButton.ux | 80 ++++--- src/i18n/en.json | 20 +- src/i18n/zh.json | 15 ++ src/less/color.less | 4 +- src/manifest.json | 9 + .../features/settings/cleartmp/cleartmp.less | 32 +++ .../features/settings/cleartmp/cleartmp.ux | 220 ++++++++++++++++++ src/pages/app/features/settings/settings.ux | 4 +- .../error/permissionerror/permissionerror.ux | 25 ++ .../screenwidtherror/screenwidtherror.ux | 25 ++ src/pages/user/user.ux | 13 ++ src/tools.ts | 6 +- 13 files changed, 418 insertions(+), 37 deletions(-) create mode 100644 src/pages/app/features/settings/cleartmp/cleartmp.less create mode 100644 src/pages/app/features/settings/cleartmp/cleartmp.ux create mode 100644 src/pages/error/permissionerror/permissionerror.ux create mode 100644 src/pages/error/screenwidtherror/screenwidtherror.ux diff --git a/quickapp.config.js b/quickapp.config.js index a201d1d..738b8a8 100644 --- a/quickapp.config.js +++ b/quickapp.config.js @@ -7,11 +7,13 @@ const fs = require('fs'); const gitCommitHash = childProcess.execSync('git rev-parse HEAD').toString().trim(); const username = os.userInfo().username; const buildTime = new Date().toISOString(); +const designWidth = JSON.parse(fs.readFileSync("src/manifest.json")).config.designWidth const buildInfoContent = ` export const GIT_COMMIT_HASH = "${gitCommitHash}"; export const BUILD_TIME = "${buildTime}"; export const BUILD_USER = "${username}"; + export const DESIGN_WIDTH = ${designWidth}; `; const buildInfoPath = path.resolve(__dirname, 'src/buildinfo.ts'); diff --git a/src/components/DefaultButton/DefaultButton.ux b/src/components/DefaultButton/DefaultButton.ux index ad8733f..97ee60c 100644 --- a/src/components/DefaultButton/DefaultButton.ux +++ b/src/components/DefaultButton/DefaultButton.ux @@ -6,44 +6,62 @@ \ No newline at end of file diff --git a/src/pages/app/features/settings/settings.ux b/src/pages/app/features/settings/settings.ux index a551615..b2522a5 100644 --- a/src/pages/app/features/settings/settings.ux +++ b/src/pages/app/features/settings/settings.ux @@ -82,8 +82,8 @@ export default { }) }, ClearTmp() { - prompt.showToast({ - message: "当前不可用" + router.push({ + uri: "pages/app/features/settings/cleartmp" }) }, SwitchSet(name) { diff --git a/src/pages/error/permissionerror/permissionerror.ux b/src/pages/error/permissionerror/permissionerror.ux new file mode 100644 index 0000000..d3a7ea0 --- /dev/null +++ b/src/pages/error/permissionerror/permissionerror.ux @@ -0,0 +1,25 @@ + + + + + + + \ No newline at end of file diff --git a/src/pages/error/screenwidtherror/screenwidtherror.ux b/src/pages/error/screenwidtherror/screenwidtherror.ux new file mode 100644 index 0000000..3b6d281 --- /dev/null +++ b/src/pages/error/screenwidtherror/screenwidtherror.ux @@ -0,0 +1,25 @@ + + + + + + + \ No newline at end of file diff --git a/src/pages/user/user.ux b/src/pages/user/user.ux index ecd4bb7..4a360fe 100644 --- a/src/pages/user/user.ux +++ b/src/pages/user/user.ux @@ -1,6 +1,7 @@ +