Add additional Quark Source permissions

This commit is contained in:
foxster-mp4
2023-05-29 12:46:54 -07:00
parent 6eed1c60b0
commit 5ace1991d0
2 changed files with 52 additions and 1 deletions

View File

@@ -94,7 +94,7 @@
<i class="bi-person-fill-check"></i>
<div class="text">
<p class="title">None</p>
<p class="description">The developer has not specified any permission required by this app.</p>
<p class="description">The developer has not specified any permissions required by this app.</p>
</div>
</div>
</div>

View File

@@ -148,6 +148,7 @@ function main(json) {
app.permissions?.forEach(permission => {
var permissionType, icon;
switch (permission.type) {
// AltStore-supported permissions
case "background-audio":
permissionType = "Background Audio";
icon = "volume-up-fill";
@@ -160,6 +161,56 @@ function main(json) {
permissionType = "Photos"
icon = "image-fill";
break;
// Additional permissions
case "camera":
permissionType = "Camera"
icon = "camera-fill";
break;
case "music":
permissionType = "Music Library"
icon = "music-note-list";
break;
case "location":
permissionType = "Location"
icon = "geo-alt-fill";
break;
case "microphone":
permissionType = "Microphone"
icon = "mic-fill";
break;
case "contacts":
permissionType = "Contacts"
icon = "people-fill";
break;
case "bluetooth":
permissionType = "Bluetooth"
icon = "bluetooth";
break;
case "faceid":
permissionType = "Fade ID"
icon = "person-bounding-box";
break;
case "network":
permissionType = "Network"
icon = "wifi";
break;
case "calendar":
case "calendars":
permissionType = "Calendar"
icon = "calendar-date";
break;
case "reminders":
permissionType = "Reminders"
icon = "list-ul";
break;
case "siri":
permissionType = "Siri"
icon = "gear-wide-connected";
break;
case "speech-recognition":
permissionType = "Speech Recognition"
icon = "soundwave";
break;
default:
permissionType = permission.type.replaceAll("-", " ");
icon = "gear-wide-connected";