@questdb/web-console 1.1.4 → 1.1.5
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 +50 -120
- package/dist/assets/index-BDByQptw.js +4095 -0
- package/dist/assets/index-DxP8ECWL.css +45 -0
- package/dist/assets/vendor-C-4C_esR.js +78 -0
- package/dist/assets/vs/base/common/worker/simpleWorker.nls.de.js +8 -2
- package/dist/assets/vs/base/common/worker/simpleWorker.nls.es.js +8 -2
- package/dist/assets/vs/base/common/worker/simpleWorker.nls.fr.js +8 -2
- package/dist/assets/vs/base/common/worker/simpleWorker.nls.it.js +8 -2
- package/dist/assets/vs/base/common/worker/simpleWorker.nls.ja.js +8 -2
- package/dist/assets/vs/base/common/worker/simpleWorker.nls.js +8 -2
- package/dist/assets/vs/base/common/worker/simpleWorker.nls.ko.js +8 -2
- package/dist/assets/vs/base/common/worker/simpleWorker.nls.ru.js +8 -2
- package/dist/assets/vs/base/common/worker/simpleWorker.nls.zh-cn.js +8 -2
- package/dist/assets/vs/base/common/worker/simpleWorker.nls.zh-tw.js +8 -2
- package/dist/assets/vs/base/worker/workerMain.js +27 -2
- package/dist/assets/vs/editor/editor.main.js +745 -2
- package/dist/assets/vs/editor/editor.main.nls.js +29 -2
- package/dist/assets/vs/loader.js +11 -2
- package/dist/index.html +10 -6
- package/package.json +70 -76
- package/dist/assets/vs/base/common/worker/simpleWorker.nls.de.js.LICENSE.txt +0 -6
- package/dist/assets/vs/base/common/worker/simpleWorker.nls.es.js.LICENSE.txt +0 -6
- package/dist/assets/vs/base/common/worker/simpleWorker.nls.fr.js.LICENSE.txt +0 -6
- package/dist/assets/vs/base/common/worker/simpleWorker.nls.it.js.LICENSE.txt +0 -6
- package/dist/assets/vs/base/common/worker/simpleWorker.nls.ja.js.LICENSE.txt +0 -6
- package/dist/assets/vs/base/common/worker/simpleWorker.nls.js.LICENSE.txt +0 -6
- package/dist/assets/vs/base/common/worker/simpleWorker.nls.ko.js.LICENSE.txt +0 -6
- package/dist/assets/vs/base/common/worker/simpleWorker.nls.ru.js.LICENSE.txt +0 -6
- package/dist/assets/vs/base/common/worker/simpleWorker.nls.zh-cn.js.LICENSE.txt +0 -6
- package/dist/assets/vs/base/common/worker/simpleWorker.nls.zh-tw.js.LICENSE.txt +0 -6
- package/dist/assets/vs/base/worker/workerMain.js.LICENSE.txt +0 -6
- package/dist/assets/vs/editor/editor.main.js.LICENSE.txt +0 -15
- package/dist/assets/vs/editor/editor.main.nls.js.LICENSE.txt +0 -6
- package/dist/assets/vs/loader.js.LICENSE.txt +0 -6
- package/dist/qdb.e248c.css +0 -222
- package/dist/qdb.e248c.js +0 -1
- package/dist/vendor.7241c.css +0 -874
- package/dist/vendor.7241c.js +0 -2
- package/dist/vendor.7241c.js.LICENSE.txt +0 -169
- /package/dist/{d0b483ce9717b92b4bf815d5d4db597a.woff → assets/open-sans-v13-latin-300-DFA0ym50.woff} +0 -0
- /package/dist/{573e9313e05d89f4acb5d005476c61bb.woff → assets/open-sans-v13-latin-600-C1Kmc7KT.woff} +0 -0
- /package/dist/{6437d5f4c14e01aaf4801aef3909151b.woff → assets/open-sans-v13-latin-700-k6xx1mZI.woff} +0 -0
- /package/dist/{7dafb1a4bab4938a38b2d68d9c4575a9.woff → assets/open-sans-v13-latin-regular-BKF8bpuc.woff} +0 -0
package/README.md
CHANGED
|
@@ -1,144 +1,74 @@
|
|
|
1
|
-
# QuestDB
|
|
1
|
+
# QuestDB UI
|
|
2
2
|
|
|
3
|
-
This
|
|
3
|
+
This repository hosts the implementation of QuestDB user interface and surrounding tooling.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
Yarn@3 and Webpack.
|
|
5
|
+
## Prerequisites
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
- **Node.js** >= 18.18.0 (check with `node -v`)
|
|
8
|
+
- **Yarn** 4.1.1+ (check with `yarn -v`)
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
Follow the instructions described
|
|
15
|
-
in [`local-development-setup.md`](../../docs/local-development-setup.md) document.\
|
|
16
|
-
After the local development environment setup, you are ready to work on the packages of this project,
|
|
17
|
-
including the web console.
|
|
18
|
-
|
|
19
|
-
### 2. Build the production version of `@questdb/react-components`
|
|
20
|
-
|
|
21
|
-
The web console uses the `@questdb/react-components` package, so build this dependency first.
|
|
22
|
-
```
|
|
23
|
-
yarn workspace @questdb/react-components build
|
|
10
|
+
If your Node.js version doesn't match, use [fnm](https://fnm.vercel.app) or [nvm](https://github.com/nvm-sh/nvm) to switch versions:
|
|
11
|
+
```bash
|
|
12
|
+
fnm use # or nvm use
|
|
24
13
|
```
|
|
25
14
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
```
|
|
30
|
-
yarn workspace @questdb/web-console start
|
|
15
|
+
If Yarn is not installed, enable it with:
|
|
16
|
+
```bash
|
|
17
|
+
corepack enable
|
|
31
18
|
```
|
|
32
19
|
|
|
33
|
-
|
|
20
|
+
## Quick Start
|
|
34
21
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
export QDB_HTTP_CONTEXT_WEB_CONSOLE
|
|
41
|
-
yarn workspace @questdb/web-console start
|
|
42
|
-
```
|
|
22
|
+
1. Clone the repository:
|
|
23
|
+
```bash
|
|
24
|
+
git clone git@github.com:questdb/ui.git
|
|
25
|
+
cd ui
|
|
26
|
+
```
|
|
43
27
|
|
|
44
|
-
|
|
28
|
+
2. Install dependencies:
|
|
29
|
+
```bash
|
|
30
|
+
yarn
|
|
31
|
+
```
|
|
45
32
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
yarn workspace @questdb/web-console start
|
|
51
|
-
```
|
|
33
|
+
3. Start the development server:
|
|
34
|
+
```bash
|
|
35
|
+
yarn start
|
|
36
|
+
```
|
|
52
37
|
|
|
53
|
-
|
|
38
|
+
4. Open [http://localhost:9999](http://localhost:9999) in your browser. Note that for Web Console to work properly, [QuestDB server](https://github.com/questdb/questdb) should be up and running.
|
|
54
39
|
|
|
55
|
-
|
|
56
|
-
The web console will load from the dev server without the database, but because it is a tool
|
|
57
|
-
to interact with QuestDB, you need to run the database as well to be able to work with it
|
|
58
|
-
properly.
|
|
40
|
+
## Available Scripts
|
|
59
41
|
|
|
60
|
-
|
|
42
|
+
- `yarn start` - Start development server (Vite)
|
|
43
|
+
- `yarn build` - Build for production
|
|
44
|
+
- `yarn preview` - Preview production build locally
|
|
45
|
+
- `yarn test:unit` - Run unit tests (Vitest)
|
|
46
|
+
- `yarn test:e2e` - Run end-to-end tests (Cypress)
|
|
47
|
+
- `yarn test:e2e:auth` - Run auth-specific e2e tests
|
|
48
|
+
- `yarn test:e2e:enterprise` - Run enterprise e2e tests
|
|
49
|
+
- `yarn typecheck` - Run TypeScript type checking
|
|
50
|
+
- `yarn lint` - Lint source code (ESLint)
|
|
51
|
+
- `yarn lint:fix` - Fix linting issues automatically
|
|
61
52
|
|
|
62
|
-
|
|
53
|
+
## Development Notes
|
|
63
54
|
|
|
64
|
-
|
|
65
|
-
docker run -p 9000:9000 -p 9009:9009 -p 8812:8812 questdb/questdb
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
### 5. Hack!
|
|
69
|
-
|
|
70
|
-
You can start changing the code, and the web console will automatically refresh
|
|
71
|
-
on [localhost:9999](http://localhost:9999).
|
|
72
|
-
|
|
73
|
-
Happy hacking!
|
|
55
|
+
### Running E2E Tests
|
|
74
56
|
|
|
75
|
-
|
|
57
|
+
E2E tests require a running QuestDB server. The tests connect to `localhost:9000` by default.
|
|
76
58
|
|
|
77
|
-
|
|
59
|
+
### Working with Context Path
|
|
78
60
|
|
|
61
|
+
To test with a custom context path:
|
|
62
|
+
```bash
|
|
63
|
+
QDB_HTTP_CONTEXT_WEB_CONSOLE=/context yarn preview
|
|
79
64
|
```
|
|
80
|
-
yarn
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
2. Run `build` script:
|
|
84
|
-
|
|
85
|
-
```
|
|
86
|
-
yarn workspace @questdb/web-console run build
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
3. Build process emits static HTML, CSS and JS files in `packages/web-console/dist`
|
|
90
|
-
|
|
91
|
-
## Bundle size watcher
|
|
92
|
-
Web Console uses [BundleWatcher](https://github.com/bundlewatch/bundlewatch) to make sure there is no unintentional blowup of assets size. The current limits, defined in the `package.json`, are as following:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
| File | Max allowed size |
|
|
96
|
-
|--------|--------|
|
|
97
|
-
| dist/vendor.*.js | 3MB |
|
|
98
|
-
| dist/qdb.*.js | 500KB |
|
|
99
|
-
| dist/qdb.*.css | 100KB |
|
|
100
|
-
| dist/vendor.*.css | 100KB |
|
|
101
|
-
|
|
102
|
-
If you need to introduce a heavy library or anything that by design is expected to go over the defined limits, make sure to change the watcher configuration.
|
|
103
|
-
|
|
104
|
-
## Run tests
|
|
105
|
-
|
|
106
|
-
### Unit tests
|
|
107
|
-
|
|
108
|
-
This package uses [Jest](https://jestjs.io/) for unit tests.
|
|
109
|
-
|
|
110
|
-
To run them locally while developing, run:
|
|
111
|
-
|
|
112
|
-
```
|
|
113
|
-
yarn workspace @questdb/web-console run test
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
This will start jest in watch mode and will rerun tests on file changes.
|
|
117
|
-
|
|
118
|
-
If you want to run tests once, use:
|
|
119
|
-
|
|
120
|
-
```
|
|
121
|
-
yarn workspace @questdb/web-console run test:prod
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
This command is also used in CI.
|
|
125
|
-
|
|
126
|
-
### Browser tests
|
|
127
|
-
|
|
128
|
-
This monorepo contains `browser-tests` package which is used to test
|
|
129
|
-
`web-console` package. `browser-tests` does not yet run as part of
|
|
130
|
-
`web-console` build on CI, but they can be used to test changes locally.
|
|
131
65
|
|
|
132
|
-
|
|
66
|
+
## Contributing
|
|
133
67
|
|
|
134
|
-
|
|
135
|
-
2. run tests with
|
|
136
|
-
```
|
|
137
|
-
yarn workspace browser-tests test
|
|
138
|
-
```
|
|
68
|
+
We always welcome contributions from the community!
|
|
139
69
|
|
|
140
|
-
|
|
70
|
+
If you need help, here are some useful links:
|
|
141
71
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
72
|
+
- Check [GitHub issues](https://github.com/questdb/ui/issues) for existing discussions
|
|
73
|
+
- Read the [QuestDB Documentation](https://questdb.com/docs/)
|
|
74
|
+
- Join our [Slack Channel](https://slack.questdb.io/) or [Community Forum](https://community.questdb.io/)
|