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

Commit 843cc1c

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/master' into pr/1381
2 parents b2573cd + 50156e9 commit 843cc1c

File tree

15 files changed

+244
-94
lines changed

15 files changed

+244
-94
lines changed

css/obBase.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,12 @@ form {
414414
height: 100%;
415415
}
416416

417+
.flexRow-grid {
418+
/* use for wrapping grids of objects with 10px margins on the right side */
419+
margin-right: -10px;
420+
width: auto;
421+
}
422+
417423
.flexRow [class |= "flexCol"] {
418424
box-sizing: border-box;
419425
position: relative;
@@ -2958,6 +2964,7 @@ input[type="number"].fieldItem.fieldItem-withButton {
29582964
border: 2px solid transparent;
29592965
color: #fff;
29602966
overflow: auto; /* use customThemeScrollbar to add a scrolbar */
2967+
word-break: break-all; /* prevent urls from making the text area grow */
29612968
}
29622969

29632970
.fieldItem-textarea:focus {

js/config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ module.exports = {
1010

1111
bitcoinValidationRegex: bitcoinValidationRegex,
1212

13+
keyShortcutPrefix: window.navigator.platform === 'MacIntel' ? '⌘' : 'Ctrl+',
14+
1315
keyShortcuts: {
16+
undo: 'z',
1417
discover: 'd',
1518
myPage: 'h',
1619
customizePage: 'e',
@@ -19,7 +22,9 @@ module.exports = {
1922
sales: 'y',
2023
cases: 'j',
2124
settings: 'g',
22-
addressBar: 'l'
25+
addressBar: 'l',
26+
save: 's',
27+
restart: 'r'
2328
},
2429

2530
setTestnet: function(testNetBoolean){

js/languages/en-US.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@
557557
"cases": "Cases",
558558
"notifications": "Notifications",
559559
"settings": "Settings",
560+
"restart": "Restart Application",
560561
"about": "About OpenBazaar",
561562
"support": "Support OpenBazaar",
562563
"Forward": "Forward",

js/languages/pl.json

Lines changed: 53 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"of": "z",
2424
"Sell": "Sprzedaj",
2525
"New": "Nowy",
26-
"HighlightToStyle": "Highlight text to style",
26+
"HighlightToStyle": "Zaznacz tekst do stylowania",
2727
"Excellent": "Doskonały",
2828
"Good": "W dobrym stanie",
2929
"Poor": "W złym stanie",
@@ -71,14 +71,14 @@
7171
"Welcome": "Witaj",
7272
"CreateStore": "Utwórz sklep",
7373
"GoToMyPage": "Mój profil",
74-
"Random": "Random",
75-
"ShowOnlyFollowerListings": "Personalized",
76-
"TryRandom": "Try random mode to discover more",
77-
"ShowOnlyFollowerListingsTooltip": "View listings from stores I follow",
78-
"ShowAllListingsTooltip": "View random listings on the network",
79-
"ViewUnfilteredListings": "View Random Listings",
80-
"AllListingsWarning": "By deactivating personalized listings your Discover feed will be populated with random listings on the network. \n \n Please keep in mind that these listings may contain adult or illicit content and/or photos that may be offensive. \n \n If at any point you want to go back to viewing personalized listings, you can simply toggle the setting and your Discover feed will go back to normal.",
81-
"ShowUnlfilteredListings": "Show Random Listings",
74+
"Random": "Losowe",
75+
"ShowOnlyFollowerListings": "Spersonalizowane",
76+
"TryRandom": "Wypróbuj tryb losowy, aby odkryć więcej",
77+
"ShowOnlyFollowerListingsTooltip": "Przeglądaj oferty z obserwowanych sklepów",
78+
"ShowAllListingsTooltip": "Przeglądaj losowe oferty z sieci",
79+
"ViewUnfilteredListings": "Przeglądaj losowe oferty",
80+
"AllListingsWarning": "Po wyłączeniu spersonalizowanych ofert twój kanał odkrywania zostanie wypełniony losowymi ofertami z całej sieci. \n\nPamiętaj, że te oferty mogą zawierać treści dla dorosłych lub nielegalne, a zdjęcia mogą być obraźliwe. \n\nGdybyś w dowolnym momencie chciał wrócić do spersonalizowanych ofert, po prostu włącz tę opcję z powrotem.",
81+
"ShowUnlfilteredListings": "Pokaż losowe oferty",
8282
"SearchForItemsPlaceholder": "Wprowadź słowo kluczowe...",
8383
"SearchForPagesPlaceholder": "Szukaj po nazwie lub słowie kluczowym",
8484
"SearchFeedPlaceholder": "Wprowadź słowo kluczowe...",
@@ -115,7 +115,7 @@
115115
"BUYNOW": "Kup teraz",
116116
"Description": "Opis",
117117
"Reviews": "Opinie",
118-
"Shipping": "Koszt wysyłki:",
118+
"Shipping": "Wysyłka:",
119119
"Shipping2": "Wysyłka:",
120120
"ShippingReturns": "Wysyłka i zwroty",
121121
"CountryOfOrigin": "Kraj pochodzenia:",
@@ -135,25 +135,25 @@
135135
"AddShipToRegion": "Obszar dostawy",
136136
"AddShipToRegionNote": "Dodaje wszystkie państwa w obszarze",
137137
"SelectRegion": "Dodaj opcjonalny obszar",
138-
"AllRegions": "All countries",
139-
"EuropeanUnion": "European Union",
140-
"EuropeanEconomicArea": "European Economic Area",
138+
"AllRegions": "Wszystkie kraje",
139+
"EuropeanUnion": "Unia Europejska",
140+
"EuropeanEconomicArea": "Europejski Obszar Gospodarczy",
141141
"Optional": "opcjonalnie",
142142
"Customize": "Dostosuj",
143143
"Save": "Zapisz",
144144
"Change": "Zmień",
145145
"Changes": "Zmiany",
146146
"SaveChanges": "Zapisz wprowadzone zmiany",
147147
"YourName": "Twoje imię",
148-
"UseTestnet": "Use Testnet",
149-
"UseTestnetHelp": "If set to true, your client will use Testnet bitcoin addresses. Only set to true if your server was started with the -t testnet flag.",
148+
"UseTestnet": "Używaj sieci testowej Bitcoin",
149+
"UseTestnetHelp": "Po ustawieniu na tak, twój klient będzie używał adresów sieci testowej Bitcoin. Zaznacz tak tylko jeśli twój serwer został uruchomiony z flagą -t.",
150150
"TestnetAddress": "Adres testnet",
151-
"TestnetAddressHelp": "Your client is set to use the Testnet, and will only allow Testnet addresses. To use the mainnet, and real Bitcoin, turn off the Testnet in Settings/Advanced, and make sure your server was not started with the -t testnet flag.",
151+
"TestnetAddressHelp": "Twój klient został skonfigurowany do używania sieci testowej Bitcoin i będzie akceptował tylko adresy sieci testowej Bitcoin. Aby używać głównej sieci oraz prawdziwych Bitcoinów wyłącz sieć testową w zaawansowanych ustawieniach i upewnij się, że twój serwer nie został uruchomiony z flagą -t.",
152152
"MustTestnetAddress": "Musi być adresem testnet",
153-
"BitcoinAddress": "Current Refund Address",
153+
"BitcoinAddress": "Bieżący adres zwrotów",
154154
"BitcoinReturnAddress": "Wprowadź swój adres Bitcoin",
155155
"BitcoinReturnAddressPlaceholder": "Wprowadź adres Bitcoin...",
156-
"BitcoinReturnAddressInfo": "If a refund is issued, the funds will need to be sent to a Bitcoin address. Please provide an address to your Wallet below. You must be able to access this address later to receive a refund.",
156+
"BitcoinReturnAddressInfo": "W przypadku zwrotu środków zostaną one wysłane na podany poniżej adres Bitcoin. W przyszłości musisz mieć dostęp do tego adresu, aby otrzymać zwrot.",
157157
"LocalCurrency": "Lokalna waluta",
158158
"TimeZone": "Strefa czasowa",
159159
"ShipToName": "Nazwa odbiorcy",
@@ -485,7 +485,7 @@
485485
"TotalInTransaction": "Transakcje:",
486486
"StartDisputeFlag": "Otwarte spory",
487487
"CloseDisputeFlag": "Spory zakończone",
488-
"PayoutOnlyBuyer": "Closing this dispute will return all of the funds to the buyer, minus the Moderator fee, because the seller has not yet given their bitcoin payout address.",
488+
"PayoutOnlyBuyer": "Zamknięcie sporu spowoduje zwrot wszystkich środków do kupującego z wyłączeniem prowizji arbitra, ponieważ sprzedający nie podał jeszcze adresu Bitcoin do wypłaty.",
489489
"UpdatingOrder": "Aktualizowanie twojej transakcji",
490490
"UpdateComplete": "Aktualizacja transakcji zakończona",
491491
"UpdateFailed": "Aktualizacja transakcji nie została zakończona. Otwórz transakcję i spróbuj ponownie.",
@@ -557,6 +557,7 @@
557557
"cases": "Sprawy",
558558
"notifications": "Powiadomienia",
559559
"settings": "Ustawienia",
560+
"restart": "Restartuj aplikację",
560561
"about": "O projekcie",
561562
"support": "Wspomóż projekt",
562563
"Forward": "Dalej",
@@ -675,5 +676,38 @@
675676
"restoreDefaults": "Przywróć domyślne",
676677
"saveChanges": "Zapisz wprowadzone zmiany",
677678
"retry": "Ponów połączenie"
679+
},
680+
"timezones": {
681+
"-12": "(GMT -12:00) Eniwetok, Kwajalein",
682+
"-11": "(GMT -11:00) Midway, Samoa",
683+
"-10": "(GMT -10:00) Hawaje",
684+
"-9": "(GMT -9:00) Alaska",
685+
"-8": "(GMT -8:00) Czas pacyficzny (USA i Kanada)",
686+
"-7": "(GMT -7:00) Czas górski (USA i Kanada)",
687+
"-6": "(GMT -6:00) Czas Centralny (USA i Kanada), Meksyk",
688+
"-5": "(GMT -5:00) Czas wschodni (USA i Kanada), Bogota, Lima",
689+
"-4": "(GMT -4:00) Czas atlantycki (Kanada), Caracas, La Paz",
690+
"-3.5": "(GMT -3:30) Nowa Fundlandia",
691+
"-3": "(GMT -3:00) Brazylia, Buenos Aires, Georgetown",
692+
"-2": "(GMT -2:00) Czas środkowoatlantycki",
693+
"-1": "(GMT -1:00) Azory, Wyspy Zielonego Przylądka",
694+
"0": "(GMT) Czas zachodnioeuropejski, Londyn, Lizbona, Casablanca",
695+
"1": "(GMT +1:00) Warszawa, Bruksela, Kopenhaga, Madryt, Paryż",
696+
"2": "(GMT +2:00) Kalinigrad, Południowa Afryka",
697+
"3": "(GMT +3:00) Bagdad, Rijad, Moskwa, Petersburg",
698+
"3.5": "(GMT +3:30) Teheran",
699+
"4": "(GMT +4:00) Abu Dhabi, Maskat, Baku, Tbilisi",
700+
"4.5": "(GMT +4:30) Kabul",
701+
"5": "(GMT +5:00) Jekaterynburg, Islamabad, Karachi, Taszkent",
702+
"5.5": "(GMT +5:30) Bombaj, Kalkuta, Madras, New Delhi",
703+
"5.75": "(GMT +5:45) Katmandu",
704+
"6": "(GMT +6:00) Almaty, Dhaka, Kolombo",
705+
"7": "(GMT +7:00) Bangkok, Hanoi, Jakarta",
706+
"8": "(GMT +8:00) Pekin, Perth, Singapur, Hong Kong",
707+
"9": "(GMT +9:00) Tokio, Seul, Osaka, Sapporo, Jakuck",
708+
"9.5": "(GMT +9:30) Adelaide, Darwin",
709+
"10": "(GMT +10:00) Wschodnia Australia, Guam, Władywostok",
710+
"11": "(GMT +11:00) Magadan, Wyspy Salomona, Nowa Kaledonia",
711+
"12": "(GMT +12:00) Auckland, Wellington, Fidżi, Kamczatka"
678712
}
679713
}

js/main.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,12 @@ $(window).bind('keydown', function(e) {
191191
route = null;
192192

193193
if (event.keyCode == 116) { //on F5 press
194-
location.reload();
194+
Backbone.history.loadUrl();
195195
}
196196

197197
if (ctrl) {
198198
switch (char) {
199-
case 'z':
199+
case config.keyShortcuts.undo:
200200
//run undo programmatically to avoid crash
201201
e.preventDefault();
202202
document.execCommand('undo');
@@ -229,11 +229,14 @@ $(window).bind('keydown', function(e) {
229229
// Select all text in address bar
230230
$('.js-navAddressBar').select();
231231
break;
232+
case config.keyShortcuts.save:
233+
window.obEventBus.trigger('saveCurrentForm');
234+
break;
232235
}
233236

234237
if (route !== null) {
235238
e.preventDefault();
236-
Backbone.history.navigate(route, {
239+
Backbone.history.navigate(route, {
237240
trigger: true
238241
});
239242
}

js/templates/item.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ <h2 class="page-contractTitle noOverflow textOpacity1 marginLeft20 marginBottom8
2424
<button class="fullscreen js-photoGallery" href="<%= ob.serverUrl %>get_image?hash=<%= ob.vendor_offer.listing.item.image_hashes[0] %><%= ob.imageExtension %>"></button>
2525
<% } %>
2626
</div>
27-
<div class="flexRow row20">
27+
<div class="flexRow row20 flexRow-grid">
2828
<% _.each(ob.vendor_offer.listing.item.image_hashes, function(data, i) {
2929
if(i != 0){%>
30-
<div class="itemImg itemImg-small overflowHidden <% if(i > 4){%>hide<% } %>">
30+
<div class="itemImg itemImg-small overflowHidden">
3131
<div class="itemImg itemImg-small <% if(!ob.showNSFWContent && !ob.skipNSFWmodal && ob.vendor_offer.listing.item.nsfw){ %> nsfw <% } %>"
3232
style="background-image: url(<%= ob.serverUrl %>get_image?hash=<%= data %><%= ob.imageExtension %>), url(imgs/defaultItem.png);">
3333
</div>

js/templates/itemEdit.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ <h5><%= polyglot.t('Expiration') %> (<%= polyglot.t('Optional') %>)</h5>
419419
<div class="ctrlGroup js-itemEditButtons floatRight">
420420
<a class="btn btn-large custCol-secondary js-saveItem">
421421
<span class="ion-checkmark fontSize11 marginRight2 textOpacity1"></span>
422-
<%= polyglot.t('SaveChanges') %>
422+
<%= polyglot.t('SaveChanges') %> (<%= config.keyShortcutPrefix + config.keyShortcuts.save.toUpperCase() %>)
423423
</a>
424424
</div>
425425
<div class="ctrlGroup js-itemEditButtons textOpacity1 floatRight marginRight5">

js/templates/pageNav.html

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,18 @@ <h3 class="margin0 marginTop25"><%= polyglot.t('Discover') %></h3>
7070
<a href="#userPage">
7171
<span class="ion-document-text fontSize12 marginRight2 textOpacity1"></span>
7272
<%= polyglot.t('nav.myPage') %>
73-
<span class="pull-right txt-muted"><%= ob.ctrlCmdKey + config.keyShortcuts.myPage.toUpperCase() %></span>
73+
<span class="pull-right txt-muted"><%= config.keyShortcutPrefix + config.keyShortcuts.myPage.toUpperCase() %></span>
7474
</a>
7575
<a href="#userPage/<%= ob.guid %>/customize">
7676
<span class="ion-paintbucket fontSize10 textOpacity1"></span>
7777
<%= polyglot.t('nav.customizePage') %>
78-
<span class="pull-right txt-muted"><%= ob.ctrlCmdKey + config.keyShortcuts.customizePage.toUpperCase() %></span>
78+
<span class="pull-right txt-muted"><%= config.keyShortcutPrefix + config.keyShortcuts.customizePage.toUpperCase() %></span>
7979
</a>
8080
<% if(ob.vendor) { %>
8181
<a href="#userPage/<%= ob.guid %>/listingNew" >
8282
<span class="ion-ios-pricetag fontSize10 marginRight2 textOpacity1"></span>
8383
<%= polyglot.t('nav.createListing') %>
84-
<span class="pull-right txt-muted"><%= ob.ctrlCmdKey + config.keyShortcuts.create.toUpperCase() %></span>
84+
<span class="pull-right txt-muted"><%= config.keyShortcutPrefix + config.keyShortcuts.create.toUpperCase() %></span>
8585
</a>
8686
<% }else{ %>
8787
<a href="#userPage/<%= ob.guid %>/createStore">
@@ -101,27 +101,32 @@ <h3 class="margin0 marginTop25"><%= polyglot.t('Discover') %></h3>
101101
<a href="#transactions/purchases">
102102
<span class="ion-log-out fontSize11 marginRight2 textOpacity1"></span>
103103
<%= polyglot.t('nav.purchases') %>
104-
<span class="pull-right txt-muted"><%= ob.ctrlCmdKey + config.keyShortcuts.purchases.toUpperCase() %></span>
104+
<span class="pull-right txt-muted"><%= config.keyShortcutPrefix + config.keyShortcuts.purchases.toUpperCase() %></span>
105105
</a>
106106
<% if(ob.vendor) { %>
107107
<a href="#transactions/sales">
108108
<span class="ion-log-in fontSize11 marginRight2 textOpacity1"></span>
109109
<%= polyglot.t('nav.sales') %>
110-
<span class="pull-right txt-muted"><%= ob.ctrlCmdKey + config.keyShortcuts.sales.toUpperCase() %></span>
110+
<span class="pull-right txt-muted"><%= config.keyShortcutPrefix + config.keyShortcuts.sales.toUpperCase() %></span>
111111
</a>
112112
<% } %>
113113
<% if(ob.moderator) { %>
114114
<a href="#transactions/cases">
115115
<span class="ion-briefcase fontSize11 marginRight2 textOpacity1"></span>
116116
<%= polyglot.t('nav.cases') %>
117-
<span class="pull-right txt-muted"><%= ob.ctrlCmdKey + config.keyShortcuts.cases.toUpperCase() %></span>
117+
<span class="pull-right txt-muted"><%= config.keyShortcutPrefix + config.keyShortcuts.cases.toUpperCase() %></span>
118118
</a>
119119
<% } %>
120120
<hr/>
121121
<a href="#settings">
122122
<span class="ion-toggle-filled fontSize11 marginRight2 textOpacity1"></span>
123123
<%= polyglot.t('nav.settings') %>
124-
<span class="pull-right txt-muted"><%= ob.ctrlCmdKey + config.keyShortcuts.settings.toUpperCase() %></span>
124+
<span class="pull-right txt-muted"><%= config.keyShortcutPrefix + config.keyShortcuts.settings.toUpperCase() %></span>
125+
</a>
126+
<a class="js-navRestart">
127+
<span class="ion-refresh fontSize11 marginRight2 textOpacity1"></span>
128+
<%= polyglot.t('nav.restart') %>
129+
<span class="pull-right txt-muted"><%= ob.ctrlCmdKey + config.keyShortcuts.restart.toUpperCase() %></span>
125130
</a>
126131
<hr/>
127132
<a class="js-showAboutModal">
@@ -132,9 +137,6 @@ <h3 class="margin0 marginTop25"><%= polyglot.t('Discover') %></h3>
132137
<span class="ion-android-favorite fontSize11 marginRight2 textOpacity1"></span>
133138
<%= polyglot.t('nav.support') %>
134139
</a>
135-
<!--<hr/>
136-
<a class="js-navAdminPanel">Admin Panel (temporary)</a>
137-
-->
138140
</div>
139141

140142
<div class="popMenu popMenu-notifications js-navNotificationsMenu" data-onclose="onNotifMenuClose" data-onopen="onNotifMenuOpen">
@@ -172,7 +174,7 @@ <h3 class="margin0 marginTop25"><%= polyglot.t('Discover') %></h3>
172174
</div>
173175
</div>
174176
<div class="ctrlGroup">
175-
<a class="btn btn-home ion-eye custCol-primary custCol-text fontSize15 tooltip" href="#home" data-tooltip="<%= polyglot.t('Discover') %> (<%= ob.ctrlCmdKey + config.keyShortcuts.discover.toUpperCase() %>)"></a>
177+
<a class="btn btn-home ion-eye custCol-primary custCol-text fontSize15 tooltip" href="#home" data-tooltip="<%= polyglot.t('Discover') %> (<%= config.keyShortcutPrefix + config.keyShortcuts.discover.toUpperCase() %>)"></a>
176178
</div>
177179
<div class="ctrlGroup">
178180
<div class="btn btn-notifications ion-android-notifications custCol-primary custCol-text fontSize14 js-navNotifications tooltip" data-tooltip="<%= polyglot.t('nav.notifications') %>" data-popmenu=".popMenu-notifications">

0 commit comments

Comments
 (0)