Add Oasis-Mobile-UX theme with hexagon navigation
- Selectable Oasis-Mobile-UX theme; mobile.css kept intact - Hexagon category launcher on home (10 categories with expandable modules) - Customizable bottom bar (up to 4 shortcuts, Peers/Invites fixed) - Empty states and collapsible activity filters
This commit is contained in:
parent
89a11fd789
commit
9ff72a17a0
19 changed files with 1202 additions and 673 deletions
|
|
@ -78,6 +78,7 @@ if (!fs.existsSync(configFilePath)) {
|
|||
"limit": 2000
|
||||
},
|
||||
"homePage": "activity",
|
||||
"bottomBarPins": ["search", "inbox", "publish"],
|
||||
"language": "en",
|
||||
"wish": "whole",
|
||||
"pmVisibility": "whole",
|
||||
|
|
@ -96,6 +97,15 @@ const getConfig = () => {
|
|||
if (cfg.ux.current === 'menus') cfg.ux.current = 'blocks';
|
||||
if (cfg.ux.current !== 'blocks' && cfg.ux.current !== 'ainav') cfg.ux.current = 'blocks';
|
||||
if (cfg.ux.current === 'ainav' && cfg.modules && cfg.modules.aiNavMod !== 'on') cfg.ux.current = 'blocks';
|
||||
let pins = Array.isArray(cfg.bottomBarPins)
|
||||
? cfg.bottomBarPins
|
||||
: (typeof cfg.bottomBarPin === 'string'
|
||||
? (cfg.bottomBarPin ? [cfg.bottomBarPin] : [])
|
||||
: ['search', 'inbox', 'publish']);
|
||||
pins = pins.filter(k => typeof k === 'string' && k);
|
||||
pins = pins.filter((k, i) => pins.indexOf(k) === i).slice(0, 4);
|
||||
cfg.bottomBarPins = pins;
|
||||
delete cfg.bottomBarPin;
|
||||
return cfg;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue