Revert "minor fixes"

This reverts commit 7f8f7c2aa1.
This commit is contained in:
FreezyEx 2022-10-13 16:03:54 +02:00
parent 7f8f7c2aa1
commit b32527e057
352 changed files with 49537 additions and 49537 deletions

View file

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

View file

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

View file

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

View file

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