Skip to content

Commit

Permalink
chore: prettier format
Browse files Browse the repository at this point in the history
  • Loading branch information
awwpotato committed Oct 16, 2024
1 parent 21176fa commit 5117623
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 26 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,22 @@ name: Rust

on:
push:
branches: [ "**" ]
branches: ["**"]
pull_request:
branches: [ "main" ]
branches: ["main"]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Check formating
run: cargo fmt --check
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Check formating
run: cargo fmt --check
Binary file modified bun.lockb
Binary file not shown.
13 changes: 6 additions & 7 deletions templates/pulse_schedule.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<head>
<style>
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500;700&display=swap");
Expand Down Expand Up @@ -35,18 +35,17 @@
let html = "";
if (upmatches.length == 0 || upmatches == undefined) {
html = data.team_key + " does not have any upcoming matches";
nextup.innerHTML = data.team_key + " does not have any upcoming matches";
nextup.innerHTML =
data.team_key + " does not have any upcoming matches";
} else {
for (let i = 0; i < upmatches.length; i++) {
html +=
upmatches[i]["label"] + ": " + upmatches[i]["status"];
html += upmatches[i]["label"] + ": " + upmatches[i]["status"];
html += "<br>";
}
}
upmatch.innerHTML = html;
nextMatch = (upmatches.length > 0)
? upmatches[0]
: "No upcomming matches";
nextMatch =
upmatches.length > 0 ? upmatches[0] : "No upcomming matches";
let nextColor = "ERROR";
for (let i = 0; i < nextMatch["blueTeams"].length; i++) {
if (nextMatch["blueTeams"][i] == data.team_key) {
Expand Down
21 changes: 12 additions & 9 deletions templates/pulsemain.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,18 @@
const response = await fetch("/getnexusdata");
let data = await response.json();
upmatch.innerHTML = data["matchInfo"];
announcements.innerHTML = (data["announcements"].length > 0)
? data["announcements"]
: "There are no announcements at this time";
requests.innerHTML = (data["partsRequests"].length > 0)
? data["partsRequests"][0]
: "There are no part requests at this time";
nextup.innerHTML = (data["nowQueuing"] != null)
? "Now Queuing: " + data["nowQueuing"]
: "There are currently no matches queuing";
announcements.innerHTML =
data["announcements"].length > 0
? data["announcements"]
: "There are no announcements at this time";
requests.innerHTML =
data["partsRequests"].length > 0
? data["partsRequests"][0]
: "There are no part requests at this time";
nextup.innerHTML =
data["nowQueuing"] != null
? "Now Queuing: " + data["nowQueuing"]
: "There are currently no matches queuing";
}
async function getStatBotData() {
console.log("Stat bot data");
Expand Down

0 comments on commit 5117623

Please sign in to comment.