- Language implementation for oasis

- frontend build
This commit is contained in:
Peter Papp
2021-04-01 11:48:38 +02:00
parent 5d0348e2d0
commit 7cf09494e5
15 changed files with 220 additions and 68 deletions
+3 -3
View File
@@ -1,8 +1,8 @@
<template>
<div id="single-page">
<div id="page-content" class="small-width">
<MobileHeader :title="$router.currentRoute.meta.title"/>
<PageHeader :can-back="true" :title="$router.currentRoute.meta.title"/>
<MobileHeader :title="$t($router.currentRoute.meta.title)"/>
<PageHeader :can-back="true" :title="$t($router.currentRoute.meta.title)"/>
<div class="content-page">
<ValidationObserver @submit.prevent="createUser" ref="createUser" v-slot="{ invalid }" tag="form" class="form block-form">
@@ -63,7 +63,7 @@
<div class="block-wrapper">
<label>{{ $t('admin_page_user.select_role') }}:</label>
<ValidationProvider tag="div" mode="passive" class="input-wrapper" name="permission" rules="required" v-slot="{ errors }">
<SelectInput v-model="user.role" :options="roles" :placeholder="$t('admin_page_user.select_role')" :isError="errors[0]"/>
<SelectInput v-model="user.role" :options="$translateSelectOptions(roles)" :placeholder="$t('admin_page_user.select_role')" :isError="errors[0]"/>
<span class="error-message" v-if="errors[0]">{{ errors[0] }}</span>
</ValidationProvider>
</div>
+2 -2
View File
@@ -1,8 +1,8 @@
<template>
<div id="single-page">
<div id="page-content" class="small-width">
<MobileHeader :title="$router.currentRoute.meta.title" />
<PageHeader :can-back="true" :title="$router.currentRoute.meta.title" />
<MobileHeader :title="$t($router.currentRoute.meta.title)" />
<PageHeader :can-back="true" :title="$t($router.currentRoute.meta.title)" />
<div class="content-page">
<ValidationObserver @submit.prevent="createUser" ref="createUser" v-slot="{ invalid }" tag="form" class="form block-form">
+5 -5
View File
@@ -1,8 +1,8 @@
<template>
<div id="single-page">
<div id="page-content">
<MobileHeader :title="$router.currentRoute.meta.title"/>
<PageHeader :title="$router.currentRoute.meta.title"/>
<MobileHeader :title="$t($router.currentRoute.meta.title)"/>
<PageHeader :title="$t($router.currentRoute.meta.title)"/>
<div class="content-page">
@@ -11,12 +11,12 @@
<div class="buttons">
<router-link :to="{name: 'CreateSubscriptionRequest'}">
<MobileActionButton icon="dollar-sign">
Vytvorit objednavku
{{ $t('oasis.create_order') }}
</MobileActionButton>
</router-link>
<router-link :to="{name: 'UserCreate'}">
<MobileActionButton icon="user-plus">
Vytvorit Uzivatela
{{ $t('oasis.create_user') }}
</MobileActionButton>
</router-link>
</div>
@@ -85,7 +85,7 @@
</div>
</div>
<div id="loader" v-if="isLoading">
<Spinner></Spinner>
<Spinner/>
</div>
</div>
</template>
+2 -2
View File
@@ -17,8 +17,8 @@
<!-- Pay by new credit card -->
<div class="register-card">
<InfoBox v-if="config.isDemo || config.isDev">
<p>For test your payment please use <b>4242 4242 4242 4242</b> or <b>5555 5555 5555 4444</b> as a card number, <b>11/22</b>
as the expiration date and <b>123</b> as CVC number and ZIP <b>12345</b>.</p>
<p>For test your payment please use <b class="text-theme">4242 4242 4242 4242</b> or <b class="text-theme">5555 5555 5555 4444</b> as a card number, <b class="text-theme">11/22</b>
as the expiration date and <b class="text-theme">123</b> as CVC number and ZIP <b class="text-theme">12345</b>.</p>
</InfoBox>
<div ref="stripeCard" class="stripe-card" :class="{'is-error': isError }"></div>
+1 -1
View File
@@ -16,7 +16,7 @@
</div>
</div>
<div id="loader" v-if="isLoading">
<Spinner></Spinner>
<Spinner />
</div>
</div>
</template>
@@ -7,8 +7,8 @@
<img v-if="config.app_logo" class="logo" :src="$getImage(config.app_logo)" :alt="config.app_name">
<b v-if="! config.app_logo" class="auth-logo-text">{{ config.app_name }}</b>
<h1>Oasis Drive</h1>
<h2>Dakujeme, platba bola uspesne zaznamenana. V poslednom kroku si prosim vytvorte heslo pre Vas ucet.</h2>
<h1>{{ config.app_name }}</h1>
<h2>{{ $t('successful_payment_with_password_creation') }}</h2>
</div>
<ValidationObserver @submit.prevent="signUp" ref="setPassword" v-slot="{ invalid }" tag="form"
@@ -41,7 +41,7 @@
</div>
</div>
<div id="loader" v-if="isLoadingPage">
<Spinner></Spinner>
<Spinner />
</div>
</div>
</template>
@@ -7,8 +7,8 @@
<img v-if="config.app_logo" class="logo" :src="$getImage(config.app_logo)" :alt="config.app_name">
<b v-if="! config.app_logo" class="auth-logo-text">{{ config.app_name }}</b>
<h1>Oasis Drive</h1>
<h2>Zaplacenim objednavky se Vas ucet automaticky zaktivuje a vytvori se Vam digitalni prostor pro Vase dulezite dokumenty.</h2>
<h1>{{ config.app_name }}</h1>
<h2>{{ $t('pay_order_description') }}</h2>
</div>
<div class="order">
@@ -19,13 +19,13 @@
<!-- Pay by new credit card -->
<div class="register-card form block-form">
<InfoBox v-if="config.isDemo || config.isDev">
<p>For test your payment please use <b>4242 4242 4242 4242</b> or <b>5555 5555 5555 4444</b> as a card number, <b>11/22</b>
as the expiration date and <b>123</b> as CVC number and ZIP <b>12345</b>.</p>
<p>For test your payment please use <b class="text-theme">4242 4242 4242 4242</b> or <b class="text-theme">5555 5555 5555 4444</b> as a card number, <b class="text-theme">11/22</b>
as the expiration date and <b class="text-theme">123</b> as CVC number and ZIP <b class="text-theme">12345</b>.</p>
</InfoBox>
<div class="block-wrapper">
<label>Platebni karta:</label>
<label>{{ $t('payment_page.payment_gateway') }}:</label>
<div ref="stripeCard" class="stripe-card" :class="{'is-error': isError }"></div>
<div class="card-error-message" v-if="isError">
@@ -35,9 +35,9 @@
<InfoBox v-if="requestedPlan">
<ListInfo class="billing">
<ListInfoItem class="billing-item" title="Spolecnost" :content="requestedPlan.data.relationships.user.data.attributes.name" />
<ListInfoItem v-if="requestedPlan.data.relationships.user.data.attributes.ico" class="billing-item" title="ICO" :content="requestedPlan.data.relationships.user.data.attributes.ico" />
<ListInfoItem class="billing-item" title="Adresa" :content="address" />
<ListInfoItem class="billing-item" :title="$t('payment_page.company')" :content="requestedPlan.data.relationships.user.data.attributes.name" />
<ListInfoItem v-if="requestedPlan.data.relationships.user.data.attributes.ico" class="billing-item" :title="$t('payment_page.ico')" :content="requestedPlan.data.relationships.user.data.attributes.ico" />
<ListInfoItem class="billing-item" :title="$t('payment_page.address')" :content="address" />
</ListInfo>
</InfoBox>
</div>
@@ -102,7 +102,7 @@
</div>
</div>
<div id="loader" v-if="isLoading">
<Spinner></Spinner>
<Spinner/>
</div>
</div>
</template>
@@ -32,6 +32,7 @@
components: {
SortingAndPreviewIcon,
CheckSquareIcon,
DollarSignIcon,
CreditCardIcon,
FolderPlusIcon,
UserPlusIcon,
@@ -17,8 +17,8 @@
<!-- Pay by new credit card -->
<div class="register-card" v-show="! defaultPaymentMethod || payByNewCard">
<InfoBox v-if="config.isDemo || config.isDev">
<p>For test your payment please use <b>4242 4242 4242 4242</b> or <b>5555 5555 5555 4444</b> as a card number, <b>11/22</b>
as the expiration date and <b>123</b> as CVC number and ZIP <b>12345</b>.</p>
<p>For test your payment please use <b class="text-theme">4242 4242 4242 4242</b> or <b class="text-theme">5555 5555 5555 4444</b> as a card number, <b class="text-theme">11/22</b>
as the expiration date and <b class="text-theme">123</b> as CVC number and ZIP <b class="text-theme">12345</b>.</p>
</InfoBox>
<div ref="stripeCard" class="stripe-card" :class="{'is-error': isError }"></div>
@@ -7,8 +7,8 @@
<!-- Register new credit card -->
<div class="register-card">
<InfoBox v-if="config.isDemo || config.isDev">
<p>For test your payment please use <b>4242 4242 4242 4242</b> or <b>5555 5555 5555 4444</b> as a card number, <b>11/22</b>
as the expiration date and <b>123</b> as CVC number and ZIP <b>12345</b>.</p>
<p>For test your payment please use <b class="text-theme">4242 4242 4242 4242</b> or <b class="text-theme">5555 5555 5555 4444</b> as a card number, <b class="text-theme">11/22</b>
as the expiration date and <b class="text-theme">123</b> as CVC number and ZIP <b class="text-theme">12345</b>.</p>
</InfoBox>
<div class="block-wrapper">