From 4dd3c027dc088f74c3bd6f3148b6d94eca8719d3 Mon Sep 17 00:00:00 2001 From: Udo Walter Date: Thu, 28 Feb 2019 19:26:08 +0000 Subject: [webapp/datatable] improve search performance --- webapp/src/components/DataTable.vue | 172 ++++--------------------- webapp/src/components/DataTableSearch.vue | 203 ++++++++++++++++++++++++++++++ webapp/src/main.js | 2 +- 3 files changed, 230 insertions(+), 147 deletions(-) create mode 100644 webapp/src/components/DataTableSearch.vue (limited to 'webapp') diff --git a/webapp/src/components/DataTable.vue b/webapp/src/components/DataTable.vue index bd97394..ab530fc 100644 --- a/webapp/src/components/DataTable.vue +++ b/webapp/src/components/DataTable.vue @@ -1,7 +1,6 @@ { "en": { - "search": "Search", "all": "All", "entries": "Entries", "noResult": "No entries.", @@ -12,7 +11,6 @@ "selected": "selected" }, "de": { - "search": "Suche", "all": "Alle", "entries": "Einträge", "noResult": "Keine Einträge.", @@ -29,41 +27,16 @@
-
-
- - - -
-
+
@@ -173,9 +146,13 @@ @@ -483,26 +383,6 @@ export default { align-items: stretch; } -.search-field-wrapper { - display: flex; - flex-direction: column; -} - -.search-field-wrapper > div { - display: flex; - align-items: center; -} - -.search-field { - margin: 0; - padding: 0; - font-family: 'Roboto Mono'; -} - -.column-select { - flex: 0 1 0 -} - .rowcount-select { padding: 0; display: inline-block; diff --git a/webapp/src/components/DataTableSearch.vue b/webapp/src/components/DataTableSearch.vue new file mode 100644 index 0000000..aaa2cc3 --- /dev/null +++ b/webapp/src/components/DataTableSearch.vue @@ -0,0 +1,203 @@ + +{ + "en": { + "search": "Search", + "all": "All" + }, + "de": { + "search": "Suche", + "all": "Alle" + } +} + + + + + + + + diff --git a/webapp/src/main.js b/webapp/src/main.js index 20dde73..70afb40 100644 --- a/webapp/src/main.js +++ b/webapp/src/main.js @@ -39,7 +39,7 @@ const i18n = new VueI18n({ Vue.use(Vuetify, { theme: { - primary: '#0195ff' + primary: '#0095ff' }, lang: { t: (key, ...params) => i18n.t(key, params) -- cgit v1.2.3-55-g7522