ciyidogan commited on
Commit
0554875
·
verified ·
1 Parent(s): 0602541

Delete static/spark.js

Browse files
Files changed (1) hide show
  1. static/spark.js +0 -33
static/spark.js DELETED
@@ -1,33 +0,0 @@
1
- function sparkStartup() {
2
- const payload = JSON.parse(document.getElementById('spark-startup-payload').value);
3
- apiPost('/spark/startup', payload)
4
- .then(data => showResult('spark-result', data))
5
- .catch(err => console.error(err));
6
- }
7
-
8
- function sparkProjectList() {
9
- apiGet('/spark/project_list')
10
- .then(data => showResult('spark-result', data))
11
- .catch(err => console.error(err));
12
- }
13
-
14
- function sparkEnable() {
15
- const payload = JSON.parse(document.getElementById('spark-enable-payload').value);
16
- apiPost('/spark/enable', payload)
17
- .then(data => showResult('spark-result', data))
18
- .catch(err => console.error(err));
19
- }
20
-
21
- function sparkDisable() {
22
- const payload = JSON.parse(document.getElementById('spark-disable-payload').value);
23
- apiPost('/spark/disable', payload)
24
- .then(data => showResult('spark-result', data))
25
- .catch(err => console.error(err));
26
- }
27
-
28
- function sparkDelete() {
29
- const payload = JSON.parse(document.getElementById('spark-delete-payload').value);
30
- apiPost('/spark/delete', payload)
31
- .then(data => showResult('spark-result', data))
32
- .catch(err => console.error(err));
33
- }