aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/constants.ts
blob: dd44676a5a9656f19fdad0975ab836777cc634af (plain)
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 { TextBox } from "../render/GenericNotice";
import { Category } from "../types";

export function getGuidelineInfo(category: Category): TextBox[] {
    switch (category) {
        case "sponsor":
            return [{
                icon: "icons/money.svg",
                text: chrome.i18n.getMessage(`category_${category}_guideline1`)
            }, {
                icon: "icons/close-smaller.svg",
                text: chrome.i18n.getMessage(`category_${category}_guideline2`)
            }, {
                icon: "icons/segway.png",
                text: chrome.i18n.getMessage(`generic_guideline1`)
            }, {
                icon: "icons/right-arrow.svg",
                text: chrome.i18n.getMessage(`generic_guideline2`)
            }];
        case "selfpromo":
            return [{
                icon: "icons/money.svg",
                text: chrome.i18n.getMessage(`category_${category}_guideline1`)
            }, {
                icon: "icons/campaign.svg",
                text: chrome.i18n.getMessage(`category_${category}_guideline2`)
            }, {
                icon: "icons/close-smaller.svg",
                text: chrome.i18n.getMessage(`category_${category}_guideline3`)
            }, {
                icon: "icons/segway.png",
                text: chrome.i18n.getMessage(`generic_guideline1`)
            }, {
                icon: "icons/right-arrow.svg",
                text: chrome.i18n.getMessage(`generic_guideline2`)
            }];
        case "exclusive_access":
            return [{
                icon: "icons/money.svg",
                text: chrome.i18n.getMessage(`category_${category}_guideline1`)
            }];
        case "interaction":
            return [{
                icon: "icons/lightbulb.svg",
                text: chrome.i18n.getMessage(`category_${category}_guideline1`)
            }, {
                icon: "icons/lightbulb.svg",
                text: chrome.i18n.getMessage(`category_${category}_guideline2`)
            }, {
                icon: "icons/close-smaller.svg",
                text: chrome.i18n.getMessage(`category_${category}_guideline3`)
            }, {
                icon: "icons/segway.png",
                text: chrome.i18n.getMessage(`generic_guideline1`)
            }, {
                icon: "icons/right-arrow.svg",
                text: chrome.i18n.getMessage(`generic_guideline2`)
            }];
        case "intro":
            return [{
                icon: "icons/check-smaller.svg",
                text: chrome.i18n.getMessage(`category_${category}_guideline1`)
            }, {
                icon: "icons/close-smaller.svg",
                text: chrome.i18n.getMessage(`category_${category}_guideline2`)
            }, {
                icon: "icons/segway.png",
                text: chrome.i18n.getMessage(`generic_guideline1`)
            }, {
                icon: "icons/right-arrow.svg",
                text: chrome.i18n.getMessage(`generic_guideline2`)
            }];
        case "outro":
            return [{
                icon: "icons/close-smaller.svg",
                text: chrome.i18n.getMessage(`category_${category}_guideline1`)
            }, {
                icon: "icons/segway.png",
                text: chrome.i18n.getMessage(`generic_guideline1`)
            }, {
                icon: "icons/right-arrow.svg",
                text: chrome.i18n.getMessage(`generic_guideline2`)
            }];
        case "preview":
            return [{
                icon: "icons/check-smaller.svg",
                text: chrome.i18n.getMessage(`category_${category}_guideline1`)
            }, {
                icon: "icons/check-smaller.svg",
                text: chrome.i18n.getMessage(`category_${category}_guideline2`)
            }, {
                icon: "icons/close-smaller.svg",
                text: chrome.i18n.getMessage(`category_${category}_guideline3`)
            }, {
                icon: "icons/segway.png",
                text: chrome.i18n.getMessage(`generic_guideline1`)
            }, {
                icon: "icons/right-arrow.svg",
                text: chrome.i18n.getMessage(`generic_guideline2`)
            }];
        case "filler":
            return [{
                icon: "icons/stopwatch.svg",
                text: chrome.i18n.getMessage(`category_${category}_guideline1`)
            }, {
                icon: "icons/stopwatch.svg",
                text: chrome.i18n.getMessage(`category_${category}_guideline2`)
            }, {
                icon: "icons/close-smaller.svg",
                text: chrome.i18n.getMessage(`category_${category}_guideline3`)
            }, {
                icon: "icons/segway.png",
                text: chrome.i18n.getMessage(`generic_guideline1`)
            }, {
                icon: "icons/right-arrow.svg",
                text: chrome.i18n.getMessage(`generic_guideline2`)
            }];
        case "music_offtopic":
            return [{
                icon: "icons/music-note.svg",
                text: chrome.i18n.getMessage(`category_${category}_guideline1`)
            }, {
                icon: "icons/music-note.svg",
                text: chrome.i18n.getMessage(`category_${category}_guideline2`)
            }, {
                icon: "icons/right-arrow.svg",
                text: chrome.i18n.getMessage(`generic_guideline2`)
            }];
        case "poi_highlight":
            return [{
                icon: "icons/star.svg",
                text: chrome.i18n.getMessage(`category_${category}_guideline1`)
            }, {
                icon: "icons/bolt.svg",
                text: chrome.i18n.getMessage(`category_${category}_guideline2`)
            }, {
                icon: "icons/bolt.svg",
                text: chrome.i18n.getMessage(`category_${category}_guideline3`)
            }];
        case "chapter":
            return [{
                icon: "icons/close-smaller.svg",
                text: chrome.i18n.getMessage(`category_${category}_guideline1`)
            }, {
                icon: "icons/check-smaller.svg",
                text: chrome.i18n.getMessage(`category_${category}_guideline2`)
            }, {
                icon: "icons/check-smaller.svg",
                text: chrome.i18n.getMessage(`category_${category}_guideline3`)
            }];
        default:
            return [{
                icon: "icons/segway.png",
                text: chrome.i18n.getMessage(`generic_guideline1`)
            }, {
                icon: "icons/right-arrow.svg",
                text: chrome.i18n.getMessage(`generic_guideline2`)
            }];
    }
}