Browse Source

add tauri

master
godo 1 month ago
parent
commit
1fdb65ecd6
  1. 218
      os/package-lock.json
  2. 4
      os/package.json
  3. 4
      os/src-tauri/.gitignore
  4. 5462
      os/src-tauri/Cargo.lock
  5. 30
      os/src-tauri/Cargo.toml
  6. 3
      os/src-tauri/build.rs
  7. 12
      os/src-tauri/capabilities/default.json
  8. 15
      os/src-tauri/capabilities/desktop.json
  9. BIN
      os/src-tauri/icons/128x128.png
  10. BIN
      os/src-tauri/icons/128x128@2x.png
  11. BIN
      os/src-tauri/icons/32x32.png
  12. BIN
      os/src-tauri/icons/64x64.png
  13. BIN
      os/src-tauri/icons/Square107x107Logo.png
  14. BIN
      os/src-tauri/icons/Square142x142Logo.png
  15. BIN
      os/src-tauri/icons/Square150x150Logo.png
  16. BIN
      os/src-tauri/icons/Square284x284Logo.png
  17. BIN
      os/src-tauri/icons/Square30x30Logo.png
  18. BIN
      os/src-tauri/icons/Square310x310Logo.png
  19. BIN
      os/src-tauri/icons/Square44x44Logo.png
  20. BIN
      os/src-tauri/icons/Square71x71Logo.png
  21. BIN
      os/src-tauri/icons/Square89x89Logo.png
  22. BIN
      os/src-tauri/icons/StoreLogo.png
  23. BIN
      os/src-tauri/icons/android/mipmap-hdpi/ic_launcher.png
  24. BIN
      os/src-tauri/icons/android/mipmap-hdpi/ic_launcher_foreground.png
  25. BIN
      os/src-tauri/icons/android/mipmap-hdpi/ic_launcher_round.png
  26. BIN
      os/src-tauri/icons/android/mipmap-mdpi/ic_launcher.png
  27. BIN
      os/src-tauri/icons/android/mipmap-mdpi/ic_launcher_foreground.png
  28. BIN
      os/src-tauri/icons/android/mipmap-mdpi/ic_launcher_round.png
  29. BIN
      os/src-tauri/icons/android/mipmap-xhdpi/ic_launcher.png
  30. BIN
      os/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_foreground.png
  31. BIN
      os/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_round.png
  32. BIN
      os/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher.png
  33. BIN
      os/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_foreground.png
  34. BIN
      os/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_round.png
  35. BIN
      os/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher.png
  36. BIN
      os/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_foreground.png
  37. BIN
      os/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_round.png
  38. BIN
      os/src-tauri/icons/icon.icns
  39. BIN
      os/src-tauri/icons/icon.ico
  40. BIN
      os/src-tauri/icons/icon.png
  41. BIN
      os/src-tauri/icons/ios/AppIcon-20x20@1x.png
  42. BIN
      os/src-tauri/icons/ios/AppIcon-20x20@2x-1.png
  43. BIN
      os/src-tauri/icons/ios/AppIcon-20x20@2x.png
  44. BIN
      os/src-tauri/icons/ios/AppIcon-20x20@3x.png
  45. BIN
      os/src-tauri/icons/ios/AppIcon-29x29@1x.png
  46. BIN
      os/src-tauri/icons/ios/AppIcon-29x29@2x-1.png
  47. BIN
      os/src-tauri/icons/ios/AppIcon-29x29@2x.png
  48. BIN
      os/src-tauri/icons/ios/AppIcon-29x29@3x.png
  49. BIN
      os/src-tauri/icons/ios/AppIcon-40x40@1x.png
  50. BIN
      os/src-tauri/icons/ios/AppIcon-40x40@2x-1.png
  51. BIN
      os/src-tauri/icons/ios/AppIcon-40x40@2x.png
  52. BIN
      os/src-tauri/icons/ios/AppIcon-40x40@3x.png
  53. BIN
      os/src-tauri/icons/ios/AppIcon-512@2x.png
  54. BIN
      os/src-tauri/icons/ios/AppIcon-60x60@2x.png
  55. BIN
      os/src-tauri/icons/ios/AppIcon-60x60@3x.png
  56. BIN
      os/src-tauri/icons/ios/AppIcon-76x76@1x.png
  57. BIN
      os/src-tauri/icons/ios/AppIcon-76x76@2x.png
  58. BIN
      os/src-tauri/icons/ios/AppIcon-83.5x83.5@2x.png
  59. 19
      os/src-tauri/src/lib.rs
  60. 6
      os/src-tauri/src/main.rs
  61. 37
      os/src-tauri/tauri.conf.json
  62. 4
      os/src/components/auth/UserRegister.vue

218
os/package-lock.json

@ -36,6 +36,7 @@
"x-data-spreadsheet": "^1.1.9"
},
"devDependencies": {
"@tauri-apps/cli": "^2.5.0",
"@types/exceljs": "^1.3.2",
"@types/node": "^22.10.10",
"@types/tinycolor2": "^1.4.6",
@ -1566,6 +1567,223 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/@tauri-apps/cli": {
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/@tauri-apps/cli/-/cli-2.5.0.tgz",
"integrity": "sha512-rAtHqG0Gh/IWLjN2zTf3nZqYqbo81oMbqop56rGTjrlWk9pTTAjkqOjSL9XQLIMZ3RbeVjveCqqCA0s8RnLdMg==",
"dev": true,
"license": "Apache-2.0 OR MIT",
"bin": {
"tauri": "tauri.js"
},
"engines": {
"node": ">= 10"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/tauri"
},
"optionalDependencies": {
"@tauri-apps/cli-darwin-arm64": "2.5.0",
"@tauri-apps/cli-darwin-x64": "2.5.0",
"@tauri-apps/cli-linux-arm-gnueabihf": "2.5.0",
"@tauri-apps/cli-linux-arm64-gnu": "2.5.0",
"@tauri-apps/cli-linux-arm64-musl": "2.5.0",
"@tauri-apps/cli-linux-riscv64-gnu": "2.5.0",
"@tauri-apps/cli-linux-x64-gnu": "2.5.0",
"@tauri-apps/cli-linux-x64-musl": "2.5.0",
"@tauri-apps/cli-win32-arm64-msvc": "2.5.0",
"@tauri-apps/cli-win32-ia32-msvc": "2.5.0",
"@tauri-apps/cli-win32-x64-msvc": "2.5.0"
}
},
"node_modules/@tauri-apps/cli-darwin-arm64": {
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-arm64/-/cli-darwin-arm64-2.5.0.tgz",
"integrity": "sha512-VuVAeTFq86dfpoBDNYAdtQVLbP0+2EKCHIIhkaxjeoPARR0sLpFHz2zs0PcFU76e+KAaxtEtAJAXGNUc8E1PzQ==",
"cpu": [
"arm64"
],
"dev": true,
"license": "Apache-2.0 OR MIT",
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@tauri-apps/cli-darwin-x64": {
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-x64/-/cli-darwin-x64-2.5.0.tgz",
"integrity": "sha512-hUF01sC06cZVa8+I0/VtsHOk9BbO75rd+YdtHJ48xTdcYaQ5QIwL4yZz9OR1AKBTaUYhBam8UX9Pvd5V2/4Dpw==",
"cpu": [
"x64"
],
"dev": true,
"license": "Apache-2.0 OR MIT",
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@tauri-apps/cli-linux-arm-gnueabihf": {
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm-gnueabihf/-/cli-linux-arm-gnueabihf-2.5.0.tgz",
"integrity": "sha512-LQKqttsK252LlqYyX8R02MinUsfFcy3+NZiJwHFgi5Y3+ZUIAED9cSxJkyNtuY5KMnR4RlpgWyLv4P6akN1xhg==",
"cpu": [
"arm"
],
"dev": true,
"license": "Apache-2.0 OR MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@tauri-apps/cli-linux-arm64-gnu": {
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-gnu/-/cli-linux-arm64-gnu-2.5.0.tgz",
"integrity": "sha512-mTQufsPcpdHg5RW0zypazMo4L55EfeE5snTzrPqbLX4yCK2qalN7+rnP8O8GT06xhp6ElSP/Ku1M2MR297SByQ==",
"cpu": [
"arm64"
],
"dev": true,
"license": "Apache-2.0 OR MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@tauri-apps/cli-linux-arm64-musl": {
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.5.0.tgz",
"integrity": "sha512-rQO1HhRUQqyEaal5dUVOQruTRda/TD36s9kv1hTxZiFuSq3558lsTjAcUEnMAtBcBkps20sbyTJNMT0AwYIk8Q==",
"cpu": [
"arm64"
],
"dev": true,
"license": "Apache-2.0 OR MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@tauri-apps/cli-linux-riscv64-gnu": {
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-riscv64-gnu/-/cli-linux-riscv64-gnu-2.5.0.tgz",
"integrity": "sha512-7oS18FN46yDxyw1zX/AxhLAd7T3GrLj3Ai6s8hZKd9qFVzrAn36ESL7d3G05s8wEtsJf26qjXnVF4qleS3dYsA==",
"cpu": [
"riscv64"
],
"dev": true,
"license": "Apache-2.0 OR MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@tauri-apps/cli-linux-x64-gnu": {
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-gnu/-/cli-linux-x64-gnu-2.5.0.tgz",
"integrity": "sha512-SG5sFNL7VMmDBdIg3nO3EzNRT306HsiEQ0N90ILe3ZABYAVoPDO/ttpCO37ApLInTzrq/DLN+gOlC/mgZvLw1w==",
"cpu": [
"x64"
],
"dev": true,
"license": "Apache-2.0 OR MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@tauri-apps/cli-linux-x64-musl": {
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-musl/-/cli-linux-x64-musl-2.5.0.tgz",
"integrity": "sha512-QXDM8zp/6v05PNWju5ELsVwF0VH1n6b5pk2E6W/jFbbiwz80Vs1lACl9pv5kEHkrxBj+aWU/03JzGuIj2g3SkQ==",
"cpu": [
"x64"
],
"dev": true,
"license": "Apache-2.0 OR MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@tauri-apps/cli-win32-arm64-msvc": {
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-arm64-msvc/-/cli-win32-arm64-msvc-2.5.0.tgz",
"integrity": "sha512-pFSHFK6b+o9y4Un8w0gGLwVyFTZaC3P0kQ7umRt/BLDkzD5RnQ4vBM7CF8BCU5nkwmEBUCZd7Wt3TWZxe41o6Q==",
"cpu": [
"arm64"
],
"dev": true,
"license": "Apache-2.0 OR MIT",
"optional": true,
"os": [
"win32"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@tauri-apps/cli-win32-ia32-msvc": {
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-ia32-msvc/-/cli-win32-ia32-msvc-2.5.0.tgz",
"integrity": "sha512-EArv1IaRlogdLAQyGlKmEqZqm5RfHCUMhJoedWu7GtdbOMUfSAz6FMX2boE1PtEmNO4An+g188flLeVErrxEKg==",
"cpu": [
"ia32"
],
"dev": true,
"license": "Apache-2.0 OR MIT",
"optional": true,
"os": [
"win32"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@tauri-apps/cli-win32-x64-msvc": {
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-x64-msvc/-/cli-win32-x64-msvc-2.5.0.tgz",
"integrity": "sha512-lj43EFYbnAta8pd9JnUq87o+xRUR0odz+4rixBtTUwUgdRdwQ2V9CzFtsMu6FQKpFQ6mujRK6P1IEwhL6ADRsQ==",
"cpu": [
"x64"
],
"dev": true,
"license": "Apache-2.0 OR MIT",
"optional": true,
"os": [
"win32"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@tootallnate/once": {
"version": "2.0.0",
"resolved": "https://registry.npmmirror.com/@tootallnate/once/-/once-2.0.0.tgz",

4
os/package.json

@ -10,6 +10,9 @@
},
"dependencies": {
"@element-plus/icons-vue": "^2.1.0",
"@tauri-apps/plugin-autostart": "~2",
"@tauri-apps/plugin-dialog": "~2.2.1",
"@tauri-apps/plugin-fs": "~2.2.1",
"@types/file-saver": "^2.0.7",
"axios": "^1.7.9",
"chart.js": "^4.4.7",
@ -37,6 +40,7 @@
"x-data-spreadsheet": "^1.1.9"
},
"devDependencies": {
"@tauri-apps/cli": "^2.5.0",
"@types/exceljs": "^1.3.2",
"@types/node": "^22.10.10",
"@types/tinycolor2": "^1.4.6",

4
os/src-tauri/.gitignore

@ -0,0 +1,4 @@
# Generated by Cargo
# will have compiled files and executables
/target/
/gen/schemas

5462
os/src-tauri/Cargo.lock

File diff suppressed because it is too large

30
os/src-tauri/Cargo.toml

@ -0,0 +1,30 @@
[package]
name = "godoos"
version = "1.0.6"
description = "godoos - desktop"
authors = ["godoos.com"]
license = "Gund-GPL-3.0"
repository = ""
edition = "2021"
rust-version = "1.77.2"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "app_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
tauri-build = { version = "2.2.0", features = [] }
[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
log = "0.4"
tauri = { version = "2.5.0", features = [] }
tauri-plugin-log = "2.0.0-rc"
tauri-plugin-fs = "2"
tauri-plugin-dialog = "2"
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
tauri-plugin-autostart = "2"

3
os/src-tauri/build.rs

@ -0,0 +1,3 @@
fn main() {
tauri_build::build()
}

12
os/src-tauri/capabilities/default.json

@ -0,0 +1,12 @@
{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "default",
"description": "enables the default permissions",
"windows": [
"main"
],
"permissions": [
"core:default",
"fs:default"
]
}

15
os/src-tauri/capabilities/desktop.json

@ -0,0 +1,15 @@
{
"identifier": "desktop-capability",
"platforms": [
"macOS",
"windows",
"linux"
],
"windows": [
"main"
],
"permissions": [
"autostart:default",
"autostart:default"
]
}

BIN
os/src-tauri/icons/128x128.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
os/src-tauri/icons/128x128@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
os/src-tauri/icons/32x32.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
os/src-tauri/icons/64x64.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

BIN
os/src-tauri/icons/Square107x107Logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

BIN
os/src-tauri/icons/Square142x142Logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
os/src-tauri/icons/Square150x150Logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
os/src-tauri/icons/Square284x284Logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
os/src-tauri/icons/Square30x30Logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
os/src-tauri/icons/Square310x310Logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

BIN
os/src-tauri/icons/Square44x44Logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

BIN
os/src-tauri/icons/Square71x71Logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

BIN
os/src-tauri/icons/Square89x89Logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

BIN
os/src-tauri/icons/StoreLogo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
os/src-tauri/icons/android/mipmap-hdpi/ic_launcher.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
os/src-tauri/icons/android/mipmap-hdpi/ic_launcher_foreground.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
os/src-tauri/icons/android/mipmap-hdpi/ic_launcher_round.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
os/src-tauri/icons/android/mipmap-mdpi/ic_launcher.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
os/src-tauri/icons/android/mipmap-mdpi/ic_launcher_foreground.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

BIN
os/src-tauri/icons/android/mipmap-mdpi/ic_launcher_round.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
os/src-tauri/icons/android/mipmap-xhdpi/ic_launcher.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

BIN
os/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_foreground.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
os/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_round.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

BIN
os/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
os/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_foreground.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
os/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_round.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
os/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
os/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_foreground.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
os/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_round.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
os/src-tauri/icons/icon.icns

Binary file not shown.

BIN
os/src-tauri/icons/icon.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

BIN
os/src-tauri/icons/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

BIN
os/src-tauri/icons/ios/AppIcon-20x20@1x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
os/src-tauri/icons/ios/AppIcon-20x20@2x-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
os/src-tauri/icons/ios/AppIcon-20x20@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
os/src-tauri/icons/ios/AppIcon-20x20@3x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

BIN
os/src-tauri/icons/ios/AppIcon-29x29@1x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
os/src-tauri/icons/ios/AppIcon-29x29@2x-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
os/src-tauri/icons/ios/AppIcon-29x29@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
os/src-tauri/icons/ios/AppIcon-29x29@3x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

BIN
os/src-tauri/icons/ios/AppIcon-40x40@1x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
os/src-tauri/icons/ios/AppIcon-40x40@2x-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

BIN
os/src-tauri/icons/ios/AppIcon-40x40@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

BIN
os/src-tauri/icons/ios/AppIcon-40x40@3x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

BIN
os/src-tauri/icons/ios/AppIcon-512@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 KiB

BIN
os/src-tauri/icons/ios/AppIcon-60x60@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

BIN
os/src-tauri/icons/ios/AppIcon-60x60@3x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
os/src-tauri/icons/ios/AppIcon-76x76@1x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

BIN
os/src-tauri/icons/ios/AppIcon-76x76@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
os/src-tauri/icons/ios/AppIcon-83.5x83.5@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

19
os/src-tauri/src/lib.rs

@ -0,0 +1,19 @@
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.plugin(tauri_plugin_dialog::init())
.plugin(tauri_plugin_autostart::init())
.plugin(tauri_plugin_fs::init())
.setup(|app| {
if cfg!(debug_assertions) {
app.handle().plugin(
tauri_plugin_log::Builder::default()
.level(log::LevelFilter::Info)
.build(),
)?;
}
Ok(())
})
.run(tauri::generate_context!())
.expect("error while running tauri application");
}

6
os/src-tauri/src/main.rs

@ -0,0 +1,6 @@
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
fn main() {
app_lib::run();
}

37
os/src-tauri/tauri.conf.json

@ -0,0 +1,37 @@
{
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
"productName": "godoos",
"version": "0.1.0",
"identifier": "com.tauri.dev",
"build": {
"frontendDist": "../dist",
"devUrl": "http://localhost:8868",
"beforeDevCommand": "npm run dev",
"beforeBuildCommand": "npm run build"
},
"app": {
"windows": [
{
"title": "GodoOS",
"width": 1024,
"height": 768,
"resizable": true,
"fullscreen": true
}
],
"security": {
"csp": null
}
},
"bundle": {
"active": true,
"targets": "all",
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
]
}
}

4
os/src/components/auth/UserRegister.vue

@ -103,7 +103,7 @@
prefix-icon="UserFilled"
></el-input>
</el-form-item>
<el-form-item prop="nickname">
<!-- <el-form-item prop="nickname">
<el-input
v-model="registerInfo.nickname"
size="large"
@ -126,7 +126,7 @@
placeholder="请输入手机号"
prefix-icon="Iphone"
></el-input>
</el-form-item>
</el-form-item> -->
<el-form-item prop="password">
<el-input
v-model="registerInfo.password"

Loading…
Cancel
Save