feat: add ci cd files dont edit those files
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<client-only>
|
||||
<div class="c-app flex-row align-items-center">
|
||||
<CContainer>
|
||||
<nuxt/>
|
||||
</CContainer>
|
||||
</div>
|
||||
</client-only>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
head() {
|
||||
return {
|
||||
htmlAttrs: {
|
||||
lang: 'fa',
|
||||
dir: 'rtl'
|
||||
},
|
||||
title: 'ورود به پنل کاربری'
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@import '../assets/admin/scss/style.scss';
|
||||
</style>
|
||||
@@ -0,0 +1,56 @@
|
||||
<template>
|
||||
<client-only>
|
||||
<div class="c-app">
|
||||
<TheSidebar/>
|
||||
<CWrapper>
|
||||
<TheHeader/>
|
||||
<div class="c-body">
|
||||
<main class="c-main">
|
||||
<CContainer fluid class="pt-5">
|
||||
<transition name="fade" mode="out-in">
|
||||
<nuxt :key="$route.path"/>
|
||||
</transition>
|
||||
</CContainer>
|
||||
</main>
|
||||
</div>
|
||||
<TheFooter/>
|
||||
</CWrapper>
|
||||
</div>
|
||||
</client-only>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
subHeaderContent: null
|
||||
}
|
||||
},
|
||||
head() {
|
||||
return {
|
||||
htmlAttrs: {
|
||||
lang: 'fa',
|
||||
dir: 'rtl'
|
||||
},
|
||||
title: 'پنل کاربری'
|
||||
}
|
||||
},
|
||||
middleware: ['auth-admin']
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@import '../assets/admin/scss/style.scss';
|
||||
</style>
|
||||
|
||||
<style scoped>
|
||||
.fade-enter-active,
|
||||
.fade-leave-active {
|
||||
transition: opacity 0.3s;
|
||||
}
|
||||
|
||||
.fade-enter,
|
||||
.fade-leave-to {
|
||||
opacity: 0;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,5 @@
|
||||
<template>
|
||||
<div style="height: 100vh;">
|
||||
<Nuxt/>
|
||||
</div>
|
||||
</template>
|
||||
@@ -0,0 +1,80 @@
|
||||
<template>
|
||||
<div class="app-front" :class="$store.state.front.offCanvas ? 'fixedHeight' : null">
|
||||
<PreLoader/>
|
||||
<SiteHeader/>
|
||||
<div class="page">
|
||||
<img class="bannerHeightFix" :src="yearBanner.mainCover" alt="">
|
||||
<Nuxt/>
|
||||
</div>
|
||||
<SiteFooter/>
|
||||
<OffCanvas/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
<script>
|
||||
import FingerprintJS from '@fingerprintjs/fingerprintjs'
|
||||
|
||||
export default {
|
||||
async fetch() {
|
||||
try {
|
||||
const headerMenuData = await this.$axios.get(`/api/public/getMenu?portal=${this.currentPortal}`)
|
||||
const yearBanner = await this.$axios.get(`/api/public/yearBanner`)
|
||||
const counterDown = await this.$axios.get('/api/public/counterDay')
|
||||
this.$store.commit('front/setHeaderData', headerMenuData.data)
|
||||
this.$store.commit('front/setYearBanner', yearBanner.data)
|
||||
this.$store.commit('front/setCounterDown', counterDown.data)
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
// Initialize an agent at application startup.
|
||||
const fpPromise = FingerprintJS.load()
|
||||
|
||||
;(async () => {
|
||||
// Get the visitor identifier when you need it.
|
||||
const fp = await fpPromise
|
||||
const result = await fp.get()
|
||||
|
||||
// This is the visitor identifier:
|
||||
const visitorId = result.visitorId
|
||||
// console.log(visitorId)
|
||||
this.$store.commit('front/setPollToken', visitorId)
|
||||
})()
|
||||
},
|
||||
computed: {
|
||||
yearBanner() {
|
||||
return this.$store.state.front.yearBanner
|
||||
},
|
||||
currentPortal() {
|
||||
return this.$route.params.portal
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
currentPortal(newVal, oldVal) {
|
||||
this.$axios(`/api/public/getMenu?portal=${this.currentPortal}`)
|
||||
.then(res => {
|
||||
this.$store.commit('front/setHeaderData', res.data)
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@import '../node_modules/slick-carousel/slick/slick.css';
|
||||
@import '../node_modules/slick-carousel/slick/slick-theme.css';
|
||||
|
||||
pre{
|
||||
direction: ltr !important;
|
||||
text-align: left;
|
||||
padding: 25px;
|
||||
background: #000;
|
||||
color: greenyellow;
|
||||
font-size: 18px;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,20 @@
|
||||
<template>
|
||||
<div class="error--page" style="height: 100vh;">
|
||||
<div v-if="error.statusCode === 404">
|
||||
<h1>404</h1>
|
||||
<p>صفحه مورد نظر یافت نشد</p>
|
||||
<nuxt-link class="btn bigBtn btn-primary" to="/">صفحه اصلی پورتال</nuxt-link>
|
||||
</div>
|
||||
<div v-else>
|
||||
<h1>{{ error.statusCode }}</h1>
|
||||
<p>{{ error.message }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: ['error'],
|
||||
layout: 'blank'
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user