@visualizevalue/mint-app-base 0.1.74 → 0.1.76
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/app.config.ts
CHANGED
|
@@ -4,7 +4,7 @@ export default defineAppConfig({
|
|
|
4
4
|
component: 'P5',
|
|
5
5
|
name: 'P5 Renderer',
|
|
6
6
|
version: 1n,
|
|
7
|
-
address: '
|
|
7
|
+
address: '0x32B8Ffa14e7F77c252b6D43BEC5498FCef2b205F',
|
|
8
8
|
description: 'Allows using P5 scripts as the artifact content'
|
|
9
9
|
},
|
|
10
10
|
],
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<Transition name="fade">
|
|
3
|
+
<aside v-if="! dismissed" class="alert" :class="[type]">
|
|
4
|
+
<button v-if="dismissable" @click="dismiss" class="close">
|
|
5
|
+
<Icon type="close" />
|
|
6
|
+
</button>
|
|
7
|
+
<slot />
|
|
8
|
+
</aside>
|
|
9
|
+
</Transition>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script setup>
|
|
13
|
+
import { useLocalStorage } from '@vueuse/core'
|
|
14
|
+
|
|
15
|
+
const props = defineProps({
|
|
16
|
+
type: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: 'info',
|
|
19
|
+
},
|
|
20
|
+
dismiss: {
|
|
21
|
+
type: String,
|
|
22
|
+
}
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
const dismissKey = computed(() => `alert:${props.dismiss}`)
|
|
26
|
+
|
|
27
|
+
const dismissed = useLocalStorage(dismissKey.value, false)
|
|
28
|
+
const dismissable = computed(() => !! props.dismiss)
|
|
29
|
+
|
|
30
|
+
const dismiss = () => {
|
|
31
|
+
dismissed.value = true
|
|
32
|
+
}
|
|
33
|
+
</script>
|
|
34
|
+
|
|
35
|
+
<style scoped>
|
|
36
|
+
.alert {
|
|
37
|
+
position: relative;
|
|
38
|
+
display: grid;
|
|
39
|
+
gap: var(--spacer-sm);
|
|
40
|
+
|
|
41
|
+
&.info {
|
|
42
|
+
border-color: var(--alert-info-border-color) !important;
|
|
43
|
+
background-color: var(--alert-info-background-color);
|
|
44
|
+
color: var(--alert-info-color);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:deep(> h1) {
|
|
48
|
+
text-transform: uppercase;
|
|
49
|
+
font-weight: bold;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:deep(> h1),
|
|
53
|
+
:deep(> p) {
|
|
54
|
+
font-size: var(--font-sm);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.close {
|
|
58
|
+
position: absolute;
|
|
59
|
+
width: var(--size-5);
|
|
60
|
+
padding: var(--size-1);
|
|
61
|
+
top: var(--spacer-sm);
|
|
62
|
+
right: var(--spacer-sm);
|
|
63
|
+
background: none;
|
|
64
|
+
|
|
65
|
+
&:--highlight {
|
|
66
|
+
background: none;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
</style>
|
|
71
|
+
|
package/locales/en.json
CHANGED
|
@@ -87,12 +87,17 @@
|
|
|
87
87
|
},
|
|
88
88
|
"create": {
|
|
89
89
|
"title": "Create New",
|
|
90
|
+
"alert_new": {
|
|
91
|
+
"title": "Create New Collection",
|
|
92
|
+
"text": "Note this just creates the collection smart contract. You'll be able to mint individual artifacts within the collection after collection deployment."
|
|
93
|
+
},
|
|
90
94
|
"note": {
|
|
91
95
|
"start": "Note: This should be a small file, preferably a simple SVG like",
|
|
92
96
|
"link_text": "this one (273 bytes)",
|
|
93
97
|
"end": "Try to make it less than 10kb."
|
|
94
98
|
},
|
|
95
99
|
"preview": {
|
|
100
|
+
"collection": "Collection",
|
|
96
101
|
"token": "Token",
|
|
97
102
|
"no_description": "No description"
|
|
98
103
|
},
|
package/package.json
CHANGED
package/pages/[id]/create.vue
CHANGED
|
@@ -9,14 +9,19 @@
|
|
|
9
9
|
class="inset"
|
|
10
10
|
>
|
|
11
11
|
|
|
12
|
+
<Alert dismiss="create-new-collection-info">
|
|
13
|
+
<h1>{{ $t('create.alert_new.title') }}</h1>
|
|
14
|
+
<p>{{ $t('create.alert_new.text') }}</p>
|
|
15
|
+
</Alert>
|
|
16
|
+
|
|
12
17
|
<article class="preview">
|
|
13
18
|
<div class="visual">
|
|
14
19
|
<Image v-if="image" :src="image" alt="Preview" />
|
|
15
20
|
<ImagePreview v-else />
|
|
16
21
|
</div>
|
|
17
22
|
<h1>
|
|
18
|
-
<span :class="{ '': !title }">{{ title || $t('create.preview.
|
|
19
|
-
<small :class="{ '': !symbol }">{{ symbol || '$
|
|
23
|
+
<span :class="{ '': !title }">{{ title || $t('create.preview.collection') }}</span>
|
|
24
|
+
<small :class="{ '': !symbol }">{{ symbol || '$SYM' }}</small>
|
|
20
25
|
</h1>
|
|
21
26
|
<p :class="{ '': !description }">
|
|
22
27
|
{{ description || $t('create.preview.no_description') }}
|