Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
a94c34a
Adding initial component fucntionality
rolandVi Jul 21, 2025
08bc924
Adding demo fucntionality for Image component
rolandVi Jul 22, 2025
313291f
Add image chunking functionality
rolandVi Jul 22, 2025
c3cd8e0
Fixed chunking
rolandVi Jul 23, 2025
b4095f8
Added support for stream image sources
rolandVi Jul 23, 2025
13db54a
Edited Sample project
rolandVi Jul 23, 2025
ea0614a
Merge branch 'dotnet:main' into first-additions
rolandVi Jul 23, 2025
cf1e54e
Merge branch 'first-additions' of https://github.com/rolandVi/aspnetc…
rolandVi Jul 23, 2025
2ac1dad
Fixed DisposeAsync calling JSinterop during prerendering
rolandVi Jul 24, 2025
eca62e4
Added default content styling
rolandVi Jul 24, 2025
514c600
Added an alternative approach using a HTTP endpoint
rolandVi Jul 28, 2025
1afd371
Resolving RequiresUnreferencedCodeAttribute
rolandVi Jul 29, 2025
9a0c150
JsonSerializer working state
rolandVi Jul 29, 2025
2a08f7e
Fixed JsonSerializer
rolandVi Jul 29, 2025
7aef8e4
Moving endpoint registration to initialization of component
rolandVi Jul 29, 2025
f54591c
Improved caching strategy
rolandVi Jul 30, 2025
de01506
Removed OnImageLoaded and OnImageError
rolandVi Jul 31, 2025
f11f52d
Removed HTTP endpoint approach
rolandVi Jul 31, 2025
7670c8c
Made ImageSource into a class and refactored typescript to handle str…
rolandVi Jul 31, 2025
3e674f7
razor refactoring not working
rolandVi Aug 1, 2025
21ddc86
Revert "razor refactoring not working"
rolandVi Aug 4, 2025
89c40d5
Added transfler progress variable for loading animations
rolandVi Aug 4, 2025
c80bfc7
Adding E2E tests, not working so far
rolandVi Aug 5, 2025
39386f6
Saving E2E test state
rolandVi Aug 6, 2025
d86cb66
Added Element reference approach
rolandVi Aug 6, 2025
e00a1a3
Changed markup of the component, got rid of the outside div, allowed …
rolandVi Aug 7, 2025
e7fcc91
Added dynamic loading when source changes
rolandVi Aug 7, 2025
a8aa78a
Made cache key mandatory
rolandVi Aug 11, 2025
3dd55c1
Added load version tracking
rolandVi Aug 11, 2025
042c30c
Compare ImageSources on key
rolandVi Aug 11, 2025
439dbb0
Removed extension of ComponentBase
rolandVi Aug 11, 2025
edaebdb
Added web api cache
rolandVi Aug 11, 2025
8572b02
Added working unit and E2E tests
rolandVi Aug 13, 2025
d59c0df
Transfer DotNetStreamReference and load versioning based on cachekey
rolandVi Aug 14, 2025
5c628f6
Cache ReadableSream
rolandVi Aug 14, 2025
53f011e
Made ImageSource single use
rolandVi Aug 14, 2025
35ddd87
Edit tests
rolandVi Aug 14, 2025
e0a8d02
Removed chunk size
rolandVi Aug 14, 2025
8e89765
Added better E2E tests
rolandVi Aug 15, 2025
fce236f
Removed cache prefix and unnecassary check
rolandVi Aug 18, 2025
9d45883
Removed for(;;) stream interation and made some Image pamareters private
rolandVi Aug 18, 2025
2fcace5
Removing CacheStrategy, cache by default
rolandVi Aug 18, 2025
07211de
Use logger for warnings
rolandVi Aug 18, 2025
c5666be
Store cache for subsequent requests
rolandVi Aug 18, 2025
506a9df
Add event handlers
rolandVi Aug 18, 2025
bee1570
Removed clear cache method and used ILogger for logging
rolandVi Aug 19, 2025
557c8a2
Move loading to OnAfterRender
rolandVi Aug 19, 2025
e53f7a0
Fix ImageSource
rolandVi Aug 19, 2025
8c2adcf
Introduced CancellationToken
rolandVi Aug 19, 2025
b1550a4
Added data-blazor-image data attribute
rolandVi Aug 19, 2025
e151d36
Moved all logging to logger
rolandVi Aug 19, 2025
acb3067
Explicit interface implementation
rolandVi Aug 19, 2025
f00e5fd
Only one JS interop call, added MutationObserver
rolandVi Aug 19, 2025
6ccaf5e
Fix tests
rolandVi Aug 20, 2025
c38e788
Undo sample changes
rolandVi Aug 20, 2025
19a60d4
Undo sample changes
rolandVi Aug 20, 2025
4bc4ab8
Merge branch 'first-additions' of https://github.com/rolandVi/aspnetc…
rolandVi Aug 20, 2025
a3e0bff
Bind loading variable to img
rolandVi Aug 20, 2025
b4c877c
Generalize into MediaComponent, extend Image, fix Image tests
rolandVi Aug 21, 2025
81917f4
Make Video component
rolandVi Aug 21, 2025
ef0c523
Image component up to date with other brach
rolandVi Aug 22, 2025
90dd487
Remove old Image functionality
rolandVi Aug 22, 2025
9f97e42
Add video tests just to see it work (code duplication)
rolandVi Aug 22, 2025
2cd1262
Add filedownload prototype
rolandVi Aug 22, 2025
26080ab
Fix FileDownload logic
rolandVi Aug 25, 2025
3194090
Use href instead of button
rolandVi Aug 26, 2025
9275b61
FileDownload unit tests
rolandVi Aug 26, 2025
627eb7b
Add E2E tests for the FileDownload
rolandVi Aug 26, 2025
5bdc2fb
Get the funtionality up to date with merged Image component
rolandVi Sep 2, 2025
4c94d01
Editing tests, missing valid video data
rolandVi Sep 3, 2025
7c4db03
Fixed tests
rolandVi Sep 4, 2025
cd7922c
Update src/Components/Web/src/Media/MediaComponentBase.cs
rolandVi Sep 4, 2025
9becff5
Update src/Components/test/E2ETest/Tests/FileDownloadTest.cs
rolandVi Sep 4, 2025
b02bea0
Merge branch 'main' into roland/media-component
rolandVi Sep 4, 2025
067d23c
Clean up old code
rolandVi Sep 4, 2025
dc5cee7
Reduced publicapi, extend buildrendertree
rolandVi Sep 4, 2025
406e2d5
Add MediaSource fun. for video
rolandVi Sep 8, 2025
d49d267
Delete broken test
rolandVi Sep 8, 2025
1a9301a
Add custom rendering
rolandVi Sep 10, 2025
aa68beb
Fix corrupt blob for small media
rolandVi Sep 11, 2025
79b0f92
Add E2E tests for custom rendering
rolandVi Sep 15, 2025
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
7 changes: 4 additions & 3 deletions src/Components/Web.JS/src/GlobalExports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ import { attachWebRendererInterop } from './Rendering/WebRendererInteropMethods'
import { WebStartOptions } from './Platform/WebStartOptions';
import { RuntimeAPI } from '@microsoft/dotnet-runtime';
import { JSEventRegistry } from './Services/JSEventRegistry';
import { BinaryImageComponent } from './Rendering/BinaryImageComponent';
import { BinaryMedia } from './Rendering/BinaryMedia';


// TODO: It's kind of hard to tell which .NET platform(s) some of these APIs are relevant to.
// It's important to know this information when dealing with the possibility of mulitple .NET platforms being available.
Expand Down Expand Up @@ -51,7 +52,7 @@ export interface IBlazor {
navigationManager: typeof navigationManagerInternalFunctions | any;
domWrapper: typeof domFunctions;
Virtualize: typeof Virtualize;
BinaryImageComponent: typeof BinaryImageComponent;
BinaryMedia: typeof BinaryMedia;
PageTitle: typeof PageTitle;
forceCloseConnection?: () => Promise<void>;
InputFile?: typeof InputFile;
Expand Down Expand Up @@ -113,7 +114,7 @@ export const Blazor: IBlazor = {
NavigationLock,
getJSDataStreamChunk: getNextChunk,
attachWebRendererInterop,
BinaryImageComponent,
BinaryMedia,
},
};

Expand Down
Loading
Loading