front-end almost done | started back-end

This commit is contained in:
Amir Mohamadi
2020-11-23 19:39:26 +03:30
parent 95149f0e72
commit 80a7abafb7
191 changed files with 60163 additions and 950 deletions
+40 -6
View File
@@ -9,12 +9,17 @@ export default {
{hid: 'description', name: 'description', content: ''}
],
link: [
{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'}
{rel: 'icon', type: 'image/x-icon', href: '/favicon.png'}
]
},
// Global CSS (https://go.nuxtjs.dev/config-css)
loading: {
color: '#1B407C'
},
css: [
'slick-carousel/slick/slick.css',
'slick-carousel/slick/slick-theme.css',
'element-ui/lib/theme-chalk/index.css',
'~/assets/css/bootstrap-grid-customized.css',
'~/assets/css/fontawesome/css/all.min.css',
@@ -24,12 +29,14 @@ export default {
// Plugins to run before rendering page (https://go.nuxtjs.dev/config-plugins)
plugins: [
'@/plugins/element-ui',
'@/plugins/gsap',
'@/plugins/components'
'@/plugins/gsap'
],
// Auto import components (https://go.nuxtjs.dev/config-components)
components: true,
components: [
'~/components',
{path: '~/components/admin', prefix: 'admin'}
],
// Modules for dev and build (recommended) (https://go.nuxtjs.dev/config-modules)
buildModules: [],
@@ -38,10 +45,16 @@ export default {
modules: [
// https://go.nuxtjs.dev/axios
'@nuxtjs/axios',
'@nuxtjs/auth'
],
// Axios module configuration (https://go.nuxtjs.dev/config-axios)
axios: {},
axios: {
proxy: true
},
proxy: {
'/api': {target: 'http://127.0.0.1:7320'}
},
// Build Configuration (https://go.nuxtjs.dev/config-build)
build: {
@@ -50,7 +63,28 @@ export default {
plugins: [new webpack.ProvidePlugin({$: "jquery"})],
},
router: {
middleware: 'routerGuards',
middleware: ['redirects'],
linkActiveClass: 'active'
},
server: {
host: '0.0.0.0',
port: 7320
},
auth: {
rewriteRedirects: true,
redirect: false,
strategies: {
local: {
endpoints: {
login: {url: '/api/auth/user/login', method: 'post', propertyName: 'token'},
logout: {url: '/api/auth/user/logout', method: 'post'},
user: {url: '/api/auth/user/user', method: 'get', propertyName: 'user'}
},
tokenRequired: true,
tokenType: '',
globalToken: true,
autoFetchUser: true
}
}
}
}