2023-07-21 09:54:05 +02:00
|
|
|
/*
|
|
|
|
* Do not use the 'config' webpack alias here because
|
|
|
|
* this is used in the prebuild step which is pure NodeJS
|
|
|
|
*/
|
2023-07-20 08:42:56 +02:00
|
|
|
import { social } from '../../../config//social.mjs'
|
2023-05-17 12:18:25 +02:00
|
|
|
|
2022-12-24 16:50:34 +01:00
|
|
|
export const freeSewingConfig = {
|
2022-05-25 18:35:20 +02:00
|
|
|
monorepo: 'https://github.com/freesewing/freesewing',
|
2023-05-17 17:32:19 +02:00
|
|
|
backend: process.env.NEXT_PUBLIC_BACKEND || 'https://backend3.freesewing.org',
|
2022-12-24 18:16:09 +01:00
|
|
|
maxWidth: 2800,
|
2023-02-11 19:47:35 +01:00
|
|
|
account: {
|
|
|
|
fields: {
|
2023-04-22 16:41:13 +02:00
|
|
|
data: {
|
2023-08-23 17:41:34 +02:00
|
|
|
bookmarks: 2,
|
2023-04-22 16:41:13 +02:00
|
|
|
sets: 1,
|
|
|
|
patterns: 1,
|
2023-08-19 18:01:22 +02:00
|
|
|
apikeys: 4,
|
2023-04-22 16:41:13 +02:00
|
|
|
},
|
2023-02-11 19:47:35 +01:00
|
|
|
info: {
|
2023-08-19 18:01:22 +02:00
|
|
|
username: 2,
|
2023-08-23 17:41:34 +02:00
|
|
|
bio: 2,
|
2023-02-11 19:47:35 +01:00
|
|
|
img: 2,
|
2023-08-19 18:01:22 +02:00
|
|
|
email: 3,
|
2023-02-11 19:47:35 +01:00
|
|
|
},
|
|
|
|
settings: {
|
2023-08-19 18:01:22 +02:00
|
|
|
language: 2,
|
|
|
|
units: 2,
|
|
|
|
newsletter: 2,
|
2023-02-11 19:47:35 +01:00
|
|
|
compare: 3,
|
|
|
|
control: 1,
|
2023-08-19 18:01:22 +02:00
|
|
|
consent: 2,
|
2023-02-11 19:47:35 +01:00
|
|
|
},
|
2023-08-19 18:01:22 +02:00
|
|
|
security: {
|
|
|
|
password: 2,
|
2023-08-23 17:41:34 +02:00
|
|
|
mfa: 3,
|
2023-02-11 19:47:35 +01:00
|
|
|
apikeys: 4,
|
|
|
|
},
|
2023-08-19 18:01:22 +02:00
|
|
|
identities: {
|
|
|
|
github: 3,
|
|
|
|
instagram: 3,
|
|
|
|
mastodon: 3,
|
|
|
|
reddit: 3,
|
|
|
|
twitter: 3,
|
|
|
|
twitch: 3,
|
|
|
|
tiktok: 3,
|
|
|
|
website: 3,
|
|
|
|
},
|
2023-02-11 19:47:35 +01:00
|
|
|
},
|
2023-04-30 18:29:56 +02:00
|
|
|
sets: {
|
|
|
|
name: 1,
|
2023-08-23 17:41:34 +02:00
|
|
|
img: 1,
|
2023-04-30 18:29:56 +02:00
|
|
|
public: 3,
|
2023-08-23 17:41:34 +02:00
|
|
|
units: 1,
|
2023-04-30 18:29:56 +02:00
|
|
|
notes: 2,
|
2023-08-23 17:41:34 +02:00
|
|
|
createdAt: 2,
|
|
|
|
updatedAt: 2,
|
|
|
|
id: 4,
|
2023-04-30 18:29:56 +02:00
|
|
|
},
|
2023-05-26 17:24:25 +02:00
|
|
|
patterns: {
|
|
|
|
name: 1,
|
|
|
|
img: 2,
|
|
|
|
public: 3,
|
|
|
|
notes: 2,
|
|
|
|
},
|
2023-02-11 19:47:35 +01:00
|
|
|
},
|
2023-05-17 12:18:25 +02:00
|
|
|
social,
|
2023-08-14 19:16:47 +02:00
|
|
|
statuses: {
|
|
|
|
0: {
|
|
|
|
name: 'inactive',
|
|
|
|
color: 'neutral',
|
|
|
|
},
|
|
|
|
1: {
|
|
|
|
name: 'active',
|
|
|
|
color: 'success',
|
|
|
|
},
|
|
|
|
'-1': {
|
|
|
|
name: 'paused',
|
|
|
|
color: 'warning',
|
|
|
|
},
|
|
|
|
'-2': {
|
|
|
|
name: 'disabled',
|
|
|
|
color: 'error',
|
|
|
|
},
|
|
|
|
},
|
2022-01-02 17:16:15 +01:00
|
|
|
}
|
2023-08-23 17:41:34 +02:00
|
|
|
|
|
|
|
export const controlLevels = {
|
|
|
|
...freeSewingConfig.account.fields.data,
|
|
|
|
...freeSewingConfig.account.fields.info,
|
|
|
|
...freeSewingConfig.account.fields.settings,
|
|
|
|
...freeSewingConfig.account.fields.security,
|
|
|
|
...freeSewingConfig.account.fields.identities,
|
|
|
|
sets: freeSewingConfig.account.sets,
|
|
|
|
patterns: freeSewingConfig.account.patterns,
|
|
|
|
}
|