Skip to content

Commit 4b4592c

Browse files
authored
fix: pricing (#30)
1 parent 149fba9 commit 4b4592c

2 files changed

Lines changed: 16 additions & 12 deletions

File tree

src/components/tables/InstancesTable.vue

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@
435435
? 'Automatically renews every week. Great for ongoing projects without long-term commitment. Cancel anytime before renewal.'
436436
: 'Pay once for 1 week, or more, of access. No automatic renewal. Perfect for testing, demos, or short-term projects.'
437437
"
438-
:price="1.50"
438+
:price="2.00"
439439
:min="1"
440440
:max="8"
441441
:step="1"
@@ -450,7 +450,7 @@
450450
? 'Best value for regular use. Renews monthly. Cancel anytime, no questions asked.'
451451
: 'Pay once for 1 month, or more, of access with no recurring charges. Ideal when you need a month of service without ongoing commitment.'
452452
"
453-
:price="5.00"
453+
:price="7.00"
454454
:min="1"
455455
:max="12"
456456
:step="1"
@@ -462,10 +462,10 @@
462462
:subscription="planDialog.subscription"
463463
:caption="
464464
planDialog.subscription
465-
? 'Renews annually. Perfect for businesses and power users.'
466-
: 'Pay once for 365 days of access. Set it and forget it.'
465+
? 'Renews annually. Buy 12 months for the price of 10.'
466+
: 'Buy 12 months for the price of 10. Set it and forget it. '
467467
"
468-
:price="50"
468+
:price="70.00"
469469
:min="1"
470470
:max="5"
471471
:step="1"
@@ -1101,10 +1101,10 @@ export default defineComponent({
11011101
) {
11021102
this.qrCodeDialog.show = false
11031103
this.q.notify({
1104-
message: `Instance ${instance.name} (${instance.id}) extended!`,
1104+
message: `Instance ${instance.id} extended!`,
11051105
color: 'positive'
11061106
})
1107-
await this.checkInstanceProvisioning(updatedInstance)
1107+
await this.checkInstanceProvisioning(updatedInstance.id)
11081108
}
11091109
if (!this.qrCodeDialog.show) {
11101110
await this.refreshState()
@@ -1115,11 +1115,15 @@ export default defineComponent({
11151115
}
11161116
}, 3000)
11171117
},
1118-
async checkInstanceProvisioning(instance) {
1118+
async checkInstanceProvisioning(instanceId) {
11191119
let timeout = 5 * 60 * 1000 // 5 minutes max wait
11201120
this.showProvisioning = true
11211121
const intervalId = setInterval(async () => {
11221122
try {
1123+
const instance = this.data.find(i => i.id === instanceId)
1124+
if (!instance) {
1125+
throw new Error(`Instance ${instanceId} not found`)
1126+
}
11231127
const response = await fetch(
11241128
`https://${instance.name}/static/i18n/en.js`
11251129
)

src/pages/Pricing.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const pricing_data = [
8484
title: 'Weekly',
8585
subtitle: 'Great Start',
8686
description: 'Perfect for testing and short-term projects',
87-
price: 1.50,
87+
price: 2.00,
8888
price_text: 'USD / per week',
8989
price_savings: '',
9090
active: true,
@@ -94,7 +94,7 @@ const pricing_data = [
9494
title: 'Monthly',
9595
subtitle: 'Most Popular',
9696
description: 'Ideal for developers and growing businesses',
97-
price: 5.00,
97+
price: 7.00,
9898
price_text: 'USD / per month',
9999
price_savings: '',
100100
active: true,
@@ -104,8 +104,8 @@ const pricing_data = [
104104
{
105105
title: 'Yearly',
106106
subtitle: 'Best Value',
107-
description: 'For businesses and power users',
108-
price: 50.00,
107+
description: 'Buy 12 months for the price of 10.',
108+
price: 70.00,
109109
price_text: 'USD / per year',
110110
price_savings: '',
111111
active: true,

0 commit comments

Comments
 (0)