From 2ec3d34ddf2de2177966542afc18bc9b1024925b Mon Sep 17 00:00:00 2001 From: Mateus Machado Luna Date: Thu, 26 Jul 2018 13:01:45 -0300 Subject: [PATCH 1/9] Begins new layout changes Ref. #87. --- src/admin/admin.vue | 33 ++++--- .../edition/collection-edition-form.vue | 7 -- .../components/edition/item-edition-form.vue | 9 -- src/admin/components/lists/filters-list.vue | 7 -- src/admin/components/lists/metadata-list.vue | 7 -- .../components/navigation/primary-menu.vue | 41 +++++---- ....vue => tainacan-collection-subheader.vue} | 36 ++------ .../components/navigation/tainacan-header.vue | 60 +++++-------- .../tainacan-repository-subheader.vue | 85 ++++++++++++++++++ src/admin/images/tainacan_logo_header.png | Bin 5471 -> 11130 bytes src/admin/pages/lists/events-page.vue | 6 -- src/admin/pages/lists/items-page.vue | 11 +-- src/admin/pages/singles/collection-page.vue | 22 ++--- src/admin/pages/singles/export-page.vue | 21 ++--- src/admin/pages/singles/item-page.vue | 5 -- src/admin/scss/_inputs.scss | 8 ++ src/admin/scss/_variables.scss | 8 +- src/admin/scss/tainacan-admin.scss | 8 +- 18 files changed, 182 insertions(+), 192 deletions(-) rename src/admin/components/navigation/{tainacan-subheader.vue => tainacan-collection-subheader.vue} (92%) create mode 100644 src/admin/components/navigation/tainacan-repository-subheader.vue diff --git a/src/admin/admin.vue b/src/admin/admin.vue index 24ebdb48f..b4655fb58 100644 --- a/src/admin/admin.vue +++ b/src/admin/admin.vue @@ -10,9 +10,12 @@ @click="isMenuCompressed = !isMenuCompressed"> - + +
- +
@@ -20,28 +23,33 @@ diff --git a/src/admin/components/lists/metadata-list.vue b/src/admin/components/lists/metadata-list.vue index 1ac2711fc..2e75327cd 100644 --- a/src/admin/components/lists/metadata-list.vue +++ b/src/admin/components/lists/metadata-list.vue @@ -734,13 +734,6 @@ export default { .catch(() => { this.isLoadingMetadatumMappers = false; }); - }, - mounted() { - if (!this.isRepositoryLevel) { - document.getElementById('collection-page-container').addEventListener('scroll', ($event) => { - this.$emit('onShrinkHeader', ($event.target.scrollTop > 53)); - }); - } } } diff --git a/src/admin/components/navigation/primary-menu.vue b/src/admin/components/navigation/primary-menu.vue index f8c98db20..319f20853 100644 --- a/src/admin/components/navigation/primary-menu.vue +++ b/src/admin/components/navigation/primary-menu.vue @@ -8,6 +8,7 @@