mirror of
https://github.com/driftywinds/driftywinds.github.io.git
synced 2025-12-19 11:03:32 +00:00
Add additional Quark Source permissions
This commit is contained in:
2
app.html
2
app.html
@@ -94,7 +94,7 @@
|
|||||||
<i class="bi-person-fill-check"></i>
|
<i class="bi-person-fill-check"></i>
|
||||||
<div class="text">
|
<div class="text">
|
||||||
<p class="title">None</p>
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
51
js/app.js
51
js/app.js
@@ -148,6 +148,7 @@ function main(json) {
|
|||||||
app.permissions?.forEach(permission => {
|
app.permissions?.forEach(permission => {
|
||||||
var permissionType, icon;
|
var permissionType, icon;
|
||||||
switch (permission.type) {
|
switch (permission.type) {
|
||||||
|
// AltStore-supported permissions
|
||||||
case "background-audio":
|
case "background-audio":
|
||||||
permissionType = "Background Audio";
|
permissionType = "Background Audio";
|
||||||
icon = "volume-up-fill";
|
icon = "volume-up-fill";
|
||||||
@@ -160,6 +161,56 @@ function main(json) {
|
|||||||
permissionType = "Photos"
|
permissionType = "Photos"
|
||||||
icon = "image-fill";
|
icon = "image-fill";
|
||||||
break;
|
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:
|
default:
|
||||||
permissionType = permission.type.replaceAll("-", " ");
|
permissionType = permission.type.replaceAll("-", " ");
|
||||||
icon = "gear-wide-connected";
|
icon = "gear-wide-connected";
|
||||||
|
|||||||
Reference in New Issue
Block a user