mirror of
https://github.com/UiO-Gaming/infoscreen3.git
synced 2026-11-05 13:56:52 +01:00
Fix transitions for webpages as well
This commit is contained in:
1 parent
862d45f621
commit
27cfd2a553
3 files changed
+17
-15
No files matched your search
@@ -367,6 +367,9 @@ export default class admin {
|
||||
}
|
||||
|
||||
bundle.save();
|
||||
// Adds empty slide render for smooth transitions
|
||||
fs.copyFileSync("./templates/bundle/render/empty.png","./data/bundles/" + data.bundleName + "/render/" + filename + ".png")
|
||||
|
||||
|
||||
cli.success("save web link");
|
||||
socket.emit("callback.saveLink", {});
|
||||
|
||||
+12
-14
@@ -115,21 +115,19 @@ export default class bundleClass {
|
||||
x++;
|
||||
}
|
||||
if (slide.uuid === uuid) {
|
||||
if (slide.type === "slide" || slide.type === "video") {
|
||||
let path = process.cwd() + "/data/bundles/" + this.name;
|
||||
try {
|
||||
uuid = checkAndSanitizeFilePathName(uuid)
|
||||
if (fs.existsSync(path + "/render/" + uuid + ".png")) {
|
||||
fs.unlinkSync(path + "/render/" + uuid + ".png");
|
||||
cli.success("removing file:" + path + "/render/" + uuid + ".png");
|
||||
}
|
||||
if (fs.existsSync(path + "/slides/" + uuid)) {
|
||||
fs.unlinkSync(path + "/slides/" + uuid);
|
||||
cli.success("removing file:" + path + "/slides/" + uuid);
|
||||
}
|
||||
} catch (err) {
|
||||
cli.error("error while deleting file:" + uuid, err);
|
||||
let path = process.cwd() + "/data/bundles/" + this.name;
|
||||
try {
|
||||
uuid = checkAndSanitizeFilePathName(uuid)
|
||||
if (fs.existsSync(path + "/render/" + uuid + ".png")) {
|
||||
fs.unlinkSync(path + "/render/" + uuid + ".png");
|
||||
cli.success("removing file:" + path + "/render/" + uuid + ".png");
|
||||
}
|
||||
if (fs.existsSync(path + "/slides/" + uuid)) {
|
||||
fs.unlinkSync(path + "/slides/" + uuid);
|
||||
cli.success("removing file:" + path + "/slides/" + uuid);
|
||||
}
|
||||
} catch (err) {
|
||||
cli.error("error while deleting file:" + uuid, err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user