diff --git a/src/App.vue b/src/App.vue index 386de8e88..4ab708dd6 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,7 +4,6 @@ :locale="LANGUAGES[$i18n.locale as LocaleCodes].elementLocale" >
- diff --git a/src/background/constants.ts b/src/background/constants.ts deleted file mode 100644 index 5339eeda8..000000000 --- a/src/background/constants.ts +++ /dev/null @@ -1,65 +0,0 @@ -import os from 'os' -import path from 'path' - -export const OS_ARCH = os.arch() - -export const osPlatform = os.platform() - -type SupportedPlatform = 'win32' | 'linux' | 'darwin' - -const supportedPlatforms = ['win32', 'linux', 'darwin'] - -if (!supportedPlatforms.includes(osPlatform)) { - throw new Error(`Platform ${osPlatform} not supported`) -} - -export const PLATFORM: SupportedPlatform = osPlatform as SupportedPlatform - -export const ARCH = ['x64', 'arm64'].includes(OS_ARCH) ? 'x86_64' : OS_ARCH - -export const DEVELOPMENT = process.env.NODE_ENV !== 'production' - -export const URLS_PUBLIC_WITNET_NODES = [ - '3.133.4.38:21338', - '3.21.74.162:21338', -] - -export const SHEIKAH_PATH_BY_PLATFORM = { - darwin: path.join(os.homedir(), 'Desktop', '.sheikah'), - linux: path.join(os.homedir(), '.sheikah'), - win32: path.join(os.homedir(), '.sheikah'), -}[PLATFORM] - -export const VERSION_FILE_NAME = '.version' - -export const SHEIKAH_PATH = process.env.TRAVIS ? '' : SHEIKAH_PATH_BY_PLATFORM - -export const WALLET_COMPRESS_FILE_NAME: string = { - darwin: `witnet-${ARCH}-apple-${PLATFORM}.tar.gz`, - linux: `release-${ARCH}-${PLATFORM}.tar.gz`, - win32: `witnet-x86_64-pc-windows-msvc.tar.gz`, -}[PLATFORM] - -export const WITNET_FILE_NAME: string = { - win32: 'witnet.exe', - linux: 'witnet', - darwin: 'witnet', -}[PLATFORM] - -export enum Status { - OsNotSupported = 'OS_NOT_SUPPORTED', - Wait = 'WAIT', - Ready = 'READY', -} - -export const STATUS_PATH = { - [Status.OsNotSupported]: 'wallet-not-found', - [Status.Wait]: 'setup', - [Status.Ready]: '', -} - -export const WITNET_CONFIG_FILE_NAME = 'witnet.toml' - -export const DEFAULT_WALLET_LOG_LEVEL = 'error' - -export const RELEASE_BASE_URL = `https://api.github.com/repos/witnet/witnet-rust/releases/tags/` diff --git a/src/components/EditorOperatorArgument.vue b/src/components/EditorOperatorArgument.vue index 641e68178..b6c887fb8 100644 --- a/src/components/EditorOperatorArgument.vue +++ b/src/components/EditorOperatorArgument.vue @@ -236,7 +236,6 @@ export default { }, // FIXME(#19): fix update select argument in radon.js library updateTemplateAndVariables(updater) { - console.log(updater) this.$emit('update', updater) }, }, diff --git a/src/components/LogoutModal.vue b/src/components/LogoutModal.vue index 3090e8ec7..3952d4c12 100644 --- a/src/components/LogoutModal.vue +++ b/src/components/LogoutModal.vue @@ -44,7 +44,6 @@ export default { }), sessionExpiredLocal: { get() { - console.log('session EXPIRED!!') return this.sessionExpired }, set() {