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