-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.js
185 lines (170 loc) · 5.07 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
import colors from 'vuetify/es5/util/colors'
export default {
// Global page headers: https://go.nuxtjs.dev/config-head
target: 'server',
head: {
titleTemplate: '%s | Gunn.One',
title: 'Home',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
hid: 'description',
name: 'description',
content: 'A clean and intuitive interface for Schoology, Campus Central is your new go-to app during class.'
}
],
link: [
{ rel: 'icon', type: 'image/png', href: '/icon.png' }
]
},
// Global CSS: https://go.nuxtjs.dev/config-css
css: [
'~/assets/tailwind.css'
],
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [
'~/plugins/vue-linkify.js',
'~/plugins/vue-moment.js',
'~/plugins/vue-graph.client.js'//,
///'~plugins/pdf.client.js'
],
serverMiddleware: [
'~/server-middleware/api/app.js'
//'~/server-middleware/auth.js'
],
// Auto import components: https://go.nuxtjs.dev/config-components
components: true,
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [
// https://go.nuxtjs.dev/typescript
'@nuxt/typescript-build',
// https://go.nuxtjs.dev/vuetify
'@nuxtjs/vuetify',
'@nuxtjs/tailwindcss'
],
// Modules: https://go.nuxtjs.dev/config-modules
modules: [
// https://go.nuxtjs.dev/axios
'@nuxtjs/axios',
// https://go.nuxtjs.dev/pwa
'@nuxtjs/pwa',
// https://go.nuxtjs.dev/content
'@nuxt/content',
['nuxt-vuex-localstorage', {
mode:'debug',
localStorage: ['cache'], // If not entered, “localStorage” is the default value
//sessionStorage: ['sfoo', 'sbar'] // If not entered, “sessionStorage” is the default value
}],
[
'@nuxtjs/firebase',
{
config: {
apiKey: 'AIzaSyDjLQAzre_M7puZsitnnXhu7uH6M-JIerc',
authDomain: 'homeworkcentral.firebaseapp.com',
databaseURL: 'https://homeworkcentral.firebaseio.com',
projectId: 'homeworkcentral',
storageBucket: 'homeworkcentral.appspot.com',
messagingSenderId: '709390643857',
appId: '1:709390643857:web:7ee7ad222cf5f2ba9f4530'
},
services: {
database: true // Just as example. Can be any other service.
}
}
]
],
// Axios module configuration: https://go.nuxtjs.dev/config-axios
axios: {
baseURL: process.env.RHOST || 'http://localhost:3000'
},
// PWA module configuration: https://go.nuxtjs.dev/pwa
pwa: {
manifest: {
lang: 'en',
theme_color: '#0F3261',
short_name: 'Campus Central',
name: 'Campus Central',
start_url: '/app?standalone=true',
background_color: '#04173B'
},
meta: {
name: 'Campus Central',
description: 'A clean and intuitive interface for Schoology, Campus Central is your new go-to app during class.',
theme_color: '#0F3261',
ogSiteName: 'CampusCentral.repl.co',
ogHost: 'https://campuscentral.repl.co',
mobileAppIOS: true,
appleStatusBarStyle: 'black-translucent',
ogImage: true
}
},
router: {
//middleware:'redirectMessages'
},
// Content module configuration: https://go.nuxtjs.dev/config-content
content: {},
loading: {
color: '#e0897b',
height: '5px'
},
// Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify
vuetify: {
customVariables: ['~/assets/variables.scss'],
treeShake: true,
theme: {
dark: true,
options: {
customProperties: true
},
themes: {
dark: {
primary: '#3066C7',
accent: '#e0897b',
anchor:'#e0897b',
accentDark: '#8F321E',
secondary: '#0F3261',
tertiary: '#04173B',
blueLayer: '#071f45',
coveredBG: '#1A2131',
text: '#fff',
cardBackground: '#09204a',
background: '#13203e',//'#08193b',
info: colors.teal.lighten1,
warning: colors.amber.base,
error: colors.deepOrange.accent4,
success: colors.green.accent3
},
light: {
primary: '#3066C7',
accent: '#b06056' || '#b7453b',
accentDark: '#e0897b',
anchor: '#e0897b',
coveredBG: '#fcfafa',
secondary: '#dde2ee',
tertiary: '#ccd9ef',
blueLayer: '#d6ddee' || '#c3d6f8',
text: '#04173B',
cardBackground: '#fff',
background: '#f4f5f8',
info: colors.teal.lighten1,
warning: colors.amber.base,
error: colors.deepOrange.accent4,
success: colors.green.accent3
}
}
}
},
privateRuntimeConfig: {
// basically dotenv but not
RHOST: process.env.RHOST || 'http://192.168.50.125:3000'
},
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {
//analyze: true,
},
server: {
host: process.env.NODE_ENV === 'production' ? '0' : null, // default: localhost
port: process.env.PORT || '3000'
}
}