Skip to content

Commit 17430f1

Browse files
authored
Expand manifest known category lists
1 parent 1977546 commit 17430f1

2 files changed

Lines changed: 50 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,55 @@
11
export const standardCategories = [
2+
"beauty",
23
"books",
4+
"books & reference",
35
"business",
6+
"cars",
7+
"dating",
8+
"design",
9+
"developer",
10+
"developer tools",
11+
"development",
412
"education",
513
"entertainment",
14+
"events",
15+
"fashion",
616
"finance",
717
"fitness",
818
"food",
19+
"fundraising",
920
"games",
1021
"government",
22+
"graphics",
23+
"graphics & design",
1124
"health",
25+
"health & fitness",
1226
"kids",
1327
"lifestyle",
1428
"magazines",
1529
"medical",
30+
"multimedia",
31+
"multimedia design",
1632
"music",
1733
"navigation",
34+
"network",
35+
"networking",
1836
"news",
37+
"parenting",
1938
"personalization",
39+
"pets",
2040
"photo",
41+
"photo & video",
2142
"politics",
2243
"productivity",
44+
"reference",
2345
"security",
2446
"shopping",
2547
"social",
48+
"social networking",
2649
"sports",
50+
"transportation",
2751
"travel",
2852
"utilities",
53+
"video",
2954
"weather",
3055
];

apps/pwabuilder/Frontend/src/script/utils/manifest-validation.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,33 +282,58 @@ function isStandardOrientation(orientation: string) {
282282
function containsStandardCategory(categories: string[]): boolean {
283283
// https://github.com/w3c/manifest/wiki/Categories
284284
const standardCategories = [
285+
'beauty',
285286
'books',
287+
'books & reference',
286288
'business',
289+
'cars',
290+
'dating',
291+
'design',
292+
'developer',
293+
'developer tools',
294+
'development',
287295
'education',
288296
'entertainment',
297+
'events',
298+
'fashion',
289299
'finance',
290300
'fitness',
291301
'food',
302+
'fundraising',
292303
'games',
293304
'government',
305+
'graphics',
306+
'graphics & design',
294307
'health',
308+
'health & fitness',
295309
'kids',
296310
'lifestyle',
297311
'magazines',
298312
'medical',
313+
'multimedia',
314+
'multimedia design',
299315
'music',
300316
'navigation',
317+
'network',
318+
'networking',
301319
'news',
320+
'parenting',
302321
'personalization',
322+
'pets',
303323
'photo',
324+
'photo & video',
304325
'politics',
305326
'productivity',
327+
'reference',
306328
'security',
307329
'shopping',
308330
'social',
331+
'social networking',
309332
'sports',
333+
'transportation',
310334
'travel',
311335
'utilities',
336+
'video',
312337
'weather',
313338
];
314339
return categories.some(c => standardCategories.includes(c));

0 commit comments

Comments
 (0)