Skip to content

Commit

Permalink
🆕 master('deploy')
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jun 1, 2022
0 parents commit a5d46ef
Show file tree
Hide file tree
Showing 578 changed files with 174,788 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This config is equivalent to both the '.circleci/extended/orb-free.yml' and the base '.circleci/config.yml'
version: 2.1

# Orbs are reusable packages of CircleCI configuration that you may share across projects, enabling you to create encapsulated, parameterized commands, jobs, and executors that can be used across multiple projects.
# See: https://circleci.com/docs/2.0/orb-intro/
orbs:
node: circleci/node@4.7.0

# Invoke jobs via workflows
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
workflows:
sample: # This is the name of the workflow, feel free to change it to better match your workflow.
# Inside the workflow, you define the jobs you want to run.
jobs:
- node/test:
# This is the node version to use for the `cimg/node` tag
# Relevant tags can be found on the CircleCI Developer Hub
# https://circleci.com/developer/images/image/cimg/node
version: '16.10'
# If you are using yarn, change the line below from "npm" to "yarn"
pkg-manager: yarn
32 changes: 32 additions & 0 deletions .cz-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
module.exports = {
//可选类型
types: [
{ value: 'feat', name: 'feat: 新功能' },
{ value: 'fix', name: 'fix: 修复' },
{ value: 'docs', name: 'docs: 文档变更' },
{ value: 'style', name: 'style: 代码格式(不影响代码运行的变动)' },
{
value: 'refactor',
name: 'refactor:重构(既不是增加feature),也不是修复bug',
},
{ value: 'perf', name: 'perf: 性能优化' },
{ value: 'test', name: 'test: 增加测试' },
{ value: 'chore', name: 'chore: 构建过程或辅助功能的变动' },
{ value: 'revert', name: 'revert: 回退' },
{ value: 'build', name: 'build: 打包' },
{ value: 'revert', name: 'revert: 回退' },
],
//消息步骤
messages: {
type: '请选择提交类型',
customScope: '请输入修改范围(可选)',
subject: '请简要描述提交(必填)',
body: '请输入详细描述(可选)',
footer: '请输入要关闭的issue(可选)',
confirmCommit: '确认以上信息提交?(y/n)',
},
//跳过问题
skipQuestion: ['body', 'footer'],
//subject文字长度默认是
subjectLimit: 72,
}
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
177 changes: 177 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
module.exports = {
root: true,
globals: {
moment: true,
Vue: true,
axios: true,
$: true,
Cookies: true,
downLink: true,
downloadFile: true,
downloadByLink: true,
_: true,
options: true,
Konva: true,
bcrypt: true,
BeFull: true,
JSONEditor: true,
VueAMap: true,
topology: true,
konva: true,
VCharts: true,
CountTo: true,
VueKonva: true,
Mock: true,
md5: true,
Base64: true,
ace: true,
mqtt: true,
COS: true,
paho: true,
Sortable: true,
vuex: true,
VueRouter: true,
clipboard: true,
lodash: true,
VueI18n: true,
XLSX: true,
colors: true,
FileSaver: true,
VueBaiduMap: true,
echarts: true,
screenfull: true,
qs: true,
Qs: true,
jsplumb: true,
JSEncrypt: true,
CodeMirror: true,
nprogress: true,
vueCodemirror: true,
vuedraggable: true,
elementChinaAreaData: true,
vueFlvPlayer: true,
EZUIKit: true,
fuzzy: true,
VueAliplayerV2: true,
},
env: {
node: true,
},
extends: ['plugin:vue/recommended', 'eslint:recommended', '@vue/prettier'],
parser: 'vue-eslint-parser',
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
ecmaFeatures: {
jsx: true,
},
},
rules: {
'no-unused-labels': 'off',
'no-unused-vars': 'off',
'no-undef': 'off',
'no-redeclare': 'off',
'no-unreachable': 'off',
'no-useless-escape': 'off',
'no-case-declarations': 'off',
'no-dupe-else-if': 'off',
'no-irregular-whitespace': 'off',
'no-prototype-builtins': 'off',
'no-empty': 'off',
'no-dupe-keys': 'off',
'no-self-assign': 'off',
'no-console': 'off',
'no-debugger': 'off',
'vue/no-unused-vars': 'off',
'vue/no-template-shadow': 'off',
'vue/no-unused-components': 'off',
'vue/no-useless-template-attributes': 'off',
'vue/multi-word-component-names': 'off',
'vue/no-v-html': 'off',
'vue/html-self-closing': [
'error',
{
html: {
void: 'any',
normal: 'any',
component: 'always',
},
svg: 'always',
math: 'always',
},
],
// Vue.js风格指南(https://cn.vuejs.org/v2/style-guide/)
// Vue组件排序
'vue/order-in-components': [
'warn',
{
order: [
'el',
'name',
'key',
'parent',
'functional',
['delimiters', 'comments'],
['components', 'directives', 'filters'],
'extends',
'mixins',
['provide', 'inject'],
'ROUTER_GUARDS',
'layout',
'middleware',
'validate',
'scrollToTop',
'transition',
'loading',
'inheritAttrs',
'model',
['props', 'propsData'],
'emits',
'setup',
'fetch',
'asyncData',
'data',
'head',
'computed',
'watch',
'watchQuery',
'LIFECYCLE_HOOKS',
'methods',
['template', 'render'],
'renderError',
],
},
],
// Vue属性排序
'vue/attributes-order': [
'warn',
{
order: [
'DEFINITION',
'LIST_RENDERING',
'CONDITIONALS',
'RENDER_MODIFIERS',
'GLOBAL',
'UNIQUE',
'TWO_WAY_BINDING',
'OTHER_DIRECTIVES',
'OTHER_ATTR',
'EVENTS',
'CONTENT',
],
alphabetical: true, //字母顺序
},
],
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)',
],
env: {
jest: true,
},
},
],
}
18 changes: 18 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
*.html text eol=lf
*.css text eol=lf
*.js text eol=lf
*.scss text eol=lf
*.vue text eol=lf
*.hbs text eol=lf
*.sh text eol=lf
*.md text eol=lf
*.json text eol=lf
*.yml text eol=lf
.browserslistrc text eol=lf
.editorconfig text eol=lf
.eslintignore text eol=lf
.gitattributes text eol=lf
LICENSE text eol=lf
*.conf text eol=lf
public/assets/js/* diff=nodiff
public/assets/css/* diff=nodiff
22 changes: 22 additions & 0 deletions .gitee/ISSUE_TEMPLATE.zh-CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#### 1. 描述问题:

请清晰的描述重现该 issue 的步骤,没有清晰重现步骤的 issue 将不会被修复。标有need repro的 issue 如果在 7 天内不提供相关步骤,将直接被关闭。

#### 2. 截图或视频:

可以的话,尽可能提供截图或视频来补充描述你的问题...

#### 3. 如何复现(请务必完整填写下面内容):

1. 你是如何使用 dgiot 的?
1. [dgiot@v4.5.3](https://gitee.com/dgiiot/dgiot/releases/v4.5.3)
2. [开发板](https://gitee.com/dgiiot/dgiot/tree/master/)
3. [其他版本](https://gitee.com/dgiiot/dgiot/releases)


#### 4. 操作平台:
1. 操作系统:
2. 浏览器:

#### 5. 操作步骤
请简单描述一下复现的操作步骤...
22 changes: 22 additions & 0 deletions .gitee/PULL_REQUEST_TEMPLATE.zh-CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#### 1. 描述问题:

请清晰的描述重现该 issue 的步骤,没有清晰重现步骤的 issue 将不会被修复。标有need repro的 issue 如果在 7 天内不提供相关步骤,将直接被关闭。

#### 2. 截图或视频:

可以的话,尽可能提供截图或视频来补充描述你的问题...

#### 3. 如何复现(请务必完整填写下面内容):

1. 你是如何使用 dgiot 的?
1. [dgiot@v4.5.3](https://gitee.com/dgiiot/dgiot/releases/v4.5.3)
2. [开发板](https://gitee.com/dgiiot/dgiot/tree/master/)
3. [其他版本](https://gitee.com/dgiiot/dgiot/releases)


#### 4. 操作平台:
1. 操作系统:
2. 浏览器:

#### 5. 操作步骤
请简单描述一下复现的操作步骤...
36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: 报告缺陷
about: 报告缺陷以帮助我们改进
labels: bug
assignees: h7ml
---

### 描述问题

<!-- 请尽量清晰精准地描述你碰到的问题。-->

```markdown
如果是解析渲染问题的话请在此处贴入 Markdown 原文
```

### 期待的结果

<!-- 请尽量清晰精准地描述你所期待的结果。-->

### 截屏或录像

<!--
如果可能,请尽量附加截图或录像来描述你遇到的问题。
(Windows 下推荐使用 [Screen2Gif](https://www.screentogif.com/) 进行录屏。如果是编辑器输入相关问题,使用 Screen2Gif 录制结束后请打开`图像 - 按键`)
-->

### 版本信息

- 版本:
- 操作系统:
- 浏览器:

### 其他信息

<!-- 请提供其他附加信息帮助我们诊断问题。 -->
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: dgiot issues template
url: https://github.com/dgiot
about: dgiot
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: 请求新功能
about: 提出你期待的功能特性
labels: Feature
assignees: h7ml
---

### 你在什么场景下需要该功能?

<!-- 请尽量清晰精准地描述你期待的功能和应用场景。-->

### 描述最优的解决方案

<!-- 请尝试描述最优的解决方案,也许已经有类似软件实现了该特性,也请列出给我们参考。-->

### 描述候选解决方案

<!-- 请尽量清晰精准地描述你能接受的候选解决方案。-->

### 其他信息

<!-- 请提供关于该功能建议的其他附加信息。-->
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/need-help-issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: Need help issue
about: Question for use(问题求助)
title: ''
labels: question
assignees: h7ml
---

**Question (问题描述)**
How to use component `s-table` paging

**Describe the solution you'd like (你期待的是什么?)**
A clear and concise description of what you want to happen.

**Additional context(附加信息)**
Add any other context or screenshots about the feature request here.
Loading

0 comments on commit a5d46ef

Please sign in to comment.