From a591bacc8fdcefbec193b5cb9764708901b09ac1 Mon Sep 17 00:00:00 2001 From: Argo-Cloud Date: Sat, 3 Apr 2021 13:58:36 +0800 Subject: [PATCH 1/8] =?UTF-8?q?scripts:=20=E5=A2=9E=E5=8A=A0=20SetTitle=20?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Title/Title.cs.js | 7 ++++++ .../Components/Title/Title.cs.min.js | 1 + src/BootstrapBlazor/bundleconfig.json | 9 ++++++- .../wwwroot/js/bootstrap.blazor.bundle.min.js | 24 ++----------------- 4 files changed, 18 insertions(+), 23 deletions(-) create mode 100644 src/BootstrapBlazor/Components/Title/Title.cs.js create mode 100644 src/BootstrapBlazor/Components/Title/Title.cs.min.js diff --git a/src/BootstrapBlazor/Components/Title/Title.cs.js b/src/BootstrapBlazor/Components/Title/Title.cs.js new file mode 100644 index 000000000..5e25367b3 --- /dev/null +++ b/src/BootstrapBlazor/Components/Title/Title.cs.js @@ -0,0 +1,7 @@ +(function ($) { + $.extend({ + bb_setTitle: function (title) { + document.title = title; + } + }); +})(jQuery); diff --git a/src/BootstrapBlazor/Components/Title/Title.cs.min.js b/src/BootstrapBlazor/Components/Title/Title.cs.min.js new file mode 100644 index 000000000..92099bfae --- /dev/null +++ b/src/BootstrapBlazor/Components/Title/Title.cs.min.js @@ -0,0 +1 @@ +(function(n){n.extend({bb_setTitle:function(n){document.title=n}})})(jQuery); \ No newline at end of file diff --git a/src/BootstrapBlazor/bundleconfig.json b/src/BootstrapBlazor/bundleconfig.json index e106a0d8f..f24808ce7 100644 --- a/src/BootstrapBlazor/bundleconfig.json +++ b/src/BootstrapBlazor/bundleconfig.json @@ -500,6 +500,12 @@ "Components/Table/Filter/TableFilter.razor.cs.js" ] }, + { + "outputFileName": "Components/Title/Title.cs.min.js", + "inputFiles": [ + "Components/Title/Title.cs.js" + ] + }, { "outputFileName": "Components/Toast/Toast.razor.cs.min.js", "inputFiles": [ @@ -548,7 +554,7 @@ "Components/ColorPicker/ColorPicker.razor.cs.min.js", "Components/Console/Console.razor.cs.min.js", "Components/DateTimePicker/DateTimePicker.razor.cs.min.js", - "Components/DateTimePicker/TimePickerBody.razor.cs.js", + "Components/DateTimePicker/TimePickerBody.razor.cs.min.js", "Components/DateTimeRange/DateTimeRange.razor.cs.min.js", "Components/Drawer/Drawer.razor.cs.min.js", "Components/Editor/Editor.razor.cs.min.js", @@ -568,6 +574,7 @@ "Components/Tab/Tab.razor.cs.min.js", "Components/Table/Table.razor.cs.min.js", "Components/Table/Filter/TableFilter.razor.cs.min.js", + "Components/Title/Title.cs.min.js", "Components/Toast/Toast.razor.cs.min.js", "Components/Tooltip/Tooltip.cs.min.js", "Components/Tree/Tree.razor.cs.min.js", diff --git a/src/BootstrapBlazor/wwwroot/js/bootstrap.blazor.bundle.min.js b/src/BootstrapBlazor/wwwroot/js/bootstrap.blazor.bundle.min.js index b278aa258..d4546b3b8 100644 --- a/src/BootstrapBlazor/wwwroot/js/bootstrap.blazor.bundle.min.js +++ b/src/BootstrapBlazor/wwwroot/js/bootstrap.blazor.bundle.min.js @@ -52,28 +52,7 @@ x();"bottom"===a.start?(c.css({top:b.outerHeight()-c.outerHeight()}),n(0,!0)):"t (function(n){n.extend({bb_color_picker:function(t,i,r){n(t).colorpicker().on("change",function(n){i.invokeMethodAsync(r,n.value)})}})})(jQuery); (function(n){n.extend({bb_console:function(t){var u=n(t),i=u.find('[data-scroll="auto"]'),r;i.length>0&&(r=i.find(".console-window"),i.scrollTop(r.height()))}})})(jQuery); (function(n){n.extend({bb_datetimePicker:function(t,i){var r=n(t),f=r.attr("data-placement")||"auto",u=r.find(".datetime-picker-input");if(i)u.popover(i);else{u.popover({toggle:"datetime-picker",placement:f,template:'