This repository has been archived by the owner on Feb 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from mattkasun/develop
V0.2
- Loading branch information
Showing
17 changed files
with
764 additions
and
538 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM golang:1.16-alpine | ||
WORKDIR / | ||
COPY *.go go.* ./ | ||
RUN GOOS=linux go build -v . | ||
ADD /images/* images/ | ||
ADD /html/* html/ | ||
CMD ["./netmaker-gui"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
{{define "buttonbar"}} | ||
<div class="w3-bar w3-blue"> | ||
<button class="w3-bar-item w3-button w3-blue" onclick="document.getElementById('NewNetwork').style.display='block'">Create Network</button> | ||
<button class="w3-bar-item w3-button"></button> | ||
<button class="w3-bar-item w3-button tablink w3-teal" onclick="openTab(event, 'Networks')">Network Details</button> | ||
<button class="w3-bar-item w3-button tablink" onclick="openTab(event, 'Nodes')">Node</button> | ||
<button class="w3-bar-item w3-button tablink" onclick="openTab(event, 'Keys')">Access Keys</button> | ||
<button class="w3-bar-item w3-button tablink" onclick="alert('Not Implemented Yet')">DNS</button> | ||
<button class="w3-bar-item w3-button tablink" onclick="openTab(event, 'ExtClient')">External Clients</button> | ||
|
||
<div class="w3-content w3-blue"> | ||
<button class="w3-bar-item w3-button"></button> | ||
<button class="w3-bar-item w3-button tablink w3-teal" onclick="openTab(event, 'Networks')">Network Details</button> | ||
<button class="w3-bar-item w3-button tablink" onclick="openTab(event, 'Nodes')">Node</button> | ||
<button class="w3-bar-item w3-button tablink" onclick="openTab(event, 'Keys')">Access Keys</button> | ||
<button class="w3-bar-item w3-button tablink" onclick="alert('Not Implemented Yet')">DNS</button> | ||
<button class="w3-bar-item w3-button tablink" onclick="openTab(event, 'ExtClient')">External Clients</button> | ||
</div> | ||
</div> | ||
|
||
|
||
{{/*NewNetwork*/}} | ||
<div id="NewNetwork" class="w3-modal"> | ||
<div class="w3-modal-content w3-card-4 animate-zoom w3-padding" style="width:50%"> | ||
<div class="w3-center"><br> | ||
<span onclick="document.getElementById('NewNetwork').style.display='none'" class="w3-button w3-xlarge w3-hover-red w3-display-topright" title="Close Modal">×</span> | ||
<div class="w3-modal-content w3-card-4 animate-zoom w3-padding" style="width:50%"> | ||
<div class="w3-center"><br> | ||
<span onclick="document.getElementById('NewNetwork').style.display='none'" class="w3-button w3-xlarge w3-hover-red w3-display-topright" title="Close Modal">×</span> | ||
|
||
<form class="w3-container" method=POST action="/create_network"> | ||
<div class="w3-section"> | ||
<label><b>Network Name</b></label> | ||
<input class="w3-input w3-border w3-margin-bottom" type="text" placeholder="newnetwork" name="name" required> | ||
<label><b>Address Range</b></label> | ||
<input class="w3-input w3-border" type="text" placeholder="10.100.100.0/24" name="address" required> | ||
<div class="w3-container w3-left-align"> | ||
<input class="w3-check" type="checkbox" name="dual" value="yes"> Use Dual Stack<br> | ||
<input class="w3-check" type="checkbox" name="local" value="yes"> Is Local<br> | ||
<input class="w3-check" type="checkbox" name="udp" value="yes"> Use UDP Hole Punching<br><br> | ||
</div> | ||
<button class="w3-button w3-block w3-green w3-section w3-padding" type="submit">Create Network</button> | ||
</div> | ||
</form> | ||
|
||
<div class="w3-container w3-border-top w3-padding-16 w3-light-grey"> | ||
<button onclick="document.getElementById('NewNetwork').style.display='none'" type="button" class="w3-button w3-red">Cancel</button> | ||
|
||
</div> | ||
|
||
<form class="w3-container" method=POST action="/create_network"> | ||
<div class="w3-section"> | ||
<label><b>Network Name</b></label> | ||
<input class="w3-input w3-border w3-margin-bottom" type="text" placeholder="newnetwork" name="name" required> | ||
<label><b>Address Range</b></label> | ||
<input class="w3-input w3-border" type="text" placeholder="10.100.100.0/24" name="address" required> | ||
<div class="w3-container w3-left-align"> | ||
<input class="w3-check" type="checkbox" name="dual" value="yes"> Use Dual Stack<br> | ||
<input class="w3-check" type="checkbox" name="local" value="yes"> Is Local<br> | ||
<input class="w3-check" type="checkbox" name="udp" value="yes"> Use UDP Hole Punching<br><br> | ||
</div> | ||
<button class="w3-button w3-block w3-green w3-section w3-padding" type="submit">Create Network</button> | ||
</div> | ||
</form> | ||
|
||
<div class="w3-container w3-border-top w3-padding-16 w3-light-grey"> | ||
<button onclick="document.getElementById('NewNetwork').style.display='none'" type="button" class="w3-button w3-red">Cancel</button> | ||
|
||
</div> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
|
||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{{define "buttonbar2"}} | ||
<div class="w3-sidebar w3-bar-block w3-card w3-animate-left" style="display:none" id="leftMenu"> | ||
<button onclick="document.getElementById('leftMenu').style.display='none';" class="w3-bar-item w3-button w3-large">Close ×</button> | ||
<a href="#" class="w3-bar-item w3-button">Link 1</a> | ||
<a href="#" class="w3-bar-item w3-button">Link 2</a> | ||
<a href="#" class="w3-bar-item w3-button">Link 3</a> | ||
</div> | ||
|
||
<div class="w3-sidebar w3-bar-block w3-card w3-animate-right" style="display:none;right:0;" id="rightMenu"> | ||
<button onclick="document.getElementById('rightMenu').style.display='none';" class="w3-bar-item w3-button w3-large">Close ×</button> | ||
<a href="#" class="w3-bar-item w3-button">Link 1</a> | ||
<a href="#" class="w3-bar-item w3-button">Link 2</a> | ||
<a href="#" class="w3-bar-item w3-button">Link 3</a> | ||
</div> | ||
|
||
<div class="w3-teal"> | ||
<button class="w3-button w3-teal w3-xlarge w3-left" onclick="document.getElementById('leftMenu').style.display='block';">☰</button> | ||
<button class="w3-button w3-teal w3-xlarge w3-right" onclick="document.getElementById('rightMenu').style.display='block';">☰</button> | ||
<div class="w3-container"> | ||
<h1>My Page</h1> | ||
</div> | ||
</div> | ||
|
||
<div class="w3-container"> | ||
<p>In this example, we demonstrate how to use two side navigations.</p> | ||
<p>We have created two "menu" buttons: one to open the side navigation from the left and one to open it from the right.</p> | ||
</div> | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.