aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2020-02-15 23:03:37 +0100
committerBen Beltran <ben@nsovocal.com>2020-02-15 23:03:37 +0100
commit41247723b2940efe89648749b90e56d582bdfb89 (patch)
tree0fd6b070290b55444ab30b60892a61fdf1dc228b /app
parent24be7b5399ae4162702ad9a1f17b5711922a2da4 (diff)
Fix linter and linteer warnings
Diffstat (limited to 'app')
-rw-r--r--app/application.js2
-rw-r--r--app/stores/forums.js5
-rw-r--r--app/utils/glyph_hash.js32
3 files changed, 21 insertions, 18 deletions
diff --git a/app/application.js b/app/application.js
index 6f44869..f5012fd 100644
--- a/app/application.js
+++ b/app/application.js
@@ -1,5 +1,7 @@
import Forum from './forum.svelte';
+/* global document */
+
const forum = new Forum({
target: document.body,
props: {
diff --git a/app/stores/forums.js b/app/stores/forums.js
index adc8758..c473124 100644
--- a/app/stores/forums.js
+++ b/app/stores/forums.js
@@ -72,10 +72,11 @@ internals.forums = [
export const forums = writable(internals.forums);
-export function addForum() {
+export const addForum = function addForum() {
+
const id = Math.random();
- forums.update((forums) => ([...forums,
+ forums.update((originalForums) => ([...originalForums,
{
id,
glyph: 'の',
diff --git a/app/utils/glyph_hash.js b/app/utils/glyph_hash.js
index c074376..2d9b3f3 100644
--- a/app/utils/glyph_hash.js
+++ b/app/utils/glyph_hash.js
@@ -1,22 +1,22 @@
const internals = {
kSplitterRegex: /.{1,8}/g,
kGlyphs: [
- "☽",
- "☆",
- "♢",
- "♡",
- "╱",
- "╲",
- "╳",
- "〰",
- "▷",
- "⏊",
- "〒",
- "▢",
- "◯",
- "⏃",
- "⏀",
- "⏆"
+ '☽',
+ '☆',
+ '♢',
+ '♡',
+ '╱',
+ '╲',
+ '╳',
+ '〰',
+ '▷',
+ '⏊',
+ '〒',
+ '▢',
+ '◯',
+ '⏃',
+ '⏀',
+ '⏆'
]
};