Modifying the exporting JSON optimized.

This commit is contained in:
ruidajo 2022-03-07 13:29:30 -05:00
parent b44e39da48
commit 23619899c5

View File

@ -30,15 +30,6 @@ TiddlyWiki class >> fromJSONUrl: anUrlString [
name: anUrlString
]
{ #category : #accessing }
TiddlyWiki class >> installJsonExporter [
ZnClient "Descarga el archivo
https://mutabit.com/repos.fossil/mutabit/uv/wiki/scripts/exportJsonFile
a la subcarpeta del wiki ./scripts/exportJsonFile.
y lo hace ejecutable.
"
]
{ #category : #accessing }
TiddlyWiki >> addToConfigFile [
| cleaned newConfig |
@ -165,10 +156,19 @@ TiddlyWiki >> exportJSONFile [
{ #category : #accessing }
TiddlyWiki >> exportJSONFileOptimized [
| exporter |
exporter := self file parent / 'scripts' / 'export' / 'exportJsonFile'.
exporter exists ifFalse: [ self class installJsonExporter].
| exporter wikiFolder |
wikiFolder := self file parent.
exporter := wikiFolder / 'scripts' / 'exportJsonFile'.
exporter exists ifFalse: [ self installJsonExporter].
"Ejecutar el exportador de JSON con OSSubprocess."
OSSUnixSubprocess new
command: 'fossil';
arguments: {};
workingDirectory: wikiFolder;
redirectStdout;
redirectStderr;
runAndWaitOnExitDo: [ :process :outString | ^ outString ]
]
{ #category : #accessing }
@ -288,6 +288,19 @@ TiddlyWiki >> importJSONFile [
self fromDictionary: tiddlersDict
]
{ #category : #accessing }
TiddlyWiki >> installJsonExporter [
ZnClient new
url: 'https://mutabit.com/repos.fossil/mutabit/uv/wiki/scripts/exportJsonFile';
downloadTo: self file parent / 'scripts' / 'exportJsonFile'
"Descarga el archivo
https://mutabit.com/repos.fossil/mutabit/uv/wiki/scripts/exportJsonFile
a la subcarpeta del wiki ./scripts/exportJsonFile.
y lo hace ejecutable.
"
]
{ #category : #accessing }
TiddlyWiki >> jsonFile [
^ jsonFile ifNil: [