mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-03 21:15:24 +02:00
Add Kener entry to meta.json and improve JSON encoding in TemplateDialog (#229)
* Add Kener entry to meta.json and improve JSON encoding in TemplateDialog - Introduced Kener, an open-source status page system, to meta.json with relevant links and tags. - Updated TemplateDialog to use encodeURIComponent for proper handling of Unicode characters in JSON encoding. - Removed unnecessary console log from TemplateGrid for cleaner code. * Update Kener logo in meta.json and remove old logo file - Changed the logo reference for Kener in meta.json from 'kener.png' to 'image.png'. - Deleted the outdated 'kener.png' file from the repository. * Add GitLab CE entry to meta.json - Introduced GitLab Community Edition with a detailed description, logo, and relevant links. - Updated tags for better categorization, including 'git', 'ci-cd', 'version-control', and 'project-management'.
This commit is contained in:
committed by
GitHub
parent
48b5798a91
commit
d2f3a95d7e
@@ -55,7 +55,9 @@ const TemplateDialog: React.FC<TemplateDialogProps> = ({
|
||||
config: templateFiles.config || "",
|
||||
};
|
||||
|
||||
return btoa(JSON.stringify(configObj, null, 2));
|
||||
// Use encodeURIComponent to handle Unicode characters properly
|
||||
const jsonString = JSON.stringify(configObj, null, 2);
|
||||
return btoa(unescape(encodeURIComponent(jsonString)));
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
@@ -120,7 +120,6 @@ const TemplateGrid: React.FC<TemplateGridProps> = ({ view }) => {
|
||||
return matchesSearch && matchesTags;
|
||||
});
|
||||
|
||||
console.log("ffiltered tem", filtered.length);
|
||||
setTemplatesCount(filtered.length);
|
||||
setFilteredTemplates(filtered);
|
||||
}, [searchQuery, selectedTags]);
|
||||
|
||||
Reference in New Issue
Block a user