You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
210 lines
5.1 KiB
210 lines
5.1 KiB
import { API_BASE } from "./constants";
|
|
|
|
export default {
|
|
home: () => {
|
|
return "/";
|
|
},
|
|
Main: () => {
|
|
return "/Main";
|
|
},
|
|
login: (noTry = false) => {
|
|
return `/login${noTry ? "?nt=1" : ""}`;
|
|
},
|
|
homeType:{
|
|
PolicyLibrary: () => {
|
|
return "/home/PolicyLibrary";
|
|
},
|
|
Tendency: () => {
|
|
return "/home/Tendency";
|
|
},
|
|
DataAnalysis: () => {
|
|
return "/home/DataAnalysis";
|
|
},
|
|
ReportGeneration:() =>{
|
|
return "/home/ReportGeneration";
|
|
},
|
|
GeneralView:() =>{
|
|
return "/home/GeneralView";
|
|
},
|
|
},
|
|
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";
|
|
},
|
|
},
|
|
github: () => {
|
|
return "https://github.com/Mintplex-Labs/anything-llm";
|
|
},
|
|
discord: () => {
|
|
return "https://discord.com/invite/6UyHPeGZAC";
|
|
},
|
|
docs: () => {
|
|
return "https://docs.anythingllm.com";
|
|
},
|
|
mailToMintplex: () => {
|
|
return "mailto:team@mintplexlabs.com";
|
|
},
|
|
hosting: () => {
|
|
return "https://my.mintplexlabs.com/aio-checkout?product=anythingllm";
|
|
},
|
|
workspace: {
|
|
chat: (slug) => {
|
|
return `/workspace/${slug}`;
|
|
},
|
|
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`;
|
|
},
|
|
members: (slug) => {
|
|
return `/workspace/${slug}/settings/members`;
|
|
},
|
|
agentConfig: (slug) => {
|
|
return `/workspace/${slug}/settings/agent-config`;
|
|
},
|
|
},
|
|
thread: (wsSlug, threadSlug) => {
|
|
return `/workspace/${wsSlug}/t/${threadSlug}`;
|
|
},
|
|
},
|
|
apiDocs: () => {
|
|
return `${API_BASE}/docs`;
|
|
},
|
|
settings: {
|
|
users: () => {{}
|
|
return `/settings/users`;
|
|
},
|
|
section: () => {
|
|
return `/settings/section`;
|
|
},
|
|
invites: () => {
|
|
return `/settings/invites`;
|
|
},
|
|
workspaces: () => {
|
|
return `/settings/workspaces`;
|
|
},
|
|
chats: () => {
|
|
return "/settings/workspace-chats";
|
|
},
|
|
llmPreference: () => {
|
|
return "/settings/llm-preference";
|
|
},
|
|
transcriptionPreference: () => {
|
|
return "/settings/transcription-preference";
|
|
},
|
|
audioPreference: () => {
|
|
return "/settings/audio-preference";
|
|
},
|
|
embedder: {
|
|
modelPreference: () => "/settings/embedding-preference",
|
|
chunkingPreference: () => "/settings/text-splitter-preference",
|
|
},
|
|
embeddingPreference: () => {
|
|
return "/settings/embedding-preference";
|
|
},
|
|
vectorDatabase: () => {
|
|
return "/settings/vector-database";
|
|
},
|
|
security: () => {
|
|
return "/settings/security";
|
|
},
|
|
appearance: () => {
|
|
return "/settings/appearance";
|
|
},
|
|
agentSkills: () => {
|
|
return "/settings/agents";
|
|
},
|
|
apiKeys: () => {
|
|
return "/settings/api-keys";
|
|
},
|
|
logs: () => {
|
|
return "/settings/event-logs";
|
|
},
|
|
privacy: () => {
|
|
return "/settings/privacy";
|
|
},
|
|
embedSetup: () => {
|
|
return `/settings/embed-config`;
|
|
},
|
|
embedChats: () => {
|
|
return `/settings/embed-chats`;
|
|
},
|
|
browserExtension: () => {
|
|
return `/settings/browser-extension`;
|
|
},
|
|
experimental: () => {
|
|
return `/settings/beta-features`;
|
|
},
|
|
},
|
|
agents: {
|
|
builder: () => {
|
|
return `/settings/agents/builder`;
|
|
},
|
|
editAgent: (uuid) => {
|
|
return `/settings/agents/builder/${uuid}`;
|
|
},
|
|
},
|
|
communityHub: {
|
|
website: () => {
|
|
return import.meta.env.DEV
|
|
? `http://localhost:5173`
|
|
: `https://hub.anythingllm.com`;
|
|
},
|
|
/**
|
|
* View more items of a given type on the community hub.
|
|
* @param {string} type - The type of items to view more of. Should be kebab-case.
|
|
* @returns {string} The path to view more items of the given type.
|
|
*/
|
|
viewMoreOfType: function (type) {
|
|
return `${this.website()}/list/${type}`;
|
|
},
|
|
trending: () => {
|
|
return `/settings/community-hub/trending`;
|
|
},
|
|
authentication: () => {
|
|
return `/settings/community-hub/authentication`;
|
|
},
|
|
importItem: (importItemId) => {
|
|
return `/settings/community-hub/import-item${importItemId ? `?id=${importItemId}` : ""}`;
|
|
},
|
|
profile: function (username) {
|
|
if (username) return `${this.website()}/u/${username}`;
|
|
return `${this.website()}/me`;
|
|
},
|
|
noPrivateItems: () => {
|
|
return "https://docs.anythingllm.com/community-hub/faq#no-private-items";
|
|
},
|
|
},
|
|
|
|
experimental: {
|
|
liveDocumentSync: {
|
|
manage: () => `/settings/beta-features/live-document-sync/manage`,
|
|
},
|
|
},
|
|
};
|