@questdb/web-console 0.0.11 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -44
- package/dist/qdb.css +2 -2
- package/dist/qdb.js +1 -1
- package/package.json +10 -6
package/README.md
CHANGED
|
@@ -7,49 +7,18 @@ Yarn@3 and Webpack.
|
|
|
7
7
|
|
|
8
8
|
## Local development setup
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
In order to run this package locally, you need to do the following steps:
|
|
11
11
|
|
|
12
|
-
1. Clone
|
|
13
|
-
2.
|
|
14
|
-
3.
|
|
15
|
-
4.
|
|
16
|
-
5. Hack!
|
|
12
|
+
1. Clone and bootstrap repository (by following instructions on [`local-development-setup.md`](../../docs/local-development-setup.md))
|
|
13
|
+
2. Start development server
|
|
14
|
+
3. Run QuestDB in the background
|
|
15
|
+
4. Hack!
|
|
17
16
|
|
|
18
|
-
|
|
17
|
+
### 1. Clone and bootstrap repository
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
Consult instructions on [`local-development-setup.md`](../../docs/local-development-setup.md) document.
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
Download is what takes the most amount of time (~1 minute on a decent connection).
|
|
24
|
-
|
|
25
|
-
* clone using SSH:
|
|
26
|
-
```
|
|
27
|
-
git clone git@github.com:questdb/ui.git
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
* or using HTTPS:
|
|
31
|
-
```
|
|
32
|
-
git clone https://github.com/questdb/ui.git
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
* or using [Github CLI](https://cli.github.com/):
|
|
36
|
-
```
|
|
37
|
-
gh repo clone questdb/ui
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
### 2. Bootstrap dependencies
|
|
41
|
-
|
|
42
|
-
* `node -v` should return `16.13.1`\
|
|
43
|
-
If it doesn't, you can use [fnm](https://fnm.vercel.app) or [nvm](https://github.com/nvm-sh/nvm) to manage node versions on your machine.\
|
|
44
|
-
Then run `fnm use` or `nvm use` to set correct version.
|
|
45
|
-
|
|
46
|
-
* `yarn -v` should return v3 (like `3.2.1`).\
|
|
47
|
-
If it returns `command not found`, enable `yarn` by running `corepack enable`.\
|
|
48
|
-
Follow [official installation guide](https://yarnpkg.com/getting-started/install) if you have trouble.
|
|
49
|
-
|
|
50
|
-
* run `yarn` to bootstrap dependencies. This should be a quick process (less than a minute).
|
|
51
|
-
|
|
52
|
-
### 3. Start development server
|
|
21
|
+
### 2. Start development server
|
|
53
22
|
|
|
54
23
|
```
|
|
55
24
|
yarn workspace @questdb/web-console start
|
|
@@ -57,10 +26,10 @@ yarn workspace @questdb/web-console start
|
|
|
57
26
|
|
|
58
27
|
[localhost:9999](http://localhost:9999) should show web console
|
|
59
28
|
|
|
60
|
-
###
|
|
29
|
+
### 3. Run QuestDB in the background
|
|
61
30
|
|
|
62
|
-
This package is a only GUI for QuestDB, it does not include QuestDB itself.\
|
|
63
|
-
GUI will work without it, but
|
|
31
|
+
This package (`web-console`) is a only GUI for QuestDB, it does not include QuestDB itself.\
|
|
32
|
+
GUI will work without it, but because it's a tool to interact with QuestDB, you will need QuestDB as well.
|
|
64
33
|
|
|
65
34
|
Check [readme.md](https://github.com/questdb/questdb#install-questdb) of QuestDB to learn how to install it.
|
|
66
35
|
|
|
@@ -70,13 +39,13 @@ If you have [`docker`](https://docs.docker.com/get-docker/), then it's simply:
|
|
|
70
39
|
docker run -p 9000:9000 -p 9009:9009 -p 8812:8812 questdb/questdb
|
|
71
40
|
```
|
|
72
41
|
|
|
73
|
-
###
|
|
42
|
+
### 4. Hack!
|
|
74
43
|
|
|
75
44
|
Do your code changes and browser will automatically refresh [localhost:9999](http://localhost:9999).
|
|
76
45
|
|
|
77
46
|
Happy hacking!
|
|
78
47
|
|
|
79
|
-
##
|
|
48
|
+
## Build production version
|
|
80
49
|
|
|
81
50
|
1. Make sure dependencies are set up:
|
|
82
51
|
|
|
@@ -94,6 +63,28 @@ yarn workspace @questdb/web-console run build
|
|
|
94
63
|
|
|
95
64
|
## Run tests
|
|
96
65
|
|
|
66
|
+
### Unit tests
|
|
67
|
+
|
|
68
|
+
This package uses [Jest](https://jestjs.io/) for unit tests.
|
|
69
|
+
|
|
70
|
+
To run them locally while developing, run:
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
yarn workspace @questdb/web-console run test
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
This will start jest in watch mode and will rerun tests on file changes.
|
|
77
|
+
|
|
78
|
+
If you want to run tests once, use:
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
yarn workspace @questdb/web-console run test:prod
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
This command is also used in CI.
|
|
85
|
+
|
|
86
|
+
### Browser tests
|
|
87
|
+
|
|
97
88
|
This monorepo contains `browser-tests` package which is used to test
|
|
98
89
|
`web-console` package. `browser-tests` does not yet run as part of
|
|
99
90
|
`web-console` build on CI, but they can be used to test changes locally.
|
package/dist/qdb.css
CHANGED
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
* \__\_\\__,_|\___||___/\__|____/|____/
|
|
305
305
|
*
|
|
306
306
|
* Copyright (c) 2014-2019 Appsicle
|
|
307
|
-
* Copyright (c) 2019-
|
|
307
|
+
* Copyright (c) 2019-2023 QuestDB
|
|
308
308
|
*
|
|
309
309
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
310
310
|
* you may not use this file except in compliance with the License.
|
|
@@ -318,7 +318,7 @@
|
|
|
318
318
|
* See the License for the specific language governing permissions and
|
|
319
319
|
* limitations under the License.
|
|
320
320
|
*
|
|
321
|
-
******************************************************************************/#grid{height:100%;width:100%;flex-direction:column;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;overflow:hidden}.qg-header-row{display:flex;overflow:hidden;height:55px;position:relative}.qg-header-row .qg-header:nth-last-child(2){border-right:none !important}.qg-header-row,.qg-r{white-space:nowrap}.qg-r{display:flex;border-bottom:1px solid #44475a;position:absolute;left:0;right:0}.qg-
|
|
321
|
+
******************************************************************************/#grid{height:100%;width:100%;flex-direction:column;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;overflow:hidden}.qg-header-row,.qg-header-left-row{display:flex;overflow:hidden;min-height:55px;max-height:55px;position:relative}.qg-header-row .qg-header:nth-last-child(2),.qg-header-left-row .qg-header:nth-last-child(2){border-right:none !important}.qg-timestamp{color:#50fa7b}.qg-null{color:#939393}.qg-header-row,.qg-r{white-space:nowrap}.qg-r{display:flex;border-bottom:1px solid #44475a;position:absolute;left:0;right:0}.qg-r-hover{background-color:#323342}.qg-r:focus{outline:none}.qg-last-col{border-right:thin dotted #44475a}.qg-hover .qg-r-active:hover{background-color:#323342;color:#f8f8f2}.qg-r-active{background-color:#323342}.qg-stub{height:100% !important}.qg-stub-transparent{background:transparent !important}.qg-header{padding:10px 5px 10px 5px;cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#21222c;position:relative}.qg-header-border{position:absolute;margin-top:10px;height:25px;border-left:thin dashed #cac30f;right:0}.qg-header-l .qg-header-name,.qg-header-l .qg-header-type{text-align:left}.qg-col-resize-hysteresis{width:20px;height:100%;top:0;z-index:1;position:absolute;right:0;margin-right:-10px}.qg-col-resize-hysteresis:hover{cursor:grab}.qg-col-resize-hysteresis-enter{background-color:#ff0;width:5px;margin-top:10px;margin-left:8px;height:35px;border-radius:3px}.qg-col-resize-ghost{position:absolute;width:2px;background-color:#ff0;height:0;top:0;left:0;cursor:col-resize;z-index:3}.qg-header-name,.qg-header-type{display:block;margin-left:13px;padding:0;text-align:right;overflow:hidden;text-overflow:ellipsis}.qg-header-name{font-weight:700;color:#f1fa8c !important;font-size:medium}.qg-header-type{color:#ff79c6;font-size:x-small;font-style:italic}.qg-header-l{text-align:left;flex-direction:row-reverse;white-space:nowrap;text-overflow:ellipsis}.qg-header-l .qg-header-type{text-align:left}.qg-viewport{overflow:auto;height:100%}.qg-canvas{position:relative;width:100%}.qg-c{position:absolute;padding:4px 5px 4px 5px;overflow:hidden;text-overflow:ellipsis;text-align:right;border-left:thin dotted #44475a}.qg-c-active{box-shadow:inset 0 0 0 2px #f1fa8c;border-radius:6px}.qg-c-active-pulse{animation:pulse 1000ms .1s}@keyframes pulse{0%{box-shadow:#f1fa8c 0 0 0 2px}75%{box-shadow:#f1fa8c00 0 0 0 16px}}.qg-r-active:hover .qg-c-active,.qg-r-active:hover .qg-c-active:hover{box-shadow:inset 0 0 0 2px #f1fa8c}.qg-panel-left{display:none;position:absolute;top:0;left:0;background:#282a36;z-index:2;overflow:visible}.qg-viewport-left{width:100%;height:100%;position:relative;border-right:thin solid #98999f;overflow-x:hidden;overflow-y:auto;-ms-overflow-style:none;scrollbar-width:none}.qg-viewport-left::-webkit-scrollbar{display:none}.qg-panel-scrolled-left{-webkit-box-shadow:10px 0 30px -4px rgba(0,0,0,.75);-moz-box-shadow:10px 0 30px -4px rgba(0,0,0,.75);box-shadow:10px 0 30px -4px rgba(0,0,0,.75)}.qg-panel-scrolled-top{-webkit-box-shadow:0 2px 5px 0 rgba(23,23,23,.86);-moz-box-shadow:0 2px 5px 0 rgba(23,23,23,.86);box-shadow:0 2px 5px 0 rgba(23,23,23,.86)}.qg-panel-left-ghost,.qg-panel-left-hysteresis,.qg-panel-left-snap-ghost,.qg-panel-left-initial-hysteresis{position:absolute;top:0;margin-top:54px;height:calc(100% - 54px);z-index:5}.qg-panel-left-ghost{background-color:#98999f;width:2px;display:none}.qg-panel-left-snap-ghost{background-color:#ff0;width:2px;display:none}.qg-panel-left-hysteresis{right:0;margin-right:-10px;width:20px;cursor:grab}.qg-panel-left-initial-hysteresis{width:10px;left:0;display:none;cursor:grab}.qg-panel-left-ghost-handle{position:absolute;top:0;left:0;width:6px;height:30px;background-color:#ff0;border-radius:3px;margin-left:-2px;cursor:grab}/*!******************************************************************************
|
|
322
322
|
* ___ _ ____ ____
|
|
323
323
|
* / _ \ _ _ ___ ___| |_| _ \| __ )
|
|
324
324
|
* | | | | | | |/ _ \/ __| __| | | | _ \
|