Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.html « Wizard « ncp-web - github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 584248d34f9400f9fa88b24bd082ebb9927cb4de (plain)
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<!DOCTYPE html>
<html>
	<head>
		<title>NextCloudPi Wizard</title>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<!-- Bootstrap -->
		<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
		<link href="CSS/wizard.css" rel="stylesheet">
	</head>
<body>
<div id="rootwizard">
	<ul id="ncp-nav">
		<li><a href="#tab1" data-toggle="tab">Welcome</a></li>
		<li><a href="#tab2" data-toggle="tab">USB Configuration</a></li>
		<li><a href="#tab3" data-toggle="tab">Port Forwarding</a></li>
		<li><a href="#tab4" data-toggle="tab">DDNS</a></li>
		<li><a href="#tab5" data-toggle="tab">Finish</a></li>
	</ul>
	<div id="bar" class="progress">
		<div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;"></div>
	</div>
	<div class="tab-content">
		<!-- Tab 1 content - Welcome -->
		<div class="tab-pane" id="tab1">
			<div class="ncp-tab-pane">
				<h1>Welcome to NextCloudPi wizard</h1>
				<p>This is the wizard to help you configure the bare minimum requirements.</p>
			</div>
		</div>
		<!-- Tab 2 content - USB Configuration -->
		<div class="tab-pane" id="tab2">
			<div class="ncp-tab-pane">
				<!-- Enable Automount -->
				<p class="instructions"> Do you want to save Nextcloud data in a USB drive?</p>
				<div class="buttons-area">
					<input type="button" class="btn" id="enable-Automount" value="Yes" />
					<input type="button" class="btn" id="disable-Automount" value="No" />
				</div>
				<!-- Test mount -->
				<div class="ncp-hidden" id="plug-usb">
					<p class="instructions">Plug in the USB drive and hit continue.</p>
					<div class="buttons-area">
						<input type="button" class="btn" id="plugUSB" value="Continue"/>
					</div>
				</div>
				<!-- Format USB drive -->
				<div class="ncp-hidden" id="format-usb">
					<p class="instructions">
						If you want to prepare the USB drive to be used with NextCloudPi hit Format USB. Skip if already formated as ext4.
						<br>	
						<strong>Attention!</strong> This will format your USB drive as ext4 and <strong>will destroy any current data.</strong> 
					</p>
					<div class="buttons-area">
						<input type="button" class="btn" id="format-USB" value="Format USB"/>
						<input type="button" class="btn" id="skip-format-USB" value="Skip"/>
					</div>
				</div>
			</div>
		</div>
		<!-- Tab 3 content - Test ports - Port Forwarding -->
		<div class="tab-pane" id="tab3">
			<div class="ncp-tab-pane">
				<!-- Test if public ports are open -->
					<p class="instructions">
						To access from the outside of your house, your public ports 80 and 443 need to point to your Raspberry Pi.
						<br>
						Test that your ports are open.
					</p>
					<div class="buttons-area">
						<input type="button" class="btn" id="test-ports-run" value="Test Ports"/>
						<input type="button" class="btn" id="test-ports-continue" value="Continue"/>
						<input type="button" class="btn" id="test-ports-ok" value="Test ports are OK"/>
					</div>
				</div>
				<!-- Enable port forwarding with UPnP -->
				<div class="ncp-hidden" id="port-forward">
					<p class="instructions">
						Your public ports are closed. Click "Forward Ports" to forward them with UPnP. 
						<br>
						You need UPnP enabled on your Router for this. It is recomended that you disable it after you forward, them for security reasons.
					</p>
					<div class="buttons-area">
						<input type="button" class="btn" id="port-forward-run" value="Port Forward"/>
						<input type="button" class="btn" id="port-forward-ok" value="Port Forwarding OK"/>
						<input type="button" class="btn" id="port-forward-error" value="Port Forwarding Error"/>
					</div>
				</div>
				<!-- Throw error message when test after UPnP fails -->
				<div class="ncp-hidden" id="port-forward-not-ok">
					<p class="instructions" style="color: red">
						Port forwarding didn"t work with UPnP. You have to manually enable port forwarding from your Router. After this run Test Ports again.
					</p>
				</div>	
			</div>
		<!-- Tab 4 content - DDNS -->
			<div class="tab-pane" id="tab4">
				<div class="ncp-tab-pane">
					<p class="instructions">
						A DDNS service will keep updated your DNS record every time your Public IP changes. If you don"t have a Domain name, you can get a sub-Domain name for free. Do you want to enable a DDNS client?
						<br>
						You need to have a FreeDNS or No-IP account.
					</p>
					<div class="buttons-area">
						<input type="button" class="btn" id="ddns-yes" value="Yes"/>
						<input type="button" class="btn" id="ddns-skip" value="No"/>
					</div>
					<!-- Choose DDNS client -->
					<div class="ncp-hidden" id="choose-ddns">
						<p class="instructions">
						Choose a client.
						</p>
						<div class="buttons-area">
							<input type="button" class="btn" id="ddns-freedns" value="FreeDNS"/>
							<input type="button" class="btn" id="ddns-noip" value="No-IP"/>
						</div>	
					</div>
					<!-- Configure FreeDNS -->
					<div class="ncp-hidden" id="freedns">
						<p class="instructions">
							Fill the input area for FreeDNS.
						</p>
						<div class="buttons-area">
							<form class="ddns-form">
								<p>Domain
									<input type="text" id="freedns-domain" placeholder="Domain">
								</p>	
								<p>Update Hash
									<input type="text" id="freedns-hash" placeholder="Update Hash">
								</p>
								<p>Update Interval
								<input type="text" id="freedns-time" placeholder="Update Interval">
								</p>
							</form>
							<input type="button" class="btn" id="ddns-enable-freedns" value="Enable FreeDNS"/>
						</div>
					</div>
					<!-- Configure No-IP -->	
					<div class="ncp-hidden" id="noip">
						<p class="instructions">
						Fill in the input area for No-IP.
						</p>
						<div class="buttons-area">
							<div class="ddns-form">
								<form>
									<p>User
									<input type="text" id="noip-user" placeholder="User">
									</p>
									<p>Password
									<input type="text" id="noip-password" placeholder="Password">
									</p>
									<p>Domain
									<input type="text" id="noip-domain" placeholder="Domain">
									</p>
									<p>Time
									<input type="text" id="noip-time" placeholder="Time">
									</p>
								</form>
							</div>	
							<input type="button" class="btn" id="ddns-enable-noip" value="Enable No-IP"/>
						</div>
					</div>
				</div>
			</div>
			<!-- Tab 5 content - Finish -->
			<div class="tab-pane" id="tab5">
				<div class="ncp-tab-pane">
					<p class="instructions">
						You now have NextCloudPi configured!</p>
				</div>		
			</div>
		</div>
		<!-- Navigation buttons -->
	<ul class="pager wizard" id="ncp-pager">
		<li class="previous first" style="display:none;"><a href="#">First</a></li>
		<li class="previous"><a href="#">Previous</a></li>
		<li class="next last" style="display:none;"><a href="#">Last</a></li>
		<li class="next"><a href="#">Next</a></li>
	</ul>
</div>

<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="JS/jquery.bootstrap.wizard.js"></script>
<script src="JS/wizard.js"></script>
</body>
</html>