index.ts
5.36 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
import type { HelpCenterAllCategoryArticles, HelpCenterArticle, HelpCenterArticlesOverview } from './types'
import { getPublicUrl } from '@/server/utils/getPublicUrl'
interface DB {
allArticles: HelpCenterAllCategoryArticles[]
keepLearning: HelpCenterArticlesOverview[]
popularArticles: HelpCenterArticlesOverview[]
articleData: HelpCenterArticle
}
// Images
const discord = getPublicUrl('/images/svg/discord.svg')
const gift = getPublicUrl('/images/svg/gift.svg')
const keyboard = getPublicUrl('/images/svg/keyboard.svg')
const laptop = getPublicUrl('/images/svg/laptop.svg')
const lightbulb = getPublicUrl('/images/svg/lightbulb.svg')
const rocket = getPublicUrl('/images/svg/rocket.svg')
const checkoutImg = getPublicUrl('/images/front-pages/misc/checkout-image.png')
const productImg = getPublicUrl('/images/front-pages/misc/product-image.png')
export const db: DB = {
popularArticles: [
{
slug: 'getting-started',
title: 'Getting Started',
img: rocket,
subtitle: 'Whether you\'re new or you\'re a power user, this article will help you to',
},
{
slug: 'first-steps',
title: 'First Steps',
img: gift,
subtitle: 'Are you a new customer wondering on how to get started?',
},
{
slug: 'external-content',
title: 'Add External Content',
img: keyboard,
subtitle: 'Article will show you how to expand the functionality of App',
},
],
allArticles: [
{
title: 'Buying',
icon: 'ri-shopping-cart-line',
articles: [
{ title: 'What are Favourites?' },
{ title: 'How do I purchase an item?' },
{ title: 'How do i add or change my details?' },
{ title: 'How do refunds work?' },
{ title: 'Can I Get A Refund?' },
{ title: 'I\'m trying to find a specific item' },
],
},
{
title: 'Item Support',
icon: 'ri-question-line',
articles: [
{ title: 'What is Item Support?' },
{ title: 'How to contact an author?' },
{ title: 'Where Is My Purchase Code?' },
{ title: 'Extend or renew Item Support' },
{ title: 'Item Support FAQ' },
{ title: 'Why has my item been removed?' },
],
},
{
title: 'Licenses',
icon: 'ri-file-text-line',
articles: [
{ title: 'Can I use the same license for the...' },
{ title: 'How to contact an author?' },
{ title: 'I\'m making a test site - it\'s not for ...' },
{ title: 'which license do I need?' },
{ title: 'I want to make multiple end prod ...' },
{ title: 'For logo what license do I need?' },
],
},
{
title: 'Template Kits',
icon: 'ri-palette-line',
articles: [
{ title: 'Template Kits' },
{ title: 'Elementor Template Kits: PHP Zip ...' },
{ title: 'Template Kits - Imported template ...' },
{ title: 'Troubleshooting Import Problems' },
{ title: 'How to use the WordPress Plugin ...' },
{ title: 'How to use the Template Kit Import ...' },
],
},
{
title: 'Account & Password',
icon: 'ri-lock-line',
articles: [
{ title: 'Signing in with a social account' },
{ title: 'Locked Out of Account' },
{ title: 'I\'m not receiving the verification email' },
{ title: 'Forgotten Username Or Password' },
{ title: 'New password not accepted' },
{ title: 'What is Sign In Verification?' },
],
},
{
title: 'Account Settings',
icon: 'ri-user-3-line',
articles: [
{ title: 'How do I change my password?' },
{ title: 'How do I change my username?' },
{ title: 'How do I close my account?' },
{ title: 'How do I change my email address?' },
{ title: 'How can I regain access to my a ...' },
{ title: 'Are RSS feeds available on Market?' },
],
},
],
keepLearning: [
{
slug: 'blogging',
title: 'Blogging',
img: laptop,
subtitle: 'Expert tips & tools to improve your website or online store using blog.',
},
{
slug: 'inspiration-center',
title: 'Inspiration Center',
img: lightbulb,
subtitle: 'inspiration from experts to help you start and grow your big ideas.',
},
{
slug: 'community',
title: 'Community',
img: discord,
subtitle: 'A group of people living in the same place or having a particular.',
},
],
articleData: {
title: 'How to add product in cart?',
lastUpdated: '1 month ago - Updated',
productContent: `
<p class='text-body-1'>
If you're after only one item, simply choose the 'Buy Now' option on the item page. This will take you directly to Checkout.
</p>
<p class='text-body-1'>
If you want several items, use the 'Add to Cart' button and then choose 'Keep Browsing' to continue shopping or 'Checkout' to finalize your purchase.
</p>
`,
checkoutContent: 'You can go back to your cart at any time by clicking on the shopping cart icon at the top right side of the page.',
articleList: [
'Template Kits',
'Elementor Template Kits: PHP Zip Extends',
'Envato Elements Template Kits',
'Envato Elements Template Kits',
'How to use the template in WordPress',
'How to use the Template Kit Import',
],
checkoutImg,
productImg,
},
}