Skip to content

Commit

Permalink
chore: added plans
Browse files Browse the repository at this point in the history
  • Loading branch information
GrigoreMihai committed Oct 20, 2021
1 parent 8b0784a commit c455cc5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
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

0 comments on commit c455cc5

Please sign in to comment.