Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

Fix prettier

Acho Arnoldf6e5fc898d2a
diff --git a/web/pages/billing/index.vue b/web/pages/billing/index.vue
index 621f261f..039f129f 100644
--- a/web/pages/billing/index.vue
+++ b/web/pages/billing/index.vue
@@ -435,11 +435,11 @@
<v-row>
<v-col cols="12">
<v-text-field
+ v-model="invoiceFormName"
dense
:disabled="loading"
:error="errorMessages.has('name')"
:error-messages="errorMessages.get('name')"
- v-model="invoiceFormName"
label="Name"
placeholder="e.g Acme Corporation"
persistent-placeholder
@@ -448,11 +448,11 @@
</v-col>
<v-col cols="12">
<v-text-field
+ v-model="invoiceFormAddress"
dense
:disabled="loading"
:error="errorMessages.has('address')"
:error-messages="errorMessages.get('address')"
- v-model="invoiceFormAddress"
label="Address"
placeholder="e.g 221B Baker Street"
persistent-placeholder
@@ -463,11 +463,11 @@
<v-row>
<v-col cols="6">
<v-text-field
+ v-model="invoiceFormCity"
dense
:disabled="loading"
:error="errorMessages.has('city')"
:error-messages="errorMessages.get('city')"
- v-model="invoiceFormCity"
label="City"
placeholder="e.g Los Angeles"
persistent-placeholder
@@ -477,11 +477,11 @@
<v-col cols="6">
<v-text-field
v-if="invoiceStateOptions.length === 0"
+ v-model="invoiceFormState"
dense
:disabled="loading"
:error="errorMessages.has('state')"
:error-messages="errorMessages.get('state')"
- v-model="invoiceFormState"
label="State"
placeholder="e.g CA"
persistent-placeholder
@@ -489,11 +489,11 @@
></v-text-field>
<v-autocomplete
v-else
+ v-model="invoiceFormState"
dense
:disabled="loading"
:error="errorMessages.has('state')"
:error-messages="errorMessages.get('state')"
- v-model="invoiceFormState"
:items="invoiceStateOptions"
label="State"
outlined
@@ -505,11 +505,11 @@
<v-row>
<v-col cols="6">
<v-text-field
+ v-model="invoiceFormZipCode"
dense
:disabled="loading"
:error="errorMessages.has('zip_code')"
:error-messages="errorMessages.get('zip_code')"
- v-model="invoiceFormZipCode"
label="Zip Code"
placeholder="e.g 46001"
persistent-placeholder
@@ -518,11 +518,11 @@
</v-col>
<v-col cols="6">
<v-autocomplete
+ v-model="invoiceFormCountry"
dense
:disabled="loading"
:error="errorMessages.has('country')"
:error-messages="errorMessages.get('country')"
- v-model="invoiceFormCountry"
:items="countries"
label="Country"
placeholder="e.g United States"
@@ -534,12 +534,12 @@
<v-row>
<v-col cols="12">
<v-textarea
+ v-model="invoiceFormNotes"
dense
:disabled="loading"
:error="errorMessages.has('notes')"
:error-messages="errorMessages.get('notes')"
rows="3"
- v-model="invoiceFormNotes"
label="Notes (optional)"
placeholder="e.g Thanks for doing business with us!"
persistent-placeholder
@@ -586,11 +586,9 @@ import {
} from '@mdi/js'
import {
RequestsUserPaymentInvoice,
- ResponsesUnprocessableEntity,
ResponsesUserSubscriptionPaymentsResponse,
} from '~/models/api'
-import { ErrorMessages, getErrorMessages } from '~/plugins/errors'
-import { AxiosError } from 'axios'
+import { ErrorMessages } from '~/plugins/errors'
type PaymentPlan = {
name: string
@@ -1115,7 +1113,7 @@ export default Vue.extend({
this.loading = true
this.$store
.dispatch('generateSubscriptionPaymentInvoice', {
- subscriptionInvoiceId: this.selectedPayment?.id!,
+ subscriptionInvoiceId: this.selectedPayment?.id || '',
request: {
name: this.invoiceFormName,
address: this.invoiceFormAddress,
@@ -1133,7 +1131,6 @@ export default Vue.extend({
this.subscriptionInvoiceDialog = false
})
.catch((error: ErrorMessages) => {
- console.log(error)
this.errorMessages = error
})
.finally(() => {
diff --git a/web/pages/index.vue b/web/pages/index.vue
index 0171ce06..f40028cb 100644
--- a/web/pages/index.vue
+++ b/web/pages/index.vue
@@ -682,7 +682,7 @@ Console.WriteLine(await response.Content.ReadAsStringAsync());
tick-size="4"
tick
>
- <template v-slot:thumb-label>
+ <template #thumb-label>
{{ pricingLabels[pricing] }}
</template>
</v-slider>
@@ -951,7 +951,7 @@ Console.WriteLine(await response.Content.ReadAsStringAsync());
<v-expansion-panel>
<v-expansion-panel-header class="text-h6">
Can I install the app on my Iphone?
- <template v-slot:actions>
+ <template #actions>
<v-icon v-if="faqPanel === 0">{{ mdiMinus }}</v-icon>
<v-icon v-else>{{ mdiPlus }}</v-icon>
</template>
@@ -967,7 +967,7 @@ Console.WriteLine(await response.Content.ReadAsStringAsync());
<v-expansion-panel>
<v-expansion-panel-header class="text-h6">
What's the minimum supported Android version?
- <template v-slot:actions>
+ <template #actions>
<v-icon v-if="faqPanel === 1">{{ mdiMinus }}</v-icon>
<v-icon v-else>{{ mdiPlus }}</v-icon>
</template>
@@ -983,7 +983,7 @@ Console.WriteLine(await response.Content.ReadAsStringAsync());
<v-expansion-panel>
<v-expansion-panel-header class="text-h6">
Can I send unlimited number of messages per month?
- <template v-slot:actions>
+ <template #actions>
<v-icon v-if="faqPanel === 2">{{ mdiMinus }}</v-icon>
<v-icon v-else>{{ mdiPlus }}</v-icon>
</template>
@@ -1001,7 +1001,7 @@ Console.WriteLine(await response.Content.ReadAsStringAsync());
<v-expansion-panel>
<v-expansion-panel-header class="text-h6">
Can I change the sender of the SMS message
- <template v-slot:actions>
+ <template #actions>
<v-icon v-if="faqPanel === 3">{{ mdiMinus }}</v-icon>
<v-icon v-else>{{ mdiPlus }}</v-icon>
</template>