Removing plugin

This commit is contained in:
okbel
2018-03-30 16:05:25 -03:00
parent 681f9ecf5a
commit 24c1abaa06
7 changed files with 0 additions and 164 deletions
@@ -1 +0,0 @@
# talk-plugin-auth-checkbox
@@ -1,23 +0,0 @@
{
"env": {
"browser": true,
"es6": true,
"mocha": true
},
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
}
},
"parser": "babel-eslint",
"plugins": [
"react"
],
"rules": {
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"no-console": ["warn", { "allow": ["warn", "error"] }]
}
}
@@ -1,18 +0,0 @@
.link {
color: #2c69b6;
cursor: pointer;
margin: 0 3px;
&:last-child {
margin-right: 0;
}
}
.fieldContainer {
padding: 10px 0;
display: flex;
}
.textLabel {
padding-left: 10px;
}
@@ -1,76 +0,0 @@
import React from 'react';
import { Checkbox } from 'plugin-api/beta/client/components/ui';
import { t } from 'plugin-api/beta/client/services';
import styles from './TermsAndConditionsField.css';
import cn from 'classnames';
const TermsLink = () => (
<a
className={styles.link}
href={t('talk-plugin-auth-checkbox.terms-link')}
target="_blank"
>
{t('talk-plugin-auth-checkbox.terms')}
</a>
);
const PrivacyLink = () => (
<a
className={styles.link}
href={t('talk-plugin-auth-checkbox.privacy-policy-link')}
target="_blank"
>
{t('talk-plugin-auth-checkbox.privacy-policy')}
</a>
);
class TermsAndConditionsField extends React.Component {
state = { checked: false };
id = 'terms-and-conditions';
componentWillMount() {
this.props.indicateBlocker();
}
onChange = ({ target: { checked } }) => {
this.setState({ checked });
if (checked) {
this.props.indicateBlockerResolved();
} else {
this.props.indicateBlocker();
}
};
render() {
return (
<div
className={cn(
styles.fieldContainer,
'talk-plugin-auth-checkbox-field-container'
)}
>
<Checkbox
checked={this.state.checked}
className="talk-plugin-auth-checkbox-checkbox"
onChange={this.onChange}
id={this.id}
/>
<div
id={this.id}
className={cn(
styles.textLabel,
'talk-plugin-auth-checkbox-text-label'
)}
>
{t('talk-plugin-auth-checkbox.copy')}
<TermsLink />
{t('talk-plugin-auth-checkbox.and')}
<PrivacyLink />
{t('talk-plugin-auth-checkbox.from')}
</div>
</div>
);
}
}
export default TermsAndConditionsField;
@@ -1,9 +0,0 @@
import TermsAndConditionsField from './components/TermsAndConditionsField';
import translations from './translations.yml';
export default {
slots: {
'talkPluginAuth.formField': [TermsAndConditionsField],
},
translations,
};
@@ -1,36 +0,0 @@
en:
talk-plugin-auth-checkbox:
copy: I agree to the Mozilla
and: and
terms: Terms of Service
privacy-policy: Privacy Policy
from: .
terms-link: https://www.mozilla.org/en-US/about/legal/terms/mozilla/
privacy-policy-link: https://www.mozilla.org/en-US/privacy/websites/
es:
talk-plugin-auth-checkbox:
copy: Estoy de acuerdo con
and: y
terms: los Terminos y Condiciones
privacy-policy: la Política de Privacidad
from: de Mozilla.
terms-link: https://www.mozilla.org/es-ES/about/legal/terms/mozilla/
privacy-policy-link: https://www.mozilla.org/es-ES/privacy/websites/
fr:
talk-plugin-auth-checkbox:
copy: J'accepte
and: et
terms: les conditions d'utilisation
privacy-policy: la politique de confidentialité
from: de Mozilla.
terms-link: https://www.mozilla.org/fr/about/legal/terms/mozilla/
privacy-policy-link: https://www.mozilla.org/fr/privacy/websites/
de:
talk-plugin-auth-checkbox:
copy: Ich stimme
and: und
terms: den Allgemeinen Geschäftsbedingungen
privacy-policy: der Datenschutzrichtlinie
from: von Mozilla zu.
terms-link: https://www.mozilla.org/de/about/legal/terms/mozilla/
privacy-policy-link: https://www.mozilla.org/de/privacy/websites/
@@ -1 +0,0 @@
module.exports = {};