@visualizevalue/mint-app-base 0.1.36 → 0.1.38

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.
@@ -56,7 +56,7 @@
56
56
  <input
57
57
  type="number"
58
58
  min="1"
59
- :value="amount"
59
+ :value="mintAmount"
60
60
  @input="amount = $event.target.value"
61
61
  @focus="animate = false"
62
62
  :class="{ animate }"
@@ -84,7 +84,8 @@
84
84
 
85
85
  <script setup>
86
86
  const amount = ref('2')
87
- const ethPercentage = computed(() => (100 / (parseInt(amount.value) + 1)).toFixed(2))
87
+ const mintAmount = computed(() => amount.value ? Math.max(1, parseInt(amount.value)) : 1)
88
+ const ethPercentage = computed(() => (100 / Math.max(1, mintAmount.value + 1)).toFixed(2))
88
89
  const artistPercentage = computed(() => (100 - ethPercentage.value).toFixed(2))
89
90
 
90
91
  const animate = ref(true)
@@ -125,10 +126,6 @@ onMounted(() => {
125
126
  input {
126
127
  border-radius: 0;
127
128
  border: 0;
128
-
129
- &.animate:not(:focus) {
130
- animation: highlight var(--speed-slow) infinite alternate;
131
- }
132
129
  }
133
130
  }
134
131
 
@@ -145,14 +142,5 @@ onMounted(() => {
145
142
  margin-left: auto;
146
143
  }
147
144
  }
148
-
149
- @keyframes highlight {
150
- from {
151
- background: var(--button-background);
152
- }
153
- to {
154
- background: var(--button-background-highlight);
155
- }
156
- }
157
145
  </style>
158
146
 
package/nuxt.config.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { fileURLToPath } from 'url'
2
2
  import { dirname, join } from 'path'
3
- // import { nodePolyfills } from 'vite-plugin-node-polyfills'
4
3
 
5
4
  const currentDir = dirname(fileURLToPath(import.meta.url))
6
5
 
@@ -72,17 +71,6 @@ export default defineNuxtConfig({
72
71
  }
73
72
  },
74
73
 
75
- vite: {
76
- plugins: [
77
- // nodePolyfills({
78
- // globals: {
79
- // Buffer: true,
80
- // global: true,
81
- // }
82
- // })
83
- ],
84
- },
85
-
86
74
  nitro: {
87
75
  preset: 'node-cluster',
88
76
  esbuild: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visualizevalue/mint-app-base",
3
- "version": "0.1.36",
3
+ "version": "0.1.38",
4
4
  "type": "module",
5
5
  "main": "./nuxt.config.ts",
6
6
  "dependencies": {
@@ -21,7 +21,6 @@
21
21
  "postcss-preset-env": "^9.5.13",
22
22
  "viem": "2.x",
23
23
  "vite": "^5.4.3",
24
- "vite-plugin-node-polyfills": "^0.17.0",
25
24
  "vue-virtual-scroller": "^2.0.0-beta.8",
26
25
  "@visualizevalue/mint-utils": "^0.0.2"
27
26
  },