diff --git a/editions/twitter-archivist/tiddlers/DefaultTiddlers.tid b/editions/twitter-archivist/tiddlers/DefaultTiddlers.tid index a3c362aff..b88bde5f1 100644 --- a/editions/twitter-archivist/tiddlers/DefaultTiddlers.tid +++ b/editions/twitter-archivist/tiddlers/DefaultTiddlers.tid @@ -1,3 +1,4 @@ title: $:/DefaultTiddlers -HelloThere \ No newline at end of file +[[Twitter Archives]] +HelloThere diff --git a/editions/twitter-archivist/tiddlers/HelloThere.tid b/editions/twitter-archivist/tiddlers/HelloThere.tid index d1bb60ca7..3aceef65c 100644 --- a/editions/twitter-archivist/tiddlers/HelloThere.tid +++ b/editions/twitter-archivist/tiddlers/HelloThere.tid @@ -1,3 +1,9 @@ title: HelloThere -{{$:/plugins/tiddlywiki/twitter-archivist/readme}} +!!! Welcome to the Twitter Archivist for TiddlyWiki + +<$tiddler tiddler="$:/plugins/tiddlywiki/twitter-archivist"> + <$set name="tabsList" filter="[list]"> + <$macrocall $name="tabs" state=<> tabsList=<> default={{{ [enlist] }}} template="$:/core/ui/PluginInfo"/> + + diff --git a/plugins/tiddlywiki/twitter-archivist/Twitter Archives.tid b/plugins/tiddlywiki/twitter-archivist/Twitter Archives.tid new file mode 100644 index 000000000..2b7aca018 --- /dev/null +++ b/plugins/tiddlywiki/twitter-archivist/Twitter Archives.tid @@ -0,0 +1,5 @@ +title: Twitter Archives +color: #1D9CF0 +icon: $:/core/images/twitter + +<> diff --git a/plugins/tiddlywiki/twitter-archivist/archivist.js b/plugins/tiddlywiki/twitter-archivist/archivist.js index 2162ee556..02384f102 100644 --- a/plugins/tiddlywiki/twitter-archivist/archivist.js +++ b/plugins/tiddlywiki/twitter-archivist/archivist.js @@ -29,6 +29,8 @@ TwitterArchivist.prototype.loadArchive = async function(options) { user_id = manifestData.userInfo.accountId; wiki.addTiddler({ title: "Twitter Archive for @" + username, + icon: "$:/core/images/twitter", + color: "#1D9CF0", tags: "$:/tags/TwitterArchive", user_id: user_id, username: username, diff --git a/plugins/tiddlywiki/twitter-archivist/macros.tid b/plugins/tiddlywiki/twitter-archivist/macros.tid index c0003274d..a45592c10 100644 --- a/plugins/tiddlywiki/twitter-archivist/macros.tid +++ b/plugins/tiddlywiki/twitter-archivist/macros.tid @@ -45,13 +45,22 @@ tags: $:/tags/Macro \define list-archives() \whitespace trim -
    -<$list filter="[tag[$:/tags/TwitterArchive]sort[displayname]]"> -
  • - <$link><$text text=<>/> -
  • +<$list filter="[tag[$:/tags/TwitterArchive]limit[1]]" emptyMessage=<> variable="ignore"> +
      + <$list filter="[tag[$:/tags/TwitterArchive]sort[displayname]]"> +
    • + <$link><$text text=<>/> +
    • + +
    -
+\end + +\define list-archives-empty() +

+No Twitter Archives are currently loaded +

+<$transclude tiddler="$:/plugins/tiddlywiki/twitter-archivist/usage" mode="block"/> \end \define show-archive() @@ -122,24 +131,24 @@ tags: $:/tags/Macro \define show-tweet()