Skip to content

Commit

Permalink
CalderaWP#3204 minor cleanups to translate tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Pollock committed May 22, 2019
1 parent 40a1d8e commit e7fbbc2
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 62 deletions.
20 changes: 12 additions & 8 deletions clients/admin/MainDashboard/components/Translate/Translate.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {RemoteImage,FeaturedImage, PostExcerpt, PostTitle} from "../../../../components/RemotePost";
import {RemoteImage, FeaturedImage, PostExcerpt, PostTitle} from "../../../../components/RemotePost";
import {Component} from "@wordpress/element";
import url from "../../../../components/functions/url";
import {Grid, Col, Row} from "react-bootstrap";
Expand Down Expand Up @@ -102,8 +102,8 @@ export default class Translate extends Component {
<Grid
className={'cf-translate-panel'}
style={
{'max-width': '100%'}
}>
{'max-width': '100%'}
}>
<Row>
<Col xs={12}>
<PostRow post={post} link={link} apiRoot={apiRoot} imageId={141602}/>
Expand Down Expand Up @@ -148,13 +148,17 @@ export default class Translate extends Component {
<Row>
<div>
<h3><Twemoji text=":volcano:"/> Reach A Global Audience <Twemoji text=":volcano:"/></h3>
<p>Caldera Forms + Weglot gives your site magic super powers. Weglot automatically translates your whole site in minutes, including your forms. It supports more than 100 languages, and it’s compatible with any WordPress themes and plugins.</p>
<p>Surprise: your whole site is translated automatically, forms, post content, menus, everything. Magic.</p>
<p>Caldera Forms + Weglot gives your site magic super powers. Weglot automatically translates
your whole site in minutes, including your forms. It supports more than 100 languages, and
it’s compatible with any WordPress themes and plugins.</p>
<p>Surprise: your whole site is translated automatically, forms, post content, menus,
everything. Magic.</p>
</div>
<a
href={url({source: 'caldera-forms-admin-translate-tab'}, 'https://calderaforms.com/translate' ) }
className={'button button-primary cf-translate-cta' }
>
href={url({source: 'caldera-forms-admin-translate-tab'}, 'https://calderaforms.com/translate')}
className={'button button-primary cf-translate-cta'}
target={'_blank'}
>
Get Started
</a>

Expand Down
40 changes: 7 additions & 33 deletions clients/components/DocSearch/Components/ToggleVisible.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,6 @@ import React from 'react';
import {Glyphicon} from 'react-bootstrap';

export class ToggleVisible extends React.Component {
constructor(props) {
super(props);
this.state = {
isOpen: this.props.isOpen
};

this.text = this.text.bind(this);
this.title = this.title.bind(this);
this.icon = this.icon.bind(this);
this.supportUrl = this.supportUrl.bind(this);
}

text() {
if (this.props.isOpen) {
return 'Close Search Panel'
}
return 'Open Search Panel'
}

title() {
if (this.props.isOpen) {
Expand All @@ -28,36 +10,28 @@ export class ToggleVisible extends React.Component {
return 'Open Search Panel';
}

icon() {
if (this.props.isOpen) {
return 'remove-circle';
}
return 'search';

}
supportUrl(){
supportUrl() {
return `https://calderaforms.com/support?utm_source=search&utm_term=${(this.props.lastParams.categories)}&utm_keyword=${encodeURIComponent(this.props.lastParams.s)}`;
}


render() {
return (
<button
aria-expanded={this.props.isOpen}
className={'cf-doc-search-sidebar-toggle'}
title={this.title()}
onClick={this.props.toggleOpen}
>
<Glyphicon
glyph={this.icon()}
/>
<span className="dashicons dashicons-menu"></span>
<span
className={'description'}
className={'screen-reader-text sr-only'}
>
{this.text()}
</span>
Toggle Menu
</span>
</button>
);

);


}
Expand Down
40 changes: 20 additions & 20 deletions clients/privacy/build/index.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -1972,11 +1972,11 @@ var meta = module.exports = {
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__FormGroup__ = __webpack_require__(370);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_21__FormGroup__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__Glyphicon__ = __webpack_require__(178);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_22__Glyphicon__["a"]; });
/* unused harmony reexport Glyphicon */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__Grid__ = __webpack_require__(237);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_23__Grid__["a"]; });
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_23__Grid__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__HelpBlock__ = __webpack_require__(371);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return __WEBPACK_IMPORTED_MODULE_24__HelpBlock__["a"]; });
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_24__HelpBlock__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_25__Image__ = __webpack_require__(372);
/* unused harmony reexport Image */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_26__InputGroup__ = __webpack_require__(373);
Expand All @@ -1986,9 +1986,9 @@ var meta = module.exports = {
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_28__Label__ = __webpack_require__(377);
/* unused harmony reexport Label */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_29__ListGroup__ = __webpack_require__(378);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return __WEBPACK_IMPORTED_MODULE_29__ListGroup__["a"]; });
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return __WEBPACK_IMPORTED_MODULE_29__ListGroup__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_30__ListGroupItem__ = __webpack_require__(238);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return __WEBPACK_IMPORTED_MODULE_30__ListGroupItem__["a"]; });
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return __WEBPACK_IMPORTED_MODULE_30__ListGroupItem__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_31__Media__ = __webpack_require__(145);
/* unused harmony reexport Media */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_32__MenuItem__ = __webpack_require__(385);
Expand Down Expand Up @@ -2024,7 +2024,7 @@ var meta = module.exports = {
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_47__PageItem__ = __webpack_require__(418);
/* unused harmony reexport PageItem */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_48__Pager__ = __webpack_require__(420);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return __WEBPACK_IMPORTED_MODULE_48__Pager__["a"]; });
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return __WEBPACK_IMPORTED_MODULE_48__Pager__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_49__Pagination__ = __webpack_require__(421);
/* unused harmony reexport Pagination */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_50__Panel__ = __webpack_require__(423);
Expand All @@ -2040,13 +2040,13 @@ var meta = module.exports = {
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_55__ResponsiveEmbed__ = __webpack_require__(432);
/* unused harmony reexport ResponsiveEmbed */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_56__Row__ = __webpack_require__(433);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return __WEBPACK_IMPORTED_MODULE_56__Row__["a"]; });
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return __WEBPACK_IMPORTED_MODULE_56__Row__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_57__SafeAnchor__ = __webpack_require__(54);
/* unused harmony reexport SafeAnchor */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_58__SplitButton__ = __webpack_require__(434);
/* unused harmony reexport SplitButton */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_59__Tab__ = __webpack_require__(436);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return __WEBPACK_IMPORTED_MODULE_59__Tab__["a"]; });
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return __WEBPACK_IMPORTED_MODULE_59__Tab__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_60__TabContainer__ = __webpack_require__(184);
/* unused harmony reexport TabContainer */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_61__TabContent__ = __webpack_require__(185);
Expand All @@ -2056,7 +2056,7 @@ var meta = module.exports = {
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_63__TabPane__ = __webpack_require__(257);
/* unused harmony reexport TabPane */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_64__Tabs__ = __webpack_require__(438);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return __WEBPACK_IMPORTED_MODULE_64__Tabs__["a"]; });
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return __WEBPACK_IMPORTED_MODULE_64__Tabs__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_65__Thumbnail__ = __webpack_require__(439);
/* unused harmony reexport Thumbnail */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_66__ToggleButton__ = __webpack_require__(258);
Expand Down Expand Up @@ -51258,12 +51258,12 @@ var DocLinks = function DocLinks(props) {
__WEBPACK_IMPORTED_MODULE_0_react___default.a.Fragment,
null,
wp.element.createElement(
__WEBPACK_IMPORTED_MODULE_2_react_bootstrap__["j" /* ListGroup */],
__WEBPACK_IMPORTED_MODULE_2_react_bootstrap__["i" /* ListGroup */],
{
style: { padding: '12px' }
},
wp.element.createElement(
__WEBPACK_IMPORTED_MODULE_2_react_bootstrap__["k" /* ListGroupItem */],
__WEBPACK_IMPORTED_MODULE_2_react_bootstrap__["j" /* ListGroupItem */],
null,
wp.element.createElement(__WEBPACK_IMPORTED_MODULE_1_react_emoji_render__["Twemoji"], { text: ':eyes:' }),
wp.element.createElement(
Expand All @@ -51273,7 +51273,7 @@ var DocLinks = function DocLinks(props) {
)
),
wp.element.createElement(
__WEBPACK_IMPORTED_MODULE_2_react_bootstrap__["k" /* ListGroupItem */],
__WEBPACK_IMPORTED_MODULE_2_react_bootstrap__["j" /* ListGroupItem */],
null,
wp.element.createElement(__WEBPACK_IMPORTED_MODULE_1_react_emoji_render__["Twemoji"], { text: ':eyes:' }),
wp.element.createElement(
Expand All @@ -51283,7 +51283,7 @@ var DocLinks = function DocLinks(props) {
)
),
wp.element.createElement(
__WEBPACK_IMPORTED_MODULE_2_react_bootstrap__["k" /* ListGroupItem */],
__WEBPACK_IMPORTED_MODULE_2_react_bootstrap__["j" /* ListGroupItem */],
null,
props.children
)
Expand Down Expand Up @@ -52760,7 +52760,7 @@ var FormPrivacySettings = function FormPrivacySettings(props) {
'Enable'
),
wp.element.createElement(
__WEBPACK_IMPORTED_MODULE_3_react_bootstrap__["i" /* HelpBlock */],
__WEBPACK_IMPORTED_MODULE_3_react_bootstrap__["h" /* HelpBlock */],
null,
'If checked data for this form will be added to GDPR personal data requests, and deletes.'
)
Expand Down Expand Up @@ -53031,7 +53031,7 @@ var IsEmailIdentifyingField = function IsEmailIdentifyingField(props) {
)
),
wp.element.createElement(
__WEBPACK_IMPORTED_MODULE_2_react_bootstrap__["i" /* HelpBlock */],
__WEBPACK_IMPORTED_MODULE_2_react_bootstrap__["h" /* HelpBlock */],
{
className: 'screen-reader-text'
},
Expand Down Expand Up @@ -53121,7 +53121,7 @@ var IsPiiField = function IsPiiField(props) {
)
),
wp.element.createElement(
__WEBPACK_IMPORTED_MODULE_2_react_bootstrap__["i" /* HelpBlock */],
__WEBPACK_IMPORTED_MODULE_2_react_bootstrap__["h" /* HelpBlock */],
{
className: 'screen-reader-text'
},
Expand Down Expand Up @@ -55528,18 +55528,18 @@ var HelpBox = function HelpBox(props) {
wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2_react_emoji_render__["Twemoji"], { text: ':volcano: Terms' })
),
wp.element.createElement(
__WEBPACK_IMPORTED_MODULE_4_react_bootstrap__["j" /* ListGroup */],
__WEBPACK_IMPORTED_MODULE_4_react_bootstrap__["i" /* ListGroup */],
{
style: { padding: '12px' }
},
wp.element.createElement(
__WEBPACK_IMPORTED_MODULE_4_react_bootstrap__["k" /* ListGroupItem */],
__WEBPACK_IMPORTED_MODULE_4_react_bootstrap__["j" /* ListGroupItem */],
null,
wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2_react_emoji_render__["Twemoji"], { text: ':eyes:' }),
'Email Identifying Fields: The field(s) of your form that can be used to determine whose data an entry belongs to.'
),
wp.element.createElement(
__WEBPACK_IMPORTED_MODULE_4_react_bootstrap__["k" /* ListGroupItem */],
__WEBPACK_IMPORTED_MODULE_4_react_bootstrap__["j" /* ListGroupItem */],
null,
wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2_react_emoji_render__["Twemoji"], { text: ':eyes:' }),
'Personally Identifying Fields (PII): The field(s) of your form that contain PII about the person identified in the email identifying field.'
Expand Down Expand Up @@ -55622,7 +55622,7 @@ var FormSelectorNoGutenberg = function FormSelectorNoGutenberg(props) {
})
),
wp.element.createElement(
__WEBPACK_IMPORTED_MODULE_3_react_bootstrap__["i" /* HelpBlock */],
__WEBPACK_IMPORTED_MODULE_3_react_bootstrap__["h" /* HelpBlock */],
null,
'Choose a form to edit privacy settings for.'
)
Expand Down
2 changes: 1 addition & 1 deletion clients/privacy/build/index.min.js.map

Large diffs are not rendered by default.

0 comments on commit e7fbbc2

Please sign in to comment.