diff --git a/gca-admin-gurusoft-message-dashboard/.env b/gca-admin-gurusoft-message-dashboard/.env new file mode 100644 index 0000000..486ecc0 --- /dev/null +++ b/gca-admin-gurusoft-message-dashboard/.env @@ -0,0 +1 @@ +VITE_USE_MOCK=true \ No newline at end of file diff --git a/gca-admin-gurusoft-message-dashboard/README.md b/gca-admin-gurusoft-message-dashboard/README.md index 4c67e7e..43b7cb1 100644 --- a/gca-admin-gurusoft-message-dashboard/README.md +++ b/gca-admin-gurusoft-message-dashboard/README.md @@ -1,4 +1,4 @@ -# gca-admin-gurusoft-message-dashboard +npm # gca-admin-gurusoft-message-dashboard This template should help get you started developing with Vue 3 in Vite. diff --git a/gca-admin-gurusoft-message-dashboard/src/components/FakePage.vue b/gca-admin-gurusoft-message-dashboard/src/components/FakePage.vue new file mode 100644 index 0000000..de86680 --- /dev/null +++ b/gca-admin-gurusoft-message-dashboard/src/components/FakePage.vue @@ -0,0 +1,52 @@ + + + + + \ No newline at end of file diff --git a/gca-admin-gurusoft-message-dashboard/src/components/MarkedPopUp.vue b/gca-admin-gurusoft-message-dashboard/src/components/MarkedPopUp.vue new file mode 100644 index 0000000..e997030 --- /dev/null +++ b/gca-admin-gurusoft-message-dashboard/src/components/MarkedPopUp.vue @@ -0,0 +1,118 @@ + + + + + + \ No newline at end of file diff --git a/gca-admin-gurusoft-message-dashboard/src/components/SystemLinks.vue b/gca-admin-gurusoft-message-dashboard/src/components/SystemLinks.vue new file mode 100644 index 0000000..f2e2f35 --- /dev/null +++ b/gca-admin-gurusoft-message-dashboard/src/components/SystemLinks.vue @@ -0,0 +1,97 @@ + + + + + \ No newline at end of file diff --git a/gca-admin-gurusoft-message-dashboard/src/main.js b/gca-admin-gurusoft-message-dashboard/src/main.js index 600780d..bce55c0 100644 --- a/gca-admin-gurusoft-message-dashboard/src/main.js +++ b/gca-admin-gurusoft-message-dashboard/src/main.js @@ -1,6 +1,6 @@ import './assets/main.css' -import {createApp} from 'vue' +import { createApp } from 'vue' import App from './App.vue' import router from './router'; diff --git a/gca-admin-gurusoft-message-dashboard/src/mocks/marketPopUpMockData.json b/gca-admin-gurusoft-message-dashboard/src/mocks/marketPopUpMockData.json new file mode 100644 index 0000000..8bd2e29 --- /dev/null +++ b/gca-admin-gurusoft-message-dashboard/src/mocks/marketPopUpMockData.json @@ -0,0 +1,62 @@ +[ + { + "title": "Sommertilbud!", + "ingress": "Få opptil 50% rabatt", + "description": "Spar stort på sommerens mest populære varer. Tilbudet varer ut uken.Spar stort på sommerens mest populære varer. Tilbudet varer ut ukenSpar stort på sommerens mest populære varer. Tilbudet varer ut ukenSpar stort på sommerens mest populære varer. Tilbudet varer ut ukenSpar stort på sommerens mest populære varer. Tilbudet varer ut ukenSpar stort på sommerens mest populære varer. Tilbudet varer ut ukenSpar stort på sommerens mest populære varer. Tilbudet varer ut uken", + "url": "https://google.com", + "linkText": "Les mer", + "image": "https://yavuzceliker.github.io/sample-images/image-92.jpg", + "type": "campaign", + "date": "2025-06-27" + }, + { + "title": "Ny funksjon i appen", + "ingress": "Chat med oss direkte", + "description": "Vi har lansert en ny chat-funksjon hvor du kan få hjelp på sekunder.", + "url": "https://example.com/chat-funksjon", + "linkText": "Se hvordan", + "image": "https://yavuzceliker.github.io/sample-images/image-632.jpg", + "type": "feature", + "date": "2025-06-26" + }, + { + "title": "Viktig informasjon", + "ingress": "Endringer i bruksvilkår", + "description": "Vi har oppdatert våre vilkår og personvernregler. Les mer om endringene her.", + "url": "https://example.com/vilkar", + "linkText": "Les nye vilkår", + "image": "https://yavuzceliker.github.io/sample-images/image-1.jpg", + "type": "notice", + "date": "2025-06-25" + }, + { + "title": "Bli med på undersøkelse", + "ingress": "Hjelp oss å bli bedre", + "description": "Ta vår 2-minutters undersøkelse og vær med i trekningen av gavekort.", + "url": "https://example.com/undersokelse", + "linkText": "Svar nå", + "image": "https://yavuzceliker.github.io/sample-images/image-312.jpg", + "type": "survey", + "date": "2025-06-24" + }, + { + "title": "Vi er her for deg", + "ingress": "Ny kundeserviceportal", + "description": "Oppdag vårt nye hjelpesenter med artikler, guider og live-hjelp.", + "url": "https://example.com/hjelp", + "linkText": "Gå til hjelpesenter", + "image": "https://yavuzceliker.github.io/sample-images/image-460.jpg", + "type": "support", + "date": "2025-06-23" + }, + { + "title": "Eksklusivt webinartilbud", + "ingress": "Lær av ekspertene", + "description": "Bli med på vårt gratis webinar om digital markedsføring. Begrenset med plasser.", + "url": "https://example.com/webinar", + "linkText": "Meld deg på", + "image": "https://yavuzceliker.github.io/sample-images/image-699.jpg", + "type": "event", + "date": "2025-06-22" + } +] \ No newline at end of file diff --git a/gca-admin-gurusoft-message-dashboard/src/mocks/systemLinksMockData.json b/gca-admin-gurusoft-message-dashboard/src/mocks/systemLinksMockData.json new file mode 100644 index 0000000..fcb3f60 --- /dev/null +++ b/gca-admin-gurusoft-message-dashboard/src/mocks/systemLinksMockData.json @@ -0,0 +1,62 @@ +[ + { + "url": "https://report.gurusoft.no/", + "text": "Gurusoft hjemmeside", + "type": "admin", + "icon": "dashboard" + }, + { + "url": "https://www.gurusoft.no/ta-kontakt?utm_term=gurusoft&utm_campaign=Search+-+Gurusoft+-+Brand&utm_source=adwords&utm_medium=ppc&hsa_acc=1671275617&hsa_cam=21429497412&hsa_grp=164723437872&hsa_ad=704644852789&hsa_src=g&hsa_tgt=kwd-357983112442&hsa_kw=gurusoft&hsa_mt=b&hsa_net=adwords&hsa_ver=3&gad_source=1&gad_campaignid=21429497412&gbraid=0AAAAAC6-h5QA-Uem3fnf9a8Q7l0FhCFkF&gclid=CjwKCAjw3_PCBhA2EiwAkH_j4oYc5_RLO87_7JXoxRBwBR3sR7mHymCM5WRcyM_ORAb7kcmDvoi-HBoCxR4QAvD_BwE", + "text": "Kontakt oss", + "type": "internal", + "icon": "book" + }, + { + "url": "https://open.spotify.com/show/4iPq4aLAWHbsXpg0dKSGnY?si=c9ae69117a5740fd&nd=1&dlsi=328d8504668c4558", + "text": "Musikk innslag", + "type": "internal", + "icon": "support" + }, + { + "url": "https://www.company.com/privacy-policy", + "text": "Privacy Policy", + "type": "external", + "icon": "policy" + }, + { + "url": "https://www.company.com/terms-of-service", + "text": "Terms of Service", + "type": "what", + "icon": "terms" + }, + { + "url": "https://intranet.company.local/dashboard", + "text": "Admin Dashboard", + "type": "admin", + "icon": "dashboard" + }, + { + "url": "https://google.com", + "text": "Knowledge Base", + "type": "internal", + "icon": "book" + }, + { + "url": "https://intranet.company.local/support", + "text": "Support", + "type": "internal", + "icon": "support" + }, + { + "url": "https://www.company.com/privacy-policy", + "text": "Privacy Policy", + "type": "external", + "icon": "policy" + }, + { + "url": "https://www.company.com/terms-of-service", + "text": "Terms of Service", + "type": "what", + "icon": "terms" + } +] \ No newline at end of file diff --git a/gca-admin-gurusoft-message-dashboard/src/router/index.js b/gca-admin-gurusoft-message-dashboard/src/router/index.js index 31cf1d2..86fca9f 100644 --- a/gca-admin-gurusoft-message-dashboard/src/router/index.js +++ b/gca-admin-gurusoft-message-dashboard/src/router/index.js @@ -2,12 +2,11 @@ import {createRouter, createWebHistory} from 'vue-router'; import SystemMessagesPage from '../components/SystemMessagesPage.vue'; import SystemMessages from '../components/SystemMesssages.vue'; import Dashboard from '../components/Dashboard.vue'; +import FakePage from '../components/FakePage.vue' +import SystemLinks from '../components/SystemLinks.vue' +import MarkedPopUp from '../components/MarkedPopUp.vue' + -const routes = [ - {path: '/systemmessage', name: 'SystemMessage', component: SystemMessages}, - {path: '/systemmessagelist', name: 'SystemMessageList', component: SystemMessagesPage}, - {path: '/dashboard', name: 'Dashboard', component: Dashboard} -]; const router = createRouter({ history: createWebHistory(),