Rename the product Scrobbled
Display name only: UI, docs, API title, dashboards, hashtag and User-Agent. Identifiers (package, metrics, env vars, SCROBBLER_CONFIG) are unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9e4218f11b
commit
65ee13fa65
64 files changed
+130
-130
No files matched your search
+3
-3
@@ -1,4 +1,4 @@
|
||||
// Thin client for the Scrobbler /api/v1 JSON API.
|
||||
// Thin client for the Scrobbled /api/v1 JSON API.
|
||||
|
||||
const TOKEN_KEY = "scrobbler.token";
|
||||
|
||||
@@ -77,7 +77,7 @@ export async function api(path, { method = "GET", body, auth = true } = {}) {
|
||||
body: body === undefined ? undefined : JSON.stringify(body),
|
||||
});
|
||||
} catch {
|
||||
throw new ApiError(0, "network", `Can't reach the Scrobbler API at ${apiBase}. Check that it's running.`);
|
||||
throw new ApiError(0, "network", `Can't reach the Scrobbled API at ${apiBase}. Check that it's running.`);
|
||||
}
|
||||
|
||||
if (response.status === 401 && auth) {
|
||||
@@ -122,7 +122,7 @@ export function upload(path, formData, onProgress, method = "POST") {
|
||||
if (event.lengthComputable) onProgress?.(event.loaded / event.total);
|
||||
});
|
||||
xhr.addEventListener("error", () =>
|
||||
reject(new ApiError(0, "network", `Can't reach the Scrobbler API at ${apiBase}. Check that it's running.`)),
|
||||
reject(new ApiError(0, "network", `Can't reach the Scrobbled API at ${apiBase}. Check that it's running.`)),
|
||||
);
|
||||
xhr.addEventListener("load", () => {
|
||||
let data = null;
|
||||
|
||||
+1
-1
@@ -113,7 +113,7 @@ function renderSetup() {
|
||||
h("dt", {}, "Username"),
|
||||
h("dd", {}, h("code", {}, user.username)),
|
||||
h("dt", {}, "Password"),
|
||||
h("dd", {}, "Your Scrobbler password"),
|
||||
h("dd", {}, "Your Scrobbled password"),
|
||||
h("dt", {}, "Key and secret"),
|
||||
h("dd", {}, "From one of the apps above"),
|
||||
h("dt", {}, "API reference"),
|
||||
|
||||
@@ -38,7 +38,7 @@ export function publicPage() {
|
||||
}
|
||||
|
||||
function brand() {
|
||||
return h("a", { class: "brand", href: "index.html" }, h("span", { class: "brand-mark", "aria-hidden": "true" }), "Scrobbler");
|
||||
return h("a", { class: "brand", href: "index.html" }, h("span", { class: "brand-mark", "aria-hidden": "true" }), "Scrobbled");
|
||||
}
|
||||
|
||||
function nav(active) {
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ try {
|
||||
`/federation/profiles/${encodeURIComponent(username)}/posts/${encodeURIComponent(postId)}`,
|
||||
{ auth: false },
|
||||
);
|
||||
document.title = `${post.display_name} · Scrobbler`;
|
||||
document.title = `${post.display_name} · Scrobbled`;
|
||||
replace(
|
||||
root,
|
||||
h(
|
||||
|
||||
@@ -10,7 +10,7 @@ publicPage();
|
||||
|
||||
try {
|
||||
const profile = await api(`/federation/profiles/${encodeURIComponent(username)}`, { auth: false });
|
||||
document.title = `${profile.display_name} · Scrobbler`;
|
||||
document.title = `${profile.display_name} · Scrobbled`;
|
||||
const copy = h("button", { type: "button", class: "button button-quiet" }, "Copy handle");
|
||||
copy.addEventListener("click", async () => {
|
||||
try {
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@ if (!artist || !track) {
|
||||
}
|
||||
|
||||
function render(result) {
|
||||
document.title = `${result.track} · Scrobbler`;
|
||||
document.title = `${result.track} · Scrobbled`;
|
||||
const m = result.metadata;
|
||||
|
||||
const body = h(
|
||||
|
||||
Reference in new issue
Block a user