@ozdao/prometheus-framework 0.2.321 → 0.2.322
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main.css +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +55 -54
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +56 -55
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconEarn.vue.cjs +62 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconEarn.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconEarn.vue.js +62 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconEarn.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconInfo.vue.cjs +43 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconInfo.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconInfo.vue.js +43 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconInfo.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionEarn.vue.cjs +132 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionEarn.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionEarn.vue.js +132 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionEarn.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionGuide.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionGuide.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +2 -0
- package/dist/prometheus-framework/src/modules/landing/landing.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/landing/landing.client.js +12 -10
- package/dist/prometheus-framework/src/modules/landing/landing.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +606 -589
- package/dist/prometheus-framework/src/modules/pages/pages.client.js +606 -589
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.cjs +81 -35
- package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.js +81 -35
- package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/localization/wallet.json.cjs +0 -6
- package/dist/prometheus-framework/src/modules/wallet/views/localization/wallet.json.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/localization/wallet.json.js +0 -6
- package/dist/prometheus-framework/src/modules/wallet/views/localization/wallet.json.js.map +1 -1
- package/package.json +1 -1
- package/src/modules/community/components/sections/HotPosts.vue +68 -65
- package/src/modules/icons/entities/IconInfo.vue +15 -0
- package/src/modules/landing/components/sections/SectionEarn.vue +56 -54
- package/src/modules/landing/components/sections/SectionGuide.vue +4 -3
- package/src/modules/landing/landing.client.js +2 -0
- package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
- package/src/modules/wallet/views/components/elements/ConnectMetamask.vue +74 -44
- package/src/modules/wallet/views/localization/wallet.json +0 -6
- package/src/styles/base/all.scss +5 -4
- package/src/styles/typography.scss +5 -5
@@ -1,6 +1,7 @@
|
|
1
1
|
// Importing Vue components
|
2
2
|
import MobileApp from './components/sections/MobileApp.vue';
|
3
3
|
import SubscribeNewsletter from './components/sections/SubscribeNewsletter.vue';
|
4
|
+
import SectionEarn from './components/sections/SectionEarn.vue';
|
4
5
|
import SectionFeatures from './components/sections/SectionFeatures.vue';
|
5
6
|
import SectionGuide from './components/sections/SectionGuide.vue';
|
6
7
|
import SectionOverview from './components/sections/SectionOverview.vue';
|
@@ -9,6 +10,7 @@ import FloatingImages from './components/elements/FloatingImages.vue';
|
|
9
10
|
import AnimatedGrid from './components/elements/AnimatedGrid.vue';
|
10
11
|
|
11
12
|
export {
|
13
|
+
SectionEarn,
|
12
14
|
MobileApp,
|
13
15
|
SectionGuide,
|
14
16
|
SectionOverview,
|
@@ -4,38 +4,35 @@
|
|
4
4
|
<button
|
5
5
|
v-if="!isMetaMaskInstalled"
|
6
6
|
@click="connectMetaMask"
|
7
|
-
class="transition-ease-in-out cursor-pointer
|
7
|
+
class="transition-ease-in-out cursor-pointer bg-black radius-big flex-v-center flex-nowrap flex t-left uppercase w-100 pd-small t-white"
|
8
8
|
>
|
9
|
-
<img loading="lazy" :src="
|
10
|
-
<span class="h4 uppercase w-100">{{ t('
|
11
|
-
<IconAdd
|
9
|
+
<img loading="lazy" :src="metamaskIcon" class="mn-r-small i-big">
|
10
|
+
<span class="h4 uppercase w-100">{{ t('connectMetaMask') }}</span>
|
11
|
+
<IconAdd class="t-transp" fill="rgb(var(--white))"/>
|
12
12
|
</button>
|
13
|
-
|
14
13
|
<template v-else>
|
15
14
|
<!-- Switch to Polygon -->
|
16
15
|
<button
|
17
16
|
v-if="!isPolygon"
|
18
17
|
@click="switchToPolygon"
|
19
|
-
class="transition-ease-in-out cursor-pointer hover-bg-white hover-t-black bg-black t-white radius-big flex-v-center flex-nowrap flex t-left uppercase w-100 pd-small
|
18
|
+
class="transition-ease-in-out cursor-pointer hover-bg-white hover-t-black bg-black t-white radius-big flex-v-center flex-nowrap flex t-left uppercase w-100 pd-small"
|
20
19
|
>
|
21
|
-
<img loading="lazy" :src="
|
22
|
-
<span class="h4 uppercase w-100">{{ t('
|
23
|
-
<IconAdd
|
20
|
+
<img loading="lazy" :src="metamaskIcon" class="mn-r-small i-big">
|
21
|
+
<span class="h4 uppercase w-100">{{ t('switchToPolygon') }}</span>
|
22
|
+
<IconAdd class="t-transp" fill="rgb(var(--white))"/>
|
24
23
|
</button>
|
25
|
-
<!-- Add
|
24
|
+
<!-- Add Token to metamask -->
|
26
25
|
<button
|
27
26
|
v-if="isPolygon"
|
28
|
-
@click="
|
29
|
-
class="transition-ease-in-out cursor-pointer hover-bg-white hover-t-black
|
27
|
+
@click="addToken"
|
28
|
+
class="transition-ease-in-out cursor-pointer hover-bg-white hover-t-black bg-black radius-big flex-v-center flex-nowrap flex t-left uppercase w-100 pd-small t-white"
|
30
29
|
>
|
31
|
-
<img loading="lazy" :src="
|
32
|
-
<span class="h4 uppercase w-100">{{ t('
|
33
|
-
<IconAdd
|
30
|
+
<img loading="lazy" :src="metamaskIcon" class="mn-r-small i-big">
|
31
|
+
<span class="h4 uppercase w-100">{{ t('addToken') }}</span>
|
32
|
+
<IconAdd class="hover-fill-black fill-white t-transp"/>
|
34
33
|
</button>
|
35
34
|
</template>
|
36
|
-
|
37
|
-
<!-- <p class="mn-t-small" v-if="error">{{ error }}</p> -->
|
38
|
-
|
35
|
+
<p class="mn-t-small" v-if="error">{{ error }}</p>
|
39
36
|
</div>
|
40
37
|
</template>
|
41
38
|
|
@@ -43,9 +40,47 @@
|
|
43
40
|
import { ref, onMounted, computed } from 'vue';
|
44
41
|
import { useI18n } from 'vue-i18n';
|
45
42
|
|
46
|
-
import
|
47
|
-
|
48
|
-
|
43
|
+
import IconAdd from '@pf/src/modules/icons/navigation/IconAdd.vue';
|
44
|
+
|
45
|
+
const props = defineProps({
|
46
|
+
// Token configuration
|
47
|
+
tokenAddress: {
|
48
|
+
type: String,
|
49
|
+
required: true
|
50
|
+
},
|
51
|
+
tokenSymbol: {
|
52
|
+
type: String,
|
53
|
+
required: true
|
54
|
+
},
|
55
|
+
tokenImage: {
|
56
|
+
type: String,
|
57
|
+
required: true
|
58
|
+
},
|
59
|
+
tokenDecimals: {
|
60
|
+
type: Number,
|
61
|
+
default: 18
|
62
|
+
},
|
63
|
+
// Chain configuration
|
64
|
+
targetChainId: {
|
65
|
+
type: String,
|
66
|
+
default: '0x89' // Polygon Mainnet by default
|
67
|
+
},
|
68
|
+
// UI configuration
|
69
|
+
metamaskIcon: {
|
70
|
+
type: String,
|
71
|
+
default: '/icons/metamask.svg'
|
72
|
+
},
|
73
|
+
content: {
|
74
|
+
type: Object,
|
75
|
+
default: () => ({
|
76
|
+
en: {
|
77
|
+
"connectMetaMask": "Connect MetaMask",
|
78
|
+
"switchToPolygon": "Switch to Polygon",
|
79
|
+
"addToken": `Add token to MetaMask`,
|
80
|
+
}
|
81
|
+
})
|
82
|
+
}
|
83
|
+
});
|
49
84
|
|
50
85
|
const isMetaMaskInstalled = ref(false);
|
51
86
|
const isPolygon = ref(false);
|
@@ -53,18 +88,14 @@ const loading = ref(false);
|
|
53
88
|
const error = ref(null);
|
54
89
|
const buttonStyle = ref({});
|
55
90
|
|
56
|
-
const tokenAddress = '0xE11702CF04621D395E75680C29d3dbF81484e875';
|
57
|
-
const tokenSymbol = 'WDT';
|
58
|
-
const tokenDecimals = 8;
|
59
|
-
const tokenImage = 'https://weeder.delivery/logo-token.png';
|
60
|
-
|
61
91
|
const connectMetaMask = async () => {
|
62
92
|
if (typeof window.ethereum !== 'undefined') {
|
63
93
|
try {
|
64
94
|
await window.ethereum.request({ method: 'eth_requestAccounts' });
|
65
95
|
checkMetaMask();
|
66
|
-
} catch (
|
67
|
-
|
96
|
+
} catch (err) {
|
97
|
+
error.value = err.message;
|
98
|
+
console.error('Error connecting to MetaMask:', err);
|
68
99
|
}
|
69
100
|
} else {
|
70
101
|
window.open('https://metamask.io/', '_blank');
|
@@ -75,7 +106,7 @@ const checkMetaMask = async () => {
|
|
75
106
|
if (typeof window.ethereum !== 'undefined') {
|
76
107
|
isMetaMaskInstalled.value = true;
|
77
108
|
const chainId = await window.ethereum.request({ method: 'eth_chainId' });
|
78
|
-
isPolygon.value = chainId ===
|
109
|
+
isPolygon.value = chainId === props.targetChainId;
|
79
110
|
} else {
|
80
111
|
isMetaMaskInstalled.value = false;
|
81
112
|
}
|
@@ -85,47 +116,46 @@ const switchToPolygon = async () => {
|
|
85
116
|
try {
|
86
117
|
await window.ethereum.request({
|
87
118
|
method: 'wallet_switchEthereumChain',
|
88
|
-
params: [{ chainId:
|
119
|
+
params: [{ chainId: props.targetChainId }],
|
89
120
|
});
|
90
121
|
checkMetaMask();
|
91
|
-
} catch (
|
92
|
-
|
122
|
+
} catch (err) {
|
123
|
+
error.value = err.message;
|
124
|
+
console.error('Error switching to Polygon:', err);
|
93
125
|
}
|
94
126
|
};
|
95
127
|
|
96
|
-
const
|
128
|
+
const addToken = async () => {
|
97
129
|
buttonStyle.value['pointer-events'] = 'none';
|
98
130
|
error.value = null;
|
99
131
|
loading.value = true;
|
100
|
-
|
132
|
+
|
101
133
|
try {
|
102
134
|
await ethereum.request({
|
103
135
|
method: 'wallet_watchAsset',
|
104
136
|
params: {
|
105
137
|
type: 'ERC20',
|
106
138
|
options: {
|
107
|
-
address: tokenAddress,
|
108
|
-
symbol: tokenSymbol,
|
109
|
-
decimals: tokenDecimals,
|
110
|
-
image: tokenImage,
|
139
|
+
address: props.tokenAddress,
|
140
|
+
symbol: props.tokenSymbol,
|
141
|
+
decimals: props.tokenDecimals,
|
142
|
+
image: props.tokenImage,
|
111
143
|
},
|
112
144
|
},
|
113
145
|
});
|
114
|
-
|
115
146
|
buttonStyle.value['background-color'] = '#009911';
|
116
147
|
loading.value = false;
|
117
148
|
} catch (err) {
|
118
|
-
error.value = err.
|
149
|
+
error.value = err.message;
|
150
|
+
loading.value = false;
|
119
151
|
}
|
120
152
|
};
|
121
153
|
|
122
154
|
const { t } = useI18n({
|
123
|
-
|
124
|
-
|
125
|
-
})
|
155
|
+
messages: props.content
|
156
|
+
});
|
126
157
|
|
127
158
|
onMounted(() => {
|
128
159
|
checkMetaMask();
|
129
160
|
});
|
130
|
-
|
131
161
|
</script>
|
@@ -5,9 +5,6 @@
|
|
5
5
|
"title": "Your Wallet",
|
6
6
|
"subtitle": "Earn WDT by purchasing our weed or contributing to the community.",
|
7
7
|
"token": "WDT",
|
8
|
-
"connectMetaMask": "Connect MetaMask",
|
9
|
-
"switchToPolygon": "Switch to Polygon",
|
10
|
-
"addToken": "Add WDT to MetaMask",
|
11
8
|
"pay": "pay",
|
12
9
|
"youReceived": "you received",
|
13
10
|
"enterAmount": "enter amount to top up",
|
@@ -21,9 +18,6 @@
|
|
21
18
|
"wallet": {
|
22
19
|
"title": "Ваш Кошелек",
|
23
20
|
"subtitle": "Зарабатывайте WDT, покупая товары или внося вклад в сообщество.",
|
24
|
-
"connectMetaMask": "Подключить MetaMask",
|
25
|
-
"switchToPolygon": "Переподключиться на Polygon",
|
26
|
-
"addToken": "Добавить WDT в Metamask",
|
27
21
|
"pay": "купить",
|
28
22
|
"youReceived": "вы пополнили на сумму",
|
29
23
|
"enterAmount": "введите сумму для пополнения",
|
package/src/styles/base/all.scss
CHANGED
@@ -182,7 +182,12 @@ body {
|
|
182
182
|
}
|
183
183
|
|
184
184
|
.flex-child {
|
185
|
+
&-none { flex: none; }
|
185
186
|
&-noresize { flex: 0 }
|
187
|
+
&-1 { flex: 1; }
|
188
|
+
&-auto { flex: auto; }
|
189
|
+
&-default { flex: 1 0 auto }
|
190
|
+
&-initial { flex: initial; }
|
186
191
|
&-grow-0 { flex-grow: 0; }
|
187
192
|
&-grow-1 { flex-grow: 1; }
|
188
193
|
&-grow-2 { flex-grow: 2; }
|
@@ -191,10 +196,6 @@ body {
|
|
191
196
|
&-shrink-1 { flex-shrink: 1; }
|
192
197
|
&-basis-auto { flex-basis: auto; }
|
193
198
|
&-basis-0 { flex-basis: 0; }
|
194
|
-
&-1 { flex: 1; }
|
195
|
-
&-auto { flex: auto; }
|
196
|
-
&-initial { flex: initial; }
|
197
|
-
&-none { flex: none; }
|
198
199
|
&-order-0 { order: 0; }
|
199
200
|
&-order-1 { order: 1; }
|
200
201
|
&-order-2 { order: 2; }
|
@@ -12,11 +12,11 @@ body {
|
|
12
12
|
}
|
13
13
|
|
14
14
|
// Font Styles
|
15
|
-
h1,.h1 { font-family: var(--font-main); font-weight: 500; font-size:
|
16
|
-
h2,.h2 { font-family: var(--font-main); font-weight: 500; font-size:
|
17
|
-
h3,.h3 { font-family: var(--font-main); font-weight: 500; font-size: 1.
|
18
|
-
h4,.h4 { font-family: var(--font-main); font-weight: 500; font-size: 1.
|
19
|
-
h5,.h5 { font-family: var(--font-main); font-weight: 500; font-size: 1.
|
15
|
+
h1,.h1 { font-family: var(--font-main); font-weight: 500; font-size: 3.250rem; line-height: 1.000; letter-spacing: -0.05rem; text-transform: none; }
|
16
|
+
h2,.h2 { font-family: var(--font-main); font-weight: 500; font-size: 2.500rem; line-height: 1.000; letter-spacing: -0.05rem; text-transform: none; }
|
17
|
+
h3,.h3 { font-family: var(--font-main); font-weight: 500; font-size: 1.750rem; line-height: 1.000; letter-spacing: -0.05rem; text-transform: none; }
|
18
|
+
h4,.h4 { font-family: var(--font-main); font-weight: 500; font-size: 1.500rem; line-height: 1.250; letter-spacing: +0.0rem; text-transform: none; }
|
19
|
+
h5,.h5 { font-family: var(--font-main); font-weight: 500; font-size: 1.375rem; line-height: 1.250; letter-spacing: -0.0rem; text-transform: none; }
|
20
20
|
|
21
21
|
// Typogragy Styles
|
22
22
|
.p-small { font-family: var(--font-second); font-weight: 400; font-size: 0.75rem; line-height: 1.250; }
|