2025-01-19 11:01:34 +01:00
|
|
|
import { defaultConfig } from '../config/index.mjs'
|
|
|
|
import {
|
|
|
|
MenuIcon,
|
|
|
|
KioskIcon,
|
|
|
|
RotateIcon,
|
|
|
|
RocketIcon,
|
|
|
|
UxIcon,
|
|
|
|
} from '@freesewing/react/components/Icon'
|
|
|
|
|
|
|
|
export function menuUiPreferencesStructure() {
|
|
|
|
const uiUx = defaultConfig.uxLevels.ui
|
2024-09-15 15:29:30 +02:00
|
|
|
const uiPreferences = {
|
|
|
|
ux: {
|
|
|
|
ux: uiUx.ux,
|
|
|
|
emoji: '🖥️',
|
|
|
|
list: [1, 2, 3, 4, 5],
|
|
|
|
choiceTitles: {},
|
2025-01-19 11:01:34 +01:00
|
|
|
icon: UxIcon,
|
|
|
|
dflt: defaultConfig.defaultUx,
|
2024-09-15 15:29:30 +02:00
|
|
|
},
|
|
|
|
aside: {
|
|
|
|
ux: uiUx.aside,
|
|
|
|
list: [0, 1],
|
|
|
|
choiceTitles: {
|
|
|
|
0: 'pe:noAside',
|
|
|
|
1: 'pe:withAside',
|
|
|
|
},
|
|
|
|
dflt: 1,
|
2025-01-19 11:01:34 +01:00
|
|
|
icon: MenuIcon,
|
2024-09-15 15:29:30 +02:00
|
|
|
},
|
|
|
|
kiosk: {
|
|
|
|
ux: uiUx.kiosk,
|
|
|
|
list: [0, 1],
|
|
|
|
choiceTitles: {
|
|
|
|
0: 'pe:websiteMode',
|
|
|
|
1: 'pe:kioskMode',
|
|
|
|
},
|
|
|
|
dflt: 0,
|
2025-01-19 11:01:34 +01:00
|
|
|
icon: KioskIcon,
|
2024-09-15 15:29:30 +02:00
|
|
|
},
|
|
|
|
rotate: {
|
|
|
|
ux: uiUx.rotate,
|
|
|
|
list: [0, 1],
|
|
|
|
choiceTitles: {
|
|
|
|
0: 'pe:rotateNo',
|
|
|
|
1: 'pe:rotateYes',
|
|
|
|
},
|
|
|
|
dflt: 0,
|
2025-01-19 11:01:34 +01:00
|
|
|
icon: RotateIcon,
|
2024-09-15 15:29:30 +02:00
|
|
|
},
|
|
|
|
renderer: {
|
|
|
|
ux: uiUx.renderer,
|
|
|
|
list: ['react', 'svg'],
|
|
|
|
choiceTitles: {
|
|
|
|
react: 'pe:renderWithReact',
|
|
|
|
svg: 'pe:renderWithCore',
|
|
|
|
},
|
|
|
|
valueTitles: {
|
|
|
|
react: 'React',
|
|
|
|
svg: 'SVG',
|
|
|
|
},
|
|
|
|
dflt: 'react',
|
2025-01-19 11:01:34 +01:00
|
|
|
icon: RocketIcon,
|
2024-09-15 15:29:30 +02:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
uiPreferences.ux.list.forEach((i) => (uiPreferences.ux.choiceTitles[i] = 'pe:ux' + i))
|
|
|
|
return uiPreferences
|
|
|
|
}
|