-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
97 lines (90 loc) · 4.1 KB
/
index.html
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>drop</title>
<script>if (typeof module === 'object') {window.module = module; module =
undefined;}</script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<link rel="stylesheet" href="./main.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script>if (window.module) module = window.module;</script>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-header" data-toggle="collapse" href="#logDiv">
<div class="row">
<div class="col-sm-6">
<span class="align-middle">Configuration</span>
</div>
<div class="col-sm-6">
<a role="button" class="btn btn-success btn-sm float-right syncing" id="syncing">syncing</a>
</div>
</div>
</div>
<div class="card-body">
<form id="watchform">
<div class="form-group">
<label for="localpath">Path to watch:</label>
<input type="text" class="form-control" placeholder="Path to watch" name="localpath" id="localpath" required>
<!-- <small class="form-text text-muted">Some help text lmayo</small> -->
</div>
<div class="form-group">
<label for="remotepath">Remote path:</label>
<input type="text" class="form-control" placeholder="Path on the remote server" name="remotepath" id="remotepath" required>
</div>
<div class="form-group">
<label for="remotehost">Remote host:</label>
<input type="text" class="form-control" placeholder="IP address of remote host" name="remotehost" id="remotehost" required>
</div>
<div class="form-group">
<label for="remoteuser">Remote user:</label>
<input type="text" class="form-control" placeholder="User to log in with on the remote server" name="remoteuser" id="remoteuser" required>
</div>
<!-- <div class="form-group">
<label for="ignorefile">Ignore file (optional):</label>
<input type="text" class="form-control" placeholder="File that contains regexes for files you want to ignore" name="ignorefile" id="ignorefile">
</div> -->
<div class="btn-group" role="group" aria-label="Control button group">
<button type="submit" class="btn btn-primary" id="submitbutton">Start</button>
<button id="killbutton" class="btn btn-danger disabled" >Stop</button>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="card border-primary logcard">
<div class="card-header" data-toggle="collapse" href="#logDiv">
<div class="row">
<div class="col-sm-6">
<span class="align-middle">Log output <small class="text-muted">Click to show log</small></span>
</div>
<div class="col-sm-6">
<a role="button" class="btn btn-primary btn-sm float-right" style="color:white;" id="clearlog">Clear log</a>
</div>
</div>
</div>
<div class="collapse" id="logDiv">
<div class="card-body" id="logBody">
</div>
</div>
</div>
</div>
</div>
</div>
<script>
// You can also require other files to run in this process
require('./renderer.js')
</script>
</body>
</html>