Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
liov committed Sep 26, 2024
1 parent 3ad2459 commit 23870c2
Show file tree
Hide file tree
Showing 14 changed files with 392 additions and 164 deletions.
6 changes: 5 additions & 1 deletion client/uniapp/.eslintrc-auto-import.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@
"watch": true,
"watchEffect": true,
"watchPostEffect": true,
"watchSyncEffect": true
"watchSyncEffect": true,
"onWatcherCleanup": true,
"useId": true,
"useModel": true,
"useTemplateRef": true
}
}
14 changes: 14 additions & 0 deletions client/uniapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@
<meta charset="UTF-8" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<script>
function browserRedirect() {//只读的字符串,声明了浏览器用于 HTTP 请求的用户代理头的值
const userAgent = navigator.userAgent.toLowerCase();
const isPhone = userAgent.match(/(iphone|ios|Android|ipad)/i);
if(!isPhone) {
const location = window.location
let host = location.host;
if(location.host.startsWith("m.")){
host = location.host.slice(2)
}
console.log("跳转到电脑版");
location.replace( location.protocol+"//"+host+location.pathname+location.search);
}
}
browserRedirect();
var coverSupport =
'CSS' in window &&
typeof CSS.supports === 'function' &&
Expand Down
66 changes: 33 additions & 33 deletions client/uniapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,68 +88,68 @@
"@dcloudio/uni-mp-xhs": "3.0.0-4020420240722002",
"@dcloudio/uni-quickapp-webview": "3.0.0-4020420240722002",
"@dcloudio/uni-ui": "^1.5.6",
"dayjs": "1.11.12",
"dayjs": "1.11.13",
"diamond": "file:..\\..\\thirdparty\\diamond",
"pinia": "2.2.0",
"pinia-plugin-persistedstate": "3.2.1",
"vue": "3.4.21",
"wot-design-uni": "^1.3.6",
"z-paging": "^2.7.11"
"pinia": "2.2.2",
"pinia-plugin-persistedstate": "4.0.2",
"vue": "3.5.8",
"wot-design-uni": "^1.3.11",
"z-paging": "^2.7.12"
},
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@dcloudio/types": "^3.4.12",
"@dcloudio/uni-automator": "3.0.0-4020420240722002",
"@dcloudio/uni-cli-shared": "3.0.0-4020420240722002",
"@dcloudio/uni-stacktracey": "3.0.0-4020420240722002",
"@dcloudio/vite-plugin-uni": "3.0.0-4020420240722002",
"@esbuild/darwin-arm64": "0.23.0",
"@esbuild/darwin-x64": "0.23.0",
"@iconify-json/carbon": "^1.1.36",
"@rollup/rollup-darwin-x64": "^4.19.1",
"@types/node": "^22.0.0",
"@esbuild/darwin-arm64": "0.24.0",
"@esbuild/darwin-x64": "0.24.0",
"@iconify-json/carbon": "^1.2.1",
"@rollup/rollup-darwin-x64": "^4.22.4",
"@types/node": "^22.7.2",
"@types/wechat-miniprogram": "^3.4.7",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@typescript-eslint/eslint-plugin": "^8.7.0",
"@typescript-eslint/parser": "^8.7.0",
"@uni-helper/vite-plugin-uni-layouts": "^0.1.10",
"@uni-helper/vite-plugin-uni-manifest": "^0.2.6",
"@uni-helper/vite-plugin-uni-pages": "^0.2.26",
"@uni-helper/vite-plugin-uni-platform": "^0.0.4",
"@unocss/preset-legacy-compat": "^0.61.7",
"@vue/runtime-core": "^3.4.21",
"@vue/runtime-core": "^3.5.8",
"@vue/tsconfig": "^0.5.1",
"autoprefixer": "^10.4.19",
"commitlint": "^19.3.0",
"eslint": "^8.57.0",
"autoprefixer": "^10.4.20",
"commitlint": "^19.5.0",
"eslint": "^9.11.1",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-vue": "^9.27.0",
"lint-staged": "^15.2.7",
"postcss": "^8.4.40",
"eslint-plugin-vue": "^9.28.0",
"lint-staged": "^15.2.10",
"postcss": "^8.4.47",
"postcss-html": "^1.7.0",
"postcss-scss": "^4.0.9",
"rollup-plugin-visualizer": "^5.12.0",
"sass": "^1.77.8",
"stylelint": "^16.8.0",
"sass": "^1.79.3",
"stylelint": "^16.9.0",
"stylelint-config-html": "^1.1.0",
"stylelint-config-recess-order": "^5.0.1",
"stylelint-config-recess-order": "^5.1.1",
"stylelint-config-recommended": "^14.0.1",
"stylelint-config-recommended-scss": "^14.1.0",
"stylelint-config-recommended-vue": "^1.5.0",
"stylelint-prettier": "^5.0.2",
"terser": "^5.31.3",
"typescript": "^5.5.4",
"terser": "^5.33.0",
"typescript": "^5.6.2",
"unocss": "^0.58.0",
"unocss-applet": "^0.7.8",
"unplugin-auto-import": "^0.18.2",
"vite": "5.2.8",
"unocss-applet": "^0.8.2",
"unplugin-auto-import": "^0.18.3",
"vite": "5.4.8",
"vite-plugin-restart": "^0.4.1",
"vue-i18n": "9.1.9",
"vue-tsc": "^2.0.29"
"vue-tsc": "^2.1.6"
},
"packageManager": "[email protected]+sha512.38dc6fba8dba35b39340b9700112c2fe1e12f10b17134715a4aa98ccf7bb035e76fd981cf0bb384dfa98f8d6af5481c2bef2f4266a24bfa20c34eb7147ce0b5e"
}
5 changes: 2 additions & 3 deletions client/uniapp/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@ onHide(() => {
</script>

<style lang="scss">
/* stylelint-disable selector-type-no-unknown */
button::after {
border: none;
}
swiper,
scroll-view {
swiper, scroll-view {
flex: 1;
height: 100%;
overflow: hidden;
Expand Down
8 changes: 8 additions & 0 deletions client/uniapp/src/pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@
"navigationStyle": "custom",
"navigationBarTitleText": "wopan登录"
}
},
{
"path": "pages/wopan/view",
"type": "page",
"style": {
"navigationStyle": "custom",
"navigationBarTitleText": "file-view"
}
}
],
"subPackages": []
Expand Down
Loading

0 comments on commit 23870c2

Please sign in to comment.