@visualizevalue/mint-app-base 0.1.17 → 0.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.nuxtrc ADDED
@@ -0,0 +1 @@
1
+ typescript.includeWorkspace = true
package/app/app.vue CHANGED
@@ -1,7 +1,17 @@
1
1
  <template>
2
2
  <div>
3
- <NuxtLayout>
3
+ <AppHeader />
4
+
5
+ <main>
4
6
  <NuxtPage />
5
- </NuxtLayout>
7
+ </main>
6
8
  </div>
7
9
  </template>
10
+
11
+ <style scoped>
12
+ main {
13
+ display: grid;
14
+ gap: var(--spacer);
15
+ }
16
+ </style>
17
+
@@ -9,22 +9,11 @@
9
9
  </template>
10
10
 
11
11
  <script setup>
12
- // Fetch and update USD price feed
13
- const priceFeed = usePriceFeedStore()
14
- onMounted(() => {
15
- priceFeed.fetchEthUsdPrice()
16
-
17
- setInterval(() => priceFeed.fetchEthUsdPrice(), 60 * 60 * 1000) // once per hour
18
- })
19
12
  </script>
20
13
 
21
14
  <style scoped>
22
15
  main {
23
16
  display: grid;
24
17
  gap: var(--spacer);
25
-
26
- &:not(:has(> .frame-sm)) {
27
- grid-auto-rows: min-content;
28
- }
29
18
  }
30
19
  </style>
@@ -0,0 +1,9 @@
1
+ // Fetch and update USD price feed
2
+ export default defineNuxtPlugin((_) => {
3
+ const priceFeed = usePriceFeedStore()
4
+
5
+ priceFeed.fetchEthUsdPrice()
6
+
7
+ setInterval(() => priceFeed.fetchEthUsdPrice(), 60 * 60 * 1000) // once per hour
8
+ })
9
+
package/nuxt.config.ts CHANGED
@@ -72,16 +72,12 @@ export default defineNuxtConfig({
72
72
  '@vueuse/nuxt',
73
73
  ],
74
74
 
75
- devServer: {
76
- port: 1618,
77
- host: process.env.NUXT_PUBLIC_DOMAIN || 'localhost',
78
- },
79
-
80
75
  vite: {
81
76
  optimizeDeps: {
82
77
  force: true,
83
78
  include: [
84
- '@wagmi/core > eventemitter3'
79
+ '@wagmi/core > eventemitter3',
80
+ 'buffer',
85
81
  ],
86
82
  },
87
83
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visualizevalue/mint-app-base",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "type": "module",
5
5
  "main": "./nuxt.config.ts",
6
6
  "dependencies": {
@@ -8,10 +8,13 @@
8
8
  "@pinia-plugin-persistedstate/nuxt": "^1.2.1",
9
9
  "@pinia/nuxt": "^0.5.3",
10
10
  "@tanstack/vue-query": ">=5.45.0",
11
+ "@types/node": "^22.5.4",
11
12
  "@visualizevalue/mint-utils": "npm:@visualizevalue/mint-utils@^0.0.1",
13
+ "@vue/devtools-api": "^6.6.3",
12
14
  "@vueuse/components": "^10.11.0",
13
15
  "@vueuse/core": "^11.0.3",
14
16
  "@vueuse/nuxt": "^11.0.3",
17
+ "@wagmi/core": "^2.13.5",
15
18
  "@wagmi/vue": "^0.0.40",
16
19
  "buffer": "^6.0.3",
17
20
  "eventemitter3": "^5.0.1",
@@ -21,19 +24,15 @@
21
24
  "postcss-custom-selectors": "^7.1.10",
22
25
  "postcss-nested": "^6.0.1",
23
26
  "postcss-preset-env": "^9.5.13",
27
+ "typescript": "^5.5.4",
24
28
  "viem": "2.x",
29
+ "vite": "^5.4.3",
25
30
  "vue-feather": "^2.0.0",
26
31
  "vue-router": "^4.3.2",
27
32
  "vue-virtual-scroller": "^2.0.0-beta.8"
28
33
  },
29
34
  "devDependencies": {
30
- "@types/node": "^22.5.4",
31
- "@vue/devtools-api": "^6.6.3",
32
- "@wagmi/core": "^2.13.5",
33
- "eventemitter3": "^5.0.1",
34
- "nuxt": "latest",
35
- "typescript": "^5.5.4",
36
- "vite": "^5.4.3"
35
+ "nuxt": "latest"
37
36
  },
38
37
  "scripts": {
39
38
  "build": "nuxt build",