minor fixes

This commit is contained in:
FreezyDev 2022-10-13 15:50:29 +02:00
parent e051b59a98
commit 7f8f7c2aa1
352 changed files with 49537 additions and 49537 deletions

View file

@ -341,7 +341,7 @@ export default {
if (currency !== this.nativeCurrency) { if (currency !== this.nativeCurrency) {
this.$store.dispatch('application/setDefaultEthToReceive', { currency }) this.$store.dispatch('application/setDefaultEthToReceive', { currency })
} }
this.$store.dispatch('loading/updateProgress', { progress: 100 }) this.$store.dispatch('loading/updateProgress', { progress: -1 })
this.depositsPast = Number(depositsPast) <= 0 ? 0 : depositsPast this.depositsPast = Number(depositsPast) <= 0 ? 0 : depositsPast
this.depositTxHash = txHash this.depositTxHash = txHash
this.depositTimestamp = timestamp this.depositTimestamp = timestamp

View file

@ -6,7 +6,7 @@ const EVENTS_PATH = './static/events/'
const enabledChains = ['1', '56', '100', '137'] const enabledChains = ['1', '56', '100', '137']
async function main() { async function main() {
for (let network in enabledChains) { for (const network in enabledChains) {
const netId = enabledChains[network] const netId = enabledChains[network]
const config = networkConfig[`netId${netId}`] const config = networkConfig[`netId${netId}`]
const { constants, tokens, nativeCurrency, deployedBlock } = config const { constants, tokens, nativeCurrency, deployedBlock } = config
@ -46,7 +46,6 @@ async function main() {
console.log('- Notes') console.log('- Notes')
console.log('cachedEvents count - ', notesCachedEvents.events.length) console.log('cachedEvents count - ', notesCachedEvents.events.length)
console.log('lastBlock - ', notesCachedEvents.lastBlock) console.log('lastBlock - ', notesCachedEvents.lastBlock)
} }
} }
} }

View file

@ -2,8 +2,8 @@ import fs from 'fs'
import Jszip from 'jszip' import Jszip from 'jszip'
const compressionConfig = { const compressionConfig = {
type: "nodebuffer", type: 'nodebuffer',
compression: "DEFLATE", compression: 'DEFLATE',
compressionOptions: { compressionOptions: {
level: 9 level: 9
} }
@ -11,7 +11,7 @@ const compressionConfig = {
const fileConfig = { const fileConfig = {
binary: true, binary: true,
compression: "DEFLATE" compression: 'DEFLATE'
} }
export async function save(filePath) { export async function save(filePath) {
@ -23,7 +23,8 @@ export async function save(filePath) {
const data = fs.readFileSync(`${filePath}`) const data = fs.readFileSync(`${filePath}`)
await jszip.file(`${fileName}`, data, fileConfig) await jszip.file(`${fileName}`, data, fileConfig)
await jszip.generateNodeStream({ await jszip
.generateNodeStream({
...compressionConfig, ...compressionConfig,
streamFiles: true streamFiles: true
}) })

View file

@ -1,7 +1,7 @@
export const state = () => { export const state = () => {
return { return {
message: '', message: '',
progress: '', progress: -1,
enabled: false, enabled: false,
type: null type: null
} }
@ -19,7 +19,7 @@ export const state = () => {
DISABLE(state) { DISABLE(state) {
state.message = '' state.message = ''
state.enabled = false state.enabled = false
state.progress = '' state.progress = -1
state.type = null state.type = null
} }
} }