@ -0,0 +1,31 @@ |
|||||
|
echo "starting build process" |
||||
|
rm -rf build |
||||
|
mkdir build |
||||
|
|
||||
|
cd webServer |
||||
|
echo "building webServer" |
||||
|
go build |
||||
|
cp webServer ../build |
||||
|
cp -r templates ../build |
||||
|
cd .. |
||||
|
|
||||
|
cd listPadsImporter |
||||
|
echo "building listPadsImporter" |
||||
|
go build |
||||
|
cp listPadsImporter ../build |
||||
|
cd .. |
||||
|
|
||||
|
cd apiServer |
||||
|
echo "building apiServer" |
||||
|
go build |
||||
|
cp apiServer ../build |
||||
|
cd .. |
||||
|
|
||||
|
|
||||
|
cd cli |
||||
|
echo "building cli" |
||||
|
go build |
||||
|
cp cli ../build |
||||
|
cd .. |
||||
|
|
||||
|
echo "build process complete, all the necessary files are in the /build directory" |
@ -0,0 +1,18 @@ |
|||||
|
<ul class="list-group"> |
||||
|
{{range .Items}} {{if .IsDir}} |
||||
|
<br><br> |
||||
|
<nav aria-label="breadcrumb"> |
||||
|
<ol class="breadcrumb"> |
||||
|
<li class="breadcrumb-item active" aria-current="page"> |
||||
|
<a href="{{.Path}}"> |
||||
|
<i class="fas fa-folder"></i> {{.Name}} |
||||
|
</a> |
||||
|
</li> |
||||
|
</ol> |
||||
|
</nav> |
||||
|
|
||||
|
{{else}} |
||||
|
<a href="{{.Path}}" class="list-group-item"> |
||||
|
<i class="fas fa-file-alt"></i> {{.Name}} |
||||
|
</a> {{end}} {{end}} |
||||
|
</ul> |
@ -0,0 +1,98 @@ |
|||||
|
<!doctype html> |
||||
|
<html lang="en"> |
||||
|
|
||||
|
<head> |
||||
|
<!-- Required meta tags --> |
||||
|
<meta charset="utf-8"> |
||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
||||
|
|
||||
|
<!-- Bootstrap CSS --> |
||||
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous"> |
||||
|
|
||||
|
<style> |
||||
|
body { |
||||
|
word-wrap: break-word; |
||||
|
} |
||||
|
footer { |
||||
|
width:100%; |
||||
|
background: #38414f; |
||||
|
color: #bec0c4; |
||||
|
margin-top: 80px; |
||||
|
padding: 20px; |
||||
|
} |
||||
|
a:link { |
||||
|
color: #008ae6; |
||||
|
} |
||||
|
a:visited { |
||||
|
color: #008ae6; |
||||
|
} |
||||
|
a:hover { |
||||
|
color: #33adff; |
||||
|
} |
||||
|
</style> |
||||
|
|
||||
|
<title>padArchiver</title> |
||||
|
</head> |
||||
|
|
||||
|
<body> |
||||
|
<nav class="navbar navbar-expand-lg navbar-light bg-light"> |
||||
|
<a class="navbar-brand" href="/"> |
||||
|
<img src="https://seeklogo.com/images/G/go-logo-046185B647-seeklogo.com.png" height="30" class="d-inline-block align-top" alt=""> |
||||
|
padArchiver |
||||
|
</a> |
||||
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> |
||||
|
<span class="navbar-toggler-icon"></span> |
||||
|
</button> |
||||
|
|
||||
|
<div class="collapse navbar-collapse" id="navbarSupportedContent"> |
||||
|
<!--<ul class="navbar-nav mr-auto"> |
||||
|
<li class="nav-item active"> |
||||
|
<a class="nav-link" href="/">Home <span class="sr-only">(current)</span></a> |
||||
|
</li> |
||||
|
</ul>--> |
||||
|
</div> |
||||
|
<form class="form-inline my-2 my-lg-0"> |
||||
|
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search"> |
||||
|
<button class="btn btn-outline-info my-2 my-sm-0" type="submit">Search</button> |
||||
|
</form> |
||||
|
</nav> |
||||
|
|
||||
|
<br><br> |
||||
|
<div class="container"> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-3"> |
||||
|
{{.MenuContent}} |
||||
|
</div> |
||||
|
<div class="col-sm-9"> |
||||
|
<h3>{{.Title}}</h3> |
||||
|
<hr> {{.Content}} |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
<footer class="text-muted"> |
||||
|
<div class="container"> |
||||
|
<p class="float-right"> |
||||
|
<a href="#">Back to top</a> |
||||
|
</p> |
||||
|
<p> |
||||
|
padArchiver - webServer |
||||
|
</p> |
||||
|
<p> |
||||
|
Github: <a href="https://github.com/arnaucode/padArchiver" target="_blank">https://github.com/arnaucode/padArchiver</a> |
||||
|
</p> |
||||
|
</div> |
||||
|
</footer> |
||||
|
|
||||
|
<!-- Optional JavaScript --> |
||||
|
<!-- jQuery first, then Popper.js, then Bootstrap JS --> |
||||
|
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> |
||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js" integrity="sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ" crossorigin="anonymous"></script> |
||||
|
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js" integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm" crossorigin="anonymous"></script> |
||||
|
|
||||
|
<!-- font awesome icons --> |
||||
|
<script defer src="https://use.fontawesome.com/releases/v5.0.10/js/all.js" integrity="sha384-slN8GvtUJGnv6ca26v8EzVaR9DC58QEwsIk9q1QXdCU8Yu8ck/tL/5szYlBbqmS+" crossorigin="anonymous"></script> |
||||
|
</body> |
||||
|
|
||||
|
</html> |
@ -0,0 +1,7 @@ |
|||||
|
### Wellcome to the padArchiver. |
||||
|
Select one pad from the side menu to visualize. |
||||
|
|
||||
|
![golang logo](https://seeklogo.com/images/G/go-logo-046185B647-seeklogo.com.png) |
||||
|
|
||||
|
|
||||
|
This is the wellcome message, from the 'templates/wellcome.md' file. |
@ -1,91 +1,18 @@ |
|||||
<!doctype html> |
|
||||
<html lang="en"> |
|
||||
|
|
||||
<head> |
|
||||
<!-- Required meta tags --> |
|
||||
<meta charset="utf-8"> |
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
|
||||
|
|
||||
<!-- Bootstrap CSS --> |
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous"> |
|
||||
|
|
||||
<style> |
|
||||
footer { |
|
||||
width:100%; |
|
||||
background: #38414f; |
|
||||
color: #bec0c4; |
|
||||
margin-top: 80px; |
|
||||
padding: 20px; |
|
||||
} |
|
||||
</style> |
|
||||
|
|
||||
<title>padArchiver</title> |
|
||||
</head> |
|
||||
|
|
||||
<body> |
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-light"> |
|
||||
<a class="navbar-brand" href="/">padArchiver</a> |
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> |
|
||||
<span class="navbar-toggler-icon"></span> |
|
||||
</button> |
|
||||
|
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent"> |
|
||||
<ul class="navbar-nav mr-auto"> |
|
||||
<li class="nav-item active"> |
|
||||
<a class="nav-link" href="/">Home <span class="sr-only">(current)</span></a> |
|
||||
</li> |
|
||||
</ul> |
|
||||
</div> |
|
||||
</nav> |
|
||||
|
|
||||
|
<ul class="list-group"> |
||||
|
{{range .Items}} {{if .IsDir}} |
||||
<br><br> |
<br><br> |
||||
|
<nav aria-label="breadcrumb"> |
||||
|
<ol class="breadcrumb"> |
||||
|
<li class="breadcrumb-item active" aria-current="page"> |
||||
|
<a href="{{.Path}}"> |
||||
|
<i class="fas fa-folder"></i> {{.Name}} |
||||
|
</a> |
||||
|
</li> |
||||
|
</ol> |
||||
|
</nav> |
||||
|
|
||||
<div class="container"> |
|
||||
<div class="row"> |
|
||||
<div class="col-sm-2"></div> |
|
||||
<div class="col-sm-8"> |
|
||||
<h3>{{.PageTitle}}</h3> |
|
||||
<ul class="list-group"> |
|
||||
{{range .Items}} |
|
||||
{{if .IsDir}} |
|
||||
<br><br> |
|
||||
<nav aria-label="breadcrumb"> |
|
||||
<ol class="breadcrumb"> |
|
||||
<li class="breadcrumb-item active" aria-current="page"> |
|
||||
<a href="{{.Path}}">{{.Name}}</a> |
|
||||
</li> |
|
||||
</ol> |
|
||||
</nav> |
|
||||
|
|
||||
{{else}} |
|
||||
<a href="{{.Path}}" class="list-group-item">{{.Name}}</a> |
|
||||
{{end}} |
|
||||
{{end}} |
|
||||
</ul> |
|
||||
</div> |
|
||||
|
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
<footer> |
|
||||
<div class="container"> |
|
||||
<p class="float-right"> |
|
||||
<a href="#">Back to top</a> |
|
||||
</p> |
|
||||
<p> |
|
||||
padArchiver - webServer |
|
||||
</p> |
|
||||
<p> |
|
||||
Github: <a href="https://github.com/arnaucode/padArchiver" target="_blank">https://github.com/arnaucode/padArchiver</a> |
|
||||
</p> |
|
||||
</div> |
|
||||
</footer> |
|
||||
|
|
||||
<!-- Optional JavaScript --> |
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS --> |
|
||||
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> |
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js" integrity="sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ" crossorigin="anonymous"></script> |
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js" integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm" crossorigin="anonymous"></script> |
|
||||
</body> |
|
||||
|
|
||||
</html> |
|
||||
|
{{else}} |
||||
|
<a href="{{.Path}}" class="list-group-item"> |
||||
|
<i class="fas fa-file-alt"></i> {{.Name}} |
||||
|
</a> {{end}} {{end}} |
||||
|
</ul> |
@ -0,0 +1,7 @@ |
|||||
|
### Wellcome to the padArchiver. |
||||
|
Select one pad from the side menu to visualize. |
||||
|
|
||||
|
![golang logo](https://seeklogo.com/images/G/go-logo-046185B647-seeklogo.com.png) |
||||
|
|
||||
|
|
||||
|
This is the wellcome message, from the 'templates/wellcome.md' file. |