about summary refs log tree commit diff
path: root/MatrixUtils.Web/Shared
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--MatrixUtils.Web/Shared/EditablePre.razor (renamed from MatrixRoomUtils.Web/Shared/EditablePre.razor)0
-rw-r--r--MatrixUtils.Web/Shared/InlineUserItem.razor (renamed from MatrixRoomUtils.Web/Shared/InlineUserItem.razor)2
-rw-r--r--MatrixUtils.Web/Shared/LogView.razor (renamed from MatrixRoomUtils.Web/Shared/LogView.razor)0
-rw-r--r--MatrixUtils.Web/Shared/MainLayout.razor (renamed from MatrixRoomUtils.Web/Shared/MainLayout.razor)3
-rw-r--r--MatrixUtils.Web/Shared/MainLayout.razor.css (renamed from MatrixRoomUtils.Web/Shared/MainLayout.razor.css)0
-rw-r--r--MatrixUtils.Web/Shared/MxcImage.razor (renamed from MatrixRoomUtils.Web/Shared/MxcImage.razor)0
-rw-r--r--MatrixUtils.Web/Shared/NavMenu.razor (renamed from MatrixRoomUtils.Web/Shared/NavMenu.razor)17
-rw-r--r--MatrixUtils.Web/Shared/NavMenu.razor.css (renamed from MatrixRoomUtils.Web/Shared/NavMenu.razor.css)0
-rw-r--r--MatrixUtils.Web/Shared/PolicyEditorComponents/PolicyEditorModal.razor (renamed from MatrixRoomUtils.Web/Shared/PolicyEditorComponents/PolicyEditorModal.razor)0
-rw-r--r--MatrixUtils.Web/Shared/RoomList.razor (renamed from MatrixRoomUtils.Web/Shared/RoomList.razor)8
-rw-r--r--MatrixUtils.Web/Shared/RoomList.razor.css (renamed from MatrixRoomUtils.Web/Shared/RoomList.razor.css)0
-rw-r--r--MatrixUtils.Web/Shared/RoomListComponents/RoomListCategory.razor (renamed from MatrixRoomUtils.Web/Shared/RoomListComponents/RoomListCategory.razor)6
-rw-r--r--MatrixUtils.Web/Shared/RoomListComponents/RoomListPolicyRoom.razor (renamed from MatrixRoomUtils.Web/Shared/RoomListComponents/RoomListPolicyRoom.razor)0
-rw-r--r--MatrixUtils.Web/Shared/RoomListComponents/RoomListSpace.razor (renamed from MatrixRoomUtils.Web/Shared/RoomListComponents/RoomListSpace.razor)4
-rw-r--r--MatrixUtils.Web/Shared/RoomListItem.razor (renamed from MatrixRoomUtils.Web/Shared/RoomListItem.razor)6
-rw-r--r--MatrixUtils.Web/Shared/RoomListItem.razor.css (renamed from MatrixRoomUtils.Web/Shared/RoomListItem.razor.css)0
-rw-r--r--MatrixUtils.Web/Shared/TimelineComponents/BaseTimelineItem.razor (renamed from MatrixRoomUtils.Web/Shared/TimelineComponents/BaseTimelineItem.razor)0
-rw-r--r--MatrixUtils.Web/Shared/TimelineComponents/TimelineCanonicalAliasItem.razor (renamed from MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineCanonicalAliasItem.razor)0
-rw-r--r--MatrixUtils.Web/Shared/TimelineComponents/TimelineHistoryVisibilityItem.razor (renamed from MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineHistoryVisibilityItem.razor)0
-rw-r--r--MatrixUtils.Web/Shared/TimelineComponents/TimelineMemberItem.razor (renamed from MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineMemberItem.razor)0
-rw-r--r--MatrixUtils.Web/Shared/TimelineComponents/TimelineMessageItem.razor (renamed from MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineMessageItem.razor)0
-rw-r--r--MatrixUtils.Web/Shared/TimelineComponents/TimelineRoomCreateItem.razor (renamed from MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineRoomCreateItem.razor)0
-rw-r--r--MatrixUtils.Web/Shared/TimelineComponents/TimelineRoomNameItem.razor (renamed from MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineRoomNameItem.razor)0
-rw-r--r--MatrixUtils.Web/Shared/TimelineComponents/TimelineRoomTopicItem.razor (renamed from MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineRoomTopicItem.razor)0
-rw-r--r--MatrixUtils.Web/Shared/TimelineComponents/TimelineUnknownItem.razor (renamed from MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineUnknownItem.razor)0
-rw-r--r--MatrixUtils.Web/Shared/UserListItem.razor (renamed from MatrixRoomUtils.Web/Shared/UserListItem.razor)2
26 files changed, 21 insertions, 27 deletions
diff --git a/MatrixRoomUtils.Web/Shared/EditablePre.razor b/MatrixUtils.Web/Shared/EditablePre.razor

index acb477c..acb477c 100644 --- a/MatrixRoomUtils.Web/Shared/EditablePre.razor +++ b/MatrixUtils.Web/Shared/EditablePre.razor
diff --git a/MatrixRoomUtils.Web/Shared/InlineUserItem.razor b/MatrixUtils.Web/Shared/InlineUserItem.razor
index dc58210..6df2307 100644 --- a/MatrixRoomUtils.Web/Shared/InlineUserItem.razor +++ b/MatrixUtils.Web/Shared/InlineUserItem.razor
@@ -42,7 +42,7 @@ protected override async Task OnInitializedAsync() { await base.OnInitializedAsync(); - Homeserver ??= await MRUStorage.GetCurrentSessionOrNavigate(); + Homeserver ??= await RMUStorage.GetCurrentSessionOrNavigate(); if(Homeserver is null) return; await _semaphoreSlim.WaitAsync(); diff --git a/MatrixRoomUtils.Web/Shared/LogView.razor b/MatrixUtils.Web/Shared/LogView.razor
index d541b82..d541b82 100644 --- a/MatrixRoomUtils.Web/Shared/LogView.razor +++ b/MatrixUtils.Web/Shared/LogView.razor
diff --git a/MatrixRoomUtils.Web/Shared/MainLayout.razor b/MatrixUtils.Web/Shared/MainLayout.razor
index 2322af1..92194b2 100644 --- a/MatrixRoomUtils.Web/Shared/MainLayout.razor +++ b/MatrixUtils.Web/Shared/MainLayout.razor
@@ -1,5 +1,4 @@ -@using System.Net -@inherits LayoutComponentBase +@inherits LayoutComponentBase <div class="page"> <div class="sidebar"> diff --git a/MatrixRoomUtils.Web/Shared/MainLayout.razor.css b/MatrixUtils.Web/Shared/MainLayout.razor.css
index 01a5066..01a5066 100644 --- a/MatrixRoomUtils.Web/Shared/MainLayout.razor.css +++ b/MatrixUtils.Web/Shared/MainLayout.razor.css
diff --git a/MatrixRoomUtils.Web/Shared/MxcImage.razor b/MatrixUtils.Web/Shared/MxcImage.razor
index fb8c248..fb8c248 100644 --- a/MatrixRoomUtils.Web/Shared/MxcImage.razor +++ b/MatrixUtils.Web/Shared/MxcImage.razor
diff --git a/MatrixRoomUtils.Web/Shared/NavMenu.razor b/MatrixUtils.Web/Shared/NavMenu.razor
index f232940..43e2237 100644 --- a/MatrixRoomUtils.Web/Shared/NavMenu.razor +++ b/MatrixUtils.Web/Shared/NavMenu.razor
@@ -1,6 +1,6 @@ <div class="top-row ps-3 navbar navbar-dark"> <div class="container-fluid"> - <a class="navbar-brand" href="">Rory&::MatrixRoomUtils</a> + <a class="navbar-brand" href="">Rory&::MatrixUtils</a> <button title="Navigation menu" class="navbar-toggler" @onclick="ToggleNavMenu"> <span class="navbar-toggler-icon"></span> </button> @@ -17,7 +17,7 @@ <div class="nav-item px-3"> <NavLink class="nav-link" href="About"> - <span class="oi oi-info" aria-hidden="true"></span> About MRU + <span class="oi oi-info" aria-hidden="true"></span> About RMU </NavLink> </div> @@ -60,20 +60,15 @@ </div> <div class="nav-item px-3"> - <NavLink class="nav-link" href="SpaceDebug"> - <span class="oi oi-plus" aria-hidden="true"></span> Space relationships - </NavLink> - </div> - <div class="nav-item px-3"> - <NavLink class="nav-link" href="KnownHomeservers"> - <span class="oi oi-plus" aria-hidden="true"></span> Known homeservers + <NavLink class="nav-link" href="Tools"> + <span class="oi oi-plus" aria-hidden="true"></span> Other tools </NavLink> </div> - <!-- MRU --> + <!-- RMU --> <div class="nav-item px-3"> - <h5 style="margin-left: 1em;">MRU</h5> + <h5 style="margin-left: 1em;">RMU</h5> <hr style="margin-bottom: 0em;"/> </div> diff --git a/MatrixRoomUtils.Web/Shared/NavMenu.razor.css b/MatrixUtils.Web/Shared/NavMenu.razor.css
index 447f2df..447f2df 100644 --- a/MatrixRoomUtils.Web/Shared/NavMenu.razor.css +++ b/MatrixUtils.Web/Shared/NavMenu.razor.css
diff --git a/MatrixRoomUtils.Web/Shared/PolicyEditorComponents/PolicyEditorModal.razor b/MatrixUtils.Web/Shared/PolicyEditorComponents/PolicyEditorModal.razor
index 4fd151d..4fd151d 100644 --- a/MatrixRoomUtils.Web/Shared/PolicyEditorComponents/PolicyEditorModal.razor +++ b/MatrixUtils.Web/Shared/PolicyEditorComponents/PolicyEditorModal.razor
diff --git a/MatrixRoomUtils.Web/Shared/RoomList.razor b/MatrixUtils.Web/Shared/RoomList.razor
index 31f0430..ed443dd 100644 --- a/MatrixRoomUtils.Web/Shared/RoomList.razor +++ b/MatrixUtils.Web/Shared/RoomList.razor
@@ -1,12 +1,12 @@ -@using MatrixRoomUtils.Web.Shared.RoomListComponents; +@using MatrixUtils.Web.Shared.RoomListComponents; @using LibMatrix @using LibMatrix.Extensions @using ArcaneLibs.Extensions @using LibMatrix.EventTypes.Spec.State @using System.Collections.ObjectModel @using LibMatrix.Responses -@using MatrixRoomUtils.Abstractions -@using _Imports = MatrixRoomUtils.Web._Imports +@using MatrixUtils.Abstractions +@using _Imports = MatrixUtils.Web._Imports @if (!StillFetching) { <p>Fetching room details... @RoomsWithTypes.Sum(x => x.Value.Count) out of @Rooms.Count done!</p> @foreach (var category in RoomsWithTypes.OrderBy(x => x.Value.Count)) { @@ -37,7 +37,7 @@ else { private bool hooked; protected override async Task OnParametersSetAsync() { - var hs = await MRUStorage.GetCurrentSessionOrNavigate(); + var hs = await RMUStorage.GetCurrentSessionOrNavigate(); if (hs is null) return; if (!hooked) { Rooms.CollectionChanged += (_, args) => { diff --git a/MatrixRoomUtils.Web/Shared/RoomList.razor.css b/MatrixUtils.Web/Shared/RoomList.razor.css
index a159305..a159305 100644 --- a/MatrixRoomUtils.Web/Shared/RoomList.razor.css +++ b/MatrixUtils.Web/Shared/RoomList.razor.css
diff --git a/MatrixRoomUtils.Web/Shared/RoomListComponents/RoomListCategory.razor b/MatrixUtils.Web/Shared/RoomListComponents/RoomListCategory.razor
index 4db25e1..3d0070f 100644 --- a/MatrixRoomUtils.Web/Shared/RoomListComponents/RoomListCategory.razor +++ b/MatrixUtils.Web/Shared/RoomListComponents/RoomListCategory.razor
@@ -1,9 +1,9 @@ -@using MatrixRoomUtils.Web.Classes.Constants +@using MatrixUtils.Web.Classes.Constants @using LibMatrix @using LibMatrix.EventTypes.Spec.State @using LibMatrix.Homeservers @using LibMatrix.Responses -@using MatrixRoomUtils.Abstractions +@using MatrixUtils.Abstractions <details> <summary>@RoomType (@Rooms.Count)</summary> @foreach (var room in Rooms) { @@ -11,7 +11,7 @@ <RoomListItem RoomInfo="@room" ShowOwnProfile="@(RoomType == "Room")"></RoomListItem> @* @if (RoomVersionDangerLevel(room) != 0 && *@ @* (room.StateEvents.FirstOrDefault(x=>x.Type == "m.room.power_levels")?.TypedContent is RoomPowerLevelEventContent powerLevels && powerLevels.UserHasPermission(Homeserver.UserId, "m.room.tombstone"))) { *@ - @* <MatrixRoomUtils.Web.Shared.SimpleComponents.LinkButton Color="@(RoomVersionDangerLevel(room) == 2 ? "#ff0000" : "#ff8800")" href="@($"/Rooms/Create?Import={room.Room.RoomId}")">Upgrade room</MatrixRoomUtils.Web.Shared.SimpleComponents.LinkButton> *@ + @* <MatrixUtils.Web.Shared.SimpleComponents.LinkButton Color="@(RoomVersionDangerLevel(room) == 2 ? "#ff0000" : "#ff8800")" href="@($"/Rooms/Create?Import={room.Room.RoomId}")">Upgrade room</MatrixUtils.Web.Shared.SimpleComponents.LinkButton> *@ @* } *@ <LinkButton href="@($"/Rooms/{room.Room.RoomId}/Timeline")">View timeline</LinkButton> <LinkButton href="@($"/Rooms/{room.Room.RoomId}/State/View")">View state</LinkButton> diff --git a/MatrixRoomUtils.Web/Shared/RoomListComponents/RoomListPolicyRoom.razor b/MatrixUtils.Web/Shared/RoomListComponents/RoomListPolicyRoom.razor
index 7afdc8c..7afdc8c 100644 --- a/MatrixRoomUtils.Web/Shared/RoomListComponents/RoomListPolicyRoom.razor +++ b/MatrixUtils.Web/Shared/RoomListComponents/RoomListPolicyRoom.razor
diff --git a/MatrixRoomUtils.Web/Shared/RoomListComponents/RoomListSpace.razor b/MatrixUtils.Web/Shared/RoomListComponents/RoomListSpace.razor
index a6c006b..895d642 100644 --- a/MatrixRoomUtils.Web/Shared/RoomListComponents/RoomListSpace.razor +++ b/MatrixUtils.Web/Shared/RoomListComponents/RoomListSpace.razor
@@ -1,6 +1,6 @@ @using System.Collections.ObjectModel -@using MatrixRoomUtils.Abstractions -<MatrixRoomUtils.Web.Shared.SimpleComponents.LinkButton href="@($"/Rooms/{Space.Room.RoomId}/Space")">Manage space</MatrixRoomUtils.Web.Shared.SimpleComponents.LinkButton> +@using MatrixUtils.Abstractions +<MatrixUtils.Web.Shared.SimpleComponents.LinkButton href="@($"/Rooms/{Space.Room.RoomId}/Space")">Manage space</MatrixUtils.Web.Shared.SimpleComponents.LinkButton> <br/> <details @ontoggle="SpaceChildrenOpened"> diff --git a/MatrixRoomUtils.Web/Shared/RoomListItem.razor b/MatrixUtils.Web/Shared/RoomListItem.razor
index 07f0756..1046dd1 100644 --- a/MatrixRoomUtils.Web/Shared/RoomListItem.razor +++ b/MatrixUtils.Web/Shared/RoomListItem.razor
@@ -5,8 +5,8 @@ @using LibMatrix.Homeservers @using LibMatrix.Responses @using LibMatrix.RoomTypes -@using MatrixRoomUtils.Abstractions -@using MatrixRoomUtils.Web.Classes.Constants +@using MatrixUtils.Abstractions +@using MatrixUtils.Web.Classes.Constants @if (RoomInfo is not null) { <div class="roomListItem @(HasDangerousRoomVersion ? "dangerousRoomVersion" : HasOldRoomVersion ? "oldRoomVersion" : "")" id="@RoomInfo.Room.RoomId"> @if (OwnMemberState != null) { @@ -119,7 +119,7 @@ else { await _semaphoreSlim.WaitAsync(); - hs ??= await MRUStorage.GetCurrentSessionOrNavigate(); + hs ??= await RMUStorage.GetCurrentSessionOrNavigate(); if (hs is null) return; try { diff --git a/MatrixRoomUtils.Web/Shared/RoomListItem.razor.css b/MatrixUtils.Web/Shared/RoomListItem.razor.css
index 13de656..13de656 100644 --- a/MatrixRoomUtils.Web/Shared/RoomListItem.razor.css +++ b/MatrixUtils.Web/Shared/RoomListItem.razor.css
diff --git a/MatrixRoomUtils.Web/Shared/TimelineComponents/BaseTimelineItem.razor b/MatrixUtils.Web/Shared/TimelineComponents/BaseTimelineItem.razor
index 8d608e3..8d608e3 100644 --- a/MatrixRoomUtils.Web/Shared/TimelineComponents/BaseTimelineItem.razor +++ b/MatrixUtils.Web/Shared/TimelineComponents/BaseTimelineItem.razor
diff --git a/MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineCanonicalAliasItem.razor b/MatrixUtils.Web/Shared/TimelineComponents/TimelineCanonicalAliasItem.razor
index 1213432..1213432 100644 --- a/MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineCanonicalAliasItem.razor +++ b/MatrixUtils.Web/Shared/TimelineComponents/TimelineCanonicalAliasItem.razor
diff --git a/MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineHistoryVisibilityItem.razor b/MatrixUtils.Web/Shared/TimelineComponents/TimelineHistoryVisibilityItem.razor
index 172a38c..172a38c 100644 --- a/MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineHistoryVisibilityItem.razor +++ b/MatrixUtils.Web/Shared/TimelineComponents/TimelineHistoryVisibilityItem.razor
diff --git a/MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineMemberItem.razor b/MatrixUtils.Web/Shared/TimelineComponents/TimelineMemberItem.razor
index 3b18b95..3b18b95 100644 --- a/MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineMemberItem.razor +++ b/MatrixUtils.Web/Shared/TimelineComponents/TimelineMemberItem.razor
diff --git a/MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineMessageItem.razor b/MatrixUtils.Web/Shared/TimelineComponents/TimelineMessageItem.razor
index 81956b0..81956b0 100644 --- a/MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineMessageItem.razor +++ b/MatrixUtils.Web/Shared/TimelineComponents/TimelineMessageItem.razor
diff --git a/MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineRoomCreateItem.razor b/MatrixUtils.Web/Shared/TimelineComponents/TimelineRoomCreateItem.razor
index f3e6c7e..f3e6c7e 100644 --- a/MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineRoomCreateItem.razor +++ b/MatrixUtils.Web/Shared/TimelineComponents/TimelineRoomCreateItem.razor
diff --git a/MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineRoomNameItem.razor b/MatrixUtils.Web/Shared/TimelineComponents/TimelineRoomNameItem.razor
index eeec3de..eeec3de 100644 --- a/MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineRoomNameItem.razor +++ b/MatrixUtils.Web/Shared/TimelineComponents/TimelineRoomNameItem.razor
diff --git a/MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineRoomTopicItem.razor b/MatrixUtils.Web/Shared/TimelineComponents/TimelineRoomTopicItem.razor
index 7ef17a8..7ef17a8 100644 --- a/MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineRoomTopicItem.razor +++ b/MatrixUtils.Web/Shared/TimelineComponents/TimelineRoomTopicItem.razor
diff --git a/MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineUnknownItem.razor b/MatrixUtils.Web/Shared/TimelineComponents/TimelineUnknownItem.razor
index 4f05b30..4f05b30 100644 --- a/MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineUnknownItem.razor +++ b/MatrixUtils.Web/Shared/TimelineComponents/TimelineUnknownItem.razor
diff --git a/MatrixRoomUtils.Web/Shared/UserListItem.razor b/MatrixUtils.Web/Shared/UserListItem.razor
index 167809e..525296e 100644 --- a/MatrixRoomUtils.Web/Shared/UserListItem.razor +++ b/MatrixUtils.Web/Shared/UserListItem.razor
@@ -28,7 +28,7 @@ private AuthenticatedHomeserverGeneric _homeserver = null!; protected override async Task OnInitializedAsync() { - _homeserver = await MRUStorage.GetCurrentSessionOrNavigate(); + _homeserver = await RMUStorage.GetCurrentSessionOrNavigate(); if (_homeserver is null) return; if (User == null) {