aboutsummaryrefslogtreecommitdiff
path: root/client/js/views
diff options
context:
space:
mode:
authorShyam Sunder2021-11-29 18:44:20 -0500
committerShyam Sunder2021-11-29 18:44:20 -0500
commit9f95e9eb90258f77518f7f5d3d7421333ba28e34 (patch)
treedcf098994912f58fdd771ca80d19609d37c4f4bd /client/js/views
parent9b3123a8150faee660b4311d9d8c2c85a83b32b5 (diff)
client: linting
Diffstat (limited to 'client/js/views')
-rw-r--r--client/js/views/post_main_view.js5
-rw-r--r--client/js/views/post_upload_view.js4
-rw-r--r--client/js/views/posts_header_view.js5
-rw-r--r--client/js/views/user_tokens_view.js10
4 files changed, 10 insertions, 14 deletions
diff --git a/client/js/views/post_main_view.js b/client/js/views/post_main_view.js
index c38a933..5ef7f61 100644
--- a/client/js/views/post_main_view.js
+++ b/client/js/views/post_main_view.js
@@ -25,9 +25,8 @@ class PostMainView {
views.replaceContent(this._hostNode, sourceNode);
views.syncScrollPosition();
- const topNavigationNode = document.body.querySelector(
- "#top-navigation"
- );
+ const topNavigationNode =
+ document.body.querySelector("#top-navigation");
this._postContentControl = new PostContentControl(
postContainerNode,
diff --git a/client/js/views/post_upload_view.js b/client/js/views/post_upload_view.js
index 7fdd4a4..4f0f0bf 100644
--- a/client/js/views/post_upload_view.js
+++ b/client/js/views/post_upload_view.js
@@ -360,8 +360,8 @@ class PostUploadView extends events.EventTarget {
detail: {
uploadables: this._uploadables,
skipDuplicates: this._skipDuplicatesCheckboxNode.checked,
- alwaysUploadSimilar: this._alwaysUploadSimilarCheckboxNode
- .checked,
+ alwaysUploadSimilar:
+ this._alwaysUploadSimilarCheckboxNode.checked,
},
})
);
diff --git a/client/js/views/posts_header_view.js b/client/js/views/posts_header_view.js
index 7cbddf3..f64060d 100644
--- a/client/js/views/posts_header_view.js
+++ b/client/js/views/posts_header_view.js
@@ -253,9 +253,8 @@ class PostsHeaderView extends events.EventTarget {
e.target.classList.toggle("disabled");
const safety = e.target.getAttribute("data-safety");
let browsingSettings = settings.get();
- browsingSettings.listPosts[safety] = !browsingSettings.listPosts[
- safety
- ];
+ browsingSettings.listPosts[safety] =
+ !browsingSettings.listPosts[safety];
settings.save(browsingSettings, true);
this.dispatchEvent(
new CustomEvent("navigate", {
diff --git a/client/js/views/user_tokens_view.js b/client/js/views/user_tokens_view.js
index 68707f0..9ba9e7c 100644
--- a/client/js/views/user_tokens_view.js
+++ b/client/js/views/user_tokens_view.js
@@ -72,9 +72,8 @@ class UserTokenView extends events.EventTarget {
_evtDelete(e) {
e.preventDefault();
- const userToken = this._tokens[
- parseInt(e.target.getAttribute("data-token-id"))
- ];
+ const userToken =
+ this._tokens[parseInt(e.target.getAttribute("data-token-id"))];
this.dispatchEvent(
new CustomEvent("delete", {
detail: {
@@ -110,9 +109,8 @@ class UserTokenView extends events.EventTarget {
_evtChangeNoteClick(e) {
e.preventDefault();
- const userToken = this._tokens[
- parseInt(e.target.getAttribute("data-token-id"))
- ];
+ const userToken =
+ this._tokens[parseInt(e.target.getAttribute("data-token-id"))];
const text = window.prompt(
"Please enter the new name:",
userToken.note !== null ? userToken.note : undefined

© 2015 - 2026 Jakob L. Kreuze