summaryrefslogtreecommitdiff
path: root/frontend/types.js
blob: 4a98781f3394f6a3ae2d288f660f11b2fe976ccd (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
import { with_type, crud_type } from './api/crud.types'

export const api = crud_type('api', [])

export const graph = crud_type('graph', [
  'show_add_page_form', 'hide_add_page_form', 'toggle_add_page_form',
  'show_edit_page_form', 'hide_edit_page_form',
  'update_graph_page',
])

export const page = crud_type('page', [
  'show_add_tile_form', 'hide_add_tile_form', 'toggle_add_tile_form',
  'show_edit_tile_form', 'hide_edit_tile_form',
  'update_page_tile',
])

export const tile = crud_type('tile', [
  'update_temporary_tile', 'remove_temporary_tile',
])

export const upload = crud_type('upload', [])

export const site = with_type('site', [
  'set_site_title',
])

export const system = with_type('system', [
  'load_site',
])

export const init = '@@INIT'