-
Notifications
You must be signed in to change notification settings - Fork 7
refactor: frontend #184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
refactor: frontend #184
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
8b9e85e
refactor: replace Heroicons with Onyx icons across the application
a-klos 2773e05
feat: enhance sitemap extraction with new parser functions and settings
a-klos 323d73c
feat: Enhance answer generation prompt and improve chat API authentic…
a-klos 9f7da38
feat: Implement dynamic chat URL resolution based on environment vari…
a-klos 5ce9fa0
feat: Add document icon utility for dynamic icon resolution based on …
a-klos 9033068
fix: Correct icon import in SideBarContainer component
a-klos bc3182a
feat: Enhance accessibility and focus management in DocumentItem comp…
a-klos bd3e335
feat: Add sources panel functionality with toggle and reveal capabili…
a-klos 5a73c65
fix: Update user avatar path to include version query parameter for c…
a-klos 8af5f7f
fix: Increase retry limits and timeout error message clarity in sourc…
a-klos 9ee8e39
chore: merge main
a-klos 342643e
refactor: Remove unused reranker settings and update model reference …
a-klos 681de27
refactor: Simplify chat URL computation and update sitemap parser type
a-klos 78e2d90
refactor: Reorder icon imports for consistency in DocumentUploadConta…
a-klos 7dc7ec9
refactor: Simplify axios configuration and improve environment variab…
a-klos 5ea51d1
refactor: Update environment variables in .env.development for consis…
a-klos f0f1120
refactor: Update environment variables and improve theme handling in …
a-klos df88ceb
refactor: Enhance clipboard utility functions and integrate into mark…
a-klos c306b32
refactor: Enhance chat message handling by adding rawText property an…
a-klos 91b9380
refactor: Reorder imports and streamline copyMessage function in Chat…
a-klos 219e32e
refactor: Improve copyMessage functionality and enhance clipboard uti…
a-klos 37c4767
refactor: Simplify chat authentication check and enhance HTML escapin…
a-klos be05c4b
refactor: Add Vite configuration and testing setup for admin and shar…
a-klos 6b2f847
fix: add shared-ui tsconfig for nx tests
a-klos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| VITE_API_URL=http://doctopus.localhost/api | ||
| VITE_ADMIN_URL=http://admin.doctopus.localhost/api | ||
| VITE_CHAT_URL=http://localhost:4200 | ||
| VITE_AUTH_USERNAME=foo | ||
| VITE_AUTH_PASSWORD=bar | ||
| VITE_CHAT_AUTH_ENABLED=false | ||
| VITE_API_URL=VITE_API_URL | ||
| VITE_ADMIN_URL=VITE_ADMIN_URL | ||
| VITE_CHAT_URL=VITE_CHAT_URL | ||
| VITE_AUTH_USERNAME=VITE_AUTH_USERNAME | ||
| VITE_AUTH_PASSWORD=VITE_AUTH_PASSWORD | ||
| VITE_CHAT_AUTH_ENABLED=VITE_CHAT_AUTH_ENABLED | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,6 @@ | ||
| /// <reference types="vite/client" /> | ||
| /* eslint-disable */ | ||
| declare module '*.vue' { | ||
| import type { DefineComponent } from 'vue'; | ||
| // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
| const component: DefineComponent<object, object, any>; | ||
| export default component; | ||
| } | ||
| import type { DefineComponent } from 'vue'; | ||
| const component: DefineComponent<object, object, unknown>; | ||
| export default component; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,6 @@ | ||
| /// <reference types="vite/client" /> | ||
| /* eslint-disable */ | ||
| declare module '*.vue' { | ||
| import type { DefineComponent } from 'vue'; | ||
| // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
| const component: DefineComponent<object, object, any>; | ||
| export default component; | ||
| } | ||
| import type { DefineComponent } from 'vue'; | ||
| const component: DefineComponent<object, object, unknown>; | ||
| export default component; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,20 @@ | ||
| #!/bin/sh | ||
| # Replace all environment variables starting with VITE_ in the files in /usr/share/nginx/html | ||
| for i in $(env | grep VITE_) | ||
| do | ||
| key=$(echo $i | cut -d '=' -f 1) | ||
| value=$(echo $i | cut -d '=' -f 2-) | ||
| # sed All files | ||
| # find /usr/share/nginx/html -type f -exec sed -i "s|${key}|${value}|g" '{}' + | ||
| # sed JS and CSS only | ||
| find /usr/share/nginx/html -type f \( -name '*.js' -o -name '*.css' \) -exec sed -i "s|${key}|${value}|g" '{}' + | ||
| # | ||
| # Notes: | ||
| # - This script is used to inject runtime env vars into a Vite-built static app by replacing | ||
| # placeholder strings (e.g. "VITE_API_URL") in built JS/CSS files. | ||
| # - It must correctly handle values containing spaces and "=". | ||
|
|
||
| TARGET_DIR="${TARGET_DIR:-/usr/share/nginx/html}" | ||
|
|
||
| env | grep '^VITE_' | while IFS= read -r line; do | ||
| key="${line%%=*}" | ||
| value="${line#*=}" | ||
|
|
||
| # Escape replacement string for sed (delimiter is "|") | ||
| escaped_value=$(printf '%s' "$value" | sed -e 's/[\\&|]/\\&/g') | ||
a-klos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| find "$TARGET_DIR" -type f \( -name '*.js' -o -name '*.css' \) \ | ||
| -exec sed -i "s|${key}|${escaped_value}|g" '{}' + | ||
| done | ||
2 changes: 1 addition & 1 deletion
2
services/frontend/libs/admin-app/data-access/document.api.mock.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.