-
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.
* feat: remove express dependency by reimplementing the parts I need * lint: improve rules * feat: add prettier and format everything * fix: * lint: Co-authored-by: Michael Salaverry <[email protected]>
- Loading branch information
1 parent
082133f
commit 183eb4e
Showing
28 changed files
with
1,294 additions
and
452 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 |
---|---|---|
@@ -1,20 +1,22 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"commonjs": true, | ||
"es2021": true, | ||
"node": true | ||
}, | ||
"extends": [ | ||
"google" | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": 12, | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"no-unused-vars": "off", | ||
"require-jsdoc": "off", | ||
"max-len": "warn" | ||
} | ||
"env": { | ||
"browser": true, | ||
"commonjs": true, | ||
"es2021": true, | ||
"node": true, | ||
"jest/globals": true, | ||
"cypress/globals": true | ||
}, | ||
"extends": ["eslint:recommended", "google"], | ||
"parserOptions": { | ||
"ecmaVersion": 12, | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"no-unused-vars": "off", | ||
"require-jsdoc": "off", | ||
"no-inner-declarations": "off", | ||
"max-len": "warn" | ||
}, | ||
"plugins": ["cypress", "jest"] | ||
} |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Deploy from main branch | |
|
||
on: | ||
push: | ||
branches: [ main ] | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
|
Empty file.
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,65 +1,78 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Admin of Queue</title> | ||
<script | ||
defer | ||
src="https://cdn.jsdelivr.net/gh/google/[email protected]/js/src/openlocationcode.min.js" | ||
integrity="sha256-VLEhs9CPhP4nrGyllTmF3KPGi04HVq5gFGKxGetzkYY=" | ||
crossorigin="anonymous" | ||
></script> | ||
<link | ||
rel="stylesheet" | ||
href="https://cdn.jsdelivr.net/npm/[email protected]/mvp.css" | ||
integrity="sha256-WDlAJ4pTJXGoGscyx2aoJBdb4wYUljMrgaY3PRG936o=" | ||
crossorigin="anonymous" | ||
/> | ||
<script type="module" src="./admin.js"></script> | ||
<script type="module" src="./user.js"></script> | ||
</head> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Admin of Queue</title> | ||
<script defer src="https://cdn.jsdelivr.net/gh/google/[email protected]/js/src/openlocationcode.min.js" | ||
integrity="sha256-VLEhs9CPhP4nrGyllTmF3KPGi04HVq5gFGKxGetzkYY=" crossorigin="anonymous"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/mvp.css" | ||
integrity="sha256-WDlAJ4pTJXGoGscyx2aoJBdb4wYUljMrgaY3PRG936o=" crossorigin="anonymous"> | ||
<script type="module" src="./admin.js"></script> | ||
<script type="module" src="./user.js"></script> | ||
</head> | ||
|
||
<body> | ||
<p>HisoonNumber</p> | ||
<main> | ||
<section id="position-section"> | ||
<aside> | ||
<h3>Current head of the queue</h3> | ||
<p id="userIdContainer">UserId: <span id="userId">N/A</span></p> | ||
</aside> | ||
</section> | ||
<section> | ||
<p> | ||
<button id="current-user-done">Current user done</button> | ||
<button id="refresh-queue">Refresh</button> | ||
</p> | ||
</section> | ||
<section> | ||
<aside> | ||
<p id="queueLengthContainer">Queue Length: <span id="queueLengthCount">N/A</span> | ||
<body> | ||
<p>HisoonNumber</p> | ||
<main> | ||
<section id="position-section"> | ||
<aside> | ||
<h3>Current head of the queue</h3> | ||
<p id="userIdContainer">UserId: <span id="userId">N/A</span></p> | ||
</aside> | ||
</section> | ||
<section> | ||
<p> | ||
<button id="current-user-done">Current user done</button> | ||
<button id="refresh-queue">Refresh</button> | ||
</p> | ||
<p id="locationContainer">Location: <a id="location">N/A</a></p> | ||
<p id="shareLink"></p> | ||
</aside> | ||
</section> | ||
<section> | ||
<form action=""> | ||
<label for="edit-admin-message">Edit Admin Message:</label></summary> | ||
<textarea name="edit-admin-message" rows="8" | ||
placeholder="Use this form to give your queue users some details on what this queue is for, what to do when it is their turn, and who you are." | ||
id="admin-message" | ||
spellcheck="true" maxlength="1000"></textarea> | ||
<button id="submit-admin-message" type="button">update admin message</button> | ||
</form> | ||
</section> | ||
<style> | ||
body { | ||
text-align: center; | ||
} | ||
|
||
textarea[name="edit-admin-message"] { | ||
text-overflow: ellipsis; | ||
width: 90%; | ||
max-width: 90%; | ||
min-width: 90%; | ||
} | ||
</style> | ||
<footer><a class="done">Quit queue admin</a></footer> | ||
</main> | ||
</body> | ||
</section> | ||
<section> | ||
<aside> | ||
<p id="queueLengthContainer"> | ||
Queue Length: <span id="queueLengthCount">N/A</span> | ||
</p> | ||
<p id="locationContainer">Location: <a id="location">N/A</a></p> | ||
<p id="shareLink"></p> | ||
</aside> | ||
</section> | ||
<section> | ||
<form action=""> | ||
<label for="edit-admin-message">Edit Admin Message:</label> | ||
<textarea | ||
name="edit-admin-message" | ||
rows="8" | ||
placeholder="Use this form to give your queue users some details on what this queue is for, what to do when it is their turn, and who you are." | ||
id="admin-message" | ||
spellcheck="true" | ||
maxlength="1000" | ||
></textarea> | ||
<button id="submit-admin-message" type="button"> | ||
update admin message | ||
</button> | ||
</form> | ||
</section> | ||
<style> | ||
body { | ||
text-align: center; | ||
} | ||
|
||
</html> | ||
textarea[name="edit-admin-message"] { | ||
text-overflow: ellipsis; | ||
width: 90%; | ||
max-width: 90%; | ||
min-width: 90%; | ||
} | ||
</style> | ||
<footer><a class="done">Quit queue admin</a></footer> | ||
</main> | ||
</body> | ||
</html> |
Oops, something went wrong.