From 30e4c27a6a2b86b1b9774296c9416aeb6a568a3e Mon Sep 17 00:00:00 2001 From: HRxiaohu Date: Fri, 4 Aug 2023 21:45:43 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=83=20docs:=20=E5=B4=A9=E6=BA=83?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=20ISSUE=20=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/ISSUE_TEMPLATE/CRASH-UPLOAD.yml | 59 +++++++++++++++++++++++++ components/analyzer.vue | 10 +++-- docs/analyzer.md | 4 +- 3 files changed, 68 insertions(+), 5 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/CRASH-UPLOAD.yml diff --git a/.github/ISSUE_TEMPLATE/CRASH-UPLOAD.yml b/.github/ISSUE_TEMPLATE/CRASH-UPLOAD.yml new file mode 100644 index 00000000..21aebd71 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/CRASH-UPLOAD.yml @@ -0,0 +1,59 @@ +name: "提交崩溃" +description: 上传未收录的崩溃类型 +title: "📄[UPLOAD-CRASH] 请输入标题" +labels: [ + "崩溃提交" +] +body: + - type: textarea + id: description + attributes: + label: "描述问题" + description: 请简单描述您遇到的问题 + placeholder: 问题描述…… + validations: + required: true + - type: textarea + id: reprod + attributes: + label: "您正在进行的操作是?" + description: 请详细描述崩溃发生时你正在做的事 + value: | + 1. + 2. + 3. + 4. 游戏崩溃 + render: bash + validations: + required: true + - type: textarea + id: logs + attributes: + label: "崩溃日志" + description: 请将您的崩溃日志粘贴到此处 + render: bash + validations: + required: true + - type: dropdown + id: os + attributes: + label: "操作系统" + description: 您使用的操作系统是? + multiple: true + options: + - Windows + - Linux + - Mac + validations: + required: true + - type: dropdown + id: side + attributes: + label: "客户端 / 服务端" + description: 出现崩溃的位置是客户端 / 服务端? + multiple: false + options: + - 客户端 + - 服务端 + validations: + required: true \ No newline at end of file diff --git a/components/analyzer.vue b/components/analyzer.vue index de759061..954b0d5c 100644 --- a/components/analyzer.vue +++ b/components/analyzer.vue @@ -165,11 +165,13 @@ function StartAnalysis(file, ext) { } } function LogAnalysis(log) { - console.warn(launcher); - console.log(log); - ShowAnalysisResult('Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.') + if(''){} + else{ + ShowAnalysisResult('本工具还未收录您所遇到的错误,请点击下方按钮前往 Github 反馈。','https://github.com/GlobeMC/crashmc.com/issues/new') + } } -function ShowAnalysisResult(msg) { +function ShowAnalysisResult(msg,result_url) { + redirect_url.value = redirect_url; document.getElementById('analysis_result_main').style.display = 'block'; document.getElementById('analysis_result_msg').innerText = msg; diff --git a/docs/analyzer.md b/docs/analyzer.md index 4419b909..7cb8db1c 100644 --- a/docs/analyzer.md +++ b/docs/analyzer.md @@ -17,11 +17,13 @@ import analyzer from '../components/analyzer.vue' :::tip 帮助 如分析模块长时间未响应请刷新页面重试。 +如果分析工具提供的解决方案无效,或者本工具还未收录您遇到的错误时,请在页面下方留言。 +本工具仍在起步阶段,我们会不断优化用户体验。 ::: :::warning 隐私声明 -所有文件的分析仅会在本地进行,错误原因将会上传到云端以供优化本模块。 +所有文件的分析仅会在本地进行,部分错误信息将会上传到云端。 ::: \ No newline at end of file