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
(ns test | |
(:require ["@testing-library/dom" :refer [fireEvent getByRole getByText waitFor]] | |
[cljs.test :refer [deftest async testing use-fixtures]] | |
[com.fulcrologic.fulcro.application :as app] | |
[com.fulcrologic.fulcro.components :as comp :refer [defsc]] | |
[com.fulcrologic.fulcro.dom :as dom] | |
[com.fulcrologic.fulcro.mutations :as m])) | |
(use-fixtures :each | |
{:before (fn [] |
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
set $mod Mod1 | |
new_window pixel 1 | |
new_float normal | |
hide_edge_borders none | |
bindsym $mod+u border none | |
bindsym $mod+y border pixel 1 | |
bindsym $mod+n border normal |
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
const productCardMobileMachine = Machine({ | |
id: 'productMobileCard', | |
initial: 'overview', | |
states: { | |
overview: { | |
on: { | |
CONTINUE: 'closed' | |
}, | |
initial: 'detailClosed', | |
states: { |
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
const wizardMachine = Machine({ | |
initial: 'identification', | |
context: { isEligible: false }, | |
states: { | |
identification: { | |
on: { | |
NEXT: 'address' | |
} | |
}, | |
address: { |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
const wizardMachine = Machine({ | |
initial: 'identification', | |
states: { | |
identification: { | |
on: { | |
NEXT: 'address' | |
} | |
}, | |
address: { | |
on: { |
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
const machine = Machine({ | |
initial: 'verde', | |
states: { | |
verde: { | |
on: { | |
PROXIMO: 'amarelo' | |
} | |
}, |
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
const toggleMachine = Machine({ | |
id: 'vivo-controle', | |
initial: 'identification', | |
states: { | |
identification: { | |
meta: { | |
step: { | |
number: 1 | |
}, | |
path: '/sp/identification' |
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
set $mod Mod1 | |
new_window pixel 1 | |
new_float normal | |
hide_edge_borders none | |
bindsym $mod+u border none | |
bindsym $mod+y border pixel 1 | |
bindsym $mod+n border normal |
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
(ns reacao.cola) | |
;; primeiro examplo | |
(defn e | |
[el props & children] | |
(apply js/React.createElement el (clj->js props) children)) | |
(defn mount | |
[] | |
(js/ReactDOM.render |
NewerOlder