Modifying the exporting JSON optimized.
This commit is contained in:
parent
b44e39da48
commit
23619899c5
@ -30,15 +30,6 @@ TiddlyWiki class >> fromJSONUrl: anUrlString [
|
|||||||
name: 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 }
|
{ #category : #accessing }
|
||||||
TiddlyWiki >> addToConfigFile [
|
TiddlyWiki >> addToConfigFile [
|
||||||
| cleaned newConfig |
|
| cleaned newConfig |
|
||||||
@ -165,10 +156,19 @@ TiddlyWiki >> exportJSONFile [
|
|||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
TiddlyWiki >> exportJSONFileOptimized [
|
TiddlyWiki >> exportJSONFileOptimized [
|
||||||
| exporter |
|
|
||||||
exporter := self file parent / 'scripts' / 'export' / 'exportJsonFile'.
|
| exporter wikiFolder |
|
||||||
exporter exists ifFalse: [ self class installJsonExporter].
|
wikiFolder := self file parent.
|
||||||
|
exporter := wikiFolder / 'scripts' / 'exportJsonFile'.
|
||||||
|
exporter exists ifFalse: [ self installJsonExporter].
|
||||||
"Ejecutar el exportador de JSON con OSSubprocess."
|
"Ejecutar el exportador de JSON con OSSubprocess."
|
||||||
|
OSSUnixSubprocess new
|
||||||
|
command: 'fossil';
|
||||||
|
arguments: {};
|
||||||
|
workingDirectory: wikiFolder;
|
||||||
|
redirectStdout;
|
||||||
|
redirectStderr;
|
||||||
|
runAndWaitOnExitDo: [ :process :outString | ^ outString ]
|
||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
@ -288,6 +288,19 @@ TiddlyWiki >> importJSONFile [
|
|||||||
self fromDictionary: tiddlersDict
|
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 }
|
{ #category : #accessing }
|
||||||
TiddlyWiki >> jsonFile [
|
TiddlyWiki >> jsonFile [
|
||||||
^ jsonFile ifNil: [
|
^ jsonFile ifNil: [
|
||||||
|
Loading…
Reference in New Issue
Block a user