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
| FieldManglerWidget.prototype.execute = function() { | |
| // Get our parameters | |
| this.mangleTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler")); | |
| this.createText = this.getAttribute("create",false); | |
| // Process create param | |
| if(this.createText) { | |
| var createTiddler = $tw.wiki.deserializeTiddlers("application/x-tiddler",this.createText); | |
| createTiddler[0]['title'] = this.mangleTitle; | |
| if(!this.wiki.tiddlerExists(this.mangleTitle)) | |
| this.wiki.addTiddler(createTiddler[0]); |
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
| /*\ | |
| title: $:/core/modules/parsers/wikiparser/rules/macrodef.js | |
| type: application/javascript | |
| module-type: wikirule | |
| Wiki pragma rule for macro definitions | |
| ``` | |
| \define name(param:defaultvalue,param2:defaultvalue) | |
| definition text, including $param$ markers |
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
| /*\ | |
| title: $:/core/modules/parsers/wikiparser/rules/macrodef.js | |
| type: application/javascript | |
| module-type: wikirule | |
| Wiki pragma rule for macro definitions | |
| ``` | |
| \define name(param:defaultvalue,param2:defaultvalue) | |
| definition text, including $param$ markers |
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
| this.stateTitle = this.state; | |
| this.readState(); | |
| // Construct the child widgets | |
| - var childNodes = this.isOpen ? this.parseTreeNode.children : []; | |
| - this.hasChildNodes = this.isOpen; | |
| + if(this.hasVariable("tv-static-output", "yes")) { | |
| + this.alwaysRender = true; | |
| + } else { | |
| + this.alwaysRender = false; | |
| + } |
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
| \define tag-styles() | |
| background-color:$(backgroundColor)$; | |
| fill:$(foregroundColor)$; | |
| color:$(foregroundColor)$; | |
| \end | |
| \define tag-body-inner(colour,fallbackTarget,colourA,colourB) | |
| <$set name="foregroundColor" value=<<contrastcolour target:"""$colour$""" fallbackTarget:"""$fallbackTarget$""" colourA:"""$colourA$""" colourB:"""$colourB$""">>> | |
| <$set name="backgroundColor" value="""$colour$"""><!--popup=<<qualify "$:/state/popup/tag">>--> | |
| <$button popup=<<qualify "$:/state/popup/tag">> class="tc-btn-invisible tc-tag-label" style=<<tag-styles>> static="yes"> |
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
| /*\ | |
| title: NodeWebKitSaver.js | |
| type: application/javascript | |
| module-type: saver | |
| Handles saving changes via node.js in the browser (node-webkit). | |
| \*/ | |
| (function(){ |
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
| <!doctype html> | |
| <html> | |
| <head></head> | |
| <body class="tc-body"> | |
| <script>process.mainModule.exports.boot();</script> | |
| </body> | |
| </html> |
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 electron = require('electron'); | |
| const app = electron.app; | |
| const BrowserWindow = electron.BrowserWindow; | |
| const shell = electron.shell; | |
| var mainWindow = null; | |
| var arg2 = process.argv[2]; | |
| app.on('ready', function() { | |
| global.file = arg2 ? arg2 : electron.dialog.showOpenDialog({ properties: [ 'openFile' ]}); | |
| if(!file) process.exit(0); | |
| mainWindow = new BrowserWindow({ |
OlderNewer