mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-11 16:26:02 +00:00
feat: migrate cloud service URL configuration and update database version to 17
This commit is contained in:
@@ -11,7 +11,7 @@ import {
|
||||
Settings,
|
||||
FileText,
|
||||
} from 'lucide-react';
|
||||
import { getCloudServiceClientSync } from '@/app/infra/http';
|
||||
import { getCloudServiceClientSync, systemInfo } from '@/app/infra/http';
|
||||
import { httpClient } from '@/app/infra/http/HttpClient';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import {
|
||||
@@ -203,6 +203,7 @@ export default function PluginCardComponent({
|
||||
} else if (cardVO.install_source === 'marketplace') {
|
||||
window.open(
|
||||
getCloudServiceClientSync().getPluginMarketplaceURL(
|
||||
systemInfo.cloud_service_url,
|
||||
cardVO.author,
|
||||
cardVO.name,
|
||||
),
|
||||
|
||||
@@ -81,8 +81,12 @@ export class CloudServiceClient extends BaseHttpClient {
|
||||
return `${this.baseURL}/api/v1/marketplace/plugins/${author}/${pluginName}/resources/assets/${filepath}`;
|
||||
}
|
||||
|
||||
public getPluginMarketplaceURL(author: string, name: string): string {
|
||||
return `https://space.langbot.app/market/${author}/${name}`;
|
||||
public getPluginMarketplaceURL(
|
||||
cloud_service_url: string,
|
||||
author: string,
|
||||
name: string,
|
||||
): string {
|
||||
return `${cloud_service_url}/market/${author}/${name}`;
|
||||
}
|
||||
|
||||
public getLangBotReleases(): Promise<GitHubRelease[]> {
|
||||
|
||||
Reference in New Issue
Block a user