forked from github-starred/Dock-Dploy
Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
289d65a1fe | ||
|
|
8127c1772b | ||
|
|
48c81b4e59 | ||
|
|
3c12010f7e |
@@ -70,7 +70,7 @@ export function TemplateStoreModal({
|
|||||||
<span>
|
<span>
|
||||||
Templates from{" "}
|
Templates from{" "}
|
||||||
<a
|
<a
|
||||||
href="https://github.com/Dokploy/templates"
|
href="https://gitea.computersurge.dev/ComputerSurge/dockploy-templates"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
className="text-primary hover:underline"
|
className="text-primary hover:underline"
|
||||||
@@ -165,7 +165,7 @@ export function TemplateStoreModal({
|
|||||||
{...template}
|
{...template}
|
||||||
logo={
|
logo={
|
||||||
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
|
: undefined
|
||||||
}
|
}
|
||||||
onClick={() => onTemplateSelect(template)}
|
onClick={() => onTemplateSelect(template)}
|
||||||
|
|||||||
@@ -696,14 +696,14 @@ function App() {
|
|||||||
setTemplateError(null);
|
setTemplateError(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
const GITHUB_OWNER = "hhftechnology";
|
const GITHUB_OWNER = "ComputerSurge";
|
||||||
const GITHUB_REPO = "Marketplace";
|
const GITHUB_REPO = "dock-dploy-Marketplace";
|
||||||
const GITHUB_BRANCH = "main";
|
const GITHUB_BRANCH = "main";
|
||||||
const GITHUB_RAW_BASE = "https://raw.githubusercontent.com";
|
const GITHUB_RAW_BASE = "https://gitea.computersurge.dev";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Fetch meta.json
|
// 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);
|
const metaResponse = await fetch(metaUrl);
|
||||||
|
|
||||||
if (!metaResponse.ok) {
|
if (!metaResponse.ok) {
|
||||||
@@ -735,10 +735,10 @@ function App() {
|
|||||||
|
|
||||||
// Fetch template details (compose, logo)
|
// Fetch template details (compose, logo)
|
||||||
async function fetchTemplateDetails(templateId: string): Promise<any> {
|
async function fetchTemplateDetails(templateId: string): Promise<any> {
|
||||||
const GITHUB_OWNER = "hhftechnology";
|
const GITHUB_OWNER = "ComputerSurge";
|
||||||
const GITHUB_REPO = "Marketplace";
|
const GITHUB_REPO = "dock-dploy-Marketplace";
|
||||||
const GITHUB_BRANCH = "main";
|
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);
|
const template = templates.find((t) => t.id === templateId);
|
||||||
if (!template) {
|
if (!template) {
|
||||||
@@ -749,7 +749,7 @@ function App() {
|
|||||||
const basePath = `compose-files/${templateId}`;
|
const basePath = `compose-files/${templateId}`;
|
||||||
|
|
||||||
// Fetch docker-compose.yml
|
// 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);
|
const composeResponse = await fetch(composeUrl);
|
||||||
if (!composeResponse.ok) {
|
if (!composeResponse.ok) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
@@ -761,7 +761,7 @@ function App() {
|
|||||||
// Build logo URL if logo exists
|
// Build logo URL if logo exists
|
||||||
let logoUrl = null;
|
let logoUrl = null;
|
||||||
if (template.logo) {
|
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 {
|
return {
|
||||||
@@ -1334,12 +1334,12 @@ function App() {
|
|||||||
<div className="mb-4 text-xs text-muted-foreground">
|
<div className="mb-4 text-xs text-muted-foreground">
|
||||||
Templates from{" "}
|
Templates from{" "}
|
||||||
<a
|
<a
|
||||||
href="https://github.com/hhftechnology/Marketplace"
|
href="https://gitea.computersurge.dev/ComputerSurge/dock-dploy-Marketplace"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
className="text-primary hover:underline"
|
className="text-primary hover:underline"
|
||||||
>
|
>
|
||||||
hhftechnology/Marketplace
|
ComputerSurge/dock-dploy-Marketplace
|
||||||
</a>{" "}
|
</a>{" "}
|
||||||
repository.
|
repository.
|
||||||
</div>
|
</div>
|
||||||
@@ -1405,7 +1405,7 @@ function App() {
|
|||||||
<div className="w-full flex items-start gap-3">
|
<div className="w-full flex items-start gap-3">
|
||||||
{template.logo ? (
|
{template.logo ? (
|
||||||
<img
|
<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}
|
alt={template.name}
|
||||||
className="w-12 h-12 object-contain flex-shrink-0"
|
className="w-12 h-12 object-contain flex-shrink-0"
|
||||||
onError={(
|
onError={(
|
||||||
|
|||||||
Reference in New Issue
Block a user