Skip to content

Commit c1e37b0

Browse files
authored
Merge pull request #1037 from imgbot/feat/count_private_repository_plan
chore: added plans
2 parents d551aec + c455cc5 commit c1e37b0

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

Common/KnownGitHubs.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@ public static readonly ReadOnlyDictionary<int, int> Plans
3232
= new ReadOnlyDictionary<int, int>(
3333
new Dictionary<int, int>()
3434
{
35-
{ 781, -2 },
35+
{ 781, 0 },
3636
{ 1749, 0 },
37+
{ 6927, 0 },
3738
{ 1750, -2 },
38-
{ 2840, -1 },
39-
{ 2841, -1 },
39+
{ 2840, -2 },
40+
{ 2841, -2 },
4041
{ 6894, 5 },
4142
{ 6919, 10 },
4243
{ 6920, 20 },

Web/src/app/vue/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
<div class="col-11 col-lg offset-lg-1">
140140
<p>
141141
<img alt src="/images/128x128_circle.png" width="30" />
142-
Imgbot &copy; 2017-2019
142+
Imgbot &copy; 2017-2020
143143
</p>
144144
</div>
145145
<div class="col-11 col-lg">

Web/src/app/vue/components/Installation.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ export default {
6666
return 'Early adopter plan'
6767
case 1749:
6868
return 'Open source plan'
69+
case 6927:
70+
return 'Open source plan'
6971
case 1750:
7072
return 'Premium plan'
7173
case 2840:
@@ -95,6 +97,7 @@ export default {
9597
case 6920:
9698
case 6921:
9799
case 6922:
100+
case 6927:
98101
return 'Upgrade plan'
99102
case 1750:
100103
case 2840:
@@ -106,13 +109,12 @@ export default {
106109
changePlanLink: function() {
107110
switch (this.installation.planId) {
108111
case 1749:
109-
return this.installation.accounttype === 'User' ?
110-
`https://github.com/marketplace/imgbot/upgrade/4/${this.installation.accountid}` :
111-
`https://github.com/marketplace/imgbot/upgrade/5/${this.installation.accountid}`
112+
case 6927:
113+
return `https://github.com/marketplace/imgbot/upgrade/6/${this.installation.accountid}`
112114
case 1750:
113115
case 2840:
114116
case 2841:
115-
return `https://github.com/marketplace/imgbot/upgrade/2/${this.installation.accountid}`
117+
return `https://github.com/marketplace/imgbot/upgrade/12/${this.installation.accountid}`
116118
case 6894:
117119
return `https://github.com/marketplace/imgbot/upgrade/7/${this.installation.accountid}`
118120
case 6919:

0 commit comments

Comments
 (0)