diff options
Diffstat (limited to 'src/models')
-rw-r--r-- | src/models/Plan.js | 17 | ||||
-rw-r--r-- | src/models/Service.js | 5 | ||||
-rw-r--r-- | src/models/User.js | 3 |
3 files changed, 0 insertions, 25 deletions
diff --git a/src/models/Plan.js b/src/models/Plan.js deleted file mode 100644 index 3dedf0d5e..000000000 --- a/src/models/Plan.js +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | // @flow | ||
2 | |||
3 | export default class Plan { | ||
4 | month = { | ||
5 | id: '', | ||
6 | price: 0, | ||
7 | } | ||
8 | |||
9 | year = { | ||
10 | id: '', | ||
11 | price: 0, | ||
12 | } | ||
13 | |||
14 | constructor(data) { | ||
15 | Object.assign(this, data); | ||
16 | } | ||
17 | } | ||
diff --git a/src/models/Service.js b/src/models/Service.js index 5656295da..397950787 100644 --- a/src/models/Service.js +++ b/src/models/Service.js | |||
@@ -10,11 +10,6 @@ import UserAgent from './UserAgent'; | |||
10 | 10 | ||
11 | const debug = require('debug')('Ferdi:Service'); | 11 | const debug = require('debug')('Ferdi:Service'); |
12 | 12 | ||
13 | export const RESTRICTION_TYPES = { | ||
14 | SERVICE_LIMIT: 0, | ||
15 | CUSTOM_URL: 1, | ||
16 | }; | ||
17 | |||
18 | export default class Service { | 13 | export default class Service { |
19 | id = ''; | 14 | id = ''; |
20 | 15 | ||
diff --git a/src/models/User.js b/src/models/User.js index 74a39926b..d864dde0c 100644 --- a/src/models/User.js +++ b/src/models/User.js | |||
@@ -24,8 +24,6 @@ export default class User { | |||
24 | 24 | ||
25 | @observable hadSubscription = false; | 25 | @observable hadSubscription = false; |
26 | 26 | ||
27 | @observable isPremium = true; | ||
28 | |||
29 | @observable beta = false; | 27 | @observable beta = false; |
30 | 28 | ||
31 | @observable donor = {}; | 29 | @observable donor = {}; |
@@ -49,7 +47,6 @@ export default class User { | |||
49 | this.lastname = data.lastname || this.lastname; | 47 | this.lastname = data.lastname || this.lastname; |
50 | this.organization = data.organization || this.organization; | 48 | this.organization = data.organization || this.organization; |
51 | this.accountType = data.accountType || this.accountType; | 49 | this.accountType = data.accountType || this.accountType; |
52 | this.isPremium = true; | ||
53 | this.beta = data.beta || this.beta; | 50 | this.beta = data.beta || this.beta; |
54 | this.donor = data.donor || this.donor; | 51 | this.donor = data.donor || this.donor; |
55 | this.isDonor = data.isDonor || this.isDonor; | 52 | this.isDonor = data.isDonor || this.isDonor; |