mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-03-01 12:44:28 +00:00
* define ids and slugs in categories, check for existing ids, only seed the new ids * seed categories respecting existing categories --------- Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
121 lines
1.9 KiB
TypeScript
121 lines
1.9 KiB
TypeScript
// this file is duplicated in `backend/src/constants/metadata` and `webapp/constants/metadata.js`
|
|
export const CATEGORIES_MIN = 1
|
|
export const CATEGORIES_MAX = 3
|
|
|
|
export const categories = [
|
|
{
|
|
icon: 'networking',
|
|
id: 'cat0',
|
|
slug: 'networking',
|
|
name: 'networking',
|
|
},
|
|
{
|
|
icon: 'home',
|
|
id: 'cat1',
|
|
slug: 'home',
|
|
name: 'home',
|
|
},
|
|
{
|
|
icon: 'energy',
|
|
id: 'cat2',
|
|
slug: 'energy',
|
|
name: 'energy',
|
|
},
|
|
{
|
|
icon: 'psyche',
|
|
id: 'cat3',
|
|
slug: 'psyche',
|
|
name: 'psyche',
|
|
},
|
|
{
|
|
icon: 'movement',
|
|
id: 'cat4',
|
|
slug: 'body-and-excercise',
|
|
name: 'body-and-excercise',
|
|
},
|
|
{
|
|
icon: 'balance-scale',
|
|
id: 'cat5',
|
|
slug: 'law',
|
|
name: 'law',
|
|
},
|
|
{
|
|
icon: 'finance',
|
|
id: 'cat6',
|
|
slug: 'finance',
|
|
name: 'finance',
|
|
},
|
|
{
|
|
icon: 'child',
|
|
id: 'cat7',
|
|
slug: 'children',
|
|
name: 'children',
|
|
},
|
|
{
|
|
icon: 'mobility',
|
|
id: 'cat8',
|
|
slug: 'mobility',
|
|
name: 'mobility',
|
|
},
|
|
{
|
|
icon: 'shopping-cart',
|
|
id: 'cat9',
|
|
slug: 'economy',
|
|
name: 'economy',
|
|
},
|
|
{
|
|
icon: 'peace',
|
|
id: 'cat10',
|
|
slug: 'peace',
|
|
name: 'peace',
|
|
},
|
|
{
|
|
icon: 'politics',
|
|
id: 'cat11',
|
|
slug: 'politics',
|
|
name: 'politics',
|
|
},
|
|
{
|
|
icon: 'nature',
|
|
id: 'cat12',
|
|
slug: 'nature',
|
|
name: 'nature',
|
|
},
|
|
{
|
|
icon: 'science',
|
|
id: 'cat13',
|
|
slug: 'science',
|
|
name: 'science',
|
|
},
|
|
{
|
|
icon: 'health',
|
|
id: 'cat14',
|
|
slug: 'health',
|
|
name: 'health',
|
|
},
|
|
{
|
|
icon: 'media',
|
|
id: 'cat15',
|
|
slug: 'it-and-media',
|
|
name: 'it-and-media',
|
|
},
|
|
{
|
|
icon: 'spirituality',
|
|
id: 'cat16',
|
|
slug: 'spirituality',
|
|
name: 'spirituality',
|
|
},
|
|
{
|
|
icon: 'culture',
|
|
id: 'cat17',
|
|
slug: 'culture',
|
|
name: 'culture',
|
|
},
|
|
{
|
|
icon: 'miscellaneous',
|
|
id: 'cat18',
|
|
slug: 'miscellaneous',
|
|
name: 'miscellaneous',
|
|
},
|
|
]
|