-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGlobalStore.js
83 lines (81 loc) · 2.22 KB
/
GlobalStore.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import { defineStore } from 'pinia'
import { mockFooterLinks, mockFooterPrimary, mockFooterSock, mockFooterSponsor, mockPrimary, mockSecondary } from '@/stores/mock.js'
export const useGlobalStore = defineStore('GlobalStore', {
state: () => ({
winHeight: 0,
winWidth: 824,
sTop: 0,
globals: {
askALibrarian: {
id: '7322',
askALibrarianTitle: 'Have further questions?',
askALibrarianText:
'<p>We\'re here to help. Chat with a librarian 24/7, schedule a research consultation or email us your quick questions.</p>',
buttonUrl: [
{
buttonText: 'Contact us',
buttonUrl: '/help/',
},
],
},
meapCallToAction: {
id: '28646',
name: 'MEAP Call to Action',
titleGeneral: 'Get in Touch',
summary: '<p>Have further questions?</p>',
button: [
{
buttonText: 'Contact Us',
buttonUrl: 'mailto:meap@library.ucla.edu',
},
],
},
ftvaViewingInformation: {
title: 'View information',
text: '<p>For more information, or to arrange on-site research viewing, please contact the <a href="https://www.cinema.ucla.edu/archive-research-study-center" target="_blank" rel="noreferrer noopener">Archive Research and Study Center (ARSC)</a></p>'
}
},
header: {
primary: mockPrimary,
secondary: mockSecondary
},
footerPrimary: {
nodes: [
{
children: mockFooterPrimary.socialItems,
},
{
children: mockFooterPrimary.pressItems,
},
],
},
footerSock: {
nodes: mockFooterSock.nodes
},
footerSponsor: {
funders: mockFooterSponsor.funders
},
footerLinks: {
nodes: [
{
category: 'About',
children: mockFooterLinks.aboutLinks,
},
{
category: 'Contact',
children: mockFooterLinks.contactLinks,
},
{
category: 'Contribute',
children: mockFooterLinks.contributeLinks,
},
{
category: 'Resources',
children: mockFooterLinks.resourcesLinks,
},
],
},
}),
getters: {
},
})