-
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.
- Loading branch information
OctoSpacc
committed
Oct 22, 2024
1 parent
700d4c8
commit a5cf31a
Showing
7 changed files
with
48 additions
and
14 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
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
GitInstanceUrl="https://gitlab.com" | ||
GitRepoThis="octtspacc/sitoctt" | ||
GitBranchThis="sitoctt-next" | ||
GitRepoAssets="octtspacc/sitoctt-assets" | ||
GitBranchAssets="main" |
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,10 +1,27 @@ | ||
+++ | ||
Hidden = true | ||
+++ | ||
<form> | ||
<p><label>Git Instance: <input type="url" name="instance"/></label></p> | ||
<p><label>Repository: <input type="text" name="repo"/></label></p> | ||
<p><label>Branch: <input type="text" name="branch"/></label></p> | ||
<p><label>Access Token: <input type="password" name="token"/></label></p> | ||
<form name="admin"> | ||
<fieldset name="git" disabled> | ||
<legend>Git Configuration</legend> | ||
<p><label>Instance URL: <input type="url" name="InstanceUrl"/></label></p> | ||
<p><label>Repository Path: <input type="text" name="RepoThis"/></label></p> | ||
<p><label>Branch Name: <input type="text" name="BranchThis"/></label></p> | ||
<p><label>Access Token: <input type="password" name="token" placeholder="***"/></label></p> | ||
</fieldset> | ||
</form> | ||
<style> form > p > label > input { float: right; } </style> | ||
<style> form[name="admin"] input { float: right; } </style> | ||
<script>(() => { | ||
const formEl = document.querySelector('form[name="admin"]'); | ||
const gitEl = formEl.querySelector('fieldset[name="git"]'); | ||
const gitData = (sitoctt.localStorage('gitAuth') || {}); | ||
for (const fieldEl of gitEl.querySelectorAll('input')) { | ||
fieldEl.placeholder ||= sitoctt.Props[`Git${fieldEl.name}`]; | ||
fieldEl.value = (gitData[fieldEl.name] || ''); | ||
fieldEl.oninput = fieldEl.onchange = fieldEl.onpaste = () => { | ||
gitData[fieldEl.name] = fieldEl.value; | ||
sitoctt.localStorage('gitAuth', gitData); | ||
}; | ||
} | ||
gitEl.disabled = false; | ||
})();</script> |
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 |
---|---|---|
|
@@ -75,4 +75,4 @@ | |
{{ $main_style = $style }} | ||
{{ end }} | ||
|
||
{{ return $main_style }} | ||
{{ return $main_style }} |
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