Compare commits

..
Author SHA1 Message Date
Typosaurus feb1963aad ticket #93 attempt 1 2026-07-19 21:08:41 +00:00
4 changed files with 4 additions and 11 deletions
File diff suppressed because one or more lines are too long
-5
View File
@@ -172,7 +172,6 @@
text-align: left;
cursor: pointer;
overflow: hidden;
touch-action: manipulation;
}
.poll-option[disabled] {
@@ -183,10 +182,6 @@
border-color: var(--border-light);
}
.poll-option:not([disabled]):active {
background-color: var(--bg-card-hover);
}
.poll-option.chosen {
border-color: var(--accent);
}
+2 -4
View File
@@ -5,8 +5,7 @@ import { OptimisticAction } from "./OptimisticAction.js";
export class PollManager extends OptimisticAction {
constructor() {
super();
this.container = null;
document.addEventListener("pointerdown", (event) => this.onClick(event));
document.addEventListener("click", (event) => this.onClick(event));
document.addEventListener("submit", (event) => this.onSubmit(event), true);
}
@@ -43,8 +42,7 @@ export class PollManager extends OptimisticAction {
}
const pollUid = poll.dataset.pollUid;
const optionUid = option.dataset.optionUid;
this.container = poll;
await this.submit(`/polls/${pollUid}/vote`, { option_uid: optionUid }, this.container, (result) => this.render(poll, result));
await this.submit(`/polls/${pollUid}/vote`, { option_uid: optionUid }, null, (result) => this.render(poll, result));
}
render(poll, result) {
+2 -1
View File
@@ -4,7 +4,8 @@ version = "1.0.0"
description = "DevPlace - The Developer Social Network"
requires-python = ">=3.12"
dependencies = [
"fastapi",
"fastapi>=0.110.0",
"starlette>=0.37.0",
"uvicorn[standard]",
"jinja2",
"python-multipart",