diff --git a/src/components/App.vue b/src/components/App.vue index 3272609..02ddf9c 100644 --- a/src/components/App.vue +++ b/src/components/App.vue @@ -13,6 +13,7 @@ > Built with vue-cli + based on + vue-issue-helper · - Check out source on GitHub + Check out source on GitHub - - - diff --git a/src/components/BugReport.vue b/src/components/BugReport.vue index 16671b2..aa6946a 100644 --- a/src/components/BugReport.vue +++ b/src/components/BugReport.vue @@ -17,7 +17,6 @@ @@ -125,7 +124,7 @@ export default { expected: '', actual: '', extra: '', - browserAndOS: '' + platformAndOS: '' }, versions: [], loadingVersion: false, @@ -172,11 +171,15 @@ export default { await this.fetchVersions(page + 1) } else { this.loadingVersion = false + + if(this.versions.length === 0) { + this.versions.push({ value: 'N/A' }) + } } }, generate () { - const { version, reproduction, steps, expected, actual, extra, browserAndOS } = this.attrs + const { version, reproduction, steps, expected, actual, extra, platformAndOS } = this.attrs return generate(` ### Version @@ -184,9 +187,10 @@ ${version} ${ reproduction ? `### Reproduction link -[${reproduction}](${reproduction})` : ``}${ - browserAndOS ? `### Browser and OS info -${browserAndOS}` : `` +[${reproduction}](${reproduction})` : ``} +${ + platformAndOS ? `### Platform and OS info +${platformAndOS}` : `` } ### Steps to reproduce diff --git a/src/config/repos.js b/src/config/repos.js index c58bda6..6228660 100644 --- a/src/config/repos.js +++ b/src/config/repos.js @@ -1,11 +1,6 @@ const repos = [ - { id: 'vuejs/vue', name: 'vue' }, - { id: 'vuejs/vuex', name: 'vuex' }, - { id: 'vuejs/vue-router', name: 'vue-router' }, - { id: 'vuejs/vue-loader', name: 'vue-loader' }, - { id: 'vuejs/vue-test-utils', name: 'vue-test-utils' }, - { id: 'vuejs/vue-cli', name: 'vue-cli' }, - { id: 'vuejs/vue-devtools', name: 'vue-devtools' } + { id: 'nativescript-vue/nativescript-vue', name: 'nativescript-vue' }, + { id: 'nativescript-vue/vue-cli-template', name: 'vue-cli-template' }, ] export { repos } diff --git a/src/helpers/generate.js b/src/helpers/generate.js index 3252a77..7cec9ad 100644 --- a/src/helpers/generate.js +++ b/src/helpers/generate.js @@ -2,7 +2,7 @@ import marked from 'marked' import copy from 'copy-to-clipboard' export function generate (markdown) { - const withMarker = `${markdown}\n\n` + const withMarker = `${markdown}\n\n` copy(withMarker) diff --git a/src/i18n/locales/en/index.js b/src/i18n/locales/en/index.js index 8b45302..0fe0d33 100644 --- a/src/i18n/locales/en/index.js +++ b/src/i18n/locales/en/index.js @@ -20,8 +20,8 @@ module.exports = { 'repro-modal-title': 'About Reproductions', 'repro-modal': require('./repro-modal.md').default, - 'browser-and-os-title': 'Browser and OS info', - 'browser-and-os-subtitle': 'Please specify browser name & version, OS name & version. Example: Chrome 62 / Windows 10', + 'platform-and-os-title': 'Platform and OS info', + 'platform-and-os-subtitle': 'Please specify platform name & version, NativeScript version, OS name & version. Example: Android 7.0 / NativeScript 4.0 / Windows 10', 'steps-title': 'Steps to reproduce', 'steps-subtitle': require('./steps-subtitle.md').default, diff --git a/src/i18n/locales/en/intro.md b/src/i18n/locales/en/intro.md index 55fc280..a642c76 100644 --- a/src/i18n/locales/en/intro.md +++ b/src/i18n/locales/en/intro.md @@ -1,13 +1,11 @@ ## Before You Start... -The issue list is reserved exclusively for bug reports and feature requests. That means we do not accept usage questions. If you open an issue that does not conform to the requirements, **it will be closed immediately**.
[Why are we so strict about this?](#modal) +The issue list is mostly reserved for bug reports and feature request. -For usage questions, please use the following resources: +For usage questions, please use the following resources before resorting to opening an issue: -- Read the [docs](https://vuejs.org/guide/) -- Watch [video tutorials](https://laracasts.com/series/learn-vue-2-step-by-step) -- Ask on the [forums](https://forum.vuejs.org/) -- Ask on the [chat](https://chat.vuejs.org) -- Look for / ask questions on [Stack Overflow](https://stackoverflow.com/questions/ask?tags=vue.js) +- Read the [docs](https://nativescript-vue.org/en/docs/introduction/) +- Ask on the [#vue channel in slack](https://developer.telerik.com/wp-login.php?action=slack-invitation) +- Ask on the [nativescript forums](https://discourse.nativescript.org/) -Also try to search for your issue - it may have already been answered or even fixed in the development branch. However, if you find that an old, closed issue still persists in the latest version, you should open a new issue using the form below instead of commenting on the old issue. +Also try to search for your issue - it may have already been answered or even fixed in the meantime. However, if you find that an old, closed issue still persists in the latest version, you should open a new issue using the form below instead of commenting on the old issue. diff --git a/src/i18n/locales/en/rationale-subtitle.md b/src/i18n/locales/en/rationale-subtitle.md index e1f3698..a85a1da 100644 --- a/src/i18n/locales/en/rationale-subtitle.md +++ b/src/i18n/locales/en/rationale-subtitle.md @@ -1,3 +1,3 @@ Explain your use case, context, and rationale behind this feature request. More importantly, what is the **end user experience** you are trying to build that led to the need for this feature? -An important design goal of Vue is keeping the API surface small and straightforward. In general, we only consider adding new features that solve a problem that cannot be easily dealt with using existing APIs (i.e. not just an alternative way of doing things that can already be done). The problem should also be common enough to justify the addition. +An important design goal of NativeScript-Vue is keeping the API surface small and straightforward. In general, we only consider adding new features that solve a problem that cannot be easily dealt with using existing APIs (i.e. not just an alternative way of doing things that can already be done). The problem should also be common enough to justify the addition. diff --git a/src/i18n/locales/en/repro-modal.md b/src/i18n/locales/en/repro-modal.md index 39fc415..57deeb5 100644 --- a/src/i18n/locales/en/repro-modal.md +++ b/src/i18n/locales/en/repro-modal.md @@ -14,10 +14,10 @@ Some users would give us a link to a real project and hope we can help them figu - You are already familiar with your codebase, but we are not. It is extremely time-consuming to hunt a bug in a big and unfamiliar codebase. -- The problematic behavior may very well be caused by your code rather than by a bug in Vue. +- The problematic behavior may very well be caused by your code rather than by a bug in Nativescript-Vue. -A **minimal** reproduction means it demonstrates the bug, and the bug only. It should only contain the bare minimum amount of code that can reliably cause the bug. Try your best to get rid of anything that aren't directly related to the problem. +A **minimal** reproduction means it demonstrates the bug, and the bug only. It should only contain the bare minimum amount of code that can reliably cause the bug. Try your best to get rid of anything that isn't directly related to the problem. ##### How to create a repro -Unless your bug can only be reproduced with a built setup, we prefer reproductions made with online coding services like [JSFiddle](https://jsfiddle.net/chrisvfritz/50wL7mdz/), [JSBin](https://jsbin.com) or [Codepen](https://codepen.io). If your bug involves a build setup, you can create a project using [vue-cli](https://github.com/vuejs/vue-cli) and provide the link to a GitHub repository. +Unless your bug can only be reproduced with a built setup, we prefer reproductions made with [NativeScript-Playground](https://play.nativescript.org/). If your bug involves a build setup, you can create a project using any of the [officially supported templates](https://nativescript-vue.org/en/docs/getting-started/templates/) and provide the link to a GitHub repository. diff --git a/src/i18n/locales/en/repro-subtitle.md b/src/i18n/locales/en/repro-subtitle.md index dc4a290..022478c 100644 --- a/src/i18n/locales/en/repro-subtitle.md +++ b/src/i18n/locales/en/repro-subtitle.md @@ -1,5 +1,5 @@ -If the repro does not not need a build setup, please provide a link to a [JSFiddle](https://jsfiddle.net/chrisvfritz/50wL7mdz/), [JSBin](https://jsbin.com/) or [CodePen](https://codepen.io). If it requires a build setup, you can use [CodeSandbox](https://codesandbox.io/s/vue) or provide a GitHub repo. +If the repro does not not need a build setup, please provide a link to a [NativeScript Playground](https://play.nativescript.org/). If it requires a build setup or native plugins which are not available on the playground, you can provide a GitHub repo. [What is a *minimal reproduction*, and why is it required?](#modal) -Please do not just fill in a random link. We will close your issue if you do that. +Please do not just fill in a random link. diff --git a/src/i18n/locales/zh-cn/index.js b/src/i18n/locales/zh-cn/index.js deleted file mode 100644 index 8b2a7b7..0000000 --- a/src/i18n/locales/zh-cn/index.js +++ /dev/null @@ -1,53 +0,0 @@ -module.exports = { - _label: '中文', - - // intro - 'intro': require('./intro.md').default, - 'intro-modal-title': '为什么要有这么严格的 issue 规定', - 'intro-modal': require('./intro-modal.md').default, - - // bug report - 'repo-title': '相关库', - 'repo-subtitle': '请确保将 issue 发往相关的仓库。', - 'type-title': '这是一个', - 'title-title': 'Issue 标题', - - 'version-title': '版本', - 'version-subtitle': '请检查问题是否存在于 Vue 的最新版本中。', - - 'repro-title': '重现链接', - 'repro-subtitle': require('./repro-subtitle.md').default, - 'repro-modal-title': '关于重现', - 'repro-modal': require('./repro-modal.md').default, - - 'browser-and-os-title': '浏览器和操作系统信息', - 'browser-and-os-subtitle': '请写明浏览器和操作系统的名称/版本,例如: Chrome 62 / Windows 10', - - 'steps-title': '重现步骤', - 'steps-subtitle': require('./steps-subtitle.md').default, - - 'expected-title': '期望的结果是什么?', - 'actual-title': '实际的结果是什么?', - 'extra-title': '补充说明(可选)', - 'extra-subtitle': '比如:遇到这个 bug 的业务场景、上下文。', - - // feature request - 'rationale-title': '这个功能解决了什么问题?', - 'rationale-subtitle': require('./rationale-subtitle.md').default, - - 'proposal-title': '你期望的 API 是怎样的?', - 'proposal-subtitle': require('./proposal-subtitle.md').default, - - // preview - 'preview': '预览', - 'preview-title': '预览', - 'create': '创建 Issue', - - // misc - 'bug-report': '错误报告', - 'feature-request': '功能要求', - 'similar-issues': '类似的 issue', - 'show-more': '展开', - 'show-less': '收起', - 'drop-warn': '由于 GitHub API 的限制,这里不支持图片拖拽上传功能。但是你可以先创建 issue,然后在 GitHub 的界面中上传需要的图片。' -} diff --git a/src/i18n/locales/zh-cn/intro-modal.md b/src/i18n/locales/zh-cn/intro-modal.md deleted file mode 100644 index 37331df..0000000 --- a/src/i18n/locales/zh-cn/intro-modal.md +++ /dev/null @@ -1,12 +0,0 @@ -维护开源项目,尤其是流行的项目,是[非常辛苦的工作](https://nolanlawson.com/2017/03/05/what-it-feels-like-to-be-an-open-source-maintainer/)。随着 Vue 在社区越来越受欢迎,我们每天都在收到越来越多的问题, bug 报告,功能需求和 Pull Requests。 - -作为一个完全免费使用的开源项目,Vue 的维护人手是有限的。这意味着想要让项目长期的可持续发展,我们必须: - -1. 给予更具体的工作更高的优先级(比如 bug 的修复和新功能的开发); -2. 提高 issue 处理的效率。 - -针对 (1),我们决定将 GitHub issue 列表严格地限制用于有具体目标和内容的工作。问题和讨论应当发送到更适合它们的场合。 - -针对 (2),我们发现影响 issue 处理效率的最大因素是用户在开 issue 时没有提供足够的信息。这导致我们需要花费大量的时间去跟用户来回沟通,只为了获得一些基本信息好让我们对 issue 进行真正的分析。这正是我们开发这个 app 的理由:我们要确保每个新 issue 都提供了必需的信息,这样能节省维护者和开发者双方的时间。 - -最重要的是,请明白一件事:开源项目的用户和维护者之间并不是甲方和乙方的关系,issue 也不是客服。在开 issue 的时候,请抱着一种『一起合作来解决这个问题』的心态,不要期待我们单方面地为你服务。 diff --git a/src/i18n/locales/zh-cn/intro.md b/src/i18n/locales/zh-cn/intro.md deleted file mode 100644 index eb6f6ff..0000000 --- a/src/i18n/locales/zh-cn/intro.md +++ /dev/null @@ -1,15 +0,0 @@ -## 在你开始之前... - -首先,虽然我们为了中文用户的方便提供了中文的表单,但在填写时请**尽量使用英文**。Vue 的维护团队并不全是中国人,GitHub 社区也以外国用户为主。如果你想让尽可能多的人能够看懂你的 issue,就请尽量用英文。 - -其次,Vue 的 issue 列表只接受 bug 报告或是新功能请求 (feature requests)。这意味着**我们不接受用法问题**。如果你开的 issue 不符合规定,它将会被**立刻关闭**。
[为什么要这么严格?](#modal) - -对于使用中遇到的问题,请使用以下资源: - -- 仔细阅读 [文档](https://cn.vuejs.org/v2/guide/) -- 观看 [视频教程](https://laracasts.com/series/learn-vue-2-step-by-step) (英文) -- 到 [官方论坛](https://forum.vuejs.org/) 提问(英文) -- 在 [Stack Overflow](https://stackoverflow.com/questions/ask?tags=vue.js) (英文) 或是 [SegmentFault](https://segmentfault.com/t/vue.js)(中文)搜索和提问 -- 到 [中文社区](http://www.vue-js.com/) 提问(非官方) - -最后,在开 issue 前,可以先搜索以下以往的旧 issue - 你遇到的问题可能已经有人提了,也可能已经在最新版本中被修正。注意:如果你发现一个已经关闭的旧 issue 在最新版本中仍然存在,请不要在旧 issue 下面留言,而应该用下面的表单开一个新的 issue。 diff --git a/src/i18n/locales/zh-cn/proposal-subtitle.md b/src/i18n/locales/zh-cn/proposal-subtitle.md deleted file mode 100644 index 216a617..0000000 --- a/src/i18n/locales/zh-cn/proposal-subtitle.md +++ /dev/null @@ -1 +0,0 @@ -描述一下你期望这个新功能的 API 是如何使用的,并提供一些代码示例。请用 [Markdown](https://guides.github.com/features/mastering-markdown/) 格式化你的代码片段。 diff --git a/src/i18n/locales/zh-cn/rationale-subtitle.md b/src/i18n/locales/zh-cn/rationale-subtitle.md deleted file mode 100644 index 52e6a80..0000000 --- a/src/i18n/locales/zh-cn/rationale-subtitle.md +++ /dev/null @@ -1,3 +0,0 @@ -请尽可能详尽地说明这个需求的用例和场景。最重要的是:解释清楚是怎样的**用户体验需求**催生了这个功能上的需求。 - -Vue 的一个重要设计原则是保持 API 的简洁和直接。通常来说,我们只考虑添加在现有的 API 下无法轻松实现的功能。新功能的用例也应当足够常见。 diff --git a/src/i18n/locales/zh-cn/repro-modal.md b/src/i18n/locales/zh-cn/repro-modal.md deleted file mode 100644 index 5136a45..0000000 --- a/src/i18n/locales/zh-cn/repro-modal.md +++ /dev/null @@ -1,23 +0,0 @@ -所谓『重现』,就是一段可以运行并展示一个 bug 如何发生的代码。 - -##### 文字是不够的 - -如果你遇到一个问题,但是只提供了一些文字描述,我们是不可能修复这个 bug 的。首先,文字在描述技术问题时的表达难度和不精确性;其次,问题的真实原因有很多可能,它完全有可能是一个你根本没有提及的因素导致的。重现是唯一能够可靠地让我们理解问题本质的方式。 - -##### 重现必须是可运行的 - -**截图和视频不是重现**。它们仅仅证明了 bug 的存在,但却不能提供关于 bug 是如何发生的信息。只有可运行的代码提供了完整的上下文,并让我们可以进行真正的 debug 而不是空想和猜测。当然,在提供的重现的前提下,视频或是 gif 动画可以帮助解释一些比较难用文字描述的交互行为。 - -##### 重现应当尽量精简 - -有些用户会直接给我们一整个项目的代码,然后希望我们帮忙找出问题所在。此类请求我们通常不予接受,因为: - -- 你对你的项目的代码结构可能已经非常熟悉,但我们并不是。阅读、运行、分析一个完全陌生的项目是极其耗费时间和精力的。 - -- 由于涉及了大量业务代码,问题可能是你的代码错误,而不是 Vue 的 bug 所导致的。 - -一个最小化的重现意味着它精确地定位了 bug 本身 - 它应当只包含能够触发 bug 的**最少量**的代码。你应当尽可能地剔除任何跟该 bug 无关的部分。 - -##### 如何提供一个重现 - -除非你的 bug 只有在构建工具下才能重现,否则我们建议使用诸如 [JSFiddle](https://jsfiddle.net/chrisvfritz/50wL7mdz/), [JSBin](https://jsbin.com) 或是 [Codepen](https://codepen.io) 这样的在线代码服务来提供重现。如果你的 bug 必须用到构建工具,那么我们建议使用 [vue-cli](https://github.com/vuejs/vue-cli) 来搭建一个新项目,推送到 GitHub 并提供仓库的链接。 diff --git a/src/i18n/locales/zh-cn/repro-subtitle.md b/src/i18n/locales/zh-cn/repro-subtitle.md deleted file mode 100644 index 59a89b6..0000000 --- a/src/i18n/locales/zh-cn/repro-subtitle.md +++ /dev/null @@ -1,5 +0,0 @@ -如果重现不需要构建工具,请提供一个尽可能精简的 [JSFiddle](https://jsfiddle.net/chrisvfritz/50wL7mdz/), [JSBin](https://jsbin.com/) 或是 [CodePen](https://codepen.io) 链接。如果需要构建工具,可以使用 [CodeSandbox](https://codesandbox.io/s/vue) 或是提供一个 GitHub 仓库的链接。 - -[什么是*最小化重现*,为什么这是必需的?](#modal) - -请不要乱填一个链接,那只会让你的 issue 被直接关闭。 diff --git a/src/i18n/locales/zh-cn/steps-subtitle.md b/src/i18n/locales/zh-cn/steps-subtitle.md deleted file mode 100644 index 2e06613..0000000 --- a/src/i18n/locales/zh-cn/steps-subtitle.md +++ /dev/null @@ -1 +0,0 @@ -打开重现后,我们需要执行哪些操作才能让 bug 出现?简洁清晰的重现步骤能够帮助我们更迅速地定位问题所在。支持使用 [Markdown](https://guides.github.com/features/mastering-markdown/) 来格式化列表或是代码片段。 diff --git a/src/index.html b/src/index.html index 092997c..c5d1044 100644 --- a/src/index.html +++ b/src/index.html @@ -2,10 +2,11 @@ - Vue Issue Helper - + NativeScript-Vue Issue Helper + +
diff --git a/src/style/vars.styl b/src/style/vars.styl index b44deb9..305f2ce 100644 --- a/src/style/vars.styl +++ b/src/style/vars.styl @@ -1 +1,11 @@ $page-width = 900px +$vue-color-light = #fff +$vue-color-light-neutral = #DDE1E9 +$vue-color-dark-neutral = #3C495E +$vue-color-primary = #53BA82 + +$vue-color-accent = #6806C1 +$vue-color-danger = #e83030 +$vue-color-warning = #ea6e00 +$vue-color-info = #03c2e6 +$vue-color-success = #42b983 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy