diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/application.js | 2 | ||||
| -rw-r--r-- | app/components/forum_list/forum_list.svelte | 2 | ||||
| -rw-r--r-- | app/forum.svelte | 7 | ||||
| -rw-r--r-- | app/utils/glyph_hash.js | 2 |
4 files changed, 6 insertions, 7 deletions
diff --git a/app/application.js b/app/application.js index f5012fd..6f44869 100644 --- a/app/application.js +++ b/app/application.js @@ -1,7 +1,5 @@ import Forum from './forum.svelte'; -/* global document */ - const forum = new Forum({ target: document.body, props: { diff --git a/app/components/forum_list/forum_list.svelte b/app/components/forum_list/forum_list.svelte index e49c8d8..f77c79a 100644 --- a/app/components/forum_list/forum_list.svelte +++ b/app/components/forum_list/forum_list.svelte @@ -1,5 +1,5 @@ <script> - import {forums, addForum} from '../../stores/forums.js' + import { forums } from '../../stores/forums.js'; </script> <nav title="List of Forums"> diff --git a/app/forum.svelte b/app/forum.svelte index 038f176..bb2513d 100644 --- a/app/forum.svelte +++ b/app/forum.svelte @@ -20,14 +20,15 @@ const setRoute = function setRoute(targetPage) { return function (routerParams) { + params = routerParams; page = targetPage; - } - } + }; + }; const router = new LightRouter({ routes: { - '': () => page = Home, + '': () => (page = Home) && true, 'f/{id}': setRoute(TopicIndex), 'g/{id}': setRoute(TopicIndex), 'a/{id}': setRoute(Author), diff --git a/app/utils/glyph_hash.js b/app/utils/glyph_hash.js index 2d9b3f3..120c02a 100644 --- a/app/utils/glyph_hash.js +++ b/app/utils/glyph_hash.js @@ -27,7 +27,7 @@ const getGlyphHashFragment = function (uuidFragment) { return { glyph: internals.kGlyphs[glyphIndex], color: `#${uuidFragment.substring(2,8)}` - } + }; }; // Return an array of glyphs based on a UUIDv4 |