init commit
This commit is contained in:
130
libs/phantombot/web/panel/pages/settings/botSettings.html
Normal file
130
libs/phantombot/web/panel/pages/settings/botSettings.html
Normal file
@@ -0,0 +1,130 @@
|
||||
<!--
|
||||
Copyright (C) 2016-2020 phantombot.github.io/PhantomBot
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<main>
|
||||
<!-- Header -->
|
||||
<section class="content-header">
|
||||
<!-- Page title.-->
|
||||
<h1>Bot Settings</h1>
|
||||
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="javascript:void(0);"><i class="fa fa-dashboard"></i> Home</a></li>
|
||||
<li>Settings</li>
|
||||
<li class="active">Bot</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="nav-tabs-custom">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#bot_logging" data-toggle="tab">Logging</a></li>
|
||||
<li><a href="#bot_out" data-toggle="tab">Message Output</a></li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
<!-- Logging settings -->
|
||||
<div class="tab-pane active" id="bot_logging">
|
||||
<div class="form-group">
|
||||
<!-- Log events toggle. -->
|
||||
<label for="logging-events">Log Events</label>
|
||||
<div class="dropdown">
|
||||
<select class="form-control" id="logging-events" style="cursor: pointer;">
|
||||
<option>Yes</option>
|
||||
<option>No</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Log errors toggle. -->
|
||||
<div class="form-group">
|
||||
<label for="logging-errors">Log Errors</label>
|
||||
<div class="dropdown">
|
||||
<select class="form-control" id="logging-errors" style="cursor: pointer;">
|
||||
<option>Yes</option>
|
||||
<option>No</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Log chat toggle. -->
|
||||
<div class="form-group">
|
||||
<label for="logging-chat">Log Chat</label>
|
||||
<div class="dropdown">
|
||||
<select class="form-control" id="logging-chat" style="cursor: pointer;">
|
||||
<option>Yes</option>
|
||||
<option>No</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Logs keep days. -->
|
||||
<div class="form-group">
|
||||
<label>Days to Keep Logs</label>
|
||||
<input type="number" class="form-control" id="log-days" placeholder="15" data-toggle="tooltip"
|
||||
title="How long in days to keep logs for. 0 means never delete logs."/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Output mode -->
|
||||
<div class="tab-pane" id="bot_out">
|
||||
<!-- Whisper mode. -->
|
||||
<div class="form-group">
|
||||
<label>Enable Whisper Mode</label>
|
||||
<div class="dropdown">
|
||||
<select class="form-control" id="bot-whisper-mode" style="cursor: pointer;" data-toggle="tooltip"
|
||||
title="Send all responses in whispers except for custom commands.">
|
||||
<option>Yes</option>
|
||||
<option>No</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Action mode. -->
|
||||
<div class="form-group">
|
||||
<label>Enable Action Mode</label>
|
||||
<div class="dropdown">
|
||||
<select class="form-control" id="bot-action-mode" style="cursor: pointer;" data-toggle="tooltip"
|
||||
title="Send all bot messages using colored text with /me.">
|
||||
<option>Yes</option>
|
||||
<option>No</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Mute mode. -->
|
||||
<div class="form-group">
|
||||
<label>Mute Bot Replies</label>
|
||||
<div class="dropdown">
|
||||
<select class="form-control" id="bot-mute-mode" style="cursor: pointer;" data-toggle="tooltip"
|
||||
title="Mute all bot replies except for timeouts.">
|
||||
<option>Yes</option>
|
||||
<option>No</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Box footer -->
|
||||
<div class="box-footer" style="padding-right: 0; padding-bottom: 0;">
|
||||
<button type="button" class="btn btn-primary pull-right" id="bot-logging-save"> Save</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- botSettings -->
|
||||
<script src="/panel/js/pages/settings/botSettings.js"></script>
|
||||
</main>
|
||||
125
libs/phantombot/web/panel/pages/settings/commandSettings.html
Normal file
125
libs/phantombot/web/panel/pages/settings/commandSettings.html
Normal file
@@ -0,0 +1,125 @@
|
||||
<!--
|
||||
Copyright (C) 2016-2020 phantombot.github.io/PhantomBot
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<main>
|
||||
<!-- Header -->
|
||||
<section class="content-header">
|
||||
<!-- Page title.-->
|
||||
<h1>Command Settings</h1>
|
||||
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="javascript:void(0);"><i class="fa fa-dashboard"></i> Home</a></li>
|
||||
<li>Settings</li>
|
||||
<li class="active">Commands</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="nav-tabs-custom">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#cmd_settings_messages" data-toggle="tab">Warning Messages</a></li>
|
||||
<li><a href="#cmd_settings_mods" data-toggle="tab">Moderator Exceptions</a></li>
|
||||
<li><a href="#cmd_settings_cooldown" data-toggle="tab">Cooldown</a></li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
<!-- Command Messages -->
|
||||
<div class="tab-pane active" id="cmd_settings_messages">
|
||||
<div class="form-group">
|
||||
<!-- Pricecom toggle. -->
|
||||
<label for="cmd-cost-messages">Enable Cost Messages</label>
|
||||
<div class="dropdown">
|
||||
<select class="form-control" id="cmd-cost-messages" style="cursor: pointer;" data-toggle="tooltip"
|
||||
title="If a message should be said in a chat when a user tries to use a command that they don't have points for.">
|
||||
<option>Yes</option>
|
||||
<option>No</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<!-- Permcom toggle. -->
|
||||
<label for="cmd-perm-messages">Enable Permission Messages</label>
|
||||
<div class="dropdown">
|
||||
<select class="form-control" id="cmd-perm-messages" style="cursor: pointer;" data-toggle="tooltip"
|
||||
title="If a message should be said in a chat when a user tries to use a command that they don't have permission for.">
|
||||
<option>Yes</option>
|
||||
<option>No</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<!-- Permcom toggle. -->
|
||||
<label for="cmd-cooldown-messages">Enable Cooldown Messages</label>
|
||||
<div class="dropdown">
|
||||
<select class="form-control" id="cmd-cooldown-messages" style="cursor: pointer;" data-toggle="tooltip"
|
||||
title="If a message should be said in a chat when a user tries to use a command that's still on cooldown.">
|
||||
<option>Yes</option>
|
||||
<option>No</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Command Moderators Exeptions. -->
|
||||
<div class="tab-pane" id="cmd_settings_mods">
|
||||
<div class="form-group">
|
||||
<!-- Pricecom mods toggle. -->
|
||||
<label for="pricecom-mods">Exempt Moderators From Command Costs</label>
|
||||
<div class="dropdown">
|
||||
<select class="form-control" id="pricecom-mods" style="cursor: pointer;" data-toggle="tooltip"
|
||||
title="If moderators should also pay for commands with a cost. Bot administrators are always ignored.">
|
||||
<option>Yes</option>
|
||||
<option>No</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<!-- Cooldown for mods. -->
|
||||
<label for="cooldown-mods">Exempt Moderators From Command Cooldowns</label>
|
||||
<div class="dropdown">
|
||||
<select class="form-control" id="cooldown-mods" style="cursor: pointer;" data-toggle="tooltip"
|
||||
title="If moderators should also have command cooldowns.">
|
||||
<option>Yes</option>
|
||||
<option>No</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Command Cooldown -->
|
||||
<div class="tab-pane" id="cmd_settings_cooldown">
|
||||
<!-- Logs keep days. -->
|
||||
<div class="form-group">
|
||||
<label for="global-cooldown">Global Cooldown (Seconds)</label>
|
||||
<input type="number" class="form-control" id="global-cooldown" data-toggle="tooltip"
|
||||
title="Cooldown given to commands that don't have a custom cooldown. Minimum is 5 seconds."/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Box footer -->
|
||||
<div class="box-footer" style="padding-right: 0; padding-bottom: 0;">
|
||||
<button type="button" class="btn btn-primary pull-right" id="cmd-save-btn"> Save</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- moduleList -->
|
||||
<script src="/panel/js/pages/settings/commandSettings.js"></script>
|
||||
</main>
|
||||
52
libs/phantombot/web/panel/pages/settings/localization.html
Normal file
52
libs/phantombot/web/panel/pages/settings/localization.html
Normal file
@@ -0,0 +1,52 @@
|
||||
<!--
|
||||
Copyright (C) 2016-2020 phantombot.github.io/PhantomBot
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<main>
|
||||
<!-- Header -->
|
||||
<section class="content-header">
|
||||
<h1>Settings</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="javascript:void(0);"><i class="fa fa-dashboard"></i> Home</a></li>
|
||||
<li class="active">Localization</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="box box-solid">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Localization</h3>
|
||||
</div>
|
||||
<form role="form">
|
||||
<!-- Box content -->
|
||||
<div class="box-body">
|
||||
<div class="btn-toolbar pull-right">
|
||||
<button class="btn btn-success btn-sm" type="button" id="save-button" data-toggle="tooltip"
|
||||
title="Save this current lang file." disabled><i class="fa fa-save"></i> Save</button>
|
||||
<button class="btn btn-warning btn-sm" type="button" id="add-line-button"
|
||||
data-toggle="tooltip" title="Add a new lang entry to this file." disabled><i class="fa fa-plus"></i> Add Line</button>
|
||||
<button class="btn btn-primary btn-sm" type="button" id="load-file-button" data-toggle="tooltip"
|
||||
title="Load a lang file to edit."><i class="fa fa-edit"></i> Edit File</button>
|
||||
</div>
|
||||
|
||||
<table id="langTable" class="table table-bordered table-hover"></table>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- localization -->
|
||||
<script src="/panel/js/pages/settings/localization.js"></script>
|
||||
</main>
|
||||
61
libs/phantombot/web/panel/pages/settings/moduleList.html
Normal file
61
libs/phantombot/web/panel/pages/settings/moduleList.html
Normal file
@@ -0,0 +1,61 @@
|
||||
<!--
|
||||
Copyright (C) 2016-2020 phantombot.github.io/PhantomBot
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<main>
|
||||
<!-- Overwrite styles -->
|
||||
<style>
|
||||
.dataTables_filter {
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- Header -->
|
||||
<section class="content-header">
|
||||
<!-- Page title.-->
|
||||
<h1>Bot Modules</h1>
|
||||
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="javascript:void(0);"><i class="fa fa-dashboard"></i> Home</a></li>
|
||||
<li>Settings</li>
|
||||
<li class="active">Modules</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="nav-tabs-custom">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#twitch_modules" data-toggle="tab">Twitch</a></li>
|
||||
<li><a href="#discord_modules" id="discord_modules_t" data-toggle="tab">Discord</a></li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
<!-- Twitch Modules -->
|
||||
<div class="tab-pane active" id="twitch_modules">
|
||||
<table id="twitchModuleTable" class="table table-bordered table-hover"></table>
|
||||
</div>
|
||||
|
||||
<!-- Discord Modules -->
|
||||
<div class="tab-pane" id="discord_modules">
|
||||
<table id="discordModuleTable" class="table table-bordered table-hover"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- moduleList -->
|
||||
<script src="/panel/js/pages/settings/moduleList.js"></script>
|
||||
</main>
|
||||
Reference in New Issue
Block a user