From 4a7f23d401e2ec265f34ac648554d22b290f8f03 Mon Sep 17 00:00:00 2001 From: Mark Eaton Date: Wed, 21 Sep 2022 21:19:31 -0400 Subject: [PATCH] combine main.js and seed.js --- configuration/main.js | 211 +++++++++++++++++++- configuration/seed.js | 216 --------------------- groups/home/LibAnswers-SlideOutChat-7.html | 1 - 3 files changed, 203 insertions(+), 225 deletions(-) delete mode 100644 configuration/seed.js diff --git a/configuration/main.js b/configuration/main.js index 547236e..807a380 100644 --- a/configuration/main.js +++ b/configuration/main.js @@ -9,15 +9,210 @@ const menusComponent = { new Vue({ el: '#app', - data: { - hamburger: Seed.hamburgerMenu, - findIt: Seed.findItMenu, - services: Seed.servicesMenu, - aboutUs: Seed.aboutUsMenu, - locationAndHours: Seed.locationAndHoursMenu, - help: Seed.helpMenu - }, components: { 'menus-component': menusComponent + }, + data: { + hamburger: [ + { + link: "https://cuny-kb.primo.exlibrisgroup.com/discovery/search?tab=Everything&vid=01CUNY_KB:CUNY_KB&lang=en", + icon: "fas fa-search fa-fw bigger-icon", + description: "OneSearch", + target_blank: "", + id: 1 + }, + { + link: "https://library.kbcc.cuny.edu/az.php", + icon: "fas fa-database fa-fw bigger-icon", + description: "Databases A to Z", + target_blank: "", + id: 2 + }, + { + link: "https://library.kbcc.cuny.edu/guides", + icon: "fas fa-telescope fa-fw bigger-icon", + description: "Research Guides", + target_blank: "", + id: 3 + }, + { + link: "https://library.kbcc.cuny.edu/faq", + icon: "fas fa-question-circle fa-fw bigger-icon", + description: "FAQ", + target_blank: "", + id: 4 + }, + { + link: "https://library.kbcc.cuny.edu/calendar", + icon: "fas fa-clock fa-fw bigger-icon", + description: "Library Hours", + target_blank: "", + id: 5 + }, + { + link: "https://library.kbcc.cuny.edu/sitemap", + icon: "fas fa-location-arrow fa-fw bigger-icon", + description: "Site Map", + target_blank: "", + id: 6 + } + ], + findIt: [ + { + link: "https://library.kbcc.cuny.edu/az.php", + icon: "fas fa-database fa-fw bigger-icon", + description: "Databases A to Z", + target_blank: "", + id: 1 + }, + { + link: "https://cuny-kb.primo.exlibrisgroup.com/discovery/npsearch?vid=01CUNY_KB:CUNY_KB&search_scope=all", + icon: "fas fa-newspaper fa-fw bigger-icon", + description: "Newspaper Search", + target_blank: "", + id: 2 + }, + { + link: "https://cuny-kb.primo.exlibrisgroup.com/discovery/search?vid=01CUNY_KB:CUNY_KB&tab=CourseReserves&search_scope=CourseReserves", + icon: "fas fa-cloud-download-alt fa-fw bigger-icon", + description: "Course Reserves", + target_blank: "", + id: 3 + }, + { + link: "https://cuny-kb.primo.exlibrisgroup.com/discovery/jsearch?vid=01CUNY_KB:CUNY_KB", + icon: "fas fa-book fa-fw bigger-icon", + description: "Search for Specific Journals", + target_blank: "", + id: 4 + }, + { + link: "https://library.kbcc.cuny.edu/academicworks", + icon: "fas fa-archive fa-fw bigger-icon", + description: "CUNY Academic Works", + target_blank: "_blank", + id: 5 + }, + { + link: "https://www.bkstr.com/kingsboroughccstore/home", + icon: "fas fa-cash-register fa-fw bigger-icon", + description: "KBCC Bookstore", + target_blank: "_blank", + id: 6 + } + ], + services: [ + { + link: "http://kbcc.cuny.illiad.oclc.org/illiad/logon.html", + icon: "fas fa-books fa-fw bigger-icon", + description: "Interlibrary Loan", + target_blank: "_blank", + id: 1 + }, + { + link: "https://library.kbcc.cuny.edu/libraryservices/informationliteracy", + icon: "fas fa-chalkboard-teacher fa-fw bigger-icon", + description: "Book a Library Instruction Session" , + target_blank: "", + id: 2 + }, + { + link: "https://library.kbcc.cuny.edu/mediaservices", + icon: "fas fa-photo-video fa-fw bigger-icon", + description: "Media Services", + target_blank: "", + id: 3 + }, + { + link: "https://kbcc-cuny.libwizard.com/f/bookrequest", + icon: "fas fa-shopping-basket fa-fw bigger-icon", + description: "Suggest a Book for Purchase", + target_blank: "", + id: 4 + }, + { + link: "https://kbcc-cuny.libwizard.com/id/8cdb3f1a787de3c307a8cf5d75cad406", + icon: "fas fa-bookmark fa-fw bigger-icon", + description: "Suggest an Item to Add to Reserves", + target_blank: "", + id: 5 + } + ], + aboutUs: [ + { + link: "https://library.kbcc.cuny.edu/about-us/directory", + icon: "fas fa-address-book fa-fw bigger-icon", + description: "Faculty & Staff Directory", + target_blank: "", + id: 1 + }, + { + link: "https://library.kbcc.cuny.edu/newarrivals", + icon: "far fa-mail-bulk fa-fw bigger-icon", + description: "New Arrivals", + target_blank: "", + id: 2 + }, + { + link: "https://library.kbcc.cuny.edu/about-us/liaisons", + icon: "fas fa-theater-masks fa-fw bigger-icon", + description: "Subject Liaisons", + target_blank: "", + id: 3 + }, + { + link: "https://library.kbcc.cuny.edu/social", + icon: "far fa-hashtag fa-fw bigger-icon", + description: "Social Media", + target_blank: "", + id: 4 + } + ], + locationAndHours: [ + { + link: "https://tour.kingsborough.edu/", + icon: "fas fa-map-marked-alt fa-fw bigger-icon", + description: "Campus Map", + target_blank: "", + id: 1 + }, + { + link: "https://library.kbcc.cuny.edu/calendar", + icon: "fas fa-clock fa-fw bigger-icon", + description: "Library Hours", + target_blank: "", + id: 2 + } + ], + help: [ + { + link: "https://library.kbcc.cuny.edu/askalibrarian", + icon: "fas fa-book-reader fa-fw bigger-icon", + description: "Ask A Librarian", + target_blank: "", + id: 1 + }, + { + link: "https://library.kbcc.cuny.edu/faq", + icon: "fas fa-question-circle fa-fw bigger-icon", + description: "FAQ", + target_blank: "", + id: 2 + }, + { + link: "https://library.kbcc.cuny.edu/guides", + icon: "fas fa-telescope fa-fw bigger-icon", + description: "Research Guides and Tutorials", + target_blank: "", + id: 3 + }, + { + link: "https://library.kbcc.cuny.edu/ENGLISH24", + icon: "fas fa-question fa-fw bigger-icon", + description: "How to Use the Library", + target_blank: "", + id: 4 + } + ] } }); diff --git a/configuration/seed.js b/configuration/seed.js deleted file mode 100644 index 0130c30..0000000 --- a/configuration/seed.js +++ /dev/null @@ -1,216 +0,0 @@ -window.Seed = (function () { - const hamburgerMenu = [ - { - link: "https://cuny-kb.primo.exlibrisgroup.com/discovery/search?tab=Everything&vid=01CUNY_KB:CUNY_KB&lang=en", - icon: "fas fa-search fa-fw bigger-icon", - description: "OneSearch", - target_blank: "", - id: 1 - }, - { - link: "https://library.kbcc.cuny.edu/az.php", - icon: "fas fa-database fa-fw bigger-icon", - description: "Databases A to Z", - target_blank: "", - id: 2 - }, - { - link: "https://library.kbcc.cuny.edu/guides", - icon: "fas fa-telescope fa-fw bigger-icon", - description: "Research Guides", - target_blank: "", - id: 3 - }, - { - link: "https://library.kbcc.cuny.edu/faq", - icon: "fas fa-question-circle fa-fw bigger-icon", - description: "FAQ", - target_blank: "", - id: 4 - }, - { - link: "https://library.kbcc.cuny.edu/calendar", - icon: "fas fa-clock fa-fw bigger-icon", - description: "Library Hours", - target_blank: "", - id: 5 - }, - { - link: "https://library.kbcc.cuny.edu/sitemap", - icon: "fas fa-location-arrow fa-fw bigger-icon", - description: "Site Map", - target_blank: "", - id: 6 - } - ] - - const findItMenu = [ - { - link: "https://library.kbcc.cuny.edu/az.php", - icon: "fas fa-database fa-fw bigger-icon", - description: "Databases A to Z", - target_blank: "", - id: 1 - }, - { - link: "https://cuny-kb.primo.exlibrisgroup.com/discovery/npsearch?vid=01CUNY_KB:CUNY_KB&search_scope=all", - icon: "fas fa-newspaper fa-fw bigger-icon", - description: "Newspaper Search", - target_blank: "", - id: 2 - }, - { - link: "https://cuny-kb.primo.exlibrisgroup.com/discovery/search?vid=01CUNY_KB:CUNY_KB&tab=CourseReserves&search_scope=CourseReserves", - icon: "fas fa-cloud-download-alt fa-fw bigger-icon", - description: "Course Reserves", - target_blank: "", - id: 3 - }, - { - link: "https://cuny-kb.primo.exlibrisgroup.com/discovery/jsearch?vid=01CUNY_KB:CUNY_KB", - icon: "fas fa-book fa-fw bigger-icon", - description: "Search for Specific Journals", - target_blank: "", - id: 4 - }, - { - link: "https://library.kbcc.cuny.edu/academicworks", - icon: "fas fa-archive fa-fw bigger-icon", - description: "CUNY Academic Works", - target_blank: "_blank", - id: 5 - }, - { - link: "https://www.bkstr.com/kingsboroughccstore/home", - icon: "fas fa-cash-register fa-fw bigger-icon", - description: "KBCC Bookstore", - target_blank: "_blank", - id: 6 - } - ] - - const servicesMenu = [ - { - link: "http://kbcc.cuny.illiad.oclc.org/illiad/logon.html", - icon: "fas fa-books fa-fw bigger-icon", - description: "Interlibrary Loan", - target_blank: "_blank", - id: 1 - }, - { - link: "https://library.kbcc.cuny.edu/libraryservices/informationliteracy", - icon: "fas fa-chalkboard-teacher fa-fw bigger-icon", - description: "Book a Library Instruction Session" , - target_blank: "", - id: 2 - }, - { - link: "https://library.kbcc.cuny.edu/mediaservices", - icon: "fas fa-photo-video fa-fw bigger-icon", - description: "Media Services", - target_blank: "", - id: 3 - }, - { - link: "https://kbcc-cuny.libwizard.com/f/bookrequest", - icon: "fas fa-shopping-basket fa-fw bigger-icon", - description: "Suggest a Book for Purchase", - target_blank: "", - id: 4 - }, - { - link: "https://kbcc-cuny.libwizard.com/id/8cdb3f1a787de3c307a8cf5d75cad406", - icon: "fas fa-bookmark fa-fw bigger-icon", - description: "Suggest an Item to Add to Reserves", - target_blank: "", - id: 5 - } - ] - - const aboutUsMenu = [ - { - link: "https://library.kbcc.cuny.edu/about-us/directory", - icon: "fas fa-address-book fa-fw bigger-icon", - description: "Faculty & Staff Directory", - target_blank: "", - id: 1 - }, - { - link: "https://library.kbcc.cuny.edu/newarrivals", - icon: "far fa-mail-bulk fa-fw bigger-icon", - description: "New Arrivals", - target_blank: "", - id: 2 - }, - { - link: "https://library.kbcc.cuny.edu/about-us/liaisons", - icon: "fas fa-theater-masks fa-fw bigger-icon", - description: "Subject Liaisons", - target_blank: "", - id: 3 - }, - { - link: "https://library.kbcc.cuny.edu/social", - icon: "far fa-hashtag fa-fw bigger-icon", - description: "Social Media", - target_blank: "", - id: 4 - } - ] - - const locationAndHoursMenu = [ - { - link: "https://tour.kingsborough.edu/", - icon: "fas fa-map-marked-alt fa-fw bigger-icon", - description: "Campus Map", - target_blank: "", - id: 1 - }, - { - link: "https://library.kbcc.cuny.edu/calendar", - icon: "fas fa-clock fa-fw bigger-icon", - description: "Library Hours", - target_blank: "", - id: 2 - } - ] - - const helpMenu = [ - { - link: "https://library.kbcc.cuny.edu/askalibrarian", - icon: "fas fa-book-reader fa-fw bigger-icon", - description: "Ask A Librarian", - target_blank: "", - id: 1 - }, - { - link: "https://library.kbcc.cuny.edu/faq", - icon: "fas fa-question-circle fa-fw bigger-icon", - description: "FAQ", - target_blank: "", - id: 2 - }, - { - link: "https://library.kbcc.cuny.edu/guides", - icon: "fas fa-telescope fa-fw bigger-icon", - description: "Research Guides and Tutorials", - target_blank: "", - id: 3 - }, - { - link: "https://library.kbcc.cuny.edu/ENGLISH24", - icon: "fas fa-question fa-fw bigger-icon", - description: "How to Use the Library", - target_blank: "", - id: 4 - } - ] - return { - hamburgerMenu: hamburgerMenu, - findItMenu: findItMenu, - servicesMenu: servicesMenu, - aboutUsMenu: aboutUsMenu, - locationAndHoursMenu: locationAndHoursMenu, - helpMenu: helpMenu - }; -}()); diff --git a/groups/home/LibAnswers-SlideOutChat-7.html b/groups/home/LibAnswers-SlideOutChat-7.html index 3946b22..3fff932 100644 --- a/groups/home/LibAnswers-SlideOutChat-7.html +++ b/groups/home/LibAnswers-SlideOutChat-7.html @@ -332,7 +332,6 @@ -