mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-02 18:18:39 +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 FirstAlias => this.Aliases()[0];
|
||||||
|
|
||||||
|
public string Arguments();
|
||||||
|
|
||||||
public int RequiredArgs();
|
public int RequiredArgs();
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -16,6 +16,7 @@ namespace LBPUnion.ProjectLighthouse.CommandLine
|
||||||
{
|
{
|
||||||
"makeAdmin",
|
"makeAdmin",
|
||||||
};
|
};
|
||||||
|
public string Arguments() => "<username/userId>";
|
||||||
public int RequiredArgs() => 1;
|
public int RequiredArgs() => 1;
|
||||||
|
|
||||||
public async Task Run(string[] args)
|
public async Task Run(string[] args)
|
||||||
|
|
|
@ -16,6 +16,7 @@ namespace LBPUnion.ProjectLighthouse.CommandLine
|
||||||
{
|
{
|
||||||
"setPassword", "resetPassword", "passwd", "password",
|
"setPassword", "resetPassword", "passwd", "password",
|
||||||
};
|
};
|
||||||
|
public string Arguments() => "<username/userId> <sha256/plaintext>";
|
||||||
public int RequiredArgs() => 2;
|
public int RequiredArgs() => 2;
|
||||||
|
|
||||||
public async Task Run(string[] args)
|
public async Task Run(string[] args)
|
||||||
|
|
|
@ -16,10 +16,13 @@
|
||||||
<h3>@command.Name()</h3>
|
<h3>@command.Name()</h3>
|
||||||
<form>
|
<form>
|
||||||
<div class="ui input" style="width: 100%;">
|
<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>
|
</div><br><br>
|
||||||
<input type="text" name="command" style="display: none;" value="@command.FirstAlias">
|
<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>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue