This repository was archived by the owner on Dec 27, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfixit.html
More file actions
46 lines (46 loc) · 1.41 KB
/
fixit.html
File metadata and controls
46 lines (46 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href = "assets/css/bootstrap.min.css">
<link rel="stylesheet" href = "assets/css/font-awesome.min.css">
<link rel = "stylesheet" href = "css/global.css">
<script src = "assets/js/jquery.js" onload = "window.$ = window.jQuery = module.exports;"></script>
<script src = "assets/js/bootstrap.js"></script>
<script src = "assets/js/vue.js"></script>
<script src = "js/globals.js"></script>
<title>Editor</title>
</head>
<body>
<div id = "main">
<navbar preview-page = ""></navbar>
<div class = "container-fluid">
<p>Click the big red button in order to delete the repository on disk and start over anew. Note that this will have no effect on the real website.
<h5>WARNING: ALL UNSAVED LOCAL CHANGES WILL BE LOST.</h5>
<button type = "button" v-on:click = "deletThis" class = "btn btn-danger btn-lg">DELETE</button>
<p class = "help-block">{{status}}
</div>
</div>
<script defer>
new Vue({
el: "#main",
data: {
"status": "Operation not yet started."
},
methods: {
deletThis: function() {
ipcRenderer.send("deleteRepo");
ipcRenderer.on("deletedRepo", (event, err) => {
if (err) {
this.status = "Failed to delete repo on disk. Try restarting the application.";
}
else {
this.status = "Repo deleted.";
window.location.href = "startup.html";
}
});
}
}
});
</script>
</body>
</html>