Skip to content

How Welcome Tab works

Gökhan Şimşek edited this page Apr 3, 2019 · 6 revisions

https://github.com/Studio3T/robomongo/blob/master/docs/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 that the dates stored in config file, Robo downloads and uses the new files from https://rm-feed.3t.io/1.3.1/image.png, 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.