forked from projects/fipamo
removed redundant restore button, WIP’d mail button, move theme assets on render
This commit is contained in:
parent
4d44ea2a06
commit
c89fe5be30
4 changed files with 22 additions and 17 deletions
|
@ -23,6 +23,21 @@ class Render
|
|||
"description" => $settings["global"]["descriptions"],
|
||||
"image" => $settings["global"]["background"],
|
||||
];
|
||||
//copy current theme assets to public
|
||||
if (is_file("../public/assets/css/base.css")) {
|
||||
unlink("../public/assets/css/base.css");
|
||||
}
|
||||
copy(
|
||||
"../content/themes/" . $this->theme . "/assets/css/base.css",
|
||||
"../public/assets/css/base.css"
|
||||
);
|
||||
if (is_file("../public/assets/scripts/start.min.js")) {
|
||||
unlink("../public/assets/scripts/start.min.js");
|
||||
}
|
||||
copy(
|
||||
"../content/themes/" . $this->theme . "/assets/scripts/start.min.js",
|
||||
"../public/assets/scripts/start.min.js"
|
||||
);
|
||||
}
|
||||
|
||||
public function renderPages()
|
||||
|
|
|
@ -69,8 +69,6 @@
|
|||
{% else %}
|
||||
<span>span No back ups. Frowny face.</span>
|
||||
{% endif %}
|
||||
<button id="restore-backup" for='backup-upload'>RESTORE BACKUP</button>
|
||||
<input id="backup-upload" type="file" name="backup-upload" />
|
||||
</div>
|
||||
<div id="util-2" class="column">
|
||||
<label> MAINTENANCE </label><br />
|
||||
|
|
6
public/assets/scripts/dash.min.js
vendored
6
public/assets/scripts/dash.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -42,9 +42,6 @@ export default class SettingsIndex {
|
|||
document.getElementById("background").addEventListener("click", () => {
|
||||
document.getElementById("background-upload").click();
|
||||
});
|
||||
document.getElementById("restore-backup").addEventListener("click", () => {
|
||||
document.getElementById("backup-upload").click();
|
||||
});
|
||||
document.getElementById("avatar-upload").addEventListener(
|
||||
"change",
|
||||
(e) => {
|
||||
|
@ -59,13 +56,7 @@ export default class SettingsIndex {
|
|||
},
|
||||
false
|
||||
);
|
||||
document.getElementById("backup-upload").addEventListener(
|
||||
"change",
|
||||
(e) => {
|
||||
self.handleBackup(e);
|
||||
},
|
||||
false
|
||||
);
|
||||
|
||||
//handle privacy toggle
|
||||
//document
|
||||
//.getElementById('privacy-toggle')
|
||||
|
@ -124,8 +115,9 @@ export default class SettingsIndex {
|
|||
}
|
||||
}
|
||||
handleMailer() {
|
||||
let mailer = new Mailer();
|
||||
mailer.sendMail();
|
||||
//let mailer = new Mailer();
|
||||
//mailer.sendMail();
|
||||
notify.alert("Mail will be active soon. Hang tight", true);
|
||||
}
|
||||
handleThemes(e) {
|
||||
e.stopPropagation();
|
||||
|
|
Loading…
Reference in a new issue