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','@/plugins/contextmenu'], /* ** 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": { "add": "添加", "cancel": "取消", "catalog": "目录", "del": "删除", "edit": "编辑", "ok": "确定", "query": "查询", "rating": "提交评分", "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": { "doc_list": { "year": "(学位年度)" }, "form": { "author": "作者", "content": "正文内容", "end_year": "结束年份", "keyword": "关键词", "school": "学校", "specialty": "学科专业", "start_year": "开始年份", "title": "标题", "tutor": "导师" } }, "en": "英文", "error_404": "页面不存在", "error_500": "发生严重异常,请联系管理员", "hide_more_query": "隐藏更多查询", "input_confirm": "请确认{keyword}", "input_please": "请输入{keyword}", "logout": "注销登录", "menus": { "center": "个人中心", "document": "文档", "note": "笔记列表", "read": "阅读论文", "upload": "本地上传论文" }, "more_query": "更多查询", "note": { "table": { "original_text": "注释原文", "paper_name": "论文标题" }, "tip": { "confirm_del": "此操作将永久删除该笔记,是否继续?" } }, "read": { "contextmenu": { "add": "添加笔记", "search": "查找" }, "form": { "keyword": "关键字", "note_content": "笔记内容", "note_title": "笔记标题" }, "tip": { "add_tip": "是否添加该笔记?", "add_tip_fail": "笔记添加失败", "add_tip_ok": "笔记添加成功", "auto_save": "失去焦点自动保存", "click_note_list": "选中内容定位笔记", "contextmenu_err": "请选中文本进行操作", "del_confirm": "确认删除此笔记?", "rating_1": "本文对您的科研工作是否有帮助", "rating_2": "本文的内容是否科学严谨", "rating_3": "您对本文的推荐程度", "search_next": "查找下一个", "search_prev": "查找上一个", "search_zero": "正文中没有 ‘{keyword}’" } }, "reading_online": "在线阅读", "tip": "提示", "today_recommend": "今日推荐", "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": { "add": "", "cancel": "", "catalog": "", "del": "", "edit": "", "ok": "", "query": "", "rating": "", "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": { "doc_list": { "year": "" }, "form": { "author": "", "content": "", "end_year": "", "keyword": "", "school": "", "specialty": "", "start_year": "", "title": "", "tutor": "" } }, "en": "english", "error_404": "", "error_500": "", "hide_more_query": "", "input_confirm": "", "input_please": "", "logout": "", "menus": { "center": "", "document": "document", "note": "note list", "read": "", "upload": "" }, "more_query": "", "note": { "table": { "original_text": "", "paper_name": "" }, "tip": { "confirm_del": "" } }, "read": { "contextmenu": { "add": "", "search": "" }, "form": { "keyword": "", "note_content": "", "note_title": "" }, "tip": { "add_tip": "", "add_tip_fail": "", "add_tip_ok": "", "auto_save": "", "click_note_list": "", "contextmenu_err": "", "del_confirm": "", "rating_1": "", "rating_2": "", "rating_3": "", "search_next": "", "search_prev": "", "search_zero": "" } }, "reading_online": "", "tip": "", "today_recommend": "", "unknown_error": "", "upload": { "form": { "author": "", "content": "", "profession": "", "remove": "", "school": "", "summary": "", "tag": "", "type": "", "upload": "", "upload_tip": "", "year": "" }, "tip": { "ok": "" } }, "user": "", "zhCN": "Simplified Chinese" } } } } }