Add profile deletion feature
- Added DELETE endpoint /api/profiles/<profile_name> to delete profiles - Prevent deletion of the only remaining profile - Clear current profile state if the active profile is deleted - Added Delete button next to each profile in the Profiles modal - Added confirmation dialog before deleting profiles - Automatically refresh profile list after deletion
This commit is contained in:
72
profiles/default.json
Normal file
72
profiles/default.json
Normal file
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"tab_password": "",
|
||||
"lights": {
|
||||
"test": {
|
||||
"names": [
|
||||
"test"
|
||||
],
|
||||
"settings": {
|
||||
"pattern": "transition",
|
||||
"brightness": 127,
|
||||
"colors": [
|
||||
"#000000"
|
||||
],
|
||||
"delay": 100,
|
||||
"n1": 10,
|
||||
"n2": 10,
|
||||
"n3": 10,
|
||||
"n4": 10,
|
||||
"patterns": {
|
||||
"on": {
|
||||
"colors": [
|
||||
"#000000"
|
||||
],
|
||||
"delay": 100,
|
||||
"n1": 10,
|
||||
"n2": 10,
|
||||
"n3": 10,
|
||||
"n4": 10
|
||||
},
|
||||
"off": {
|
||||
"colors": [
|
||||
"#000000"
|
||||
],
|
||||
"delay": 100,
|
||||
"n1": 10,
|
||||
"n2": 10,
|
||||
"n3": 10,
|
||||
"n4": 10
|
||||
},
|
||||
"rainbow": {
|
||||
"colors": [
|
||||
"#000000"
|
||||
],
|
||||
"delay": 100,
|
||||
"n1": 10,
|
||||
"n2": 10,
|
||||
"n3": 10,
|
||||
"n4": 10
|
||||
},
|
||||
"transition": {
|
||||
"colors": [
|
||||
"#c12525",
|
||||
"#246dcc"
|
||||
],
|
||||
"delay": 1321,
|
||||
"n1": 10,
|
||||
"n2": 10,
|
||||
"n3": 10,
|
||||
"n4": 10
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tab_order": [
|
||||
"test"
|
||||
],
|
||||
"color_palette": [
|
||||
"#c12525",
|
||||
"#246dcc"
|
||||
]
|
||||
}
|
||||
6
profiles/test.json
Normal file
6
profiles/test.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"lights": {},
|
||||
"tab_password": "",
|
||||
"tab_order": [],
|
||||
"color_palette": []
|
||||
}
|
||||
Reference in New Issue
Block a user