Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove hardcoded segment and minor UI #698

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 2 additions & 19 deletions tdrive/frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@
left: calc(50% - 25px);
position: absolute;
top: calc(50% - 25px);
width: 50px;
width: 50px;
}

.path {
stroke-dasharray: 1,200;
stroke-dashoffset: 0;
animation:
animation:
dash 1.5s ease-in-out infinite,
color 6s ease-in-out infinite
;
Expand Down Expand Up @@ -136,22 +136,5 @@
document.getElementById('body').className = 'electron';
}
</script>
<script async src="https://cdn.headwayapp.co/widget.js"></script>
<script>
if(location.origin.indexOf("tdrive.app") >= 0){
!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"];analytics.factory=function(e){return function(){var t=Array.prototype.slice.call(arguments);t.unshift(e);analytics.push(t);return analytics}};for(var e=0;e<analytics.methods.length;e++){var key=analytics.methods[e];analytics[key]=analytics.factory(key)}analytics.load=function(key,e){var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.src="https://cdn.segment.com/analytics.js/v1/" + key + "/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n);analytics._loadOptions=e};analytics.SNIPPET_VERSION="4.13.1";
analytics.load("Vl5xpgcpGRe4BmSYp9xPlAeQdqLP5lLe");
analytics.page();
}}();
}
</script>
<script>
if(location.origin.indexOf("canary.tdrive.app") >= 0){
const canaryTag = document.createElement("div");
canaryTag.id = "canary_tag";
document.body.appendChild(canaryTag);
window.canary = true;
}
</script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -61,25 +61,22 @@ export default class UserParameter extends Component {
if (this.state.page === 1) {
return (
<form className="" autoComplete="off">
<div className="title">{this.state.i18n.t('scenes.apps.account.title')}</div>
<div className="group_section">
<Attribute
label={this.state.i18n.t('scenes.apps.account.languages.menu_title')}
description={this.state.i18n.t('scenes.apps.account.languages.text')}
>
<div className="parameters_form">
<select
value={this.state.i18n.language}
onChange={ev => currentUserService.updateLanguage(ev.target.value)}
>
<option value="en">English</option>
<option value="fr">Français</option>
<option value="ru">Русский</option>
<option value="vi">Tiếng Việt</option>
</select>
</div>
</Attribute>
</div>
<Attribute
label={this.state.i18n.t('scenes.apps.account.languages.menu_title')}
description={this.state.i18n.t('scenes.apps.account.languages.text')}
>
<div className="parameters_form">
<select
value={this.state.i18n.language}
onChange={ev => currentUserService.updateLanguage(ev.target.value)}
>
<option value="en">English</option>
<option value="fr">Français</option>
<option value="ru">Русский</option>
<option value="vi">Tiếng Việt</option>
</select>
</div>
</Attribute>
</form>
);
}
Expand Down