Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
liov committed Oct 25, 2024
1 parent 35915fa commit fd6ffb2
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 28 deletions.
2 changes: 1 addition & 1 deletion awesome
2 changes: 2 additions & 0 deletions client/uniapp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
- weixin平台:`pnpm dev:mp-weixin` 然后打开微信开发者工具,导入本地文件夹,选择本项目的`dist/dev/mp-weixin` 文件。
- APP平台:`pnpm dev:app`, 然后打开 `HBuilderX`,导入刚刚生成的`dist/dev/app` 文件夹,选择运行到模拟器(开发时优先使用),或者运行的安卓/ios基座。

### 改了本地库
最关键的是`rm -r node_modules/.vite/deps`
## 🔗 发布

- web平台: `pnpm build:h5`,打包后的文件在 `dist/build/h5`,可以放到web服务器,如nginx运行。如果最终不是放在根目录,可以在 `manifest.config.ts` 文件的 `h5.router.base` 属性进行修改。
Expand Down
45 changes: 24 additions & 21 deletions client/uniapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@
"build:quickapp-webview": "uni build -p quickapp-webview",
"build:quickapp-webview-huawei": "uni build -p quickapp-webview-huawei",
"build:quickapp-webview-union": "uni build -p quickapp-webview-union",
"type-check": "vue-tsc --noEmit"
"type-check": "vue-tsc --noEmit",
"diamond:add": "pnpm add file:..\\..\\thirdparty\\diamond",
"diamond:link": "pnpm link --global diamond",
"clear:cache": "rm -r node_modules/.vite/deps"
},
"lint-staged": {
"**/*.{html,vue,ts,cjs,json,md}": [
Expand All @@ -72,21 +75,21 @@
"bin-wrapper": "npm:bin-wrapper-china"
},
"dependencies": {
"@dcloudio/uni-app": "3.0.0-4020820240925001",
"@dcloudio/uni-app-harmony": "3.0.0-4020820240925001",
"@dcloudio/uni-app-plus": "3.0.0-4020820240925001",
"@dcloudio/uni-components": "3.0.0-4020820240925001",
"@dcloudio/uni-h5": "3.0.0-4020820240925001",
"@dcloudio/uni-mp-alipay": "3.0.0-4020820240925001",
"@dcloudio/uni-mp-baidu": "3.0.0-4020820240925001",
"@dcloudio/uni-mp-jd": "3.0.0-4020820240925001",
"@dcloudio/uni-mp-kuaishou": "3.0.0-4020820240925001",
"@dcloudio/uni-mp-lark": "3.0.0-4020820240925001",
"@dcloudio/uni-mp-qq": "3.0.0-4020820240925001",
"@dcloudio/uni-mp-toutiao": "3.0.0-4020820240925001",
"@dcloudio/uni-mp-weixin": "3.0.0-4020820240925001",
"@dcloudio/uni-mp-xhs": "3.0.0-4020820240925001",
"@dcloudio/uni-quickapp-webview": "3.0.0-4020820240925001",
"@dcloudio/uni-app": "3.0.0-4020920240930001",
"@dcloudio/uni-app-harmony": "3.0.0-4020920240930001",
"@dcloudio/uni-app-plus": "3.0.0-4020920240930001",
"@dcloudio/uni-components": "3.0.0-4020920240930001",
"@dcloudio/uni-h5": "3.0.0-4020920240930001",
"@dcloudio/uni-mp-alipay": "3.0.0-4020920240930001",
"@dcloudio/uni-mp-baidu": "3.0.0-4020920240930001",
"@dcloudio/uni-mp-jd": "3.0.0-4020920240930001",
"@dcloudio/uni-mp-kuaishou": "3.0.0-4020920240930001",
"@dcloudio/uni-mp-lark": "3.0.0-4020920240930001",
"@dcloudio/uni-mp-qq": "3.0.0-4020920240930001",
"@dcloudio/uni-mp-toutiao": "3.0.0-4020920240930001",
"@dcloudio/uni-mp-weixin": "3.0.0-4020920240930001",
"@dcloudio/uni-mp-xhs": "3.0.0-4020920240930001",
"@dcloudio/uni-quickapp-webview": "3.0.0-4020920240930001",
"@dcloudio/uni-ui": "^1.5.6",
"dayjs": "1.11.13",
"diamond": "file:..\\..\\thirdparty\\diamond",
Expand All @@ -100,10 +103,10 @@
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@dcloudio/types": "^3.4.12",
"@dcloudio/uni-automator": "3.0.0-4020820240925001",
"@dcloudio/uni-cli-shared": "3.0.0-4020820240925001",
"@dcloudio/uni-stacktracey": "3.0.0-4020820240925001",
"@dcloudio/vite-plugin-uni": "3.0.0-4020820240925001",
"@dcloudio/uni-automator": "3.0.0-4020920240930001",
"@dcloudio/uni-cli-shared": "3.0.0-4020920240930001",
"@dcloudio/uni-stacktracey": "3.0.0-4020920240930001",
"@dcloudio/vite-plugin-uni": "3.0.0-4020920240930001",
"@esbuild/darwin-arm64": "0.24.0",
"@esbuild/darwin-x64": "0.24.0",
"@iconify-json/carbon": "^1.2.1",
Expand Down Expand Up @@ -146,7 +149,7 @@
"unocss": "^0.58.0",
"unocss-applet": "^0.8.2",
"unplugin-auto-import": "^0.18.3",
"vite": "5.4.8",
"vite": "5.2.8",
"vite-plugin-restart": "^0.4.1",
"vue-i18n": "9.1.9",
"vue-tsc": "^2.1.6"
Expand Down
4 changes: 4 additions & 0 deletions client/uniapp/src/pages/wopan/view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ const fileName = computed(()=>{
const total = ref(wopanStore.curDir.subFiles.length)
onLoad((options) => {
if(total.value == 0){
uni.redirectTo({url:'/pages/wopan/list'})
return
}
index.value = parseInt(options.index)
file.value =wopanStore.curDir.subFiles[index.value].file
console.log("file-view",file.value)
Expand Down
5 changes: 5 additions & 0 deletions client/uniapp/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ export default ({ command, mode }) => {
'process.env.VUE_APP_TEST': JSON.stringify('test'),
},
css: {
preprocessorOptions: {
scss: {
api:"modern-compiler"
},
},
postcss: {
plugins: [
// autoprefixer({
Expand Down
2 changes: 1 addition & 1 deletion client/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"type": "module",
"node": "v22.0.0",
"packageManager": "pnpm@9.1.0",
"packageManager": "pnpm@9.12.2",
"scripts": {
"protoc": "node ../../proto/generate.js grpc-web",
"wasm:build": "wasm-pack build ../../server/rust/wasm --target web",
Expand Down
2 changes: 1 addition & 1 deletion client/web/src/utils/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const getMD5 = function (file) {
const chunkSize = 2097152; // Read in chunks of 2MB
const chunks = Math.ceil(file.size / chunkSize);
let currentChunk = 0;
const spark = new SparkMD5.ArrayBuffer();
const spark = new SparkMD5();
const fileReader = new FileReader();

fileReader.onload = function (e) {
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/example
2 changes: 1 addition & 1 deletion thirdparty/pick

0 comments on commit fd6ffb2

Please sign in to comment.