Skip to content

Commit

Permalink
Update to v4.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Tewr committed Feb 27, 2024
1 parent 2caf0c9 commit 4f36492
Show file tree
Hide file tree
Showing 277 changed files with 19,611 additions and 441 deletions.
145 changes: 145 additions & 0 deletions BlazorWorker.Demo.Client.styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
/* /Shared/MainLayout.razor.rz.scp.css */
.page[b-o6oc16tbsi] {
position: relative;
display: flex;
flex-direction: column;
}

main[b-o6oc16tbsi] {
flex: 1;
}

.sidebar[b-o6oc16tbsi] {
background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-o6oc16tbsi] {
background-color: #f7f7f7;
border-bottom: 1px solid #d6d5d5;
justify-content: flex-end;
height: 3.5rem;
display: flex;
align-items: center;
}

.top-row[b-o6oc16tbsi] a, .top-row[b-o6oc16tbsi] .btn-link {
white-space: nowrap;
margin-left: 1.5rem;
text-decoration: none;
}

.top-row[b-o6oc16tbsi] a:hover, .top-row[b-o6oc16tbsi] .btn-link:hover {
text-decoration: underline;
}

.top-row[b-o6oc16tbsi] a:first-child {
overflow: hidden;
text-overflow: ellipsis;
}

@media (max-width: 640.98px) {
.top-row:not(.auth)[b-o6oc16tbsi] {
display: none;
}

.top-row.auth[b-o6oc16tbsi] {
justify-content: space-between;
}

.top-row[b-o6oc16tbsi] a, .top-row[b-o6oc16tbsi] .btn-link {
margin-left: 0;
}
}

@media (min-width: 641px) {
.page[b-o6oc16tbsi] {
flex-direction: row;
}

.sidebar[b-o6oc16tbsi] {
width: 250px;
height: 100vh;
position: sticky;
top: 0;
}

.top-row[b-o6oc16tbsi] {
position: sticky;
top: 0;
z-index: 1;
}

.top-row.auth[b-o6oc16tbsi] a:first-child {
flex: 1;
text-align: right;
width: 0;
}

.top-row[b-o6oc16tbsi], article[b-o6oc16tbsi] {
padding-left: 2rem !important;
padding-right: 1.5rem !important;
}
}
/* /Shared/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-ah6glk5vvf] {
background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-ah6glk5vvf] {
height: 3.5rem;
background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-ah6glk5vvf] {
font-size: 1.1rem;
}

.oi[b-ah6glk5vvf] {
width: 2rem;
font-size: 1.1rem;
vertical-align: text-top;
top: -2px;
}

.nav-item[b-ah6glk5vvf] {
font-size: 0.9rem;
padding-bottom: 0.5rem;
}

.nav-item:first-of-type[b-ah6glk5vvf] {
padding-top: 1rem;
}

.nav-item:last-of-type[b-ah6glk5vvf] {
padding-bottom: 1rem;
}

.nav-item[b-ah6glk5vvf] a {
color: #d7d7d7;
border-radius: 4px;
height: 3rem;
display: flex;
align-items: center;
line-height: 3rem;
}

.nav-item[b-ah6glk5vvf] a.active {
background-color: rgba(255,255,255,0.25);
color: white;
}

.nav-item[b-ah6glk5vvf] a:hover {
background-color: rgba(255,255,255,0.1);
color: white;
}

@media (min-width: 641px) {
.navbar-toggler[b-ah6glk5vvf] {
display: none;
}

.collapse[b-ah6glk5vvf] {
/* Never collapse the sidebar for wide screens */
display: block;
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
class DotNetObjectProxy {
constructor(id) {
this.__dotNetObject = id;
this.serializer = self.jsRuntimeSerializers.get('BlazorWorkerJSRuntimeSerializer');
this.serializer = self.jsRuntimeSerializer;
this.blazorWorkerJSRuntime = self.BlazorWorker.getAssemblyExports("BlazorWorker.Extensions.JSRuntime").BlazorWorkerJSRuntime;
}

invokeMethodAsync(methodName, ...methodArgs) {
Expand All @@ -11,7 +12,7 @@
methodName,
methodargs: methodArgs || []
});
var result = self.Module.mono_call_static_method("[BlazorWorker.Extensions.JSRuntime]BlazorWorker.Extensions.JSRuntime.BlazorWorkerJSRuntime:InvokeMethod", this.__dotNetObject, argsString);
var result = this.blazorWorkerJSRuntime.InvokeMethod(this.__dotNetObject, argsString);
resolve(result);
} catch (e) {
reject(e);
Expand All @@ -23,11 +24,13 @@
class BlazorWorkerJSRuntimeSerializer {

constructor() {
this.baseSerializer = self.jsRuntimeSerializers.get('nativejson');
this.baseSerializer = {
serialize: o => JSON.stringify(o),
deserialize: s => JSON.parse(s)
};
}

serialize = (o) => this.baseSerializer.serialize(o);


deserialize = (s) => {
let deserializedObj = this.baseSerializer.deserialize(s);
Expand Down Expand Up @@ -56,4 +59,34 @@ class BlazorWorkerJSRuntimeSerializer {
}
};

self.jsRuntimeSerializers.set('BlazorWorkerJSRuntimeSerializer', new BlazorWorkerJSRuntimeSerializer());
const serializer = new BlazorWorkerJSRuntimeSerializer();

const workerInvokeAsync = async function (method, argsString) {

const methodHandle = self.BlazorWorker.getChildFromDotNotation(method);

if (methodHandle === self.BlazorWorker.empty) {
throw new Error(`workerInvokeAsync: Method '${method}' not defined`);
}

const argsArray = serializer.deserialize(argsString);
const result = await methodHandle(...argsArray);
return serializer.serialize(result);
}

const workerInvoke = function (method, argsString) {

const methodHandle = self.BlazorWorker.getChildFromDotNotation(method);
if (methodHandle === self.BlazorWorker.empty) {
throw new Error(`workerInvoke: Method '${method}' not defined`);
}

const argsArray = serializer.deserialize(argsString);
const result = methodHandle(...argsArray);
return serializer.serialize(result);
}

self.BlazorWorker.setModuleImports("BlazorWorkerJSRuntime.js", {
WorkerInvokeAsync: workerInvokeAsync,
WorkerInvoke: workerInvoke
});
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added _framework/BlazorWorker.Core.pdb.gz
Binary file not shown.
Binary file added _framework/BlazorWorker.Core.wasm
Binary file not shown.
Binary file added _framework/BlazorWorker.Core.wasm.br
Binary file not shown.
Binary file added _framework/BlazorWorker.Core.wasm.gz
Binary file not shown.
Binary file added _framework/BlazorWorker.Demo.Client.pdb.gz
Binary file not shown.
Binary file added _framework/BlazorWorker.Demo.Client.wasm
Binary file not shown.
Binary file added _framework/BlazorWorker.Demo.Client.wasm.br
Binary file not shown.
Binary file added _framework/BlazorWorker.Demo.Client.wasm.gz
Binary file not shown.
Binary file added _framework/BlazorWorker.Demo.IoCExample.pdb.gz
Binary file not shown.
Binary file added _framework/BlazorWorker.Demo.IoCExample.wasm
Binary file not shown.
Binary file added _framework/BlazorWorker.Demo.IoCExample.wasm.br
Binary file not shown.
Binary file added _framework/BlazorWorker.Demo.IoCExample.wasm.gz
Binary file not shown.
Binary file added _framework/BlazorWorker.Demo.Shared.pdb.gz
Binary file not shown.
Binary file added _framework/BlazorWorker.Demo.Shared.wasm
Binary file not shown.
Binary file added _framework/BlazorWorker.Demo.Shared.wasm.br
Binary file not shown.
Binary file added _framework/BlazorWorker.Demo.Shared.wasm.gz
Binary file not shown.
Binary file not shown.
Binary file added _framework/BlazorWorker.Demo.SharedPages.wasm
Binary file not shown.
Binary file added _framework/BlazorWorker.Demo.SharedPages.wasm.br
Binary file not shown.
Binary file added _framework/BlazorWorker.Demo.SharedPages.wasm.gz
Binary file not shown.
Binary file not shown.
Binary file added _framework/BlazorWorker.Extensions.JSRuntime.wasm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added _framework/BlazorWorker.WorkerCore.pdb.gz
Binary file not shown.
Binary file added _framework/BlazorWorker.WorkerCore.wasm
Binary file not shown.
Binary file added _framework/BlazorWorker.WorkerCore.wasm.br
Binary file not shown.
Binary file added _framework/BlazorWorker.WorkerCore.wasm.gz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added _framework/Microsoft.AspNetCore.Components.wasm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added _framework/Microsoft.CSharp.wasm
Binary file not shown.
Binary file added _framework/Microsoft.CSharp.wasm.br
Binary file not shown.
Binary file added _framework/Microsoft.CSharp.wasm.gz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added _framework/Microsoft.Extensions.Logging.wasm
Binary file not shown.
Binary file added _framework/Microsoft.Extensions.Logging.wasm.br
Binary file not shown.
Binary file added _framework/Microsoft.Extensions.Logging.wasm.gz
Binary file not shown.
Binary file added _framework/Microsoft.Extensions.Options.wasm
Binary file not shown.
Binary file added _framework/Microsoft.Extensions.Options.wasm.br
Binary file not shown.
Binary file added _framework/Microsoft.Extensions.Options.wasm.gz
Binary file not shown.
Binary file added _framework/Microsoft.Extensions.Primitives.wasm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added _framework/Microsoft.JSInterop.WebAssembly.wasm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added _framework/Microsoft.JSInterop.wasm
Binary file not shown.
Binary file added _framework/Microsoft.JSInterop.wasm.br
Binary file not shown.
Binary file added _framework/Microsoft.JSInterop.wasm.gz
Binary file not shown.
Binary file added _framework/Newtonsoft.Json.wasm
Binary file not shown.
Binary file added _framework/Newtonsoft.Json.wasm.br
Binary file not shown.
Binary file added _framework/Newtonsoft.Json.wasm.gz
Binary file not shown.
Binary file added _framework/Serialize.Linq.wasm
Binary file not shown.
Binary file added _framework/Serialize.Linq.wasm.br
Binary file not shown.
Binary file added _framework/Serialize.Linq.wasm.gz
Binary file not shown.
Binary file added _framework/System.Collections.Concurrent.wasm
Binary file not shown.
Binary file added _framework/System.Collections.Concurrent.wasm.br
Binary file not shown.
Binary file added _framework/System.Collections.Concurrent.wasm.gz
Binary file not shown.
Binary file added _framework/System.Collections.NonGeneric.wasm
Binary file not shown.
Binary file added _framework/System.Collections.NonGeneric.wasm.br
Binary file not shown.
Binary file added _framework/System.Collections.NonGeneric.wasm.gz
Binary file not shown.
Binary file added _framework/System.Collections.Specialized.wasm
Binary file not shown.
Binary file added _framework/System.Collections.Specialized.wasm.br
Binary file not shown.
Binary file added _framework/System.Collections.Specialized.wasm.gz
Binary file not shown.
Binary file added _framework/System.Collections.wasm
Binary file not shown.
Binary file added _framework/System.Collections.wasm.br
Binary file not shown.
Binary file added _framework/System.Collections.wasm.gz
Binary file not shown.
Binary file added _framework/System.ComponentModel.Primitives.wasm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added _framework/System.ComponentModel.wasm
Binary file not shown.
Binary file added _framework/System.ComponentModel.wasm.br
Binary file not shown.
Binary file added _framework/System.ComponentModel.wasm.gz
Binary file not shown.
Binary file added _framework/System.Console.wasm
Binary file not shown.
Binary file added _framework/System.Console.wasm.br
Binary file not shown.
Binary file added _framework/System.Console.wasm.gz
Binary file not shown.
Binary file added _framework/System.Data.Common.wasm
Binary file not shown.
Binary file added _framework/System.Data.Common.wasm.br
Binary file not shown.
Binary file added _framework/System.Data.Common.wasm.gz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added _framework/System.Diagnostics.TraceSource.wasm
Binary file not shown.
Binary file added _framework/System.Diagnostics.TraceSource.wasm.br
Binary file not shown.
Binary file added _framework/System.Diagnostics.TraceSource.wasm.gz
Binary file not shown.
Binary file added _framework/System.Drawing.Primitives.wasm
Binary file not shown.
Binary file added _framework/System.Drawing.Primitives.wasm.br
Binary file not shown.
Binary file added _framework/System.Drawing.Primitives.wasm.gz
Binary file not shown.
Binary file added _framework/System.Drawing.wasm
Binary file not shown.
Binary file added _framework/System.Drawing.wasm.br
Binary file not shown.
Binary file added _framework/System.Drawing.wasm.gz
Binary file not shown.
Binary file added _framework/System.Linq.Expressions.wasm
Binary file not shown.
Binary file added _framework/System.Linq.Expressions.wasm.br
Binary file not shown.
Binary file added _framework/System.Linq.Expressions.wasm.gz
Binary file not shown.
Binary file added _framework/System.Linq.wasm
Binary file not shown.
Binary file added _framework/System.Linq.wasm.br
Binary file not shown.
Binary file added _framework/System.Linq.wasm.gz
Binary file not shown.
Binary file added _framework/System.Memory.wasm
Binary file not shown.
Binary file added _framework/System.Memory.wasm.br
Binary file not shown.
Binary file added _framework/System.Memory.wasm.gz
Binary file not shown.
Binary file added _framework/System.Net.Http.wasm
Binary file not shown.
Binary file added _framework/System.Net.Http.wasm.br
Binary file not shown.
Binary file added _framework/System.Net.Http.wasm.gz
Binary file not shown.
Binary file added _framework/System.Net.Primitives.wasm
Binary file not shown.
Binary file added _framework/System.Net.Primitives.wasm.br
Binary file not shown.
Binary file added _framework/System.Net.Primitives.wasm.gz
Binary file not shown.
Binary file added _framework/System.ObjectModel.wasm
Binary file not shown.
Binary file added _framework/System.ObjectModel.wasm.br
Binary file not shown.
Binary file added _framework/System.ObjectModel.wasm.gz
Binary file not shown.
Binary file added _framework/System.Private.CoreLib.wasm
Binary file not shown.
Binary file added _framework/System.Private.CoreLib.wasm.br
Binary file not shown.
Binary file added _framework/System.Private.CoreLib.wasm.gz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added _framework/System.Private.Uri.wasm
Binary file not shown.
Binary file added _framework/System.Private.Uri.wasm.br
Binary file not shown.
Binary file added _framework/System.Private.Uri.wasm.gz
Binary file not shown.
Binary file added _framework/System.Private.Xml.Linq.wasm
Binary file not shown.
Binary file added _framework/System.Private.Xml.Linq.wasm.br
Binary file not shown.
Binary file added _framework/System.Private.Xml.Linq.wasm.gz
Binary file not shown.
Binary file added _framework/System.Private.Xml.wasm
Binary file not shown.
Binary file added _framework/System.Private.Xml.wasm.br
Binary file not shown.
Binary file added _framework/System.Private.Xml.wasm.gz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added _framework/System.Reflection.Primitives.wasm
Binary file not shown.
Binary file added _framework/System.Reflection.Primitives.wasm.br
Binary file not shown.
Binary file added _framework/System.Reflection.Primitives.wasm.gz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added _framework/System.Runtime.InteropServices.wasm
Binary file not shown.
Binary file added _framework/System.Runtime.InteropServices.wasm.br
Binary file not shown.
Binary file added _framework/System.Runtime.InteropServices.wasm.gz
Binary file not shown.
Binary file added _framework/System.Runtime.Numerics.wasm
Binary file not shown.
Binary file added _framework/System.Runtime.Numerics.wasm.br
Binary file not shown.
Binary file added _framework/System.Runtime.Numerics.wasm.gz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added _framework/System.Runtime.Serialization.Json.wasm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added _framework/System.Runtime.Serialization.Xml.wasm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added _framework/System.Runtime.wasm
Binary file not shown.
Binary file added _framework/System.Runtime.wasm.br
Binary file not shown.
Binary file added _framework/System.Runtime.wasm.gz
Binary file not shown.
Binary file added _framework/System.Security.Cryptography.wasm
Binary file not shown.
Binary file added _framework/System.Security.Cryptography.wasm.br
Binary file not shown.
Binary file added _framework/System.Security.Cryptography.wasm.gz
Binary file not shown.
Binary file added _framework/System.Text.Encoding.Extensions.wasm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added _framework/System.Text.Encodings.Web.wasm
Binary file not shown.
Binary file added _framework/System.Text.Encodings.Web.wasm.br
Binary file not shown.
Binary file added _framework/System.Text.Encodings.Web.wasm.gz
Binary file not shown.
Binary file added _framework/System.Text.Json.wasm
Binary file not shown.
Binary file added _framework/System.Text.Json.wasm.br
Binary file not shown.
Binary file added _framework/System.Text.Json.wasm.gz
Binary file not shown.
Binary file added _framework/System.Text.RegularExpressions.wasm
Binary file not shown.
Binary file added _framework/System.Text.RegularExpressions.wasm.br
Binary file not shown.
Binary file not shown.
Binary file added _framework/System.Threading.Tasks.Extensions.wasm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added _framework/System.Threading.wasm
Binary file not shown.
Binary file added _framework/System.Threading.wasm.br
Binary file not shown.
Binary file added _framework/System.Threading.wasm.gz
Binary file not shown.
Binary file added _framework/System.Xml.Linq.wasm
Binary file not shown.
Binary file added _framework/System.Xml.Linq.wasm.br
Binary file not shown.
Binary file added _framework/System.Xml.Linq.wasm.gz
Binary file not shown.
Binary file added _framework/System.Xml.ReaderWriter.wasm
Binary file not shown.
Binary file added _framework/System.Xml.ReaderWriter.wasm.br
Binary file not shown.
Binary file added _framework/System.Xml.ReaderWriter.wasm.gz
Binary file not shown.
Binary file added _framework/System.Xml.XDocument.wasm
Binary file not shown.
Binary file added _framework/System.Xml.XDocument.wasm.br
Binary file not shown.
Binary file added _framework/System.Xml.XDocument.wasm.gz
Binary file not shown.
Binary file added _framework/System.wasm
Binary file not shown.
Binary file added _framework/System.wasm.br
Binary file not shown.
Binary file added _framework/System.wasm.gz
Binary file not shown.
Binary file added _framework/TG.Blazor.IndexedDB.wasm
Binary file not shown.
Binary file added _framework/TG.Blazor.IndexedDB.wasm.br
Binary file not shown.
Binary file added _framework/TG.Blazor.IndexedDB.wasm.gz
Binary file not shown.
Loading

0 comments on commit 4f36492

Please sign in to comment.