refactor: update migrations

This commit is contained in:
Mauricio Siu
2025-01-18 18:29:28 -06:00
parent d5d8064b38
commit ad642ab4e0
22 changed files with 4417 additions and 46 deletions

View File

@@ -133,7 +133,9 @@ export const AddTemplate = ({ projectId }: Props) => {
<PopoverTrigger asChild>
<Button
variant="outline"
className={cn("w-full sm:w-[200px] justify-between !bg-input")}
className={cn(
"w-full sm:w-[200px] justify-between !bg-input",
)}
>
{isLoadingTags
? "Loading...."

View File

@@ -1,7 +1,7 @@
import { CodeEditor } from "@/components/shared/code-editor";
import { Button } from "@/components/ui/button";
import { ScrollArea } from "@/components/ui/scroll-area";
import ReactMarkdown from "react-markdown";
import {CodeEditor} from "@/components/shared/code-editor";
export const StepFour = ({
prevStep,
@@ -76,4 +76,4 @@ export const StepFour = ({
</div>
</div>
);
}
};

View File

@@ -66,4 +66,4 @@ export const StepOne = ({ nextStep, setTemplateInfo, templateInfo }: any) => {
</div>
</div>
);
}
};

View File

@@ -81,4 +81,4 @@ export const StepThree = ({
</div>
</div>
);
}
};

View File

@@ -1,3 +1,4 @@
import { CodeEditor } from "@/components/shared/code-editor";
import {
Accordion,
AccordionContent,
@@ -14,7 +15,6 @@ import { Bot, Eye, EyeOff, PlusCircle, Trash2 } from "lucide-react";
import { useEffect, useState } from "react";
import ReactMarkdown from "react-markdown";
import { toast } from "sonner";
import {CodeEditor} from "@/components/shared/code-editor";
interface EnvVariable {
name: string;
@@ -304,4 +304,4 @@ export const StepTwo = ({
</div>
</div>
);
}
};

View File

@@ -156,4 +156,4 @@ export const TemplateGenerator = ({ projectId }: Props) => {
</DialogContent>
</Dialog>
);
}
};

View File

@@ -51,7 +51,7 @@ interface Model {
owned_by: string;
}
export const AiForm = ()=> {
export const AiForm = () => {
const [models, setModels] = useState<Model[]>([]);
const [isLoadingModels, setIsLoadingModels] = useState(false);
const [error, setError] = useState<string | null>(null);
@@ -273,4 +273,4 @@ export const AiForm = ()=> {
</CardContent>
</Card>
);
}
};

File diff suppressed because it is too large Load Diff

View File

@@ -400,6 +400,13 @@
"when": 1736789918294,
"tag": "0056_majestic_skaar",
"breakpoints": true
},
{
"idx": 57,
"version": "6",
"when": 1737246538368,
"tag": "0057_mature_thaddeus_ross",
"breakpoints": true
}
]
}

View File

@@ -168,8 +168,6 @@
]
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
"extends": ["@commitlint/config-conventional"]
}
}

View File

@@ -239,7 +239,10 @@ export const projectRouter = createTRPCRouter({
}
}),
});
function buildServiceFilter(fieldName: AnyPgColumn, accessedServices: string[]) {
function buildServiceFilter(
fieldName: AnyPgColumn,
accessedServices: string[],
) {
return accessedServices.length > 0
? sql`${fieldName} IN (${sql.join(
accessedServices.map((serviceId) => sql`${serviceId}`),

View File

@@ -101,7 +101,7 @@
* {
@apply border-border;
}
body {
@apply bg-background text-foreground;
}
@@ -110,16 +110,16 @@
::-webkit-scrollbar {
width: 0.3125rem;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: hsl(var(--border));
border-radius: 0.3125rem;
}
* {
scrollbar-width: thin;
scrollbar-color: hsl(var(--border)) transparent;

View File

@@ -1269,7 +1269,8 @@ export const templates: TemplateData[] = [
},
tags: ["cloud", "networking", "security", "tunnel"],
load: () => import("./cloudflared/index").then((m) => m.generate),
},{
},
{
id: "couchdb",
name: "CouchDB",
version: "latest",