项目
在 GitHub 查看
easypanel-io/templates
关于
In this repository, you will find the templates available in Easypanel.
系统与基础设施实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Easypanel Templates
In this repository, you will find the templates available in Easypanel.
Defining Templates
- Duplicate any template from the
/templatesdirectory - Run
npm run devto open the testing playground - Customize your template.
- edit
meta.yamlandindex.ts, but notmeta.ts(that file is generated) - use
logo.pngorlogo.svgfor the logo - use
screenshot.pngorscreenshot.jpgfor the screenshot - if you have multiple screenshots use
screenshot1.png,screenshot2.png, etc
- edit
- Test your template. Inside an Easypanel instance, you can create a template from JSON. Use that feature to test the output of your template.
- Send a PR.
Best practices
- use
npm run buildto make sure the project is building succesfully - use
npm run prettierto format the files - for stability, don't use
latestfor docker images - for security, don't use unofficial docker images
Form Fields
Select
selectField:
type: string
title: Select Field
oneOf:
- enum:
- first
title: First Option
- enum:
- second
title: Second Option
- enum:
- third
title: Third Option
PR Checklist
- Logo
- high quality
- just the logo mark (icon)
- square aspect ratio
- Screenshot
- high quality
- it’s not a banner
- doesn’t include the whole desktop
- shows actual content, not an empty state
- meta.yaml
- use static versions
- use specific versions (2.1.7, instead of 2.1, or 2)
- add all links (website, docs, Github)
- don’t forget instructions
- use official images (if not possible, explain)
- index.ts
- no unused variables
- no hardcoded secrets (generate random ones)
- extract env vars which are used multiple times
- don’t forget volumes
- Testing
- test using the templates playground
探索相关项目
加载中…