@doreamonjs/plugin-authorization 0.0.1-beta.3 → 0.3.12

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/CHANGELOG.md CHANGED
@@ -3,6 +3,39 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [0.0.1-beta.3](https://github.com/doreamonjs/doreamon/compare/v0.0.1-beta.2...v0.0.1-beta.3) (2020-01-22)
6
+ ## [0.3.12](https://github.com/zcorky/zodash/compare/v0.3.11...v0.3.12) (2022-08-31)
7
7
 
8
8
  **Note:** Version bump only for package @doreamonjs/plugin-authorization
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.3.3](https://github.com/zcorky/zodash/compare/v0.3.2...v0.3.3) (2022-08-30)
15
+
16
+ **Note:** Version bump only for package @doreamonjs/plugin-authorization
17
+
18
+ ## [0.3.2](https://github.com/zcorky/zodash/compare/v0.3.1...v0.3.2) (2022-08-30)
19
+
20
+ ### Bug Fixes
21
+
22
+ - dependencies ([60d97c5](https://github.com/zcorky/zodash/commit/60d97c5f857228f91bdbda6e833438559b3ea7d6))
23
+ - package.json main and typings ([5a23e68](https://github.com/zcorky/zodash/commit/5a23e689ce467ddba1deeec674a8639fef3ba5a8))
24
+
25
+ # 0.3.0 (2022-08-30)
26
+
27
+ ### Bug Fixes
28
+
29
+ - test ([ab09558](https://github.com/zcorky/zodash/commit/ab0955886a268210cef6cbfe2a6b2362f6d826d6))
30
+
31
+ ### Features
32
+
33
+ - add plugin-request/forms/authorizations ([7901413](https://github.com/zcorky/zodash/commit/79014135cbae3337e5bf4c8372627f784ffe476e))
34
+
35
+ ## [1.1.8](https://github.com/zcorky/zodash/compare/@zodash/get@1.1.7...@zodash/get@1.1.8) (2021-04-05)
36
+
37
+ **Note:** Version bump only for package @zodash/get
38
+
39
+ ## 1.1.7 (2021-04-05)
40
+
41
+ **Note:** Version bump only for package @zodash/get
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 Eason
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
+ SOFTWARE.
package/README.md CHANGED
@@ -1,9 +1,11 @@
1
- # `@doreamonjs/plugin-authorization`
1
+ # `@zodash/get`
2
2
 
3
3
  > TODO: description
4
4
 
5
5
  ## Usage
6
6
 
7
7
  ```
8
- // @TODO
8
+ const get = require('@zodash/get');
9
+
10
+ // TODO: DEMONSTRATE API
9
11
  ```
@@ -1 +1,2 @@
1
- export declare const NAMESPACE = "authorization";
1
+ export declare const NAMESPACE = "authorizations";
2
+ export declare function namespace(): string;
package/lib/constants.js CHANGED
@@ -1,4 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NAMESPACE = 'authorization';
4
- //# sourceMappingURL=constants.js.map
3
+ exports.namespace = exports.NAMESPACE = void 0;
4
+ exports.NAMESPACE = 'authorizations';
5
+ function namespace() {
6
+ return exports.NAMESPACE;
7
+ }
8
+ exports.namespace = namespace;
package/lib/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './types';
2
+ export * from './constants';
2
3
  export * from './model';
3
4
  export * from './service';
4
- export * from './constants';
5
+ export * from './instance';
package/lib/index.js CHANGED
@@ -1,9 +1,17 @@
1
1
  "use strict";
2
- function __export(m) {
3
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
- }
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
5
12
  Object.defineProperty(exports, "__esModule", { value: true });
6
- __export(require("./model"));
7
- __export(require("./service"));
8
- __export(require("./constants"));
9
- //# sourceMappingURL=index.js.map
13
+ __exportStar(require("./types"), exports);
14
+ __exportStar(require("./constants"), exports);
15
+ __exportStar(require("./model"), exports);
16
+ __exportStar(require("./service"), exports);
17
+ __exportStar(require("./instance"), exports);
@@ -0,0 +1,4 @@
1
+ import { Model } from './model';
2
+ import { Service } from './service';
3
+ export declare const model: Model;
4
+ export declare const service: Service;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.service = exports.model = void 0;
4
+ const model_1 = require("./model");
5
+ const service_1 = require("./service");
6
+ exports.model = new model_1.Model();
7
+ exports.service = new service_1.Service();
package/lib/model.d.ts CHANGED
@@ -1,14 +1,10 @@
1
- import { Model as M } from 'dva';
2
- import { Captcha } from './types';
3
- export interface Options {
4
- login(username: string, password: string, captcha: string): Promise<void>;
5
- logout(username: string): Promise<void>;
6
- register(username: string, password: string, confirmPassword: string, captcha: string): Promise<void>;
7
- captcha(): Promise<Captcha>;
8
- sendCaptchaToEmailOrOther(username: string): Promise<void>;
1
+ import { Model as DvaModel } from 'dva';
2
+ export interface ModelOptions {
9
3
  }
10
4
  export declare class Model {
11
- readonly options: Options;
12
- constructor(options: Options);
13
- build(): M;
5
+ readonly options?: ModelOptions;
6
+ constructor(options?: ModelOptions);
7
+ get namespace(): string;
8
+ build(): DvaModel;
9
+ toDva(): DvaModel;
14
10
  }
package/lib/model.js CHANGED
@@ -1,104 +1,54 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const delay_1 = require("@zcorky/delay");
4
- const query_string_1 = require("@zcorky/query-string");
3
+ exports.Model = void 0;
4
+ const doreamon_1 = require("@zodash/doreamon");
5
5
  const constants_1 = require("./constants");
6
6
  class Model {
7
7
  constructor(options) {
8
8
  this.options = options;
9
9
  }
10
+ get namespace() {
11
+ return constants_1.NAMESPACE;
12
+ }
10
13
  build() {
11
- const { login, logout, register, captcha, sendCaptchaToEmailOrOther, } = this.options;
12
14
  return {
13
15
  namespace: constants_1.NAMESPACE,
14
- state: {
15
- captcha: `/captcha?_t=${Date.now()}`,
16
- },
16
+ state: {},
17
17
  reducers: {
18
- 'captcha/save'(state, { payload: captcha }) {
19
- return { ...state, captcha };
18
+ save(state, { payload: config }) {
19
+ return {
20
+ ...state,
21
+ config,
22
+ };
20
23
  },
21
24
  },
22
25
  effects: {
23
- *login({ payload: { username, password, captcha } }, { race, call, put }) {
24
- yield call(delay_1.delay, 1000);
26
+ *setup({ payload: config }, { put }) {
27
+ var _a, _b;
28
+ yield put({ type: 'save', payload: config });
25
29
  try {
26
- const { timeout } = yield race({
27
- data: call(login, username, password, captcha),
28
- timeout: call(delay_1.delay, 10000),
29
- });
30
- if (!!timeout) {
31
- yield put({ type: 'message/tip/error', payload: '服务器开小差啦' });
32
- return false;
33
- }
30
+ (_b = (_a = this.service.authorization) === null || _a === void 0 ? void 0 : _a.setup) === null || _b === void 0 ? void 0 : _b.call(_a, config);
34
31
  }
35
- catch (err) {
36
- yield put({ type: 'refresh/captcha' });
37
- setTimeout(() => {
38
- const node = document.querySelector('input#captcha');
39
- if (node) {
40
- node.value = '';
41
- }
42
- }, 0);
43
- throw err;
32
+ catch (error) {
33
+ doreamon_1.default.logger.error('[model] authorization setup error', error);
44
34
  }
45
- yield call(delay_1.delay, 1000);
46
- const query = query_string_1.parse(window.location.search);
47
- const redirect = query.redirect || '/';
48
- window.location.href = redirect;
49
35
  },
50
- *logout(action, { select, race, call, put }) {
51
- const { username } = yield select(state => state.user.values);
52
- const { timeout } = yield race({
53
- data: call(logout, username),
54
- timeout: call(delay_1.delay, 10000),
55
- });
56
- if (!!timeout) {
57
- yield put({ type: 'message/tip/error', payload: '服务器开小差啦' });
58
- return false;
59
- }
60
- const currentPath = window.location.pathname;
61
- window.location.href = `/login?redirect=${encodeURIComponent(currentPath)}`;
62
- },
63
- *register({ payload }, { race, call, put }) {
64
- const { username, password, confirmPassword, captcha } = payload;
65
- const { data, timeout } = yield race({
66
- data: call(register, username, password, confirmPassword, captcha),
67
- timeout: call(delay_1.delay, 10000)
68
- });
69
- if (!!timeout) {
70
- yield put({ type: 'message/tip/error', payload: '服务器开小差啦' });
71
- return false;
72
- }
73
- yield put({ type: 'message/tip/success', payload: '注册成功, 正在跳转登陆界面...' });
74
- yield call(delay_1.delay, 1000);
75
- window.location.href = '/';
76
- },
77
- *'refresh/captcha'(action, { race, call, put }) {
78
- const { data, timeout } = yield race({
79
- data: call(captcha),
80
- timeout: call(delay_1.delay, 10000)
81
- });
82
- if (!!timeout) {
83
- yield put({ type: 'message/tip/error', payload: '服务器开小差啦' });
84
- return false;
36
+ *track({ payload: { event, attributes } }, { select }) {
37
+ var _a, _b;
38
+ // @fix This generator function does not have 'yield' require-yield
39
+ yield select((state) => state[constants_1.NAMESPACE]);
40
+ try {
41
+ (_b = (_a = this.service.authorization) === null || _a === void 0 ? void 0 : _a.track) === null || _b === void 0 ? void 0 : _b.call(_a, event, attributes);
85
42
  }
86
- yield put({ type: 'captcha/save', payload: data.url });
87
- },
88
- *'send/captcha/to/email_or_other'({ payload: { username } }, { race, call, put }) {
89
- const { timeout } = yield race({
90
- data: call(sendCaptchaToEmailOrOther, username),
91
- timeout: call(delay_1.delay, 10000)
92
- });
93
- if (!!timeout) {
94
- yield put({ type: 'message/tip/error', payload: '服务器开小差啦' });
95
- return false;
43
+ catch (error) {
44
+ doreamon_1.default.logger.error('[model] authorization track error', error);
96
45
  }
97
- yield put({ type: 'message/tip/success', payload: '验证码发送成功,请查看邮箱' });
98
46
  },
99
47
  },
100
48
  };
101
49
  }
50
+ toDva() {
51
+ return this.build();
52
+ }
102
53
  }
103
54
  exports.Model = Model;
104
- //# sourceMappingURL=model.js.map
package/lib/service.d.ts CHANGED
@@ -1,12 +1,4 @@
1
- export interface Action {
2
- type: string;
3
- payload?: any;
4
- }
5
1
  export declare class Service {
6
- protected dispatch(action: Action): any;
7
- login(username: string, password: string, captcha: string): any;
8
- logout(): any;
9
- register(username: string, password: string, confirmPassword: string, captcha: string): any;
10
- refreshCaptcha(): any;
11
- sendCaptchaToEmailOrOther(username: string): any;
2
+ private logger;
3
+ get namespace(): string;
12
4
  }
package/lib/service.js CHANGED
@@ -1,25 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Service = void 0;
4
+ const shared = require("@doreamonjs/plugin-shared");
3
5
  const constants_1 = require("./constants");
4
6
  class Service {
5
- dispatch(action) {
6
- return window.g_app._store.dispatch(action);
7
+ constructor() {
8
+ this.logger = shared.logger.getLogger(constants_1.NAMESPACE);
7
9
  }
8
- login(username, password, captcha) {
9
- return this.dispatch({ type: `${constants_1.NAMESPACE}/login`, payload: { username, password, captcha } });
10
- }
11
- logout() {
12
- return this.dispatch({ type: `${constants_1.NAMESPACE}/logout` });
13
- }
14
- register(username, password, confirmPassword, captcha) {
15
- return this.dispatch({ type: `${constants_1.NAMESPACE}/register`, payload: { username, password, confirmPassword, captcha } });
16
- }
17
- refreshCaptcha() {
18
- return this.dispatch({ type: `${constants_1.NAMESPACE}/refresh/captcha` });
19
- }
20
- sendCaptchaToEmailOrOther(username) {
21
- return this.dispatch({ type: `${constants_1.NAMESPACE}/send/captcha/to/email_or_other`, payload: { username } });
10
+ get namespace() {
11
+ return constants_1.NAMESPACE;
22
12
  }
23
13
  }
24
14
  exports.Service = Service;
25
- //# sourceMappingURL=service.js.map
package/lib/types.d.ts CHANGED
@@ -1,3 +1,25 @@
1
- export interface Captcha {
2
- url: string;
1
+ export interface State {
2
+ visible: boolean;
3
+ attributes: Attributes;
4
+ datasets: Datasets;
5
+ queue: State[];
6
+ callback?: (err: Error | null, type: 'open' | 'close' | 'cancel' | 'ok', vallues?: any) => void;
3
7
  }
8
+ export interface Attributes {
9
+ type?: 'modal' | 'drawer';
10
+ title: string;
11
+ description?: string;
12
+ cancelText?: string;
13
+ authorizationText?: string;
14
+ target: AttributeTarget;
15
+ }
16
+ export interface Datasets {
17
+ origin: object;
18
+ values: object;
19
+ }
20
+ export interface AttributeTarget {
21
+ namespace: string;
22
+ effect: string;
23
+ props: any;
24
+ }
25
+ export declare type Type = 'modal' | 'drawer';
package/lib/types.js CHANGED
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
package/package.json CHANGED
@@ -1,41 +1,22 @@
1
1
  {
2
2
  "name": "@doreamonjs/plugin-authorization",
3
- "version": "0.0.1-beta.3",
4
- "description": "An authorization plugin for doreamonjs",
5
- "main": "lib/index.js",
6
- "types": "lib/index.d.ts",
7
- "sideEffects": false,
8
- "scripts": {
9
- "clean": "rm -rf lib",
10
- "build": "npm run clean && tsc",
11
- "test": "jest -w 1",
12
- "coverage": "codecov",
13
- "prepublishOnly": "npm run build"
14
- },
15
- "publishConfig": {
16
- "access": "public"
17
- },
18
- "repository": {
19
- "type": "git",
20
- "url": "https://github.com/doreamonjs/doreamon"
21
- },
22
- "homepage": "https://github.com/doreamonjs/doreamon",
3
+ "version": "0.3.12",
4
+ "description": "authorization plugin for doreamonjs",
23
5
  "keywords": [
24
6
  "doreamonjs",
25
- "plugin-authorization"
7
+ "plugin"
26
8
  ],
27
9
  "author": "zero <tobewhatwewant@gmail.com>",
10
+ "homepage": "https://github.com/zcorky/zodash#readme",
28
11
  "license": "MIT",
12
+ "main": "lib/index.js",
13
+ "typings": "lib/index.d.ts",
29
14
  "directories": {
30
- "lib": "lib",
31
- "test": "__tests__"
15
+ "lib": "lib"
32
16
  },
33
17
  "files": [
34
18
  "lib"
35
19
  ],
36
- "bugs": {
37
- "url": "https://github.com/doreamonjs/doreamon/issues"
38
- },
39
20
  "jest": {
40
21
  "roots": [
41
22
  "__tests__"
@@ -61,21 +42,40 @@
61
42
  ],
62
43
  "coverageThreshold": {
63
44
  "global": {
64
- "branches": 50,
65
- "functions": 90,
66
- "lines": 80,
67
- "statements": 90
45
+ "branches": 60,
46
+ "functions": 60,
47
+ "lines": 60,
48
+ "statements": -10
68
49
  }
69
- },
70
- "preset": "ts-jest"
50
+ }
71
51
  },
72
- "devDependencies": {
73
- "dva": "^2.4.1",
74
- "immer": "^5.3.2"
52
+ "publishConfig": {
53
+ "access": "public"
54
+ },
55
+ "repository": {
56
+ "type": "git",
57
+ "url": "git+https://github.com/zcorky/zodash.git"
58
+ },
59
+ "scripts": {
60
+ "build": "tsc",
61
+ "test": "jest -w 1",
62
+ "coverage": "codecov"
63
+ },
64
+ "bugs": {
65
+ "url": "https://github.com/zcorky/zodash/issues"
75
66
  },
76
67
  "dependencies": {
68
+ "@doreamonjs/plugin-request": "^0.3.2",
69
+ "@doreamonjs/plugin-shared": "^0.3.12",
70
+ "@sentry/browser": "^7.11.1",
71
+ "@sentry/tracing": "^7.11.1",
77
72
  "@zcorky/delay": "^1.0.1",
78
- "@zcorky/query-string": "^1.0.2"
73
+ "@zcorky/query-string": "^1.0.2",
74
+ "@zodash/doreamon": "^1.0.17",
75
+ "dva": "^2.4.1",
76
+ "immer": "^9.0.15",
77
+ "mixpanel-browser": "^2.45.0",
78
+ "thinkingdata-browser": "^1.6.0"
79
79
  },
80
- "gitHead": "7fe20f14c42a6e0763fa483f57ff54c7b3f2367e"
80
+ "gitHead": "efeb8d0d8b1e496c165164fbb4f9508c65ee21d9"
81
81
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;AAAa,QAAA,SAAS,GAAG,eAAe,CAAC"}
package/lib/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AACA,6BAAwB;AACxB,+BAA0B;AAC1B,iCAA4B"}
package/lib/model.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"model.js","sourceRoot":"","sources":["../src/model.ts"],"names":[],"mappings":";;AACA,yCAAsC;AACtC,uDAA6C;AAG7C,2CAAwC;AAYxC,MAAa,KAAK;IAChB,YAA4B,OAAgB;QAAhB,YAAO,GAAP,OAAO,CAAS;IAE5C,CAAC;IAED,KAAK;QACH,MAAM,EACJ,KAAK,EAAE,MAAM,EAAE,QAAQ,EACvB,OAAO,EAAE,yBAAyB,GACnC,GAAG,IAAI,CAAC,OAAO,CAAC;QAEjB,OAAO;YACL,SAAS,EAAE,qBAAS;YAEpB,KAAK,EAAE;gBACL,OAAO,EAAE,eAAe,IAAI,CAAC,GAAG,EAAE,EAAE;aACrC;YAED,QAAQ,EAAE;gBACR,cAAc,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;oBACxC,OAAO,EAAE,GAAG,KAAK,EAAE,OAAO,EAAE,CAAC;gBAC/B,CAAC;aACF;YAED,OAAO,EAAE;gBACP,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,EAAE,QAAQ,EAA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AQ,EAAE,EAAE,CAAC,CAAC;IACvG,CAAC;CACF;AAxBD,0BAwBC"}
package/lib/types.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}