-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.js
131 lines (126 loc) · 4.98 KB
/
nuxt.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
module.exports = {
/*
** Headers of the page
*/
modules: [
'@nuxtjs/axios',
'@nuxtjs/auth',
'@nuxtjs/pwa',
['@nuxtjs/google-analytics', {id: 'UA-120518365-1'}]
],
auth: {
strategies: {
local: {
endpoints: {
login: { url: '/auth/login', method: 'post', propertyName: 'token' },
logout: { url: '/auth/logout', method: 'post' },
user: { url: '/auth/user', method: 'get', propertyName: 'user' }
}
}
},
options: {
redirect: {
login: '/profile',
logout: '/login',
callback: '/',
user: '/'
}
}
},
router: {
middleware: ['auth']
},
axios: {
port: '3000',
prefix: '/api/',
https: true,
proxyHeaders: false,
proxy: true, // Can be also an object with default options
debug: false
},
proxy: {
'/api': process.env.PROXY_API_URL || 'http://localhost:3000/',
},
plugins: [
'~plugins/vuetify.js',
'~plugins/tabs.js',
'~plugins/jalali-date.js',
{src: '~plugins/vue-notification.js', ssr: false},
'~plugins/helper/index.js'
],
head: {
title: 'آیین فارغالتحصیلی دانشجویان ورودی ۱۳۹۳',
meta: [
{charset: 'utf-8'},
{name: 'viewport', content: 'width=device-width, initial-scale=1'},
{name: 'msapplication-TileColor', content: '#ffffff'},
{name: 'theme-color', content: '#ffffff'},
{hid: 'description', name: 'description', content: 'وباپلیکیشن فارغالتحصیلی دانشجویان ورودی سال ۱۳۹۳ دانشکده مهندسی کامپیوتر و فناوری اطلاعات دانشگاه صنعتی امیرکبیر'},
{property: 'og:locale', content: 'fa_IR'},
],
link: [
{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'},
{rel: 'icon', type: 'image/png', href: '/favicon-32x32.png', sizes:'32x32'},
{rel: 'icon', type: 'image/png', href: '/favicon-16x16.png', sizes:'16x16'},
{rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: '#5bbad5'},
{rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons'},
{rel: 'apple-touch-startup-image', href: 'apple-splash-640x1136.png', media:'(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)'},
{rel: 'apple-touch-startup-image', href: 'apple-splash-750x1294.png', media:'(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)'},
{rel: 'apple-touch-startup-image', href: 'apple-splash-1242x2148.png', media:'(device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)'},
{rel: 'apple-touch-startup-image', href: 'apple-splash-1125x2436.png', media:'(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)'},
{rel: 'apple-touch-startup-image', href: 'apple-splash-1536x2048.png', media:'(min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait)'},
{rel: 'apple-touch-startup-image', href: 'apple-splash-1668x2224.png', media:'(min-device-width: 834px) and (max-device-width: 834px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait)'},
{rel: 'apple-touch-startup-image', href: 'apple-splash-2048x2732.png', media:'(min-device-width: 1024px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait)'},
]
},
css: [
'~/assets/css/main.scss',
'~/node_modules/vuetify/dist/vuetify.min.css',
'~/assets/css/iransharp.css',
'~/assets/css/bootstrap-grid.min.css',
'~/node_modules/@mdi/font/css/materialdesignicons.min.css',
'~/node_modules/vue-tabs-component/docs/resources/tabs-component.css',
],
/*
** Customize the progress bar color
*/
loading: {color: '#30fff2'},
/*
** Build configuration
*/
build: {
/*
** Run ESLint on save
*/
extend(config, {isDev, isClient}) {
if (isDev && isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
}
},
/*
* PWA Module
*/
meta: {
mobileAppIOS: true,
appleStatusBarStyle: 'default',
name: 'آیین فارغالتحصیلی دانشجویان ورودی ۱۳۹۳',
author: 'AUT CEIT Students - Class of 2018',
description: 'وباپلیکیشن فارغالتحصیلی دانشجویان ورودی سال ۱۳۹۳ دانشکده مهندسی کامپیوتر و فناوری اطلاعات دانشگاه صنعتی امیرکبیر',
theme_color: '#01579B',
lang: 'fa',
ogHost: 'https://ceit93.ir',
nativeUI: true
},
manifest: {
name: "CEIT 93",
short_name: "CEIT 93",
theme_color: "#01579B",
background_color: "#ffffff",
}
}