Skip to content

Commit

Permalink
Feature flags, other small improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
Syfaro committed Feb 7, 2024
1 parent 7a64ca1 commit 7108d01
Show file tree
Hide file tree
Showing 11 changed files with 485 additions and 400 deletions.
62 changes: 62 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ chrono = { version = "0.4", features = ["serde"] }
clap = { version = "4", features = ["derive", "env", "cargo", "wrap_help"] }
dotenv = { version = "0.15", optional = true }
egg-mode = "0.16"
enum-map = "~2.0.1"
faktory = "0.12"
futures = "0.3"
hex = "0.4"
Expand Down Expand Up @@ -84,7 +85,7 @@ furaffinity-rs = { git = "https://github.com/Syfaro/furaffinity-rs.git" }
fuzzysearch = { git = "https://github.com/Syfaro/fuzzysearch-rs.git", features = ["trace", "local_hash"] }
tgbotapi = { git = "https://github.com/Syfaro/tgbotapi-rs.git" }

foxlib = { git = "https://github.com/Syfaro/foxlib.git", features = ["jobs"] }
foxlib = { git = "https://github.com/Syfaro/foxlib.git", features = ["jobs", "flags", "flags-openssl"] }
fuzzysearch-common = { git = "https://github.com/Syfaro/fuzzysearch.git", features = ["queue"] }

[dependencies.sqlx]
Expand Down
7 changes: 7 additions & 0 deletions assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,13 @@ function updateRelativeTimes() {

updateRelativeTimes();

[...document.querySelectorAll('.absolute-time[data-timestamp]')].forEach((elem) => {
const timestamp = parseInt(elem.dataset.timestamp, 10);
const date = new Date(timestamp * 1000);

elem.textContent = dtf.format(date);
});

[...document.querySelectorAll('input[type=file]')].forEach((input) => {
input.addEventListener('change', () => {
const uploadButton = document.querySelector(input.dataset.uploadButton);
Expand Down
19 changes: 0 additions & 19 deletions queries/linked_account/move_media_to_delete.sql

This file was deleted.

Loading

0 comments on commit 7108d01

Please sign in to comment.