From cc043acad551cd9b5e971f877671869f08e54110 Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 15 Jul 2022 12:23:42 +0200 Subject: [PATCH] feat(webapp): add add account modal --- package.json | 2 +- src/components/atoms/AtomInput.vue | 10 +- src/components/atoms/AtomSelect.vue | 30 ++++ .../molecules/MoleculeAddAccountModal.vue | 91 ++++++++++++ src/components/views/DataView.vue | 131 ++++++++++++++++++ 5 files changed, 262 insertions(+), 2 deletions(-) create mode 100644 src/components/atoms/AtomSelect.vue create mode 100644 src/components/molecules/MoleculeAddAccountModal.vue diff --git a/package.json b/package.json index 73a9ef8..50578dc 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "core", + "name": "kispi-core", "private": true, "version": "0.0.0", "scripts": { diff --git a/src/components/atoms/AtomInput.vue b/src/components/atoms/AtomInput.vue index 88466be..7a67aac 100644 --- a/src/components/atoms/AtomInput.vue +++ b/src/components/atoms/AtomInput.vue @@ -3,7 +3,9 @@ ref="input" :type="type" :placeholder="placeholder" - class="input input-bordered w-full max-w-xs" + :value="modelValue" + class="input input-bordered w-full" + @input="$emit('update:modelValue', ($event.target as HTMLInputElement).value)" /> @@ -17,7 +19,13 @@ defineProps({ type: String, default: '', }, + modelValue: { + type: String, + default: '', + }, }); + +defineEmits(['update:modelValue']); \ No newline at end of file diff --git a/src/components/molecules/MoleculeAddAccountModal.vue b/src/components/molecules/MoleculeAddAccountModal.vue new file mode 100644 index 0000000..94e940b --- /dev/null +++ b/src/components/molecules/MoleculeAddAccountModal.vue @@ -0,0 +1,91 @@ + + + + + \ No newline at end of file diff --git a/src/components/views/DataView.vue b/src/components/views/DataView.vue index aaa4e31..e4c1ff7 100644 --- a/src/components/views/DataView.vue +++ b/src/components/views/DataView.vue @@ -1,13 +1,144 @@