-
Notifications
You must be signed in to change notification settings - Fork 0
/
consts.js
74 lines (72 loc) · 1.59 KB
/
consts.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
export const API_URL = import.meta?.env?.PUBLIC_API_URL || `http://localhost:3500/api/`;
export const UPLOADS_URL = import.meta?.env?.PUBLIC_UPLOADS_URL || `http://localhost:3500/uploads/`;
export const SITE_URL = import.meta?.env?.PUBLIC_SITE_URL || 'http://localhost:4322';
export const DEFAULT_LEXI_SETTINGS = {
name: "Lexi Settings",
slug: "lexi-settings",
labels: {
singular: {
en: "Product",
es: "Producto",
},
plural: {
en: "Lexi Settings",
es: "Ajustes de Lexi",
},
},
fields: [
{
name: "sitename",
type: "text",
required: true,
label: {
es: "Nombre del sitio",
en: "Site name",
},
},
{
name: "description",
type: "richText",
default: null,
label: {
es: "Descripción",
en: "Description",
},
},
{
name: "custom_css",
type: "richText",
default: null,
label: {
es: "CSS Personalizado",
en: "Custom CSS",
},
},
{
name: "sitelogo",
type: "image",
relationTo: "Media",
label: {
es: "Imagen del sitio",
en: "Site logo",
},
default: null,
options: {
sidebar: true,
},
},
{
name: "language",
type: "select",
default: "ES",
enum: ["ES", "EN"],
label: {
es: "Idioma",
en: "Language",
},
options: {
sidebar: true,
}
},
],
}