-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
236 additions
and
26 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Class { | ||
#name : #SBVisExample, | ||
#superclass : #SBTSReplacementBlock, | ||
#category : #'Sandblocks-TreeSitter-Replacements' | ||
} | ||
|
||
{ #category : #'as yet unclassified' } | ||
SBVisExample >> build [ | ||
<lang: #typescript match: '(call_expression (arguments . (expression) @render (string (string_fragment) @color)))' sample: 'visualize(random_points(), "red")' keyword: 'visualize'> | ||
|
||
self layoutInset: 4. | ||
self addMorphBack: (self createBindingBlock: 'render'). | ||
self addMorphBack: (Morph new color: (self createStatic: [:color | Color fromCSS2String: color] contents: 'color')) | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
Class { | ||
#name : #SBWingCallback, | ||
#superclass : #SBTSReplacementBlock, | ||
#category : #'Sandblocks-Wing' | ||
} | ||
|
||
{ #category : #'as yet unclassified' } | ||
SBWingCallback >> build [ | ||
<lang: #wing match: '(structured_access_expression | ||
(array_literal . | ||
(_) @expression | ||
(string) ="post" | ||
(string) @route .))' sample: '[httpPost(), "post", "/video"][0]'> | ||
|
||
self layoutPolicy: SBAlgebraLayout new. | ||
self layoutInset: 8. | ||
self addMorphBack: (self createBindingBlock: 'expression'). | ||
self addMorphBack: (SBRow new | ||
useAlgebraLayout; | ||
addMorphBack: SBIcon iconArrowRight; | ||
addMorphBack: (self createBinding: [SBTextBubble new prefix: 'Callback: '] contents: 'route')) | ||
] | ||
|
||
{ #category : #'as yet unclassified' } | ||
SBWingCallback >> layoutCommands [ | ||
|
||
^ SBAlgebraCommand container | ||
data: (self submorphs | ||
collect: [:s | s layoutCommands] | ||
separatedBy: [SBAlgebraCommand hardLine withGap: true]); | ||
morph: self | ||
] |
Oops, something went wrong.