Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit b7bfaad

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/master' into pr/1425
2 parents bcc4e8e + 4ac89a6 commit b7bfaad

File tree

9 files changed

+35
-22
lines changed

9 files changed

+35
-22
lines changed

css/obBase.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -587,20 +587,21 @@ form {
587587
position: relative;
588588
background-position: center;
589589
background-size: cover;
590-
border-radius: 3px;
590+
background-repeat: no-repeat;
591+
border-radius: 2px;
591592
height: 230px;
592593
width: 250px;
593594
}
594595

595596
.itemImg.itemImg-large {
596597
/* flex row collapses unless a specific height is set */
597-
height: 380px;
598-
width: 100%;
598+
height: 472px;
599+
width: 514px;
599600
border-radius: 0;
600601
}
601602

602603
.itemImg.itemImg-small {
603-
height: 82px;
604+
height: 111px;
604605
width: 121px;
605606
margin: 0 10px 10px 0;
606607
border-radius: 1px;

index.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ <h2 class="txt-center">
8181
<i class="ion-android-sync spinner fontSize30 spinner-with-logo-icon"></i>
8282
</div>
8383
<div class="width100 positionTop">
84-
<a class="btn btn-txt rowTop10 marginRight10 pull-right js-indexReload"><i class="ion-android-sync"></i> Reload</a>
85-
<a class="btn btn-txt rowTop10 marginRight10 pull-right" href="#home"><i class="ion-home"></i> Load Index</a>
84+
<a class="btn btn-txt rowTop10 marginRight10 pull-right js-indexReload"><i class="ion-android-sync"></i> <span class="js-translate" data-translate="Reload"></span></a>
85+
<a class="btn btn-txt rowTop10 marginRight10 pull-right" href="#home"><i class="ion-home"></i> <span class="js-translate" data-translate="LoadIndex"></span></a>
8686
</div>
8787
</div>
8888

@@ -92,6 +92,13 @@ <h2 class="txt-center">
9292
<script>
9393
var app = require('./js/main'),
9494
remote = require('remote');
95+
96+
window.translateIndex = function(){
97+
$('.js-translate').each(function() {
98+
$(this).text(polyglot.t($(this).data("translate")));
99+
});
100+
};
101+
translateIndex();
95102
$('.js-closeIndexModal').on('click', function(){
96103
$(this).closest('.modal').addClass('hide');
97104
});

js/languages/en-US.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"EnterMessage": "Enter message...",
77
"Recommended": "Recommended",
88
"Reload": "Reload",
9+
"LoadIndex": "Load Index",
910
"You": "You",
1011
"Skip": "Skip",
1112
"Done": "Done",

js/languages/pl.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"EnterMessage": "Wprowadź tekst...",
77
"Recommended": "Rekomendowane",
88
"Reload": "Odśwież",
9+
"LoadIndex": "Strona główna",
910
"You": "Ja",
1011
"Skip": "Pomiń",
1112
"Done": "Gotowe",

js/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ user.on('change:language', function(md, lang) {
8585
window.lang = lang;
8686
extendPolyglot(lang);
8787
localStorage.setItem('lang', lang);
88+
//trigger translation function on index
89+
window.translateIndex();
90+
8891
});
8992

9093
//keep user and profile urls synced with the server configuration

js/templates/buyWizard.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="btn-corner btn-cornerTR btn-cornerTROutR btn-flushTop js-closeBuyWizardModal">
44
<h2 class="ion-android-close custCol-text clickable"></h2>
55
</div>
6-
<div class="modal-hero js-buyWizardHero shadow-inner1-light"
6+
<div class="modal-hero js-buyWizardHero custCol-text shadow-inner1-light"
77
style="background-image: url(<%= ob.serverUrl %>get_image?hash=<%= ob.vendor_offer.listing.item.image_hashes[0] %><%= ob.imageExtension %>), url(imgs/defaultBanner.png);">
88
<div class="js-buyWizardMapPlaceholder hide">
99
<div class="flexContainer">
@@ -19,28 +19,28 @@ <h2 class="ion-android-close custCol-text clickable"></h2>
1919
<div class="modal-hero modal-heroFullHeightNoButtons js-buyWizardSpinner hide background1 custCol-primary">
2020
<div class="width100 txt-center vCentered">
2121
<div class="txt-col1 ion-android-sync spinner spinner-slow icon-gigantic icon-circle-background1 rowTop50 row20"></div>
22-
<h3 class="txt-bright padding30"><%= polyglot.t('CheckExchanges') %> </h3>
22+
<h3 class="custCol-text padding30"><%= polyglot.t('CheckExchanges') %> </h3>
2323
</div>
2424
</div>
2525
<div class="modal-hero modal-heroFullHeightNoButtons padding40 js-buyWizardPay hide background1 custCol-primary">
2626
<div class="width100 row20">
2727
<img class="blockCenter qrCode js-buyWizardPayQRCode" height="250" width="250" src="imgs/defaultItem.png"/>
2828
</div>
2929
<div class="txt-bright pad20">
30-
<div class="txt-center row10 textSize20px">
30+
<div class="txt-center row10 textSize20px custCol-text">
3131
<%= polyglot.t('buyFlow.SendBTCtoAddress', {amount: '<span class="js-buyWizardDetailsTotalBTC"></span>'}) %>
3232
</div>
3333
<div class="txt-center row10">
34-
<a class="textSize16px js-buyWizardPayLink"><span class="js-buyWizardPayURL"></span></a>
34+
<a class="textSize16px js-buyWizardPayLink custCol-text"><span class="js-buyWizardPayURL"></span></a>
3535
</div>
3636
<div class="txt-center row10">
3737
<input type="checkbox" class="textSize11px fieldItem thin" id="BuyWizardQRDetailsInput">
38-
<label for="BuyWizardQRDetailsInput" class="textSize11px"> <%= polyglot.t('AdditionalPaymentDataInfo') %></label>
38+
<label for="BuyWizardQRDetailsInput" class="textSize11px custCol-text"> <%= polyglot.t('AdditionalPaymentDataInfo') %></label>
3939
</div>
40-
<a class="btn btn-txt btn-wide row10 js-buyWizardPayCopy custCol-secondary"><i class="ion-clipboard"></i> <%= polyglot.t('buyFlow.CopyAddress') %></a>
41-
<a class="btn btn-txt btn-wide row10 js-buyWizardPayLink custCol-secondary"><i class="ion-link"></i> <%= polyglot.t('buyFlow.OpenAddress') %></a>
42-
<a class="btn btn-txt btn-wide js-buyWizardPayCheck custCol-secondary"><i class="ion-refresh"></i> <%= polyglot.t('buyFlow.RefreshPayment') %></a>
43-
<div class="rowTop10 txt-center note">
40+
<a class="btn btn-txt btn-wide row10 js-buyWizardPayCopy custCol-secondary custCol-text"><i class="ion-clipboard"></i> <%= polyglot.t('buyFlow.CopyAddress') %></a>
41+
<a class="btn btn-txt btn-wide row10 js-buyWizardPayLink custCol-secondary custCol-text"><i class="ion-link"></i> <%= polyglot.t('buyFlow.OpenAddress') %></a>
42+
<a class="btn btn-txt btn-wide js-buyWizardPayCheck custCol-secondary custCol-text"><i class="ion-refresh"></i> <%= polyglot.t('buyFlow.RefreshPayment') %></a>
43+
<div class="rowTop10 txt-center note custCol-text">
4444
<%= polyglot.t('buyFlow.paymentNote') %>
4545
</div>
4646
</div>

js/templates/item.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ <h4><%= polyglot.t('CanBeShippedTo') %></h4>
166166
<%= polyglot.t('ShippingReturns') %>
167167
</a>
168168
</div>
169-
<div class="flexContainer flex-border custCol-primary js-description js-tabTarg textOpacity75 minHeight300 <% ob.activeTab !== 'description' && print('hide') %>">
169+
<div class="flexContainer flex-border custCol-primary js-description js-tabTarg textOpacity1 minHeight300 <% ob.activeTab !== 'description' && print('hide') %>">
170170
<div class="flexRow">
171-
<div class="rowItem fontSize16 padding30 paddingTop10 lineHeight24 fontWeight400 flexContainer editableContent">
171+
<div class="rowItem fontSize16 padding30 paddingTop20 lineHeight24 fontWeight400 flexContainer editableContent">
172172
<%= ob.vendor_offer.listing.item.displayDescription %>
173173
</div>
174174
</div>

js/utils/setTheme.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ module.exports = function(primaryColor, secondaryColor, backgroundColor, textCol
6161
"#ov1 #userPage input[type='number'].spinButtons::-webkit-inner-spin-button:before { color: " + textColor + ";}" +
6262
"#ov1 #userPage input[type='number'].spinButtons::-webkit-inner-spin-button:after { color: " + textColor + ";}" +
6363
"#ov1 #userPage #obContainer input::-webkit-input-placeholder { color: " + textColor + ";}" +
64-
"#ov1 #userPage #pageNav input::-webkit-input-placeholder { color: " + textColor + ";}" +
64+
//"#ov1 #userPage #pageNav input::-webkit-input-placeholder { color: " + textColor + ";}" +
6565
"#ov1 #userPage #obContainer textarea::-webkit-input-placeholder { color: " + textColor + ";}" +
66-
"#ov1 #userPage #pageNav textarea::-webkit-input-placeholder { color: " + textColor + ";}" +
66+
//"#ov1 #userPage #pageNav textarea::-webkit-input-placeholder { color: " + textColor + ";}" +
6767
"#ov1 #userPage .txtFieldWrapper-bar:before { color: " + textColor + ";}" +
6868
"#ov1 #userPage .mainContainer { box-shadow: 0px 10px 20px " + shadeColor2(backgroundColor, -0.3) + "; }" +
6969
"#ov1 #userPage .mainContainer .txtFieldWrapper:before { color: " + textColor + "; }" +

js/views/itemEditVw.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,8 @@ module.exports = baseVw.extend({
330330
var self = this,
331331
$imageInput = this.$el.find('.js-itemImageUpload'),
332332
curImages = this.model.get('combinedImagesArray'),
333-
maxH = 800,
334-
maxW = 800,
333+
maxH = 944,
334+
maxW = 1028,
335335
imageList = [],
336336
loaded = 0,
337337
imageCount;
@@ -382,7 +382,7 @@ module.exports = baseVw.extend({
382382
canvas.height = imgH;
383383
ctx = canvas.getContext('2d');
384384
ctx.drawImage(newImage, 0, 0, imgW, imgH);
385-
dataURI = canvas.toDataURL('image/jpeg', 0.45);
385+
dataURI = canvas.toDataURL('image/jpeg', 0.7);
386386
dataURI = dataURI.replace(/^data:image\/(png|jpeg);base64,/, "");
387387
imageList.push(dataURI);
388388

0 commit comments

Comments
 (0)