Fixing config file management and starting with remote JSON url definitions.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2021-11-05 08:21:59 -05:00
parent 56e048ecb3
commit 941d042570

View File

@ -26,13 +26,13 @@ TiddlyWiki class >> fromJSONUrl: anUrlString [
{ #category : #accessing } { #category : #accessing }
TiddlyWiki >> addToConfigFile [ TiddlyWiki >> addToConfigFile [
| cleaned | | cleaned newConfig |
cleaned := self copy. cleaned := self copy.
cleaned tiddlers: nil. cleaned tiddlers: nil.
self configDictonary newConfig := self configDictonary
at: cleaned name put: cleaned; at: cleaned name put: cleaned;
yourself. yourself.
MarkupFile exportAsFileOn: self configFile containing:(STON toStringPretty: self configDictonary) ^ MarkupFile exportAsFileOn: self configFile containing:(STON toStringPretty: newConfig)
] ]
{ #category : #accessing } { #category : #accessing }
@ -215,6 +215,11 @@ TiddlyWiki >> tiddlersJSONFile [
^ jsonFile ^ jsonFile
] ]
{ #category : #accessing }
TiddlyWiki >> tiddlersJSONUrl [
self remote ifNil: [^ nil].
]
{ #category : #accessing } { #category : #accessing }
TiddlyWiki >> withoutImages [ TiddlyWiki >> withoutImages [
| filteredTiddlers tempWiki | | filteredTiddlers tempWiki |