2024-06-28 07:08:12 +00:00
|
|
|
@inject State State
|
|
|
|
<NavLink class="nav-link" href="/statuslog/latest">
|
2024-06-14 00:45:31 +00:00
|
|
|
<i class="square fa-solid fa-message-smile"></i>
|
|
|
|
<div class="label">Status.lol</div>
|
|
|
|
</NavLink>
|
|
|
|
<NavLink class="nav-link" href="/pics">
|
|
|
|
<i class="square fa-solid fa-images"></i>
|
|
|
|
<div class="label">Some.pics</div>
|
|
|
|
</NavLink>
|
|
|
|
<NavLink class="nav-link" href="/ephemeral">
|
|
|
|
<i class="square fa-light fa-comment-dots"></i>
|
|
|
|
<div class="label">Eph.emer.al</div>
|
|
|
|
</NavLink>
|
2024-07-02 02:55:07 +00:00
|
|
|
@if (FeatureFlags.Following && State.IsAuthorized) {
|
|
|
|
<NavLink class="nav-link" href="/feed">
|
|
|
|
<i class="square fa-solid fa-list-timeline"></i>
|
|
|
|
<div class="label">Timeline</div>
|
|
|
|
</NavLink>
|
|
|
|
<NavLink class="l m nav-link" href="/now">
|
|
|
|
<i class="square fa-duotone fa-seedling"></i>
|
|
|
|
<div class="label">Now.garden</div>
|
|
|
|
</NavLink>
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
<NavLink class="nav-link" href="/now">
|
|
|
|
<i class="square fa-duotone fa-seedling"></i>
|
|
|
|
<div class="label">Now.garden</div>
|
|
|
|
</NavLink>
|
|
|
|
}
|
|
|
|
<NavLink class="l m nav-link" href="/directory">
|
2024-06-18 07:11:28 +00:00
|
|
|
<i class="square fa-duotone fa-address-book"></i>
|
2024-07-02 02:55:07 +00:00
|
|
|
<div class="label">Directory</div>
|
2024-07-04 00:21:25 +00:00
|
|
|
</NavLink>
|
|
|
|
|
|
|
|
@code {
|
|
|
|
protected override async Task OnInitializedAsync() {
|
|
|
|
await base.OnInitializedAsync();
|
|
|
|
State.PropertyChanged += StateChanged;
|
|
|
|
}
|
|
|
|
|
|
|
|
private async void StateChanged(object? sender, PropertyChangedEventArgs e) {
|
|
|
|
if (e.PropertyName == nameof(State.AccountInfo)) await InvokeAsync(StateHasChanged);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void Dispose() {
|
|
|
|
State.PropertyChanged -= StateChanged;
|
|
|
|
}
|
|
|
|
}
|