2023-07-15 02:32:30 +02:00
|
|
|
import { API_BASE } from "./constants";
|
|
|
|
|
2023-06-04 04:28:07 +02:00
|
|
|
export default {
|
|
|
|
home: () => {
|
|
|
|
return "/";
|
|
|
|
},
|
2024-03-27 00:47:25 +01:00
|
|
|
login: (noTry = false) => {
|
|
|
|
return `/login${noTry ? "?nt=1" : ""}`;
|
2023-10-23 22:10:34 +02:00
|
|
|
},
|
2024-01-05 00:54:31 +01:00
|
|
|
onboarding: {
|
|
|
|
home: () => {
|
|
|
|
return "/onboarding";
|
|
|
|
},
|
|
|
|
survey: () => {
|
|
|
|
return "/onboarding/survey";
|
|
|
|
},
|
|
|
|
llmPreference: () => {
|
|
|
|
return "/onboarding/llm-preference";
|
|
|
|
},
|
|
|
|
embeddingPreference: () => {
|
|
|
|
return "/onboarding/embedding-preference";
|
|
|
|
},
|
|
|
|
vectorDatabase: () => {
|
|
|
|
return "/onboarding/vector-database";
|
|
|
|
},
|
|
|
|
userSetup: () => {
|
|
|
|
return "/onboarding/user-setup";
|
|
|
|
},
|
|
|
|
dataHandling: () => {
|
|
|
|
return "/onboarding/data-handling";
|
|
|
|
},
|
|
|
|
createWorkspace: () => {
|
|
|
|
return "/onboarding/create-workspace";
|
|
|
|
},
|
2023-10-23 22:10:34 +02:00
|
|
|
},
|
2023-06-04 04:28:07 +02:00
|
|
|
github: () => {
|
2023-06-08 23:26:29 +02:00
|
|
|
return "https://github.com/Mintplex-Labs/anything-llm";
|
2023-06-04 04:28:07 +02:00
|
|
|
},
|
2023-07-21 21:05:39 +02:00
|
|
|
discord: () => {
|
2023-06-08 23:26:29 +02:00
|
|
|
return "https://discord.com/invite/6UyHPeGZAC";
|
2023-06-04 04:28:07 +02:00
|
|
|
},
|
2023-07-21 21:05:39 +02:00
|
|
|
docs: () => {
|
2023-08-12 02:28:30 +02:00
|
|
|
return "https://docs.useanything.com";
|
2023-07-21 21:05:39 +02:00
|
|
|
},
|
2023-06-04 04:28:07 +02:00
|
|
|
mailToMintplex: () => {
|
2023-08-12 02:28:30 +02:00
|
|
|
return "mailto:team@mintplexlabs.com";
|
2023-06-04 04:28:07 +02:00
|
|
|
},
|
2023-06-08 23:26:29 +02:00
|
|
|
hosting: () => {
|
2023-08-12 02:28:30 +02:00
|
|
|
return "https://my.mintplexlabs.com/aio-checkout?product=anythingllm";
|
|
|
|
},
|
2023-06-04 04:28:07 +02:00
|
|
|
workspace: {
|
|
|
|
chat: (slug) => {
|
|
|
|
return `/workspace/${slug}`;
|
|
|
|
},
|
2024-02-15 00:29:49 +01:00
|
|
|
settings: {
|
|
|
|
generalAppearance: (slug) => {
|
|
|
|
return `/workspace/${slug}/settings/general-appearance`;
|
|
|
|
},
|
|
|
|
chatSettings: (slug) => {
|
|
|
|
return `/workspace/${slug}/settings/chat-settings`;
|
|
|
|
},
|
|
|
|
vectorDatabase: (slug) => {
|
|
|
|
return `/workspace/${slug}/settings/vector-database`;
|
|
|
|
},
|
2024-04-02 23:53:35 +02:00
|
|
|
members: (slug) => {
|
|
|
|
return `/workspace/${slug}/settings/members`;
|
|
|
|
},
|
2024-04-16 19:50:10 +02:00
|
|
|
agentConfig: (slug) => {
|
|
|
|
return `/workspace/${slug}/settings/agent-config`;
|
|
|
|
},
|
2024-02-06 20:24:33 +01:00
|
|
|
},
|
2024-02-09 03:37:22 +01:00
|
|
|
thread: (wsSlug, threadSlug) => {
|
|
|
|
return `/workspace/${wsSlug}/t/${threadSlug}`;
|
|
|
|
},
|
2023-06-04 04:28:07 +02:00
|
|
|
},
|
2023-08-24 04:15:07 +02:00
|
|
|
apiDocs: () => {
|
|
|
|
return `${API_BASE}/docs`;
|
|
|
|
},
|
2023-11-13 23:51:16 +01:00
|
|
|
settings: {
|
|
|
|
system: () => {
|
|
|
|
return `/settings/system-preferences`;
|
|
|
|
},
|
|
|
|
users: () => {
|
|
|
|
return `/settings/users`;
|
|
|
|
},
|
|
|
|
invites: () => {
|
|
|
|
return `/settings/invites`;
|
|
|
|
},
|
|
|
|
workspaces: () => {
|
|
|
|
return `/settings/workspaces`;
|
|
|
|
},
|
|
|
|
chats: () => {
|
|
|
|
return "/settings/workspace-chats";
|
|
|
|
},
|
2023-10-23 22:10:34 +02:00
|
|
|
llmPreference: () => {
|
2023-11-13 23:51:16 +01:00
|
|
|
return "/settings/llm-preference";
|
2023-10-23 22:10:34 +02:00
|
|
|
},
|
2024-03-14 23:43:26 +01:00
|
|
|
transcriptionPreference: () => {
|
|
|
|
return "/settings/transcription-preference";
|
|
|
|
},
|
2024-05-14 20:57:21 +02:00
|
|
|
audioPreference: () => {
|
|
|
|
return "/settings/audio-preference";
|
|
|
|
},
|
2024-04-07 01:38:07 +02:00
|
|
|
embedder: {
|
|
|
|
modelPreference: () => "/settings/embedding-preference",
|
|
|
|
chunkingPreference: () => "/settings/text-splitter-preference",
|
|
|
|
},
|
2023-10-30 23:44:03 +01:00
|
|
|
embeddingPreference: () => {
|
2023-11-13 23:51:16 +01:00
|
|
|
return "/settings/embedding-preference";
|
2023-10-30 23:44:03 +01:00
|
|
|
},
|
2023-10-23 22:10:34 +02:00
|
|
|
vectorDatabase: () => {
|
2023-11-13 23:51:16 +01:00
|
|
|
return "/settings/vector-database";
|
2023-10-23 22:10:34 +02:00
|
|
|
},
|
|
|
|
security: () => {
|
2023-11-13 23:51:16 +01:00
|
|
|
return "/settings/security";
|
2023-10-23 22:10:34 +02:00
|
|
|
},
|
|
|
|
appearance: () => {
|
2023-11-13 23:51:16 +01:00
|
|
|
return "/settings/appearance";
|
2023-10-23 22:10:34 +02:00
|
|
|
},
|
|
|
|
apiKeys: () => {
|
2023-11-13 23:51:16 +01:00
|
|
|
return "/settings/api-keys";
|
2023-07-25 19:37:04 +02:00
|
|
|
},
|
[FEAT] Automated audit logging (#667)
* WIP event logging - new table for events and new settings view for viewing
* WIP add logging
* UI for log rows
* rename files to Logging to prevent getting gitignore
* add metadata for all logging events and colored badges in logs page
* remove unneeded comment
* cleanup namespace for logging
* clean up backend calls
* update logging to show to => from settings changes
* add logging for invitations, created, deleted, and accepted
* add logging for user created, updated, suspended, or removed
* add logging for workspace deleted
* add logging for chat logs exported
* add logging for API keys, LLM, embedder, vector db, embed chat, and reset button
* modify event logs
* update to event log types
* simplify rendering of event badges
---------
Co-authored-by: timothycarambat <rambat1010@gmail.com>
2024-02-07 00:21:40 +01:00
|
|
|
logs: () => {
|
|
|
|
return "/settings/event-logs";
|
|
|
|
},
|
2024-03-15 00:56:15 +01:00
|
|
|
privacy: () => {
|
|
|
|
return "/settings/privacy";
|
|
|
|
},
|
2024-02-05 23:21:34 +01:00
|
|
|
embedSetup: () => {
|
|
|
|
return `/settings/embed-config`;
|
|
|
|
},
|
|
|
|
embedChats: () => {
|
|
|
|
return `/settings/embed-chats`;
|
|
|
|
},
|
2023-07-25 19:37:04 +02:00
|
|
|
},
|
2023-06-04 04:28:07 +02:00
|
|
|
};
|