diff --git a/hb_client/package.json b/hb_client/package.json index 3deb725..4a4ab4c 100644 --- a/hb_client/package.json +++ b/hb_client/package.json @@ -21,6 +21,7 @@ "compression-webpack-plugin": "^5.0.1", "element-ui": "^2.15.5", "file-saver": "^2.0.2", + "fuse.js": "^6.4.6", "js-cookie": "^3.0.0", "normalize.css": "^8.0.1", "nprogress": "0.2.0", diff --git a/hb_client/src/components/HeaderSearch/index.vue b/hb_client/src/components/HeaderSearch/index.vue new file mode 100644 index 0000000..dd8d7b1 --- /dev/null +++ b/hb_client/src/components/HeaderSearch/index.vue @@ -0,0 +1,156 @@ + + + + + diff --git a/hb_client/src/components/SizeSelect/index.vue b/hb_client/src/components/SizeSelect/index.vue new file mode 100644 index 0000000..5fa1bc1 --- /dev/null +++ b/hb_client/src/components/SizeSelect/index.vue @@ -0,0 +1,56 @@ + + + diff --git a/hb_client/src/layout/components/AppMain.vue b/hb_client/src/layout/components/AppMain.vue index f6a3286..60cbe68 100644 --- a/hb_client/src/layout/components/AppMain.vue +++ b/hb_client/src/layout/components/AppMain.vue @@ -1,7 +1,9 @@ @@ -10,6 +12,9 @@ export default { name: 'AppMain', computed: { + cachedViews() { + return this.$store.state.tagsView.cachedViews + }, key() { return this.$route.path } @@ -28,6 +33,13 @@ export default { .fixed-header+.app-main { padding-top: 50px; } +.hasTagsView .app-main { + /* 84 = navbar + tags-view = 50 + 34 */ + min-height: calc(100vh - 84px); + } +.hasTagsView .fixed-header+.app-main { + padding-top: 84px; + } diff --git a/hb_client/src/layout/components/TagsView/index.vue b/hb_client/src/layout/components/TagsView/index.vue new file mode 100644 index 0000000..d2a56e7 --- /dev/null +++ b/hb_client/src/layout/components/TagsView/index.vue @@ -0,0 +1,292 @@ + + + + + + + diff --git a/hb_client/src/layout/components/index.js b/hb_client/src/layout/components/index.js index 97ee3cd..9fc98d6 100644 --- a/hb_client/src/layout/components/index.js +++ b/hb_client/src/layout/components/index.js @@ -1,3 +1,4 @@ export { default as Navbar } from './Navbar' export { default as Sidebar } from './Sidebar' export { default as AppMain } from './AppMain' +export { default as TagsView } from './TagsView' diff --git a/hb_client/src/layout/index.vue b/hb_client/src/layout/index.vue index db22a7b..87791f9 100644 --- a/hb_client/src/layout/index.vue +++ b/hb_client/src/layout/index.vue @@ -2,9 +2,10 @@
-
+
+
@@ -12,7 +13,7 @@