mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
v2.0.0
This commit is contained in:
parent
e9b2c15664
commit
74133c9ae3
444 changed files with 13027 additions and 10308 deletions
3
scripts/sponsors/generate-sponsor-image.sh
Normal file
3
scripts/sponsors/generate-sponsor-image.sh
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
npm install
|
||||
npx sponsorkit -o ../../website/static/img/
|
||||
3606
scripts/sponsors/package-lock.json
generated
Normal file
3606
scripts/sponsors/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
15
scripts/sponsors/package.json
Normal file
15
scripts/sponsors/package.json
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"name": "scripts",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"sponsorkit": "^0.5.2"
|
||||
}
|
||||
}
|
||||
206
scripts/sponsors/sponsorkit.config.js
Normal file
206
scripts/sponsors/sponsorkit.config.js
Normal file
|
|
@ -0,0 +1,206 @@
|
|||
import {defineConfig} from 'sponsorkit';
|
||||
|
||||
const helpers = {
|
||||
avatar: {
|
||||
size: 45
|
||||
},
|
||||
boxWidth: 55,
|
||||
boxHeight: 55,
|
||||
container: {
|
||||
sidePadding: 30
|
||||
},
|
||||
};
|
||||
|
||||
const coffee = {
|
||||
avatar: {
|
||||
size: 50
|
||||
},
|
||||
boxWidth: 65,
|
||||
boxHeight: 65,
|
||||
container: {
|
||||
sidePadding: 30
|
||||
},
|
||||
};
|
||||
|
||||
const breakfast = {
|
||||
avatar: {
|
||||
size: 55
|
||||
},
|
||||
boxWidth: 75,
|
||||
boxHeight: 75,
|
||||
container: {
|
||||
sidePadding: 20
|
||||
},
|
||||
name: {
|
||||
maxLength: 10
|
||||
}
|
||||
};
|
||||
|
||||
const costs = {
|
||||
avatar: {
|
||||
size: 65
|
||||
},
|
||||
boxWidth: 90,
|
||||
boxHeight: 80,
|
||||
container: {
|
||||
sidePadding: 30
|
||||
},
|
||||
name: {
|
||||
maxLength: 10
|
||||
}
|
||||
};
|
||||
|
||||
const bronze = {
|
||||
avatar: {
|
||||
size: 85
|
||||
},
|
||||
boxWidth: 110,
|
||||
boxHeight: 100,
|
||||
container: {
|
||||
sidePadding: 30
|
||||
},
|
||||
name: {
|
||||
maxLength: 20
|
||||
}
|
||||
};
|
||||
|
||||
const silver = {
|
||||
avatar: {
|
||||
size: 100
|
||||
},
|
||||
boxWidth: 110,
|
||||
boxHeight: 110,
|
||||
container: {
|
||||
sidePadding: 20
|
||||
},
|
||||
name: {
|
||||
maxLength: 20
|
||||
}
|
||||
};
|
||||
|
||||
const gold = {
|
||||
avatar: {
|
||||
size: 150
|
||||
},
|
||||
boxWidth: 175,
|
||||
boxHeight: 175,
|
||||
container: {
|
||||
sidePadding: 25
|
||||
},
|
||||
name: {
|
||||
maxLength: 25
|
||||
}
|
||||
};
|
||||
|
||||
const champion = {
|
||||
avatar: {
|
||||
size: 175
|
||||
},
|
||||
boxWidth: 200,
|
||||
boxHeight: 200,
|
||||
container: {
|
||||
sidePadding: 30
|
||||
},
|
||||
name: {
|
||||
maxLength: 30
|
||||
}
|
||||
};
|
||||
|
||||
const partner = {
|
||||
avatar: {
|
||||
size: 200
|
||||
},
|
||||
boxWidth: 225,
|
||||
boxHeight: 225,
|
||||
container: {
|
||||
sidePadding: 40
|
||||
},
|
||||
name: {
|
||||
maxLength: 40
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
export default defineConfig({
|
||||
github: {
|
||||
login: 'leaanthony',
|
||||
type: 'user',
|
||||
},
|
||||
|
||||
// Rendering configs
|
||||
width: 800,
|
||||
formats: ['svg'],
|
||||
tiers: [
|
||||
{
|
||||
title: 'Helpers',
|
||||
preset: helpers,
|
||||
composeAfter: function (composer, tierSponsors, config) {
|
||||
composer.addSpan(20);
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'Buying Coffee',
|
||||
monthlyDollars: 5,
|
||||
preset: coffee,
|
||||
composeAfter: function (composer, tierSponsors, config) {
|
||||
composer.addSpan(20);
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'Buying Breakfast',
|
||||
monthlyDollars: 10,
|
||||
preset: breakfast,
|
||||
composeAfter: function (composer, tierSponsors, config) {
|
||||
composer.addSpan(20);
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'Covering Costs',
|
||||
monthlyDollars: 20,
|
||||
preset: costs,
|
||||
composeAfter: function (composer, tierSponsors, config) {
|
||||
composer.addSpan(20);
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'Bronze Sponsors',
|
||||
monthlyDollars: 50,
|
||||
preset: bronze,
|
||||
composeAfter: function (composer, tierSponsors, config) {
|
||||
composer.addSpan(20);
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'Silver Sponsors',
|
||||
monthlyDollars: 100,
|
||||
preset: silver,
|
||||
composeAfter: function (composer, tierSponsors, config) {
|
||||
composer.addSpan(20);
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'Gold Sponsors',
|
||||
monthlyDollars: 200,
|
||||
preset: gold,
|
||||
composeAfter: function (composer, tierSponsors, config) {
|
||||
composer.addSpan(20);
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'Champion',
|
||||
monthlyDollars: 500,
|
||||
preset: champion,
|
||||
composeAfter: function (composer, tierSponsors, config) {
|
||||
composer.addSpan(20);
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'Partner',
|
||||
monthlyDollars: 1000,
|
||||
preset: partner,
|
||||
composeAfter: function (composer, tierSponsors, config) {
|
||||
composer.addSpan(20);
|
||||
}
|
||||
},
|
||||
],
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue