feat: improved login and register, improved sidebar
Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
parent
a6d395ab58
commit
3a6ffaec46
11 changed files with 147 additions and 97 deletions
|
@ -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/*"/>
|
||||
|
|
|
@ -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 </span>
|
||||
}
|
||||
|
||||
<span class='threadText @className'>@s </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 </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()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue