@yanqirenshi/cockpit
v0.0.24
Published
data ------> CardManager ------> Card #+END_SRC
Downloads
16
Readme
#+BEGIN_SRC data ------> CardManager ------> Card #+END_SRC
#+BEGIN_SRC +-------------+ | CardManager | |=============| +-------+ |- _cards |<--------| Card | |-------------| |=======| +------+ |+ cards | |- core |<-------| Data | |+ makeCards | |-------| |======| +-------------+ +-------+ |------| +------+ #+END_SRC
** common
#+BEGIN_SRC { card: 'MESSAGE', // MESSAGE, LINK, SL, FREE type: 'message', id: number, } #+END_SRC
** Link
#+BEGIN_SRC { { id: 'number', _class: 'LINK', type: 'string', _type: d.type || 'Others', col: 'number', id: d.id, row: 'number', updated_at: moment(), label: 'string', size: { href: 'string', col: d.col || 1, wallpaper: 'string', row: d.row || 1 } }, label: { contents: d.label }, href: d.href, wallpaper: { path: d.wallpaper }, } #+END_SRC
** SL
#+BEGIN_SRC { _class: 'SL', _type: d.type || 'Others', id: i--, updated_at: moment(), open: false, small: { head: { title: { contents: d.s.title }, }, body: { contents : d.s.body }, size: { col: d.s.col }, }, large: { head: { title: { contents: d.l.title }, }, body: { contents : d.l.body }, size: { col: d.l.col }, }, } #+END_SRC
** Issue
#+BEGIN_SRC { _class: 'SL', _type: 'My Tasks', id: d.id, updated_at: this.getUpdatedAt(d, today), issue: d, core: d, small: { head: { title: { contents: '作業' }, }, body: { contents : 'ISSUE-S' }, size: { col: 3 }, }, large: { head: { title: { contents: '作業' }, }, body: { contents : 'ISSUE-L' }, size: { col: 6 }, }, }; #+END_SRC ** Message
#+BEGIN_SRC { id: g.id, _class: 'MESSAGE', _type: 'message', size: { col: 2, row: 2 }, message: { type: g.type==='e' ? 'ERROR' : 'NORMAL', title: g.title, contents: this.makeMessageContents(g.msg), core: g, }, updated_at: null, } #+END_SRC