Skip to content

Commit

Permalink
chore: layer clean up unused codes
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRalee committed Dec 13, 2023
1 parent e88d074 commit 7f177c5
Show file tree
Hide file tree
Showing 10 changed files with 123 additions and 336 deletions.
3 changes: 0 additions & 3 deletions layer/app.vue

This file was deleted.

44 changes: 0 additions & 44 deletions layer/nuxt-config/vite/chunks.ts

This file was deleted.

19 changes: 0 additions & 19 deletions layer/nuxt-config/vite/polyfills.ts

This file was deleted.

46 changes: 36 additions & 10 deletions layer/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,52 @@ import { vitePlugins } from './nuxt-config/vite'
const { resolve } = createResolver(import.meta.url)

export default defineNuxtConfig({
devtools: { enabled: true },
vite,
hooks,
plugins: vitePlugins,
devtools: { enabled: true },
alias: { '@shared': resolve('./') },
components: [{ path: resolve('./components'), prefix: 'Shared' }],
imports: {
dirs: ['composables/**', 'store/**']
},
typescript: {
includeWorkspace: true
},

build: {
transpile: ['@nuxtjs/i18n']
},

imports: {
dirs: ['composables/**', 'store/**']
},

components: [{ path: resolve('./components'), prefix: 'Shared' }],

modules: [
'@nuxtjs/i18n',
'@pinia/nuxt',
'@vueuse/nuxt',
'@nuxt/devtools',
'@nuxtjs/tailwindcss'
'@nuxtjs/tailwindcss',
...(process.env.VITE_BUGSNAG_KEY ? ['@injectivelabs/nuxt-bugsnag'] : [])
],
plugins: vitePlugins

typescript: {
typeCheck: 'build'
},

// @ts-ignore
bugsnag: process.env.VITE_BUGSNAG_KEY
? {
disabled: false,
publishRelease: true,
baseUrl: process.env.VITE_BASE_URL,
config: {
releaseStage: process.env.VITE_ENV,
notifyReleaseStages: ['staging', 'mainnet'],
appVersion: process.env.npm_package_version,
apiKey: process.env.VITE_BUGSNAG_KEY
}
}
: undefined,

sourcemap: {
server: false,
client: true
}
})
12 changes: 6 additions & 6 deletions layer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
},
"dependencies": {
"@injectivelabs/nuxt-bugsnag": "0.0.3",
"@injectivelabs/utils": " 1.14.5-beta.1",
"@injectivelabs/networks": "1.14.5-beta.1",
"@injectivelabs/sdk-ts": "1.14.5-beta.21",
"@injectivelabs/sdk-ui-ts": "1.14.5-beta.23",
"@injectivelabs/wallet-ts": "1.14.5-beta.22",
"@injectivelabs/token-metadata": "1.14.5-beta.11",
"@injectivelabs/utils": " 1.14.5-beta.2",
"@injectivelabs/networks": "1.14.5-beta.2",
"@injectivelabs/sdk-ts": "1.14.5-beta.30",
"@injectivelabs/sdk-ui-ts": "1.14.5-beta.32",
"@injectivelabs/wallet-ts": "1.14.5-beta.36",
"@injectivelabs/token-metadata": "1.14.5-beta.18",
"@bangjelkoski/vite-plugin-node-polyfills": "^0.0.2",
"@metamask/detect-provider": "^2.0.0",
"@amplitude/analytics-browser": "^2.2.0",
Expand Down
23 changes: 0 additions & 23 deletions layer/store/testStore.ts

This file was deleted.

93 changes: 0 additions & 93 deletions layer/store/token.ts

This file was deleted.

2 changes: 2 additions & 0 deletions layer/store/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ export const useSharedWalletStore = defineStore('sharedWallet', {
},

onConnect() {
console.log('on connectting from layer!')

const modalStore = useSharedModalStore()
const walletStore = useSharedWalletStore()

Expand Down
3 changes: 0 additions & 3 deletions layer/utils/helper.ts
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
export const testHelperFn = () => {
console.log('testHelperFn')
}
Loading

0 comments on commit 7f177c5

Please sign in to comment.