From c455cc5ca8510f4650b2d8cfc9713e25ceb36d35 Mon Sep 17 00:00:00 2001 From: GrigoreMihai Date: Wed, 20 Oct 2021 19:39:25 +0300 Subject: [PATCH] chore: added plans --- Common/KnownGitHubs.cs | 7 ++++--- Web/src/app/vue/App.vue | 2 +- Web/src/app/vue/components/Installation.vue | 10 ++++++---- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/Common/KnownGitHubs.cs b/Common/KnownGitHubs.cs index dd8c4e017..5d5d73133 100644 --- a/Common/KnownGitHubs.cs +++ b/Common/KnownGitHubs.cs @@ -32,11 +32,12 @@ public static readonly ReadOnlyDictionary Plans = new ReadOnlyDictionary( new Dictionary() { - { 781, -2 }, + { 781, 0 }, { 1749, 0 }, + { 6927, 0 }, { 1750, -2 }, - { 2840, -1 }, - { 2841, -1 }, + { 2840, -2 }, + { 2841, -2 }, { 6894, 5 }, { 6919, 10 }, { 6920, 20 }, diff --git a/Web/src/app/vue/App.vue b/Web/src/app/vue/App.vue index c09eb2ff0..e20cfab85 100644 --- a/Web/src/app/vue/App.vue +++ b/Web/src/app/vue/App.vue @@ -139,7 +139,7 @@

- Imgbot © 2017-2019 + Imgbot © 2017-2020

diff --git a/Web/src/app/vue/components/Installation.vue b/Web/src/app/vue/components/Installation.vue index 87b71fdd6..7ebf6c142 100644 --- a/Web/src/app/vue/components/Installation.vue +++ b/Web/src/app/vue/components/Installation.vue @@ -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: @@ -95,6 +97,7 @@ export default { case 6920: case 6921: case 6922: + case 6927: return 'Upgrade plan' case 1750: case 2840: @@ -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: