PGT-1577 -- [Sveak extension] Add idenfy mock
This commit is contained in:
parent
f8ddeedf9d
commit
eda7177716
2
popup/dist/index.html
vendored
2
popup/dist/index.html
vendored
@ -1 +1 @@
|
|||||||
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><!--[if IE]><link rel="icon" href="/popup/dist/favicon.ico"><![endif]--><title>sveak-helper</title><link href="/popup/dist/css/app.fd6b5ad0.css" rel="preload" as="style"><link href="/popup/dist/js/app.f576202b.js" rel="preload" as="script"><link href="/popup/dist/js/chunk-vendors.d437ab16.js" rel="preload" as="script"><link href="/popup/dist/css/app.fd6b5ad0.css" rel="stylesheet"><link rel="icon" type="image/png" sizes="32x32" href="/popup/dist/img/icons/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/popup/dist/img/icons/favicon-16x16.png"><link rel="manifest" href="/popup/dist/manifest.json"><meta name="theme-color" content="#4DBA87"><meta name="apple-mobile-web-app-capable" content="no"><meta name="apple-mobile-web-app-status-bar-style" content="default"><meta name="apple-mobile-web-app-title" content="sveak-helper"><link rel="apple-touch-icon" href="/popup/dist/img/icons/apple-touch-icon-152x152.png"><link rel="mask-icon" href="/popup/dist/img/icons/safari-pinned-tab.svg" color="#4DBA87"><meta name="msapplication-TileImage" content="/img/icons/msapplication-icon-144x144.png"><meta name="msapplication-TileColor" content="#000000"></head><body><noscript><strong>We're sorry but sveak-helper doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/popup/dist/js/chunk-vendors.d437ab16.js"></script><script src="/popup/dist/js/app.f576202b.js"></script></body></html>
|
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><!--[if IE]><link rel="icon" href="/popup/dist/favicon.ico"><![endif]--><title>sveak-helper</title><link href="/popup/dist/css/app.fd6b5ad0.css" rel="preload" as="style"><link href="/popup/dist/js/app.094342b0.js" rel="preload" as="script"><link href="/popup/dist/js/chunk-vendors.d437ab16.js" rel="preload" as="script"><link href="/popup/dist/css/app.fd6b5ad0.css" rel="stylesheet"><link rel="icon" type="image/png" sizes="32x32" href="/popup/dist/img/icons/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/popup/dist/img/icons/favicon-16x16.png"><link rel="manifest" href="/popup/dist/manifest.json"><meta name="theme-color" content="#4DBA87"><meta name="apple-mobile-web-app-capable" content="no"><meta name="apple-mobile-web-app-status-bar-style" content="default"><meta name="apple-mobile-web-app-title" content="sveak-helper"><link rel="apple-touch-icon" href="/popup/dist/img/icons/apple-touch-icon-152x152.png"><link rel="mask-icon" href="/popup/dist/img/icons/safari-pinned-tab.svg" color="#4DBA87"><meta name="msapplication-TileImage" content="/img/icons/msapplication-icon-144x144.png"><meta name="msapplication-TileColor" content="#000000"></head><body><noscript><strong>We're sorry but sveak-helper doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/popup/dist/js/chunk-vendors.d437ab16.js"></script><script src="/popup/dist/js/app.094342b0.js"></script></body></html>
|
2
popup/dist/js/app.f576202b.js
vendored
2
popup/dist/js/app.f576202b.js
vendored
File diff suppressed because one or more lines are too long
1
popup/dist/js/app.f576202b.js.map
vendored
1
popup/dist/js/app.f576202b.js.map
vendored
File diff suppressed because one or more lines are too long
@ -1,26 +0,0 @@
|
|||||||
self.__precacheManifest = (self.__precacheManifest || []).concat([
|
|
||||||
{
|
|
||||||
"revision": "6dff3bd3e68f06e54cf3",
|
|
||||||
"url": "/css/app.fd6b5ad0.css"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"revision": "2c39024393d648ac608047fa2685259d",
|
|
||||||
"url": "/index.html"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"revision": "6dff3bd3e68f06e54cf3",
|
|
||||||
"url": "/js/app.f576202b.js"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"revision": "f28011ebddf25dd6092c",
|
|
||||||
"url": "/js/chunk-vendors.d437ab16.js"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"revision": "b7d7baa709e9512123d49c9e80d3b21f",
|
|
||||||
"url": "/manifest.json"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"revision": "b6216d61c03e6ce0c9aea6ca7808f7ca",
|
|
||||||
"url": "/robots.txt"
|
|
||||||
}
|
|
||||||
]);
|
|
2
popup/dist/service-worker.js
vendored
2
popup/dist/service-worker.js
vendored
@ -14,7 +14,7 @@
|
|||||||
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
|
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
|
||||||
|
|
||||||
importScripts(
|
importScripts(
|
||||||
"/precache-manifest.4c4af287b8f2400748a69016ee0ee52d.js"
|
"/precache-manifest.f89354bce5f532e8554c3ad651dfdc45.js"
|
||||||
);
|
);
|
||||||
|
|
||||||
workbox.core.setCacheNameDetails({prefix: "sveak-helper"});
|
workbox.core.setCacheNameDetails({prefix: "sveak-helper"});
|
||||||
|
@ -6,6 +6,7 @@ import AddMockSchema, { AddMockConfigurationsRequest } from '@/api/Main/Schemas/
|
|||||||
import ChangeMockValueSchema, { ChangeMockConfigurationValueRequest } from '@/api/Main/Schemas/ChangeMockValueSchema'
|
import ChangeMockValueSchema, { ChangeMockConfigurationValueRequest } from '@/api/Main/Schemas/ChangeMockValueSchema'
|
||||||
import ToggleNewClientTypeSchema, { ToggleNewClientTypeRequest } from '@/api/Main/Schemas/ToggleNewClientTypeSchema'
|
import ToggleNewClientTypeSchema, { ToggleNewClientTypeRequest } from '@/api/Main/Schemas/ToggleNewClientTypeSchema'
|
||||||
import ToggleRegularClientTypeSchema, { ToggleRegularClientTypeRequest } from '@/api/Main/Schemas/ToggleRegularClientTypeSchema'
|
import ToggleRegularClientTypeSchema, { ToggleRegularClientTypeRequest } from '@/api/Main/Schemas/ToggleRegularClientTypeSchema'
|
||||||
|
import UserIdentificationByIdenfySchema, { UserIdentificationByIdenfyRequest } from '@/api/Main/Schemas/UserIdentificationByIdenfySchema'
|
||||||
|
|
||||||
export class HttpClient extends BaseClient {
|
export class HttpClient extends BaseClient {
|
||||||
mockConfigurations (data: MockConfigurationsRequest): any {
|
mockConfigurations (data: MockConfigurationsRequest): any {
|
||||||
@ -27,6 +28,10 @@ export class HttpClient extends BaseClient {
|
|||||||
toggleRegularClientType (data: ToggleRegularClientTypeRequest): any {
|
toggleRegularClientType (data: ToggleRegularClientTypeRequest): any {
|
||||||
return this.send(ToggleRegularClientTypeSchema as SchemaInterface, data)
|
return this.send(ToggleRegularClientTypeSchema as SchemaInterface, data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
userIdentificationByIdenfyType (data: UserIdentificationByIdenfyRequest): any {
|
||||||
|
return this.send(UserIdentificationByIdenfySchema as SchemaInterface, data)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default new HttpClient('http://placetgroup.sipachev.sv')
|
export default new HttpClient('http://placetgroup.sipachev.sv')
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
export class UserIdentificationByIdenfyRequest {
|
||||||
|
user!: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export default {
|
||||||
|
code: 'api_post_user_identification_by_indefy',
|
||||||
|
method: 'POST',
|
||||||
|
url: '/plugin/users/{user}/identificationByIdenfy'
|
||||||
|
}
|
@ -2,6 +2,7 @@ import { Component, Prop, Vue } from 'vue-property-decorator'
|
|||||||
import VueClipboard from 'vue-clipboard2'
|
import VueClipboard from 'vue-clipboard2'
|
||||||
import httpClient from '@/api/Main/HttpClient'
|
import httpClient from '@/api/Main/HttpClient'
|
||||||
import { ToggleNewClientTypeRequest } from '@/api/Main/Schemas/ToggleNewClientTypeSchema'
|
import { ToggleNewClientTypeRequest } from '@/api/Main/Schemas/ToggleNewClientTypeSchema'
|
||||||
|
import { UserIdentificationByIdenfyRequest } from '@/api/Main/Schemas/UserIdentificationByIdenfySchema'
|
||||||
|
|
||||||
Vue.use(VueClipboard)
|
Vue.use(VueClipboard)
|
||||||
|
|
||||||
@ -11,7 +12,9 @@ export default class UserTab extends Vue {
|
|||||||
clientTypeUpdate!: string
|
clientTypeUpdate!: string
|
||||||
|
|
||||||
personalCode!: string
|
personalCode!: string
|
||||||
|
user!: string
|
||||||
clientType = 'New';
|
clientType = 'New';
|
||||||
|
copyText = '';
|
||||||
|
|
||||||
update () {
|
update () {
|
||||||
if (this.clientType === 'New') {
|
if (this.clientType === 'New') {
|
||||||
@ -27,6 +30,15 @@ export default class UserTab extends Vue {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
identificationByIdenfy () {
|
||||||
|
const userIdentificationByIdenfy = new UserIdentificationByIdenfyRequest()
|
||||||
|
userIdentificationByIdenfy.user = this.user
|
||||||
|
|
||||||
|
httpClient.userIdentificationByIdenfyType(userIdentificationByIdenfy).then((data: any) => {
|
||||||
|
this.copyText = data.data.url
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
setClientType (event: FocusEvent) {
|
setClientType (event: FocusEvent) {
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
@ -38,4 +50,10 @@ export default class UserTab extends Vue {
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
this.personalCode = event.target.value
|
this.personalCode = event.target.value
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setUserId (event: FocusEvent) {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
||||||
|
// @ts-ignore
|
||||||
|
this.user = event.target.value
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -18,4 +18,20 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-row"></div>
|
||||||
|
|
||||||
|
<div class="form-row">
|
||||||
|
<div class="form-row__item">
|
||||||
|
<input title="User id" class="form-row__item-input" type="text" placeholder="User id" v-on:change="setUserId">
|
||||||
|
</div>
|
||||||
|
<div class="form-row__item">
|
||||||
|
<label>
|
||||||
|
<input type="button" v-on:click="identificationByIdenfy" value="Identification by Idenfy"/>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-row__item">
|
||||||
|
<div class="memory-panel">Url: {{copyText}}</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user