@tapni/auth 1.0.8 → 1.0.10
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 +12 -12
- package/dist/.well-known/assetlinks.json +10 -12
- package/dist/.well-known/microsoft-identity-association.json +5 -5
- package/dist/{Apps-aanvwc1E.js → Apps-RvuCmVZn.js} +1 -1
- package/dist/{Billing-C7LjeXBV.js → Billing-Cl-Go20Z.js} +1 -1
- package/dist/{CustomApp-Cd00FwXJ.js → CustomApp-CZq-1s27.js} +1 -1
- package/dist/{General-DH-AnLIA.js → General-B4mMzmcc.js} +1 -1
- package/dist/{QR-cfWsMTIZ.js → QR-BNOCCI9L.js} +1 -1
- package/dist/TapniAuth.es.js +1 -1
- package/dist/TapniAuth.umd.js +8 -8
- package/dist/blank.html +31 -0
- package/dist/{install-CBFqB-tX.js → install-DqdbJ4A1.js} +760 -743
- package/dist/site.webmanifest +11 -1
- package/dist/style.css +1 -1
- package/package.json +14 -4
- package/src/.prettierrc.json +16 -0
- package/src/components/DELETE_LinkIcon.vue +174 -225
- package/src/components/DELETE_SSOPick.vue +93 -148
- package/src/eslint.config.js +15 -0
- package/src/install.js +9 -10
- package/src/main.js +54 -57
- package/src/mixins/apple.mixin.js +56 -54
- package/src/mixins/auth.mixin.js +3 -2
- package/src/mixins/global.mixin.js +2 -2
- package/src/mixins/google.mixin.js +53 -54
- package/src/mixins/qr-auth.mixin.js +111 -107
- package/src/router/index.js +6 -6
- package/src/routes.js +1 -1
- package/src/services/Api.js +55 -57
- package/src/services/CompanyService.js +10 -10
- package/src/services/DeviceService.js +3 -3
- package/src/services/UserService.js +45 -45
- package/src/services/UtilService.js +256 -218
- package/src/store/event-bus.js +22 -22
- package/src/store/locales/cn.js +442 -458
- package/src/store/locales/de.js +438 -517
- package/src/store/locales/es.js +442 -524
- package/src/store/locales/fr.js +442 -516
- package/src/store/locales/it.js +442 -514
- package/src/store/locales/kr.js +442 -491
- package/src/store/locales/lang.js +43 -43
- package/src/store/locales/sr.js +439 -492
- package/src/store/locales/tr.js +436 -487
- package/src/store/store.js +6 -6
- package/src/views/Account.vue +2 -2
- package/src/views/Callback.vue +36 -33
- package/src/views/Reset.vue +132 -135
- package/src/views/Verify.vue +153 -151
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
|
-
.container{padding:10px 0 100px!important;display:flex;flex-direction:column;gap:10px}.settingsCard{background-color:#fff;padding:20px;border-radius:26px;align-items:center}.device{display:flex;align-items:center}h4{margin-left:20px;font-weight:700}.middle{flex:1}.left img{background-color:#f7f8f9;border-radius:20px;padding:10px}.divider{height:1px;background-color:#f0f0f0;margin:20px 0}.moreFooter{display:flex;align-items:center;justify-content:space-between;padding:0 10px}.settingRow{background-color:#f4f4f4;padding:10px 9px;border-radius:15px;cursor:pointer}.settingRow .firstRow,.settingRow .secondRow{display:flex;align-items:center;min-height:35px}.settingRow .firstRow h4{text-align:left;flex:1;margin-left:20px;font-weight:600;margin-bottom:0}.settingRow .secondRow{font-size:8px;margin-top:20px}.settingRow .secondRow p{flex:1;color:#999}.withBackground{background-color:#fff;border-radius:10px;padding:10px;width:50px}.ios-switch{position:relative;width:60px;padding-top:4px;padding-right:4px;margin-left:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.ios-switch-checkbox{display:none}.ios-switch-label{background-color:#e3e3e3;display:block;overflow:initial;cursor:pointer;height:30px;padding:0;line-height:20px;border:1px solid #e3e3e3;border-radius:25px;transition:all .25s ease}.ios-switch-label:before{content:"";display:block;width:30px;margin:0;position:absolute;top:0;bottom:0;right:24px;background-size:15px;background-repeat:no-repeat;background-position:center;border:2px solid #e3e3e3;border-radius:25px;transition:all .25s ease}.ios-switch-checkbox:checked+.ios-switch-label{background-color:#151515}.ios-switch-checkbox:checked+.ios-switch-label,.ios-switch-checkbox:checked+.ios-switch-label:before{border-color:#151515}.ios-switch-checkbox:checked+.ios-switch-label:before{right:-1px}.subheaderContainer{display:flex;align-items:center;position:relative;padding:15px 25px}.subheaderContainer .left-button{width:40px!important;height:40px!important;margin:0;border-radius:50%;background:#f4f4f4;display:flex;align-items:center;justify-content:center;position:absolute;left:20px}.subheaderContainer .button{width:40px!important;height:40px!important;margin:0;border-radius:50%;background:#f4f4f4;display:flex;align-items:center;justify-content:center;position:absolute}.subheaderContainer .button img{top:0!important;margin-right:3px!important}.subheaderContainer .left-button{left:20px}.subheaderContainer .right-button{right:20px}.transition-icon{transition:.5s}.rotate-icon{transform:translate(-50%,-50%) rotate(180deg)!important}.app-store-icon[data-v-7aad6400]{box-shadow:0 4px 10px #00000017;border-radius:12px}#codeInput[data-v-
|
|
1
|
+
.container{padding:10px 0 100px!important;display:flex;flex-direction:column;gap:10px}.settingsCard{background-color:#fff;padding:20px;border-radius:26px;align-items:center}.device{display:flex;align-items:center}h4{margin-left:20px;font-weight:700}.middle{flex:1}.left img{background-color:#f7f8f9;border-radius:20px;padding:10px}.divider{height:1px;background-color:#f0f0f0;margin:20px 0}.moreFooter{display:flex;align-items:center;justify-content:space-between;padding:0 10px}.settingRow{background-color:#f4f4f4;padding:10px 9px;border-radius:15px;cursor:pointer}.settingRow .firstRow,.settingRow .secondRow{display:flex;align-items:center;min-height:35px}.settingRow .firstRow h4{text-align:left;flex:1;margin-left:20px;font-weight:600;margin-bottom:0}.settingRow .secondRow{font-size:8px;margin-top:20px}.settingRow .secondRow p{flex:1;color:#999}.withBackground{background-color:#fff;border-radius:10px;padding:10px;width:50px}.ios-switch{position:relative;width:60px;padding-top:4px;padding-right:4px;margin-left:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.ios-switch-checkbox{display:none}.ios-switch-label{background-color:#e3e3e3;display:block;overflow:initial;cursor:pointer;height:30px;padding:0;line-height:20px;border:1px solid #e3e3e3;border-radius:25px;transition:all .25s ease}.ios-switch-label:before{content:"";display:block;width:30px;margin:0;position:absolute;top:0;bottom:0;right:24px;background-size:15px;background-repeat:no-repeat;background-position:center;border:2px solid #e3e3e3;border-radius:25px;transition:all .25s ease}.ios-switch-checkbox:checked+.ios-switch-label{background-color:#151515}.ios-switch-checkbox:checked+.ios-switch-label,.ios-switch-checkbox:checked+.ios-switch-label:before{border-color:#151515}.ios-switch-checkbox:checked+.ios-switch-label:before{right:-1px}.subheaderContainer{display:flex;align-items:center;position:relative;padding:15px 25px}.subheaderContainer .left-button{width:40px!important;height:40px!important;margin:0;border-radius:50%;background:#f4f4f4;display:flex;align-items:center;justify-content:center;position:absolute;left:20px}.subheaderContainer .button{width:40px!important;height:40px!important;margin:0;border-radius:50%;background:#f4f4f4;display:flex;align-items:center;justify-content:center;position:absolute}.subheaderContainer .button img{top:0!important;margin-right:3px!important}.subheaderContainer .left-button{left:20px}.subheaderContainer .right-button{right:20px}.transition-icon{transition:.5s}.rotate-icon{transform:translate(-50%,-50%) rotate(180deg)!important}.app-store-icon[data-v-7aad6400]{box-shadow:0 4px 10px #00000017;border-radius:12px}#codeInput[data-v-dea3e9ef],#emailInput[data-v-dea3e9ef]{text-align:center;padding-right:15%;font-size:17px}.firstRow img[data-v-5caa3239]{width:25px;height:25px;position:absolute;top:50%;right:0;transform:translate(-50%,-50%)}#emailInput[data-v-b19fad43]{text-align:center;padding-right:15%;font-size:17px}.fade-enter-to[data-v-e5fbde19]{opacity:1}.sso-img[data-v-6ebe2dcb]{margin:2px auto 0;width:35px}input[data-v-6ebe2dcb]{margin:0 auto;height:25px}.sso-img[data-v-53788b8a]{margin:2px auto 0;width:35px}input[data-v-53788b8a]{margin:0 auto;height:25px}.link-grid,.user-link-img{width:100%;display:inline-table;position:relative}.link-grid{width:30%;margin:1.6%;padding:1.6%}.link-grid .user-link-img img{border-radius:25%!important}.link-grid .edit-icon{border-radius:20px;right:-3%;top:-3%;position:absolute;z-index:3;max-width:23%;overflow:hidden;min-width:30px}.link-grid .direct-icon{border-radius:20px;left:-3%;top:-3%;position:absolute;z-index:555;max-width:23%;overflow:hidden;min-width:30px}.link-grid .link-text{min-height:20px;margin-top:3px!important;display:block;text-align:center;line-height:normal;overflow-wrap:anywhere}.link-list{width:93%;max-height:67px!important;margin:0 auto;display:flex;border-radius:15px!important;background-color:#fff;border:solid 1px #e8e8e8;position:relative;align-items:center}.link-list .user-link-img{display:inline-block;width:65px;border-radius:25%!important}.link-list .link-text{display:inline-block;padding:18px 0% 17px 10%;font-size:15px;font-weight:500;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex:1;text-align:left;border-radius:15px!important}.link-list .edit-icon{border-radius:20px;right:7%;top:30%;position:absolute;z-index:3;width:26px;overflow:hidden}.link-list .switching{width:45px}.link-list .direct-icon{border-radius:20px;left:-2%;top:-13%;position:absolute;z-index:555;width:26px;overflow:hidden}.small{width:22%!important;margin:2% 4% 0%;padding:0%}.small .link-text{margin-top:0!important;font-size:13px}.linkExternal{margin-right:20px;width:20px;display:inline-block!important;height:20px;background:#000;-webkit-mask:url(https://cdn.tapni.co/icons/link-external.svg) no-repeat center;mask:url(https://cdn.tapni.co/icons/link-external.svg) no-repeat center;transform:scale(1.5)}.user-img[data-v-ce677789]{margin:2px auto 0;width:65px}input[data-v-ce677789]{margin:0 auto;height:25px}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:0;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:15px}}.withBackground[data-v-2f7f5584],.withBackground[data-v-4d3e1bec],.withBackground[data-v-36b27d1f]{height:50px}[data-v-9dc93691] .vue-select{padding:5px 0}[data-v-9dc93691] .vue-select .dropdown-icon{color:#1d1d1d;width:25px!important;height:25px!important}[data-v-9dc93691] .vue-select .menu-option:hover{background-color:#d9d9d9}[data-v-9dc93691] .vue-select .menu-option.focused{background-color:#f4f4f4}[data-v-9dc93691] .vue-select .menu-option{border-bottom:1px solid #D9D9D9;font-size:15px;color:#151515}[data-v-9dc93691] .vue-select .menu-option:last-child{border-bottom:none}[data-v-9dc93691] .vue-select .menu{border-radius:10px;border:none}[data-v-9dc93691] .vue-select .control.focused{border:none;box-shadow:none}[data-v-9dc93691] .vue-select .control{min-height:54px!important;background-color:#f4f4f4;border:none;border-radius:10px}[data-v-9dc93691] .vue-select .menu-option.selected{background-color:#e4e4e4}[data-v-9dc93691] .vue-select .indicators-container{padding:5px 15px!important}[data-v-9dc93691] .vue-select .value-container{padding:5px 15px}[data-v-9dc93691] .vue-select .menu-option{background-color:#f4f4f4}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tapni/auth",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/TapniAuth.umd.js",
|
|
6
6
|
"module": "./dist/TapniAuth.es.js",
|
|
@@ -18,8 +18,12 @@
|
|
|
18
18
|
"scripts": {
|
|
19
19
|
"dev": "vite",
|
|
20
20
|
"build": "vite build --mode standalone",
|
|
21
|
+
"build:dev": "vite build --mode .env.development",
|
|
21
22
|
"preview": "vite preview",
|
|
22
|
-
"build-lib": "vite build --config=vite-lib.config.js"
|
|
23
|
+
"build-lib": "vite build --config=vite-lib.config.js",
|
|
24
|
+
"build-lib:dev": "vite build --config=vite-lib.config.js --mode .env.development",
|
|
25
|
+
"lint": "eslint src",
|
|
26
|
+
"format": "prettier . --write"
|
|
23
27
|
},
|
|
24
28
|
"dependencies": {
|
|
25
29
|
"@braintree/sanitize-url": "^7.1.0",
|
|
@@ -31,7 +35,7 @@
|
|
|
31
35
|
"@capacitor/preferences": "^6.0.3",
|
|
32
36
|
"@codetrix-studio/capacitor-google-auth": "^3.4.0-rc.4",
|
|
33
37
|
"@otplib/preset-browser": "^12.0.1",
|
|
34
|
-
"@recognizebv/capacitor-plugin-msauth": "^3.6.
|
|
38
|
+
"@recognizebv/capacitor-plugin-msauth": "^3.6.3",
|
|
35
39
|
"@tapni/capacitor-reactive-localstorage-vue3": "^0.0.17",
|
|
36
40
|
"@tapni/styles": "^0.0.8",
|
|
37
41
|
"await-to-js": "^3.0.0",
|
|
@@ -44,7 +48,13 @@
|
|
|
44
48
|
"vue-router": "^4.5.0",
|
|
45
49
|
"vue3-select-component": "^0.7.0",
|
|
46
50
|
"vuex": "^4.1.0",
|
|
47
|
-
"vuex-router-sync": "v6.0.0-rc.1"
|
|
51
|
+
"vuex-router-sync": "v6.0.0-rc.1",
|
|
52
|
+
"prettier": "3.3.3",
|
|
53
|
+
"eslint": "^9.13.0",
|
|
54
|
+
"eslint-config-prettier": "^9.1.0",
|
|
55
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
56
|
+
"eslint-plugin-vue": "^9.29.1",
|
|
57
|
+
"@eslint/js": "^9.13.0"
|
|
48
58
|
},
|
|
49
59
|
"devDependencies": {
|
|
50
60
|
"@rollup/plugin-inject": "^5.0.5",
|
|
@@ -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
|
+
}
|
|
@@ -1,151 +1,101 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
:src="'https://cdn.tapni.co/icons/' + data.type + '.png'"
|
|
22
|
-
class="responsive-image"
|
|
23
|
-
:alt="data.text"
|
|
24
|
-
@load="$emit('loaded')"
|
|
25
|
-
@error="$emit('loaded')"
|
|
26
|
-
/>
|
|
27
|
-
<img
|
|
28
|
-
v-else-if="
|
|
29
|
-
!data.custom_icon && data.type === 'customlink' && linkAdding
|
|
30
|
-
"
|
|
31
|
-
:src="'https://cdn.tapni.co/icons/custom-icon-128.gif'"
|
|
32
|
-
class="responsive-image"
|
|
33
|
-
:alt="data.text"
|
|
34
|
-
@load="$emit('loaded')"
|
|
35
|
-
@error="$emit('loaded')"
|
|
36
|
-
/>
|
|
37
|
-
<img
|
|
38
|
-
v-else-if="
|
|
39
|
-
!data.custom_icon && data.type === 'customlink' && !linkAdding
|
|
40
|
-
"
|
|
41
|
-
:src="'https://cdn.tapni.co/icons/customlink.png'"
|
|
42
|
-
class="responsive-image"
|
|
43
|
-
:alt="data.text"
|
|
44
|
-
@load="$emit('loaded')"
|
|
45
|
-
@error="$emit('loaded')"
|
|
46
|
-
/>
|
|
47
|
-
<img
|
|
48
|
-
v-else
|
|
49
|
-
:src="data.style.custom_icon"
|
|
50
|
-
style="border-radius: 22.46%"
|
|
51
|
-
class="responsive-image"
|
|
52
|
-
:alt="data.text"
|
|
53
|
-
@load="$emit('loaded')"
|
|
54
|
-
@error="$emit('loaded')"
|
|
55
|
-
/>
|
|
56
|
-
</span>
|
|
57
|
-
|
|
58
|
-
<span
|
|
59
|
-
class="link-text link-drag color-black"
|
|
60
|
-
:style="{ color: customLinkStyle?.color }"
|
|
61
|
-
>
|
|
62
|
-
{{ linkText }}
|
|
63
|
-
</span>
|
|
64
|
-
</a>
|
|
2
|
+
<a class="disable-select" :class="linkStyle + (disabled ? ' opacity-50' : '')" :style="(editing ? 'cursor: move' : 'cursor: pointer') + '!important; overflow: visible; margin-top: 5px;'">
|
|
3
|
+
<span
|
|
4
|
+
:class="{
|
|
5
|
+
'user-link-img': true,
|
|
6
|
+
'pulse pulse-border': pulse,
|
|
7
|
+
'link-drag': editing
|
|
8
|
+
}"
|
|
9
|
+
:style="{ ...customLinkStyle?.linkIcon }"
|
|
10
|
+
>
|
|
11
|
+
<img v-if="!data.custom_icon && data.type !== 'customlink'" :src="'https://cdn.tapni.co/icons/' + data.type + '.png'" class="responsive-image" :alt="data.text" @load="$emit('loaded')" @error="$emit('loaded')" />
|
|
12
|
+
<img v-else-if="!data.custom_icon && data.type === 'customlink' && linkAdding" :src="'https://cdn.tapni.co/icons/custom-icon-128.gif'" class="responsive-image" :alt="data.text" @load="$emit('loaded')" @error="$emit('loaded')" />
|
|
13
|
+
<img v-else-if="!data.custom_icon && data.type === 'customlink' && !linkAdding" :src="'https://cdn.tapni.co/icons/customlink.png'" class="responsive-image" :alt="data.text" @load="$emit('loaded')" @error="$emit('loaded')" />
|
|
14
|
+
<img v-else :src="data.style.custom_icon" style="border-radius: 22.46%" class="responsive-image" :alt="data.text" @load="$emit('loaded')" @error="$emit('loaded')" />
|
|
15
|
+
</span>
|
|
16
|
+
|
|
17
|
+
<span class="link-text link-drag color-black" :style="{ color: customLinkStyle?.color }">
|
|
18
|
+
{{ linkText }}
|
|
19
|
+
</span>
|
|
20
|
+
</a>
|
|
65
21
|
</template>
|
|
66
22
|
|
|
67
23
|
<script>
|
|
68
24
|
import AuthMixin from '../mixins/auth.mixin';
|
|
69
25
|
|
|
70
26
|
export default {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
return this.data.text;
|
|
145
|
-
},
|
|
146
|
-
},
|
|
147
|
-
methods: {
|
|
148
|
-
},
|
|
27
|
+
name: 'LinkIcon',
|
|
28
|
+
mixins: [AuthMixin],
|
|
29
|
+
props: {
|
|
30
|
+
linkAdding: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
required: false,
|
|
33
|
+
default: false
|
|
34
|
+
},
|
|
35
|
+
hideExternalIcon: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
required: false,
|
|
38
|
+
default: false
|
|
39
|
+
},
|
|
40
|
+
switching: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
required: false,
|
|
43
|
+
default: false
|
|
44
|
+
},
|
|
45
|
+
pulse: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
required: false,
|
|
48
|
+
default: false
|
|
49
|
+
},
|
|
50
|
+
editing: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
required: false,
|
|
53
|
+
default: true
|
|
54
|
+
},
|
|
55
|
+
directPick: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
required: false,
|
|
58
|
+
default: false
|
|
59
|
+
},
|
|
60
|
+
disabled: {
|
|
61
|
+
type: Boolean,
|
|
62
|
+
required: false,
|
|
63
|
+
default: false
|
|
64
|
+
},
|
|
65
|
+
to: {
|
|
66
|
+
type: String,
|
|
67
|
+
required: false,
|
|
68
|
+
default: ''
|
|
69
|
+
},
|
|
70
|
+
linkStyle: {
|
|
71
|
+
type: String,
|
|
72
|
+
required: false,
|
|
73
|
+
default: 'link-grid'
|
|
74
|
+
},
|
|
75
|
+
data: {
|
|
76
|
+
type: Object,
|
|
77
|
+
required: true
|
|
78
|
+
},
|
|
79
|
+
customLinkStyle: {
|
|
80
|
+
type: Object,
|
|
81
|
+
required: false,
|
|
82
|
+
default: () => {}
|
|
83
|
+
},
|
|
84
|
+
shareIconStyle: {
|
|
85
|
+
type: Object,
|
|
86
|
+
required: false,
|
|
87
|
+
default: () => {}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
computed: {
|
|
91
|
+
linkText() {
|
|
92
|
+
if (this.appLanguage !== 'en' && this.data.text) {
|
|
93
|
+
return this.ssoLang[this.appLanguage]['link_text_' + this.data.text.toLowerCase().trim().replace(/ /g, '_')] || this.data.text;
|
|
94
|
+
}
|
|
95
|
+
return this.data.text;
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
methods: {}
|
|
149
99
|
};
|
|
150
100
|
</script>
|
|
151
101
|
|
|
@@ -155,134 +105,133 @@ export default {
|
|
|
155
105
|
/* ********* */
|
|
156
106
|
.link-grid,
|
|
157
107
|
.user-link-img {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
108
|
+
width: 100%;
|
|
109
|
+
display: inline-table;
|
|
110
|
+
position: relative;
|
|
161
111
|
}
|
|
162
112
|
|
|
163
113
|
.link-grid {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
114
|
+
width: 30%;
|
|
115
|
+
margin: 1.6%;
|
|
116
|
+
padding: 1.6%;
|
|
167
117
|
}
|
|
168
118
|
|
|
169
119
|
.link-grid .user-link-img img {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
120
|
+
/* box-shadow: 0px 2px 10px rgba(200,200,200,0.8); */
|
|
121
|
+
/* border: 1px solid #e8e8e8; */
|
|
122
|
+
border-radius: 25% !important;
|
|
173
123
|
}
|
|
174
124
|
|
|
175
125
|
.link-grid .edit-icon {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
126
|
+
border-radius: 20px;
|
|
127
|
+
right: -3%;
|
|
128
|
+
top: -3%;
|
|
129
|
+
position: absolute;
|
|
130
|
+
z-index: 3;
|
|
131
|
+
max-width: 23%;
|
|
132
|
+
overflow: hidden;
|
|
133
|
+
min-width: 30px;
|
|
184
134
|
}
|
|
185
135
|
|
|
186
136
|
.link-grid .direct-icon {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
137
|
+
border-radius: 20px;
|
|
138
|
+
left: -3%;
|
|
139
|
+
top: -3%;
|
|
140
|
+
position: absolute;
|
|
141
|
+
z-index: 555;
|
|
142
|
+
max-width: 23%;
|
|
143
|
+
overflow: hidden;
|
|
144
|
+
min-width: 30px;
|
|
195
145
|
}
|
|
196
146
|
|
|
197
147
|
.link-grid .link-text {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
148
|
+
min-height: 20px;
|
|
149
|
+
margin-top: 3px !important;
|
|
150
|
+
display: block;
|
|
151
|
+
text-align: center;
|
|
152
|
+
line-height: normal;
|
|
153
|
+
overflow-wrap: anywhere;
|
|
204
154
|
}
|
|
205
155
|
|
|
206
156
|
/* ********* */
|
|
207
157
|
/* Link List */
|
|
208
158
|
/* ********* */
|
|
209
159
|
.link-list {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
160
|
+
width: 93%;
|
|
161
|
+
max-height: 67px !important;
|
|
162
|
+
margin: 0px auto;
|
|
163
|
+
display: flex;
|
|
164
|
+
border-radius: 15px !important;
|
|
165
|
+
background-color: #ffffff;
|
|
166
|
+
/* box-shadow: 0px 2px 5px rgba(0,0,0,0.15); */
|
|
167
|
+
border: solid 1px #e8e8e8;
|
|
168
|
+
position: relative;
|
|
169
|
+
align-items: center;
|
|
220
170
|
}
|
|
221
171
|
|
|
222
172
|
.link-list .user-link-img {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
173
|
+
display: inline-block;
|
|
174
|
+
width: 65px;
|
|
175
|
+
/* box-shadow: 0px 3px 6px rgba(0,0,0,0.16); */
|
|
176
|
+
border-radius: 25% !important;
|
|
227
177
|
}
|
|
228
178
|
|
|
229
179
|
.link-list .link-text {
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
180
|
+
display: inline-block;
|
|
181
|
+
padding: 18px 0% 17px 10%;
|
|
182
|
+
font-size: 15px;
|
|
183
|
+
font-weight: 500;
|
|
184
|
+
white-space: nowrap;
|
|
185
|
+
text-overflow: ellipsis;
|
|
186
|
+
overflow: hidden;
|
|
187
|
+
flex: 1;
|
|
188
|
+
text-align: left;
|
|
189
|
+
border-radius: 15px !important;
|
|
240
190
|
}
|
|
241
191
|
|
|
242
192
|
.link-list .edit-icon {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
193
|
+
border-radius: 20px;
|
|
194
|
+
right: 7%;
|
|
195
|
+
top: 30%;
|
|
196
|
+
position: absolute;
|
|
197
|
+
z-index: 3;
|
|
198
|
+
width: 26px;
|
|
199
|
+
overflow: hidden;
|
|
250
200
|
}
|
|
251
201
|
|
|
252
202
|
.link-list .switching {
|
|
253
|
-
|
|
203
|
+
width: 45px;
|
|
254
204
|
}
|
|
255
205
|
|
|
256
206
|
.link-list .direct-icon {
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
207
|
+
border-radius: 20px;
|
|
208
|
+
left: -2%;
|
|
209
|
+
top: -13%;
|
|
210
|
+
position: absolute;
|
|
211
|
+
z-index: 555;
|
|
212
|
+
width: 26px;
|
|
213
|
+
overflow: hidden;
|
|
264
214
|
}
|
|
265
215
|
/* ********* */
|
|
266
216
|
|
|
267
217
|
.small {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
218
|
+
width: 22% !important;
|
|
219
|
+
margin: 2% 4% 0%;
|
|
220
|
+
padding: 0%;
|
|
271
221
|
}
|
|
272
222
|
.small .link-text {
|
|
273
|
-
|
|
274
|
-
|
|
223
|
+
margin-top: 0px !important;
|
|
224
|
+
font-size: 13px;
|
|
275
225
|
}
|
|
276
226
|
|
|
277
227
|
.linkExternal {
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
transform: scale(1.5);
|
|
228
|
+
margin-right: 20px;
|
|
229
|
+
width: 20px;
|
|
230
|
+
display: inline-block !important;
|
|
231
|
+
height: 20px;
|
|
232
|
+
background: black;
|
|
233
|
+
-webkit-mask: url(https://cdn.tapni.co/icons/link-external.svg) no-repeat center;
|
|
234
|
+
mask: url(https://cdn.tapni.co/icons/link-external.svg) no-repeat center;
|
|
235
|
+
transform: scale(1.5);
|
|
287
236
|
}
|
|
288
237
|
</style>
|