Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
voice search - minor changes
DanielŻuławski45b4852d9e8a
diff --git a/src/Web/Grand.Web/Views/Shared/Components/SearchBox/Default.cshtml b/src/Web/Grand.Web/Views/Shared/Components/SearchBox/Default.cshtmlindex 4a7c02841..85ca93b3b 100644--- a/src/Web/Grand.Web/Views/Shared/Components/SearchBox/Default.cshtml+++ b/src/Web/Grand.Web/Views/Shared/Components/SearchBox/Default.cshtml@@ -31,7 +31,7 @@<b-icon icon="search"></b-icon></button></div>- <small v-if="searchbox.recording" class="adnotation form-text text-muted w-100">For submit say 'Go'. To reset input filed say 'reset'</small>+ <small v-if="searchbox.recording" class="annotation form-text text-muted w-100">@Loc["search.voice.annotation"]</small></div><template v-if="searchbox.searchitems !== null"><div id="adv_search" class="advanced-search-results" onclick="StopPropagation(event)">@@ -205,8 +205,8 @@if (this.recording) {recognition.start();- this.placeholder = "Say Something...";- this.micMessage = "Say Something"+ this.placeholder = '@Loc["search.voice.placeholder"]';+ this.micMessage = '@Loc["search.voice.placeholder"]';recognition.addEventListener("result", resultOfSpeechRecognition);function resultOfSpeechRecognition(event) {@@ -214,17 +214,17 @@const current = event.resultIndex;const transcript = event.results[current][0].transcript;- if (transcript.toLowerCase().trim() === "stop recording") {+ if (transcript.toLowerCase().trim() === "@Loc["search.voice.stop"]") {recognition.stop();}else if (!searchBoxInput.value && searchbox.recording) {searchbox.text = transcript;}else {- if (transcript.toLowerCase().trim() === "go") {+ if (transcript.toLowerCase().trim() === '@Loc["search.voice.go"]') {searchForm.submit();}- else if (transcript.toLowerCase().trim() === "reset") {+ else if (transcript.toLowerCase().trim() === '@Loc["search.voice.reset"]') {searchbox.text = "";}else if (searchbox.recording) {@@ -234,12 +234,12 @@}} else {recognition.stop();- this.placeholder = "@Loc["Search.SearchBox.Tooltip"]";- this.micMessage = "Hold to Speak"+ this.placeholder = '@Loc["Search.SearchBox.Tooltip"]';+ this.micMessage = '@Loc["search.voice.holdtospeak"]'}} else {- this.micMessage = "Not Supported";+ this.micMessage = '@Loc["search.voice.notsupported"]';}}}diff --git a/src/Web/Grand.Web/wwwroot/theme/css/common/common.rtl.css b/src/Web/Grand.Web/wwwroot/theme/css/common/common.rtl.cssindex edcb65e98..b60de188d 100644--- a/src/Web/Grand.Web/wwwroot/theme/css/common/common.rtl.css+++ b/src/Web/Grand.Web/wwwroot/theme/css/common/common.rtl.css@@ -823,7 +823,7 @@ input:checked ~ .color-container .color::before {white-space: nowrap;text-overflow: ellipsis;}-#search-box .modal-body .adnotation {+#search-box .modal-body .annotation {text-align: right;}#search-box .modal-body .search-box-text:focus {