diff options
| author | Ben Beltran <ben@nsovocal.com> | 2020-01-26 16:33:43 +0100 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2020-01-26 16:33:43 +0100 |
| commit | 66dc4cae4cd37e82d773dc30be046d82d380ec4d (patch) | |
| tree | 89723b2fa1505907a3998f8cbe81fd5448614ef6 /app/stores/forums.js | |
| parent | 32ec81f6370328833fd0ba3dfe1c2974ac775973 (diff) | |
Add skeleton for topic
Tested with VoiceOver
Diffstat (limited to 'app/stores/forums.js')
| -rw-r--r-- | app/stores/forums.js | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/app/stores/forums.js b/app/stores/forums.js new file mode 100644 index 0000000..adc8758 --- /dev/null +++ b/app/stores/forums.js @@ -0,0 +1,85 @@ +import { writable } from 'svelte/store'; + +const internals = {}; + +internals.forums = [ + { + id: 'life', + glyph: '☆', + label: 'Life' + }, + { + id: 'the-world', + glyph: '◯', + label: 'The World' + }, + { + id: 'online', + glyph: '⏀', + label: 'Online' + }, + { + id: 'experience', + glyph: '♢', + label: 'Experience' + }, + { + id: 'belief', + glyph: '⏃', + label: 'Belief' + }, + { + id: 'movement', + glyph: '▷', + label: 'Movement' + }, + { + id: 'emotion', + glyph: '☽', + label: 'Emotion' + }, + { + id: 'interaction', + glyph: '〒', + label: 'Interaction' + }, + { + id: 'structure', + glyph: '▢', + label: 'Structure' + }, + { + id: 'sound', + glyph: '〰', + label: 'Sound' + }, + { + id: 'words', + glyph: '╳', + label: 'Words' + }, + { + id: 'us', + glyph: '╱', + label: 'Us' + }, + { + id: 'everything', + glyph: '♡', + label: 'Everything' + } +]; + +export const forums = writable(internals.forums); + +export function addForum() { + const id = Math.random(); + + forums.update((forums) => ([...forums, + { + id, + glyph: 'の', + label: `Woah ${id}` + } + ])); +}; |