You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
cloudnote_web/nuxt.config.js

293 lines
7.8 KiB

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','postcss/docs/api/assets/styles.min.css'],
/*
** Plugins to load before mounting the App
** https://nuxtjs.org/guide/plugins
*/
plugins: ['@/plugins/element-ui','@/plugins/vue-cookies','@/plugins/global','@/plugins/moment'],
/*
** 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": {
"account": {
"form": {
"confirmPwd": "确认密码",
"password": "密码",
"user": "帐号",
"valid_account": "帐号密码正确"
},
"login": "登录",
"register": "注册"
},
"action": "操作",
"app_name": "云笔记",
"button": {
"cancel": "取消",
"del": "删除",
"edit": "编辑",
"ok": "確定",
"submit": "提交"
},
"center": {
"collect": {
"form": {
"time": "收藏时间",
"title": "论文标题"
},
"name": "我的收藏"
},
"myupload": {
"form": {
"time": "上传时间",
"title": "论文标题"
},
"name": "我的上传"
},
"security": {
"confirmpwd": "确认新密码",
"name": "帐号安全",
"newpwd": "新密码",
"oldpwd": "原密码",
"rules": {
"password": "长度在 {min} 到 {max} 个字符之间"
},
"tip": {
"ok": "密码修改成功"
}
}
},
"choose_lang": "选择语言",
"document": {
"form": {
"author": "作者",
"keyword": "关键词",
"specialty": "学科专业",
"title": "标题"
}
},
"en": "英文",
"error_404": "页面不存在",
"error_500": "发生严重异常,请联系管理员",
"input_confirm": "请确认{keyword}",
"input_please": "请输入{keyword}",
"logout": "注销登录",
"menus": {
"center": "个人中心",
"document": "文档",
"note": "笔记列表",
"upload": "本地上传论文"
},
"note": {
"table": {
"note_name": "笔记名称",
"paper_name": "论文标题"
},
"tip": {
"confirm_del": "此操作将永久删除该笔记,是否继续?"
}
},
"tip": "提示",
"unknown_error": "未知错误",
"upload": {
"form": {
"author": "论文作者",
"content": "论文",
"profession": "学科专业",
"remove": "确定移除{file}",
"school": "学校",
"summary": "摘要",
"tag": "论文标签",
"type": "论文类型",
"upload": "点击上传",
"upload_tip": "只能上传txt",
"year": "学位年度"
},
"tip": {
"ok": "论文上传成功"
}
},
"user": "帐号",
"zhCN": "简体中文"
},
"en": {
"account": {
"form": {
"confirmPwd": "确认密码",
"password": "密码",
"user": "帐号",
"valid_account": "帐号密码正确"
},
"login": "登录",
"register": "注册"
},
"action": "",
"app_name": "cloudnote",
"button": {
"cancel": "",
"del": "",
"edit": "",
"ok": "",
"submit": ""
},
"center": {
"collect": {
"form": {
"time": "",
"title": ""
},
"name": "我的收藏"
},
"myupload": {
"form": {
"time": "",
"title": ""
},
"name": "我的上传"
},
"security": {
"confirmpwd": "",
"name": "帐号安全",
"newpwd": "",
"oldpwd": "",
"rules": {
"password": ""
},
"tip": {
"ok": ""
}
}
},
"choose_lang": "language",
"document": {
"form": {
"author": "",
"keyword": "",
"specialty": "",
"title": ""
}
},
"en": "english",
"error_404": "页面不存在",
"error_500": "发生严重异常,请联系管理员",
"input_confirm": "",
"input_please": "",
"logout": "注销登录",
"menus": {
"center": "个人中心",
"document": "document",
"note": "note list",
"upload": "本地上传论文"
},
"note": {
"table": {
"note_name": "",
"paper_name": ""
},
"tip": {
"confirm_del": ""
}
},
"tip": "",
"unknown_error": "未知错误",
"upload": {
"form": {
"author": "论文作者",
"content": "论文",
"profession": "学科专业",
"remove": "确定移除{file}",
"school": "学校",
"summary": "摘要",
"tag": "论文标签",
"type": "论文类型",
"upload": "点击上传",
"upload_tip": "只能上传txt",
"year": "学位年度"
},
"tip": {
"ok": ""
}
},
"user": "帐号",
"zhCN": "Simplified Chinese"
}
}
}
}
}