mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-07-01 05:23:25 +00:00
see #3358 used command: `find ./ -type f -exec perl -i -0pe 's/\/\*\s*magicmirror.*?\*\/\s*//si' {} \;` This is a first draft, I think we should preserve some of the comments.
24 lines
704 B
JavaScript
24 lines
704 B
JavaScript
let config = {
|
|
modules:
|
|
// Using exotic content. This is why don't accept go to JSON configuration file
|
|
(() => {
|
|
let positions = ["top_bar", "top_left", "top_center", "top_right", "upper_third", "middle_center", "lower_third", "bottom_left", "bottom_center", "bottom_right", "bottom_bar", "fullscreen_above", "fullscreen_below"];
|
|
let modules = Array();
|
|
for (let idx in positions) {
|
|
modules.push({
|
|
module: "helloworld",
|
|
position: positions[idx],
|
|
config: {
|
|
text: `Text in ${positions[idx]}`
|
|
}
|
|
});
|
|
}
|
|
return modules;
|
|
})()
|
|
};
|
|
|
|
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
|
if (typeof module !== "undefined") {
|
|
module.exports = config;
|
|
}
|