nim-theNewWeb/code/web_utils.nim

33 lines
904 B
Nim
Raw Normal View History

2022-08-10 01:59:10 -04:00
# --==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-- #
# Bruno Charest
# 2022-08-09
#
# __ DESCRIPTIONS __
# web_utils : procedure related web interface
#
# --==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-- #
2022-08-06 16:51:49 -04:00
import jester
2022-08-10 01:59:10 -04:00
import joplin_utils
2022-08-06 16:51:49 -04:00
2022-08-10 01:59:10 -04:00
# --==--==--==--==--==--==--==--==--==--==-- #
# TYPE : Selected Option for master web page
# --==--==--==--==--==--==--==--==--==--==-- #
2022-08-06 16:51:49 -04:00
type
selectedOption* = enum
newNote="New Note", search="Search", shortcuts="Shortcuts", notes="Notes", notebooks="Notesbooks", tags="Tags"
2022-08-10 01:59:10 -04:00
# --==--==--==--==--==--==--==--==--==--==-- #
# TYPE : Data Informations for Left Colomn
# --==--==--==--==--==--==--==--==--==--==-- #
2022-08-06 16:51:49 -04:00
type ColomnLeftData* = ref object of RootObj
j_status*: bool
option*: selectedOption
j_notes*: joplin_notes
j_notebooks*: joplin_notebooks
j_tags*: joplin_tags
req*: Request