@tapni/auth 1.0.4 → 1.0.6-3.dev
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.md +2 -0
- package/dist/.vite/manifest.json +23 -40
- package/dist/.well-known/assetlinks.json +10 -12
- package/dist/.well-known/microsoft-identity-association.json +5 -5
- package/dist/Apps-XNA4_3B4.js +109 -0
- package/dist/Billing-Br0-fHed.js +256 -0
- package/dist/CustomApp-CrlbYDOm.js +83 -0
- package/dist/QR-Bvqb60-E.js +41 -0
- package/dist/TapniAuth.es.js +1 -1
- package/dist/TapniAuth.umd.js +49 -23
- package/dist/{install-BzPu9V_c.js → install-7FOVy8Ol.js} +6328 -4767
- package/dist/site.webmanifest +11 -1
- package/dist/style.css +1 -1
- package/dist/{web-IFGkBi0t.js → web-UrTMimK1.js} +2 -2
- package/package.json +65 -55
- package/src/.prettierrc.json +16 -0
- package/src/App.vue +329 -259
- package/src/eslint.config.js +15 -0
- package/src/index.js +4 -0
- package/src/install.js +9 -10
- package/src/main.js +54 -58
- package/src/mixins/apple.mixin.js +56 -54
- package/src/mixins/auth.mixin.js +3 -2
- package/src/mixins/global.mixin.js +3 -3
- package/src/mixins/google.mixin.js +53 -54
- package/src/mixins/microsoft.mixin.js +2 -8
- package/src/mixins/okta.mixin.js +2 -2
- package/src/mixins/qr-auth.mixin.js +111 -107
- package/src/mixins/saml.mixin.js +82 -45
- package/src/router/index.js +6 -6
- package/src/routes.js +7 -1
- package/src/services/Api.js +56 -58
- package/src/services/AuthService.js +13 -9
- package/src/services/CompanyService.js +10 -10
- package/src/services/DeviceService.js +3 -3
- package/src/services/MetadataService.js +10 -0
- package/src/services/UserService.js +48 -45
- package/src/services/UtilService.js +317 -225
- package/src/store/auth.js +485 -549
- package/src/store/constants.js +2 -2
- package/src/store/event-bus.js +22 -22
- package/src/store/locales/cn.js +476 -458
- package/src/store/locales/de.js +478 -517
- package/src/store/locales/en.js +454 -512
- package/src/store/locales/es.js +477 -524
- package/src/store/locales/fr.js +477 -516
- package/src/store/locales/it.js +477 -514
- package/src/store/locales/ja.js +488 -0
- package/src/store/locales/kr.js +477 -491
- package/src/store/locales/lang.js +51 -43
- package/src/store/locales/pt.js +488 -0
- package/src/store/locales/sr.js +477 -492
- package/src/store/locales/tr.js +477 -487
- package/src/store/store.js +6 -6
- package/src/views/Account.vue +36 -8
- package/src/views/Apps.vue +17 -30
- package/src/views/Billing.vue +538 -0
- package/src/views/Callback.vue +36 -33
- package/src/views/CustomApp.vue +14 -39
- package/src/views/General.vue +151 -184
- package/src/views/Login.vue +173 -161
- package/src/views/Register.vue +2 -12
- package/src/views/Reset.vue +132 -135
- package/src/views/Security.vue +13 -7
- package/src/views/Verify.vue +153 -151
- package/src/views/Welcome.vue +85 -71
- package/dist/Account-zep_QUuI.js +0 -153
- package/dist/Apps-B9XB7Z7q.js +0 -112
- package/dist/CustomApp-BzUsyycz.js +0 -112
- package/dist/General-DkcdjPYQ.js +0 -477
- package/dist/QR-PW6cAG5j.js +0 -41
- package/dist/index.css +0 -193
- package/dist/web-AXRKjAOB.js +0 -92
- package/src/components/DELETE_Language.vue +0 -168
- package/src/components/DELETE_LinkIcon.vue +0 -288
- package/src/components/DELETE_ModalOverlay.vue +0 -68
- package/src/components/DELETE_OTP.vue +0 -105
- package/src/components/SSO.vue +0 -126
- package/src/components/SSOPick.vue +0 -166
- package/src/mixins/DELETE_mfa-auth.mixin.js +0 -53
- package/src/mixins/facebook.mixin.js +0 -78
package/dist/site.webmanifest
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"name": "",
|
|
3
|
+
"short_name": "",
|
|
4
|
+
"icons": [
|
|
5
|
+
{ "src": "/android-chrome-192x192.png", "sizes": "192x192", "type": "image/png" },
|
|
6
|
+
{ "src": "/android-chrome-512x512.png", "sizes": "512x512", "type": "image/png" }
|
|
7
|
+
],
|
|
8
|
+
"theme_color": "#ffffff",
|
|
9
|
+
"background_color": "#ffffff",
|
|
10
|
+
"display": "redirect"
|
|
11
|
+
}
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.app-store-icon[data-v-
|
|
1
|
+
.app-store-icon[data-v-465df13a]{box-shadow:0 4px 10px #00000017;border-radius:12px}#codeInput[data-v-6ab8e3d4],#emailInput[data-v-6ab8e3d4]{text-align:center;padding-right:15%;font-size:17px}.firstRow img[data-v-64ae2517]{width:25px;height:25px;position:absolute;top:50%;right:0;transform:translate(-50%,-50%)}#emailInput[data-v-707a4b16]{text-align:center;padding-right:15%;font-size:17px}html *{font-family:Inter,sans-serif}#bodyId{padding-top:3%;max-width:667px!important;margin:1.5% auto auto;height:95%!important;border-radius:20px}.action-block-top .default-text,.action-block-top .default-text:after{border-radius:50%;width:10em!important;height:10em!important}.action-block-top .default-text{margin:10px auto;font-size:3px;position:relative;text-indent:-9999em;border-left:.5em solid #000000;border-top:.5em solid rgba(0,0,0,.2);border-right:.5em solid rgba(0,0,0,.2);border-bottom:.5em solid rgba(0,0,0,.2);-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation:load8 1.1s infinite linear;animation:load8 1.1s infinite linear}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.smartbanner-ios{background:linear-gradient(to bottom,#f4f4f4,#f4f4f4);box-shadow:0 0 #fff;border-bottom:1px solid #dddddd}.smartbanner-icon{border-radius:16px}.smartbanner-ios .smartbanner-button{font-size:13px;padding:9px 0;height:40px;border-radius:13px;background:#f4f4f4;color:#0a99d2;border:none;box-shadow:none;text-transform:uppercase}.snack-body{display:none;border-radius:40px;font-size:15px!important}#errorSnack{background-color:#fee3e3!important;border:2px solid #edd9d9!important;color:#000}#successSnack{background-color:#eff5eb!important;border:2px solid #e3ecd7!important;color:#000}.grecaptcha-badge{visibility:hidden}.header-logo{position:absolute;left:50%;transform:translate(-50%,-50%);margin-top:16px;z-index:2}.header-logo-img{height:40px;margin-top:10px}@media (max-width: 768px){#bodyId{margin-top:0;border-radius:0;height:100%!important}.header-logo{margin-top:16px}}.withBackground[data-v-2f7f5584],.withBackground[data-v-2277e85c]{height:50px}.no-subscriptions[data-v-2277e85c]{padding:40px 20px}.gray-text[data-v-2277e85c]{color:#666;font-size:16px}.subscription-card[data-v-2277e85c]{background:#fff;border:1px solid #e0e0e0;border-radius:12px;padding:20px;margin-bottom:16px;box-shadow:0 2px 4px #0000000d}.subscription-header[data-v-2277e85c]{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px;padding-bottom:16px;border-bottom:1px solid #f0f0f0}.subscription-info[data-v-2277e85c]{flex:1}.subscription-name[data-v-2277e85c]{font-size:20px;font-weight:600;margin:0 0 8px;color:#000}.subscription-status[data-v-2277e85c]{display:inline-block;padding:4px 12px;border-radius:12px;font-size:12px;font-weight:600;text-transform:uppercase}.status-trialing[data-v-2277e85c]{background:#e3f2fd;color:#1976d2}.status-active[data-v-2277e85c]{background:#e8f5e9;color:#388e3c}.status-past_due[data-v-2277e85c]{background:#fff3e0;color:#f57c00}.status-canceled[data-v-2277e85c]{background:#ffebee;color:#d32f2f}.subscription-details[data-v-2277e85c]{margin-bottom:16px}.detail-row[data-v-2277e85c]{display:flex;justify-content:space-between;padding:8px 0;font-size:15px}.detail-label[data-v-2277e85c]{color:#666;font-weight:500}.detail-value[data-v-2277e85c]{color:#000;font-weight:600}.subscription-actions[data-v-2277e85c]{display:flex;justify-content:flex-end;padding-top:16px;border-top:1px solid #f0f0f0}.cancel-button[data-v-2277e85c]{padding:10px 20px;background:#fff;color:#d32f2f;border:1px solid #d32f2f;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s}.cancel-button[data-v-2277e85c]:hover:not(:disabled){background:#d32f2f;color:#fff}.cancel-button[data-v-2277e85c]:disabled{opacity:.5;cursor:not-allowed}.modal-overlay[data-v-2277e85c]{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:9999;padding:20px}.modal-content[data-v-2277e85c]{background:#fff;border-radius:16px;width:100%;max-width:500px;max-height:90vh;overflow-y:auto;box-shadow:0 8px 32px #0003}.modal-header[data-v-2277e85c]{display:flex;justify-content:space-between;align-items:center;padding:24px;border-bottom:1px solid #e0e0e0}.modal-header h3[data-v-2277e85c]{margin:0;font-size:20px;font-weight:600;color:#000}.close-button[data-v-2277e85c]{background:none;border:none;font-size:28px;color:#666;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background .2s}.close-button[data-v-2277e85c]:hover{background:#f0f0f0}.modal-body[data-v-2277e85c]{padding:24px}.modal-text[data-v-2277e85c]{font-size:16px;line-height:1.5;color:#333;margin-bottom:24px}.feedback-section[data-v-2277e85c]{margin-top:20px}.feedback-label[data-v-2277e85c]{display:block;font-size:14px;font-weight:600;color:#333;margin-bottom:8px}.feedback-textarea[data-v-2277e85c]{width:100%;padding:12px;border:1px solid #e0e0e0;border-radius:8px;font-size:14px;font-family:inherit;resize:vertical;transition:border-color .2s}.feedback-textarea[data-v-2277e85c]:focus{outline:none;border-color:#1976d2}.modal-footer[data-v-2277e85c]{display:flex;gap:12px;padding:20px 24px;border-top:1px solid #e0e0e0;justify-content:flex-end}.button-secondary[data-v-2277e85c]{padding:12px 24px;background:#fff;color:#333;border:1px solid #e0e0e0;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s}.button-secondary[data-v-2277e85c]:hover{background:#f5f5f5}.button-danger[data-v-2277e85c]{padding:12px 24px;background:#d32f2f;color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s}.button-danger[data-v-2277e85c]:hover:not(:disabled){background:#b71c1c}.button-danger[data-v-2277e85c]:disabled{opacity:.5;cursor:not-allowed}.withBackground[data-v-36b27d1f]{height:50px}
|
|
@@ -21,13 +21,13 @@ class g extends c {
|
|
|
21
21
|
if (typeof window > "u")
|
|
22
22
|
return;
|
|
23
23
|
const t = (s = document.getElementsByName("google-signin-client_id")[0]) === null || s === void 0 ? void 0 : s.content, i = e.clientId || t || "";
|
|
24
|
-
i || console.warn("GoogleAuthPlugin - clientId is empty"), this.options = {
|
|
24
|
+
return i || console.warn("GoogleAuthPlugin - clientId is empty"), this.options = {
|
|
25
25
|
clientId: i,
|
|
26
26
|
grantOfflineAccess: (n = e.grantOfflineAccess) !== null && n !== void 0 ? n : !1,
|
|
27
27
|
scopes: e.scopes || []
|
|
28
28
|
}, this.gapiLoaded = new Promise((o) => {
|
|
29
29
|
window.gapiResolve = o, this.loadScript();
|
|
30
|
-
}), this.addUserChangeListener();
|
|
30
|
+
}), this.addUserChangeListener(), this.gapiLoaded;
|
|
31
31
|
}
|
|
32
32
|
platformJsLoaded() {
|
|
33
33
|
gapi.load("auth2", () => {
|
package/package.json
CHANGED
|
@@ -1,57 +1,67 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
2
|
+
"name": "@tapni/auth",
|
|
3
|
+
"version": "1.0.63.dev",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/TapniAuth.umd.js",
|
|
6
|
+
"module": "./dist/TapniAuth.es.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"src"
|
|
10
|
+
],
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/TapniAuth.es.js",
|
|
14
|
+
"require": "./dist/TapniAuth.umd.js"
|
|
15
|
+
},
|
|
16
|
+
"./dist/style.css": "./dist/style.css"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"dev": "vite",
|
|
20
|
+
"build": "vite build --mode standalone",
|
|
21
|
+
"build:dev": "vite build --mode development",
|
|
22
|
+
"preview": "vite preview",
|
|
23
|
+
"build-lib": "vite build --config=vite-lib.config.js",
|
|
24
|
+
"build-lib:dev": "vite build --config=vite-lib.config.js --mode development",
|
|
25
|
+
"lint": "eslint src",
|
|
26
|
+
"format": "prettier . --write"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@braintree/sanitize-url": "^7.1.0",
|
|
30
|
+
"@capacitor-community/apple-sign-in": "^6.0.0",
|
|
31
|
+
"@capacitor/app": "^6.0.2",
|
|
32
|
+
"@capacitor/browser": "^6.0.4",
|
|
33
|
+
"@capacitor/core": "^6.2.0",
|
|
34
|
+
"@capacitor/device": "^6.0.2",
|
|
35
|
+
"@capacitor/preferences": "^6.0.3",
|
|
36
|
+
"@codetrix-studio/capacitor-google-auth": "^3.4.0-rc.4",
|
|
37
|
+
"@eslint/js": "^9.13.0",
|
|
38
|
+
"@otplib/preset-browser": "^12.0.1",
|
|
39
|
+
"@recognizebv/capacitor-plugin-msauth": "^3.6.3",
|
|
40
|
+
"@tapni/capacitor-reactive-localstorage-vue3": "^0.0.17",
|
|
41
|
+
"@tapni/styles": "^0.0.13",
|
|
42
|
+
"await-to-js": "^3.0.0",
|
|
43
|
+
"axios": "^1.7.8",
|
|
44
|
+
"buffer": "^6.0.3",
|
|
45
|
+
"eslint": "^9.13.0",
|
|
46
|
+
"eslint-config-prettier": "^9.1.0",
|
|
47
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
48
|
+
"eslint-plugin-vue": "^9.29.1",
|
|
49
|
+
"js-sha256": "^0.11.0",
|
|
50
|
+
"jwt-decode": "^4.0.0",
|
|
51
|
+
"prettier": "3.3.3",
|
|
52
|
+
"qr-code-styling": "^1.8.4",
|
|
53
|
+
"vue": "^3.5.13",
|
|
54
|
+
"vue-cookies": "^1.8.4",
|
|
55
|
+
"vue-router": "^4.5.0",
|
|
56
|
+
"vue3-select-component": "^0.7.0",
|
|
57
|
+
"vuex": "^4.1.0",
|
|
58
|
+
"vuex-router-sync": "v6.0.0-rc.1"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@rollup/plugin-inject": "^5.0.5",
|
|
62
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
|
63
|
+
"office-addin-dev-certs": "^1.13.5",
|
|
64
|
+
"vite": "^5.4.11",
|
|
65
|
+
"vite-plugin-node-polyfills": "^0.22.0"
|
|
66
|
+
}
|
|
57
67
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"printWidth": 1000,
|
|
3
|
+
"arrowParens": "always",
|
|
4
|
+
"bracketSpacing": true,
|
|
5
|
+
"embeddedLanguageFormatting": "auto",
|
|
6
|
+
"htmlWhitespaceSensitivity": "css",
|
|
7
|
+
"insertPragma": false,
|
|
8
|
+
"proseWrap": "preserve",
|
|
9
|
+
"quoteProps": "as-needed",
|
|
10
|
+
"requirePragma": false,
|
|
11
|
+
"semi": true,
|
|
12
|
+
"singleQuote": true,
|
|
13
|
+
"tabWidth": 4,
|
|
14
|
+
"trailingComma": "none",
|
|
15
|
+
"useTabs": true
|
|
16
|
+
}
|