4 Commits

Author SHA1 Message Date
289d65a1fe Corrected logo path 2025-11-22 22:39:40 -06:00
8127c1772b private gitea version 2025-11-22 20:54:28 -06:00
48c81b4e59 Changing link to private link 2025-11-22 20:39:58 -06:00
3c12010f7e Changing git repo to private repo 2025-11-22 20:34:41 -06:00
2 changed files with 14 additions and 14 deletions

View File

@@ -70,7 +70,7 @@ export function TemplateStoreModal({
<span>
Templates from{" "}
<a
href="https://github.com/Dokploy/templates"
href="https://gitea.computersurge.dev/ComputerSurge/dockploy-templates"
target="_blank"
rel="noopener noreferrer"
className="text-primary hover:underline"
@@ -165,7 +165,7 @@ export function TemplateStoreModal({
{...template}
logo={
template.logo
? `https://raw.githubusercontent.com/Dokploy/templates/main/blueprints/${template.id}/${template.logo}`
? `https://gitea.computersurge.dev/ComputerSurge/dockploy-templates/raw/branch/main/blueprints/${template.id}/${template.logo}`
: undefined
}
onClick={() => onTemplateSelect(template)}

View File

@@ -696,14 +696,14 @@ function App() {
setTemplateError(null);
}
const GITHUB_OWNER = "hhftechnology";
const GITHUB_REPO = "Marketplace";
const GITHUB_OWNER = "ComputerSurge";
const GITHUB_REPO = "dock-dploy-Marketplace";
const GITHUB_BRANCH = "main";
const GITHUB_RAW_BASE = "https://raw.githubusercontent.com";
const GITHUB_RAW_BASE = "https://gitea.computersurge.dev";
try {
// Fetch meta.json
const metaUrl = `${GITHUB_RAW_BASE}/${GITHUB_OWNER}/${GITHUB_REPO}/${GITHUB_BRANCH}/meta.json`;
const metaUrl = `${GITHUB_RAW_BASE}/${GITHUB_OWNER}/${GITHUB_REPO}/raw/branch/${GITHUB_BRANCH}/meta.json`; // URL format is for gitea
const metaResponse = await fetch(metaUrl);
if (!metaResponse.ok) {
@@ -735,10 +735,10 @@ function App() {
// Fetch template details (compose, logo)
async function fetchTemplateDetails(templateId: string): Promise<any> {
const GITHUB_OWNER = "hhftechnology";
const GITHUB_REPO = "Marketplace";
const GITHUB_OWNER = "ComputerSurge";
const GITHUB_REPO = "dock-dploy-Marketplace";
const GITHUB_BRANCH = "main";
const GITHUB_RAW_BASE = "https://raw.githubusercontent.com";
const GITHUB_RAW_BASE = "https://gitea.computersurge.dev";
const template = templates.find((t) => t.id === templateId);
if (!template) {
@@ -749,7 +749,7 @@ function App() {
const basePath = `compose-files/${templateId}`;
// Fetch docker-compose.yml
const composeUrl = `${GITHUB_RAW_BASE}/${GITHUB_OWNER}/${GITHUB_REPO}/${GITHUB_BRANCH}/${basePath}/docker-compose.yml`;
const composeUrl = `${GITHUB_RAW_BASE}/${GITHUB_OWNER}/${GITHUB_REPO}/raw/branch/${GITHUB_BRANCH}/${basePath}/docker-compose.yml`; // URL format is for gitea
const composeResponse = await fetch(composeUrl);
if (!composeResponse.ok) {
throw new Error(
@@ -761,7 +761,7 @@ function App() {
// Build logo URL if logo exists
let logoUrl = null;
if (template.logo) {
logoUrl = `${GITHUB_RAW_BASE}/${GITHUB_OWNER}/${GITHUB_REPO}/${GITHUB_BRANCH}/${basePath}/${template.logo}`;
logoUrl = `${GITHUB_RAW_BASE}/${GITHUB_OWNER}/${GITHUB_REPO}/raw/branch/${GITHUB_BRANCH}/${basePath}/${template.logo}`;
}
return {
@@ -1334,12 +1334,12 @@ function App() {
<div className="mb-4 text-xs text-muted-foreground">
Templates from{" "}
<a
href="https://github.com/hhftechnology/Marketplace"
href="https://gitea.computersurge.dev/ComputerSurge/dock-dploy-Marketplace"
target="_blank"
rel="noopener noreferrer"
className="text-primary hover:underline"
>
hhftechnology/Marketplace
ComputerSurge/dock-dploy-Marketplace
</a>{" "}
repository.
</div>
@@ -1405,7 +1405,7 @@ function App() {
<div className="w-full flex items-start gap-3">
{template.logo ? (
<img
src={`https://raw.githubusercontent.com/Dokploy/templates/main/blueprints/${template.id}/${template.logo}`}
src={`https://gitea.computersurge.dev/ComputerSurge/dockploy-templates/raw/branch/main/blueprints/${template.id}/${template.logo}`}
alt={template.name}
className="w-12 h-12 object-contain flex-shrink-0"
onError={(