mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
chore: ui improvements + add github button
This commit is contained in:
29
app/src/store/index.ts
Normal file
29
app/src/store/index.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
import { create } from 'zustand'
|
||||
|
||||
interface Template {
|
||||
id: string;
|
||||
name: string;
|
||||
description: string;
|
||||
version: string;
|
||||
logo?: string;
|
||||
links: {
|
||||
github?: string;
|
||||
website?: string;
|
||||
docs?: string;
|
||||
};
|
||||
tags: string[];
|
||||
}
|
||||
|
||||
interface Store {
|
||||
templates: Template[];
|
||||
setTemplates: (templates: Template[]) => void;
|
||||
githubStars: number;
|
||||
setGithubStars: (count: number) => void;
|
||||
}
|
||||
|
||||
export const useStore = create<Store>((set) => ({
|
||||
templates: [],
|
||||
setTemplates: (templates) => set({ templates }),
|
||||
githubStars: 0,
|
||||
setGithubStars: (count) => set({ githubStars: count }),
|
||||
}))
|
||||
Reference in New Issue
Block a user