This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div id='${NAME}'> | |
#[[$END$]]# | |
</div> | |
</template> | |
<script> | |
import { mapState, mapActions } from 'vuex' | |
export default { | |
computed: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div className={classnames({'team-item': true, 'pure-g': true, 'team-item-selected': selectedTeamId === id})} | |
onClick={() => signals.teams.teamSelected({id: team.id})} | |
> | |
<div className="pure-u-1"> | |
<h5 className="team-name">{name}</h5> | |
</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div className={classnames({'team-item': true, 'pure-g': true, 'team-item-selected': selectedTeamId === id})} | |
on-click={() => signals.teams.teamSelected({id: team.id})} | |
> | |
<div className="pure-u-1"> | |
<h5 className="team-name">{name}</h5> | |
</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
controller.addModules({ | |
devTools: Devtools(), | |
router: Router({ | |
'/': 'app.opened', | |
'/about': 'about.opened', | |
'/teams': { | |
'': 'teams.opened', | |
'/:id': 'teams.teamSelected' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{:threads | |
[[:threads/by-id "t_1"] | |
[:threads/by-id "t_2"] | |
[:threads/by-id "t_3"]], | |
:messages/bucket | |
{"m_1" | |
{:message/id "m_1", | |
:message/author-name "Bill", | |
:message/text "Hey Jing want to give a Flux talk at ForwardJS?", | |
:message/date #inst "2015-12-08T14:48:34.292-00:00"}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defui MessageItem | |
static om/Ident | |
(ident [this {:keys [message/id]}] | |
[:messages/by-id id]) | |
static om/IQuery | |
(query [this] | |
[:message/id :message/author-name :message/date :message/text]) | |
Object |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{:threads | |
[[:threads/by-id "t_1"] | |
[:threads/by-id "t_2"] | |
[:threads/by-id "t_3"]], | |
:messages/by-id | |
{"m_1" | |
{:message/id "m_1", | |
:message/author-name "Bill", | |
:message/text "Hey Jing want to give a Flux talk at ForwardJS?", | |
:message/date #inst "2015-11-24T15:48:21.793-00:00"}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{:threads | |
[{:thread/id "t_1", | |
:thread/name "Jing and Bill", | |
:thread/messages | |
[{:message/id "m_1", | |
:message/author-name "Bill", | |
:message/text "Hey Jing want to give a Flux talk at ForwardJS?", | |
:message/date #inst "2015-11-24T12:59:52.245-00:00"} | |
{:message/id "m_2", | |
:message/author-name "Bill", |