diff --git a/twisted/twisted_site/ari.py b/twisted/twisted_site/ari.py
index 50b1ed7..4456750 100644
--- a/twisted/twisted_site/ari.py
+++ b/twisted/twisted_site/ari.py
@@ -97,7 +97,7 @@ def send_ship(ship: ProjectShip) -> None:
"email": ship.project.user.email, # pyrefly: ignore[missing-attribute]
"name": ship.project.user.profile.slack_username, # pyrefly: ignore[missing-attribute]
"slack_id": ship.project.user.profile.slack_id, # pyrefly: ignore[missing-attribute]
- "program_hours": untracked_time / 60,
+ "program_hours": 0,
}
title = ship.project.project_name
@@ -124,8 +124,8 @@ def send_ship(ship: ProjectShip) -> None:
content = f"# Journal type: {journal.get_type_display()}\n\n{journal.content}" # ty:ignore[unresolved-attribute] # pyright: ignore[reportAttributeAccessIssue]
journals.append(
{
- "at": journal.created_at.isoformat(),
- "minutes": journal.reduced_minutes,
+ "at": journal.created_at.isoformat(), # ty: ignore[unresolved-attribute]
+ "minutes": int(journal.reduced_minutes), # ty: ignore[invalid-argument-type]
"text": content,
"markdown": content,
},
@@ -144,7 +144,7 @@ def send_ship(ship: ProjectShip) -> None:
"shipped_at": shipped_at,
"thumbnail_url": thumbnail_url,
"hackatime_projects": hackatime_projects,
- "evidence": ["commits", "elapsed", "devlog"],
+ "evidence": ["devlog"],
"journals": journals,
"meta": meta,
},
diff --git a/twisted/twisted_site/static/audio/silence.mp3 b/twisted/twisted_site/static/audio/silence.mp3
new file mode 100644
index 0000000..482395f
Binary files /dev/null and b/twisted/twisted_site/static/audio/silence.mp3 differ
diff --git a/twisted/twisted_site/static/audio/twistedly.mp3 b/twisted/twisted_site/static/audio/twistedly.mp3
new file mode 100644
index 0000000..18137c7
Binary files /dev/null and b/twisted/twisted_site/static/audio/twistedly.mp3 differ
diff --git a/twisted/twisted_site/static/audio/twistedly.wav b/twisted/twisted_site/static/audio/twistedly.wav
new file mode 100644
index 0000000..1b4edd0
Binary files /dev/null and b/twisted/twisted_site/static/audio/twistedly.wav differ
diff --git a/twisted/twisted_site/templates/client/dashboard.html b/twisted/twisted_site/templates/client/dashboard.html
index 01a3ea6..759893c 100644
--- a/twisted/twisted_site/templates/client/dashboard.html
+++ b/twisted/twisted_site/templates/client/dashboard.html
@@ -50,7 +50,7 @@
Referrals
{% comment %}
-
-
-
00:00 AM
@@ -159,6 +134,219 @@
+
+
+
Twistedly
+
Cisco Disco
+
+
+
+
+
+
+
+
+
+
+
+
@@ -557,93 +745,6 @@
updateClock();
setInterval(updateClock, 1000);
- const music = document.getElementById("bg-music");
- const savedTime = parseFloat(sessionStorage.getItem("musicTime") || "0");
- const wasPlaying = sessionStorage.getItem("musicPlaying") === "true";
- if (savedTime) music.currentTime = savedTime;
-
- let audioCtx,
- analyser,
- dataArray,
- sourceConnected = false;
- const canvas = document.getElementById("spectrum");
- const ctx = canvas ? canvas.getContext("2d") : null;
-
- function initAudioGraph() {
- if (sourceConnected) return;
- const AC = window.AudioContext || window.webkitAudioContext;
- if (!AC) return;
- audioCtx = new AC();
- const source = audioCtx.createMediaElementSource(music);
- analyser = audioCtx.createAnalyser();
- analyser.fftSize = 64;
- source.connect(analyser);
- analyser.connect(audioCtx.destination);
- dataArray = new Uint8Array(analyser.frequencyBinCount);
- sourceConnected = true;
- drawSpectrum();
- }
-
- function playMusic() {
- initAudioGraph();
- if (audioCtx && audioCtx.state === "suspended") audioCtx.resume();
- music.play().catch(() => {});
- }
-
- function toggleMusic() {
- if (music.paused) {
- playMusic();
- } else {
- music.pause();
- }
- }
-
- if (wasPlaying) {
- playMusic();
- const resumeOnce = () => {
- playMusic();
- document.removeEventListener("pointerdown", resumeOnce);
- document.removeEventListener("keydown", resumeOnce);
- };
- document.addEventListener("pointerdown", resumeOnce, {
- once: true
- });
- document.addEventListener("keydown", resumeOnce, {
- once: true
- });
- }
-
- setInterval(() => {
- sessionStorage.setItem("musicTime", music.currentTime);
- sessionStorage.setItem("musicPlaying", (!music.paused).toString());
- }, 400);
- window.addEventListener("beforeunload", () => {
- sessionStorage.setItem("musicTime", music.currentTime);
- sessionStorage.setItem("musicPlaying", (!music.paused).toString());
- });
-
- function drawSpectrum() {
- if (!ctx) return;
- requestAnimationFrame(drawSpectrum);
- ctx.fillStyle = "#1E072F";
- ctx.fillRect(0, 0, canvas.width, canvas.height);
- if (!analyser || music.paused) return;
- analyser.getByteFrequencyData(dataArray);
- const bars = 8,
- barWidth = canvas.width / bars,
- pixel = 3;
- for (let i = 0; i < bars; i++) {
- const value = dataArray[i] / 255;
- const barHeight = Math.floor((value * canvas.height) / pixel) * pixel;
- for (let y = 0; y < barHeight; y += pixel) {
- const ratio = y / canvas.height;
- ctx.fillStyle = ratio > 0.6 ? "#CAB3E1" : ratio > 0.3 ? "#8364A2" : "#5A4471";
- ctx.fillRect(i * barWidth + 1, canvas.height - y - pixel, barWidth - 2, pixel - 1);
- }
- }
- }
- drawSpectrum();
-
setTimeout(() => {
console.log(
'%cConsole?',
diff --git a/twisted/twisted_site/templates/client/osbase.html b/twisted/twisted_site/templates/client/osbase.html
index d0afb28..6d3f65b 100644
--- a/twisted/twisted_site/templates/client/osbase.html
+++ b/twisted/twisted_site/templates/client/osbase.html
@@ -27,6 +27,8 @@
{% endblock css %}
{% block js %}
{% endblock js %}
+ {% block extra_stuff %}
+ {% endblock extra_stuff %}