1
No files matched your search
@@ -0,0 +1,4 @@
|
||||
> 1%
|
||||
last 2 versions
|
||||
not dead
|
||||
not ie 11
|
||||
@@ -0,0 +1,5 @@
|
||||
[*.{js,jsx,ts,tsx,vue}]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
@@ -0,0 +1,7 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
env: {
|
||||
node: true,
|
||||
},
|
||||
extends: ['plugin:vue/vue3-essential', 'eslint:recommended', 'plugin:storybook/recommended'],
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
.DS_Store
|
||||
node_modules
|
||||
/dist
|
||||
|
||||
|
||||
# local env files
|
||||
.env.local
|
||||
.env.*.local
|
||||
|
||||
# Log files
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
|
||||
# Editor directories and files
|
||||
.idea
|
||||
.vscode
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
@@ -0,0 +1,17 @@
|
||||
/** @type { import('@storybook/vue3-vite').StorybookConfig } */
|
||||
const config = {
|
||||
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
|
||||
addons: [
|
||||
"@storybook/addon-links",
|
||||
"@storybook/addon-essentials",
|
||||
"@storybook/addon-interactions",
|
||||
],
|
||||
framework: {
|
||||
name: "@storybook/vue3-vite",
|
||||
options: {},
|
||||
},
|
||||
docs: {
|
||||
autodocs: "tag",
|
||||
},
|
||||
};
|
||||
export default config;
|
||||
@@ -0,0 +1,14 @@
|
||||
/** @type { import('@storybook/vue3').Preview } */
|
||||
const preview = {
|
||||
parameters: {
|
||||
actions: { argTypesRegex: "^on[A-Z].*" },
|
||||
controls: {
|
||||
matchers: {
|
||||
color: /(background|color)$/i,
|
||||
date: /Date$/,
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default preview;
|
||||
@@ -0,0 +1,44 @@
|
||||
# default
|
||||
|
||||
## Project setup
|
||||
|
||||
```
|
||||
# yarn
|
||||
yarn
|
||||
|
||||
# npm
|
||||
npm install
|
||||
|
||||
# pnpm
|
||||
pnpm install
|
||||
```
|
||||
|
||||
### Compiles and hot-reloads for development
|
||||
|
||||
```
|
||||
# yarn
|
||||
yarn dev
|
||||
|
||||
# npm
|
||||
npm run dev
|
||||
|
||||
# pnpm
|
||||
pnpm dev
|
||||
```
|
||||
|
||||
### Compiles and minifies for production
|
||||
|
||||
```
|
||||
# yarn
|
||||
yarn build
|
||||
|
||||
# npm
|
||||
npm run build
|
||||
|
||||
# pnpm
|
||||
pnpm build
|
||||
```
|
||||
|
||||
### Customize configuration
|
||||
|
||||
See [Configuration Reference](https://vitejs.dev/config/).
|
||||
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Портал</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"module": "esnext",
|
||||
"baseUrl": "./",
|
||||
"moduleResolution": "node",
|
||||
"paths": {
|
||||
"@/*": [
|
||||
"src/*"
|
||||
]
|
||||
},
|
||||
"lib": [
|
||||
"esnext",
|
||||
"dom",
|
||||
"dom.iterable",
|
||||
"scripthost"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"name": "front",
|
||||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview",
|
||||
"lint": "eslint . --fix --ignore-path .gitignore",
|
||||
"storybook": "storybook dev -p 6006",
|
||||
"build-storybook": "storybook build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@mdi/font": "7.0.96",
|
||||
"@vuelidate/core": "^2.0.3",
|
||||
"@vuelidate/validators": "^2.0.3",
|
||||
"axios": "^1.4.0",
|
||||
"pinia": "^2.0.23",
|
||||
"roboto-fontface": "*",
|
||||
"vue": "^3.2.0",
|
||||
"vue-jwt-decode": "^0.1.0",
|
||||
"vue-router": "^4.0.0",
|
||||
"vuelidate": "^0.7.7",
|
||||
"vuetify": "^3.0.0",
|
||||
"webfontloader": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-essentials": "^7.3.1",
|
||||
"@storybook/addon-interactions": "^7.3.1",
|
||||
"@storybook/addon-links": "^7.3.1",
|
||||
"@storybook/blocks": "^7.3.1",
|
||||
"@storybook/testing-library": "^0.2.0",
|
||||
"@storybook/vue3": "^7.3.1",
|
||||
"@storybook/vue3-vite": "^7.3.1",
|
||||
"@vitejs/plugin-vue": "^4.0.0",
|
||||
"eslint": "^8.22.0",
|
||||
"eslint-plugin-storybook": "^0.6.13",
|
||||
"eslint-plugin-vue": "^9.3.0",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"storybook": "^7.3.1",
|
||||
"vite": "^4.2.0",
|
||||
"vite-plugin-vuetify": "^1.0.0"
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 15 KiB |
@@ -0,0 +1,44 @@
|
||||
<template>
|
||||
<router-view />
|
||||
</template>
|
||||
|
||||
<script setup >
|
||||
import VueJwtDecode from 'vue-jwt-decode'
|
||||
import {useAccountStore} from '@/store/AccountStore'
|
||||
const accountStore = useAccountStore()
|
||||
const checkuser = ()=>{
|
||||
const token = localStorage.getItem("refresh")
|
||||
|
||||
if(token){
|
||||
const u = VueJwtDecode.decode(token)
|
||||
accountStore.setUser(u.user)
|
||||
}
|
||||
}
|
||||
checkuser()
|
||||
|
||||
|
||||
</script>
|
||||
<style>
|
||||
|
||||
|
||||
::-webkit-scrollbar {
|
||||
width: 1px;
|
||||
height: 6px;
|
||||
}
|
||||
/* Track */
|
||||
::-webkit-scrollbar-track {
|
||||
|
||||
-webkit-border-radius: 6px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
/* Handle */
|
||||
::-webkit-scrollbar-thumb {
|
||||
-webkit-border-radius: 6px;
|
||||
border-radius: 6px;
|
||||
background: rgb(var(--v-theme-scrollbar))
|
||||
|
||||
}
|
||||
::-webkit-scrollbar-thumb:window-inactive {
|
||||
background: rgb(var(--v-theme-scrollbar))
|
||||
}
|
||||
</style>
|
||||
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 3.8 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 8.6 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 596 KiB |
|
After Width: | Height: | Size: 12 KiB |
@@ -0,0 +1,6 @@
|
||||
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M261.126 140.65L164.624 307.732L256.001 466L377.028 256.5L498.001 47H315.192L261.126 140.65Z" fill="#1697F6"/>
|
||||
<path d="M135.027 256.5L141.365 267.518L231.64 111.178L268.731 47H256H14L135.027 256.5Z" fill="#AEDDFF"/>
|
||||
<path d="M315.191 47C360.935 197.446 256 466 256 466L164.624 307.732L315.191 47Z" fill="#1867C0"/>
|
||||
<path d="M268.731 47C76.0026 47 141.366 267.518 141.366 267.518L268.731 47Z" fill="#7BC6FF"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 526 B |
|
After Width: | Height: | Size: 137 KiB |
@@ -0,0 +1,144 @@
|
||||
<template>
|
||||
<v-dialog
|
||||
v-model="menuAuthDialog"
|
||||
persistent
|
||||
width="400"
|
||||
>
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn
|
||||
v-bind="props"
|
||||
append-icon="mdi-login"
|
||||
>
|
||||
<template v-slot:prepend>
|
||||
<v-icon color="white"></v-icon>
|
||||
</template>
|
||||
Войти
|
||||
<template v-slot:append>
|
||||
<v-icon color="white"/>
|
||||
</template>
|
||||
</v-btn>
|
||||
</template>
|
||||
|
||||
<v-card>
|
||||
<v-card-title>
|
||||
<span class="text-h5">Вход в портал</span>
|
||||
</v-card-title>
|
||||
<v-card-text>
|
||||
<v-container>
|
||||
<v-row>
|
||||
<v-col cols="12" class="py-0">
|
||||
<v-text-field
|
||||
v-model="anon.username"
|
||||
label="Логин"
|
||||
variant="underlined"
|
||||
:error-messages="errorer('username')"
|
||||
/>
|
||||
</v-col>
|
||||
<v-col cols="12" class="py-0">
|
||||
<v-text-field
|
||||
v-model="anon.password"
|
||||
label="Пароль"
|
||||
variant="underlined"
|
||||
type="password"
|
||||
:error-messages="errorer('password')"
|
||||
/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-container>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer/>
|
||||
<v-btn
|
||||
color="blue-darken-1"
|
||||
variant="text"
|
||||
@click="menuAuthDialog = false"
|
||||
>
|
||||
Отмена
|
||||
</v-btn>
|
||||
<v-btn
|
||||
color="blue-darken-1"
|
||||
variant="text"
|
||||
@click="logging"
|
||||
>
|
||||
Войти
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
<v-progress-linear v-show="AppStore.loading" indeterminate></v-progress-linear>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {useAccountStore} from '@/store/AccountStore'
|
||||
import {useAppStore} from '@/store/app'
|
||||
import { useVuelidate } from '@vuelidate/core'
|
||||
import { required, helpers } from '@vuelidate/validators'
|
||||
import { ref, reactive, computed, onMounted } from 'vue'
|
||||
|
||||
const req= helpers.withMessage('Обязательное поле', required)
|
||||
|
||||
export default {
|
||||
|
||||
setup(){
|
||||
|
||||
const accountStore = useAccountStore()
|
||||
const AppStore= useAppStore()
|
||||
const menuAuthDialog = ref(false)
|
||||
|
||||
const anon=reactive({
|
||||
username:"9966-00-125",
|
||||
password:""
|
||||
})
|
||||
|
||||
const rules = computed(()=> {
|
||||
return {
|
||||
username: { req, latin: helpers.withMessage(()=> 'Логин имееет вид "0000-00-000"', (value) => /(\d{4,4}[-]\d{2,2}[-]\d{3,3})+$/.test(value.toString()))}, // Matches state.firstName
|
||||
password: { req } // Matches state.lastName
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
const v$ = useVuelidate(rules, anon)
|
||||
|
||||
const errorer = (field) => {
|
||||
let errors = v$.value[field].$error?v$.value[field].$errors[0].$message:''
|
||||
return errors
|
||||
}
|
||||
|
||||
const logging=async()=>{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (!v$.value.$error) {
|
||||
await accountStore.logging(anon)
|
||||
}
|
||||
else {
|
||||
console.log(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
onMounted(() => {
|
||||
v$.value.$validate()
|
||||
})
|
||||
|
||||
return {
|
||||
accountStore,
|
||||
AppStore,
|
||||
menuAuthDialog,
|
||||
anon,
|
||||
v$,
|
||||
logging,
|
||||
errorer,
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,3 @@
|
||||
import myHelper from '@/components/UI/my-helper';
|
||||
|
||||
export default [myHelper]
|
||||
@@ -0,0 +1,62 @@
|
||||
<template>
|
||||
<div class="pa-0 align-self-center">
|
||||
<v-menu
|
||||
v-model="menu"
|
||||
:close-on-content-click="false"
|
||||
:nudge-width="500"
|
||||
offset-x
|
||||
>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<v-icon
|
||||
v-bind="attrs"
|
||||
v-on="on"
|
||||
size="large"
|
||||
color="indigo"
|
||||
icon="mdi-owl"
|
||||
@click="menu=!menu"
|
||||
></v-icon>
|
||||
|
||||
</template>
|
||||
|
||||
<v-card
|
||||
class="h-50 overflow-auto overflow-x-hidden">
|
||||
<v-row class="ma-3">
|
||||
<v-col >
|
||||
|
||||
<pre>
|
||||
{{pretext}}
|
||||
</pre>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
</v-menu>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "myHelper",
|
||||
|
||||
props: {
|
||||
pretext: {
|
||||
type:Object,
|
||||
default:()=>{}
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
data: () => ({
|
||||
fav: true,
|
||||
menu: false,
|
||||
message: false,
|
||||
hints: true,
|
||||
}),
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.whmy {
|
||||
height: 80vh;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,172 @@
|
||||
<template>
|
||||
<v-card class="pt-2">
|
||||
<v-card-title>
|
||||
<span class="text-h5">Обратная связь</span>
|
||||
</v-card-title>
|
||||
|
||||
<v-card-text class="px-2 py-0">
|
||||
<v-container>
|
||||
<v-row>
|
||||
<v-col class="flex-grow-0 py-0 text-no-wrap align-self-center text-button">Оцените сайт
|
||||
<!-- <my-helper
|
||||
:pretext = "result.data"
|
||||
/> -->
|
||||
|
||||
</v-col>
|
||||
<v-divider/>
|
||||
</v-row>
|
||||
<v-row
|
||||
v-for="(x, key) in btns"
|
||||
:key = key
|
||||
>
|
||||
<v-col class="flex-grow-0 pb-0">
|
||||
<v-icon
|
||||
|
||||
size="large"
|
||||
:color="x.color"
|
||||
:icon="x.ico"
|
||||
|
||||
/>
|
||||
</v-col>
|
||||
<v-col class="pb-0" lg=3>
|
||||
|
||||
{{x.name}}
|
||||
</v-col>
|
||||
<v-col class="py-0">
|
||||
<v-rating
|
||||
v-model="x.rating"
|
||||
hover
|
||||
half-increments
|
||||
size="small"
|
||||
color="yellow-darken-3"
|
||||
/>
|
||||
</v-col>
|
||||
<v-divider/>
|
||||
</v-row >
|
||||
<!-- <v-row>
|
||||
<v-divider/>
|
||||
<v-col class="px-3 ">
|
||||
{{myLabel()}}
|
||||
</v-col>
|
||||
<v-divider/>
|
||||
</v-row> -->
|
||||
|
||||
<v-row class="mt-6">
|
||||
<v-col class="pa-0 px-3">
|
||||
<v-textarea
|
||||
label="Ваши комментарии сделают портал лучше"
|
||||
hide-details
|
||||
variant="outlined"
|
||||
rows="5"
|
||||
row-height="15"
|
||||
v-model="comment"
|
||||
/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-container>
|
||||
<!-- <small>вы оценили сайт на <pre>{{ rating }}</pre></small> -->
|
||||
</v-card-text>
|
||||
<v-card-actions class="pt-0">
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn
|
||||
color="blue-darken-1"
|
||||
variant="text"
|
||||
@click="menusCloses"
|
||||
>
|
||||
Закрыть
|
||||
|
||||
|
||||
</v-btn>
|
||||
<v-btn
|
||||
color="blue-darken-1"
|
||||
variant="text"
|
||||
@click="feedAll"
|
||||
|
||||
>
|
||||
Отправить
|
||||
</v-btn>
|
||||
|
||||
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref, onMounted, computed } from 'vue'
|
||||
import { axiosApiInstance } from '@/utils/axios-api'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
LikeDialog: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
|
||||
setup(props, context) {
|
||||
const comment = ref("")
|
||||
const btns = ref([])
|
||||
|
||||
onMounted(() => {
|
||||
axiosApiInstance.get('api/feedback/formfeed/')
|
||||
.then(data => btns.value = data.data)
|
||||
})
|
||||
|
||||
const ratingStatus = computed(() => {
|
||||
const decFeed = []
|
||||
btns.value.map(e =>
|
||||
{
|
||||
const { id, rating } = {...e}
|
||||
decFeed.push({id:id, rating:rating})
|
||||
});
|
||||
return { decFeed }
|
||||
});
|
||||
|
||||
function feedAll() {
|
||||
const feedObj = {}
|
||||
feedObj.ratingstatus = ratingStatus.value.decFeed
|
||||
feedObj.usercomment = comment.value
|
||||
axiosApiInstance.post('api/feedback/comment/', feedObj)
|
||||
}
|
||||
|
||||
function menusCloses() {
|
||||
context.emit('menusClose')
|
||||
}
|
||||
|
||||
return {btns, comment, feedAll, menusCloses}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
// function myLabel() {
|
||||
// let labels = ''
|
||||
// if (rating.value <= 1)
|
||||
// labels = 'Мы обязательно все исправим, с учего начать в первую очередь?'
|
||||
// if (rating.value > 1 && rating.value <= 2)
|
||||
// labels = 'УПС-С! А что вам не поравилось?'
|
||||
// if (rating.value > 2 && rating.value <= 3)
|
||||
// labels = 'Спасибо за обратную связь, что нам стоит улучшить?'
|
||||
// if (rating.value > 3 && rating.value <= 4)
|
||||
// labels = 'Мы рады, что портал вам понравился,скажите, за что вы поставили такую оценку?'
|
||||
// if (rating.value > 4 && rating.value <= 5)
|
||||
// labels = 'Класс, а что нам удалось сделать лучше всего?'
|
||||
|
||||
// return labels
|
||||
// }
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.custom_subtitle {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.v-selection-control__input {
|
||||
width: 46%!important;
|
||||
height: 46%!important;
|
||||
|
||||
border-radius: 0!important;
|
||||
}
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,147 @@
|
||||
<template>
|
||||
<v-card>
|
||||
<v-card-title>
|
||||
<span class="text-h5">Карточка пользователя</span>
|
||||
</v-card-title>
|
||||
<v-card-text class="flex-column d-flex pb-0">
|
||||
<v-row class="flex-grow-0">
|
||||
<v-divider/>
|
||||
<v-col
|
||||
class="pa-0"
|
||||
lg=4
|
||||
>
|
||||
<v-img
|
||||
class="h-100"
|
||||
cover
|
||||
:src="accountStore.user.photo"
|
||||
/>
|
||||
</v-col>
|
||||
<v-col class="pa-0">
|
||||
<v-list class="pt-0 custom_subtitle">
|
||||
<v-list-item
|
||||
v-for="n in basicInformation()"
|
||||
:key="n"
|
||||
>
|
||||
<template #title>
|
||||
<span class="font-weight-medium">
|
||||
{{n.title}}
|
||||
</span>
|
||||
</template>
|
||||
<template #subtitle>
|
||||
<span class="text-subtitle-1">
|
||||
{{n.info}}
|
||||
</span>
|
||||
</template>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-col>
|
||||
<v-divider/>
|
||||
</v-row>
|
||||
|
||||
<v-row class="flex-grow-0">
|
||||
|
||||
<v-list class="pa-0 pt-3 custom_subtitle">
|
||||
<v-list-item
|
||||
v-for="n in subInformation()"
|
||||
:key="n"
|
||||
class="py-0"
|
||||
density
|
||||
>
|
||||
<template #title>
|
||||
<span class="font-weight-medium">
|
||||
{{n.title}}
|
||||
</span>
|
||||
|
||||
<span class="text-subtitle-1">
|
||||
{{n.info}}
|
||||
</span>
|
||||
</template>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-row>
|
||||
|
||||
</v-card-text>
|
||||
|
||||
<v-card-actions class="align-self-end pt-0">
|
||||
<v-btn
|
||||
color="blue-darken-1"
|
||||
variant="text"
|
||||
@click="menusCloses"
|
||||
>
|
||||
Отмена
|
||||
</v-btn>
|
||||
|
||||
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
import { clearAxios } from '@/utils/axios-api'
|
||||
import { ref, onMounted } from 'vue'
|
||||
import {useAccountStore} from '@/store/AccountStore'
|
||||
|
||||
export default {
|
||||
|
||||
props: {
|
||||
menuGetUserDialog: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
|
||||
loging: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
setup(props, context) {
|
||||
|
||||
const accountStore = useAccountStore()
|
||||
const userlinks = ref([])
|
||||
|
||||
const loadlinksUser=async()=>{
|
||||
// console.log(`accountStore`, accountStore);
|
||||
const res = await clearAxios.get('api/accounts/getuser/?userlogin='+props.loging)
|
||||
userlinks.value=res.data
|
||||
}
|
||||
|
||||
const basicInformation = () => [
|
||||
{title: 'Отдел:', info: userlinks.value.department},
|
||||
{title: 'ФИО:', info: userlinks.value.fio},
|
||||
{title: 'Должность:', info: userlinks.value.post},
|
||||
]
|
||||
|
||||
const subInformation = () => [
|
||||
{title: 'E-mail: ', info: userlinks.value.email},
|
||||
{title: 'Телефон: ', info: userlinks.value.tel},
|
||||
{title: 'Комната: ', info: userlinks.value.room},
|
||||
{title: 'Логин: ', info: userlinks.value.login},
|
||||
]
|
||||
|
||||
function menusCloses() {
|
||||
context.emit('menusClose')
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
loadlinksUser()
|
||||
})
|
||||
|
||||
return {
|
||||
menusCloses,
|
||||
userlinks,
|
||||
accountStore,
|
||||
basicInformation,
|
||||
subInformation
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.custom_subtitle .v-list-item-subtitle {
|
||||
opacity: 1!important;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,91 @@
|
||||
<template>
|
||||
|
||||
<v-carousel
|
||||
cover
|
||||
height="500"
|
||||
hide-delimiters
|
||||
hide-delimiter-background
|
||||
show-arrows="hover"
|
||||
color="white"
|
||||
|
||||
|
||||
|
||||
>
|
||||
|
||||
|
||||
<v-carousel-item
|
||||
v-for="(x, i) in carous" :key="i"
|
||||
|
||||
:src="`${burl}${x.link}`"
|
||||
cover
|
||||
eager
|
||||
>
|
||||
|
||||
|
||||
<v-container
|
||||
fill-height
|
||||
fluid
|
||||
pa-0 ma-0 pb-3
|
||||
class="flex-column h-100 d-flex"
|
||||
>
|
||||
<v-card class="bgCard h-100 d-flex flex-column">
|
||||
<v-card-title class="ma-2 text-h3 text-uppercase titles text-text_carous py-6">
|
||||
{{x.title}}
|
||||
</v-card-title>
|
||||
<v-card-text class="ml-2 mb-2 text-black w-50 flex-grow-0 py-3 text-text_carous text-h5 bgText overflow-auto font-weight-medium">
|
||||
|
||||
{{x.text}}
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
|
||||
|
||||
</v-container>
|
||||
|
||||
</v-carousel-item>
|
||||
|
||||
</v-carousel>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref } from 'vue'
|
||||
import {getfromserverfree} from '@/utils/universal_functions'
|
||||
import { baseURL } from '@/utils/axios-api'
|
||||
|
||||
|
||||
|
||||
|
||||
export default {
|
||||
|
||||
setup() {
|
||||
const burl = baseURL.slice(0,-1)
|
||||
const carous=ref([{link: ""}])
|
||||
|
||||
|
||||
getfromserverfree("api/navigation/carousels/", carous)
|
||||
|
||||
|
||||
|
||||
return { burl, carous}
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.bgCard {
|
||||
/* #ffffff6b #ffffff8c*/
|
||||
background: #ffffff38 ;
|
||||
}
|
||||
|
||||
.bgText {
|
||||
background: #ffffffb0;
|
||||
line-height: 3.0rem!important;
|
||||
|
||||
}
|
||||
|
||||
.titles {
|
||||
font-family: cursive !important;
|
||||
background: #ffffff8c;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,97 @@
|
||||
<template>
|
||||
<v-card class="d-flex ml-3">
|
||||
<v-sheet
|
||||
class="mx-auto"
|
||||
elevation="0"
|
||||
max-width="690"
|
||||
|
||||
>
|
||||
<v-slide-group
|
||||
v-model="model"
|
||||
class="pa-0"
|
||||
selected-class="bg-primary"
|
||||
mandatory
|
||||
show-arrows
|
||||
|
||||
>
|
||||
|
||||
<v-slide-group-item
|
||||
v-for="n in digitalData"
|
||||
:key="n"
|
||||
|
||||
>
|
||||
|
||||
|
||||
<v-card
|
||||
|
||||
class="ma-2 mt-4 d-flex flex-column"
|
||||
height="160"
|
||||
width="179"
|
||||
elevation="0"
|
||||
|
||||
>
|
||||
<v-img
|
||||
height="200"
|
||||
:src="`${burl}${n.img}`"
|
||||
cover
|
||||
class="text-white"
|
||||
>
|
||||
<v-card class="h-100 text-center g text-numeral">
|
||||
<v-card-title class="statstyle my-2 py-0 text-overline font-weight-bold">
|
||||
{{n.status}}
|
||||
</v-card-title>
|
||||
<v-card-text class="numstyle mt-4 py-0 font-weight-bold">
|
||||
{{n.num}}
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
|
||||
</v-img>
|
||||
</v-card>
|
||||
|
||||
|
||||
</v-slide-group-item>
|
||||
</v-slide-group>
|
||||
</v-sheet>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref } from 'vue'
|
||||
import { baseURL } from '@/utils/axios-api'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
digitalData: {
|
||||
type: Object,
|
||||
default: {}
|
||||
}
|
||||
},
|
||||
|
||||
setup() {
|
||||
const burl = baseURL.slice(0,-1)
|
||||
const model = ref(false)
|
||||
|
||||
|
||||
return {model, burl}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.numstyle {
|
||||
font-size: 3.875rem!important;
|
||||
line-height: 5.25rem!important;
|
||||
font-family: cursive !important;
|
||||
background: #ffffffb0;
|
||||
}
|
||||
|
||||
.statstyle {
|
||||
background: #ffffffb0;
|
||||
font-size: 1rem!important;
|
||||
}
|
||||
|
||||
.g {
|
||||
/* background-color: rgb(240 248 255 / 35%);; */
|
||||
background-color: rgb(255 255 255);;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,98 @@
|
||||
<template>
|
||||
<v-container class="py-1 newsVH bg-transparent overflow-auto">
|
||||
<v-card
|
||||
class="mx-auto mb-0 "
|
||||
v-for="(x, i) in newss" :key= i
|
||||
>
|
||||
<v-img
|
||||
:src="`${burl}${x.link}`"
|
||||
height="164px"
|
||||
cover
|
||||
/>
|
||||
|
||||
<v-card-title>
|
||||
{{x.title}}
|
||||
</v-card-title>
|
||||
|
||||
<v-card-subtitle>
|
||||
{{limitText(x.text)}}
|
||||
</v-card-subtitle>
|
||||
|
||||
<v-card-actions>
|
||||
<v-btn
|
||||
color="teal-accent-4"
|
||||
variant="text"
|
||||
>
|
||||
{{x.author.fio}}
|
||||
|
||||
</v-btn>
|
||||
|
||||
<v-spacer></v-spacer>
|
||||
|
||||
<v-btn
|
||||
:icon="x.show ? 'mdi-chevron-up' : 'mdi-chevron-down'"
|
||||
@click="x.show = !x.show"
|
||||
></v-btn>
|
||||
</v-card-actions>
|
||||
|
||||
<v-expand-transition>
|
||||
<div v-show="x.show">
|
||||
<v-divider></v-divider>
|
||||
|
||||
<v-card-text>
|
||||
{{x.text}}
|
||||
</v-card-text>
|
||||
</div>
|
||||
</v-expand-transition>
|
||||
</v-card>
|
||||
|
||||
</v-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
import { ref,computed,watch } from 'vue'
|
||||
import {useAccountStore} from '@/store/AccountStore'
|
||||
import {getfromserver} from '@/utils/universal_functions'
|
||||
import { baseURL } from '@/utils/axios-api'
|
||||
|
||||
const accountStore = useAccountStore()
|
||||
|
||||
export default {
|
||||
|
||||
setup(){
|
||||
|
||||
const newss=ref([])
|
||||
const show=ref(false)
|
||||
|
||||
const burl = baseURL.slice(0,-1)
|
||||
|
||||
const limitText=(text)=> {
|
||||
return text.split(' ').slice(0, 10).join(' ')
|
||||
}
|
||||
|
||||
|
||||
getfromserver("api/navigation/news/", newss)
|
||||
|
||||
watch(()=>accountStore.cod2user ,(newValue,oldValue)=>{
|
||||
if(newValue){
|
||||
getfromserver("api/navigation/news/",newss)
|
||||
}
|
||||
}, {deep:true})
|
||||
|
||||
|
||||
return {
|
||||
newss,
|
||||
show,
|
||||
burl,
|
||||
limitText
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.newsVH {
|
||||
height: 93vh;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,82 @@
|
||||
<template>
|
||||
<div>
|
||||
<v-list-item v-for="x in onlineuser"
|
||||
:key="x"
|
||||
:prepend-avatar="checkremote( `${spravURL}${x}.jpg`)"
|
||||
title="x"
|
||||
nav
|
||||
@click="whatuser(x)"
|
||||
>
|
||||
<v-dialog
|
||||
v-model="menuGetUserDialog"
|
||||
persistent
|
||||
width="600"
|
||||
>
|
||||
<Card-users
|
||||
:menuGetUserDialog="menuGetUserDialog"
|
||||
:loging="loging"
|
||||
@menusClose="menuGetUserDialog=false"
|
||||
/>
|
||||
|
||||
|
||||
</v-dialog>
|
||||
</v-list-item>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref,watch } from 'vue'
|
||||
import { baseWS } from '@/utils/axios-api'
|
||||
import {useAccountStore} from '@/store/AccountStore'
|
||||
import { spravURL } from '@/utils/axios-api'
|
||||
import {checkremote} from '@/utils/universal_functions'
|
||||
import CardUsers from '@/components/cardUsers.vue'
|
||||
|
||||
export default {
|
||||
components: { CardUsers},
|
||||
|
||||
setup(){
|
||||
const loging = ref('')
|
||||
const menuGetUserDialog=ref(false)
|
||||
const wsfuncs={onliner:function(data){
|
||||
// console.log(onlineuser)
|
||||
let newset = new Set(data)
|
||||
onlineuser.value = Array.from(newset)
|
||||
// console.log(onlineuser)
|
||||
|
||||
}}
|
||||
const accountStore = useAccountStore()
|
||||
let onlineuser= ref(['ds'])
|
||||
|
||||
const connect = new WebSocket(baseWS+"ws/watcher/?token="+localStorage.access)
|
||||
|
||||
const whatuser=(x)=> {
|
||||
loging.value = x
|
||||
menuGetUserDialog.value=true
|
||||
|
||||
}
|
||||
|
||||
connect.onmessage=(e)=>{
|
||||
let data = JSON.parse(e.data)
|
||||
wsfuncs[data['message']['action']](data.message.data)
|
||||
}
|
||||
|
||||
watch(()=>accountStore.cod2user,function(){
|
||||
// console.log('newValue')
|
||||
if (!accountStore.cod2user.value){
|
||||
connect.close()
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
return {loging, menuGetUserDialog, onlineuser, checkremote,spravURL, whatuser}
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,380 @@
|
||||
|
||||
<template>
|
||||
<v-app>
|
||||
<v-app-bar
|
||||
:elevation="2"
|
||||
density="compact"
|
||||
color="teal-darken-4"
|
||||
>
|
||||
<v-app-bar-nav-icon
|
||||
@click="drawer = !drawer"
|
||||
>
|
||||
<img
|
||||
style="cursor:pointer"
|
||||
:src="imageSrc"
|
||||
/>
|
||||
</v-app-bar-nav-icon>
|
||||
<v-toolbar-title>
|
||||
Портал МиФНС по ЦОД № 2
|
||||
</v-toolbar-title>
|
||||
<template v-slot:image>
|
||||
<v-img
|
||||
gradient="to top right, rgba(19,84,122,.8), rgba(128,208,199,.8)"
|
||||
/>
|
||||
</template>
|
||||
<template v-slot:append>
|
||||
<template v-if="accountStore.cod2user">
|
||||
<v-card
|
||||
border
|
||||
class="bg-transparent"
|
||||
density="compact"
|
||||
:prepend-avatar="accountStore.user.photo"
|
||||
:title="accountStore.user.fio"
|
||||
:subtitle="accountStore.user.post"
|
||||
variant="text"
|
||||
@click="getcard"
|
||||
/>
|
||||
|
||||
|
||||
<v-dialog
|
||||
v-model="menuGetUserDialog"
|
||||
persistent
|
||||
width="600"
|
||||
>
|
||||
<Card-users
|
||||
:menuGetUserDialog="menuGetUserDialog"
|
||||
:loging="accountStore.user.login"
|
||||
@menusClose="menuGetUserDialog=false"
|
||||
/>
|
||||
|
||||
|
||||
</v-dialog>
|
||||
|
||||
|
||||
<v-tooltip location="bottom">
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn
|
||||
v-bind="props"
|
||||
dark
|
||||
to="/faq"
|
||||
icon="mdi-comment-question-outline"
|
||||
/>
|
||||
</template>
|
||||
<span>F.A.Q.</span>
|
||||
</v-tooltip>
|
||||
|
||||
<v-dialog
|
||||
v-model="LikeDialog"
|
||||
persistent
|
||||
width="800"
|
||||
>
|
||||
<template v-slot:activator="{ props }">
|
||||
|
||||
<v-btn
|
||||
v-bind="props"
|
||||
dark
|
||||
|
||||
icon="mdi-thumb-up-outline"
|
||||
/>
|
||||
</template>
|
||||
|
||||
|
||||
<Card-like
|
||||
:LikeDialog="LikeDialog"
|
||||
@menusClose="LikeDialog=false"
|
||||
/>
|
||||
</v-dialog>
|
||||
|
||||
|
||||
<v-btn
|
||||
icon
|
||||
@click="toggleTheme"
|
||||
>
|
||||
<v-icon
|
||||
class="mr-1"
|
||||
color="lampa"
|
||||
>
|
||||
mdi-lightbulb-outline
|
||||
</v-icon>
|
||||
</v-btn>
|
||||
<v-btn dark icon="mdi-magnify"/>
|
||||
<v-btn
|
||||
dark
|
||||
icon="mdi-account-multiple-outline"
|
||||
@click="drawer_right=!drawer_right"
|
||||
/>
|
||||
<v-btn
|
||||
dark
|
||||
icon="mdi-logout"
|
||||
@click="accountStore.logout"
|
||||
/>
|
||||
</template>
|
||||
|
||||
|
||||
<template v-else>
|
||||
|
||||
|
||||
<v-row justify="center">
|
||||
<Auth-form/>
|
||||
</v-row>
|
||||
|
||||
|
||||
</template>
|
||||
</template>
|
||||
</v-app-bar>
|
||||
<v-navigation-drawer v-model="drawer">
|
||||
|
||||
<v-divider/>
|
||||
<v-list
|
||||
nav
|
||||
density="compact"
|
||||
>
|
||||
<template v-for="(x, key) in navigations">
|
||||
<v-list-item
|
||||
v-if="!('submenu' in x)"
|
||||
:key="x.name"
|
||||
:title="x.name"
|
||||
:value="x.name"
|
||||
:href="x.link"
|
||||
:to="x.path"
|
||||
color="navigation"
|
||||
|
||||
|
||||
>
|
||||
<template v-slot:prepend>
|
||||
<v-icon
|
||||
|
||||
:icon="x.ico"
|
||||
/>
|
||||
</template>
|
||||
</v-list-item>
|
||||
<v-list-group
|
||||
v-else
|
||||
:key="key"
|
||||
:value="x.name"
|
||||
|
||||
|
||||
>
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-list-item
|
||||
v-bind="props"
|
||||
:title="x.name"
|
||||
:prepend-icon="x.ico"
|
||||
/>
|
||||
</template>
|
||||
<v-list-item
|
||||
v-for="(child, k) in x.submenu"
|
||||
|
||||
:href="child.link"
|
||||
:key="k"
|
||||
:value="child.name"
|
||||
:title="child.name"
|
||||
:to="child.path"
|
||||
/>
|
||||
</v-list-group>
|
||||
</template>
|
||||
</v-list>
|
||||
<v-list
|
||||
|
||||
nav
|
||||
density="compact"
|
||||
>
|
||||
|
||||
<v-list-item v-for="x of mainmenuStore.portallinks"
|
||||
:key="x.name"
|
||||
:title="x.name"
|
||||
:value="x.name"
|
||||
:href="x.link"
|
||||
color="teal-darken-4"
|
||||
|
||||
>
|
||||
<template v-slot:prepend>
|
||||
<v-icon
|
||||
|
||||
:icon="x.imagecode"
|
||||
/>
|
||||
</template>
|
||||
</v-list-item>
|
||||
|
||||
</v-list>
|
||||
|
||||
</v-navigation-drawer>
|
||||
<v-main class="d-flex bg-main_theme">
|
||||
|
||||
<router-view
|
||||
/>
|
||||
<div class="mystat d-flex flex-column">
|
||||
<v-btn
|
||||
class="mb-1"
|
||||
prepend-icon="mdi-wikipedia"
|
||||
size="small"
|
||||
variant="outlined"
|
||||
height="30"
|
||||
>
|
||||
Wiki
|
||||
</v-btn>
|
||||
<v-btn
|
||||
height="30"
|
||||
prepend-icon="mdi-apple-finder"
|
||||
size="small"
|
||||
variant="outlined"
|
||||
>
|
||||
МС
|
||||
</v-btn>
|
||||
</div>
|
||||
</v-main>
|
||||
<v-navigation-drawer
|
||||
v-if="accountStore.cod2user"
|
||||
v-model="drawer_right"
|
||||
rail
|
||||
permanent
|
||||
location="right"
|
||||
@click="rail = false"
|
||||
>
|
||||
|
||||
<Online-users/>
|
||||
|
||||
<!-- <template v-slot:append>
|
||||
<v-list lines="one">
|
||||
<v-list-item
|
||||
v-for="(val,key) in appStore.countvisitor"
|
||||
:key="key"
|
||||
:title="val"
|
||||
|
||||
></v-list-item>
|
||||
</v-list> -->
|
||||
|
||||
<!-- </template> -->
|
||||
|
||||
</v-navigation-drawer>
|
||||
|
||||
</v-app>
|
||||
|
||||
</template>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
import { ref,computed } from 'vue'
|
||||
import uf from '@/utils/universal_functions'
|
||||
import {useAccountStore} from '@/store/AccountStore'
|
||||
import {useMainmenuStore} from '@/store/MainmenuStore'
|
||||
import {useAppStore} from '@/store/app'
|
||||
import { useTheme } from "vuetify";
|
||||
import AuthForm from '@/components/UI/Auth-form.vue'
|
||||
import OnlineUsers from '@/components/onlineUsers.vue'
|
||||
import CardUsers from '@/components/cardUsers.vue'
|
||||
import CardLike from '@/components/cardLike.vue'
|
||||
export default {
|
||||
|
||||
components: { AuthForm, OnlineUsers, CardUsers, CardLike},
|
||||
|
||||
mixins:[uf],
|
||||
|
||||
setup(){
|
||||
const appStore = useAppStore()
|
||||
const theme = useTheme();
|
||||
const mainmenuStore= useMainmenuStore()
|
||||
const accountStore = useAccountStore()
|
||||
const drawer = ref(true)
|
||||
const drawer_right=ref(true)
|
||||
const menuGetUserDialog=ref(false)
|
||||
const LikeDialog=ref(false)
|
||||
|
||||
const toggleTheme = () => {
|
||||
theme.global.name.value = theme.global.current.value.dark ? 'light' : 'dark'
|
||||
}
|
||||
|
||||
mainmenuStore.loadlinks()
|
||||
|
||||
const navigations = [
|
||||
{
|
||||
name: 'Главная',
|
||||
ico: 'mdi-home',
|
||||
path: "/home"
|
||||
},
|
||||
{
|
||||
name: 'Структура',
|
||||
ico: 'mdi-source-branch',
|
||||
path: "/structure"
|
||||
},
|
||||
{
|
||||
name: 'Сотрудники',
|
||||
ico: 'mdi-account-multiple-outline',
|
||||
submenu:[
|
||||
{
|
||||
name: 'Справочник',
|
||||
link: 'http://10.252.44.33/accounting6/members.php'
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'Деятельность',
|
||||
ico: 'mdi-bulletin-board',
|
||||
submenu:[
|
||||
{
|
||||
name: 'Обеспечивающая',
|
||||
path:"/providing"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'Безопасность',
|
||||
ico: 'mdi-routes',
|
||||
path:"/securyty"
|
||||
},
|
||||
{
|
||||
name: 'О портале',
|
||||
ico: 'mdi-information-variant',
|
||||
path:"/portal"
|
||||
},
|
||||
{
|
||||
name: 'Об инспекции',
|
||||
ico: 'mdi-city',
|
||||
path:"/inspection"
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
|
||||
|
||||
const imageSrc=computed(()=> {
|
||||
return new URL(`@/assets/FNS-logo-xs.png`, import.meta.url).href;
|
||||
})
|
||||
|
||||
const getcard = async() => {
|
||||
menuGetUserDialog.value = true
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return {
|
||||
theme,
|
||||
mainmenuStore,
|
||||
accountStore,
|
||||
drawer,
|
||||
drawer_right,
|
||||
toggleTheme,
|
||||
navigations,
|
||||
imageSrc,
|
||||
getcard,
|
||||
menuGetUserDialog,
|
||||
LikeDialog,
|
||||
// userlinks,
|
||||
appStore
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.mystat {
|
||||
position: fixed;
|
||||
right: 10px;
|
||||
bottom: 10px;
|
||||
z-index: 1005;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* main.js
|
||||
*
|
||||
* Bootstraps Vuetify and other plugins then mounts the App`
|
||||
*/
|
||||
|
||||
// Components
|
||||
import App from './App.vue'
|
||||
|
||||
// Composables
|
||||
import { createApp } from 'vue'
|
||||
|
||||
// Plugins
|
||||
import { registerPlugins } from '@/plugins'
|
||||
import components from '@/components/UI/index'
|
||||
|
||||
const app = createApp(App)
|
||||
|
||||
components.forEach((component) => {
|
||||
app.component(component.name, component);
|
||||
})
|
||||
|
||||
|
||||
registerPlugins(app)
|
||||
|
||||
app.mount('#app')
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* plugins/index.js
|
||||
*
|
||||
* Automatically included in `./src/main.js`
|
||||
*/
|
||||
|
||||
// Plugins
|
||||
import { loadFonts } from './webfontloader'
|
||||
import vuetify from './vuetify'
|
||||
import pinia from '../store'
|
||||
import router from '../router'
|
||||
|
||||
export function registerPlugins (app) {
|
||||
loadFonts()
|
||||
app
|
||||
.use(vuetify)
|
||||
.use(pinia)
|
||||
.use(router)
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
|
||||
import '@mdi/font/css/materialdesignicons.css'
|
||||
import 'vuetify/styles'
|
||||
|
||||
import { createVuetify } from 'vuetify'
|
||||
|
||||
export default createVuetify({
|
||||
theme: {
|
||||
defaultTheme: 'light'
|
||||
},
|
||||
theme: {
|
||||
themes: {
|
||||
light: {
|
||||
colors: {
|
||||
lampa: '#FFFFFF',
|
||||
primary: '#1867C0',
|
||||
secondary: '#5CBBF6',
|
||||
main_theme: "#f7f7f7",
|
||||
scrollbar: '#367F8A',
|
||||
cards: '#F5F5F5',
|
||||
text_carous: '#242424',
|
||||
navigation: '#004D40',
|
||||
numeral: '#3C3C3C' // Цвет для карусели с цифрами в работе
|
||||
|
||||
},
|
||||
},
|
||||
dark: {
|
||||
colors: {
|
||||
lampa: '#000000',
|
||||
primary: '#1867C0',
|
||||
secondary: '#5CBBF6',
|
||||
main_theme: "#101311",
|
||||
scrollbar: '#367F8A',
|
||||
cards: '#F5F5F5',
|
||||
text_carous: '#242424',
|
||||
navigation: '#FDF5E6',
|
||||
numeral: '#3C3C3C'
|
||||
},
|
||||
},
|
||||
options: {
|
||||
customProperties: true
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* plugins/webfontloader.js
|
||||
*
|
||||
* webfontloader documentation: https://github.com/typekit/webfontloader
|
||||
*/
|
||||
|
||||
export async function loadFonts () {
|
||||
const webFontLoader = await import(/* webpackChunkName: "webfontloader" */'webfontloader')
|
||||
|
||||
webFontLoader.load({
|
||||
google: {
|
||||
families: ['Roboto:100,300,400,500,700,900&display=swap'],
|
||||
},
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
// Composables
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: '/',
|
||||
component: () => import('@/layouts/default/DefaultPortal.vue'),
|
||||
children: [
|
||||
{
|
||||
path: '/home',
|
||||
name: 'HomePage',
|
||||
component: () => import('@/views/HomePage.vue'),
|
||||
meta:{
|
||||
title:"Портал МиФНС по ЦОД №2"
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/structure',
|
||||
name: 'StructurePage',
|
||||
component: () => import('@/views/StructurePage.vue'),
|
||||
meta:{
|
||||
title:"Структура"
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/providing',
|
||||
name: 'ProvidingActivitiesPage',
|
||||
component: () => import('@/views/ProvidingActivitiesPage.vue'),
|
||||
},
|
||||
{
|
||||
path: '/faq',
|
||||
name: 'FAQPage',
|
||||
component: () => import('@/views/FAQPage.vue'),
|
||||
|
||||
},
|
||||
{
|
||||
path: '/feedback',
|
||||
name: 'FeedbackPage',
|
||||
component: () => import('@/views/FeedbackPage.vue'),
|
||||
},
|
||||
{
|
||||
path: '/labor',
|
||||
name: 'LaborProtection',
|
||||
component: () => import('@/views/LaborProtection.vue'),
|
||||
},
|
||||
{
|
||||
path: '/securyty',
|
||||
name: 'SecurityPage',
|
||||
component: () => import('@/views/SecurityPage.vue'),
|
||||
},
|
||||
{
|
||||
path: '/inspection',
|
||||
name: 'AboutInspectionPage',
|
||||
component: () => import('@/views/AboutInspectionPage.vue'),
|
||||
},
|
||||
{
|
||||
path: '/portal',
|
||||
name: 'AboutPortalPage',
|
||||
component: () => import('@/views/AboutPortalPage.vue'),
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(process.env.BASE_URL),
|
||||
routes,
|
||||
})
|
||||
router.beforeEach((to,from, next)=>{
|
||||
document.title = to.meta.title;
|
||||
next()
|
||||
})
|
||||
|
||||
export default router
|
||||
@@ -0,0 +1,53 @@
|
||||
// Utilities
|
||||
import { defineStore } from 'pinia'
|
||||
import {ref, watch} from 'vue'
|
||||
import { clearAxios, spravURL } from '@/utils/axios-api'
|
||||
import VueJwtDecode from 'vue-jwt-decode'
|
||||
import {checkremote} from '@/utils/universal_functions'
|
||||
import {useAppStore} from '@/store/app.js'
|
||||
|
||||
|
||||
export const useAccountStore = defineStore('AccountStore', () => {
|
||||
const AppStore = useAppStore()
|
||||
|
||||
const user=ref({})
|
||||
const cod2user=ref(false)
|
||||
const setUser = (value)=> {
|
||||
value.photo = checkremote(`${spravURL}${value.login}.jpg`)
|
||||
user.value=value
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// геттер бывший
|
||||
// const getUser=computed(()=> uyser.value)
|
||||
|
||||
const logging=async (anon)=>{
|
||||
console.log(anon)
|
||||
AppStore.loading = true
|
||||
const result = await clearAxios.post('api/accounts/token/', anon)
|
||||
// .then(result => {
|
||||
localStorage.setItem('access', result.data.access)
|
||||
localStorage.setItem('refresh', result.data.refresh)
|
||||
|
||||
let u = VueJwtDecode.decode(result.data.refresh)
|
||||
u.user.photo = checkremote( `${spravURL}${u.user.login}.jpg`)
|
||||
// `${spravURL}${u.user.login}.jpg`
|
||||
user.value = u.user
|
||||
AppStore.loading = false
|
||||
}
|
||||
const logout =()=>{
|
||||
user.value = {}
|
||||
localStorage.removeItem('access')
|
||||
localStorage.removeItem('refresh')
|
||||
|
||||
}
|
||||
watch(user, (newValue,oldValue)=>{
|
||||
cod2user.value = 'login' in newValue && newValue.login.startsWith('9966-')?true:false
|
||||
}, {deep:true})
|
||||
|
||||
|
||||
|
||||
return {user, setUser,cod2user,logging, logout}
|
||||
})
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import {ref} from 'vue'
|
||||
import { clearAxios } from '@/utils/axios-api'
|
||||
export const useMainmenuStore = defineStore('MainmenuStore', () => {
|
||||
const portallinks = ref([])
|
||||
|
||||
const loadlinks=async()=>{
|
||||
const res = await clearAxios.get('api/navigation/carousels/')
|
||||
portallinks.value=res.data
|
||||
}
|
||||
return {portallinks,loadlinks}
|
||||
})
|
||||
@@ -0,0 +1,12 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import {ref} from 'vue'
|
||||
import { clearAxios } from '@/utils/axios-api'
|
||||
export const useMainmenuStore = defineStore('MainmenuStore', () => {
|
||||
const portallinks = ref([])
|
||||
|
||||
const loadlinks=async()=>{
|
||||
const res = await clearAxios.get('api/navigation/carousels/')
|
||||
portallinks.value=res.data
|
||||
}
|
||||
return {portallinks,loadlinks}
|
||||
})
|
||||
@@ -0,0 +1,22 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import {ref, watch} from 'vue'
|
||||
import { clearAxios } from '@/utils/axios-api'
|
||||
|
||||
export const useMainmenuStore = defineStore('MainmenuStore', () => {
|
||||
const portallinks = ref([])
|
||||
// const setUser = (value)=> {links.value=value}
|
||||
|
||||
//
|
||||
// геттер бывший
|
||||
// const getUser=computed(()=> uyser.value)
|
||||
// вотч
|
||||
// watch(()=>movies,(state)=>{
|
||||
// localStorage.setItem('movies',JSON.stringify(state)),{deep:true}
|
||||
// }
|
||||
// )
|
||||
const loadlinks=async()=>{
|
||||
const res = await clearAxios.get('api/navigation/links/')
|
||||
portallinks.value=res.data
|
||||
}
|
||||
return {portallinks,loadlinks}
|
||||
})
|
||||
@@ -0,0 +1,13 @@
|
||||
// Utilities
|
||||
import { defineStore } from 'pinia'
|
||||
import { ref } from 'vue'
|
||||
|
||||
export const useAppStore = defineStore('app', () => {
|
||||
const loading = ref(false)
|
||||
const countvisitor = ref({ "totalvisit": 0,
|
||||
"visittoday":0,
|
||||
"uniqtoday" : 0})
|
||||
return {loading,countvisitor}
|
||||
|
||||
},
|
||||
)
|
||||
@@ -0,0 +1,4 @@
|
||||
// Utilities
|
||||
import { createPinia } from 'pinia'
|
||||
|
||||
export default createPinia()
|
||||
@@ -0,0 +1,27 @@
|
||||
// myBtns.stories.js
|
||||
|
||||
import myBtns from '@/components/UI/myBtns'
|
||||
|
||||
//👇 This default export determines where your story goes in the story list
|
||||
export default {
|
||||
component: myBtns,
|
||||
};
|
||||
|
||||
/*
|
||||
*👇 Render functions are a framework specific feature to allow you control on how the component renders.
|
||||
* See https://storybook.js.org/docs/vue/api/csf
|
||||
* to learn how to use render functions.
|
||||
*/
|
||||
export const FirstStory = {
|
||||
render: (args) => ({
|
||||
components: { myBtns },
|
||||
setup() {
|
||||
return { args };
|
||||
},
|
||||
template: '<myBtns v-bind="args" />',
|
||||
}),
|
||||
args: {
|
||||
label:"Сохранить",
|
||||
filled: true
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,91 @@
|
||||
import {useAccountStore} from '@/store/AccountStore'
|
||||
import axios from "axios";
|
||||
const spravURL = 'http://10.252.44.33/accounting6/images/photo/'
|
||||
|
||||
// const baseURL = process.env.NODE_ENV == 'development'? 'http://127.0.0.1:8000/': `http://${window.location.host}/`;
|
||||
const baseWS = process.env.NODE_ENV == 'development'? 'ws://127.0.0.1:8000/': `ws://${window.location.host}/`;
|
||||
|
||||
// для релизного меняем 'http://ukd/'
|
||||
const baseURL = 'http://127.0.0.1:8000/';
|
||||
|
||||
async function refreshToken() {
|
||||
|
||||
const refresh = localStorage.getItem('refresh');
|
||||
|
||||
try {
|
||||
const result = await axios.post('/api/accounts/token/refresh/', {refresh}, {
|
||||
baseURL
|
||||
})
|
||||
|
||||
if (result.config.data) localStorage.setItem('refresh', JSON.parse(result.config.data).refresh);
|
||||
localStorage.setItem('access', result.data.access)
|
||||
|
||||
return result.data.access;
|
||||
}
|
||||
|
||||
catch(e) {
|
||||
const accountStore = useAccountStore()
|
||||
accountStore.logout()
|
||||
accountStore.cod2user.value=false
|
||||
|
||||
return Promise.reject(e);
|
||||
}
|
||||
}
|
||||
|
||||
const axiosApiInstance = axios.create({
|
||||
baseURL,
|
||||
});
|
||||
|
||||
const clearAxios = axios.create({
|
||||
baseURL,
|
||||
});
|
||||
|
||||
axiosApiInstance.defaults.headers.common['Authorization'] = `Bearer ${localStorage.getItem('access')}`
|
||||
|
||||
axiosApiInstance.interceptors.request.use(config => {
|
||||
const access = localStorage.getItem('access');
|
||||
if (access) {
|
||||
config.headers = {
|
||||
'Authorization': `Bearer ${access}`,
|
||||
}
|
||||
}
|
||||
return config;
|
||||
}, error => {
|
||||
return Promise.reject(error);
|
||||
})
|
||||
|
||||
axiosApiInstance.interceptors.response.use(
|
||||
response => {
|
||||
return response;
|
||||
},
|
||||
async error => {
|
||||
|
||||
const originalRequest = error.config;
|
||||
if ((error.response.status === 401 || error.response.status === 403) && !originalRequest._retry) {
|
||||
|
||||
originalRequest._retry = true;
|
||||
try {
|
||||
|
||||
const token = await refreshToken();
|
||||
|
||||
axiosApiInstance.defaults.headers.common['Authorization'] = `Bearer ${token}`;
|
||||
|
||||
if (originalRequest.data){
|
||||
originalRequest.data = JSON.parse(originalRequest.data); }
|
||||
|
||||
return axiosApiInstance(originalRequest);
|
||||
|
||||
} catch(e) {
|
||||
|
||||
//
|
||||
// if (window.location.pathname!='/auth') window.location.reload()
|
||||
// window.location.reload()
|
||||
|
||||
return Promise.reject(error);
|
||||
}
|
||||
}
|
||||
return Promise.reject(error);
|
||||
})
|
||||
|
||||
|
||||
export { axiosApiInstance, clearAxios, baseURL,spravURL,baseWS }
|
||||
@@ -0,0 +1,65 @@
|
||||
const str = 'hello';
|
||||
import {useAccountStore} from '@/store/AccountStore'
|
||||
import {useAppStore} from '@/store/app'
|
||||
import { baseURL } from '@/utils/axios-api'
|
||||
import { axiosApiInstance, clearAxios } from '@/utils/axios-api'
|
||||
import { useRouter } from 'vue-router'
|
||||
export function getfromserver(path, reactive){
|
||||
try{
|
||||
axiosApiInstance.get(path).then(result => {
|
||||
reactive.value = result.data})}
|
||||
catch(e){
|
||||
console.log(e);
|
||||
}
|
||||
}
|
||||
|
||||
export function getfromserverfree(path, reactive){
|
||||
try{
|
||||
clearAxios.get(path).then(result => {
|
||||
reactive.value = result.data})}
|
||||
catch(e){
|
||||
console.log(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
export function checkremote(filecheck){
|
||||
let tmp = new Image
|
||||
tmp.src=filecheck
|
||||
if(tmp.complete){
|
||||
return filecheck
|
||||
}
|
||||
else {return "https://avatars.mds.yandex.net/i?id=e581fbd83b62938eb98e4d1110c176eabdb19946-9181179-images-thumbs&n=13"}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export default str;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export function pagecounter(){
|
||||
const router = useRouter()
|
||||
|
||||
|
||||
|
||||
const accountStore = useAccountStore()
|
||||
const appStore = useAppStore()
|
||||
let postdata = {user__id: "user" in accountStore && "id" in accountStore.user? accountStore.user.id: null, page: router.currentRoute.value.meta.title}
|
||||
|
||||
clearAxios.post(`${baseURL}api/watcher/counter/`, postdata).then(result => {
|
||||
console.log(result.data, 'dfdf')
|
||||
appStore.countvisitor = result.data})
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<v-row>
|
||||
<v-col
|
||||
class="text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"
|
||||
>
|
||||
Об инспекции
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<v-row>
|
||||
<v-col
|
||||
class="text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"
|
||||
>
|
||||
О портале
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<v-row>
|
||||
<v-col
|
||||
class="text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"
|
||||
>
|
||||
F.A.Q.
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<v-row>
|
||||
<v-col
|
||||
class="text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"
|
||||
>
|
||||
Обратная связь
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,115 @@
|
||||
<template>
|
||||
<v-container fluid class="d-flex mx-0">
|
||||
<v-row>
|
||||
<v-col class="d-flex flex-column">
|
||||
<v-row class="flex-grow-0">
|
||||
<v-col class="pr-0">
|
||||
<Carousel-list/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col class="pt-1 flex-column d-flex mt-3" lg=8>
|
||||
<v-row class="flex-column">
|
||||
<Carousel-numbers
|
||||
:digitalData="stat"/>
|
||||
</v-row>
|
||||
<v-row class="pt-1 flex-column mt-0">
|
||||
<Carousel-numbers
|
||||
:digitalData="onlines"
|
||||
/>
|
||||
|
||||
</v-row>
|
||||
|
||||
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
</v-col>
|
||||
|
||||
<v-col class="d-flex flex-column justify-space-between px-0 py-2 pb-0" lg=4>
|
||||
<v-card
|
||||
class="h-100 bg-transparent "
|
||||
elevation="0"
|
||||
>
|
||||
|
||||
<News-list v-if="accountStore.cod2user"/>
|
||||
|
||||
|
||||
|
||||
</v-card>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
|
||||
</v-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {useAppStore} from '@/store/app'
|
||||
import {useAccountStore} from '@/store/AccountStore'
|
||||
import {pagecounter} from '@/utils/universal_functions'
|
||||
import NewsList from '@/components/news-list.vue'
|
||||
import CarouselList from '@/components/carousel-list.vue'
|
||||
import CarouselNumbers from '@/components/carousel-numbers.vue'
|
||||
|
||||
|
||||
|
||||
export default {
|
||||
|
||||
components: {
|
||||
NewsList,
|
||||
CarouselList,
|
||||
CarouselNumbers
|
||||
},
|
||||
|
||||
setup(){
|
||||
const appStore = useAppStore()
|
||||
pagecounter()
|
||||
const model= null
|
||||
const accountStore = useAccountStore()
|
||||
|
||||
|
||||
const stat = [
|
||||
{status:'Работают', num:'57', img: "/media/newsimage/default.jpg"},
|
||||
{status:'В отпуске', num:'13', img: "/media/newsimage/numbers/vacation.jpg"},
|
||||
{status:'Болеют', num:'3', img: "/media/newsimage/numbers/med.jpg"},
|
||||
{status:'На море', num:'45', img: "/media/newsimage/numbers/vacation.jpg"},
|
||||
{status:'В запое', num:'1,5', img: "/media/newsimage/numbers/med.jpg"},
|
||||
|
||||
]
|
||||
|
||||
const onlines = [
|
||||
{status:'Всего', num: appStore.countvisitor.totalvisit, img: "/media/newsimage/numbers/calendar.jpg"},
|
||||
{status:'Сегодня', num: appStore.countvisitor.visittoday, img: "/media/newsimage/numbers/sept.jpg"},
|
||||
{status:'Уникальных', num: appStore.countvisitor.uniqtoday, img: "/media/newsimage/numbers/uni.jpg"},
|
||||
]
|
||||
|
||||
|
||||
return {
|
||||
|
||||
accountStore,
|
||||
stat,
|
||||
model,
|
||||
onlines,
|
||||
appStore,
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
<style lang="scss">
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<v-row>
|
||||
<v-col
|
||||
class="text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"
|
||||
>
|
||||
Охрана труда
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,57 @@
|
||||
<template>
|
||||
<v-row>
|
||||
<v-col
|
||||
class="text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"
|
||||
>
|
||||
<v-item-group mandatory>
|
||||
<v-container>
|
||||
<v-row>
|
||||
<v-col
|
||||
v-for="n in activates"
|
||||
:key="n"
|
||||
cols="12"
|
||||
md="6"
|
||||
>
|
||||
<v-item v-slot="{ isSelected, toggle }">
|
||||
<v-card
|
||||
:color="isSelected ? 'primary' : ''"
|
||||
class="d-flex align-center"
|
||||
dark
|
||||
height="200"
|
||||
:href="n.link"
|
||||
>
|
||||
<v-scroll-y-transition>
|
||||
<div
|
||||
class="text-h3 flex-grow-1 text-center"
|
||||
|
||||
>
|
||||
|
||||
{{n.name}}
|
||||
</div>
|
||||
</v-scroll-y-transition>
|
||||
</v-card>
|
||||
</v-item>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-container>
|
||||
</v-item-group>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
setup(){
|
||||
const activates = [
|
||||
{name: 'Комиссии', link: 'http://10.252.44.33/accounting6/SOTRYDNIKI.php#tab_committees'},
|
||||
{name: 'Ответственность', link: 'http://10.252.44.33/accounting6/SOTRYDNIKI.php#tab_departments'},
|
||||
]
|
||||
|
||||
return {activates}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<v-row>
|
||||
<v-col
|
||||
class="text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"
|
||||
>
|
||||
Безопасность
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<v-row>
|
||||
<v-col
|
||||
class="text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"
|
||||
>
|
||||
Структура
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,38 @@
|
||||
// Plugins
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
|
||||
|
||||
// Utilities
|
||||
import { defineConfig } from 'vite'
|
||||
import { fileURLToPath, URL } from 'node:url'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
vue({
|
||||
template: { transformAssetUrls }
|
||||
}),
|
||||
// https://github.com/vuetifyjs/vuetify-loader/tree/next/packages/vite-plugin
|
||||
vuetify({
|
||||
autoImport: true,
|
||||
}),
|
||||
],
|
||||
define: { 'process.env': {} },
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url))
|
||||
},
|
||||
extensions: [
|
||||
'.js',
|
||||
'.json',
|
||||
'.jsx',
|
||||
'.mjs',
|
||||
'.ts',
|
||||
'.tsx',
|
||||
'.vue',
|
||||
],
|
||||
},
|
||||
server: {
|
||||
port: 3000,
|
||||
},
|
||||
})
|
||||