Skip to content

Commit d35c209

Browse files
authored
MinifyJs (#133)
1 parent 4eccb8b commit d35c209

File tree

8 files changed

+32
-27
lines changed

8 files changed

+32
-27
lines changed

CodeBeam.MudExtensions/CodeBeam.MudExtensions.csproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
</ItemGroup>
2222

2323
<ItemGroup>
24+
<PackageReference Include="BuildBundlerMinifier" Version="3.2.449" />
2425
<PackageReference Include="CsvHelper" Version="30.0.1" />
2526
<PackageReference Include="MudBlazor" Version="6.1.9" />
2627
</ItemGroup>
@@ -46,9 +47,14 @@
4647
</Target>
4748

4849
<ItemGroup>
50+
<Content Remove="bundleconfig.json" />
4951
<Content Remove="compilerconfig.json" />
5052
<Content Remove="excubowebcompiler.json" />
5153
</ItemGroup>
54+
55+
<ItemGroup>
56+
<_ContentIncludedByDefault Remove="bundleconfig.json" />
57+
</ItemGroup>
5258

5359
<ItemGroup>
5460
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
@@ -61,6 +67,7 @@
6167
<Pack>True</Pack>
6268
<PackagePath>\</PackagePath>
6369
</None>
70+
<None Include="bundleconfig.json" />
6471
<!--<None Include="wwwroot\MudExtensions.js" />-->
6572
<!--<None Include="Components\ListExtended\MudListExtended.razor" />
6673
<None Include="Components\ListExtended\MudListItemExtended.razor" />
Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11

2-
//class MudScrollManagerExtended {
2+
class MudScrollManagerExtended {
33

4-
// scrollToMiddle(parentId, childId) {
4+
scrollToMiddle(parentId, childId) {
55

6-
// let parent = document.getElementById(parentId);
7-
// let child = document.getElementById(childId);
6+
let parent = document.getElementById(parentId);
7+
let child = document.getElementById(childId);
88

9-
// parent.scrollTop = (child.offsetTop - parent.offsetHeight) + (parent.offsetHeight / 2) + (child.offsetHeight / 2);
10-
// }
11-
//};
12-
//window.mudScrollManagerExtended = new MudScrollManagerExtended();
9+
parent.scrollTop = (child.offsetTop - parent.offsetHeight) + (parent.offsetHeight / 2) + (child.offsetHeight / 2);
10+
}
11+
};
12+
window.mudScrollManagerExtended = new MudScrollManagerExtended();
13+
14+
function auto_size(element) {
15+
element.style.height = "5px";
16+
element.style.height = (element.scrollHeight + 4) + "px";
17+
}

CodeBeam.MudExtensions/TScripts/MudExtensions.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[
2+
{
3+
"outputFileName": "wwwroot/MudExtensions.min.js",
4+
"inputFiles": [
5+
"TScripts/MudExtensions.js"
6+
]
7+
}
8+
]

CodeBeam.MudExtensions/wwwroot/MudExtensions.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

CodeBeam.MudExtensions/wwwroot/MudExtensions.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ComponentViewer.Wasm/wwwroot/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</div>
2424
<script src="_framework/blazor.webassembly.js"></script>
2525
<script src="_content/MudBlazor/MudBlazor.min.js"></script>
26-
<script src="_content/CodeBeam.MudExtensions/MudExtensions.js"></script>
26+
<script src="_content/CodeBeam.MudExtensions/MudExtensions.min.js"></script>
2727
</body>
2828

2929
</html>

ComponentViewer/Pages/_Layout.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@
3232

3333
<script src="_framework/blazor.server.js"></script>
3434
<script src="_content/MudBlazor/MudBlazor.min.js"></script>
35-
<script src="_content/CodeBeam.MudExtensions/MudExtensions.js"></script>
35+
<script src="_content/CodeBeam.MudExtensions/MudExtensions.min.js"></script>
3636
</body>
3737
</html>

0 commit comments

Comments
 (0)