initial
This commit is contained in:
parent
fb4273416f
commit
a609c4d61c
@ -76,7 +76,7 @@ class ChannelReward_Workout_Pushups(AbstractChannelRewards, metaclass=ABCMeta):
|
||||
pass
|
||||
|
||||
def get_Phrase(self, defaultRewardPrompt,
|
||||
phrases = [""]):
|
||||
phrases = [" demands that The Curious Nerd, to do 20 pushups "]):
|
||||
|
||||
phrases.append(defaultRewardPrompt)
|
||||
totalPhrases = len(phrases) - 1
|
||||
|
||||
@ -76,7 +76,7 @@ class ChannelReward_Workout_Situps(AbstractChannelRewards, metaclass=ABCMeta):
|
||||
pass
|
||||
|
||||
def get_Phrase(self, defaultRewardPrompt,
|
||||
phrases = [""]):
|
||||
phrases = [" demands that The Curious Nerd, to do 20 sit-ups "]):
|
||||
|
||||
phrases.append(defaultRewardPrompt)
|
||||
totalPhrases = len(phrases) - 1
|
||||
|
||||
@ -76,7 +76,7 @@ class ChannelReward_Workout_Squats(AbstractChannelRewards, metaclass=ABCMeta):
|
||||
pass
|
||||
|
||||
def get_Phrase(self, defaultRewardPrompt,
|
||||
phrases = [""]):
|
||||
phrases = [" demands that The Curious Nerd, to do 20 squats "]):
|
||||
|
||||
phrases.append(defaultRewardPrompt)
|
||||
totalPhrases = len(phrases) - 1
|
||||
|
||||
49
standalone_user_client.py
Normal file
49
standalone_user_client.py
Normal file
@ -0,0 +1,49 @@
|
||||
from enum import Enum
|
||||
from os import F_OK
|
||||
import tempText_Module
|
||||
import time
|
||||
import config as config
|
||||
|
||||
import flask
|
||||
from flask import Flask, request, after_this_request
|
||||
|
||||
import credentials
|
||||
|
||||
import commands.loader as command_loader
|
||||
from commands.command_base import AbstractCommand
|
||||
|
||||
from cooldowns import Cooldown_Module
|
||||
|
||||
import utilities_script as utility
|
||||
|
||||
import chyron_module
|
||||
import timers_module
|
||||
|
||||
import random
|
||||
|
||||
import os
|
||||
import praxis_logging
|
||||
praxis_logger_obj = praxis_logging.praxis_logger()
|
||||
praxis_logger_obj.init(os.path.basename(__file__))
|
||||
praxis_logger_obj.log("\n -Starting Logs: " + os.path.basename(__file__))
|
||||
|
||||
api:Flask = Flask(__name__)
|
||||
api.config["DEBUG"] = True
|
||||
|
||||
|
||||
def init():
|
||||
print("starting up... ",)
|
||||
|
||||
|
||||
@api.route('/')
|
||||
def textSource_test():
|
||||
@after_this_request
|
||||
def add_header(response):
|
||||
response.headers.add('Access-Control-Allow-Origin', '*')
|
||||
return response
|
||||
return flask.make_response('Client Service: OK', 200)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
init()
|
||||
api.run(host="0.0.0.0", port = 5500)
|
||||
21
user_client/v1/MaterializeCSS INFO/LICENSE
Normal file
21
user_client/v1/MaterializeCSS INFO/LICENSE
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014-2017 Materialize
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
90
user_client/v1/MaterializeCSS INFO/README.md
Normal file
90
user_client/v1/MaterializeCSS INFO/README.md
Normal file
@ -0,0 +1,90 @@
|
||||
<p align="center">
|
||||
<a href="http://materializecss.com/">
|
||||
<img src="http://materializecss.com/res/materialize.svg" width="150">
|
||||
</a>
|
||||
|
||||
<h3 align="center">MaterializeCSS</h3>
|
||||
|
||||
<p align="center">
|
||||
Materialize, a CSS Framework based on material design.
|
||||
<br>
|
||||
<a href="http://materializecss.com/"><strong>-- Browse the docs --</strong></a>
|
||||
<br>
|
||||
<br>
|
||||
<a href="https://travis-ci.org/Dogfalo/materialize">
|
||||
<img src="https://travis-ci.org/Dogfalo/materialize.svg?branch=master" alt="Travis CI badge">
|
||||
</a>
|
||||
<a href="https://badge.fury.io/js/materialize-css">
|
||||
<img src="https://badge.fury.io/js/materialize-css.svg" alt="npm version badge">
|
||||
</a>
|
||||
<a href="https://cdnjs.com/libraries/materialize">
|
||||
<img src="https://img.shields.io/cdnjs/v/materialize.svg" alt="CDNJS version badge">
|
||||
</a>
|
||||
<a href="https://david-dm.org/Dogfalo/materialize">
|
||||
<img src="https://david-dm.org/Dogfalo/materialize/status.svg" alt="dependencies Status badge">
|
||||
</a>
|
||||
<a href="https://david-dm.org/Dogfalo/materialize#info=devDependencies">
|
||||
<img src="https://david-dm.org/Dogfalo/materialize/dev-status.svg" alt="devDependency Status badge">
|
||||
</a>
|
||||
<a href="https://gitter.im/Dogfalo/materialize">
|
||||
<img src="https://badges.gitter.im/Join%20Chat.svg" alt="Gitter badge">
|
||||
</a>
|
||||
</p>
|
||||
|
||||
## Table of Contents
|
||||
- [Quickstart](#quickstart)
|
||||
- [Documentation](#documentation)
|
||||
- [Supported Browsers](#supported-browsers)
|
||||
- [Changelog](#changelog)
|
||||
- [Testing](#testing)
|
||||
- [Contributing](#contributing)
|
||||
- [Copyright and license](#copyright-and-license)
|
||||
|
||||
## Quickstart:
|
||||
Read the [getting started guide](http://materializecss.com/getting-started.html) for more information on how to use materialize.
|
||||
|
||||
- [Download the latest release](https://github.com/Dogfalo/materialize/releases/latest) of materialize directly from GitHub.
|
||||
- Clone the repo: `git clone https://github.com/Dogfalo/materialize.git`
|
||||
- Include the files via [cdnjs](https://cdnjs.com/libraries/materialize). More [here](http://materializecss.com/getting-started.html).
|
||||
- Install with [npm](https://www.npmjs.com): `npm install materialize-css`
|
||||
- Install with [Bower](https://bower.io): `bower install materialize`
|
||||
- Install with [Atmosphere](https://atmospherejs.com): `meteor add materialize:materialize`
|
||||
|
||||
## Documentation
|
||||
The documentation can be found at <http://materializecss.com>. To run the documentation locally on your machine, you need [Node.js](https://nodejs.org/en/) installed on your computer.
|
||||
|
||||
### Running documentation locally
|
||||
Run these commands to set up the documentation:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/Dogfalo/materialize
|
||||
cd materialize
|
||||
npm install
|
||||
```
|
||||
|
||||
Then run `grunt monitor` to compile the documentation. When it finishes, open a new browser window and navigate to `localhost:8000`. We use [BrowserSync](https://www.browsersync.io/) to display the documentation.
|
||||
|
||||
### Documentation for previous releases
|
||||
Previous releases and their documentation are available for [download](https://github.com/Dogfalo/materialize/releases).
|
||||
|
||||
## Supported Browsers:
|
||||
Materialize is compatible with:
|
||||
|
||||
- Chrome 35+
|
||||
- Firefox 31+
|
||||
- Safari 7+
|
||||
- Opera
|
||||
- Edge
|
||||
- IE 10+
|
||||
|
||||
## Changelog
|
||||
For changelogs, check out [the Releases section of materialize](https://github.com/Dogfalo/materialize/releases) or the [CHANGELOG.md](CHANGELOG.md).
|
||||
|
||||
## Testing
|
||||
We use Jasmine as our testing framework and we're trying to write a robust test suite for our components. If you want to help, [here's a starting guide on how to write tests in Jasmine](CONTRIBUTING.md#jasmine-testing-guide).
|
||||
|
||||
## Contributing
|
||||
Check out the [CONTRIBUTING document](CONTRIBUTING.md) in the root of the repository to learn how you can contribute. You can also browse the [help-wanted](https://github.com/Dogfalo/materialize/labels/help-wanted) tag in our issue tracker to find things to do.
|
||||
|
||||
## Copyright and license
|
||||
Code copyright 2017 Materialize. Code released under the MIT license.
|
||||
9389
user_client/v1/css/materialize.css
vendored
Normal file
9389
user_client/v1/css/materialize.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
16
user_client/v1/css/materialize.min.css
vendored
Normal file
16
user_client/v1/css/materialize.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
202
user_client/v1/fonts/roboto/LICENSE.txt
Normal file
202
user_client/v1/fonts/roboto/LICENSE.txt
Normal file
@ -0,0 +1,202 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
BIN
user_client/v1/fonts/roboto/Roboto-Black.ttf
Normal file
BIN
user_client/v1/fonts/roboto/Roboto-Black.ttf
Normal file
Binary file not shown.
BIN
user_client/v1/fonts/roboto/Roboto-BlackItalic.ttf
Normal file
BIN
user_client/v1/fonts/roboto/Roboto-BlackItalic.ttf
Normal file
Binary file not shown.
BIN
user_client/v1/fonts/roboto/Roboto-Bold.ttf
Normal file
BIN
user_client/v1/fonts/roboto/Roboto-Bold.ttf
Normal file
Binary file not shown.
BIN
user_client/v1/fonts/roboto/Roboto-Bold.woff
Normal file
BIN
user_client/v1/fonts/roboto/Roboto-Bold.woff
Normal file
Binary file not shown.
BIN
user_client/v1/fonts/roboto/Roboto-Bold.woff2
Normal file
BIN
user_client/v1/fonts/roboto/Roboto-Bold.woff2
Normal file
Binary file not shown.
BIN
user_client/v1/fonts/roboto/Roboto-BoldItalic.ttf
Normal file
BIN
user_client/v1/fonts/roboto/Roboto-BoldItalic.ttf
Normal file
Binary file not shown.
BIN
user_client/v1/fonts/roboto/Roboto-Italic.ttf
Normal file
BIN
user_client/v1/fonts/roboto/Roboto-Italic.ttf
Normal file
Binary file not shown.
BIN
user_client/v1/fonts/roboto/Roboto-Light.ttf
Normal file
BIN
user_client/v1/fonts/roboto/Roboto-Light.ttf
Normal file
Binary file not shown.
BIN
user_client/v1/fonts/roboto/Roboto-Light.woff
Normal file
BIN
user_client/v1/fonts/roboto/Roboto-Light.woff
Normal file
Binary file not shown.
BIN
user_client/v1/fonts/roboto/Roboto-Light.woff2
Normal file
BIN
user_client/v1/fonts/roboto/Roboto-Light.woff2
Normal file
Binary file not shown.
BIN
user_client/v1/fonts/roboto/Roboto-LightItalic.ttf
Normal file
BIN
user_client/v1/fonts/roboto/Roboto-LightItalic.ttf
Normal file
Binary file not shown.
BIN
user_client/v1/fonts/roboto/Roboto-Medium.ttf
Normal file
BIN
user_client/v1/fonts/roboto/Roboto-Medium.ttf
Normal file
Binary file not shown.
BIN
user_client/v1/fonts/roboto/Roboto-Medium.woff
Normal file
BIN
user_client/v1/fonts/roboto/Roboto-Medium.woff
Normal file
Binary file not shown.
BIN
user_client/v1/fonts/roboto/Roboto-Medium.woff2
Normal file
BIN
user_client/v1/fonts/roboto/Roboto-Medium.woff2
Normal file
Binary file not shown.
BIN
user_client/v1/fonts/roboto/Roboto-MediumItalic.ttf
Normal file
BIN
user_client/v1/fonts/roboto/Roboto-MediumItalic.ttf
Normal file
Binary file not shown.
BIN
user_client/v1/fonts/roboto/Roboto-Regular.ttf
Normal file
BIN
user_client/v1/fonts/roboto/Roboto-Regular.ttf
Normal file
Binary file not shown.
BIN
user_client/v1/fonts/roboto/Roboto-Regular.woff
Normal file
BIN
user_client/v1/fonts/roboto/Roboto-Regular.woff
Normal file
Binary file not shown.
BIN
user_client/v1/fonts/roboto/Roboto-Regular.woff2
Normal file
BIN
user_client/v1/fonts/roboto/Roboto-Regular.woff2
Normal file
Binary file not shown.
BIN
user_client/v1/fonts/roboto/Roboto-Thin.ttf
Normal file
BIN
user_client/v1/fonts/roboto/Roboto-Thin.ttf
Normal file
Binary file not shown.
BIN
user_client/v1/fonts/roboto/Roboto-Thin.woff
Normal file
BIN
user_client/v1/fonts/roboto/Roboto-Thin.woff
Normal file
Binary file not shown.
BIN
user_client/v1/fonts/roboto/Roboto-Thin.woff2
Normal file
BIN
user_client/v1/fonts/roboto/Roboto-Thin.woff2
Normal file
Binary file not shown.
BIN
user_client/v1/fonts/roboto/Roboto-ThinItalic.ttf
Normal file
BIN
user_client/v1/fonts/roboto/Roboto-ThinItalic.ttf
Normal file
Binary file not shown.
241
user_client/v1/index.html
Normal file
241
user_client/v1/index.html
Normal file
@ -0,0 +1,241 @@
|
||||
<html lang="en-us">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Praxis Bot Control Panel</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
|
||||
<!--Import Google Icon Font-->
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||
<!--Import materialize.css-->
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||
<link type="text/css" rel="stylesheet" href="css/materialize.css" media="screen,projection"/>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="sticky ontop">
|
||||
<div id="header">
|
||||
<div class="" style="display:flex;">
|
||||
<div class="headerItem left"><p class="headerText">Home</p></div>
|
||||
</div>
|
||||
<div class="" style="display:flex;">
|
||||
<div class="headerItem"><p class="headerText">Settings</p></div>
|
||||
<div class="headerItem"><p class="headerText">About</p></div>
|
||||
</div>
|
||||
<div style="position: absolute;right: 10;" onclick="myFunction()"><p id="BotStatus" class="card noselect" style="padding-left: 3px;padding-right: 3px;">Bot Status: ??</p></div>
|
||||
</div>
|
||||
<!--<a class="btn-floating btn-large waves-effect waves-light red right hide-on-small-and-down" ><i class="material-icons">add</i></a>-->
|
||||
</div>
|
||||
|
||||
|
||||
<div id=bodyarea class="row" style="">
|
||||
<div id="sidebar_area" class="col s12 m3 hide-on-small-and-down" style="position: fixed;">
|
||||
<div class="row" style="padding-left: 3px;" style="">
|
||||
<div class="s12 card waves-effect waves-light btn-large colsInSideBar" style="background-color: #42A5F5;">
|
||||
<i class="material-icons">menu</i>
|
||||
</div>
|
||||
<div class="lineSeperator"></div>
|
||||
<div class="s12 card waves-effect waves-light btn-large colsInSideBar" style="background-color: #42A5F5;">
|
||||
<p>Chyron</p>
|
||||
</div>
|
||||
<div class="s12 card waves-effect waves-light btn-large colsInSideBar" style="background-color: #42A5F5;">
|
||||
<p>Commands</p>
|
||||
</div>
|
||||
<div class="s12 card colsInSideBar waves-effect waves-light btn-large" style="background-color: #42A5F5;">
|
||||
<p>Rewards</p>
|
||||
</div>
|
||||
<div class="s12 card colsInSideBar waves-effect waves-light btn-large" style="background-color: #42A5F5;">
|
||||
<p>Timers</p>
|
||||
</div>
|
||||
<div class="s12 card colsInSideBar waves-effect waves-light btn-large" style="background-color: #42A5F5;">
|
||||
<p>Text Sources</p>
|
||||
</div>
|
||||
<div class="lineSeperator"></div>
|
||||
<div class="s12 card colsInSideBar waves-effect waves-light btn-large" style="background-color: #42A5F5;">
|
||||
<p>Event History</p>
|
||||
</div>
|
||||
<div class="s12 card colsInSideBar waves-effect waves-light btn-large" style="background-color: #42A5F5;">
|
||||
<p>Modules</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="main_area" class="col s12 m9 right">
|
||||
|
||||
<div class="rowsInMain center card">
|
||||
<a class="btn-floating btn-large waves-effect waves-light red right hide-on-small-and-down" style="margin-right: 10px;">
|
||||
<i class="material-icons">add</i>
|
||||
</a><h3>Chyron:</h3></div>
|
||||
<div class="rowsInMain row card" style="margin-right: 20px;margin-left: 20px;margin-top: 30px;margin-bottom: 30px;">
|
||||
<div class="col s3"><p>Section Name:</p></div>
|
||||
<div class="col s3"><p>Title:</p></div>
|
||||
<div class="col s3"><p>Content:</p></div>
|
||||
<div class="col s1 right"><p>O</p></div>
|
||||
</div>
|
||||
<div class="rowsInMain center card">
|
||||
<a class="btn-floating btn-large waves-effect waves-light red right hide-on-small-and-down" style="margin-right: 10px;">
|
||||
<i class="material-icons">add</i>
|
||||
</a><h3>Commands:</h3></div>
|
||||
<div class="rowsInMain row card" style="margin-right: 20px;margin-left: 20px;margin-top: 30px;margin-bottom: 30px;">
|
||||
<div class="col s3"><p>Cmd Name:</p></div>
|
||||
<div class="col s3"><p>Trigger:</p></div>
|
||||
<div class="col s3"><p>Responses:</p></div>
|
||||
<div class="col s1 right"><p>O</p></div>
|
||||
</div>
|
||||
<div class="rowsInMain center card">
|
||||
<a class="btn-floating btn-large waves-effect waves-light red right hide-on-small-and-down" style="margin-right: 10px;">
|
||||
<i class="material-icons">add</i>
|
||||
</a><h3>Rewards:</h3></div>
|
||||
<div class="rowsInMain row card" style="margin-right: 20px;margin-left: 20px;margin-top: 30px;margin-bottom: 30px;">
|
||||
<div class="col s3"><p>Rwd Name:</p></div>
|
||||
<div class="col s3"><p>Trigger:</p></div>
|
||||
<div class="col s3"><p>Responses:</p></div>
|
||||
<div class="col s1 right"><p>O</p></div>
|
||||
</div>
|
||||
<div class="rowsInMain center card">
|
||||
<a class="btn-floating btn-large waves-effect waves-light red right hide-on-small-and-down" style="margin-right: 10px;">
|
||||
<i class="material-icons">add</i>
|
||||
</a><h3>Timers:</h3></div>
|
||||
<div class="rowsInMain row card" style="margin-right: 20px;margin-left: 20px;margin-top: 30px;margin-bottom: 30px;">
|
||||
<div class="col s3"><p>Timer Name:</p></div>
|
||||
<div class="col s3"><p>Trigger:</p></div>
|
||||
<div class="col s3"><p>Trigger_EXEC:</p></div>
|
||||
<div class="col s1 right"><p>O</p></div>
|
||||
</div>
|
||||
<div class="rowsInMain center card">
|
||||
<a class="btn-floating btn-large waves-effect waves-light red right hide-on-small-and-down" style="margin-right: 10px;">
|
||||
<i class="material-icons">add</i>
|
||||
</a><h3>Text Sources:</h3></div>
|
||||
<div class="rowsInMain row card" style="margin-right: 20px;margin-left: 20px;margin-top: 30px;margin-bottom: 30px;">
|
||||
<div class="col s3"><p>Text Name:</p></div>
|
||||
<div class="col s3"><p>Title:</p></div>
|
||||
<div class="col s3"><p>Text:</p></div>
|
||||
<div class="col s1 right"><p>O</p></div>
|
||||
</div>
|
||||
<div class="rowsInMain center card">
|
||||
<a class="btn-floating btn-large waves-effect waves-light red right hide-on-small-and-down" style="margin-right: 10px;">
|
||||
<i class="material-icons">add</i>
|
||||
</a><h3>Event History:</h3></div>
|
||||
|
||||
<div class="" style="overflow-y: scroll; max-height: 60vh; background-color: cadetblue; margin-right: 20px;margin-left: 20px;margin-top: 30px;margin-bottom: 30px;">
|
||||
<div class="rowsInMain row card">
|
||||
<div class="col s3"><p>Event:</p></div>
|
||||
<div class="col s3"><p>User:</p></div>
|
||||
<div class="col s3"><p>Message:</p></div>
|
||||
<div class="col s1 right"><p>O</p></div>
|
||||
</div>
|
||||
<div class="rowsInMain row card">
|
||||
<div class="col s3"><p>Event:</p></div>
|
||||
<div class="col s3"><p>User:</p></div>
|
||||
<div class="col s3"><p>Message:</p></div>
|
||||
<div class="col s1 right"><p>O</p></div>
|
||||
</div>
|
||||
<div class="rowsInMain row card">
|
||||
<div class="col s3"><p>Event:</p></div>
|
||||
<div class="col s3"><p>User:</p></div>
|
||||
<div class="col s3"><p>Message:</p></div>
|
||||
<div class="col s1 right"><p>O</p></div>
|
||||
</div>
|
||||
<div class="rowsInMain row card">
|
||||
<div class="col s3"><p>Event:</p></div>
|
||||
<div class="col s3"><p>User:</p></div>
|
||||
<div class="col s3"><p>Message:</p></div>
|
||||
<div class="col s1 right"><p>O</p></div>
|
||||
</div>
|
||||
<div class="rowsInMain row card">
|
||||
<div class="col s3"><p>Event:</p></div>
|
||||
<div class="col s3"><p>User:</p></div>
|
||||
<div class="col s3"><p>Message:</p></div>
|
||||
<div class="col s1 right"><p>O</p></div>
|
||||
</div>
|
||||
<div class="rowsInMain row card">
|
||||
<div class="col s3"><p>Event:</p></div>
|
||||
<div class="col s3"><p>User:</p></div>
|
||||
<div class="col s3"><p>Message:</p></div>
|
||||
<div class="col s1 right"><p>O</p></div>
|
||||
</div>
|
||||
<div class="rowsInMain row card">
|
||||
<div class="col s3"><p>Event:</p></div>
|
||||
<div class="col s3"><p>User:</p></div>
|
||||
<div class="col s3"><p>Message:</p></div>
|
||||
<div class="col s1 right"><p>O</p></div>
|
||||
</div>
|
||||
<div class="rowsInMain row card">
|
||||
<div class="col s3"><p>Event:</p></div>
|
||||
<div class="col s3"><p>User:</p></div>
|
||||
<div class="col s3"><p>Message:</p></div>
|
||||
<div class="col s1 right"><p>O</p></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="rowsInMain center card"><h3>Modules:</h3></div>
|
||||
<div class="row">
|
||||
<div class="col s6 m3">
|
||||
<div class="card modulesCard">
|
||||
<div class="modulesCardWrap">
|
||||
<h6 style="padding-top: 15px;">Commands</h6>
|
||||
<a class="waves-effect waves-light btn modulesCardWrapButton">Enable</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col s6 m3">
|
||||
<div class="card modulesCard">
|
||||
<div class="modulesCardWrap">
|
||||
<h6 style="padding-top: 15px;">Rewards</h6>
|
||||
<a class="waves-effect waves-light btn modulesCardWrapButton">Enable</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col s6 m3">
|
||||
<div class="card modulesCard">
|
||||
<div class="modulesCardWrap">
|
||||
<h6 style="padding-top: 15px;">RGB Lights</h6>
|
||||
<a class="waves-effect waves-light btn modulesCardWrapButton">Enable</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col s6 m3">
|
||||
<div class="card modulesCard">
|
||||
<div class="modulesCardWrap">
|
||||
<h6 style="padding-top: 15px;">Text Sources</h6>
|
||||
<a class="waves-effect waves-light btn modulesCardWrapButton">Enable</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col s6 m3">
|
||||
<div class="card modulesCard">
|
||||
<div class="modulesCardWrap">
|
||||
<h6 style="padding-top: 15px;">TTS</h6>
|
||||
<a class="waves-effect waves-light btn modulesCardWrapButton">Enable</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col s6 m3">
|
||||
<div class="card modulesCard">
|
||||
<div class="modulesCardWrap">
|
||||
<h6 style="padding-top: 15px;">OBS Web Socket</h6>
|
||||
<a class="waves-effect waves-light btn modulesCardWrapButton">Enable</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
|
||||
<script src="js/materialize.js"></script>
|
||||
|
||||
<!-- Load React. -->
|
||||
<!-- Note: when deploying, replace "development.js" with "production.min.js". -->
|
||||
<!--<script src="https://unpkg.com/react@16/umd/react.development.js" crossorigin></script>-->
|
||||
<!--<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js" crossorigin></script>-->
|
||||
|
||||
|
||||
<script src="webclient.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
4
user_client/v1/index.js
Normal file
4
user_client/v1/index.js
Normal file
@ -0,0 +1,4 @@
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
var elems = document.querySelectorAll('.fixed-action-btn');
|
||||
var instances = M.FloatingActionButton.init(elems, options);
|
||||
});
|
||||
10021
user_client/v1/js/materialize.js
vendored
Normal file
10021
user_client/v1/js/materialize.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
6
user_client/v1/js/materialize.min.js
vendored
Normal file
6
user_client/v1/js/materialize.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
142
user_client/v1/style.css
Normal file
142
user_client/v1/style.css
Normal file
@ -0,0 +1,142 @@
|
||||
body {
|
||||
background-color: rgb(250, 250, 250);
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
div {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
p {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#header{
|
||||
background-color: cadetblue;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
#bodyarea{
|
||||
background-color: rgb(250, 250, 250);
|
||||
padding: 0;
|
||||
padding-top: 4em;
|
||||
margin: 0;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#sidebar_area{
|
||||
background-color: aquamarine;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
#main_area{
|
||||
background-color: rgb(195, 246, 255);
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
.lineSeperator{
|
||||
margin-top: 15px;
|
||||
margin-bottom: 15px;
|
||||
width: 100%;
|
||||
height: 5px;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.noPadding{
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.sticky {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
}
|
||||
.sticky_btm {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.ontop {
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.noselect {
|
||||
-webkit-touch-callout: none; /* iOS Safari */
|
||||
-webkit-user-select: none; /* Safari */
|
||||
-khtml-user-select: none; /* Konqueror HTML */
|
||||
-moz-user-select: none; /* Old versions of Firefox */
|
||||
-ms-user-select: none; /* Internet Explorer/Edge */
|
||||
user-select: none; /* Non-prefixed version, currently
|
||||
supported by Chrome, Edge, Opera and Firefox */
|
||||
}
|
||||
|
||||
.headerItem{
|
||||
padding: 1em;
|
||||
background-color: steelblue;
|
||||
}
|
||||
|
||||
.headerItem:hover{
|
||||
background-color: gray;
|
||||
}
|
||||
|
||||
.headerText{
|
||||
text-align: center;
|
||||
color: white;
|
||||
padding-left: 1em;
|
||||
padding-right: 1em;
|
||||
}
|
||||
|
||||
.colsInSideBar{
|
||||
min-width: 100%;
|
||||
}
|
||||
|
||||
.colsInSideBar:hover{
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
.modulesCard{
|
||||
min-height: 5em;
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
.modulesCardWrap{
|
||||
margin-left: 15px;
|
||||
min-height: 10em;
|
||||
}
|
||||
.modulesCardWrapButton{
|
||||
margin-top: 100px;
|
||||
}
|
||||
|
||||
.rowsInMain{
|
||||
padding-top: 30px;
|
||||
padding-bottom: 30px;
|
||||
}
|
||||
|
||||
/* width */
|
||||
::-webkit-scrollbar {
|
||||
width: 20px;
|
||||
}
|
||||
|
||||
/* Track */
|
||||
::-webkit-scrollbar-track {
|
||||
background: #f1f1f1;
|
||||
}
|
||||
|
||||
/* Handle */
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: rgb(105, 105, 105);
|
||||
}
|
||||
|
||||
/* Handle on hover */
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: rgb(49, 49, 49);
|
||||
}
|
||||
20
user_client/v1/webclient.js
Normal file
20
user_client/v1/webclient.js
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
refresh = () => response = fetch('http://127.0.0.1:5500/')
|
||||
.then((response) => {
|
||||
return response.text();
|
||||
})
|
||||
|
||||
ConnectionTest = async () => {
|
||||
var a = await refresh();
|
||||
//delete(response)
|
||||
console.log(a)
|
||||
document.getElementById("BotStatus").innerHTML = a;
|
||||
return a
|
||||
}
|
||||
|
||||
async function myFunction() {
|
||||
var connectionStatus = await ConnectionTest();
|
||||
document.getElementById("BotStatus").innerHTML = connectionStatus;
|
||||
}
|
||||
|
||||
myFunction();
|
||||
Loading…
Reference in New Issue
Block a user