Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
Community-Mining-Client
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mining
Community-Mining-Client
Commits
b5232011
Commit
b5232011
authored
Dec 15, 2021
by
xhx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:树莓派相关代码调整
parent
d02c7cae
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
59 additions
and
34 deletions
+59
-34
chain33.ts
src/service/chain33.ts
+13
-0
index.vue
src/views/NodePage/Details/index.vue
+0
-0
DeviceItem.vue
src/views/NodePage/List/DeviceItem.vue
+14
-2
index.vue
src/views/NodePage/List/index.vue
+4
-4
vue.config.js
vue.config.js
+28
-28
No files found.
src/service/chain33.ts
View file @
b5232011
...
...
@@ -195,5 +195,17 @@ export default {
},
method
:
'POST'
})
},
closeTicket
:
function
(
addr
:
string
)
{
return
service
.
request
({
data
:
{
method
:
'ticket.CloseTickets'
,
params
:
[{
minerAddress
:
addr
,
}]
},
method
:
'POST'
})
}
}
\ No newline at end of file
src/views/NodePage/Details/index.vue
View file @
b5232011
This diff is collapsed.
Click to expand it.
src/views/NodePage/List/DeviceItem.vue
View file @
b5232011
...
...
@@ -85,8 +85,6 @@ export default Vue.extend({
data
()
{
return
{
showMenu
:
false
,
paiWalletAddress
:
''
,
isMining
:
false
,
err
:
''
,
isBind
:
false
,
ticketCount
:
''
as
any
,
...
...
@@ -97,6 +95,20 @@ export default Vue.extend({
}
},
computed
:
{
isMining
():
boolean
{
return
!
this
.
isLockWallet
&&
this
.
miningBtyCount
>
0
&&
this
.
blockSync
},
isLockWallet
():
boolean
{
// 钱包是否锁定 true:锁定整个钱包 false:没有锁定整个钱包
const
{
isWalletLock
,
isTicketLock
}
=
this
.
walletStatus
;
return
isWalletLock
?
isTicketLock
:
false
},
paiWalletAddress
():
string
{
return
(
(
this
.
paiWalletInfo
.
acc
&&
this
.
paiWalletInfo
.
acc
.
addr
)
||
''
);
},
deviceSerial
():
string
{
return
this
.
deviceInfo
.
serial
||
''
;
},
...
...
src/views/NodePage/List/index.vue
View file @
b5232011
...
...
@@ -134,10 +134,10 @@ export default Vue.extend({
const
resetWalletResult
=
await
passwdInputProxy
(
resetWallet
)(
params
.
ip
);
console
.
log
(
'resetWalletResult'
,
resetWalletResult
);
//
setTimeout(() => {
//
this.$router.push({ name: 'index' });
//
toast.clear();
//
}, 30000);
setTimeout
(()
=>
{
//
this.$router.push({ name: 'index' });
toast
.
clear
();
},
30000
);
})
.
catch
(
err
=>
{
console
.
log
(
'cancel'
)
...
...
vue.config.js
View file @
b5232011
...
...
@@ -31,34 +31,34 @@ module.exports = {
},
}
},
configureWebpack
:
config
=>
{
if
(
process
.
env
.
NODE_ENV
===
'production'
)
{
config
.
optimization
=
{
minimize
:
true
,
minimizer
:
[
new
TerserPlugin
({
exclude
:
/node_modules/
,
terserOptions
:
{
compress
:
{
drop_console
:
true
,
drop_debugger
:
false
,
pure_funcs
:
[
'console.log'
],
// 移除console
}
}
})
]
}
// config.plugins = [
// new CompressionWebpackPlugin({
// filename: '[path][name].gz[query]',
// algorithm: 'gzip',
// test: /\.(js|css|json|ttf)(\?.*)?$/i,
// threshold: 0,
// minRatio: 0.8,
// })
// ]
}
}
//
configureWebpack: config => {
//
if (process.env.NODE_ENV === 'production') {
//
config.optimization = {
//
minimize: true,
//
minimizer: [
//
new TerserPlugin({
//
exclude: /node_modules/,
//
terserOptions: {
//
compress: {
//
drop_console: true,
//
drop_debugger: false,
//
pure_funcs: ['console.log'], // 移除console
//
}
//
}
//
})
//
]
//
}
//
// config.plugins = [
//
// new CompressionWebpackPlugin({
//
// filename: '[path][name].gz[query]',
//
// algorithm: 'gzip',
//
// test: /\.(js|css|json|ttf)(\?.*)?$/i,
//
// threshold: 0,
//
// minRatio: 0.8,
//
// })
//
// ]
//
}
//
}
// pwa: {
// name: 'My App',
// themeColor: '#4DBA87',
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment