@questdb/web-console 1.1.3 → 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.
Files changed (43) hide show
  1. package/README.md +50 -120
  2. package/dist/assets/index-BDByQptw.js +4095 -0
  3. package/dist/assets/index-DxP8ECWL.css +45 -0
  4. package/dist/assets/vendor-C-4C_esR.js +78 -0
  5. package/dist/assets/vs/base/common/worker/simpleWorker.nls.de.js +8 -2
  6. package/dist/assets/vs/base/common/worker/simpleWorker.nls.es.js +8 -2
  7. package/dist/assets/vs/base/common/worker/simpleWorker.nls.fr.js +8 -2
  8. package/dist/assets/vs/base/common/worker/simpleWorker.nls.it.js +8 -2
  9. package/dist/assets/vs/base/common/worker/simpleWorker.nls.ja.js +8 -2
  10. package/dist/assets/vs/base/common/worker/simpleWorker.nls.js +8 -2
  11. package/dist/assets/vs/base/common/worker/simpleWorker.nls.ko.js +8 -2
  12. package/dist/assets/vs/base/common/worker/simpleWorker.nls.ru.js +8 -2
  13. package/dist/assets/vs/base/common/worker/simpleWorker.nls.zh-cn.js +8 -2
  14. package/dist/assets/vs/base/common/worker/simpleWorker.nls.zh-tw.js +8 -2
  15. package/dist/assets/vs/base/worker/workerMain.js +27 -2
  16. package/dist/assets/vs/editor/editor.main.js +745 -2
  17. package/dist/assets/vs/editor/editor.main.nls.js +29 -2
  18. package/dist/assets/vs/loader.js +11 -2
  19. package/dist/index.html +10 -6
  20. package/package.json +70 -76
  21. package/dist/assets/vs/base/common/worker/simpleWorker.nls.de.js.LICENSE.txt +0 -6
  22. package/dist/assets/vs/base/common/worker/simpleWorker.nls.es.js.LICENSE.txt +0 -6
  23. package/dist/assets/vs/base/common/worker/simpleWorker.nls.fr.js.LICENSE.txt +0 -6
  24. package/dist/assets/vs/base/common/worker/simpleWorker.nls.it.js.LICENSE.txt +0 -6
  25. package/dist/assets/vs/base/common/worker/simpleWorker.nls.ja.js.LICENSE.txt +0 -6
  26. package/dist/assets/vs/base/common/worker/simpleWorker.nls.js.LICENSE.txt +0 -6
  27. package/dist/assets/vs/base/common/worker/simpleWorker.nls.ko.js.LICENSE.txt +0 -6
  28. package/dist/assets/vs/base/common/worker/simpleWorker.nls.ru.js.LICENSE.txt +0 -6
  29. package/dist/assets/vs/base/common/worker/simpleWorker.nls.zh-cn.js.LICENSE.txt +0 -6
  30. package/dist/assets/vs/base/common/worker/simpleWorker.nls.zh-tw.js.LICENSE.txt +0 -6
  31. package/dist/assets/vs/base/worker/workerMain.js.LICENSE.txt +0 -6
  32. package/dist/assets/vs/editor/editor.main.js.LICENSE.txt +0 -15
  33. package/dist/assets/vs/editor/editor.main.nls.js.LICENSE.txt +0 -6
  34. package/dist/assets/vs/loader.js.LICENSE.txt +0 -6
  35. package/dist/qdb.7337f.css +0 -222
  36. package/dist/qdb.7337f.js +0 -1
  37. package/dist/vendor.059c8.css +0 -874
  38. package/dist/vendor.059c8.js +0 -2
  39. package/dist/vendor.059c8.js.LICENSE.txt +0 -169
  40. /package/dist/{d0b483ce9717b92b4bf815d5d4db597a.woff → assets/open-sans-v13-latin-300-DFA0ym50.woff} +0 -0
  41. /package/dist/{573e9313e05d89f4acb5d005476c61bb.woff → assets/open-sans-v13-latin-600-C1Kmc7KT.woff} +0 -0
  42. /package/dist/{6437d5f4c14e01aaf4801aef3909151b.woff → assets/open-sans-v13-latin-700-k6xx1mZI.woff} +0 -0
  43. /package/dist/{7dafb1a4bab4938a38b2d68d9c4575a9.woff → assets/open-sans-v13-latin-regular-BKF8bpuc.woff} +0 -0
package/README.md CHANGED
@@ -1,144 +1,74 @@
1
- # QuestDB Web Console
1
+ # QuestDB UI
2
2
 
3
- This package contains code of the GUI for interacting with QuestDB.
3
+ This repository hosts the implementation of QuestDB user interface and surrounding tooling.
4
4
 
5
- It is a web application built with TypeScript and React and managed with
6
- Yarn@3 and Webpack.
5
+ ## Prerequisites
7
6
 
8
- ## Local development setup
7
+ - **Node.js** >= 18.18.0 (check with `node -v`)
8
+ - **Yarn** 4.1.1+ (check with `yarn -v`)
9
9
 
10
- In order to run this package locally, follow the steps below.
11
-
12
- ### 1. Clone and bootstrap repository
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
- ### 3. Start development server
27
-
28
- Now we can start the web console.
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
- By default, [localhost:9999](http://localhost:9999) should display the web console.
20
+ ## Quick Start
34
21
 
35
- If the server has a context path configured with the `http.context.path` option, we need to make sure that
36
- the dev server is aware of it, and it proxies requests accordingly.\
37
- We can set the context path with the following environment variable before starting dev server:
38
- ```
39
- QDB_HTTP_CONTEXT_WEB_CONSOLE=/instance2
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
- After the above the web console is available on [localhost:9999/instance2/](http://localhost:9999/instance2/)
28
+ 2. Install dependencies:
29
+ ```bash
30
+ yarn
31
+ ```
45
32
 
46
- If the context path is removed from the server configuration, we also need to clear the environment variable,
47
- and restart the dev server:
48
- ```
49
- unset QDB_HTTP_CONTEXT_WEB_CONSOLE
50
- yarn workspace @questdb/web-console start
51
- ```
33
+ 3. Start the development server:
34
+ ```bash
35
+ yarn start
36
+ ```
52
37
 
53
- ### 4. Run QuestDB in the background
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
- This package (`web-console`) is a GUI for QuestDB, it does not include QuestDB itself.\
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
- Check [README.md](https://github.com/questdb/questdb#install-questdb) of QuestDB to learn how to install it.
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
- If you have [`docker`](https://docs.docker.com/get-docker/), then it is simply:
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
- ## Build production version
57
+ E2E tests require a running QuestDB server. The tests connect to `localhost:9000` by default.
76
58
 
77
- 1. Make sure dependencies are set up:
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
- Tests are written with [Cypress](https://www.cypress.io/) E2E framework.
66
+ ## Contributing
133
67
 
134
- 1. start `web-console` local dev environment as explained above in this document.
135
- 2. run tests with
136
- ```
137
- yarn workspace browser-tests test
138
- ```
68
+ We always welcome contributions from the community!
139
69
 
140
- or
70
+ If you need help, here are some useful links:
141
71
 
142
- ```
143
- yarn workspace browser-tests run cypress open
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/)