mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-31 16:39:37 +02:00
add 'order' flame label for docker integration (#9)
This commit is contained in:
parent
ccdb477ac4
commit
e07159e952
3 changed files with 5 additions and 4 deletions
|
@ -161,7 +161,7 @@ labels:
|
||||||
- flame.url=https://example.com
|
- flame.url=https://example.com
|
||||||
- flame.category=My category # Optional, default is "Docker"
|
- flame.category=My category # Optional, default is "Docker"
|
||||||
- flame.icon=icon-name # Optional, default is "docker"
|
- flame.icon=icon-name # Optional, default is "docker"
|
||||||
# - flame.icon=custom to make changes in app. ie: custom icon upload
|
- flame.order=1 # Optional, default is 1
|
||||||
```
|
```
|
||||||
|
|
||||||
And you must have activated the Docker sync option in the settings panel.
|
And you must have activated the Docker sync option in the settings panel.
|
||||||
|
@ -218,4 +218,4 @@ And you must have activated the Kubernetes sync option in the settings panel.
|
||||||
|
|
||||||
> This is an experimental feature. Its behaviour might change in the future.
|
> This is an experimental feature. Its behaviour might change in the future.
|
||||||
>
|
>
|
||||||
> Follow instructions from wiki: [Custom CSS](https://github.com/pawelmalak/flame/wiki/Custom-CSS)
|
> Follow instructions from wiki: [Custom CSS](https://github.com/pawelmalak/flame/wiki/Custom-CSS)
|
||||||
|
|
|
@ -133,7 +133,8 @@ exports.getApps = asyncWrapper(async (req, res, next) => {
|
||||||
name: labels['flame.name'],
|
name: labels['flame.name'],
|
||||||
url: labels['flame.url'],
|
url: labels['flame.url'],
|
||||||
icon: labels['flame.icon'] || 'docker',
|
icon: labels['flame.icon'] || 'docker',
|
||||||
categoryId: dockerDefaultCategory.id
|
categoryId: dockerDefaultCategory.id,
|
||||||
|
orderId: labels['flame.order'] || 1,
|
||||||
}
|
}
|
||||||
if (labels['flame.category']) {
|
if (labels['flame.category']) {
|
||||||
const category = categories.find(category => category.name.toUpperCase() === labels['flame.category'].toUpperCase());
|
const category = categories.find(category => category.name.toUpperCase() === labels['flame.category'].toUpperCase());
|
||||||
|
|
|
@ -10,7 +10,7 @@ exports.dockerDefaultCategory = {
|
||||||
name: "Docker",
|
name: "Docker",
|
||||||
type: "apps",
|
type: "apps",
|
||||||
isPinned: true,
|
isPinned: true,
|
||||||
orderId: 99,
|
orderId: 999,
|
||||||
};
|
};
|
||||||
|
|
||||||
// @desc Create new category
|
// @desc Create new category
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue