-
Notifications
You must be signed in to change notification settings - Fork 0
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 #21 from devilcove/tweaks
Tweaks
- Loading branch information
Showing
20 changed files
with
134 additions
and
121 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 |
---|---|---|
|
@@ -4,4 +4,5 @@ test.db | |
timetraced | ||
timetrace | ||
coverage.out | ||
c.out | ||
c.out | ||
experiment/* |
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
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,30 +1,52 @@ | ||
{{define "config"}} | ||
<h1>Configuration</h1> | ||
<form hx-post="/setConfig" hx-target="#content"> | ||
<p><label>Theme</label> | ||
<select name="theme"> | ||
<option>indigo</option> | ||
<option>red</option> | ||
<option>pink</option> | ||
<option>purple</option> | ||
<option>blue</option> | ||
<option>cyan</option> | ||
<option>teal</option> | ||
<option>khaki</option> | ||
<option>blue-grey</option> | ||
<option>grey</option> | ||
<option>black</option> | ||
</select></p> | ||
<p><label>Font </label> | ||
<select name="font"> | ||
<option>Roboto</option> | ||
<option>Montserrat</option> | ||
<option>Lato</option> | ||
<option>Ubuntu</option> | ||
<option>Tangerine</option> | ||
</select></p> | ||
<p><button class="w3-button w3-theme-dark w3-padding large" type="button" hx-get="/" hx-target="#main">Cancel</button> | ||
<button class="w3-button w3-theme-dark w3-padding large" type="submit">Submit</button></p> | ||
</form> | ||
<br><br><br><br><br> | ||
<div class="w3-row"> | ||
<div class="w3-third"><br></div> | ||
<div class="w3-third"> | ||
<h1>Configuration</h1> | ||
<form hx-post="/config" hx-target="#main"> | ||
<p><label>Theme</label> | ||
<select name="theme"> | ||
<option>indigo</option> | ||
<option>red</option> | ||
<option>pink</option> | ||
<option>purple</option> | ||
<option>blue</option> | ||
<option>cyan</option> | ||
<option>teal</option> | ||
<option>khaki</option> | ||
<option>blue-grey</option> | ||
<option>grey</option> | ||
<option>black</option> | ||
</select> | ||
</p> | ||
<p><label>Font </label> | ||
<select name="font"> | ||
<option>Roboto</option> | ||
<option>Montserrat</option> | ||
<option>Lato</option> | ||
<option>Ubuntu</option> | ||
<option>Tangerine</option> | ||
</select> | ||
</p> | ||
<p><label>Refresh Rate (minutes)</label> | ||
<select name="refresh"> | ||
<option>1</option> | ||
<option>2</option> | ||
<option>3</option> | ||
<option>4</option> | ||
<option selected>5</option> | ||
<option>6</option> | ||
<option>7</option> | ||
<option>8</option> | ||
<option>9</option> | ||
<option>10</option> | ||
</select> | ||
</p> | ||
<p><button class="w3-button w3-theme-dark w3-padding large" type="button" hx-get="/" | ||
hx-target="#main">Cancel</button> | ||
<button class="w3-button w3-theme-dark w3-padding large" type="submit">Submit</button> | ||
</p> | ||
</form> | ||
</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
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 was deleted.
Oops, something went wrong.
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,6 +1,7 @@ | ||
package models | ||
|
||
type Config struct { | ||
Theme string `json:"theme" form:"theme"` | ||
Font string `json:"font" form:"font"` | ||
Theme string `json:"theme" form:"theme"` | ||
Font string `json:"font" form:"font"` | ||
Refresh int `json:"refresh" form:"refresh"` | ||
} |
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
Oops, something went wrong.