login-authorization-v2 2.1.4 → 2.1.6
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/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +3 -2
- package/dist/index.umd.js +3 -2
- package/package.json +1 -1
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAO3B,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAc,MAAM,EAAiB,MAAM,aAAa,CAAA;AAGvF,KAAK,YAAY,GAAG;IAClB,UAAU,EAAE,UAAU,CAAA;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAKD,KAAK,YAAY,GAAG;IAClB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAOD,eAAO,MAAM,IAAI,GAAI,QAAQ,YAAY;uBAuCb,YAAY;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAO3B,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAc,MAAM,EAAiB,MAAM,aAAa,CAAA;AAGvF,KAAK,YAAY,GAAG;IAClB,UAAU,EAAE,UAAU,CAAA;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAKD,KAAK,YAAY,GAAG;IAClB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAOD,eAAO,MAAM,IAAI,GAAI,QAAQ,YAAY;uBAuCb,YAAY;;;;;;;;;CA2GvC,CAAA"}
|
package/dist/index.esm.js
CHANGED
|
@@ -209,7 +209,7 @@ const createPcDialog = () => {
|
|
|
209
209
|
<div style="margin: 10px 0 20px 0;color: rgb(32,33,36);font-size: 14px;">You do not have access to the system.</div>
|
|
210
210
|
<div style="display: flex;justify-content: flex-end;">
|
|
211
211
|
<button id="cancel" style="padding: 8px 15px;background: #ffffff;color:rgb(26,115,232);border:1px solid #ccc;border-radius:5px;cursor: pointer;font-size:14px;">Cancel</button>
|
|
212
|
-
<button id="confirm" style="padding: 8px 15px;background: rgb(26,115,232);color:#ffffff;border:none;border-radius:5px;margin-left: 10px;cursor: pointer;font-size:14px;">Sign in to another
|
|
212
|
+
<button id="confirm" style="padding: 8px 15px;background: rgb(26,115,232);color:#ffffff;border:none;border-radius:5px;margin-left: 10px;cursor: pointer;font-size:14px;">Sign in to another account</button>
|
|
213
213
|
</div>
|
|
214
214
|
</div>`;
|
|
215
215
|
};
|
|
@@ -220,7 +220,7 @@ const createMobileDialog = () => {
|
|
|
220
220
|
<div style="display: flex;justify-content: flex-end;">
|
|
221
221
|
<div style="display: flex;justify-content: flex-end;">
|
|
222
222
|
<button id="cancel" style="padding: 8px 15px;background: #ffffff;color:rgb(26,115,232);border:1px solid #ccc;border-radius:5px;cursor: pointer;font-size:14px;">Cancel</button>
|
|
223
|
-
<button id="confirm" style="padding: 8px 15px;background: rgb(26,115,232);color:#ffffff;border:none;border-radius:5px;margin-left: 10px;cursor: pointer;font-size:14px;">Sign in to another
|
|
223
|
+
<button id="confirm" style="padding: 8px 15px;background: rgb(26,115,232);color:#ffffff;border:none;border-radius:5px;margin-left: 10px;cursor: pointer;font-size:14px;">Sign in to another account</button>
|
|
224
224
|
</div>
|
|
225
225
|
</div>
|
|
226
226
|
</div>`;
|
|
@@ -361,6 +361,7 @@ const make = (config) => {
|
|
|
361
361
|
.then((userInfo) => __awaiter(void 0, void 0, void 0, function* () {
|
|
362
362
|
const valid = detectUserInfoGroupAuth(userInfo);
|
|
363
363
|
if (!valid) {
|
|
364
|
+
openDialog();
|
|
364
365
|
return Promise.reject();
|
|
365
366
|
}
|
|
366
367
|
return config.needMenus
|
package/dist/index.umd.js
CHANGED
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
<div style="margin: 10px 0 20px 0;color: rgb(32,33,36);font-size: 14px;">You do not have access to the system.</div>
|
|
212
212
|
<div style="display: flex;justify-content: flex-end;">
|
|
213
213
|
<button id="cancel" style="padding: 8px 15px;background: #ffffff;color:rgb(26,115,232);border:1px solid #ccc;border-radius:5px;cursor: pointer;font-size:14px;">Cancel</button>
|
|
214
|
-
<button id="confirm" style="padding: 8px 15px;background: rgb(26,115,232);color:#ffffff;border:none;border-radius:5px;margin-left: 10px;cursor: pointer;font-size:14px;">Sign in to another
|
|
214
|
+
<button id="confirm" style="padding: 8px 15px;background: rgb(26,115,232);color:#ffffff;border:none;border-radius:5px;margin-left: 10px;cursor: pointer;font-size:14px;">Sign in to another account</button>
|
|
215
215
|
</div>
|
|
216
216
|
</div>`;
|
|
217
217
|
};
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
<div style="display: flex;justify-content: flex-end;">
|
|
223
223
|
<div style="display: flex;justify-content: flex-end;">
|
|
224
224
|
<button id="cancel" style="padding: 8px 15px;background: #ffffff;color:rgb(26,115,232);border:1px solid #ccc;border-radius:5px;cursor: pointer;font-size:14px;">Cancel</button>
|
|
225
|
-
<button id="confirm" style="padding: 8px 15px;background: rgb(26,115,232);color:#ffffff;border:none;border-radius:5px;margin-left: 10px;cursor: pointer;font-size:14px;">Sign in to another
|
|
225
|
+
<button id="confirm" style="padding: 8px 15px;background: rgb(26,115,232);color:#ffffff;border:none;border-radius:5px;margin-left: 10px;cursor: pointer;font-size:14px;">Sign in to another account</button>
|
|
226
226
|
</div>
|
|
227
227
|
</div>
|
|
228
228
|
</div>`;
|
|
@@ -363,6 +363,7 @@
|
|
|
363
363
|
.then((userInfo) => __awaiter(void 0, void 0, void 0, function* () {
|
|
364
364
|
const valid = detectUserInfoGroupAuth(userInfo);
|
|
365
365
|
if (!valid) {
|
|
366
|
+
openDialog();
|
|
366
367
|
return Promise.reject();
|
|
367
368
|
}
|
|
368
369
|
return config.needMenus
|