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

11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
  1. import { API_BASE } from "./constants";
  2. export default {
  3. home: () => {
  4. return "/";
  5. },
  6. Main: () => {
  7. return "/Main";
  8. },
  9. login: (noTry = false) => {
  10. return `/login${noTry ? "?nt=1" : ""}`;
  11. },
  12. homeType:{
  13. PolicyLibrary: () => {
  14. return "/home/PolicyLibrary";
  15. },
  16. Tendency: () => {
  17. return "/home/Tendency";
  18. },
  19. DataAnalysis: () => {
  20. return "/home/DataAnalysis";
  21. },
  22. ReportGeneration:() =>{
  23. return "/home/ReportGeneration";
  24. },
  25. GeneralView:() =>{
  26. return "/home/GeneralView";
  27. },
  28. },
  29. onboarding: {
  30. home: () => {
  31. return "/onboarding";
  32. },
  33. survey: () => {
  34. return "/onboarding/survey";
  35. },
  36. llmPreference: () => {
  37. return "/onboarding/llm-preference";
  38. },
  39. embeddingPreference: () => {
  40. return "/onboarding/embedding-preference";
  41. },
  42. vectorDatabase: () => {
  43. return "/onboarding/vector-database";
  44. },
  45. userSetup: () => {
  46. return "/onboarding/user-setup";
  47. },
  48. dataHandling: () => {
  49. return "/onboarding/data-handling";
  50. },
  51. createWorkspace: () => {
  52. return "/onboarding/create-workspace";
  53. },
  54. },
  55. github: () => {
  56. return "https://github.com/Mintplex-Labs/anything-llm";
  57. },
  58. discord: () => {
  59. return "https://discord.com/invite/6UyHPeGZAC";
  60. },
  61. docs: () => {
  62. return "https://docs.anythingllm.com";
  63. },
  64. mailToMintplex: () => {
  65. return "mailto:team@mintplexlabs.com";
  66. },
  67. hosting: () => {
  68. return "https://my.mintplexlabs.com/aio-checkout?product=anythingllm";
  69. },
  70. workspace: {
  71. chat: (slug) => {
  72. return `/workspace/${slug}`;
  73. },
  74. settings: {
  75. generalAppearance: (slug) => {
  76. return `/workspace/${slug}/settings/general-appearance`;
  77. },
  78. chatSettings: (slug) => {
  79. return `/workspace/${slug}/settings/chat-settings`;
  80. },
  81. vectorDatabase: (slug) => {
  82. return `/workspace/${slug}/settings/vector-database`;
  83. },
  84. members: (slug) => {
  85. return `/workspace/${slug}/settings/members`;
  86. },
  87. agentConfig: (slug) => {
  88. return `/workspace/${slug}/settings/agent-config`;
  89. },
  90. },
  91. thread: (wsSlug, threadSlug) => {
  92. return `/workspace/${wsSlug}/t/${threadSlug}`;
  93. },
  94. },
  95. apiDocs: () => {
  96. return `${API_BASE}/docs`;
  97. },
  98. settings: {
  99. users: () => {{}
  100. return `/settings/users`;
  101. },
  102. section: () => {
  103. return `/settings/section`;
  104. },
  105. invites: () => {
  106. return `/settings/invites`;
  107. },
  108. workspaces: () => {
  109. return `/settings/workspaces`;
  110. },
  111. chats: () => {
  112. return "/settings/workspace-chats";
  113. },
  114. llmPreference: () => {
  115. return "/settings/llm-preference";
  116. },
  117. transcriptionPreference: () => {
  118. return "/settings/transcription-preference";
  119. },
  120. audioPreference: () => {
  121. return "/settings/audio-preference";
  122. },
  123. embedder: {
  124. modelPreference: () => "/settings/embedding-preference",
  125. chunkingPreference: () => "/settings/text-splitter-preference",
  126. },
  127. embeddingPreference: () => {
  128. return "/settings/embedding-preference";
  129. },
  130. vectorDatabase: () => {
  131. return "/settings/vector-database";
  132. },
  133. security: () => {
  134. return "/settings/security";
  135. },
  136. appearance: () => {
  137. return "/settings/appearance";
  138. },
  139. agentSkills: () => {
  140. return "/settings/agents";
  141. },
  142. apiKeys: () => {
  143. return "/settings/api-keys";
  144. },
  145. logs: () => {
  146. return "/settings/event-logs";
  147. },
  148. privacy: () => {
  149. return "/settings/privacy";
  150. },
  151. embedSetup: () => {
  152. return `/settings/embed-config`;
  153. },
  154. embedChats: () => {
  155. return `/settings/embed-chats`;
  156. },
  157. browserExtension: () => {
  158. return `/settings/browser-extension`;
  159. },
  160. experimental: () => {
  161. return `/settings/beta-features`;
  162. },
  163. },
  164. agents: {
  165. builder: () => {
  166. return `/settings/agents/builder`;
  167. },
  168. editAgent: (uuid) => {
  169. return `/settings/agents/builder/${uuid}`;
  170. },
  171. },
  172. communityHub: {
  173. website: () => {
  174. return import.meta.env.DEV
  175. ? `http://localhost:5173`
  176. : `https://hub.anythingllm.com`;
  177. },
  178. /**
  179. * View more items of a given type on the community hub.
  180. * @param {string} type - The type of items to view more of. Should be kebab-case.
  181. * @returns {string} The path to view more items of the given type.
  182. */
  183. viewMoreOfType: function (type) {
  184. return `${this.website()}/list/${type}`;
  185. },
  186. trending: () => {
  187. return `/settings/community-hub/trending`;
  188. },
  189. authentication: () => {
  190. return `/settings/community-hub/authentication`;
  191. },
  192. importItem: (importItemId) => {
  193. return `/settings/community-hub/import-item${importItemId ? `?id=${importItemId}` : ""}`;
  194. },
  195. profile: function (username) {
  196. if (username) return `${this.website()}/u/${username}`;
  197. return `${this.website()}/me`;
  198. },
  199. noPrivateItems: () => {
  200. return "https://docs.anythingllm.com/community-hub/faq#no-private-items";
  201. },
  202. },
  203. experimental: {
  204. liveDocumentSync: {
  205. manage: () => `/settings/beta-features/live-document-sync/manage`,
  206. },
  207. },
  208. };