Skip to content
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

Open WebUI App for Dashboard #3869

Draft
wants to merge 6 commits into
base: development
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions packages/playground/public/info/openwebui.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: Open WebUI
---

Open WebUI is an extensible, feature-rich, and user-friendly self-hosted AI platform designed to operate entirely offline. It supports various LLM runners like Ollama and OpenAI-compatible APIs, with built-in inference engine for RAG, making it a powerful AI deployment solution. For more details, check [Open WebUI documentation](https://www.manual.grid.tf/documentation/dashboard/solutions/openwebui.html).
mik-tf marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 2 additions & 0 deletions packages/playground/src/components/vm_deployment_table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ const filteredHeaders = computed(() => {
ProjectName.Presearch,
ProjectName.Umbrel,
ProjectName.Nextcloud,
ProjectName.Openwebui,
ProjectName.Funkwhale,
ProjectName.Casperlabs,
ProjectName.Mattermost,
Expand All @@ -358,6 +359,7 @@ const filteredHeaders = computed(() => {
ProjectName.Presearch,
ProjectName.Umbrel,
ProjectName.Nextcloud,
ProjectName.Openwebui,
ProjectName.Funkwhale,
ProjectName.Casperlabs,
ProjectName.Mattermost,
Expand Down
5 changes: 5 additions & 0 deletions packages/playground/src/constants/deployment_list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ export const deploymentListEnvironments = {
MATTERMOST_DOMAIN: false,
},

openwebui: {
SSH_KEY: _ssh,
OPENWEBUI_DOMAIN: "Open WebUI Domain",
},

owncloud: {
SSH_KEY: _ssh,
OWNCLOUD_DOMAIN: "Owncloud Domain",
Expand Down
22 changes: 22 additions & 0 deletions packages/playground/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,28 @@ function createApplicationsRoutes(): RouteRecordRaw[] {
},
},
},
{
path: DashboardRoutes.Applications.Openwebui,
component: () => import("../views/openwebui_view.vue"),
meta: {
title: "Open WebUI",
info: { page: "info/openwebui.md" },
navbarConfig: {
back: true,
path: [
{ title: "Deploy" },
{
title: "Applications",
disabled: false,
to: DashboardRoutes.Deploy.Applications,
},
{
title: "Open WebUI",
},
],
},
},
},
// {
// path: DashboardRoutes.Applications.Owncloud,
// component: () => import("../views/owncloud_view.vue"),
Expand Down
1 change: 1 addition & 0 deletions packages/playground/src/router/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ enum ApplicationRoutes {
Discourse = "/deploy/applications/discourse/",
Taiga = "/deploy/applications/taiga/",
Owncloud = "/deploy/applications/owncloud/",
Openwebui = "/deploy/applications/openwebui/",
Nextcloud = "/deploy/applications/nextcloud/",
Presearch = "/deploy/applications/presearch/",
Subsquid = "/deploy/applications/subsquid/",
Expand Down
3 changes: 3 additions & 0 deletions packages/playground/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export enum ProjectName {
Funkwhale = "Funkwhale",
Mastodon = "Mastodon",
Mattermost = "Mattermost",
Openwebui = "Openwebui",
Owncloud = "Owncloud",
Nextcloud = "Nextcloud",
Peertube = "Peertube",
Expand Down Expand Up @@ -141,6 +142,7 @@ export enum SolutionCode {
funkwhale = "fw",
taiga = "tg",
discourse = "dc",
openwebui = "oi",
owncloud = "oc",
nextcloud = "nc",
mattermost = "mm",
Expand Down Expand Up @@ -179,6 +181,7 @@ export const solutionType: { [key: string]: string } = {
kubernetes: "Kubernetes",
mattermost: "Mattermost",
nodepilot: "Node Pilot",
openwebui: "Open WebUI",
owncloud: "Owncloud",
nextcloud: "Nextcloud",
peertube: "Peertube",
Expand Down
1 change: 1 addition & 0 deletions packages/playground/src/utils/delete_deployment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export function solutionHasGateway(projectName: ProjectName) {
ProjectName.Taiga,
ProjectName.Wordpress,
ProjectName.Nextcloud,
ProjectName.Openwebui,
ProjectName.Gitea,
ProjectName.Jenkins,
ProjectName.Jitsi,
Expand Down
26 changes: 26 additions & 0 deletions packages/playground/src/views/openwebui_view.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<template>
<view-layout>
<TfOpenwebui />

<template #list>
<TfDeploymentList title="Open WebUI Instances" :project-name="name" />
</template>
</view-layout>
</template>

<script lang="ts">
import { ProjectName } from "../types";
import TfDeploymentList from "../weblets/tf_deployment_list.vue";
import TfOpenwebui from "../weblets/tf_openwebui.vue";

export default {
name: "OpenwebuiView",
components: {
TfOpenwebui,
TfDeploymentList,
},
setup() {
return { name: ProjectName.Openwebui };
},
};
</script>
7 changes: 7 additions & 0 deletions packages/playground/src/views/solutions_view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,13 @@ export default {
route: DashboardRoutes.Applications.StaticWebsite,
releaseDate: new Date("2024-11-13"),
},
{
title: "Open WebUI",
excerpt:
"Open WebUI is an extensible, feature-rich, and user-friendly self-hosted AI platform designed to operate entirely offline.",
icon: "openwebui.png",
route: DashboardRoutes.Applications.Openwebui,
},
{
title: "Nextcloud",
excerpt:
Expand Down
15 changes: 15 additions & 0 deletions packages/playground/src/weblets/tf_deployment_list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,20 @@
<IconActionBtn tooltip="Visit" icon="mdi-web" color="anchor" :href="'https://' + item.env.OWNCLOUD_DOMAIN" />
</template>

<template #Openwebui-actions="{ item }">
<IconActionBtn
tooltip="Show Details"
icon="mdi-eye-outline"
@click="openDialog(tabs[activeTab].value, item)"
/>
<IconActionBtn
tooltip="Open Open WebUI"
color="anchor"
icon="mdi-web"
:href="'https://' + item.env.OPENWEBUI_DOMAIN"
/>
</template>

<template #Nextcloud-actions="{ item }">
<IconActionBtn
tooltip="Show Details"
Expand Down Expand Up @@ -470,6 +484,7 @@ const tabs: Tab[] = [
{ title: "Discourse", value: "Discourse", imgPath: "images/icons/discourse.png" },
{ title: "Taiga", value: "Taiga", imgPath: "images/icons/taiga.png" },
{ title: "Owncloud", value: "Owncloud", imgPath: "images/icons/owncloud.png" },
{ title: "Open WebUI", value: "Openwebui", imgPath: "images/icons/openwebui.png" },
{ title: "Nextcloud", value: "Nextcloud", imgPath: "images/icons/nextcloud.png" },
{ title: "Presearch", value: "Presearch", imgPath: "images/icons/presearch.png" },
{ title: "Subsquid", value: "Subsquid", imgPath: "images/icons/subsquid.png" },
Expand Down
Loading
Loading