diff --git a/webui/assets/main.js b/webui/assets/main.js index e18c562fb..887181338 100644 --- a/webui/assets/main.js +++ b/webui/assets/main.js @@ -20,7 +20,8 @@ class REPL { // keyword: length of substring that comes after cursor "SetBit()": 1, "ClearBit()": 1, - "SetBitmapAttrs()": 1, + "SetRowAttrs()": 1, + "SetColumnAttrs()": 1, "Bitmap()": 1, "Union()": 1, "Intersect()": 1, diff --git a/webui/assets/style.css b/webui/assets/style.css index 515335ef9..3a5bcaf39 100644 --- a/webui/assets/style.css +++ b/webui/assets/style.css @@ -295,4 +295,47 @@ td{ .expand { text-align: center; -} \ No newline at end of file +} + +.query h2 { + display: inline-block; +} + +.query-tooltip { + position: relative; + display: inline; + color: #000; + margin-left: 5px; +} + +.query-tooltip:hover { + color: #000; +} + +.query-tooltip-content { + background-color: rgb(250, 250, 250); + border: solid 1.5px #e4eff4; + color: #102445; + border-radius: 2px; + padding: 15px; + margin-bottom: 15px; + + position: absolute; + left: 80px; + top: -30px; + z-index: 1; +} + +.query-tooltip-container { + position: relative; + visibility: hidden; +} + +.query-tooltip:hover+.query-tooltip-container{ + visibility: visible; +} + +.code{ + font-family: monospace; +} + diff --git a/webui/index.html b/webui/index.html index 8422d4c45..09e39d17a 100644 --- a/webui/index.html +++ b/webui/index.html @@ -35,28 +35,60 @@

Query

+ ? +
+
+
PQL
+
+ SetBit(frame=foo, rowID=0, columnID=0)
+ ClearBit(frame=foo, rowID=0, columnID=0)
+ SetRowAttrs(frame=foo, rowID=0, color="blue")
+ SetColumnAttrs(frame=foo, columnID=0, shape="circle")
+ Bitmap(frame=foo, rowID=0)
+ Range(frame=foo, rowID=0, start="2010-01", end="2017-03")
+ Count(<BITMAP_CALL>)
+ TopN([BITMAP_CALL], frame=foo, n=20)
+ Union([BITMAP_CALL, ...])
+ Intersect(<BITMAP_CALL>, [BITMAP_CALL, ...])
+ Difference(<BITMAP_CALL>, <BITMAP_CALL>) +
+
+
Special commands
+
+ :create index test [columnLabel=column]
+ :use index test
+ :create frame foo [rowLabel=row]
+ :delete index test
+ :delete frame foo +
+
+ <tab>: autocomplete
+ <up>/<down>: history
+
+
- - -     - +
+ +     + +
-
-
+
-

Output

-
+

Output

+
+ + +
-
-