Closed sabaimran closed 4 months ago
Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
To test locally,
yarn export
from src/interface/web
.web_client.py
APIs.Sample code for local testing in web_client.py
.
src/khoj/routers/web_client.py
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
─────────────────────────────────────────────────────────────────────────────────────┐
41: templates = Jinja2Templates([constants.web_directory, constants.next_js_director │
─────────────────────────────────────────────────────────────────────────────────────┘
@web_client.get("/", response_class=FileResponse)
@requires(["authenticated"], redirect="login_page")
def index(request: Request):
return templates.TemplateResponse(
"chat/index.html",
context={
"request": request,
},
)
user = request.user.object
user_picture = request.session.get("user", {}).get("picture")
has_documents = EntryAdapters.user_has_entries(user=user)
─────────────────────────────────┐
68: def index(request: Request): │
─────────────────────────────────┘
@web_client.post("/", response_class=FileResponse)
@requires(["authenticated"], redirect="login_page")
def index_post(request: Request):
return templates.TemplateResponse(
"chat/index.html",
context={
"request": request,
},
)
user = request.user.object
user_picture = request.session.get("user", {}).get("picture")
has_documents = EntryAdapters.user_has_entries(user=user)
────────────────────────────────────────┐
115: def search_page(request: Request): │
────────────────────────────────────────┘
@web_client.get("/chat", response_class=FileResponse)
@requires(["authenticated"], redirect="login_page")
def chat_page(request: Request):
return templates.TemplateResponse(
"chat/index.html",
context={
"request": request,
},
)
user = request.user.object
user_picture = request.session.get("user", {}).get("picture")
has_documents = EntryAdapters.user_has_entries(user=user)
─────────────────────────────────────────────────┐
415: def computer_config_page(request: Request): │
─────────────────────────────────────────────────┘
@web_client.get("/share/chat/{public_conversation_slug}", response_class=HTMLResponse)
def view_public_conversation(request: Request):
return templates.TemplateResponse(
"share/chat/index.html",
context={
"request": request,
},
)
public_conversation_slug = request.path_params.get("public_conversation_slug")
public_conversation = PublicConversationAdapters.get_public_conversation_by_slug(public_conversation_slug)
if not public_conversation:
The speaker icon (to talk back) is still non-functional. Mic is still non-functional.