Skip to content

Commit

Permalink
Remove hardcoded segment and minor UI (#698 #388)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericlinagora authored Oct 30, 2024
2 parents b4e7621 + c611390 commit e07ddf5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 38 deletions.
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

0 comments on commit e07ddf5

Please sign in to comment.