openobserve/web
dependabot[bot] fe32354aa4
chore(deps): bump elliptic from 6.5.7 to 6.6.0 in /web (#4953)
2024-10-30 23:09:01 +08:00
..
cypress/e2e zinc-observe initial commit 2023-02-02 09:03:11 +05:30
packages/rrweb-player fix: IAM resource type permissions (#3138) 2024-04-03 09:44:03 +05:30
public fix: added rum worker file inside src (#1850) 2023-11-03 10:10:57 +05:30
src feat: added Logstash data source in logs (#4957) 2024-10-30 22:13:36 +08:00
.eslintrc.cjs fix: bundle split (#3410) 2024-05-09 18:46:48 +05:30
.gitignore perf: UI code splitting (#1333) 2023-08-06 01:29:13 +08:00
.prettierrc.json zinc-observe initial commit 2023-02-02 09:03:11 +05:30
README.md feat: rename zincobserve to openobserve (#848) 2023-05-31 11:29:10 +08:00
cypress.config.ts chore: rename zinc to OpenObserve (#4807) 2024-10-16 10:12:34 -07:00
env.d.ts zinc-observe initial commit 2023-02-02 09:03:11 +05:30
eslint.sh zinc-observe initial commit 2023-02-02 09:03:11 +05:30
index.html fix: removed google fonts and loaded to local (#3408) 2024-05-03 14:31:50 +05:30
package-lock.json chore(deps): bump elliptic from 6.5.7 to 6.6.0 in /web (#4953) 2024-10-30 23:09:01 +08:00
package.json feat: color palette for dashboard chart (#4774) 2024-10-30 15:25:00 +05:30
postcss.config.js chore: added tailwind css (#3718) 2024-07-02 13:09:54 +05:30
quasar.conf.js chore: rename zinc to OpenObserve (#4807) 2024-10-16 10:12:34 -07:00
sbom.json docs: added the generated sbom for js (#3315) 2024-04-23 12:04:13 +02:00
serve.json fix: csp unsafe-eval fixes (#3118) 2024-04-03 12:49:25 +05:30
tailwind.config.js chore: added tailwind css (#3718) 2024-07-02 13:09:54 +05:30
tsconfig.app.json feat: Npm package upgrade (#3984) 2024-07-22 13:54:34 +05:30
tsconfig.config.json feat: Npm package upgrade (#3984) 2024-07-22 13:54:34 +05:30
tsconfig.json feat: data ingestion pipeline (#3282) 2024-05-06 19:31:46 +05:30
tsconfig.node.json zinc-observe initial commit 2023-02-02 09:03:11 +05:30
tsconfig.vitest.json feat: Npm package upgrade (#3984) 2024-07-22 13:54:34 +05:30
tsconfig.vitest.tsbuildinfo feat: Npm package upgrade (#3984) 2024-07-22 13:54:34 +05:30
vite.config.ts chore: rename zinc to OpenObserve (#4807) 2024-10-16 10:12:34 -07:00

README.md

web

This template should help get you started developing with Vue 3 in Vite.

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Type Support for .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue types.

If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:

  1. Disable the built-in TypeScript Extension
    1. Run Extensions: Show Built-in Extensions from VSCode's command palette
    2. Find TypeScript and JavaScript Language Features, right click and select Disable (Workspace)
  2. Reload the VSCode window by running Developer: Reload Window from the command palette.

Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

Compile and Hot-Reload for Development

For stand-alone UI development environment, create .env file and which contains below environment variable

VITE_OPENOBSERVE_ENDPOINT=http://localhost:5080/
npm run dev

Type-Check, Compile and Minify for Production

npm run build

Run Unit Tests with Vitest

npm run test:unit

Run End-to-End Tests with Cypress

npm run test:e2e:dev

This runs the end-to-end tests against the Vite development server. It is much faster than the production build.

But it's still recommended to test the production build with test:e2e before deploying (e.g. in CI environments):

npm run build
npm run test:e2e

Lint with ESLint

npm run lint