mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2025-12-16 04:56:49 +00:00
various
This commit is contained in:
@@ -25,7 +25,7 @@ const visionBuild = await esbuild.build({
|
||||
outfile: 'dist/vision.js'
|
||||
})
|
||||
|
||||
const mainBuild = await esbuild.context({
|
||||
const mainContext = await esbuild.context({
|
||||
entryPoints: ['src/main.ts'],
|
||||
bundle: true,
|
||||
minify: !isDev,
|
||||
@@ -36,18 +36,19 @@ const mainBuild = await esbuild.context({
|
||||
'process.env.STATIC': (isDev) ? '"../build/icons"' : '"."',
|
||||
'process.env.VITE_DEV_SERVER_URL': (isDev) ? '"http://localhost:5173"' : 'null'
|
||||
},
|
||||
plugins: [{
|
||||
plugins: (isDev) ? [{
|
||||
name: 'electron-runner',
|
||||
setup (build) {
|
||||
build.onEnd((result) => {
|
||||
if (!result.errors.length) electronRunner.restart()
|
||||
})
|
||||
}
|
||||
}]
|
||||
}] : []
|
||||
})
|
||||
|
||||
Promise.all([
|
||||
visionBuild,
|
||||
(isDev) ? mainBuild.watch() : mainBuild
|
||||
])
|
||||
.catch(() => process.exit(1))
|
||||
if (isDev) {
|
||||
await mainContext.watch()
|
||||
} else {
|
||||
await mainContext.rebuild()
|
||||
mainContext.dispose()
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "awakened-poe-trade",
|
||||
"version": "3.20.10007",
|
||||
"version": "3.20.10008",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "node build/script.mjs",
|
||||
|
||||
@@ -66,7 +66,7 @@ export class HostClipboard {
|
||||
}
|
||||
}
|
||||
}
|
||||
poll()
|
||||
setTimeout(poll, POLL_DELAY)
|
||||
})
|
||||
|
||||
return this.pollPromise
|
||||
|
||||
@@ -68,7 +68,7 @@ export const useLeagues = createGlobalState(() => {
|
||||
|
||||
const leagueIsAlive = tradeLeagues.value.some(league => league.id === selectedId.value)
|
||||
if (!leagueIsAlive && !isPrivateLeague(selectedId.value ?? '')) {
|
||||
if (tradeLeagues.value.length > 2) {
|
||||
if (tradeLeagues.value.length > 4) {
|
||||
const TMP_CHALLENGE = 2
|
||||
selectedId.value = tradeLeagues.value[TMP_CHALLENGE].id
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user