@tapni/auth 1.0.2 → 1.0.3
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/assets/Account-CElX1bG1.js +1 -0
- package/dist/assets/Apps-B-GkviQb.css +1 -0
- package/dist/assets/Apps-DH6XpQ6k.js +1 -0
- package/dist/assets/CustomApp-D-PMGrCn.js +1 -0
- package/dist/assets/CustomApp-x1ZBgKin.css +1 -0
- package/dist/assets/General-BD2qnORR.js +1 -0
- package/dist/assets/General-OSR9oXHj.css +1 -0
- package/dist/assets/Inter-ZO3WBJgw.ttf +0 -0
- package/dist/assets/QR-CpmQl6vr.js +1 -0
- package/dist/assets/fontawesome-webfont-CQDK8MU3.ttf +0 -0
- package/dist/assets/fontawesome-webfont-DXgy9qkh.svg +2671 -0
- package/dist/assets/fontawesome-webfont-G5YE5S7X.eot +0 -0
- package/dist/assets/index-CNOQuLc_.css +1 -0
- package/dist/assets/index-DXEfDC45.js +176 -0
- package/dist/assets/web-1uupGAU9.js +5 -0
- package/dist/assets/web-BMHaq5cV.js +1 -0
- package/dist/assets/web-CvQGphDR.js +1 -0
- package/dist/assets/web-DMittTOZ.js +1 -0
- package/dist/assets/web-DhQdITWf.js +1 -0
- package/dist/assets/web-EiIhTtxC.js +1 -0
- package/dist/assets/web-OwpPF4YF.js +1 -0
- package/dist/index.html +36 -0
- package/package.json +1 -1
- package/src/App.vue +1 -2
- package/src/mixins/auth.mixin.js +1 -0
- package/src/store/auth.js +6 -0
- package/dist/.vite/manifest.json +0 -96
- package/dist/Account-IR-XgmiM.js +0 -153
- package/dist/Apps-CQXLKu2F.js +0 -112
- package/dist/CustomApp-FxfYHVid.js +0 -112
- package/dist/General-BVjTsECb.js +0 -477
- package/dist/QR-B60f-H2Q.js +0 -41
- package/dist/TapniAuth.es.js +0 -4
- package/dist/TapniAuth.umd.js +0 -141
- package/dist/install-BOPYSGGa.js +0 -18425
- package/dist/style.css +0 -1
- package/dist/web-AXRKjAOB.js +0 -92
- package/dist/web-IFGkBi0t.js +0 -86
- package/dist/web-LIfHmYL2.js +0 -54
- package/dist/web-XbruGdlD.js +0 -121
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{W as j}from"./index-DXEfDC45.js";var w={exports:{}};/*!
|
|
2
|
+
* $script.js JS loader & dependency manager
|
|
3
|
+
* https://github.com/ded/script.js
|
|
4
|
+
* (c) Dustin Diaz 2014 | License MIT
|
|
5
|
+
*/(function(y){(function(i,p){y.exports?y.exports=p():this[i]=p()})("$script",function(){var i=document,p=i.getElementsByTagName("head")[0],I=!1,m="push",S="readyState",A="onreadystatechange",s={},o={},d={},f,v;function g(e,t){for(var n=0,u=e.length;n<u;++n)if(!t(e[n]))return I;return 1}function h(e,t){g(e,function(n){return t(n),1})}function l(e,t,n){e=e[m]?e:[e];var u=t&&t.call,r=u?t:n,W=u?e.join(""):t,N=e.length;function b(c){return c.call?c():s[c]}function _(){if(!--N){s[W]=1,r&&r();for(var c in o)g(c.split("|"),b)&&!h(o[c],b)&&(o[c]=[])}}return setTimeout(function(){h(e,function c(a,U){if(a===null)return _();if(!U&&!/^https?:\/\//.test(a)&&f&&(a=a.indexOf(".js")===-1?f+a+".js":f+a),d[a])return d[a]==2?_():setTimeout(function(){c(a,!0)},0);d[a]=1,x(a,_)})},0),l}function x(e,t){var n=i.createElement("script"),u;n.onload=n.onerror=n[A]=function(){n[S]&&!/^c|loade/.test(n[S])||u||(n.onload=n[A]=null,u=1,d[e]=2,t())},n.async=1,n.src=v?e+(e.indexOf("?")===-1?"?":"&")+v:e,p.insertBefore(n,p.lastChild)}return l.get=x,l.order=function(e,t,n){(function u(r){r=e.shift(),e.length?l(r,u):l(r,t,n)})()},l.path=function(e){f=e},l.urlArgs=function(e){v=e},l.ready=function(e,t,n){e=e[m]?e:[e];var u=[];return!h(e,function(r){s[r]||u[m](r)})&&g(e,function(r){return s[r]})?t():function(r){o[r]=o[r]||[],o[r][m](t),n&&n(u)}(e.join("|")),l},l.done=function(e){l([null],e)},l})})(w);var z=w.exports;class P extends j{constructor(){super({name:"SignInWithApple",platforms:["web"]}),this.appleScriptUrl="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",this.isAppleScriptLoaded=!1}async authorize(i){return new Promise((p,I)=>{i?this.loadSignInWithAppleJS().then(m=>{var S,A,s;this.isAppleScriptLoaded=m,this.isAppleScriptLoaded?(AppleID.auth.init({clientId:i.clientId,redirectURI:i.redirectURI,scope:(S=i.scopes)!==null&&S!==void 0?S:void 0,state:(A=i.state)!==null&&A!==void 0?A:void 0,nonce:(s=i.nonce)!==null&&s!==void 0?s:void 0,usePopup:!0}),AppleID.auth.signIn().then(o=>{var d,f,v,g,h;const l={response:{user:null,email:(d=o.user)===null||d===void 0?void 0:d.email,givenName:(v=(f=o.user)===null||f===void 0?void 0:f.name)===null||v===void 0?void 0:v.firstName,familyName:(h=(g=o.user)===null||g===void 0?void 0:g.name)===null||h===void 0?void 0:h.lastName,identityToken:o.authorization.id_token,authorizationCode:o.authorization.code}};p(l)}).catch(o=>{I(o)})):I("Unable to load Sign in with Apple JS framework.")}):I("No options were provided.")})}loadSignInWithAppleJS(){return new Promise(i=>{this.isAppleScriptLoaded?i(!0):typeof window!==void 0?z.get(this.appleScriptUrl,()=>i(!0)):i(!1)})}}export{P as SignInWithAppleWeb};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{W as w}from"./index-DXEfDC45.js";class y extends w{async getId(){return{identifier:this.getUid()}}async getInfo(){if(typeof navigator>"u"||!navigator.userAgent)throw this.unavailable("Device API not available in this browser");const e=navigator.userAgent,i=this.parseUa(e);return{model:i.model,platform:"web",operatingSystem:i.operatingSystem,osVersion:i.osVersion,manufacturer:navigator.vendor,isVirtual:!1,webViewVersion:i.browserVersion}}async getBatteryInfo(){if(typeof navigator>"u"||!navigator.getBattery)throw this.unavailable("Device API not available in this browser");let e={};try{e=await navigator.getBattery()}catch{}return{batteryLevel:e.level,isCharging:e.charging}}async getLanguageCode(){return{value:navigator.language.split("-")[0].toLowerCase()}}async getLanguageTag(){return{value:navigator.language}}parseUa(e){const i={},r=e.indexOf("(")+1;let a=e.indexOf(") AppleWebKit");e.indexOf(") Gecko")!==-1&&(a=e.indexOf(") Gecko"));const s=e.substring(r,a);if(e.indexOf("Android")!==-1){const t=s.replace("; wv","").split("; ").pop();t&&(i.model=t.split(" Build")[0]),i.osVersion=s.split("; ")[1]}else if(i.model=s.split("; ")[0],typeof navigator<"u"&&navigator.oscpu)i.osVersion=navigator.oscpu;else if(e.indexOf("Windows")!==-1)i.osVersion=s;else{const t=s.split("; ").pop();if(t){const n=t.replace(" like Mac OS X","").split(" ");i.osVersion=n[n.length-1].replace(/_/g,".")}}/android/i.test(e)?i.operatingSystem="android":/iPad|iPhone|iPod/.test(e)&&!window.MSStream?i.operatingSystem="ios":/Win/.test(e)?i.operatingSystem="windows":/Mac/i.test(e)?i.operatingSystem="mac":i.operatingSystem="unknown";const l=!!window.ApplePaySession,x=!!window.chrome,p=/Firefox/.test(e),d=/Edg/.test(e),g=/FxiOS/.test(e),c=/CriOS/.test(e),f=/EdgiOS/.test(e);if(l||x&&!d||g||c||f){let t;g?t="FxiOS":c?t="CriOS":f?t="EdgiOS":l?t="Version":t="Chrome";const n=e.split(" ");for(const o of n)if(o.includes(t)){const v=o.split("/")[1];i.browserVersion=v}}else if(p||d){const o=e.split("").reverse().join("").split("/")[0].split("").reverse().join("");i.browserVersion=o}return i}getUid(){if(typeof window<"u"&&window.localStorage){let e=window.localStorage.getItem("_capuid");return e||(e=this.uuid4(),window.localStorage.setItem("_capuid",e),e)}return this.uuid4()}uuid4(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const i=Math.random()*16|0;return(e==="x"?i:i&3|8).toString(16)})}}export{y as DeviceWeb};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{W as t}from"./index-DXEfDC45.js";class s extends t{constructor(){super(),this.handleVisibilityChange=()=>{const e={isActive:document.hidden!==!0};this.notifyListeners("appStateChange",e),document.hidden?this.notifyListeners("pause",null):this.notifyListeners("resume",null)},document.addEventListener("visibilitychange",this.handleVisibilityChange,!1)}exitApp(){throw this.unimplemented("Not implemented on web.")}async getInfo(){throw this.unimplemented("Not implemented on web.")}async getLaunchUrl(){return{url:""}}async getState(){return{isActive:document.hidden!==!0}}async minimizeApp(){throw this.unimplemented("Not implemented on web.")}}export{s as AppWeb};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{W as i}from"./index-DXEfDC45.js";class u extends i{async initialize(e){const n={version:"v17.0"};return await this.loadScript(e.locale),FB.init(Object.assign(Object.assign({},n),e))}loadScript(e){if(typeof document>"u")return Promise.reject("document global not found");const n="fb";if(document.getElementById(n))return Promise.resolve();const r=document.getElementsByTagName("head")[0],s=document.createElement("script");return new Promise(o=>{s.onload=()=>o(),s.defer=!0,s.async=!0,s.id=n,s.src=`https://connect.facebook.net/${e??"en_US"}/sdk.js`,r.appendChild(s)})}async login(e){return new Promise((n,t)=>{FB.login(r=>{r.status==="connected"?n({accessToken:{token:r.authResponse.accessToken}}):t({accessToken:{token:null}})},{scope:e.permissions.join(",")})})}async logout(){return new Promise(e=>FB.logout(()=>e()))}async reauthorize(){return new Promise(e=>FB.reauthorize(n=>e(n)))}async getCurrentAccessToken(){return new Promise((e,n)=>{FB.getLoginStatus(t=>{if(t.status==="connected"){const r={accessToken:{applicationId:void 0,declinedPermissions:[],expires:void 0,isExpired:void 0,lastRefresh:void 0,permissions:[],token:t.authResponse.accessToken,userId:t.authResponse.userID}};e(r)}else n({accessToken:{token:null}})})})}async getProfile(e){const n=e.fields.join(",");return new Promise((t,r)=>{FB.api("/me",{fields:n},s=>{if(s.error){r(s.error.message);return}t(s)})})}async logEvent(){return Promise.resolve()}async setAutoLogAppEventsEnabled(){return Promise.resolve()}async setAdvertiserTrackingEnabled(){return Promise.resolve()}async setAdvertiserIDCollectionEnabled(){return Promise.resolve()}}export{u as FacebookLoginWeb};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{W as c}from"./index-DXEfDC45.js";class g extends c{constructor(){super()}loadScript(){if(typeof document>"u")return;const e="gapi";if(document==null?void 0:document.getElementById(e))return;const n=document.getElementsByTagName("head")[0],t=document.createElement("script");t.type="text/javascript",t.defer=!0,t.async=!0,t.id=e,t.onload=this.platformJsLoaded.bind(this),t.src="https://apis.google.com/js/platform.js",n.appendChild(t)}initialize(e={clientId:"",scopes:[],grantOfflineAccess:!1}){var s,n;if(typeof window>"u")return;const t=(s=document.getElementsByName("google-signin-client_id")[0])===null||s===void 0?void 0:s.content,i=e.clientId||t||"";i||console.warn("GoogleAuthPlugin - clientId is empty"),this.options={clientId:i,grantOfflineAccess:(n=e.grantOfflineAccess)!==null&&n!==void 0?n:!1,scopes:e.scopes||[]},this.gapiLoaded=new Promise(o=>{window.gapiResolve=o,this.loadScript()}),this.addUserChangeListener()}platformJsLoaded(){gapi.load("auth2",()=>{const e={client_id:this.options.clientId,plugin_name:"CodetrixStudioCapacitorGoogleAuth"};this.options.scopes.length&&(e.scope=this.options.scopes.join(" ")),gapi.auth2.init(e),window.gapiResolve()})}async signIn(){return new Promise(async(e,s)=>{var n;try{let t;const i=(n=this.options.grantOfflineAccess)!==null&&n!==void 0?n:!1;i?t=(await gapi.auth2.getAuthInstance().grantOfflineAccess()).code:await gapi.auth2.getAuthInstance().signIn();const o=gapi.auth2.getAuthInstance().currentUser.get();i&&await o.reloadAuthResponse();const a=this.getUserFrom(o);a.serverAuthCode=t,e(a)}catch(t){s(t)}})}async refresh(){const e=await gapi.auth2.getAuthInstance().currentUser.get().reloadAuthResponse();return{accessToken:e.access_token,idToken:e.id_token,refreshToken:""}}async signOut(){return gapi.auth2.getAuthInstance().signOut()}async addUserChangeListener(){await this.gapiLoaded,gapi.auth2.getAuthInstance().currentUser.listen(e=>{this.notifyListeners("userChange",e.isSignedIn()?this.getUserFrom(e):null)})}getUserFrom(e){const s={},n=e.getBasicProfile();s.email=n.getEmail(),s.familyName=n.getFamilyName(),s.givenName=n.getGivenName(),s.id=n.getId(),s.imageUrl=n.getImageUrl(),s.name=n.getName();const t=e.getAuthResponse(!0);return s.authentication={accessToken:t.access_token,idToken:t.id_token,refreshToken:""},s}}export{g as GoogleAuthWeb};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{W as o}from"./index-DXEfDC45.js";class e extends o{constructor(){super(),this._lastWindow=null}async open(s){this._lastWindow=window.open(s.url,s.windowName||"_blank")}async close(){return new Promise((s,n)=>{this._lastWindow!=null?(this._lastWindow.close(),this._lastWindow=null,s()):n("No active window to close!")})}}const i=new e;export{i as Browser,e as BrowserWeb};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{W as p}from"./index-DXEfDC45.js";class f extends p{constructor(){super(...arguments),this.group="CapacitorStorage"}async configure({group:e}){typeof e=="string"&&(this.group=e)}async get(e){return{value:this.impl.getItem(this.applyPrefix(e.key))}}async set(e){this.impl.setItem(this.applyPrefix(e.key),e.value)}async remove(e){this.impl.removeItem(this.applyPrefix(e.key))}async keys(){return{keys:this.rawKeys().map(t=>t.substring(this.prefix.length))}}async clear(){for(const e of this.rawKeys())this.impl.removeItem(e)}async migrate(){var e;const t=[],s=[],n="_cap_",o=Object.keys(this.impl).filter(i=>i.indexOf(n)===0);for(const i of o){const r=i.substring(n.length),a=(e=this.impl.getItem(i))!==null&&e!==void 0?e:"",{value:l}=await this.get({key:r});typeof l=="string"?s.push(r):(await this.set({key:r,value:a}),t.push(r))}return{migrated:t,existing:s}}async removeOld(){const e="_cap_",t=Object.keys(this.impl).filter(s=>s.indexOf(e)===0);for(const s of t)this.impl.removeItem(s)}get impl(){return window.localStorage}get prefix(){return this.group==="NativeStorage"?"":`${this.group}.`}rawKeys(){return Object.keys(this.impl).filter(e=>e.indexOf(this.prefix)===0)}applyPrefix(e){return this.prefix+e}}export{f as PreferencesWeb};
|
package/dist/index.html
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<!DOCTYPE HTML>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta name="google-signin-client_id" content="977665455842-5d5ar2comte3muk65oaf4g5jrmcsvu1m.apps.googleusercontent.com">
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover">
|
|
7
|
+
<meta name="format-detection" content="telephone=no">
|
|
8
|
+
<meta name="msapplication-tap-highlight" content="no">
|
|
9
|
+
<meta name="format-detection" content="telephone=no">
|
|
10
|
+
<link rel="icon" href="/favicon.ico" class="next-head"/>
|
|
11
|
+
<title>Tapni - Share everything with just a tap</title>
|
|
12
|
+
<meta name="description" content="Your new connecting experience. Tapni allows you to share all your socials and contact information in a smart, contactless, and sustainable way. One TAP is all it takes. Keep all your links in one place. Bring your business card to life. Impress anyone you meet. Connecting made effortless with just a simple tap!">
|
|
13
|
+
<!-- Open Graph / Facebook -->
|
|
14
|
+
<meta property="og:type" content="website">
|
|
15
|
+
<meta property="og:title" content="Tapni - Share with just a tap">
|
|
16
|
+
<meta property="og:description" content="Share everything in a smart, contactless,and sustainable way">
|
|
17
|
+
<meta property="og:image" content="https://cdn.tapni.co/images/banner-sticker.png">
|
|
18
|
+
<meta property="og:url" content="https://tapni.com">
|
|
19
|
+
|
|
20
|
+
<!-- Twitter -->
|
|
21
|
+
<meta property="twitter:url" content="https://tapni.com">
|
|
22
|
+
<meta property="twitter:card" content="summary_large_image">
|
|
23
|
+
<meta property="twitter:site" content="@tapni_co">
|
|
24
|
+
<meta property="twitter:title" content="Tapni - Share everything with just a tap">
|
|
25
|
+
<meta property="twitter:description" content="Your new connecting experience. Tapni allows you to share all your socials and contact information in a smart, contactless, and sustainable way. One TAP is all it takes. Keep all your links in one place. Bring your business card to life. Impress anyone you meet. Connecting made effortless with just a simple tap!">
|
|
26
|
+
<meta property="twitter:image" content="https://cdn.tapni.co/images/banner-sticker.png">
|
|
27
|
+
|
|
28
|
+
<link rel="apple-touch-icon" href="/icon.png">
|
|
29
|
+
<link rel="android-touch-icon" href="/icon.png" />
|
|
30
|
+
<script type="module" crossorigin src="/assets/index-DXEfDC45.js"></script>
|
|
31
|
+
<link rel="stylesheet" crossorigin href="/assets/index-CNOQuLc_.css">
|
|
32
|
+
</head>
|
|
33
|
+
<body id="bodyId" class="lazy-scroll no-select">
|
|
34
|
+
<div id="app"></div>
|
|
35
|
+
</body>
|
|
36
|
+
</html>
|
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -18,7 +18,6 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
|
18
18
|
<Language v-if="!isModal" />
|
|
19
19
|
<SSO v-if="!isModal" />
|
|
20
20
|
<SSOPick v-if="!isModal" />
|
|
21
|
-
<OTP />
|
|
22
21
|
|
|
23
22
|
<AuthWelcome v-if="initialized && renderView === 'AuthWelcome'" />
|
|
24
23
|
<AuthLogin v-else-if="initialized && renderView === 'AuthLogin'" :isModal="isModal" />
|
|
@@ -143,7 +142,7 @@ export default {
|
|
|
143
142
|
EventBus.$on('refreshTokenAction',(data) => this.refreshTokenAction({...data, storage: this.$storex}))
|
|
144
143
|
EventBus.$on('switchAccount',(data) => this.switchAccount(data))
|
|
145
144
|
EventBus.$on('setToken',(data) => this.setToken(data))
|
|
146
|
-
EventBus.$on('
|
|
145
|
+
EventBus.$on('setStorageItem',(data) => this.setStorageItem(data))
|
|
147
146
|
},
|
|
148
147
|
methods: {
|
|
149
148
|
async init () {
|
package/src/mixins/auth.mixin.js
CHANGED
package/src/store/auth.js
CHANGED
|
@@ -73,6 +73,9 @@ export default {
|
|
|
73
73
|
setAccountSettings(state, account) {
|
|
74
74
|
state.account = account;
|
|
75
75
|
},
|
|
76
|
+
setStorageItem(state, item) {
|
|
77
|
+
state.$storex[item.name] = item.data;
|
|
78
|
+
},
|
|
76
79
|
setStorage(state, storage) {
|
|
77
80
|
state.$storex = {
|
|
78
81
|
...state.$storex,
|
|
@@ -135,6 +138,9 @@ export default {
|
|
|
135
138
|
commit('setAccountSettings', response.data.data);
|
|
136
139
|
}
|
|
137
140
|
},
|
|
141
|
+
setStorageItem({ commit }, item) {
|
|
142
|
+
commit('setStorageItem', item);
|
|
143
|
+
},
|
|
138
144
|
setStorage({ commit }, storage) {
|
|
139
145
|
commit('setStorage', storage);
|
|
140
146
|
},
|
package/dist/.vite/manifest.json
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_install-BOPYSGGa.js": {
|
|
3
|
-
"file": "install-BOPYSGGa.js",
|
|
4
|
-
"name": "install",
|
|
5
|
-
"dynamicImports": [
|
|
6
|
-
"src/views/Account.vue",
|
|
7
|
-
"src/views/QR.vue",
|
|
8
|
-
"src/views/Apps.vue",
|
|
9
|
-
"src/views/CustomApp.vue",
|
|
10
|
-
"src/views/General.vue",
|
|
11
|
-
"node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js",
|
|
12
|
-
"node_modules/@capacitor-community/facebook-login/dist/esm/web.js",
|
|
13
|
-
"node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js",
|
|
14
|
-
"node_modules/@capacitor/preferences/dist/esm/web.js"
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
"node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js": {
|
|
18
|
-
"file": "web-XbruGdlD.js",
|
|
19
|
-
"name": "web",
|
|
20
|
-
"src": "node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js",
|
|
21
|
-
"isDynamicEntry": true
|
|
22
|
-
},
|
|
23
|
-
"node_modules/@capacitor-community/facebook-login/dist/esm/web.js": {
|
|
24
|
-
"file": "web-AXRKjAOB.js",
|
|
25
|
-
"name": "web",
|
|
26
|
-
"src": "node_modules/@capacitor-community/facebook-login/dist/esm/web.js",
|
|
27
|
-
"isDynamicEntry": true
|
|
28
|
-
},
|
|
29
|
-
"node_modules/@capacitor/preferences/dist/esm/web.js": {
|
|
30
|
-
"file": "web-LIfHmYL2.js",
|
|
31
|
-
"name": "web",
|
|
32
|
-
"src": "node_modules/@capacitor/preferences/dist/esm/web.js",
|
|
33
|
-
"isDynamicEntry": true
|
|
34
|
-
},
|
|
35
|
-
"node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js": {
|
|
36
|
-
"file": "web-IFGkBi0t.js",
|
|
37
|
-
"name": "web",
|
|
38
|
-
"src": "node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js",
|
|
39
|
-
"isDynamicEntry": true
|
|
40
|
-
},
|
|
41
|
-
"src/install.js": {
|
|
42
|
-
"file": "TapniAuth.umd.js",
|
|
43
|
-
"name": "install",
|
|
44
|
-
"src": "src/install.js",
|
|
45
|
-
"isEntry": true
|
|
46
|
-
},
|
|
47
|
-
"src/views/Account.vue": {
|
|
48
|
-
"file": "Account-IR-XgmiM.js",
|
|
49
|
-
"name": "Account",
|
|
50
|
-
"src": "src/views/Account.vue",
|
|
51
|
-
"isDynamicEntry": true,
|
|
52
|
-
"imports": [
|
|
53
|
-
"_install-BOPYSGGa.js"
|
|
54
|
-
]
|
|
55
|
-
},
|
|
56
|
-
"src/views/Apps.vue": {
|
|
57
|
-
"file": "Apps-CQXLKu2F.js",
|
|
58
|
-
"name": "Apps",
|
|
59
|
-
"src": "src/views/Apps.vue",
|
|
60
|
-
"isDynamicEntry": true,
|
|
61
|
-
"imports": [
|
|
62
|
-
"_install-BOPYSGGa.js"
|
|
63
|
-
]
|
|
64
|
-
},
|
|
65
|
-
"src/views/CustomApp.vue": {
|
|
66
|
-
"file": "CustomApp-FxfYHVid.js",
|
|
67
|
-
"name": "CustomApp",
|
|
68
|
-
"src": "src/views/CustomApp.vue",
|
|
69
|
-
"isDynamicEntry": true,
|
|
70
|
-
"imports": [
|
|
71
|
-
"_install-BOPYSGGa.js"
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
|
-
"src/views/General.vue": {
|
|
75
|
-
"file": "General-BVjTsECb.js",
|
|
76
|
-
"name": "General",
|
|
77
|
-
"src": "src/views/General.vue",
|
|
78
|
-
"isDynamicEntry": true,
|
|
79
|
-
"imports": [
|
|
80
|
-
"_install-BOPYSGGa.js"
|
|
81
|
-
]
|
|
82
|
-
},
|
|
83
|
-
"src/views/QR.vue": {
|
|
84
|
-
"file": "QR-B60f-H2Q.js",
|
|
85
|
-
"name": "QR",
|
|
86
|
-
"src": "src/views/QR.vue",
|
|
87
|
-
"isDynamicEntry": true,
|
|
88
|
-
"imports": [
|
|
89
|
-
"_install-BOPYSGGa.js"
|
|
90
|
-
]
|
|
91
|
-
},
|
|
92
|
-
"style.css": {
|
|
93
|
-
"file": "style.css",
|
|
94
|
-
"src": "style.css"
|
|
95
|
-
}
|
|
96
|
-
}
|
package/dist/Account-IR-XgmiM.js
DELETED
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import { _ as g, A as d, C as u, E as h } from "./install-BOPYSGGa.js";
|
|
2
|
-
import { resolveComponent as p, openBlock as _, createElementBlock as m, createCommentVNode as n, createElementVNode as o, toDisplayString as t, createVNode as a, withCtx as c } from "vue";
|
|
3
|
-
const f = {
|
|
4
|
-
mixins: [d],
|
|
5
|
-
data() {
|
|
6
|
-
return {
|
|
7
|
-
expanded: !1,
|
|
8
|
-
addAccountReady: !1
|
|
9
|
-
};
|
|
10
|
-
},
|
|
11
|
-
computed: {
|
|
12
|
-
appVersion() {
|
|
13
|
-
return u.WEB_VERSION;
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
async mounted() {
|
|
17
|
-
if (!this.isLoggedIn)
|
|
18
|
-
return this.$router.push("/");
|
|
19
|
-
this.getAccountSettings();
|
|
20
|
-
},
|
|
21
|
-
methods: {
|
|
22
|
-
continueTo(e) {
|
|
23
|
-
console.log("continue to " + e);
|
|
24
|
-
},
|
|
25
|
-
addAccount() {
|
|
26
|
-
this.$router.push("/login");
|
|
27
|
-
},
|
|
28
|
-
switchAccount(e) {
|
|
29
|
-
console.log("switch", e);
|
|
30
|
-
},
|
|
31
|
-
toggleLanguageModal() {
|
|
32
|
-
h.$emit("toggleSSOLanguageModal");
|
|
33
|
-
},
|
|
34
|
-
logoutAccount() {
|
|
35
|
-
this.logout({ refreshToken: this.refreshTokens[0], sendRequest: !0 });
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}, v = {
|
|
39
|
-
class: "page-login content-boxed content-boxed-padding center-text",
|
|
40
|
-
style: { "margin-top": "-1px", overflow: "hidden", border: "solid 0px #ffffff" }
|
|
41
|
-
}, w = /* @__PURE__ */ o("br", null, null, -1), k = { class: "bold full-top no-bottom center-text" }, b = { class: "full-bottom half-top center-text font-16" };
|
|
42
|
-
const L = { class: "container left-text" }, y = { class: "firstRow" }, N = ["src"], R = ["src"], V = { class: "firstRow" }, A = ["src"], E = ["src"], I = { class: "firstRow" }, B = ["src"], S = ["src"], T = { class: "firstRow" }, C = ["src"], $ = ["src"], D = { class: "firstRow" }, M = ["src"], O = { class: "red-text" }, q = ["src"], F = { class: "moreFooter" }, W = {
|
|
43
|
-
class: "app-version",
|
|
44
|
-
style: { "margin-top": "10px" }
|
|
45
|
-
};
|
|
46
|
-
function j(e, r, z, G, H, l) {
|
|
47
|
-
const s = p("router-link");
|
|
48
|
-
return _(), m("div", v, [
|
|
49
|
-
w,
|
|
50
|
-
n("", !0),
|
|
51
|
-
o("h1", k, t(e.ssoLang[e.appLanguage].welcome_account), 1),
|
|
52
|
-
o("p", b, t(e.account.email), 1),
|
|
53
|
-
(e.display, n("", !0)),
|
|
54
|
-
o("div", L, [
|
|
55
|
-
n("", !0),
|
|
56
|
-
a(s, {
|
|
57
|
-
to: "/general",
|
|
58
|
-
class: "settingRow"
|
|
59
|
-
}, {
|
|
60
|
-
default: c(() => [
|
|
61
|
-
o("div", y, [
|
|
62
|
-
o("img", {
|
|
63
|
-
src: e.getIcon("user-black.svg"),
|
|
64
|
-
class: "withBackground"
|
|
65
|
-
}, null, 8, N),
|
|
66
|
-
o("h4", null, t(e.ssoLang[e.appLanguage].general), 1),
|
|
67
|
-
o("img", {
|
|
68
|
-
src: e.getIcon("arrow-gray-right.svg")
|
|
69
|
-
}, null, 8, R)
|
|
70
|
-
])
|
|
71
|
-
]),
|
|
72
|
-
_: 1
|
|
73
|
-
}),
|
|
74
|
-
a(s, {
|
|
75
|
-
to: "/security",
|
|
76
|
-
class: "settingRow"
|
|
77
|
-
}, {
|
|
78
|
-
default: c(() => [
|
|
79
|
-
o("div", V, [
|
|
80
|
-
o("img", {
|
|
81
|
-
src: e.getIcon("shield-black.svg"),
|
|
82
|
-
class: "withBackground"
|
|
83
|
-
}, null, 8, A),
|
|
84
|
-
o("h4", null, t(e.ssoLang[e.appLanguage].security), 1),
|
|
85
|
-
o("img", {
|
|
86
|
-
src: e.getIcon("arrow-gray-right.svg")
|
|
87
|
-
}, null, 8, E)
|
|
88
|
-
])
|
|
89
|
-
]),
|
|
90
|
-
_: 1
|
|
91
|
-
}),
|
|
92
|
-
a(s, {
|
|
93
|
-
to: "/apps",
|
|
94
|
-
class: "settingRow"
|
|
95
|
-
}, {
|
|
96
|
-
default: c(() => [
|
|
97
|
-
o("div", I, [
|
|
98
|
-
o("img", {
|
|
99
|
-
src: e.getIcon("apps-black.svg"),
|
|
100
|
-
class: "withBackground"
|
|
101
|
-
}, null, 8, B),
|
|
102
|
-
o("h4", null, t(e.ssoLang[e.appLanguage].apps), 1),
|
|
103
|
-
o("img", {
|
|
104
|
-
src: e.getIcon("arrow-gray-right.svg")
|
|
105
|
-
}, null, 8, S)
|
|
106
|
-
])
|
|
107
|
-
]),
|
|
108
|
-
_: 1
|
|
109
|
-
}),
|
|
110
|
-
a(s, {
|
|
111
|
-
to: "/billing",
|
|
112
|
-
class: "settingRow"
|
|
113
|
-
}, {
|
|
114
|
-
default: c(() => [
|
|
115
|
-
o("div", T, [
|
|
116
|
-
o("img", {
|
|
117
|
-
src: e.getIcon("billing-card-black.svg"),
|
|
118
|
-
class: "withBackground"
|
|
119
|
-
}, null, 8, C),
|
|
120
|
-
o("h4", null, t(e.ssoLang[e.appLanguage].billing), 1),
|
|
121
|
-
o("img", {
|
|
122
|
-
src: e.getIcon("arrow-gray-right.svg")
|
|
123
|
-
}, null, 8, $)
|
|
124
|
-
])
|
|
125
|
-
]),
|
|
126
|
-
_: 1
|
|
127
|
-
}),
|
|
128
|
-
o("div", {
|
|
129
|
-
class: "settingRow",
|
|
130
|
-
onClick: r[4] || (r[4] = (...i) => l.logoutAccount && l.logoutAccount(...i))
|
|
131
|
-
}, [
|
|
132
|
-
o("div", D, [
|
|
133
|
-
o("img", {
|
|
134
|
-
src: e.getIcon("logout-red.svg"),
|
|
135
|
-
class: "withBackground"
|
|
136
|
-
}, null, 8, M),
|
|
137
|
-
o("h4", O, t(e.ssoLang[e.appLanguage].logout), 1),
|
|
138
|
-
o("img", {
|
|
139
|
-
src: e.getIcon("arrow-gray-right.svg")
|
|
140
|
-
}, null, 8, q)
|
|
141
|
-
])
|
|
142
|
-
]),
|
|
143
|
-
o("div", F, [
|
|
144
|
-
o("p", W, t(e.ssoLang[e.appLanguage].version) + ": " + t(l.appVersion), 1),
|
|
145
|
-
n("", !0)
|
|
146
|
-
])
|
|
147
|
-
])
|
|
148
|
-
]);
|
|
149
|
-
}
|
|
150
|
-
const Q = /* @__PURE__ */ g(f, [["render", j]]);
|
|
151
|
-
export {
|
|
152
|
-
Q as default
|
|
153
|
-
};
|
package/dist/Apps-CQXLKu2F.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { _ as h, A as u, E as _ } from "./install-BOPYSGGa.js";
|
|
2
|
-
import { resolveComponent as m, openBlock as r, createElementBlock as d, createCommentVNode as e, createElementVNode as t, createVNode as n, withCtx as a, toDisplayString as g, pushScopeId as f, popScopeId as w } from "vue";
|
|
3
|
-
const v = {
|
|
4
|
-
name: "AuthSecurity",
|
|
5
|
-
mixins: [u],
|
|
6
|
-
props: {
|
|
7
|
-
payload: {
|
|
8
|
-
type: Object,
|
|
9
|
-
default: {}
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
data() {
|
|
13
|
-
return {
|
|
14
|
-
loading: !1
|
|
15
|
-
};
|
|
16
|
-
},
|
|
17
|
-
async mounted() {
|
|
18
|
-
this.isLoggedIn || this.$router.push("/login");
|
|
19
|
-
},
|
|
20
|
-
methods: {
|
|
21
|
-
close() {
|
|
22
|
-
_.$emit("ssoEvent", { name: "toggleAuthModal", data: !0 });
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}, i = (s) => (f("data-v-3e0687c7"), s = s(), w(), s), y = { class: "page-login content-boxed content-boxed-padding" }, b = /* @__PURE__ */ i(() => /* @__PURE__ */ t("i", { class: "font-17 color-black" }, [
|
|
26
|
-
/* @__PURE__ */ t("img", {
|
|
27
|
-
src: "https://cdn.tapni.co/icons/down-arrow.png",
|
|
28
|
-
class: "responsive-image",
|
|
29
|
-
style: { width: "35%" }
|
|
30
|
-
})
|
|
31
|
-
], -1)), k = [
|
|
32
|
-
b
|
|
33
|
-
], I = { class: "subheaderContainer full-top" }, x = ["src"], S = {
|
|
34
|
-
class: "center-text",
|
|
35
|
-
style: { "flex-grow": "1", "text-align": "center", margin: "0", "font-weight": "600" }
|
|
36
|
-
}, A = { class: "container left-text" }, B = { class: "center-text" }, C = { class: "full-top" }, E = { class: "firstRow" }, L = ["src"], M = /* @__PURE__ */ i(() => /* @__PURE__ */ t("h4", null, "Tapni", -1)), R = ["src"], $ = { class: "firstRow" }, N = ["src"], V = /* @__PURE__ */ i(() => /* @__PURE__ */ t("h4", null, "MailSign", -1)), j = ["src"];
|
|
37
|
-
function D(s, c, O, T, q, l) {
|
|
38
|
-
const o = m("router-link");
|
|
39
|
-
return r(), d("div", y, [
|
|
40
|
-
s.isModal ? (r(), d("a", {
|
|
41
|
-
key: 0,
|
|
42
|
-
onClick: c[0] || (c[0] = (...p) => l.close && l.close(...p)),
|
|
43
|
-
class: "color-black pull-right pointer",
|
|
44
|
-
style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
|
|
45
|
-
}, k)) : e("", !0),
|
|
46
|
-
t("div", I, [
|
|
47
|
-
n(o, {
|
|
48
|
-
to: "/account",
|
|
49
|
-
class: "button gray-button pointer left-button"
|
|
50
|
-
}, {
|
|
51
|
-
default: a(() => [
|
|
52
|
-
t("img", {
|
|
53
|
-
src: s.getIcon("arrow-gray-right.svg"),
|
|
54
|
-
height: "20",
|
|
55
|
-
width: "20",
|
|
56
|
-
class: "btn-icon",
|
|
57
|
-
style: { rotate: "180deg" }
|
|
58
|
-
}, null, 8, x)
|
|
59
|
-
]),
|
|
60
|
-
_: 1
|
|
61
|
-
}),
|
|
62
|
-
t("h2", S, g(s.ssoLang[s.appLanguage].apps), 1)
|
|
63
|
-
]),
|
|
64
|
-
t("div", A, [
|
|
65
|
-
t("p", B, g(s.ssoLang[s.appLanguage].apps_p), 1),
|
|
66
|
-
t("div", C, [
|
|
67
|
-
e("", !0),
|
|
68
|
-
n(o, {
|
|
69
|
-
to: "/apps/tapni",
|
|
70
|
-
class: "settingRow"
|
|
71
|
-
}, {
|
|
72
|
-
default: a(() => [
|
|
73
|
-
t("div", E, [
|
|
74
|
-
t("img", {
|
|
75
|
-
src: s.getIcon("tapni-logo-small-black.png"),
|
|
76
|
-
class: "withBackground"
|
|
77
|
-
}, null, 8, L),
|
|
78
|
-
M,
|
|
79
|
-
t("img", {
|
|
80
|
-
src: s.getIcon("arrow-gray-right.svg")
|
|
81
|
-
}, null, 8, R)
|
|
82
|
-
])
|
|
83
|
-
]),
|
|
84
|
-
_: 1
|
|
85
|
-
}),
|
|
86
|
-
n(o, {
|
|
87
|
-
to: "/apps/mailsign",
|
|
88
|
-
class: "settingRow half-top"
|
|
89
|
-
}, {
|
|
90
|
-
default: a(() => [
|
|
91
|
-
t("div", $, [
|
|
92
|
-
t("img", {
|
|
93
|
-
src: s.getIcon("app-logo-mailsign.svg"),
|
|
94
|
-
class: "withBackground"
|
|
95
|
-
}, null, 8, N),
|
|
96
|
-
V,
|
|
97
|
-
t("img", {
|
|
98
|
-
src: s.getIcon("arrow-gray-right.svg")
|
|
99
|
-
}, null, 8, j)
|
|
100
|
-
])
|
|
101
|
-
]),
|
|
102
|
-
_: 1
|
|
103
|
-
}),
|
|
104
|
-
e("", !0)
|
|
105
|
-
])
|
|
106
|
-
])
|
|
107
|
-
]);
|
|
108
|
-
}
|
|
109
|
-
const G = /* @__PURE__ */ h(v, [["render", D], ["__scopeId", "data-v-3e0687c7"]]);
|
|
110
|
-
export {
|
|
111
|
-
G as default
|
|
112
|
-
};
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { _ as h, A as u, E as _ } from "./install-BOPYSGGa.js";
|
|
2
|
-
import { resolveComponent as m, openBlock as r, createElementBlock as d, createCommentVNode as e, createElementVNode as t, createVNode as n, withCtx as a, toDisplayString as p, pushScopeId as f, popScopeId as w } from "vue";
|
|
3
|
-
const v = {
|
|
4
|
-
name: "AuthSecurity",
|
|
5
|
-
mixins: [u],
|
|
6
|
-
props: {
|
|
7
|
-
payload: {
|
|
8
|
-
type: Object,
|
|
9
|
-
default: {}
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
data() {
|
|
13
|
-
return {
|
|
14
|
-
loading: !1
|
|
15
|
-
};
|
|
16
|
-
},
|
|
17
|
-
async mounted() {
|
|
18
|
-
this.isLoggedIn || this.$router.push("/login");
|
|
19
|
-
},
|
|
20
|
-
methods: {
|
|
21
|
-
close() {
|
|
22
|
-
_.$emit("ssoEvent", { name: "toggleAuthModal", data: !0 });
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}, i = (s) => (f("data-v-851bd608"), s = s(), w(), s), b = { class: "page-login content-boxed content-boxed-padding" }, y = /* @__PURE__ */ i(() => /* @__PURE__ */ t("i", { class: "font-17 color-black" }, [
|
|
26
|
-
/* @__PURE__ */ t("img", {
|
|
27
|
-
src: "https://cdn.tapni.co/icons/down-arrow.png",
|
|
28
|
-
class: "responsive-image",
|
|
29
|
-
style: { width: "35%" }
|
|
30
|
-
})
|
|
31
|
-
], -1)), k = [
|
|
32
|
-
y
|
|
33
|
-
], I = { class: "subheaderContainer full-top" }, x = ["src"], C = {
|
|
34
|
-
class: "center-text",
|
|
35
|
-
style: { "flex-grow": "1", "text-align": "center", margin: "0", "font-weight": "600" }
|
|
36
|
-
}, S = { class: "container left-text" }, A = { class: "center-text" }, B = { class: "full-top" }, E = { class: "firstRow" }, $ = ["src"], M = /* @__PURE__ */ i(() => /* @__PURE__ */ t("h4", null, "Tapni", -1)), R = ["src"], L = { class: "firstRow" }, N = ["src"], V = /* @__PURE__ */ i(() => /* @__PURE__ */ t("h4", null, "MailSign", -1)), j = ["src"];
|
|
37
|
-
function D(s, c, O, T, q, l) {
|
|
38
|
-
const o = m("router-link");
|
|
39
|
-
return r(), d("div", b, [
|
|
40
|
-
s.isModal ? (r(), d("a", {
|
|
41
|
-
key: 0,
|
|
42
|
-
onClick: c[0] || (c[0] = (...g) => l.close && l.close(...g)),
|
|
43
|
-
class: "color-black pull-right pointer",
|
|
44
|
-
style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
|
|
45
|
-
}, k)) : e("", !0),
|
|
46
|
-
t("div", I, [
|
|
47
|
-
n(o, {
|
|
48
|
-
to: "/account",
|
|
49
|
-
class: "button gray-button pointer left-button"
|
|
50
|
-
}, {
|
|
51
|
-
default: a(() => [
|
|
52
|
-
t("img", {
|
|
53
|
-
src: s.getIcon("arrow-gray-right.svg"),
|
|
54
|
-
height: "20",
|
|
55
|
-
width: "20",
|
|
56
|
-
class: "btn-icon",
|
|
57
|
-
style: { rotate: "180deg" }
|
|
58
|
-
}, null, 8, x)
|
|
59
|
-
]),
|
|
60
|
-
_: 1
|
|
61
|
-
}),
|
|
62
|
-
t("h2", C, p(s.$route.params.app), 1)
|
|
63
|
-
]),
|
|
64
|
-
t("div", S, [
|
|
65
|
-
t("p", A, p(s.ssoLang[s.appLanguage].apps_p), 1),
|
|
66
|
-
t("div", B, [
|
|
67
|
-
e("", !0),
|
|
68
|
-
n(o, {
|
|
69
|
-
to: "/apps/tapni",
|
|
70
|
-
class: "settingRow"
|
|
71
|
-
}, {
|
|
72
|
-
default: a(() => [
|
|
73
|
-
t("div", E, [
|
|
74
|
-
t("img", {
|
|
75
|
-
src: s.getIcon("tapni-logo-small-black.png"),
|
|
76
|
-
class: "withBackground"
|
|
77
|
-
}, null, 8, $),
|
|
78
|
-
M,
|
|
79
|
-
t("img", {
|
|
80
|
-
src: s.getIcon("arrow-gray-right.svg")
|
|
81
|
-
}, null, 8, R)
|
|
82
|
-
])
|
|
83
|
-
]),
|
|
84
|
-
_: 1
|
|
85
|
-
}),
|
|
86
|
-
n(o, {
|
|
87
|
-
to: "/apps/mailsign",
|
|
88
|
-
class: "settingRow half-top"
|
|
89
|
-
}, {
|
|
90
|
-
default: a(() => [
|
|
91
|
-
t("div", L, [
|
|
92
|
-
t("img", {
|
|
93
|
-
src: s.getIcon("app-logo-mailsign.svg"),
|
|
94
|
-
class: "withBackground"
|
|
95
|
-
}, null, 8, N),
|
|
96
|
-
V,
|
|
97
|
-
t("img", {
|
|
98
|
-
src: s.getIcon("arrow-gray-right.svg")
|
|
99
|
-
}, null, 8, j)
|
|
100
|
-
])
|
|
101
|
-
]),
|
|
102
|
-
_: 1
|
|
103
|
-
}),
|
|
104
|
-
e("", !0)
|
|
105
|
-
])
|
|
106
|
-
])
|
|
107
|
-
]);
|
|
108
|
-
}
|
|
109
|
-
const G = /* @__PURE__ */ h(v, [["render", D], ["__scopeId", "data-v-851bd608"]]);
|
|
110
|
-
export {
|
|
111
|
-
G as default
|
|
112
|
-
};
|