aboutsummaryrefslogtreecommitdiff
path: root/app/models/forums.js
blob: 211181eccc4d7245cfc22057a1e8d1827a8400ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import { writable } from 'svelte/store';

const internals = {};

internals.forums = [
  {
    id: 'life',
    kanji: '命',
    label: 'Life'
  },
  {
    id: 'the-world',
    kanji: '世',
    label: 'The World'
  },
  {
    id: 'online',
    kanji: '直結',
    label: 'Online'
  },
  {
    id: 'experience',
    kanji: '体験',
    label: 'Experience'
  },
  {
    id: 'belief',
    kanji: '信念',
    label: 'Belief'
  },
  {
    id: 'movement',
    kanji: '動',
    label: 'Movement'
  },
  {
    id: 'emotion',
    kanji: '情',
    label: 'Emotion'
  },
  {
    id: 'interaction',
    kanji: '交流',
    label: 'Interaction'
  },
  {
    id: 'structure',
    kanji: '構造',
    label: 'Structure'
  },
  {
    id: 'sound',
    kanji: '音',
    label: 'Sound'
  },
  {
    id: 'words',
    kanji: '言葉',
    label: 'Words'
  },
  {
    id: 'us',
    kanji: '一同',
    label: 'Us'
  },
  {
    id: 'everything',
    kanji: '何事も',
    label: 'Everything'
  }
];

export const forums = writable(internals.forums);

export function addForum() {
  const id = Math.random();

  forums.update((forums) => ([...forums,
    {
      id,
      kanji: 'の',
      label: `Woah ${id}`
    }
  ]));
};