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

229 lines
6.7 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'],
/*
** 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": {
"account": {
"form": {
"confirmPwd": "确认密码",
"input_confirmPwd": "请确认{confirmPwd}",
"input_password": "请输入{password}",
"input_user": "请输入{user}",
"password": "密码",
"user": "帐号",
"valid_account": "帐号密码正确"
},
"login": "登录",
"register": "注册"
},
"app_name": "云笔记",
"center": {
"collect": {
"name": "我的收藏"
},
"myupload": {
"name": "我的上传"
},
"security": {
"confirmpwd": "确认新密码",
"input_confirmpwd": "请确认{newpwd}",
"input_newpwd": "请输入{newpwd}",
"input_oldpwd": "请输入{oldpwd}",
"name": "帐号安全",
"newpwd": "新密码",
"oldpwd": "原密码"
}
},
"choose_lang": "选择语言",
"en": "英文",
"error_404": "页面不存在",
"error_500": "发生严重异常,请联系管理员",
"logout": "注销登录",
"menus": {
"center": "个人中心",
"document": "文档",
"note": "笔记列表",
"upload": "本地上传论文"
},
"submit": "提交",
"unknown_error": "未知错误",
"upload": {
"form": {
"author": "论文作者",
"content": "论文",
"input_author": "请输入{author}",
"input_profession": "请输入{profession}",
"input_school": "请输入{school}",
"input_summary": "请输入{summary}",
"input_type": "请输入{type}",
"input_year": "请输入{year}",
"profession": "学科专业",
"remove": "确定移除{file}",
"school": "学校",
"summary": "摘要",
"tag": "论文标签",
"type": "论文类型",
"upload": "点击上传",
"upload_tip": "只能上传txt",
"year": "学位年度"
}
},
"user": "帐号",
"zhCN": "简体中文"
},
"en": {
"account": {
"form": {
"confirmPwd": "确认密码",
"input_confirmPwd": "请确认{confirmPwd}",
"input_password": "请输入{password}",
"input_user": "请输入{user}",
"password": "密码",
"user": "帐号",
"valid_account": "帐号密码正确"
},
"login": "登录",
"register": "注册"
},
"app_name": "cloudnote",
"center": {
"collect": {
"name": "我的收藏"
},
"myupload": {
"name": "我的上传"
},
"security": {
"confirmpwd": "",
"input_confirmpwd": "",
"input_newpwd": "",
"input_oldpwd": "",
"name": "帐号安全",
"newpwd": "",
"oldpwd": ""
}
},
"choose_lang": "language",
"en": "english",
"error_404": "页面不存在",
"error_500": "发生严重异常,请联系管理员",
"logout": "注销登录",
"menus": {
"center": "个人中心",
"document": "document",
"note": "note list",
"upload": "本地上传论文"
},
"submit": "提交",
"unknown_error": "未知错误",
"upload": {
"form": {
"author": "论文作者",
"content": "论文",
"input_author": "请输入{author}",
"input_profession": "请输入{profession}",
"input_school": "请输入{school}",
"input_summary": "请输入{summary}",
"input_type": "请输入{type}",
"input_year": "请输入{year}",
"profession": "学科专业",
"remove": "确定移除{file}",
"school": "学校",
"summary": "摘要",
"tag": "论文标签",
"type": "论文类型",
"upload": "点击上传",
"upload_tip": "只能上传txt",
"year": "学位年度"
}
},
"user": "帐号",
"zhCN": "Simplified Chinese"
}
}
}
}
}