Skip to content

How Welcome Tab works

Gökhan Şimşek edited this page Aug 3, 2020 · 6 revisions

https://github.com/Studio3T/robomongo/blob/master/schematics/Welcome_Tab.jpg

Welcome tab consists of two main sections left "Header, Image (image.png) and Contents" and right section "RSS".

Header:
The text before the first <br/> in contents.txt.

Contents:
The text after the first <br/> in contents.txt.

Notes:

  • Robo expects the files to be in this URL: https://rm-feed.3t.io/1.3.1/image.png and .../1.3.1/contents.txt
    (1.3.1 is the full version of Robo from installer files)

  • Local image.png and contents.txt files are located in C:\Users\<user>\.3T\robo-3t\1.3.1\cache\ folder.

How it works:
At every program start (or reloading of Welcome tab from menu), Robo looks at LastModifiedHeader of reply from network request for image.png (contents.txt) and compare it with these data in config file robo3t.json:

 "cacheData" : {
  "wtImage1LastModifiedDate" : "2019-03-27T14:03:36Z",
  "wtRssLastModifiedDate" : "NotImplemented",
  "wtText1LastModifiedDate" : "2019-03-27T14:03:43Z"
 },

If the creation date of the files are newer than the dates stored in config file, Robo downloads & uses the new files from https://rm-feed.3t.io/1.3.1/ and updates the "wtXLastModifiedDate" params in config file. Otherwise, Robo will use the local files under C:\Users\<user>\.3T\robo-3t\1.3.1\cache\ folder.