mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-01 09:48:37 +00:00
Add command arguments to placeholder in admin panel, add play icon to execute command button
This commit is contained in:
parent
f83325dc66
commit
929e878680
4 changed files with 9 additions and 2 deletions
|
@ -12,6 +12,8 @@ namespace LBPUnion.ProjectLighthouse.CommandLine
|
|||
|
||||
public string FirstAlias => this.Aliases()[0];
|
||||
|
||||
public string Arguments();
|
||||
|
||||
public int RequiredArgs();
|
||||
}
|
||||
}
|
|
@ -16,6 +16,7 @@ namespace LBPUnion.ProjectLighthouse.CommandLine
|
|||
{
|
||||
"makeAdmin",
|
||||
};
|
||||
public string Arguments() => "<username/userId>";
|
||||
public int RequiredArgs() => 1;
|
||||
|
||||
public async Task Run(string[] args)
|
||||
|
|
|
@ -16,6 +16,7 @@ namespace LBPUnion.ProjectLighthouse.CommandLine
|
|||
{
|
||||
"setPassword", "resetPassword", "passwd", "password",
|
||||
};
|
||||
public string Arguments() => "<username/userId> <sha256/plaintext>";
|
||||
public int RequiredArgs() => 2;
|
||||
|
||||
public async Task Run(string[] args)
|
||||
|
|
|
@ -16,10 +16,13 @@
|
|||
<h3>@command.Name()</h3>
|
||||
<form>
|
||||
<div class="ui input" style="width: 100%;">
|
||||
<input type="text" name="args" placeholder="Arguments">
|
||||
<input type="text" name="args" placeholder="@command.Arguments()">
|
||||
</div><br><br>
|
||||
<input type="text" name="command" style="display: none;" value="@command.FirstAlias">
|
||||
<input type="submit" value="Execute Command" class="ui green button" style="width: 100%;">
|
||||
<button type="submit" class="ui green button" style="width: 100%;">
|
||||
<i class="play icon"></i>
|
||||
Execute
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue