add: developer panel
This commit is contained in:
parent
ebded00fd3
commit
39574df691
44 changed files with 982 additions and 84 deletions
|
@ -104,6 +104,22 @@ pub async fn settings_request(
|
|||
.unwrap()
|
||||
.replace("\"", "\\\""),
|
||||
);
|
||||
context.insert("profile_grants", &{
|
||||
let mut out = Vec::new();
|
||||
|
||||
for grant in profile.grants {
|
||||
out.push((
|
||||
match data.0.get_app_by_id(grant.app).await {
|
||||
Ok(a) => a,
|
||||
// TODO: remove grant from user (app deleted)
|
||||
Err(_) => continue,
|
||||
},
|
||||
grant,
|
||||
));
|
||||
}
|
||||
|
||||
out
|
||||
});
|
||||
|
||||
// check color contrasts
|
||||
let mut failing_color_keys: Vec<(&str, f64)> = Vec::new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue