MagicMirror/js
Oscar Björkman e09d60d1d1
Use single config backup file when config.template is used (#3104)
Copy `config.js` to a single `config.js-old` file whenever a
`config.template` is present, instead of using `Date()` as a suffix.
Creating files with a timestamp suffix means that whenever Magic Mirror
is restarted or recreated a new file is written into the config
directory.

Benefits:
* Single backup file will avoid excessive writing of files
* Saves space and usage on SD cards.
* Makes the folder cleaner and easier to overview, compared to ending up
with something like this as time goes on:

![image](9b66a99c-e760-471e-884c-9daa19689702)
2023-05-15 20:11:23 +02:00
..
app.js Use single config backup file when config.template is used (#3104) 2023-05-15 20:11:23 +02:00
check_config.js add .gitattributes and fix prettier/js warnings (#3094) 2023-04-22 09:29:51 +02:00
class.js add .gitattributes and fix prettier/js warnings (#3094) 2023-04-22 09:29:51 +02:00
defaults.js added a new config option httpHeaders used by helmet 2022-05-13 22:29:43 +02:00
deprecated.js Magic Mirror -> MagicMirror² 2022-01-26 23:09:26 +01:00
electron.js fix electron not running under windows (after async changes) (#3091) 2023-04-12 08:25:07 +02:00
fetch.js add .gitattributes and fix prettier/js warnings (#3094) 2023-04-22 09:29:51 +02:00
loader.js add .gitattributes and fix prettier/js warnings (#3094) 2023-04-22 09:29:51 +02:00
logger.js Magic Mirror -> MagicMirror² 2022-01-26 23:09:26 +01:00
main.js add .gitattributes and fix prettier/js warnings (#3094) 2023-04-22 09:29:51 +02:00
module.js add .gitattributes and fix prettier/js warnings (#3094) 2023-04-22 09:29:51 +02:00
node_helper.js add .gitattributes and fix prettier/js warnings (#3094) 2023-04-22 09:29:51 +02:00
server.js add .gitattributes and fix prettier/js warnings (#3094) 2023-04-22 09:29:51 +02:00
server_functions.js add .gitattributes and fix prettier/js warnings (#3094) 2023-04-22 09:29:51 +02:00
socketclient.js Add no-param-reassign from eslint (#3089) 2023-04-16 17:38:39 +02:00
translator.js add .gitattributes and fix prettier/js warnings (#3094) 2023-04-22 09:29:51 +02:00
utils.js Magic Mirror -> MagicMirror² 2022-01-26 23:09:26 +01:00