mirror of
https://github.com/revanced/revanced-static-api.git
synced 2025-04-29 22:24:37 +02:00
feat: Update example config with real life example
This commit is contained in:
parent
3181265623
commit
c0c91db2df
@ -136,15 +136,15 @@ class DonationsGenerator(Generator):
|
||||
super().__init__("donations", api)
|
||||
|
||||
def generate(self, config, path):
|
||||
donation_links = config["links"] if "links" in config else []
|
||||
donation_wallets = config["wallets"] if "wallets" in config else []
|
||||
links = config["links"] if "links" in config else []
|
||||
wallets = config["wallets"] if "wallets" in config else []
|
||||
|
||||
donation_path = join(path, f"donations.json")
|
||||
|
||||
write_json(
|
||||
{
|
||||
"links": donation_links,
|
||||
"wallets": donation_wallets
|
||||
"links": links,
|
||||
"wallets": wallets
|
||||
},
|
||||
donation_path
|
||||
)
|
||||
|
@ -2,42 +2,113 @@
|
||||
"configs": [
|
||||
{
|
||||
"generators": [
|
||||
"release+contributor"
|
||||
"releases",
|
||||
"contributors"
|
||||
],
|
||||
"repositories": [
|
||||
"user/repo"
|
||||
"revanced/revanced-patches",
|
||||
"revanced/revanced-integrations",
|
||||
"revanced/revanced-manager"
|
||||
]
|
||||
},
|
||||
{
|
||||
"generators": [
|
||||
"connections"
|
||||
],
|
||||
"connections": {
|
||||
"website": "https://yourwebsite.com"
|
||||
"connections": [
|
||||
{
|
||||
"name": "Website",
|
||||
"url": "https://revanced.app",
|
||||
"preferred": true
|
||||
},
|
||||
{
|
||||
"name": "GitHub",
|
||||
"url": "https://github.com/revanced",
|
||||
"preferred": false
|
||||
},
|
||||
{
|
||||
"name": "Twitter",
|
||||
"url": "https://twitter.com/revancedapp",
|
||||
"preferred": false
|
||||
},
|
||||
{
|
||||
"name": "Discord",
|
||||
"url": "https://revanced.app/discord",
|
||||
"preferred": true
|
||||
},
|
||||
{
|
||||
"name": "Reddit",
|
||||
"url": "https://www.reddit.com/r/revancedapp",
|
||||
"preferred": false
|
||||
},
|
||||
{
|
||||
"name": "Telegram",
|
||||
"url": "https://t.me/app_revanced",
|
||||
"preferred": false
|
||||
},
|
||||
{
|
||||
"name": "YouTube",
|
||||
"url": "https://www.youtube.com/@ReVanced",
|
||||
"preferred": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"generators": [
|
||||
"team"
|
||||
],
|
||||
"organization": "yourorg"
|
||||
"organization": "revanced"
|
||||
},
|
||||
{
|
||||
"generators": [
|
||||
"donations"
|
||||
],
|
||||
"links": {
|
||||
"Open Collective": "https://opencollective.com/yourteam",
|
||||
"GitHub": "https://github.com/sponsors/yourteam"
|
||||
"links": [
|
||||
{
|
||||
"name": "Open Collective",
|
||||
"url": "https://opencollective.com/revanced",
|
||||
"preferred": true
|
||||
},
|
||||
"wallets": {
|
||||
"Bitcoin": "bitcoinaddress",
|
||||
"Ethereum": "ethereumaddress"
|
||||
{
|
||||
"name": "GitHub Sponsors",
|
||||
"url": "https://github.com/sponsors/ReVanced",
|
||||
"preferred": false
|
||||
}
|
||||
],
|
||||
"wallets": [
|
||||
{
|
||||
"network": "Bitcoin",
|
||||
"currency_code": "BTC",
|
||||
"address": "bc1q4x8j6mt27y5gv0q625t8wkr87ruy8fprpy4v3f",
|
||||
"preferred": false
|
||||
},
|
||||
{
|
||||
"network": "Dogecoin",
|
||||
"currency_code": "DOGE",
|
||||
"address": "D8GH73rNjudgi6bS2krrXWEsU9KShedLXp",
|
||||
"preferred": true
|
||||
},
|
||||
{
|
||||
"network": "Ethereum",
|
||||
"currency_code": "ETH",
|
||||
"address": "0x7ab4091e00363654bf84B34151225742cd92FCE5",
|
||||
"preferred": false
|
||||
},
|
||||
{
|
||||
"network": "Litecoin",
|
||||
"currency_code": "LTC",
|
||||
"address": "LbJi8EuoDcwaZvykcKmcrM74jpjde23qJ2",
|
||||
"preferred": false
|
||||
},
|
||||
{
|
||||
"network": "Monero",
|
||||
"currency_code": "XMR",
|
||||
"address": "46YwWDbZD6jVptuk5mLHsuAmh1BnUMSjSNYacozQQEraWSQ93nb2yYVRHoMR6PmFYWEHsLHg9tr1cH5M8Rtn7YaaGQPCjSh",
|
||||
"preferred": false
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"output": "static",
|
||||
"purge": [
|
||||
"static"
|
||||
]
|
||||
"purge": []
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user