Compare commits
No commits in common. "0814913375db12b4b0a29258b849e5d9c7e31d83" and "22edc5d9b775ca6b5794d01dc8ece9fdf7877b85" have entirely different histories.
0814913375
...
22edc5d9b7
@ -82,11 +82,4 @@
|
|||||||
1767388089- 13:30
|
1767388089- 13:30
|
||||||
1767389489- 0:04
|
1767389489- 0:04
|
||||||
1767389854-280:04
|
1767389854-280:04
|
||||||
1767423731- 15:01
|
1767423731- 6:18
|
||||||
1767425256- 4:41
|
|
||||||
1767427391- 51:16
|
|
||||||
1767432205- 7:35
|
|
||||||
1767447810- 11:06
|
|
||||||
1767449176- 0:51
|
|
||||||
1767451918- 2:19
|
|
||||||
1767453092- 0:30
|
|
||||||
|
|||||||
@ -248,8 +248,10 @@ onUnmounted(() => {
|
|||||||
window.removeEventListener('popstate', handlePopState)
|
window.removeEventListener('popstate', handlePopState)
|
||||||
})
|
})
|
||||||
|
|
||||||
async function logOut() {
|
function logOut() {
|
||||||
await auth.logout()
|
token.value = null
|
||||||
|
auth.user = null
|
||||||
|
router.push({ path: '/login' })
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -1,49 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="space-y-3">
|
|
||||||
<FloatLabel variant="on">
|
|
||||||
<Select v-model="cim.orszag" inputId="orszag" :options="config.countries" option-value="iso_code_2"
|
|
||||||
optionLabel="name" class="w-full" filter resetFilterOnHide resetFilterOnClear autoFilterFocus />
|
|
||||||
<label for="orszag">Ország</label>
|
|
||||||
</FloatLabel>
|
|
||||||
|
|
||||||
<div class="flex gap-2">
|
|
||||||
<FloatLabel variant="on" class="w-1/3">
|
|
||||||
<InputText id="tartozkodasicim" v-model="cim.iranyitoszam" class="w-full" :invalid="!cim.iranyitoszam" />
|
|
||||||
<label for="tartozkodasicim">Irányítószám</label>
|
|
||||||
</FloatLabel>
|
|
||||||
<FloatLabel variant="on" class="w-2/3">
|
|
||||||
<InputText id="tartozkodasicim" v-model="cim.telepules" class="w-full" :invalid="!cim.telepules" />
|
|
||||||
<label for="tartozkodasicim">Település</label>
|
|
||||||
</FloatLabel>
|
|
||||||
</div>
|
|
||||||
<FloatLabel variant="on">
|
|
||||||
<InputText id="tartozkodasicim" v-model="cim.cim" class="w-full" :invalid="!cim.cim" />
|
|
||||||
<label for="tartozkodasicim">Utca (közterület)</label>
|
|
||||||
</FloatLabel>
|
|
||||||
<div class="flex gap-2">
|
|
||||||
<FloatLabel variant="on">
|
|
||||||
<InputText id="tartozkodasicim" v-model="cim.hazszam" class="w-full" :invalid="!cim.hazszam" />
|
|
||||||
<label for="tartozkodasicim">Házszám</label>
|
|
||||||
</FloatLabel>
|
|
||||||
<FloatLabel variant="on">
|
|
||||||
<InputText id="tartozkodasicim" v-model="cim.emajto" class="w-full" />
|
|
||||||
<label for="tartozkodasicim">Emelet/ajtó</label>
|
|
||||||
</FloatLabel>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script lang="ts" setup>
|
|
||||||
const config = useMyConfigStore()
|
|
||||||
const value = defineModel()
|
|
||||||
const cim = ref({
|
|
||||||
iranyitoszam: '',
|
|
||||||
telepules: '',
|
|
||||||
cim: '',
|
|
||||||
hazszam: '',
|
|
||||||
emajto: '',
|
|
||||||
orszag: 'HU'
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss"></style>
|
|
||||||
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "eurocars-rent",
|
"name": "eurocars-rent",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "1.0.7",
|
"version": "1.0.6",
|
||||||
"versionCode": 7,
|
"versionCode": 6,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "nuxt build",
|
"build": "nuxt build",
|
||||||
"dev": "nuxt dev",
|
"dev": "nuxt dev",
|
||||||
|
|||||||
@ -28,9 +28,6 @@ function getMont(date) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
import { Device } from '@capacitor/device';
|
|
||||||
const deviceInfo = await Device.getInfo();
|
|
||||||
const deviceId = await Device.getId();
|
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<AppMenu />
|
<AppMenu />
|
||||||
@ -42,8 +39,6 @@ const deviceId = await Device.getId();
|
|||||||
Jelenleg nincs foglalásod
|
Jelenleg nincs foglalásod
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<pre>{{deviceId}}</pre>
|
|
||||||
<pre>{{deviceInfo}}</pre>
|
|
||||||
|
|
||||||
<div v-for="rent in rentals" class="p-2">
|
<div v-for="rent in rentals" class="p-2">
|
||||||
<div class="p-card border-t border-t-4 border-primary">
|
<div class="p-card border-t border-t-4 border-primary">
|
||||||
|
|||||||
@ -27,7 +27,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
|
||||||
const token = useAuthToken()
|
const token = useAuthToken()
|
||||||
const configStore = useMyConfigStore()
|
const configStore = useMyConfigStore()
|
||||||
const { apiFetch } = useApi()
|
const { apiFetch } = useApi()
|
||||||
@ -38,47 +37,47 @@ const account = ref()
|
|||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
|
||||||
async function sendAccount() {
|
async function sendAccount() {
|
||||||
errorMessage.value = false
|
errorMessage.value = false
|
||||||
successMessage.value = false
|
successMessage.value = false
|
||||||
isLoading.value = true
|
isLoading.value = true
|
||||||
|
|
||||||
const { data } = await apiFetch('/authRequest', {
|
const { data } = await apiFetch('/authRequest', {
|
||||||
method: "post",
|
method: "post",
|
||||||
body: {
|
body: {
|
||||||
account: account.value
|
account: account.value
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
if (data.value?.error) {
|
if (data.value?.error) {
|
||||||
errorMessage.value = data.value.message
|
errorMessage.value = data.value.message
|
||||||
}
|
|
||||||
|
|
||||||
if (data.value?.success) {
|
|
||||||
|
|
||||||
window.localStorage.setItem('codePrefix', data.value.codePrefix)
|
|
||||||
window.localStorage.setItem('codeExpire', data.value.codeExpire)
|
|
||||||
window.localStorage.setItem('account', data.value.account)
|
|
||||||
|
|
||||||
if (data.value?.message) {
|
|
||||||
successMessage.value = data.value.message
|
|
||||||
}
|
}
|
||||||
|
|
||||||
router.push({ path: '/login/code', force: true })
|
if (data.value?.success) {
|
||||||
}
|
|
||||||
|
|
||||||
isLoading.value = false
|
window.localStorage.setItem('codePrefix', data.value.codePrefix)
|
||||||
|
window.localStorage.setItem('codeExpire', data.value.codeExpire)
|
||||||
|
window.localStorage.setItem('account', data.value.account)
|
||||||
|
|
||||||
|
if (data.value?.message) {
|
||||||
|
successMessage.value = data.value.message
|
||||||
|
}
|
||||||
|
|
||||||
|
router.push({ path: '/login/code',force:true })
|
||||||
|
}
|
||||||
|
|
||||||
|
isLoading.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
// Ha már be van jelentkezve, irányítsuk a főoldalra
|
// Ha már be van jelentkezve, irányítsuk a főoldalra
|
||||||
const { loadToken, getToken } = useAuthToken()
|
const { loadToken, getToken } = useAuthToken()
|
||||||
await loadToken()
|
await loadToken()
|
||||||
const token = getToken()
|
const token = getToken()
|
||||||
if (token) {
|
if (token) {
|
||||||
return navigateTo('/')
|
return navigateTo('/')
|
||||||
}
|
}
|
||||||
|
|
||||||
account.value = window.localStorage.getItem('account')
|
account.value = window.localStorage.getItem('account')
|
||||||
})
|
})
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -66,11 +66,6 @@
|
|||||||
<label for="tartozkodasicim">Tartózkodási cím</label>
|
<label for="tartozkodasicim">Tartózkodási cím</label>
|
||||||
</FloatLabel>
|
</FloatLabel>
|
||||||
|
|
||||||
<div>
|
|
||||||
Lakcím:
|
|
||||||
</div>
|
|
||||||
<UserAddress v-model="lakcimData" />
|
|
||||||
|
|
||||||
<Dialog v-model:visible="showDialog" modal :header="dialogType === 'success' ? 'Sikeres' : 'Hiba'" :style="{ width: '20rem' }">
|
<Dialog v-model:visible="showDialog" modal :header="dialogType === 'success' ? 'Sikeres' : 'Hiba'" :style="{ width: '20rem' }">
|
||||||
<div class="flex items-center gap-3">
|
<div class="flex items-center gap-3">
|
||||||
<i :class="dialogType === 'success' ? 'pi pi-check-circle text-green-500' : 'pi pi-times-circle text-red-500'" style="font-size: 2rem"></i>
|
<i :class="dialogType === 'success' ? 'pi pi-check-circle text-green-500' : 'pi pi-times-circle text-red-500'" style="font-size: 2rem"></i>
|
||||||
@ -105,7 +100,7 @@ const showDialog = ref(false)
|
|||||||
const dialogType = ref<'success' | 'error'>('success')
|
const dialogType = ref<'success' | 'error'>('success')
|
||||||
const dialogMessage = ref('')
|
const dialogMessage = ref('')
|
||||||
const dialogErrors = ref()
|
const dialogErrors = ref()
|
||||||
const lakcimData = ref()
|
|
||||||
// Kötelező mezők listája
|
// Kötelező mezők listája
|
||||||
const requiredFields = [
|
const requiredFields = [
|
||||||
'nev',
|
'nev',
|
||||||
|
|||||||
@ -41,10 +41,6 @@ export default defineNuxtPlugin(async (nuxtApp) => {
|
|||||||
placeStore.places = data.value.places
|
placeStore.places = data.value.places
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.value?.countries) {
|
|
||||||
configStore.countries = data.value.countries
|
|
||||||
}
|
|
||||||
|
|
||||||
// Csak natív platformon fut
|
// Csak natív platformon fut
|
||||||
if (!Capacitor.isNativePlatform()) {
|
if (!Capacitor.isNativePlatform()) {
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user