]> git.r.bdr.sh - rbdr/forum/blame - app/stores/forums.js
Make permalinks more legible
[rbdr/forum] / app / stores / forums.js
CommitLineData
890274a7
BB
1import { writable } from 'svelte/store';
2
3const internals = {};
4
5internals.forums = [
6 {
7 id: 'life',
66dc4cae 8 glyph: '☆',
890274a7
BB
9 label: 'Life'
10 },
11 {
12 id: 'the-world',
66dc4cae 13 glyph: '◯',
890274a7
BB
14 label: 'The World'
15 },
16 {
17 id: 'online',
66dc4cae 18 glyph: '⏀',
890274a7
BB
19 label: 'Online'
20 },
21 {
22 id: 'experience',
66dc4cae 23 glyph: '♢',
890274a7
BB
24 label: 'Experience'
25 },
26 {
27 id: 'belief',
66dc4cae 28 glyph: '⏃',
890274a7
BB
29 label: 'Belief'
30 },
31 {
32 id: 'movement',
66dc4cae 33 glyph: '▷',
890274a7
BB
34 label: 'Movement'
35 },
36 {
37 id: 'emotion',
66dc4cae 38 glyph: '☽',
890274a7
BB
39 label: 'Emotion'
40 },
41 {
42 id: 'interaction',
66dc4cae 43 glyph: '〒',
890274a7
BB
44 label: 'Interaction'
45 },
46 {
47 id: 'structure',
66dc4cae 48 glyph: '▢',
890274a7
BB
49 label: 'Structure'
50 },
51 {
52 id: 'sound',
66dc4cae 53 glyph: '〰',
890274a7
BB
54 label: 'Sound'
55 },
56 {
57 id: 'words',
66dc4cae 58 glyph: '╳',
890274a7
BB
59 label: 'Words'
60 },
61 {
62 id: 'us',
66dc4cae 63 glyph: '╱',
890274a7
BB
64 label: 'Us'
65 },
66 {
67 id: 'everything',
66dc4cae 68 glyph: '♡',
890274a7
BB
69 label: 'Everything'
70 }
71];
72
73export const forums = writable(internals.forums);
74
75export function addForum() {
76 const id = Math.random();
77
78 forums.update((forums) => ([...forums,
79 {
80 id,
66dc4cae 81 glyph: 'の',
890274a7
BB
82 label: `Woah ${id}`
83 }
84 ]));
85};