Browse Source

解决基本报错

master
张献维 3 months ago
parent
commit
1445be65b7
  1. 1
      gui_wails01_learn/.gitignore
  2. 2
      gui_wails01_learn/backend/app.go
  3. 2
      gui_wails01_learn/backend/lcm.go
  4. 10
      gui_wails01_learn/frontend/package.json
  5. 4
      gui_wails01_learn/frontend/src/main.js
  6. 1136
      gui_wails01_learn/frontend/yarn.lock

1
gui_wails01_learn/.gitignore

@ -8,3 +8,4 @@ build
.DS_Store
/.idea/
/frontend/npminstall-debug.log
/frontend/package-lock.json

2
gui_wails01_learn/backend/app.go

@ -120,7 +120,7 @@ func (a *WalletApplication) WailsInit(runtime *wails.Runtime) error {
// 查询 JDK 目录信息
a.detectJavaPath()
a.initMainnetConnection()
a.newReleaseAvailable()
// TODO a.newReleaseAvailable()
return nil
}

2
gui_wails01_learn/backend/lcm.go

@ -24,7 +24,7 @@ func (u *UpdateWallet) Run() {
var err error
u.currentVersion = u.app.Version
u.newVersion = u.GetLatestRelease()
u.newVersion = "1.0.0" // u.GetLatestRelease()
u.mollyBinaryPath, err = os.Executable()
if err != nil {
u.app.log.Errorln("Unable to collect the path of the molly wallet binary. Reason: ", err)

10
gui_wails01_learn/frontend/package.json

@ -9,6 +9,7 @@
"lint": "vue-cli-service lint"
},
"dependencies": {
"@sweetalert2/theme-bootstrap-4": "3.1.4",
"@types/vuelidate": "^0.7.13",
"@wailsapp/runtime": "1.0.11",
"babel-helper-vue-jsx-merge-props": "2.0.3",
@ -16,11 +17,13 @@
"chartist": "0.11.4",
"core-js": "2.6.11",
"es6-promise": "4.2.8",
"idle-vue": "2.0.5",
"jquery": "3.5.0",
"node-sass": "4.13.1",
"popper.js": "1.16.1",
"sass": "^1.80.6",
"sass-loader": "8.0.2",
"serialize-javascript": "2.1.2",
"sweetalert2": "9.10.12",
"update": "0.7.4",
"vue": "2.6.11",
"vue-clickaway": "2.2.2",
@ -32,13 +35,10 @@
"vue-select": "3.10.3",
"vue-spinner": "1.0.3",
"vue-spinner-component": "1.0.5",
"idle-vue": "2.0.5",
"sweetalert2": "9.10.12",
"@sweetalert2/theme-bootstrap-4": "3.1.4",
"vuelidate": "0.7.5",
"vuex": "3.1.3",
"webpack": "4.42.0",
"yarn": "1.22.4"
"yarn": "^1.22.4"
},
"devDependencies": {
"@vue/cli-plugin-babel": "3.12.1",

4
gui_wails01_learn/frontend/src/main.js

@ -5,7 +5,7 @@ import Vue from "vue";
import App from "./App.vue";
import router from "./router/index";
import * as Wails from '@wailsapp/runtime';
import PaperDashboard from "./plugins/paperDashboard";
// import PaperDashboard from "./plugins/paperDashboard";
import "vue-notifyjs/themes/default.css";
import VueNotify from 'vue-notifyjs';
import {store} from './store/store';
@ -33,7 +33,7 @@ Vue.use(VueProgressBar, {
Vue.use(ToggleButton)
Vue.use(Vuelidate)
Vue.use(VueNotify);
Vue.use(PaperDashboard);
// Vue.use(PaperDashboard);
Vue.use(VueSelect);
Wails.Init(() => {

1136
gui_wails01_learn/frontend/yarn.lock

File diff suppressed because it is too large
Loading…
Cancel
Save