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