diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index dd84ea78..26ba8c5d 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -2,7 +2,7 @@ name: Bug report about: Create a report to help us improve title: '' -labels: '' +labels: 'bug' assignees: '' --- @@ -22,17 +22,3 @@ A clear and concise description of what you expected to happen. **Screenshots** If applicable, add screenshots to help explain your problem. - -**Desktop (please complete the following information):** - - OS: [e.g. iOS] - - Browser [e.g. chrome, safari] - - Version [e.g. 22] - -**Smartphone (please complete the following information):** - - Device: [e.g. iPhone6] - - OS: [e.g. iOS8.1] - - Browser [e.g. stock browser, safari] - - Version [e.g. 22] - -**Additional context** -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/bug_report_zh.md b/.github/ISSUE_TEMPLATE/bug_report_zh.md new file mode 100644 index 00000000..748ae4bc --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report_zh.md @@ -0,0 +1,23 @@ +--- +name: Bug 报告 +about: 创建一份 Bug 报告帮助我们优化产品 +title: '' +labels: 'bug' +assignees: '' + +--- + +**Bug 描述** +例如,当 xxx 时,xxx 功能不工作。 + +**复现步骤** +该 Bug 复现步骤如下 +1. +2. +3. + +**期望结果** +xxx 能工作。 + +**截屏** + diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index bbcbbe7d..dee496d4 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -2,7 +2,7 @@ name: Feature request about: Suggest an idea for this project title: '' -labels: '' +labels: 'enhancement' assignees: '' --- @@ -15,6 +15,3 @@ A clear and concise description of what you want to happen. **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. - -**Additional context** -Add any other context or screenshots about the feature request here. diff --git a/.github/ISSUE_TEMPLATE/feature_request_zh.md b/.github/ISSUE_TEMPLATE/feature_request_zh.md new file mode 100644 index 00000000..15c941ca --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request_zh.md @@ -0,0 +1,17 @@ +--- +name: 功能需求 +about: 优化和功能需求建议 +title: '' +labels: 'enhancement' +assignees: '' + +--- + +**请描述该需求尝试解决的问题** +例如,当 xxx 时,我总是被当前 xxx 的设计所困扰。 + +**请描述您认为可行的解决方案** +例如,添加 xxx 功能能够解决问题。 + +**考虑过的替代方案** +例如,如果用 xxx,也能解决该问题。 diff --git a/docker-compose.yml b/docker-compose.yml index c6c92339..ac5c2dab 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,7 +27,7 @@ services: # CRAWLAB_NOTIFICATION_MAIL_SERVER: smtp.exmaple.com # STMP server address STMP 服务器地址 # CRAWLAB_NOTIFICATION_MAIL_PORT: 465 # STMP server port STMP 服务器端口 # CRAWLAB_NOTIFICATION_MAIL_SENDEREMAIL: admin@exmaple.com # sender email 发送者邮箱 - # CRAWLAB_NOTIFICATION_MAIL_SENDEREIDENTITY: admin@exmaple.com # sender ID 发送者 ID + # CRAWLAB_NOTIFICATION_MAIL_SENDERIDENTITY: admin@exmaple.com # sender ID 发送者 ID # CRAWLAB_NOTIFICATION_MAIL_SMTP_USER: username # SMTP username SMTP 用户名 # CRAWLAB_NOTIFICATION_MAIL_SMTP_PASSWORD: password # SMTP password SMTP 密码 ports: diff --git a/frontend/.env.development b/frontend/.env.development index 580de54d..73ca1a55 100644 --- a/frontend/.env.development +++ b/frontend/.env.development @@ -1,3 +1,3 @@ NODE_ENV='development' VUE_APP_BASE_URL=http://localhost:8000 -VUE_APP_CRAWLAB_BASE_URL=http://api.crawlab.cn +VUE_APP_CRAWLAB_BASE_URL=https://api.crawlab.cn diff --git a/frontend/.env.production b/frontend/.env.production index d54deef7..d01edd25 100644 --- a/frontend/.env.production +++ b/frontend/.env.production @@ -1,3 +1,3 @@ NODE_ENV='production' VUE_APP_BASE_URL=/api -VUE_APP_CRAWLAB_BASE_URL=http://api.crawlab.cn +VUE_APP_CRAWLAB_BASE_URL=https://api.crawlab.cn diff --git a/frontend/.env.test b/frontend/.env.test index cc3d7823..e9aeafc9 100644 --- a/frontend/.env.test +++ b/frontend/.env.test @@ -1,3 +1,3 @@ NODE_ENV='test' VUE_APP_BASE_URL='http://localhost:8000' -VUE_APP_CRAWLAB_BASE_URL=http://api.crawlab.cn +VUE_APP_CRAWLAB_BASE_URL=https://api.crawlab.cn diff --git a/frontend/package.json b/frontend/package.json index 64d80294..b08c2689 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -26,6 +26,7 @@ "echarts": "^4.1.0", "element-ui": "2.13.0", "font-awesome": "^4.7.0", + "github-markdown-css": "^3.0.1", "js-cookie": "2.2.0", "normalize.css": "7.0.0", "nprogress": "0.2.0", diff --git a/frontend/src/App.vue b/frontend/src/App.vue index bf60dc0b..27fe283a 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -34,13 +34,7 @@ export default { } }, methods: {}, - async created () { - await this.$store.dispatch('setting/getSetting') - }, async mounted () { - const res = await this.$request.get('/version') - this.version = res.data.data - sessionStorage.setItem('v', this.version) window.setUseStats = (value) => { document.querySelector('.el-message__closeBtn').click() if (value === 1) { diff --git a/frontend/src/components/File/FileList.vue b/frontend/src/components/File/FileList.vue index 4bf76395..620481ca 100644 --- a/frontend/src/components/File/FileList.vue +++ b/frontend/src/components/File/FileList.vue @@ -30,7 +30,9 @@ -