|
|
|
export default {
|
|
|
|
server: {
|
|
|
|
port: 5000,
|
|
|
|
},
|
|
|
|
/*
|
|
|
|
** Nuxt rendering mode
|
|
|
|
** See https://nuxtjs.org/api/configuration-mode
|
|
|
|
*/
|
|
|
|
mode: 'spa',
|
|
|
|
/*
|
|
|
|
** Nuxt target
|
|
|
|
** See https://nuxtjs.org/api/configuration-target
|
|
|
|
*/
|
|
|
|
target: 'static',
|
|
|
|
/*
|
|
|
|
** Headers of the page
|
|
|
|
** See https://nuxtjs.org/api/configuration-head
|
|
|
|
*/
|
|
|
|
head: {
|
|
|
|
title: process.env.npm_package_name || '',
|
|
|
|
meta: [
|
|
|
|
{ charset: 'utf-8' },
|
|
|
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
|
|
|
{
|
|
|
|
hid: 'description',
|
|
|
|
name: 'description',
|
|
|
|
content: process.env.npm_package_description || '',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Roboto' }],
|
|
|
|
},
|
|
|
|
/*
|
|
|
|
** Global CSS
|
|
|
|
*/
|
|
|
|
css: ['element-ui/lib/theme-chalk/index.css'],
|
|
|
|
/*
|
|
|
|
** Plugins to load before mounting the App
|
|
|
|
** https://nuxtjs.org/guide/plugins
|
|
|
|
*/
|
|
|
|
plugins: ['@/plugins/element-ui','@/plugins/vue-cookies','@/plugins/global'],
|
|
|
|
/*
|
|
|
|
** Auto import components
|
|
|
|
** See https://nuxtjs.org/api/configuration-components
|
|
|
|
*/
|
|
|
|
components: true,
|
|
|
|
/*
|
|
|
|
** Nuxt.js dev-modules
|
|
|
|
*/
|
|
|
|
buildModules: [
|
|
|
|
'@nuxt/typescript-build',
|
|
|
|
// Doc: https://github.com/nuxt-community/stylelint-module
|
|
|
|
'@nuxtjs/stylelint-module',
|
|
|
|
],
|
|
|
|
/*
|
|
|
|
** Nuxt.js modules
|
|
|
|
*/
|
|
|
|
modules: [
|
|
|
|
// Doc: https://axios.nuxtjs.org/usage
|
|
|
|
'@nuxtjs/axios',
|
|
|
|
'@nuxtjs/pwa',
|
|
|
|
// Doc: https://github.com/nuxt/content
|
|
|
|
'@nuxt/content',
|
|
|
|
'nuxt-i18n'
|
|
|
|
],
|
|
|
|
/*
|
|
|
|
** Axios module configuration
|
|
|
|
** See https://axios.nuxtjs.org/options
|
|
|
|
*/
|
|
|
|
axios: {},
|
|
|
|
/*
|
|
|
|
** Content module configuration
|
|
|
|
** See https://content.nuxtjs.org/configuration
|
|
|
|
*/
|
|
|
|
content: {},
|
|
|
|
/*
|
|
|
|
** Build configuration
|
|
|
|
** See https://nuxtjs.org/api/configuration-build/
|
|
|
|
*/
|
|
|
|
build: {
|
|
|
|
transpile: [/^element-ui/],
|
|
|
|
},
|
|
|
|
i18n: {
|
|
|
|
locales: ['zhCN', 'en'],
|
|
|
|
defaultLocale: 'zhCN',
|
|
|
|
vueI18n: {
|
|
|
|
fallbackLocale: 'zhCN',
|
|
|
|
messages: {
|
|
|
|
zhCN: {
|
|
|
|
app_name:'云笔记',
|
|
|
|
choose_lang:'选择语言',
|
|
|
|
menus:{
|
|
|
|
document:'文档',
|
|
|
|
note:'笔记列表',
|
|
|
|
center:'个人中心',
|
|
|
|
upload:'本地上传论文'
|
|
|
|
},
|
|
|
|
zhCN: '简体中文',
|
|
|
|
en: '英文',
|
|
|
|
user: '帐号',
|
|
|
|
upload:{
|
|
|
|
form:{
|
|
|
|
type:'论文类型',
|
|
|
|
input_type:'请输入{type}',
|
|
|
|
author:'论文作者',
|
|
|
|
input_author:'请输入{author}',
|
|
|
|
profession:'学科专业',
|
|
|
|
input_profession:'请输入{profession}',
|
|
|
|
school:'学校',
|
|
|
|
input_school:'请输入{school}',
|
|
|
|
year:'学位年度',
|
|
|
|
input_year:'请输入{year}',
|
|
|
|
summary:'摘要',
|
|
|
|
input_summary:'请输入{summary}',
|
|
|
|
tag:'论文标签',
|
|
|
|
content:'论文',
|
|
|
|
upload:'点击上传',
|
|
|
|
upload_tip:'只能上传txt',
|
|
|
|
remove:'确定移除{file}'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
account:{
|
|
|
|
login:'登录',
|
|
|
|
register:'注册',
|
|
|
|
form:{
|
|
|
|
user:'帐号',
|
|
|
|
input_user:'请输入{user}',
|
|
|
|
password:'密码',
|
|
|
|
input_password:'请输入{password}',
|
|
|
|
confirmPwd:'确认密码',
|
|
|
|
input_confirmPwd:'请确认{confirmPwd}',
|
|
|
|
valid_account:'帐号密码正确'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
logout:'注销登录',
|
|
|
|
error_404:'页面不存在',
|
|
|
|
error_500:'发生严重异常,请联系管理员',
|
|
|
|
unknown_error:'未知错误',
|
|
|
|
center:{
|
|
|
|
collect:{
|
|
|
|
name:'我的收藏'
|
|
|
|
},
|
|
|
|
myupload:{
|
|
|
|
name:'我的上传'
|
|
|
|
},
|
|
|
|
security:{
|
|
|
|
name:'帐号安全'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
submit:'提交'
|
|
|
|
},
|
|
|
|
en: {
|
|
|
|
app_name:'cloudnote',
|
|
|
|
choose_lang:'language',
|
|
|
|
menus:{
|
|
|
|
document:'document',
|
|
|
|
note:'note list',
|
|
|
|
center:'个人中心',
|
|
|
|
upload:'本地上传论文'
|
|
|
|
},
|
|
|
|
zhCN: 'Simplified Chinese',
|
|
|
|
en: 'english',
|
|
|
|
user: '帐号',
|
|
|
|
upload:{
|
|
|
|
form:{
|
|
|
|
type:'论文类型',
|
|
|
|
input_type:'请输入{type}',
|
|
|
|
author:'论文作者',
|
|
|
|
input_author:'请输入{author}',
|
|
|
|
profession:'学科专业',
|
|
|
|
input_profession:'请输入{profession}',
|
|
|
|
school:'学校',
|
|
|
|
input_school:'请输入{school}',
|
|
|
|
year:'学位年度',
|
|
|
|
input_year:'请输入{year}',
|
|
|
|
summary:'摘要',
|
|
|
|
input_summary:'请输入{summary}',
|
|
|
|
tag:'论文标签',
|
|
|
|
content:'论文'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
account:{
|
|
|
|
login:'登录',
|
|
|
|
register:'注册',
|
|
|
|
form:{
|
|
|
|
user:'帐号',
|
|
|
|
input_user:'请输入{user}',
|
|
|
|
password:'密码',
|
|
|
|
input_password:'请输入{password}',
|
|
|
|
confirmPwd:'确认密码',
|
|
|
|
input_confirmPwd:'请确认{confirmPwd}'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|