From eb1d3c81f1a3c4ec33b5b630cf1e168ab946dc75 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Sun, 24 Dec 2017 22:09:14 +0100 Subject: Completely remove miner --- src/components/ui/Subscription.js | 106 +++++++++----------------------------- 1 file changed, 25 insertions(+), 81 deletions(-) (limited to 'src/components/ui/Subscription.js') diff --git a/src/components/ui/Subscription.js b/src/components/ui/Subscription.js index 8bff72095..e402588b6 100644 --- a/src/components/ui/Subscription.js +++ b/src/components/ui/Subscription.js @@ -31,10 +31,6 @@ const messages = defineMessages({ id: 'subscription.type.year', defaultMessage: '!!!year', }, - typeMining: { - id: 'subscription.type.mining', - defaultMessage: '!!!Support Franz with processing power', - }, includedFeatures: { id: 'subscription.includedFeatures', defaultMessage: '!!!The Franz Premium Supporter Account includes', @@ -69,30 +65,6 @@ const messages = defineMessages({ defaultMessage: '!!!coming soon', }, }, - miningHeadline: { - id: 'subscription.mining.headline', - defaultMessage: '!!!How does this work?', - }, - experimental: { - id: 'subscription.mining.experimental', - defaultMessage: '!!!experimental', - }, - miningDetail1: { - id: 'subscription.mining.line1', - defaultMessage: '!!!By enabling "Support with processing power", Franz will use about 20-50% of your CPU to mine cryptocurrency Monero which equals approximately € 5/year.', - }, - miningDetail2: { - id: 'subscription.mining.line2', - defaultMessage: '!!!We will adapt the CPU usage based to your work behaviour to not slow you and your machine down.', - }, - miningDetail3: { - id: 'subscription.mining.line3', - defaultMessage: '!!!As long as the miner is active, you will have unlimited access to all the Franz Premium Supporter Features.', - }, - miningMoreInfo: { - id: 'subscription.mining.moreInformation', - defaultMessage: '!!!Get more information about this plan', - }, euTaxInfo: { id: 'subscription.euTaxInfo', defaultMessage: '!!!EU residents: local sales tax may apply', @@ -153,13 +125,6 @@ export default class SubscriptionForm extends Component { }, }; - if (this.props.plan.miner) { - form.fields.paymentTier.options.push({ - value: 'mining', - label: intl.formatMessage(messages.typeMining), - }); - } - if (this.props.showSkipOption) { form.fields.paymentTier.options.unshift({ value: 'skip', @@ -200,52 +165,31 @@ export default class SubscriptionForm extends Component { {!hideInfo && (
- {this.form.$('paymentTier').value !== 'mining' && ( -
-

- {intl.formatMessage(messages.includedFeatures)} -

-
-
    -
  • {intl.formatMessage(messages.features.onpremise)}
  • -
  • - {intl.formatMessage(messages.features.encryptedSync)} - {intl.formatMessage(messages.features.comingSoon)} -
  • -
  • - {intl.formatMessage(messages.features.customServices)} - {intl.formatMessage(messages.features.comingSoon)} -
  • -
  • - {intl.formatMessage(messages.features.vpn)} - {intl.formatMessage(messages.features.comingSoon)} -
  • -
  • - {intl.formatMessage(messages.features.ads)} -
  • -
-
-
- )} - {this.form.$('paymentTier').value === 'mining' && ( -
-

- {intl.formatMessage(messages.miningHeadline)} -   - {intl.formatMessage(messages.experimental)} -

-

{intl.formatMessage(messages.miningDetail1)}

-

{intl.formatMessage(messages.miningDetail2)}

-

{intl.formatMessage(messages.miningDetail3)}

-

- -

+
+

+ {intl.formatMessage(messages.includedFeatures)} +

+
+
    +
  • {intl.formatMessage(messages.features.onpremise)}
  • +
  • + {intl.formatMessage(messages.features.encryptedSync)} + {intl.formatMessage(messages.features.comingSoon)} +
  • +
  • + {intl.formatMessage(messages.features.customServices)} + {intl.formatMessage(messages.features.comingSoon)} +
  • +
  • + {intl.formatMessage(messages.features.vpn)} + {intl.formatMessage(messages.features.comingSoon)} +
  • +
  • + {intl.formatMessage(messages.features.ads)} +
  • +
- )} +
)}
@@ -267,7 +211,7 @@ export default class SubscriptionForm extends Component { onClick={() => handlePayment(this.form.$('paymentTier').value)} /> )} - {this.form.$('paymentTier').value !== 'skip' && this.form.$('paymentTier').value !== 'mining' && ( + {this.form.$('paymentTier').value !== 'skip' && (

{intl.formatMessage(messages.euTaxInfo)}

-- cgit v1.2.3-70-g09d2