Refreshing remote tiddlers from TiddlyHost.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2022-10-10 10:20:47 -05:00
parent 20553574e4
commit 854a398a50
2 changed files with 8 additions and 2 deletions

View File

@ -192,7 +192,7 @@ Tiddler >> exportSTONFileInto: subfolder [
Tiddler >> exportSTONFileOptimized [ Tiddler >> exportSTONFileOptimized [
| exporter wikiFolder tiddlersFolder | | exporter wikiFolder tiddlersFolder |
wikiFolder := self wiki file parent. wikiFolder := self wiki folder.
exporter := wikiFolder / 'scripts' / 'stringAsFileInto'. exporter := wikiFolder / 'scripts' / 'stringAsFileInto'.
exporter exists ifFalse: [ self installTiddlerExporter ]. exporter exists ifFalse: [ self installTiddlerExporter ].
tiddlersFolder := wikiFolder / 'tiddlers'. tiddlersFolder := wikiFolder / 'tiddlers'.

View File

@ -362,6 +362,12 @@ TiddlyWiki >> fromUrl: anUrlString [
self fromDictionary: tiddlersDictionary self fromDictionary: tiddlersDictionary
] ]
{ #category : #accessing }
TiddlyWiki >> getRemoteTiddlers [
self importJSONLink.
^ self tiddlers
]
{ #category : #accessing } { #category : #accessing }
TiddlyWiki >> htmlFileExists [ TiddlyWiki >> htmlFileExists [
self file ifNil: [ self file ifNil: [
@ -715,7 +721,7 @@ TiddlyWiki >> tiddlers: anOrderedCollection [
{ #category : #accessing } { #category : #accessing }
TiddlyWiki >> tiddlersFolder [ TiddlyWiki >> tiddlersFolder [
^ self file parent / 'tiddlers' ^ self folder / 'tiddlers'
] ]
{ #category : #accessing } { #category : #accessing }