Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: added plans #1037

Merged
merged 1 commit into from
Oct 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Common/KnownGitHubs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ public static readonly ReadOnlyDictionary<int, int> Plans
= new ReadOnlyDictionary<int, int>(
new Dictionary<int, int>()
{
{ 781, -2 },
{ 781, 0 },
{ 1749, 0 },
{ 6927, 0 },
{ 1750, -2 },
{ 2840, -1 },
{ 2841, -1 },
{ 2840, -2 },
{ 2841, -2 },
{ 6894, 5 },
{ 6919, 10 },
{ 6920, 20 },
Expand Down
2 changes: 1 addition & 1 deletion Web/src/app/vue/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
<div class="col-11 col-lg offset-lg-1">
<p>
<img alt src="/images/128x128_circle.png" width="30" />
Imgbot &copy; 2017-2019
Imgbot &copy; 2017-2020
</p>
</div>
<div class="col-11 col-lg">
Expand Down
10 changes: 6 additions & 4 deletions Web/src/app/vue/components/Installation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ export default {
return 'Early adopter plan'
case 1749:
return 'Open source plan'
case 6927:
return 'Open source plan'
case 1750:
return 'Premium plan'
case 2840:
Expand Down Expand Up @@ -95,6 +97,7 @@ export default {
case 6920:
case 6921:
case 6922:
case 6927:
return 'Upgrade plan'
case 1750:
case 2840:
Expand All @@ -106,13 +109,12 @@ export default {
changePlanLink: function() {
switch (this.installation.planId) {
case 1749:
return this.installation.accounttype === 'User' ?
`https://github.com/marketplace/imgbot/upgrade/4/${this.installation.accountid}` :
`https://github.com/marketplace/imgbot/upgrade/5/${this.installation.accountid}`
case 6927:
return `https://github.com/marketplace/imgbot/upgrade/6/${this.installation.accountid}`
case 1750:
case 2840:
case 2841:
return `https://github.com/marketplace/imgbot/upgrade/2/${this.installation.accountid}`
return `https://github.com/marketplace/imgbot/upgrade/12/${this.installation.accountid}`
case 6894:
return `https://github.com/marketplace/imgbot/upgrade/7/${this.installation.accountid}`
case 6919:
Expand Down