@glodon-aiot/libs 1.4.4-beta.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/README.git.md +73 -0
- package/README.lib.md +135 -0
- package/dist/aiot-lib-jssdk.js +20898 -0
- package/dist/aiot-lib-jssdk.umd.cjs +72 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/upload/index.d.ts +10 -0
- package/dist/src/upload/model.d.ts +12 -0
- package/package.json +87 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './upload';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UploadParam } from './model';
|
|
2
|
+
interface uploadFileProps {
|
|
3
|
+
hw: UploadParam;
|
|
4
|
+
sourceFiles: File[] | FileList;
|
|
5
|
+
progress?: (val: number[]) => void;
|
|
6
|
+
success?: (results: any) => void;
|
|
7
|
+
error?: (err: any) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const uploadFile: (props: uploadFileProps) => void;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface UploadParam {
|
|
2
|
+
accessKey: string;
|
|
3
|
+
secretKey: string;
|
|
4
|
+
securityToken: string;
|
|
5
|
+
bucket: string;
|
|
6
|
+
fileKeys: string[];
|
|
7
|
+
endPoint: string;
|
|
8
|
+
}
|
|
9
|
+
export declare enum UploadEventType {
|
|
10
|
+
UploadPartSucceed = "uploadPartSucceed",
|
|
11
|
+
CompleteMultipartUploadSucceed = "completeMultipartUploadSucceed"
|
|
12
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@glodon-aiot/libs",
|
|
3
|
+
"version": "1.4.4-beta.0",
|
|
4
|
+
"author": "glodoncv",
|
|
5
|
+
"description": "aiot libs",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"aiot",
|
|
9
|
+
"aiot-libs"
|
|
10
|
+
],
|
|
11
|
+
"files": [
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
14
|
+
"module": "./dist/aiot-lib-jssdk.js",
|
|
15
|
+
"main": "./dist/aiot-lib-jssdk.umd.cjs",
|
|
16
|
+
"typings": "./dist/src/index.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
"import": "./dist/aiot-lib-jssdk.js",
|
|
19
|
+
"require": "./dist/aiot-lib-jssdk.umd.cjs",
|
|
20
|
+
"types": "./dist/dist/src/index.d.ts"
|
|
21
|
+
},
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"scripts": {
|
|
24
|
+
"dev": "vite",
|
|
25
|
+
"start": "vite",
|
|
26
|
+
"build": "tsc && vite build --mode prod",
|
|
27
|
+
"preview": "vite preview",
|
|
28
|
+
"check": "yarn prettier --check .",
|
|
29
|
+
"write": "yarn prettier --write .",
|
|
30
|
+
"lint": "eslint --ext .tsx,.ts --fix ./example -c .eslintrc.js",
|
|
31
|
+
"storybook": "start-storybook -p 6006",
|
|
32
|
+
"docs": "start-storybook -p 6006",
|
|
33
|
+
"build-storybook": "build-storybook",
|
|
34
|
+
"vpublish:major": "sh ./publish.sh major",
|
|
35
|
+
"vpublish:minor": "sh ./publish.sh minor",
|
|
36
|
+
"vpublish:patch": "sh ./publish.sh patch",
|
|
37
|
+
"vpublish:premajor": "sh ./publish.sh premajor",
|
|
38
|
+
"vpublish:preminor": "sh ./publish.sh preminor",
|
|
39
|
+
"vpublish:prepatch": "sh ./publish.sh prepatch",
|
|
40
|
+
"vpublish:prerelease": "sh ./publish.sh prerelease"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@babel/core": "^7.20.12",
|
|
44
|
+
"@commitlint/cli": "^17.0.3",
|
|
45
|
+
"@commitlint/config-conventional": "^17.0.3",
|
|
46
|
+
"@rollup/plugin-typescript": "^11.0.0",
|
|
47
|
+
"@storybook/addon-actions": "^6.5.16",
|
|
48
|
+
"@storybook/addon-essentials": "^6.5.16",
|
|
49
|
+
"@storybook/addon-interactions": "^6.5.16",
|
|
50
|
+
"@storybook/addon-links": "6.5.16",
|
|
51
|
+
"@storybook/builder-vite": "^0.4.0",
|
|
52
|
+
"@storybook/react": "^6.5.16",
|
|
53
|
+
"@storybook/testing-library": "^0.0.13",
|
|
54
|
+
"@types/react": "^17.0.44",
|
|
55
|
+
"@types/react-dom": "^17.0.17",
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^5.35.1",
|
|
57
|
+
"@typescript-eslint/parser": "^5.35.1",
|
|
58
|
+
"@vitejs/plugin-react": "^3.1.0",
|
|
59
|
+
"babel-loader": "^8.3.0",
|
|
60
|
+
"eslint": "^8.0.1",
|
|
61
|
+
"eslint-config-prettier": "^8.5.0",
|
|
62
|
+
"eslint-config-standard-with-typescript": "^22.0.0",
|
|
63
|
+
"eslint-plugin-import": "^2.25.2",
|
|
64
|
+
"eslint-plugin-n": "^15.0.0",
|
|
65
|
+
"eslint-plugin-promise": "^6.0.0",
|
|
66
|
+
"eslint-plugin-react": "^7.31.0",
|
|
67
|
+
"eslint-plugin-storybook": "^0.6.10",
|
|
68
|
+
"less": "^4.1.2",
|
|
69
|
+
"prettier": "2.7.1",
|
|
70
|
+
"require-from-string": "^2.0.2",
|
|
71
|
+
"typescript": "*",
|
|
72
|
+
"vite": "^4.1.1"
|
|
73
|
+
},
|
|
74
|
+
"publishConfig": {
|
|
75
|
+
"access": "public",
|
|
76
|
+
"registry": "https://registry.npmjs.org/"
|
|
77
|
+
},
|
|
78
|
+
"lint-staged": {
|
|
79
|
+
"*.{js,css,md,jsx,less,ts,tsx,json}": "prettier --write"
|
|
80
|
+
},
|
|
81
|
+
"dependencies": {
|
|
82
|
+
"axios": "0.24.0"
|
|
83
|
+
},
|
|
84
|
+
"peerDependencies": {
|
|
85
|
+
"axios": "*"
|
|
86
|
+
}
|
|
87
|
+
}
|