pinokiod 2.15.50 → 2.15.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -165,11 +165,17 @@ body {
|
|
|
165
165
|
</div>
|
|
166
166
|
<% }) %>
|
|
167
167
|
</div>
|
|
168
|
-
<form method="post" action="/pinokio/install">
|
|
168
|
+
<form id='install-form' method="post" action="/pinokio/install">
|
|
169
169
|
<input type='hidden' name="requirements" value="<%=JSON.stringify(requirements)%>">
|
|
170
170
|
<input type='hidden' name='callback' value="<%=current%>">
|
|
171
171
|
<button class='btn'>Install</button>
|
|
172
172
|
</form>
|
|
173
|
+
<div class='item'>
|
|
174
|
+
<div class='d'>Not working? <a id='del-bin'>Try a fresh install</a></div>
|
|
175
|
+
<div class='reset-bin-loading hidden'>
|
|
176
|
+
<i class="fa-solid fa-circle-notch fa-spin"></i> Stand by. Do not close this window..
|
|
177
|
+
</div>
|
|
178
|
+
</div>
|
|
173
179
|
</div>
|
|
174
180
|
</div>
|
|
175
181
|
<% } else { %>
|
|
@@ -227,6 +233,33 @@ document.addEventListener("DOMContentLoaded", async () => {
|
|
|
227
233
|
}
|
|
228
234
|
<% } %>
|
|
229
235
|
<% } %>
|
|
236
|
+
if (document.querySelector("#del-bin")) {
|
|
237
|
+
document.querySelector("#del-bin").addEventListener("click", async (e) => {
|
|
238
|
+
console.log("del-bin")
|
|
239
|
+
let proceed = confirm("Are you sure you wish to delete the bin folder?")
|
|
240
|
+
if (proceed) {
|
|
241
|
+
document.querySelector(".reset-bin-loading").classList.remove("hidden")
|
|
242
|
+
document.querySelector("#del-bin").classList.add("hidden")
|
|
243
|
+
let res = await fetch("/pinokio/delete", {
|
|
244
|
+
method: "post",
|
|
245
|
+
headers: {
|
|
246
|
+
"Content-Type": "application/json"
|
|
247
|
+
},
|
|
248
|
+
body: JSON.stringify({ type: "bin" })
|
|
249
|
+
}).then((res) => {
|
|
250
|
+
return res.json()
|
|
251
|
+
})
|
|
252
|
+
console.log(res)
|
|
253
|
+
document.querySelector(".reset-bin-loading").classList.add("hidden")
|
|
254
|
+
if (res.error) {
|
|
255
|
+
alert(res.error)
|
|
256
|
+
} else {
|
|
257
|
+
//location.href = location.href
|
|
258
|
+
document.queyrSelector("#install-form").submit()
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
})
|
|
262
|
+
}
|
|
230
263
|
})
|
|
231
264
|
</script>
|
|
232
265
|
</body>
|
package/server/views/editor.ejs
CHANGED
|
@@ -770,7 +770,8 @@ document.addEventListener("DOMContentLoaded", async () => {
|
|
|
770
770
|
if (res.error) {
|
|
771
771
|
alert(res.error)
|
|
772
772
|
} else {
|
|
773
|
-
|
|
773
|
+
document.queyrSelector("#install-form").submit()
|
|
774
|
+
//location.href = location.href
|
|
774
775
|
}
|
|
775
776
|
}
|
|
776
777
|
})
|
|
@@ -875,7 +876,7 @@ const reloadMemory = async () => {
|
|
|
875
876
|
</div>
|
|
876
877
|
<% }) %>
|
|
877
878
|
</div>
|
|
878
|
-
<form method="post" action="/pinokio/install">
|
|
879
|
+
<form id='install-form' method="post" action="/pinokio/install">
|
|
879
880
|
<input type='hidden' name="requirements" value="<%=JSON.stringify(requirements)%>">
|
|
880
881
|
<input type='hidden' name='callback' value="<%=current%>">
|
|
881
882
|
<button class='btn'>Install</button>
|
|
@@ -739,7 +739,8 @@ document.addEventListener("DOMContentLoaded", async () => {
|
|
|
739
739
|
if (res.error) {
|
|
740
740
|
alert(res.error)
|
|
741
741
|
} else {
|
|
742
|
-
location.href = location.href
|
|
742
|
+
//location.href = location.href
|
|
743
|
+
document.queyrSelector("#install-form").submit()
|
|
743
744
|
}
|
|
744
745
|
}
|
|
745
746
|
})
|
|
@@ -827,7 +828,7 @@ const reloadMemory = async () => {
|
|
|
827
828
|
</div>
|
|
828
829
|
<% }) %>
|
|
829
830
|
</div>
|
|
830
|
-
<form method="post" action="/pinokio/install">
|
|
831
|
+
<form id='install-form' method="post" action="/pinokio/install">
|
|
831
832
|
<input type='hidden' name="requirements" value="<%=JSON.stringify(requirements)%>">
|
|
832
833
|
<input type='hidden' name='callback' value="<%=current%>">
|
|
833
834
|
<button class='btn'>Install</button>
|