Josh Hawkins
171a142adb
optional env var for easier development ( #11426 )
2024-05-18 18:49:38 -06:00
Blake Blackshear
1133202cbd
Auth! ( #11347 )
...
* reload the window on 401
* backend apis for auth
* add login page
* re-enable web linter
* fix login page routing
* bypass csrf for internal auth endpoint
* disable healthcheck in devcontainer target
* include login page in vite build
* redirect to login page on 401
* implement config for users and settings
* implement JWT actual secret
* add brute force protection on login
* add support for redirecting from auth failures on api calls
* return location for redirect
* default cookie name should pass regex test
* set hash iterations to current OWASP recommendation
* move users to database instead of config
* config option to reset admin password on startup
* user management UI
* check for deleted user on refresh
* validate username and fixes
* remove password constraint
* cleanup
* fix user check on refresh
* web fixes
* implement auth via new external port
* use x-forwarded-for to rate limit login attempts by ip
* implement logout and profile
* fixes
* lint fixes
* add support for user passthru from upstream proxies
* add support for specifying a logout url
* add documentation
* Update docs/docs/configuration/authentication.md
Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
* Update docs/docs/configuration/authentication.md
Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
---------
Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
2024-05-18 10:36:13 -06:00
Nicolas Mowen
0096a6d778
Implement general page of system graphs ( #10815 )
...
* Reorganize stats and show graphs in system metrics
* Break apart all cpu / mem graphs
* Auto update stats
* Show camera graphs
* Get system graphs working for inference time
* Update stats every 10 seconds, keeping the last 10 minutes
* Use types for thresholds
* Use keys api
* Break system metrics into different pages
* Add dialog for viewing and copying vainfo
* remove unused for now
* Formatting
* Make tooltip match theme
* Make betters color in light mode
* Include gpu
* Make scaling consistent
* Fix name
* address feedback
2024-04-03 21:22:11 -06:00
Nicolas Mowen
59335c0628
Redesign log page and pull logs in chunks ( #10809 )
...
* Redesign log page to have formatting
* Support other log types as well
* fix border
* Support log data format
* Only load necessary logs
* Load incrementally
* Cleanup
* Cleanup
* Render all items
* avoid flashing scroll to bottom
* Fix not listening at first
* Always ensure logLine is defined
* Group logs based on timestamp
* Formatting
* remove scrollbar
* Don't repull when there are no items to pull
* Add newline to end
* Fix log lines missing
* typo
2024-04-03 11:55:13 -05:00
Nicolas Mowen
3bf2a496e1
Fix linter and fix lint issues ( #10141 )
2024-02-28 16:23:56 -06:00
Blake Blackshear
bdebb99b5a
Use new UI ( #8983 )
...
* fixup build
* swap frontends
2024-01-31 12:56:11 +00:00
Josh Hawkins
a4f5ad3a94
Proxy websockets in devcontainers ( #8886 )
...
* proxy websockets
* remove whitespace
2023-12-08 01:08:35 +00:00
tpjanssen
08777100b5
Add /vod and /exports to Vite proxy config ( #8490 )
2023-11-06 06:44:53 -06:00
Blake Blackshear
14d2b79c72
Security fixes ( #8081 )
...
* use safeloader
* use json responses wherever possible
* remove CORS and add CSRF token
* formatting fixes
* add envjs back
* fix baseurl test
2023-10-06 22:20:30 -05:00
Blake Blackshear
63260119fb
Frontend deps ( #4824 )
...
* Bump fake-indexeddb from 4.0.0 to 4.0.1 in /web
Bumps [fake-indexeddb](https://github.com/dumbmatter/fakeIndexedDB ) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/dumbmatter/fakeIndexedDB/releases )
- [Changelog](https://github.com/dumbmatter/fakeIndexedDB/blob/master/CHANGELOG.md )
- [Commits](https://github.com/dumbmatter/fakeIndexedDB/compare/v4.0.0...v4.0.1 )
---
updated-dependencies:
- dependency-name: fake-indexeddb
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump @types/video.js from 7.3.49 to 7.3.50 in /web
Bumps [@types/video.js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/video.js ) from 7.3.49 to 7.3.50.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/video.js )
---
updated-dependencies:
- dependency-name: "@types/video.js"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump @typescript-eslint/eslint-plugin from 5.44.0 to 5.47.1 in /web
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 5.44.0 to 5.47.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.47.1/packages/eslint-plugin )
---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump axios from 1.2.0 to 1.2.2 in /web
Bumps [axios](https://github.com/axios/axios ) from 1.2.0 to 1.2.2.
- [Release notes](https://github.com/axios/axios/releases )
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md )
- [Commits](https://github.com/axios/axios/compare/v1.2.0...1.2.2 )
---
updated-dependencies:
- dependency-name: axios
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* json5 vulnerability
* update linters
* reformat
* dev deps
* more deps
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-30 09:48:22 -06:00
Nicolas Mowen
7953d131ae
Fix monaco editor issues ( #4724 )
...
* Add sub filter for monaco editor
* Don't include files for unused languages
* Move necessary files and cleanup build
* Update sub filter for new location
* Still need to include default editor worker
* Fix error when model already exists
2022-12-17 17:55:41 -06:00
Nicolas Mowen
7888059c9f
Add config editor to webUI ( #4608 )
...
* Add raw config endpoint
* Add config editor
* Add code editor
* Add error
* Add ability to copy config
* Only show the save button when code has been edited
* Update errors
* Remove debug config from system page
* Break out config saving steps to pinpoint where error occurred.
* Show correct config errors
* Switch to monaco editor
* Adjust UI colors and behavior
* Get yaml validation working
* Set success color
2022-12-07 07:36:56 -06:00
Blake Blackshear
9c9220979e
Update web deps ( #4383 )
...
* Bump jest from 27.5.1 to 29.3.1 in /web
Bumps [jest](https://github.com/facebook/jest/tree/HEAD/packages/jest ) from 27.5.1 to 29.3.1.
- [Release notes](https://github.com/facebook/jest/releases )
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/facebook/jest/commits/v29.3.1/packages/jest )
---
updated-dependencies:
- dependency-name: jest
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump msw from 0.38.2 to 0.48.0 in /web
Bumps [msw](https://github.com/mswjs/msw ) from 0.38.2 to 0.48.0.
- [Release notes](https://github.com/mswjs/msw/releases )
- [Changelog](https://github.com/mswjs/msw/blob/main/CHANGELOG.md )
- [Commits](https://github.com/mswjs/msw/compare/v0.38.2...v0.48.0 )
---
updated-dependencies:
- dependency-name: msw
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump idb-keyval from 6.1.0 to 6.2.0 in /web
Bumps [idb-keyval](https://github.com/jakearchibald/idb-keyval ) from 6.1.0 to 6.2.0.
- [Release notes](https://github.com/jakearchibald/idb-keyval/releases )
- [Changelog](https://github.com/jakearchibald/idb-keyval/blob/main/CHANGELOG.md )
- [Commits](https://github.com/jakearchibald/idb-keyval/compare/v6.1.0...v6.2.0 )
---
updated-dependencies:
- dependency-name: idb-keyval
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump @babel/preset-typescript from 7.16.7 to 7.18.6 in /web
Bumps [@babel/preset-typescript](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-typescript ) from 7.16.7 to 7.18.6.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.18.6/packages/babel-preset-typescript )
---
updated-dependencies:
- dependency-name: "@babel/preset-typescript"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump typescript from 4.6.2 to 4.8.4 in /web
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.6.2 to 4.8.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.6.2...v4.8.4 )
---
updated-dependencies:
- dependency-name: typescript
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump @testing-library/user-event from 13.5.0 to 14.4.3 in /web
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event ) from 13.5.0 to 14.4.3.
- [Release notes](https://github.com/testing-library/user-event/releases )
- [Changelog](https://github.com/testing-library/user-event/blob/main/CHANGELOG.md )
- [Commits](https://github.com/testing-library/user-event/compare/v13.5.0...v14.4.3 )
---
updated-dependencies:
- dependency-name: "@testing-library/user-event"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump preact-router from 4.0.1 to 4.1.0 in /web
Bumps [preact-router](https://github.com/preactjs/preact-router ) from 4.0.1 to 4.1.0.
- [Release notes](https://github.com/preactjs/preact-router/releases )
- [Commits](https://github.com/preactjs/preact-router/compare/4.0.1...4.1.0 )
---
updated-dependencies:
- dependency-name: preact-router
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump axios from 0.26.0 to 1.1.3 in /web
Bumps [axios](https://github.com/axios/axios ) from 0.26.0 to 1.1.3.
- [Release notes](https://github.com/axios/axios/releases )
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md )
- [Commits](https://github.com/axios/axios/compare/v0.26.0...v1.1.3 )
---
updated-dependencies:
- dependency-name: axios
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump @preact/preset-vite from 2.1.7 to 2.4.0 in /web
Bumps [@preact/preset-vite](https://github.com/preactjs/preset-vite ) from 2.1.7 to 2.4.0.
- [Release notes](https://github.com/preactjs/preset-vite/releases )
- [Commits](https://github.com/preactjs/preset-vite/compare/v2.1.7...v2.4.0 )
---
updated-dependencies:
- dependency-name: "@preact/preset-vite"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump @testing-library/jest-dom from 5.16.2 to 5.16.5 in /web
Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom ) from 5.16.2 to 5.16.5.
- [Release notes](https://github.com/testing-library/jest-dom/releases )
- [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md )
- [Commits](https://github.com/testing-library/jest-dom/compare/v5.16.2...v5.16.5 )
---
updated-dependencies:
- dependency-name: "@testing-library/jest-dom"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* revamp frontend
* disable broken tests
* disable a few more tests
* update typescript
* couple docs updates
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-13 10:31:36 -06:00
Blake Blackshear
95fe62e141
switch to vite
2022-03-11 07:49:06 -06:00