mirror of
https://github.com/tycrek/degoogle.git
synced 2025-08-30 18:10:05 +02:00
Update _build.js to insert F-Droid badges
This commit is contained in:
@@ -111,6 +111,9 @@ function generateServiceSection(data) {
|
|||||||
let name = `[${item.name}](${item.url})`;
|
let name = `[${item.name}](${item.url})`;
|
||||||
let eyes = item.eyes ? `**${item.eyes}-eyes**` : '';
|
let eyes = item.eyes ? `**${item.eyes}-eyes**` : '';
|
||||||
let text = item.text.trim();
|
let text = item.text.trim();
|
||||||
|
|
||||||
|
// Append the F-Droid badge to the name
|
||||||
|
if (item.fdroid) name = name.concat(' ' + fdroidLink(item.fdroid))
|
||||||
|
|
||||||
// Build the row
|
// Build the row
|
||||||
let tableItem = `| ${name} | ${eyes} | ${text} |`;
|
let tableItem = `| ${name} | ${eyes} | ${text} |`;
|
||||||
@@ -123,4 +126,9 @@ function generateServiceSection(data) {
|
|||||||
return serviceSection + notes;
|
return serviceSection + notes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function fdroidLink(appId) {
|
||||||
|
//return ``
|
||||||
|
return `[](https://f-droid.org/en/packages/${appId}/)`;
|
||||||
|
}
|
||||||
|
|
||||||
__main__();
|
__main__();
|
Reference in New Issue
Block a user