-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathguccho.ui.config.example.ts
136 lines (130 loc) · 3.28 KB
/
guccho.ui.config.example.ts
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
import { type UIConfig } from './src/def/config.d'
import { Lang, Rank } from './src/def'
/*
* This file contains the UI configuration settings for Guccho. For optimal editing experience,
* it is recommended to use an editor that supports TypeScript, as it will help in detecting errors.
*/
export default {
legacyOption: {
/*
* The name of your server.
* A more advanced customization for this name can be achieved through i18n translations,
* allowing for different names in various languages.
*/
name: 'Guccho',
},
/* Base domain of your site (use 'ppy.sh' if your server is at 'c.ppy.sh'). */
baseUrl: 'dev.ppy.sb',
/* Branding icon, displayed at the top and bottom left corners. */
brand: {
icon: 'ion:paw',
iconClass: 'w-8 h-4',
},
/*
* Small icons displayed as links in the footer.
*/
iconLinks: [{ icon: 'tabler:brand-nuxt', link: 'https://nuxt.com', name: 'nuxt' }],
/*
* Define the footer links.
*
* Predefined keys include 'about' and 'resources'.
* You can add more sections like these. Guccho will provide translations only for the predefined keys.
* To add a custom section, use the schema `footer.[key]`.
* For instance, to add a 'store' section:
* {
* footerLink: {
* store: [{
* localeKey: 'footer.my-store',
* link: 'https://store.ppy.sb',
* }],
* },
* i18n: {
* [Lang.enGB]: {
* footer: {
* store: 'Store',
* 'my-store': 'My store',
* },
* },
* // ... other languages.
* }
* }
*
* - localeKey: Key for translation. Define translations in the i18n block below.
* - link: URL for the destination.
*/
footerLink: {
about: [{
localeKey: 'footer.blog',
link: 'https://blog.ppy.sb',
}],
resources: [{
localeKey: 'footer.nuxt',
link: 'https://nuxt.com',
}],
},
/*
* Locale mixins (Advanced configuration).
* Supported languages are defined in ./src/def.
* If you're interested in helping translate Guccho into other languages, please contact us.
*
* Example: I've included 'footer: { blog, nuxt }'. If these links are irrelevant to you,
* remember to remove both the links and the corresponding entries in 'footer'.
*
* For example, to name your server differently in various languages:
* {
* [Lang.enGB]: {
* server: {
* name: 'ppy.sb',
* },
* },
* [Lang.frFr]: {
* server: {
* name: 'ppŷ.śb',
* },
* },
* [Lang.zhCN]: {
* server: {
* name: '偏偏要上班',
* },
* },
* }
* in `messages`.
*
*/
i18n: {
messages: {
[Lang.enGB]: {
footer: {
blog: 'Blog',
nuxt: 'Nuxt',
},
},
},
},
/*
* Configuration for the appearance of each ranking system.
* In most cases, default settings are sufficient.
*/
leaderboardRankingSystem: {
[Rank.PPv2]: {
userpage: {
show: 'tab',
},
},
[Rank.PPv1]: {
userpage: {
show: 'dropdown',
},
},
[Rank.RankedScore]: {
userpage: {
show: 'tab',
},
},
[Rank.TotalScore]: {
userpage: {
show: 'tab',
},
},
},
} satisfies UIConfig