-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
basic settings opening and settings button/pfp
- Loading branch information
Showing
23 changed files
with
1,526 additions
and
125 deletions.
There are no files selected for viewing
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,18 +1,19 @@ | ||
<div id = "failure"></div> | ||
<script> | ||
(() => { | ||
const { auth } = nightwatch; | ||
document.getElementById("failure").innerHTML = ` | ||
<h5>Login Failure</h5> | ||
<hr> | ||
<p> | ||
The authentication server you use (${nightwatch.auth_server}) has failed to authenticate you. <br> | ||
Error details: <code>${nightwatch._error.message}</code> | ||
The authentication server you use (${auth.auth_server}) has failed to authenticate you. <br> | ||
Error details: <code>${auth._error.message}</code> | ||
</p> | ||
<div class = "d-flex justify-content-end gap-2"> | ||
<button class = "btn btn-secondary" onclick = "load_frame_as_modal('settings');">Settings</button> | ||
<button class = "btn btn-danger" onclick = "load_frame('auth/login');">Relogin</button> | ||
</div> | ||
`; | ||
delete nightwatch._error; | ||
delete auth._error; | ||
})(); | ||
</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 |
---|---|---|
@@ -1,18 +1,19 @@ | ||
<div id = "failure"></div> | ||
<script> | ||
(() => { | ||
const { auth } = nightwatch; | ||
document.getElementById("failure").innerHTML = ` | ||
<h5>Network Failure</h5> | ||
<hr> | ||
<p> | ||
Nightwatch was unable to connect to ${nightwatch.auth_server} to authenticate you. <br> | ||
Nightwatch was unable to connect to ${auth.server} to authenticate you. <br> | ||
Check the console (<code>Ctrl+Shift+I</code>) to find out why. | ||
</p> | ||
<div class = "d-flex justify-content-end gap-2"> | ||
<button class = "btn btn-secondary" onclick = "load_frame_as_modal('settings');">Settings</button> | ||
<button class = "btn btn-danger" onclick = "main_login();">Retry</button> | ||
</div> | ||
`; | ||
delete nightwatch._error; | ||
delete auth._error; | ||
})(); | ||
</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
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,10 +1,30 @@ | ||
<div> | ||
<h5>Settings</h5> | ||
<h5>Client Settings</h5> | ||
<hr> | ||
<p>This is eventually where settings will go.</p> | ||
<div id = "settings-container"> | ||
<div class = "d-flex justify-content-between"> | ||
<p>Auth Server</p> | ||
<input value = "auth.iipython.dev"> | ||
</div> | ||
</div> | ||
<hr> | ||
<div class = "d-flex justify-content-end gap-2"> | ||
<button class = "btn btn-secondary" onclick = "close_modal();">Close</button> | ||
<button class = "btn btn-success" onclick = "close_modal();">Save</button> | ||
</div> | ||
</div> | ||
<!-- <script> | ||
(() => { | ||
const settings = [ | ||
{ | ||
id: "auth_server", | ||
name: "Auth Server", | ||
html: `<input>` | ||
} | ||
] | ||
for (const setting of settings) { | ||
const element = document.createElement("div"); | ||
element.classList.add("d-flex justify-content-end") | ||
} | ||
})(); | ||
</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
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.