summaryrefslogtreecommitdiff
path: root/frontend/types.js
blob: 4a1b39d469e2f3f4f7e8314cfe9b1e5633160889 (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
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',
  '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',
  'show_edit_tile_form', 'hide_edit_tile_form',
  'update_page_tile',
])
export const tile = crud_type('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'