diff --git a/popup/src/components/mocks-tab/main.vue b/popup/src/components/mocks-tab/main.vue new file mode 100644 index 0000000..bfbb7d7 --- /dev/null +++ b/popup/src/components/mocks-tab/main.vue @@ -0,0 +1,4 @@ + + + + diff --git a/popup/src/components/mocks-tab/script.ts b/popup/src/components/mocks-tab/script.ts new file mode 100644 index 0000000..3d9c8fe --- /dev/null +++ b/popup/src/components/mocks-tab/script.ts @@ -0,0 +1,14 @@ +import { Component, Vue } from 'vue-property-decorator' +import VueClipboard from 'vue-clipboard2' +import Mocks from '@/components/mocks/main.vue' + +Vue.use(VueClipboard) + +@Component({ + components: { + Mocks + } +}) +export default class MocksTab extends Vue { + personalId = '' +} diff --git a/popup/src/components/mocks-tab/style.scss b/popup/src/components/mocks-tab/style.scss new file mode 100644 index 0000000..fe25a0b --- /dev/null +++ b/popup/src/components/mocks-tab/style.scss @@ -0,0 +1,65 @@ +.container { + max-width: 400px; + min-width: 400px; + border: solid 2px gray; + + .wrapper { + padding: 10px; + + .tab-panel { + display: flex; + + &__item { + flex-grow: 1; + padding: 5px; + cursor: pointer; + border-bottom: solid 2px #cae5fa; + + &_active { + border-bottom: solid 2px #298df8; + } + + &:hover { + border-bottom: solid 2px #298df8; + } + } + } + + .tab-page { + padding-top: 10px; + + &__item { + display: none; + + + &_show { + display: block; + } + + .form-row { + display: flex; + margin-bottom: 5px; + + &__item { + flex-grow: 1; + margin-right: 10px; + + &-input { + width: 100%; + } + } + + &:last-child { + margin-bottom: 0; + } + } + } + } + + .memory-panel { + text-align: left; + padding: 5px; + margin-top: 10px; + } + } +} diff --git a/popup/src/components/mocks-tab/template.html b/popup/src/components/mocks-tab/template.html new file mode 100644 index 0000000..fab94b3 --- /dev/null +++ b/popup/src/components/mocks-tab/template.html @@ -0,0 +1,10 @@ +
+ +
+
+ +
+
diff --git a/popup/src/components/person-tab/template.html b/popup/src/components/person-tab/template.html index c46f160..d1bfb17 100644 --- a/popup/src/components/person-tab/template.html +++ b/popup/src/components/person-tab/template.html @@ -1,4 +1,4 @@ -
+
diff --git a/popup/src/components/script.ts b/popup/src/components/script.ts index 35188c9..1c6434f 100644 --- a/popup/src/components/script.ts +++ b/popup/src/components/script.ts @@ -7,13 +7,15 @@ import { Action } from '@/classes/Enum/Action' import notificationCleaner from '@/classes/Service/NotificationCleaner' import Mocks from '@/components/mocks/main.vue' import PersonTab from '@/components/person-tab/main.vue' +import MocksTab from '@/components/mocks-tab/main.vue' Vue.use(VueClipboard) @Component({ components: { Mocks, - PersonTab + PersonTab, + MocksTab } }) export default class HelloWorld extends Vue { diff --git a/popup/src/components/template.html b/popup/src/components/template.html index 7d55a0f..aacc887 100644 --- a/popup/src/components/template.html +++ b/popup/src/components/template.html @@ -16,14 +16,7 @@
- -
-
- -
+