oss-web-common 0.2.39 → 0.2.40-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (6) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +56 -56
  3. package/build/index.cjs.js +5019 -9184
  4. package/build/index.esm.js +4956 -9118
  5. package/build/index.js +5610 -10356
  6. package/package.json +149 -150
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2020 jasonj
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2020 jasonj
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
package/README.md CHANGED
@@ -1,57 +1,57 @@
1
- # oss-web-common
2
-
3
- 1. 安装
4
- ```shell
5
- yarn install
6
- ```
7
- 2. 启动
8
- ```shell
9
- yarn start
10
- ```
11
- 3. 调试
12
- ```shell
13
- yalc publish //在oss-web-common中需要执行,将包推到全局
14
- yalc push //在oss-web-common中需要执行,将更新的依赖推送到应用项目中
15
- // 在需要调试的项目中进行以下操作
16
- yalc add oss-web-common //在需要引入oss-web-common的项目中执行,将包依赖通过file形式加入到项目中
17
-
18
- yalc remove --all //在使用yalc依赖的项目中 移除依赖
19
- ```
20
-
21
- ## 注意
22
-
23
- 需要在start之后publish, 最终指向的文件在package.json中main字段指定
24
- ```shell
25
- {
26
- "main": "./dist/oss-web-common.umd.js",
27
- }
28
- ```
29
-
30
- ## List
31
-
32
- * createWebService
33
- > 用于创建proxy实例的方法,需要传入config
34
-
35
- * enmus
36
- > 包含EnumClass、EnumItemClass、rebuild
37
-
38
- * router
39
- > 包含Route, Switch, mapRoutes, buildRoutes
40
-
41
- * sqlServices
42
- > 用于sql下沉
43
-
44
- * ErrorBoundary
45
- > 错误页组件
46
-
47
- * getMicroUrl
48
- > 获取微应用url
49
-
50
- * PageContainer
51
- > PageContainer组件
52
-
53
- * locales
54
- > 国际化组件
55
-
56
- * useEnviroment
1
+ # oss-web-common
2
+
3
+ 1. 安装
4
+ ```shell
5
+ yarn install
6
+ ```
7
+ 2. 启动
8
+ ```shell
9
+ yarn start
10
+ ```
11
+ 3. 调试
12
+ ```shell
13
+ yalc publish //在oss-web-common中需要执行,将包推到全局
14
+ yalc push //在oss-web-common中需要执行,将更新的依赖推送到应用项目中
15
+ // 在需要调试的项目中进行以下操作
16
+ yalc add oss-web-common //在需要引入oss-web-common的项目中执行,将包依赖通过file形式加入到项目中
17
+
18
+ yalc remove --all //在使用yalc依赖的项目中 移除依赖
19
+ ```
20
+
21
+ ## 注意
22
+
23
+ 需要在start之后publish, 最终指向的文件在package.json中main字段指定
24
+ ```shell
25
+ {
26
+ "main": "./dist/oss-web-common.umd.js",
27
+ }
28
+ ```
29
+
30
+ ## List
31
+
32
+ * createWebService
33
+ > 用于创建proxy实例的方法,需要传入config
34
+
35
+ * enmus
36
+ > 包含EnumClass、EnumItemClass、rebuild
37
+
38
+ * router
39
+ > 包含Route, Switch, mapRoutes, buildRoutes
40
+
41
+ * sqlServices
42
+ > 用于sql下沉
43
+
44
+ * ErrorBoundary
45
+ > 错误页组件
46
+
47
+ * getMicroUrl
48
+ > 获取微应用url
49
+
50
+ * PageContainer
51
+ > PageContainer组件
52
+
53
+ * locales
54
+ > 国际化组件
55
+
56
+ * useEnviroment
57
57
  > 动态加载配置文件hook 接受参数 `configPath` 为配置文件路径