Skip to content

Commit 0a1429c

Browse files
committed
chore: move files from shell monorepo here
1 parent ffd8ffe commit 0a1429c

File tree

763 files changed

+39032
-5286
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

763 files changed

+39032
-5286
lines changed

.bowerrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
root = true
44

5-
[*.{html,js,ts,css,scss}]
5+
[*.{js,ts,tsx,vue,css,scss,html,yml,md,json}]
66
charset = utf-8
77
indent_style = space
88
indent_size = 2

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package.json
2+
*-lock.json
3+
.eslintrc.json
4+
dist

.eslintrc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"root": true,
3+
"extends": ["@ntks/eslint-config", "plugin:react/recommended", "plugin:react/jsx-runtime"],
4+
"plugins": ["react"],
5+
"parserOptions": {
6+
"ecmaFeatures": {
7+
"experimentalObjectRestSpread": true,
8+
"jsx": true
9+
},
10+
"sourceType": "module"
11+
}
12+
}

.gitignore

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,22 @@
11
*.log
22

3+
.DS_Store
34
.*-tmp
45
.*-cache
5-
.DS_Store
6+
.cache
7+
.npmrc
68
.git
9+
.gitmodules
710
.idea
811
.jekyll-metadata
912
.tmp
13+
.umi
1014

1115
_site
1216

1317
bower_components
1418
node_modules
1519
dist
1620

21+
/external
1722
/backup
18-
19-
/site/_adaptors/vendor
20-
/site/_admin/bower_components
21-
/site/_admin/vendor
22-
/site/_cookbook/_book
23-
24-
/src/vendors
25-
26-
/test/assets
27-
/test/jquery/assets
28-
/test/vue/*.bundle.js

.npmignore

Lines changed: 0 additions & 28 deletions
This file was deleted.

.prettierignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
**/*.md
2+
**/*.svg
3+
**/*.ejs
4+
**/*.html
5+
package.json
6+
.umi
7+
.umi-production
8+
.umi-test

.prettierrc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"printWidth": 100,
3+
"useTabs": false,
4+
"tabWidth": 2,
5+
"semi": true,
6+
"singleQuote": true,
7+
"jsxSingleQuote": true,
8+
"quoteProps": "as-needed",
9+
"trailingComma": "all",
10+
"bracketSpacing": true,
11+
"jsxBracketSameLine": false,
12+
"arrowParens": "avoid",
13+
"vueIndentScriptAndStyle": false,
14+
"endOfLine": "auto",
15+
"overrides": [
16+
{
17+
"files": ".prettierrc",
18+
"options": { "parser": "json" }
19+
}
20+
]
21+
}

.prettierrc.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

.stylelintignore

Whitespace-only changes.

.stylelintrc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
defaultSeverity: "error",
3+
extends: ["@ntks/stylelint-config"],
4+
};

.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "pwa-chrome",
9+
"request": "launch",
10+
"name": "Launch Chrome against localhost",
11+
"url": "http://localhost:8080",
12+
"webRoot": "${workspaceFolder}"
13+
}
14+
]
15+
}

.vscode/settings.json

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
{
2-
"editor.tabSize": 2,
32
"editor.trimAutoWhitespace": true,
4-
"editor.formatOnSave": true
3+
"editor.codeActionsOnSave": {
4+
"source.fixAll": true
5+
},
6+
"[javascript]": {
7+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
8+
},
9+
"[typescript]": {
10+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
11+
},
12+
"[typescriptreact]": {
13+
"editor.defaultFormatter": "esbenp.prettier-vscode",
14+
"editor.formatOnSave": true
15+
},
16+
"[vue]": {
17+
"editor.defaultFormatter": "octref.vetur"
18+
},
19+
"vetur.format.defaultFormatter.ts": "vscode-typescript"
520
}

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# [Handie](https://ourai.github.io/handie/)
1+
# [Handie](https://handiejs.github.io/)
22

3-
## 为何要有这个
3+
在运行时库/框架无关的核心 [`@handie/runtime-core`](https://www.npmjs.com/package/@handie/runtime-core) 的基础上针对不同的运行时视图库/框架进行适配封装的**渐进式配置驱动企业级中后台前端应用开发解决方案**
4+
5+
## 动机
46

57
技术在发展,业务场景也在不断地变化,要在一家企业中始终如一地使用同一套技术几乎是不可能的。
68

79
在使用不同的技术开发了多个应用之后,让其他未接触过相关技术的人来接手开发时,不仅要熟悉业务,还要花时间去了解学习相关技术并理解原有代码。
810

911
熟悉业务是不可避免的,但在业务开发中由于切换技术栈所带来的成本是否能够尽可能地降低呢?答案必然是肯定的!这就是 Handie 所存在的意义!
1012

11-
## 如何解决问题
12-
1313
Handie 的目标不是统一技术栈,更不是统一界面风格,而是——
1414

1515
- 为做业务开发的前端开发人员提供在任何技术栈中都一致的开发体验,减少切换技术栈的成本;
@@ -23,6 +23,18 @@ Handie 的目标不是统一技术栈,更不是统一界面风格,而是—
2323
- 大量的 Sass mixin;
2424
- 自定义主题机制。
2525

26-
## 怎么反馈问题
26+
当前已适配 [Vue 2.x](https://v2.vuejs.org/)[React](https://reactjs.org),并且仅支持 class component 的写法;对 Vue 2.x 的 composition API、[Vue 3.x](https://v3.vuejs.org/)[React Hooks](https://reactjs.org/docs/hooks-intro.html) 和其他运行时库/框架的支持以及各种酷炫实用的功能还在计划中。
27+
28+
## 使用
29+
30+
如果你想在体验中理解 Handie 的魅力,或想成为贡献者——
31+
32+
首先,将本仓库 clone 到本地,并确保 Node.js 的版本在 14,最好是 `14.15.3`
33+
34+
`npm i` 安装好依赖后 `npm start` 会启动 Vue 应用(预览或调试 React 应用需输入 `npm start react`)。启动成功不会自动打开浏览器,要自己手动输入地址哦!
35+
36+
如果你想使用 Handie 帮助自己或团队便捷并快速地开发页面——
37+
38+
在业务项目中 `npm i handie-vue``npm i handie-react`
2739

28-
如果你有问题要反馈或什么好的建议,可以提交 [issue](https://github.com/ourai/handie/issues) 或钉钉联系[欧雷](dingtalk://dingtalkclient/action/sendmsg?dingtalk_id=ourairyu)
40+
更多请见[在线文档](https://handiejs.github.io/guides/intro/)

bower.json

Lines changed: 0 additions & 36 deletions
This file was deleted.

build/partials/banner.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

build/scripts/ascii.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

build/scripts/clean.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

build/scripts/copy.js

Lines changed: 0 additions & 36 deletions
This file was deleted.

build/scripts/helper.js

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)