Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix interop path to new PackageId. #84

Merged
merged 2 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ Add required `CSS` and `Javascript` packages into the `index.html` file.
<!--Deprecated after v0.4.0-->
<link
rel="stylesheet"
href="_content/SiemensIXBlazor/css/siemens-ix/ix-icons.css"
href="_content/Siemens.IX.Blazor/css/siemens-ix/ix-icons.css"
/>

<link
rel="stylesheet"
href="_content/SiemensIXBlazor/css/siemens-ix/siemens-ix.css"
href="_content/Siemens.IX.Blazor/css/siemens-ix/siemens-ix.css"
/>
</head>
<body>
...
<script src="_content/SiemensIXBlazor/js/siemens-ix/index.bundle.js"></script>
<script src="_content/Siemens.IX.Blazor/js/siemens-ix/index.bundle.js"></script>
</body>
</html>
```
Expand Down
2 changes: 1 addition & 1 deletion SiemensIXBlazor/Components/About/AboutMenu.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
await _interop.AddEventListener(this, Id, "close", "Closed");

moduleTask = new(() => JSRuntime.InvokeAsync<IJSObjectReference>(
"import", "./_content/SiemensIXBlazor/js/interops/aboutMenuInterop.js").AsTask());
"import", "./_content/Siemens.IX.Blazor/js/interops/aboutMenuInterop.js").AsTask());
}
}

Expand All @@ -66,7 +66,7 @@

public async Task ToggleAbout(bool status)
{
var module = await moduleTask.Value;

Check warning on line 69 in SiemensIXBlazor/Components/About/AboutMenu.razor.cs

View workflow job for this annotation

GitHub Actions / build

Dereference of a possibly null reference.

Check warning on line 69 in SiemensIXBlazor/Components/About/AboutMenu.razor.cs

View workflow job for this annotation

GitHub Actions / build

Dereference of a possibly null reference.
if (module != null)
{
await module.InvokeVoidAsync("toggleAbout", Id, status);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private void InitialParameter(string functionName, object param)
{

moduleTask = new(() => JSRuntime.InvokeAsync<IJSObjectReference>(
"import", $"./_content/SiemensIXBlazor/js/interops/applicationInterop.js").AsTask());
"import", $"./_content/Siemens.IX.Blazor/js/interops/applicationInterop.js").AsTask());

Task.Run(async () =>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private void InitialParameter(string functionName, object param)
{

moduleTask = new(() => JSRuntime.InvokeAsync<IJSObjectReference>(
"import", $"./_content/SiemensIXBlazor/js/interops/categoryFilterInterop.js").AsTask());
"import", $"./_content/Siemens.IX.Blazor/js/interops/categoryFilterInterop.js").AsTask());

Task.Run(async () =>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
private async Task InitialParameterAsync(string functionName, object? param)
{
_moduleTask = new Lazy<Task<IJSObjectReference>>(() => JsRuntime.InvokeAsync<IJSObjectReference>(
"import", "./_content/SiemensIXBlazor/js/interops/dateDropdownInterop.js").AsTask());
"import", "./_content/Siemens.IX.Blazor/js/interops/dateDropdownInterop.js").AsTask());

var dateRangeOptions = JsonConvert.SerializeObject(param, new JsonSerializerSettings
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ protected async override Task OnAfterRenderAsync(bool firstRender)
await _interop.AddEventListener(this, Id, "close", "Closed");

moduleTask = new(() => JSRuntime.InvokeAsync<IJSObjectReference>(
"import", "./_content/SiemensIXBlazor/js/interops/settingsMenuInterop.js").AsTask());
"import", "./_content/Siemens.IX.Blazor/js/interops/settingsMenuInterop.js").AsTask());
}
}

Expand Down
2 changes: 1 addition & 1 deletion SiemensIXBlazor/Components/Tree/Tree.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ private void InitialParameter(string functionName, object param)
{

moduleTask = new(() => JSRuntime.InvokeAsync<IJSObjectReference>(
"import", $"./_content/SiemensIXBlazor/js/interops/treeInterop.js").AsTask());
"import", $"./_content/Siemens.IX.Blazor/js/interops/treeInterop.js").AsTask());

Task.Run(async () =>
{
Expand Down
2 changes: 1 addition & 1 deletion SiemensIXBlazor/Interops/BaseInterop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class BaseInterop
public BaseInterop(IJSRuntime jsRuntime)
{
moduleTask = new(() => jsRuntime.InvokeAsync<IJSObjectReference>(
"import", $"./_content/SiemensIXBlazor/js/interops/baseJsInterop.js").AsTask());
"import", $"./_content/Siemens.IX.Blazor/js/interops/baseJsInterop.js").AsTask());
}

public async Task AddEventListener(object classObject, string id, string eventName, string callbackFunctionName)
Expand Down
2 changes: 1 addition & 1 deletion SiemensIXBlazor/Interops/FileUploadInterop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ internal class FileUploadInterop
public FileUploadInterop(IJSRuntime jsRuntime)
{
moduleTask = new(() => jsRuntime.InvokeAsync<IJSObjectReference>(
"import", $"./_content/SiemensIXBlazor/js/interops/fileUploadInterop.js").AsTask());
"import", $"./_content/Siemens.IX.Blazor/js/interops/fileUploadInterop.js").AsTask());
}

public async Task AddEventListener(object classObject, string id, string eventName, string callbackFunctionName)
Expand Down
2 changes: 1 addition & 1 deletion SiemensIXBlazor/Interops/TabsInterop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ internal class TabsInterop
public TabsInterop(IJSRuntime jsRuntime)
{
moduleTask = new(() => jsRuntime.InvokeAsync<IJSObjectReference>(
"import", $"./_content/SiemensIXBlazor/js/interops/tabsInterop.js").AsTask());
"import", $"./_content/Siemens.IX.Blazor/js/interops/tabsInterop.js").AsTask());
}

public async Task InitialComponent(string id)
Expand Down
Loading