nicolium: don't fetch pl-fe.json anymore
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -61,9 +61,9 @@ const loadFrontendConfig = () => async (dispatch: AppDispatch, getState: () => R
|
||||
};
|
||||
|
||||
const fetchFrontendConfigJson = (host: string | null) => (dispatch: AppDispatch) =>
|
||||
staticFetch('/instance/pl-fe.json')
|
||||
staticFetch('/instance/nicolium.json')
|
||||
.then(({ json: data }) => {
|
||||
if (!isObject(data)) throw 'pl-fe.json fetch failed';
|
||||
if (!isObject(data)) throw 'nicolium.json fetch failed';
|
||||
dispatch(importFrontendConfig(data, host));
|
||||
return data;
|
||||
})
|
||||
|
||||
@ -58,7 +58,7 @@ const config: Config = {
|
||||
},
|
||||
colors: parseColorMatrix({
|
||||
// Define color matrix (of available colors)
|
||||
// Colors are configured at runtime with CSS variables in pl-fe.json
|
||||
// Colors are configured at runtime with CSS variables in nicolium.json or frontend_configurations
|
||||
gray: [50, 100, 200, 300, 400, 500, 600, 700, 800, 900],
|
||||
primary: [50, 100, 200, 300, 400, 500, 600, 700, 800, 900],
|
||||
secondary: [100, 200, 300, 400, 500, 600],
|
||||
|
||||
Reference in New Issue
Block a user