mirror of
https://github.com/mediacms-io/mediacms.git
synced 2026-03-22 20:43:10 -04:00
Frontent dev env (#247)
* Added frontend development files/environment * More items-categories related removals * Improvements in pages templates (inc. static pages) * Improvements in video player * Added empty home page message + cta * Updates in media, playlist and management pages * Improvements in material icons font loading * Replaced media & playlists links in frontend dev-env * frontend package version update * chnaged frontend dev url port * static files update * Changed default position of theme switcher * enabled frontend docker container
This commit is contained in:
32
frontend/src/static/js/utils/settings/notifications.js
Normal file
32
frontend/src/static/js/utils/settings/notifications.js
Normal file
@@ -0,0 +1,32 @@
|
||||
let NOTIFICATIONS = null;
|
||||
|
||||
export function init(settings) {
|
||||
NOTIFICATIONS = {
|
||||
messages: {
|
||||
addToLiked: 'Added to liked media',
|
||||
removeFromLiked: 'Removed from liked media',
|
||||
addToDisliked: 'Added to disliked media',
|
||||
removeFromDisliked: 'Removed from disliked media',
|
||||
},
|
||||
};
|
||||
|
||||
let k, g;
|
||||
|
||||
if (void 0 !== settings) {
|
||||
for (k in NOTIFICATIONS) {
|
||||
if (void 0 !== settings[k]) {
|
||||
if ('messages' === k) {
|
||||
for (g in NOTIFICATIONS[k]) {
|
||||
if ('string' === typeof settings[k][g]) {
|
||||
NOTIFICATIONS[k][g] = settings[k][g];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export function settings() {
|
||||
return NOTIFICATIONS;
|
||||
}
|
||||
Reference in New Issue
Block a user