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": "确认密码", "input_confirmPwd": "请确认{confirmPwd}", "input_password": "请输入{password}", "input_user": "请输入{user}", "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": "确认新密码", "input_confirmpwd": "请确认{newpwd}", "input_newpwd": "请输入{newpwd}", "input_oldpwd": "请输入{oldpwd}", "name": "帐号安全", "newpwd": "新密码", "oldpwd": "原密码", "rules": { "password": "长度在 {min} 到 {max} 个字符之间" }, "tip": { "ok": "密码修改成功" } } }, "choose_lang": "选择语言", "en": "英文", "error_404": "页面不存在", "error_500": "发生严重异常,请联系管理员", "logout": "注销登录", "menus": { "center": "个人中心", "document": "文档", "note": "笔记列表", "upload": "本地上传论文" }, "note": { "table": { "note_name": "笔记名称", "paper_name": "论文标题" }, "tip": { "confirm_del": "此操作将永久删除该笔记,是否继续?" } }, "tip": "提示", "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": "学位年度" }, "tip": { "ok": "论文上传成功" } }, "user": "帐号", "zhCN": "简体中文" }, "en": { "account": { "form": { "confirmPwd": "确认密码", "input_confirmPwd": "请确认{confirmPwd}", "input_password": "请输入{password}", "input_user": "请输入{user}", "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": "", "input_confirmpwd": "", "input_newpwd": "", "input_oldpwd": "", "name": "帐号安全", "newpwd": "", "oldpwd": "", "rules": { "password": "" }, "tip": { "ok": "" } } }, "choose_lang": "language", "en": "english", "error_404": "页面不存在", "error_500": "发生严重异常,请联系管理员", "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": "论文", "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": "学位年度" }, "tip": { "ok": "" } }, "user": "帐号", "zhCN": "Simplified Chinese" } } } } }