This file contains 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
<style> | |
/* Add "Completed" to like buttons */ | |
.view-space-in-group--88671 .action-link, | |
.view-space-in-group--88671 .action-like.action-item { | |
background-color: var(--brand); | |
padding: 4px 8px; | |
border-radius: 11px; | |
opacity: 1; | |
} |
This file contains 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
var contentEditorMachine = Machine({ | |
id: 'content', | |
strict: true, | |
initial: 'unknown', | |
context: { | |
variants: [ | |
{ id: '1', status: 'draft' }, | |
{ id: '2', status: 'live' }, | |
], | |
currentVariant: { |
This file contains 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
var contentEditorMachine = Machine({ | |
id: 'content', | |
strict: true, | |
initial: 'unknown', | |
on: { | |
CLEAR_ERROR: { | |
actions: 'clearError' | |
} | |
}, | |
context: { |
This file contains 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 editingMachine = Machine({ | |
id: 'editing', | |
initial: 'editing', | |
states: { | |
editing: { | |
id: 'live', | |
on: { | |
SAVE_CHANGES: 'saving', | |
DISCARD_CHANGES: 'confirmingDiscard' | |
} |
This file contains 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
var variantEditorMachine = Machine({ | |
id: 'editing', | |
initial: 'editing', | |
states: { | |
editing: { | |
id: 'live', | |
on: { | |
SAVE_CHANGES: 'saving', | |
DISCARD_CHANGES: 'confirmingDiscard' |
This file contains 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 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 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 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 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
{ | |
"store.home": { | |
"blocks": [ | |
"info-card#principal", | |
"info-card#bottom", | |
"shelf" | |
] | |
}, | |
"info-card#principal": { |
NewerOlder