feat: improved login and register, improved sidebar

Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
limited_dev 2023-05-31 14:13:18 +02:00
parent a6d395ab58
commit 3a6ffaec46
11 changed files with 147 additions and 97 deletions

View file

@ -31,9 +31,9 @@
</div>
</div>
@if (hasErr)
{
<span class="postError">@postErr</span>
}
{
<span class="postError">@postErr</span>
}
<div class="pd centered marg">
<FormInfo/>
<InputFile OnChange="@SingleUpload" type="file" accept="image/*"/>

View file

@ -53,15 +53,36 @@
}
</div>
<div class="threadTextContainer">
@foreach (string s in @post.Content.Split("\n"))
@if (showOpenThread)
{
var className = "";
@if (s.StartsWith(">") && !Regex.IsMatch(s, "^>{2,}"))
@foreach (string s in post.Content.Split("\n").ToList().Take(6))
{
className = "greenText";
var className = "";
@if (s.StartsWith(">") && !Regex.IsMatch(s, "^>{2,}"))
{
className = "greenText";
}
<span class='threadText @className'>@s&nbsp;</span>
}
<span class='threadText @className'>@s&nbsp;</span>
@if (post.Content.Split("\n").Length > 6)
{
<br/>
<span class="greenText">[Open Thread to read more...]</span>
}
}
else
{
@foreach (string s in post.Content.Split("\n"))
{
var className = "";
@if (s.StartsWith(">") && !Regex.IsMatch(s, "^>{2,}"))
{
className = "greenText";
}
<span class='threadText @className'>@s&nbsp;</span>
}
}
</div>
</div>
@ -117,12 +138,13 @@
</div>
}
@code {
public bool canDel { get; set; }
public bool isActive { get; set; } = false;
private int linecnt = 0;
private async void lockMe()
{