Fixed a few more linter errors
This commit is contained in:
@ -3,4 +3,4 @@ import AnimeNotifier from "scripts/AnimeNotifier"
|
||||
// Reload content of current page
|
||||
export function reloadContent(arn: AnimeNotifier) {
|
||||
return arn.reloadContent()
|
||||
}
|
||||
}
|
||||
|
@ -30,4 +30,4 @@ export async function diff(arn: AnimeNotifier, element: HTMLElement) {
|
||||
} catch(err) {
|
||||
arn.statusMessage.showError(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -67,4 +67,4 @@ export async function calendarShowAddedAnimeOnly(arn: AnimeNotifier, element: HT
|
||||
} catch(err) {
|
||||
arn.statusMessage.showError(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -175,4 +175,4 @@ async function setThreadLock(arn: AnimeNotifier, element: HTMLButtonElement, sta
|
||||
} catch(err) {
|
||||
arn.statusMessage.showError(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -32,4 +32,4 @@ export async function leave(arn: AnimeNotifier, element: HTMLElement) {
|
||||
} catch(err) {
|
||||
arn.statusMessage.showError(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -52,4 +52,4 @@ export async function loadMore(arn: AnimeNotifier, button: HTMLButtonElement) {
|
||||
arn.loading(false)
|
||||
button.disabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Desktop app installation
|
||||
export function installApp() {
|
||||
alert("Open your browser menu > 'Install Anime Notifier'.")
|
||||
}
|
||||
}
|
||||
|
@ -24,4 +24,4 @@ export async function unlike(arn: AnimeNotifier, element: HTMLElement) {
|
||||
} catch(err) {
|
||||
arn.statusMessage.showError(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -32,4 +32,4 @@
|
||||
// let chart = new window["google"].visualization.GeoChart(element)
|
||||
// console.log(element, data)
|
||||
// chart.draw(data, options)
|
||||
// }
|
||||
// }
|
||||
|
@ -41,4 +41,4 @@ export async function markNotificationsAsSeen(arn: AnimeNotifier) {
|
||||
|
||||
// Update notifications
|
||||
arn.reloadContent()
|
||||
}
|
||||
}
|
||||
|
@ -52,4 +52,4 @@ export async function deleteObject(arn: AnimeNotifier, button: HTMLButtonElement
|
||||
} catch(err) {
|
||||
arn.statusMessage.showError(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -22,4 +22,4 @@ export async function unpublish(arn: AnimeNotifier, button: HTMLButtonElement) {
|
||||
} catch(err) {
|
||||
arn.statusMessage.showError(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -200,4 +200,4 @@ export function addNumber(arn: AnimeNotifier, element: HTMLElement) {
|
||||
|
||||
input.value = newValue.toString()
|
||||
return save(arn, input)
|
||||
}
|
||||
}
|
||||
|
@ -83,4 +83,4 @@ export function buyItem(arn: AnimeNotifier, button: HTMLElement) {
|
||||
.then(() => arn.statusMessage.showInfo(`You bought ${itemName} for ${price} gems. Check out your inventory to confirm the purchase.`, 4000))
|
||||
.catch(err => arn.statusMessage.showError(err))
|
||||
.then(() => arn.loading(false))
|
||||
}
|
||||
}
|
||||
|
@ -4,4 +4,4 @@ import AnimeNotifier from "../AnimeNotifier"
|
||||
export function toggleSidebar(_: AnimeNotifier) {
|
||||
const sidebar = document.getElementById("sidebar") as HTMLElement
|
||||
sidebar.classList.toggle("sidebar-visible")
|
||||
}
|
||||
}
|
||||
|
@ -3,4 +3,4 @@ import AnimeNotifier from "../AnimeNotifier"
|
||||
// Close status message
|
||||
export function closeStatusMessage(arn: AnimeNotifier) {
|
||||
arn.statusMessage.close()
|
||||
}
|
||||
}
|
||||
|
@ -186,4 +186,4 @@ function updateSideBarAvatar(url: string) {
|
||||
} else {
|
||||
location.reload()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -39,4 +39,4 @@ export function showMore(_: AnimeNotifier, showMoreElement: HTMLElement) {
|
||||
}
|
||||
|
||||
Diff.mutations.queue(() => showMoreElement.classList.add("show-more"))
|
||||
}
|
||||
}
|
||||
|
@ -64,4 +64,4 @@ export function toggleFullscreen(_: AnimeNotifier, button: HTMLElement) {
|
||||
} else {
|
||||
requestFullscreen.call(element)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -20,4 +20,4 @@ export * from "./SideBar"
|
||||
export * from "./StatusMessage"
|
||||
export * from "./Theme"
|
||||
export * from "./Upload"
|
||||
export * from "./Video"
|
||||
export * from "./Video"
|
||||
|
Reference in New Issue
Block a user