@ledvance/group-ui-biz-bundle 1.0.0
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.
- package/.babelrc +31 -0
- package/.eslintignore +6 -0
- package/.eslintrc.js +27 -0
- package/.prettierignore +0 -0
- package/.prettierrc.js +1 -0
- package/.versionrc +5 -0
- package/package.json +73 -0
- package/rn-cli.config.js +8 -0
- package/src/modules/mood/AddMoodPage.tsx +826 -0
- package/src/modules/mood/DynamicMoodEditorPage.tsx +547 -0
- package/src/modules/mood/MoodItem.tsx +114 -0
- package/src/modules/mood/MoodPage.tsx +332 -0
- package/src/modules/mood/RecommendMoodItem.tsx +75 -0
- package/src/modules/mood/SceneAction.ts +459 -0
- package/src/modules/mood/SceneInfo.ts +886 -0
- package/src/modules/mood/StaticMoodEditorPage.tsx +251 -0
- package/src/modules/mood/tools.ts +12 -0
- package/src/modules/select/SelectPage.d.ts +12 -0
- package/src/modules/select/SelectPage.tsx +139 -0
- package/src/modules/time_schedule/Interface.ts +85 -0
- package/src/modules/time_schedule/ScheduleCard.tsx +111 -0
- package/src/modules/time_schedule/TimeScheduleActions.ts +81 -0
- package/src/modules/time_schedule/TimeScheduleDetailPage.tsx +704 -0
- package/src/modules/time_schedule/TimeSchedulePage.tsx +246 -0
- package/src/modules/timer/TimerAction.d.ts +12 -0
- package/src/modules/timer/TimerAction.ts +150 -0
- package/src/modules/timer/TimerPage.d.ts +2 -0
- package/src/modules/timer/TimerPage.tsx +351 -0
- package/src/navigation/Routers.d.ts +5 -0
- package/src/navigation/Routers.ts +97 -0
- package/src/navigation/tools.d.ts +0 -0
- package/src/navigation/tools.ts +0 -0
- package/src/res/GroupBizRes.ts +4 -0
- package/src/res/materialiconsFilledCancel.png +0 -0
- package/src/res/materialiconsFilledCancel@2x.png +0 -0
- package/src/res/materialiconsFilledCancel@3x.png +0 -0
- package/src/res/materialiconsOutlinedArrowsNavAddBox.png +0 -0
- package/src/res/materialiconsOutlinedArrowsNavAddBox@2x.png +0 -0
- package/src/res/materialiconsOutlinedArrowsNavAddBox@3x.png +0 -0
- package/tsconfig.json +51 -0
package/.babelrc
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"presets": ["module:metro-react-native-babel-preset"],
|
|
3
|
+
"plugins": [
|
|
4
|
+
["@babel/plugin-proposal-decorators", { "legacy": true }],
|
|
5
|
+
["module-resolver", {
|
|
6
|
+
"cwd": "babelrc",
|
|
7
|
+
"root": ["./src"],
|
|
8
|
+
"extensions": [
|
|
9
|
+
".ts",
|
|
10
|
+
".tsx",
|
|
11
|
+
".js",
|
|
12
|
+
".jsx",
|
|
13
|
+
".json"
|
|
14
|
+
],
|
|
15
|
+
"alias": {
|
|
16
|
+
"@api": "./src/api",
|
|
17
|
+
"@components": "./src/components",
|
|
18
|
+
"@config": "./src/config",
|
|
19
|
+
"@i18n": "./src/i18n",
|
|
20
|
+
"@models": "./src/models",
|
|
21
|
+
"@res": "./src/res",
|
|
22
|
+
"@utils": "./src/utils"
|
|
23
|
+
}
|
|
24
|
+
}]
|
|
25
|
+
],
|
|
26
|
+
"env": {
|
|
27
|
+
"production": {
|
|
28
|
+
"plugins": ["transform-remove-console"]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
package/.eslintignore
ADDED
package/.eslintrc.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
root: true,
|
|
5
|
+
extends: ['tuya/react-native'],
|
|
6
|
+
rules: {
|
|
7
|
+
'one-var': 0,
|
|
8
|
+
'@typescript-eslint/no-unused-vars': 0,
|
|
9
|
+
'react/jsx-props-no-spreading': 0,
|
|
10
|
+
},
|
|
11
|
+
settings: {
|
|
12
|
+
'import/resolver': {
|
|
13
|
+
alias: {
|
|
14
|
+
map: [
|
|
15
|
+
['@api', path.resolve(__dirname, './src/api')],
|
|
16
|
+
['@components', path.resolve(__dirname, './src/components')],
|
|
17
|
+
['@config', path.resolve(__dirname, './src/config')],
|
|
18
|
+
['@i18n', path.resolve(__dirname, './src/i18n')],
|
|
19
|
+
['@models', path.resolve(__dirname, './src/models')],
|
|
20
|
+
['@res', path.resolve(__dirname, './src/res')],
|
|
21
|
+
['@utils', path.resolve(__dirname, './src/utils')],
|
|
22
|
+
],
|
|
23
|
+
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json'],
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
};
|
package/.prettierignore
ADDED
|
File without changes
|
package/.prettierrc.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('eslint-config-tuya/.prettierrc.js');
|
package/.versionrc
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"rnVersion": "5.30",
|
|
3
|
+
"license": "MIT",
|
|
4
|
+
"name": "@ledvance/group-ui-biz-bundle",
|
|
5
|
+
"pid": [],
|
|
6
|
+
"uiid": "",
|
|
7
|
+
"version": "1.0.0",
|
|
8
|
+
"scripts": {},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@ledvance/base": "^1.x",
|
|
11
|
+
"@reduxjs/toolkit": "^1.8.6",
|
|
12
|
+
"@tuya/tuya-panel-api": "^1.12.0",
|
|
13
|
+
"@tuya/tuya-panel-lamp-sdk": "^1.14.1",
|
|
14
|
+
"ahooks": "^2.x",
|
|
15
|
+
"buffer": "^6.0.3",
|
|
16
|
+
"dayjs": "^1.11.5",
|
|
17
|
+
"events": "^1.1.1",
|
|
18
|
+
"lodash": "^4.17.19",
|
|
19
|
+
"moment": "^2.20.1",
|
|
20
|
+
"prop-types": "^15.6.1",
|
|
21
|
+
"react": "16.8.3",
|
|
22
|
+
"react-addons-shallow-compare": "^15.6.2",
|
|
23
|
+
"react-native": "0.59.10",
|
|
24
|
+
"react-native-render-html": "^6.3.4",
|
|
25
|
+
"react-native-svg": "5.5.1",
|
|
26
|
+
"react-redux": "^7.2.1",
|
|
27
|
+
"redux": "^4.0.0",
|
|
28
|
+
"redux-actions": "^2.6.1",
|
|
29
|
+
"redux-logger": "^3.0.6",
|
|
30
|
+
"redux-observable": "^1.0.0",
|
|
31
|
+
"redux-thunk": "^2.3.0",
|
|
32
|
+
"rxjs": "^6.3.1",
|
|
33
|
+
"rxjs-compat": "^6.3.1",
|
|
34
|
+
"style-equal": "^1.0.0",
|
|
35
|
+
"tuya-panel-kit": "^4.9.4"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@babel/plugin-proposal-decorators": "^7.12.1",
|
|
39
|
+
"@commitlint/cli": "^11.0.0",
|
|
40
|
+
"@tuya/tuya-panel-patches": "^0.59.10",
|
|
41
|
+
"@types/lodash": "^4.14.137",
|
|
42
|
+
"@types/react": "^16.0.4",
|
|
43
|
+
"@types/react-native": "^0.60.0",
|
|
44
|
+
"@types/react-redux": "^7.1.2",
|
|
45
|
+
"@types/redux": "^3.6.0",
|
|
46
|
+
"@types/redux-actions": "^2.6.1",
|
|
47
|
+
"@types/redux-logger": "^3.0.7",
|
|
48
|
+
"@types/tuya-panel-kit": "^4.7.3",
|
|
49
|
+
"babel-jest": "^22.1.0",
|
|
50
|
+
"babel-plugin-import": "^1.11.0",
|
|
51
|
+
"babel-plugin-module-resolver": "^4.0.0",
|
|
52
|
+
"babel-plugin-transform-decorators-legacy": "^1.3.4",
|
|
53
|
+
"babel-plugin-transform-remove-console": "^6.9.4",
|
|
54
|
+
"commitizen": "^4.2.2",
|
|
55
|
+
"commitlint-config-cz": "^0.13.2",
|
|
56
|
+
"cz-customizable": "^6.3.0",
|
|
57
|
+
"eslint-config-airbnb": "^18.2.1",
|
|
58
|
+
"eslint-config-tuya": "^1.0.0",
|
|
59
|
+
"eslint-import-resolver-alias": "^1.1.2",
|
|
60
|
+
"eslint-import-resolver-react-native": "^0.2.0",
|
|
61
|
+
"eslint-plugin-react-native": "^3.10.0",
|
|
62
|
+
"husky": "^4.3.0",
|
|
63
|
+
"jest": "^22.1.1",
|
|
64
|
+
"metro-react-native-babel-preset": "^0.63.0",
|
|
65
|
+
"react-native-typescript-transformer": "^1.2.13",
|
|
66
|
+
"react-test-renderer": "^16.2.0",
|
|
67
|
+
"standard-version": "^9.0.0",
|
|
68
|
+
"typescript": "^4.1.2"
|
|
69
|
+
},
|
|
70
|
+
"jest": {
|
|
71
|
+
"preset": "react-native"
|
|
72
|
+
}
|
|
73
|
+
}
|