diff --git a/app/classes/minecraft/serverjars.py b/app/classes/minecraft/serverjars.py new file mode 100644 index 00000000..4f4430df --- /dev/null +++ b/app/classes/minecraft/serverjars.py @@ -0,0 +1,210 @@ +import os +import sys +import json +import time +import logging +from datetime import datetime + +from app.classes.shared.helpers import helper +from app.classes.shared.console import console +from app.classes.shared.models import Servers +from app.classes.minecraft.server_props import ServerProps + +logger = logging.getLogger(__name__) + +try: + import requests + +except ModuleNotFoundError as e: + logger.critical("Import Error: Unable to load {} module".format(e, e.name)) + console.critical("Import Error: Unable to load {} module".format(e, e.name)) + sys.exit(1) + + +class ServerJars: + + def _get_api_result(self, call_url: str): + base_url = "https://serverjars.com" + full_url = "{base}{call_url}".format(base=base_url, call_url=call_url) + + r = requests.get(full_url, timeout=2) + + if r.status_code not in [200, 201]: + return {} + + try: + api_data = json.loads(r.content) + except Exception as e: + logger.error("Unable to parse serverjar.com api result due to error: {}".format(e)) + return {} + + api_result = api_data.get('status') + api_response = api_data.get('response', {}) + + if api_result != "success": + logger.error("Api returned a failed status: {}".format(api_result)) + return {} + + return api_response + + @staticmethod + def _read_cache(): + cache_file = helper.serverjar_cache + cache = {} + try: + with open(cache_file, "r") as f: + cache = json.load(f) + + except Exception as e: + logger.error("Unable to read serverjars.com cache file: {}".format(e)) + + return cache + + def get_serverjar_data(self): + data = self._read_cache() + return data.get('servers') + + @staticmethod + def _check_api_alive(): + logger.info("Checking serverjars.com API status") + + check_url = "https://serverjars.com/api/fetchTypes" + r = requests.get(check_url, timeout=2) + + if r.status_code in [200, 201]: + logger.info("Serverjars.com API is alive") + return True + + logger.error("unable to contact Serverjars.com api") + return False + + def refresh_cache(self): + + cache_file = helper.serverjar_cache + cache_old = helper.is_file_older_than_x_days(cache_file) + + # debug override + # cache_old = True + + # if the API is down... we bomb out + if not self._check_api_alive(): + return False + + logger.info("Checking Cache file age") + # if file is older than 1 day + + if cache_old: + logger.info("Cache file is over 1 day old, refreshing") + now = datetime.now() + data = { + 'last_refreshed': now.strftime("%m/%d/%Y, %H:%M:%S"), + 'servers': {} + } + + jar_types = self._get_server_type_list() + + # for each jar type + for j in jar_types: + + # for each server + for s in jar_types.get(j): + # jar versions for this server + versions = self._get_jar_details(s) + + # add these versions (a list) to the dict with a key of the server type + data['servers'].update({ + s: versions + }) + + # save our cache + try: + with open(cache_file, "w") as f: + f.write(json.dumps(data, indent=4)) + logger.info("Cache file refreshed") + + except Exception as e: + logger.error("Unable to update serverjars.com cache file: {}".format(e)) + + def _get_jar_details(self, jar_type='servers'): + url = '/api/fetchAll/{type}'.format(type=jar_type) + response = self._get_api_result(url) + temp = [] + for v in response: + temp.append(v.get('version')) + time.sleep(.5) + return temp + + def _get_server_type_list(self): + url = '/api/fetchTypes/' + response = self._get_api_result(url) + return response + + def download_jar(self, server, version, path): + base_url = "https://serverjars.com/api/fetchJar/{server}/{version}".format(server=server, version=version) + r = requests.get(base_url, timeout=2) + if r.status_code in [200, 201]: + + try: + with open(path, 'bw') as output: + output.write(r.content) + return True + except Exception as e: + logger.error("Unable to save jar to {path} due to error:{error}".format(path=path, error=e)) + pass + + logger.error("Got {} code from download, escaping".format(r.status_code)) + return False + + # todo: build server + def build_server(self, server: str, version: str, name: str, min_mem: int, max_mem: int, port: int): + server_id = helper.create_uuid() + server_dir = os.path.join(helper.servers_dir, server_id) + jar_file = "{server}-{version}.jar".format(server=server, version=version) + full_jar_path = os.path.join(server_dir, jar_file) + + # make the dir - perhaps a UUID? + helper.ensure_dir_exists(server_dir) + + # download the jar + self.download_jar(server, version, full_jar_path) + + # todo: verify the MD5 + + # put data in the db + Servers.insert({ + Servers.server_name: name, + Servers.server_uuid: server_id, + Servers.path: server_dir, + Servers.executable: jar_file, + Servers.execution_command: 'java -Xms{}G -Xmx{}G -jar /var/opt/minecraft/server/paperclip.jar nogui'.format(min_mem, max_mem), + Servers.auto_start: False, + Servers.auto_start_delay: 10, + Servers.crash_detection: False, + Servers.log_path:"{}/logs/latest.log".format(server_dir), + Servers.stop_command:'stop' + }).execute() + + + try: + # place a file in the dir saying it's owned by crafty + with open(os.path.join(server_dir, "crafty_managed.txt"), 'w') as f: + f.write("The server in this directory is managed by Crafty Controller.\n Leave this file alone please") + f.close() + + # do a eula.txt + with open(os.path.join(server_dir, "eula.txt"), 'w') as f: + f.write("eula=true") + f.close() + + # setup server.properties with the port + with open(os.path.join(server_dir, "server.properties"), "w") as f: + f.write("server_port={}".format(port)) + f.close() + + except Exception as e: + logger.error("Unable to create required server files due to :{}".format(e)) + return False + + return True + +server_jar_obj = ServerJars() diff --git a/app/classes/shared/helpers.py b/app/classes/shared/helpers.py index cf38e645..afa91c06 100644 --- a/app/classes/shared/helpers.py +++ b/app/classes/shared/helpers.py @@ -1,6 +1,7 @@ import os import sys import json +import time import uuid import string import base64 @@ -29,13 +30,28 @@ class Helpers: def __init__(self): self.root_dir = os.path.abspath(os.path.curdir) self.config_dir = os.path.join(self.root_dir, 'app', 'config') + self.webroot = os.path.join(self.root_dir, 'app', 'frontend') + self.servers_dir = os.path.join(self.root_dir, 'servers') + self.session_file = os.path.join(self.root_dir, 'session.lock') self.settings_file = os.path.join(self.root_dir, 'config.ini') - self.webroot = os.path.join(self.root_dir, 'app', 'frontend') + self.db_path = os.path.join(self.root_dir, 'crafty.sqlite') + self.serverjar_cache = os.path.join(self.config_dir, 'serverjars.json') self.passhasher = PasswordHasher() self.exiting = False + def is_file_older_than_x_days(self, file, days=1): + if self.check_file_exists(file): + file_time = os.path.getmtime(file) + # Check against 24 hours + if (time.time() - file_time) / 3600 > 24 * days: + return True + else: + return False + logger.error("{} does not exits".format(file)) + return False + def get_setting(self, section, key): try: @@ -254,8 +270,7 @@ class Helpers: return b64_bytes.decode("utf-8") def create_uuid(self): - id = str(uuid.uuid4()) - return self.base64_encode_string(id).replace("\n", '') + return str(uuid.uuid4()) def ensure_dir_exists(self, path): """ diff --git a/app/classes/shared/models.py b/app/classes/shared/models.py index 9f424370..fd5b3d30 100644 --- a/app/classes/shared/models.py +++ b/app/classes/shared/models.py @@ -63,6 +63,7 @@ class Host_Stats(BaseModel): class Servers(BaseModel): server_id = AutoField() created = DateTimeField(default=datetime.datetime.now) + server_uuid = CharField(default="") server_name = CharField(default="Server") path = CharField(default="") executable = CharField(default="") @@ -139,9 +140,14 @@ class db_shortcuts: def return_rows(self, query): rows = [] - if query: - for s in query: - rows.append(model_to_dict(s)) + try: + if query.count() > 0: + for s in query: + rows.append(model_to_dict(s)) + except Exception as e: + logger.warning("Database Error: {}".format(e)) + pass + return rows def get_all_defined_servers(self): @@ -154,4 +160,4 @@ class db_shortcuts: installer = db_builder() -db_helper = db_shortcuts() \ No newline at end of file +db_helper = db_shortcuts() diff --git a/app/classes/shared/tasks.py b/app/classes/shared/tasks.py index 1567d2bb..9ca7310d 100644 --- a/app/classes/shared/tasks.py +++ b/app/classes/shared/tasks.py @@ -11,6 +11,7 @@ from app.classes.web.tornado import webserver from app.classes.minecraft import server_props from app.classes.minecraft.stats import stats from app.classes.minecraft.controller import controller +from app.classes.minecraft.serverjars import server_jar_obj logger = logging.getLogger(__name__) @@ -90,5 +91,13 @@ class TasksManager: console.info("Stats collection frequency set to {stats} seconds".format(stats=stats_update_frequency)) schedule.every(stats_update_frequency).seconds.do(stats.record_stats) + @staticmethod + def serverjar_cache_refresher(): + logger.info("Refreshing serverjars.com cache on start") + server_jar_obj.refresh_cache() + + logger.info("Scheduling Serverjars.com cache refresh service every 12 hours") + schedule.every(12).hours.do(server_jar_obj.refresh_cache) + tasks_manager = TasksManager() diff --git a/app/classes/web/default_handler.py b/app/classes/web/default_handler.py index 5cc0b69c..96d4577b 100644 --- a/app/classes/web/default_handler.py +++ b/app/classes/web/default_handler.py @@ -8,7 +8,11 @@ logger = logging.getLogger(__name__) class DefaultHandler(BaseHandler): # Override prepare() instead of get() to cover all possible HTTP methods. - def prepare(self): - self.set_status(404) - self.render("public/404.html") + def prepare(self, page=None): + print(page) + if page is not None: + self.set_status(404) + self.render("public/404.html") + else: + self.redirect("/public/login") diff --git a/app/classes/web/public_handler.py b/app/classes/web/public_handler.py index 4c5b2ab3..7681deb2 100644 --- a/app/classes/web/public_handler.py +++ b/app/classes/web/public_handler.py @@ -40,27 +40,28 @@ class PublicHandler(BaseHandler): self.clear_cookie("user") self.clear_cookie("user_data") + error = bleach.clean(self.get_argument('error', "Invalid Login!")) + page_data = { - 'version': helper.get_version_string() + 'version': helper.get_version_string(), + 'error': error } - error = bleach.clean(self.get_argument('error', "")) - - if error: - error_msg = "Invalid Login!" - else: - error_msg = "" - # sensible defaults template = "public/404.html" if page == "login": template = "public/login.html" - page_data['error'] = error_msg + + elif page == 404: + template = "public/404.html" + + elif page == "error": + template = "public/error.html" # if we have no page, let's go to login else: - template = "public/404.html" + self.redirect('/public/login') self.render(template, data=page_data) diff --git a/app/classes/web/server_handler.py b/app/classes/web/server_handler.py index 91409210..4177aa4b 100644 --- a/app/classes/web/server_handler.py +++ b/app/classes/web/server_handler.py @@ -1,18 +1,26 @@ +import sys import json import logging -import tornado.web -import tornado.escape -import bleach from app.classes.shared.console import console -from app.classes.shared.models import Users, installer from app.classes.web.base_handler import BaseHandler from app.classes.minecraft.controller import controller -from app.classes.shared.models import db_helper +from app.classes.shared.models import db_helper, Servers +from app.classes.minecraft.serverjars import server_jar_obj logger = logging.getLogger(__name__) +try: + import tornado.web + import tornado.escape + import bleach + +except ModuleNotFoundError as e: + logger.critical("Import Error: Unable to load {} module".format(e, e.name)) + console.critical("Import Error: Unable to load {} module".format(e, e.name)) + sys.exit(1) + class ServerHandler(BaseHandler): @@ -35,10 +43,44 @@ class ServerHandler(BaseHandler): 'hosts_data': db_helper.get_latest_hosts_stats() } - # print(page_data['hosts_data']) + + if page == "step1": + + page_data['server_types'] = server_jar_obj.get_serverjar_data() + template = "server/wizard.html" + + self.render( + template, + data=page_data + ) + + @tornado.web.authenticated + def post(self, page): + + user_data = json.loads(self.get_secure_cookie("user_data")) + + template = "public/404.html" + page_data = { + 'version_data': "version_data_here", + 'user_data': user_data, + } print(page) + if page == "step1": + + server = bleach.clean(self.get_argument('server', '')) + server_name = bleach.clean(self.get_argument('server_name', '')) + min_mem = bleach.clean(self.get_argument('min_memory', '')) + max_mem = bleach.clean(self.get_argument('max_memory', '')) + port = bleach.clean(self.get_argument('port', '')) + + server_parts = server.split("|") + + success = server_jar_obj.build_server(server_parts[0], server_parts[1],server_name,min_mem, max_mem, port) + if success: + self.redirect("/panel/dashboard") + self.render( template, diff --git a/app/config/logging.json b/app/config/logging.json index 927049a1..cee15042 100644 --- a/app/config/logging.json +++ b/app/config/logging.json @@ -3,7 +3,10 @@ "disable_existing_loggers": false, "formatters": { "commander": { - "format": "%(asctime)s - [Commander] - %(levelname)-8s - %(name)s - %(message)s" + "format": "%(asctime)s - [Crafty] - %(levelname)-8s - %(name)s - %(message)s" + }, + "tornado_access": { + "format": "%(asctime)s - [Tornado] - [Access] - %(levelname)s - %(message)s" } }, @@ -28,6 +31,14 @@ "filename": "logs/session.log", "backupCount": 0, "encoding": "utf8" + }, + "tornado_access_file_handler": { + "class": "logging.handlers.RotatingFileHandler", + "formatter": "tornado_access", + "filename": "logs/tornado-access.log", + "maxBytes": 10485760, + "backupCount": 20, + "encoding": "utf8" } }, @@ -36,6 +47,11 @@ "level": "INFO", "handlers": ["main_file_handler", "session_file_handler"], "propagate": false + }, + "tornado.access": { + "level": "INFO", + "handlers": ["tornado_access_file_handler"], + "propagate": false } } } diff --git a/app/config/serverjars.json b/app/config/serverjars.json new file mode 100644 index 00000000..ce9c20fb --- /dev/null +++ b/app/config/serverjars.json @@ -0,0 +1,344 @@ +{ + "last_refreshed": "08/23/2020, 17:45:25", + "servers": { + "nukkitx": [ + "1.14" + ], + "pocketmine": [ + "1.14", + "1.13", + "1.12", + "1.11", + "1.10", + "1.9", + "1.8", + "1.7", + "1.6", + "1.5", + "1.4" + ], + "magma": [ + "1.12.2" + ], + "mohist": [ + "1.12.2" + ], + "travertine": [ + "1.16", + "1.15", + "1.14", + "1.13", + "1.12", + "1.11", + "1.10", + "1.9", + "1.8", + "1.7" + ], + "bungeecord": [ + "1.16", + "1.15", + "1.14", + "1.13", + "1.12", + "1.11", + "1.10", + "1.9", + "1.8" + ], + "velocity": [ + "1.15", + "1.14", + "1.13", + "1.12", + "1.11", + "1.10", + "1.9", + "1.8" + ], + "waterfall": [ + "1.16", + "1.15", + "1.14", + "1.13", + "1.12", + "1.11", + "1.10", + "1.9", + "1.8" + ], + "bukkit": [ + "1.16.2", + "1.16.1", + "1.15.2", + "1.15.1", + "1.15", + "1.14.4", + "1.14.3", + "1.14.2", + "1.14.1", + "1.14", + "1.13.2", + "1.13.1", + "1.13", + "1.12.2", + "1.12.1", + "1.12", + "1.11.2", + "1.11.1", + "1.11", + "1.10.2", + "1.10", + "1.9.4", + "1.9.2", + "1.9", + "1.8.8", + "1.8" + ], + "paper": [ + "1.16.1", + "1.15.2", + "1.15.1", + "1.15", + "1.14.4", + "1.14.3", + "1.14.2", + "1.14.1", + "1.14", + "1.13.2", + "1.13.1", + "1.13", + "1.12.2", + "1.12.1", + "1.12", + "1.11.2", + "1.10.2", + "1.9.4", + "1.8.8" + ], + "spigot": [ + "1.16.2", + "1.16.1", + "1.15.2", + "1.15.1", + "1.15", + "1.14.4", + "1.14.3", + "1.14.2", + "1.14.1", + "1.14", + "1.13.2", + "1.13.1", + "1.13", + "1.12.2", + "1.12.1", + "1.12", + "1.11.2", + "1.11.1", + "1.11", + "1.10.2", + "1.10", + "1.9.4", + "1.9.2", + "1.9", + "1.8.8" + ], + "snapshot": [ + "1.16pre8", + "1.16pre7", + "1.16pre6", + "1.16pre5", + "1.16pre4", + "1.16pre3", + "1.16pre2", + "1.16pre1", + "1.1620w30a", + "1.1620w29a", + "1.1620w28a", + "1.1620w27a", + "1.1620w22a", + "1.1620w21a", + "1.1620w20b", + "1.1620w20a", + "1.1620w19a", + "1.1620w18a", + "1.1620w17a", + "1.1620w16a", + "1.1620w15a", + "1.1620w14a", + "1.1620w14infinite", + "1.1620w13b", + "1.1620w13a", + "1.1620w12a", + "1.16rc1", + "1.1620w11a", + "1.1620w10a", + "1.1620w09a", + "1.1620w08a", + "1.1620w07a", + "1.16.2rc2", + "1.16.2rc1", + "1.1620w06a", + "1.16.2pre3", + "1.16.2pre2", + "1.16.2pre1", + "1.16.2", + "1.161.16.1", + "1.16.1", + "1.16", + "1.15pre7", + "1.15pre6", + "1.15pre5", + "1.15pre4", + "1.15pre3", + "1.15pre2", + "1.15pre1", + "1.1519w46b", + "1.1519w46a", + "1.1519w45b", + "1.1519w45a", + "1.1519w44a", + "1.1519w42a", + "1.1519w41a", + "1.1519w40a", + "1.1519w39a", + "1.1519w38b", + "1.1519w38a", + "1.1519w37a", + "1.1519w36a", + "1.1519w35a", + "1.1519w34a", + "1.15.2pre2", + "1.15.2pre1", + "1.15.1pre1", + "1.14pre5", + "1.14pre4", + "1.14pre3", + "1.14pre2", + "1.14pre1", + "1.1419w14b", + "1.1419w14a", + "1.1419w13b", + "1.1419w13a", + "1.1419w12b", + "1.1419w12a", + "1.1419w11b", + "1.1419w11a", + "1.1419w09a", + "1.1419w08b", + "1.1419w08a", + "1.1419w07a", + "1.1419w06a", + "1.1419w05a", + "1.1419w04b", + "1.1419w04a", + "1.1419w03b", + "1.1419w03a", + "1.1419w03c", + "1.1419w02a", + "1.1418w50a", + "1.1418w49a", + "1.1418w48b", + "1.1418w48a", + "1.1418w47b", + "1.1418w47a", + "1.1418w46a", + "1.1418w45a", + "1.1418w44a", + "1.1418w43b", + "1.1418w43a", + "1.1418w43c", + "1.14.4pre7", + "1.14.4pre6", + "1.14.4pre5", + "1.14.4pre4", + "1.14.4pre3", + "1.14.4pre2", + "1.14.4pre1", + "1.14.3pre4", + "1.14.3pre3", + "1.14.3pre2", + "1.14.3pre1", + "1.14.2pre4", + "1.14.2pre3", + "1.14.2pre2", + "1.14.2pre1", + "1.14.1pre2", + "1.14.1pre1" + ], + "vanilla": [ + "1.16.2", + "1.16.1", + "1.16", + "1.15.2", + "1.15.1", + "1.15", + "1.14.4", + "1.14.3", + "1.14.2", + "1.14.1", + "1.14", + "1.13.2", + "1.13.1", + "1.13", + "1.12.2", + "1.12.1", + "1.12", + "1.11.2", + "1.11.1", + "1.11", + "1.10.2", + "1.10.1", + "1.10", + "1.9.4", + "1.9.3", + "1.9.2", + "1.9.1", + "1.9", + "1.8.8", + "1.8.7", + "1.8.6", + "1.8.5", + "1.8.4", + "1.8.3", + "1.8.2", + "1.8.1", + "1.8", + "1.7.10", + "1.7.9", + "1.7.8", + "1.7.7", + "1.7.6", + "1.7.5", + "1.7.4", + "1.7.3", + "1.7.2", + "1.7.1", + "1.7", + "1.6.4", + "1.6.3", + "1.6.2", + "1.6.1", + "1.6", + "1.5.2", + "1.5.1", + "1.5", + "1.4.7", + "1.4.6", + "1.4.5", + "1.4.4", + "1.4.3", + "1.4.2", + "1.4.1", + "1.4", + "1.3.2", + "1.3.1", + "1.3", + "1.2.5", + "1.2.4", + "1.2.3", + "1.2.2", + "1.2.1" + ] + } +} \ No newline at end of file diff --git a/app/frontend/static/assets/css/crafty.css b/app/frontend/static/assets/css/crafty.css new file mode 100644 index 00000000..eee75e41 --- /dev/null +++ b/app/frontend/static/assets/css/crafty.css @@ -0,0 +1,9 @@ +.select-css option { + background-color: #1C1E2F; + color: white +} + +.select-css option:checked { + background-color: #1C1E2F; + color: white +} \ No newline at end of file diff --git a/app/frontend/static/assets/images/dashboard/banner_bg.jpg b/app/frontend/static/assets/images/dashboard/banner_bg.jpg deleted file mode 100755 index d5f59ece..00000000 Binary files a/app/frontend/static/assets/images/dashboard/banner_bg.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/dashboard/banner_img.png b/app/frontend/static/assets/images/dashboard/banner_img.png deleted file mode 100755 index 3412de26..00000000 Binary files a/app/frontend/static/assets/images/dashboard/banner_img.png and /dev/null differ diff --git a/app/frontend/static/assets/images/dashboard/img_1.jpg b/app/frontend/static/assets/images/dashboard/img_1.jpg deleted file mode 100755 index 09395621..00000000 Binary files a/app/frontend/static/assets/images/dashboard/img_1.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/dashboard/img_2.jpg b/app/frontend/static/assets/images/dashboard/img_2.jpg deleted file mode 100755 index 4adb3473..00000000 Binary files a/app/frontend/static/assets/images/dashboard/img_2.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/dashboard/img_3.jpg b/app/frontend/static/assets/images/dashboard/img_3.jpg deleted file mode 100755 index 75d5c5ae..00000000 Binary files a/app/frontend/static/assets/images/dashboard/img_3.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/dashboard/profile-card.jpg b/app/frontend/static/assets/images/dashboard/profile-card.jpg deleted file mode 100755 index 842e5bba..00000000 Binary files a/app/frontend/static/assets/images/dashboard/profile-card.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/dashboard/progress-card-bg.jpg b/app/frontend/static/assets/images/dashboard/progress-card-bg.jpg deleted file mode 100755 index f92b853c..00000000 Binary files a/app/frontend/static/assets/images/dashboard/progress-card-bg.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/dashboard/weather-card.jpg b/app/frontend/static/assets/images/dashboard/weather-card.jpg deleted file mode 100755 index 850d715d..00000000 Binary files a/app/frontend/static/assets/images/dashboard/weather-card.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/128/001-interface-1.png b/app/frontend/static/assets/images/file-icons/128/001-interface-1.png deleted file mode 100755 index fd05b6ef..00000000 Binary files a/app/frontend/static/assets/images/file-icons/128/001-interface-1.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/128/002-tool.png b/app/frontend/static/assets/images/file-icons/128/002-tool.png deleted file mode 100755 index 998f3615..00000000 Binary files a/app/frontend/static/assets/images/file-icons/128/002-tool.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/128/003-interface.png b/app/frontend/static/assets/images/file-icons/128/003-interface.png deleted file mode 100755 index f29e769d..00000000 Binary files a/app/frontend/static/assets/images/file-icons/128/003-interface.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/128/004-folder-1.png b/app/frontend/static/assets/images/file-icons/128/004-folder-1.png deleted file mode 100755 index 8bf92a95..00000000 Binary files a/app/frontend/static/assets/images/file-icons/128/004-folder-1.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/128/005-database.png b/app/frontend/static/assets/images/file-icons/128/005-database.png deleted file mode 100755 index bef497e1..00000000 Binary files a/app/frontend/static/assets/images/file-icons/128/005-database.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/128/006-record.png b/app/frontend/static/assets/images/file-icons/128/006-record.png deleted file mode 100755 index 882763c4..00000000 Binary files a/app/frontend/static/assets/images/file-icons/128/006-record.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/128/007-folder.png b/app/frontend/static/assets/images/file-icons/128/007-folder.png deleted file mode 100755 index 3b0a5b46..00000000 Binary files a/app/frontend/static/assets/images/file-icons/128/007-folder.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/128/008-archive.png b/app/frontend/static/assets/images/file-icons/128/008-archive.png deleted file mode 100755 index cab121fd..00000000 Binary files a/app/frontend/static/assets/images/file-icons/128/008-archive.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/256/001-interface-1.png b/app/frontend/static/assets/images/file-icons/256/001-interface-1.png deleted file mode 100755 index 90c34f53..00000000 Binary files a/app/frontend/static/assets/images/file-icons/256/001-interface-1.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/256/002-tool.png b/app/frontend/static/assets/images/file-icons/256/002-tool.png deleted file mode 100755 index 1568d751..00000000 Binary files a/app/frontend/static/assets/images/file-icons/256/002-tool.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/256/003-interface.png b/app/frontend/static/assets/images/file-icons/256/003-interface.png deleted file mode 100755 index e5789f03..00000000 Binary files a/app/frontend/static/assets/images/file-icons/256/003-interface.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/256/004-folder-1.png b/app/frontend/static/assets/images/file-icons/256/004-folder-1.png deleted file mode 100755 index de0b731a..00000000 Binary files a/app/frontend/static/assets/images/file-icons/256/004-folder-1.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/256/005-database.png b/app/frontend/static/assets/images/file-icons/256/005-database.png deleted file mode 100755 index 2cd7fdb1..00000000 Binary files a/app/frontend/static/assets/images/file-icons/256/005-database.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/256/006-record.png b/app/frontend/static/assets/images/file-icons/256/006-record.png deleted file mode 100755 index af28d267..00000000 Binary files a/app/frontend/static/assets/images/file-icons/256/006-record.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/256/007-folder.png b/app/frontend/static/assets/images/file-icons/256/007-folder.png deleted file mode 100755 index 622fe660..00000000 Binary files a/app/frontend/static/assets/images/file-icons/256/007-folder.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/256/008-archive.png b/app/frontend/static/assets/images/file-icons/256/008-archive.png deleted file mode 100755 index dd9b95d4..00000000 Binary files a/app/frontend/static/assets/images/file-icons/256/008-archive.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/512/001-interface-1.png b/app/frontend/static/assets/images/file-icons/512/001-interface-1.png deleted file mode 100755 index 898cdb03..00000000 Binary files a/app/frontend/static/assets/images/file-icons/512/001-interface-1.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/512/002-tool.png b/app/frontend/static/assets/images/file-icons/512/002-tool.png deleted file mode 100755 index f9f6b701..00000000 Binary files a/app/frontend/static/assets/images/file-icons/512/002-tool.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/512/003-interface.png b/app/frontend/static/assets/images/file-icons/512/003-interface.png deleted file mode 100755 index b819ea04..00000000 Binary files a/app/frontend/static/assets/images/file-icons/512/003-interface.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/512/004-folder-1.png b/app/frontend/static/assets/images/file-icons/512/004-folder-1.png deleted file mode 100755 index 672ced00..00000000 Binary files a/app/frontend/static/assets/images/file-icons/512/004-folder-1.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/512/005-database.png b/app/frontend/static/assets/images/file-icons/512/005-database.png deleted file mode 100755 index 04ffb499..00000000 Binary files a/app/frontend/static/assets/images/file-icons/512/005-database.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/512/006-record.png b/app/frontend/static/assets/images/file-icons/512/006-record.png deleted file mode 100755 index 0f1e47dc..00000000 Binary files a/app/frontend/static/assets/images/file-icons/512/006-record.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/512/007-folder.png b/app/frontend/static/assets/images/file-icons/512/007-folder.png deleted file mode 100755 index bed8cdec..00000000 Binary files a/app/frontend/static/assets/images/file-icons/512/007-folder.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/512/008-archive.png b/app/frontend/static/assets/images/file-icons/512/008-archive.png deleted file mode 100755 index 614434ab..00000000 Binary files a/app/frontend/static/assets/images/file-icons/512/008-archive.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/64/001-interface-1.png b/app/frontend/static/assets/images/file-icons/64/001-interface-1.png deleted file mode 100755 index 5e55e279..00000000 Binary files a/app/frontend/static/assets/images/file-icons/64/001-interface-1.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/64/002-tool.png b/app/frontend/static/assets/images/file-icons/64/002-tool.png deleted file mode 100755 index 1d8aaf7f..00000000 Binary files a/app/frontend/static/assets/images/file-icons/64/002-tool.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/64/003-interface.png b/app/frontend/static/assets/images/file-icons/64/003-interface.png deleted file mode 100755 index cc57def2..00000000 Binary files a/app/frontend/static/assets/images/file-icons/64/003-interface.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/64/004-folder-1.png b/app/frontend/static/assets/images/file-icons/64/004-folder-1.png deleted file mode 100755 index 70ea76cf..00000000 Binary files a/app/frontend/static/assets/images/file-icons/64/004-folder-1.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/64/005-database.png b/app/frontend/static/assets/images/file-icons/64/005-database.png deleted file mode 100755 index 19e7cec9..00000000 Binary files a/app/frontend/static/assets/images/file-icons/64/005-database.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/64/006-record.png b/app/frontend/static/assets/images/file-icons/64/006-record.png deleted file mode 100755 index a965c62a..00000000 Binary files a/app/frontend/static/assets/images/file-icons/64/006-record.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/64/007-folder.png b/app/frontend/static/assets/images/file-icons/64/007-folder.png deleted file mode 100755 index b6c99d68..00000000 Binary files a/app/frontend/static/assets/images/file-icons/64/007-folder.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/64/008-archive.png b/app/frontend/static/assets/images/file-icons/64/008-archive.png deleted file mode 100755 index 3ac3e916..00000000 Binary files a/app/frontend/static/assets/images/file-icons/64/008-archive.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/Internet-Explorer.png b/app/frontend/static/assets/images/file-icons/Internet-Explorer.png deleted file mode 100755 index c671be45..00000000 Binary files a/app/frontend/static/assets/images/file-icons/Internet-Explorer.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/Safari.png b/app/frontend/static/assets/images/file-icons/Safari.png deleted file mode 100755 index 5d6905d2..00000000 Binary files a/app/frontend/static/assets/images/file-icons/Safari.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/chrome.png b/app/frontend/static/assets/images/file-icons/chrome.png deleted file mode 100755 index 20d419b1..00000000 Binary files a/app/frontend/static/assets/images/file-icons/chrome.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/extension/corrupted-file.png b/app/frontend/static/assets/images/file-icons/extension/corrupted-file.png deleted file mode 100755 index c14b2a2d..00000000 Binary files a/app/frontend/static/assets/images/file-icons/extension/corrupted-file.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/extension/css.png b/app/frontend/static/assets/images/file-icons/extension/css.png deleted file mode 100755 index 04f03630..00000000 Binary files a/app/frontend/static/assets/images/file-icons/extension/css.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/extension/database.png b/app/frontend/static/assets/images/file-icons/extension/database.png deleted file mode 100755 index f59a97f1..00000000 Binary files a/app/frontend/static/assets/images/file-icons/extension/database.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/extension/doc-file.png b/app/frontend/static/assets/images/file-icons/extension/doc-file.png deleted file mode 100755 index a8921071..00000000 Binary files a/app/frontend/static/assets/images/file-icons/extension/doc-file.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/extension/document.png b/app/frontend/static/assets/images/file-icons/extension/document.png deleted file mode 100755 index 418bf794..00000000 Binary files a/app/frontend/static/assets/images/file-icons/extension/document.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/extension/download-file.png b/app/frontend/static/assets/images/file-icons/extension/download-file.png deleted file mode 100755 index 49c3e14e..00000000 Binary files a/app/frontend/static/assets/images/file-icons/extension/download-file.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/extension/folder-open.png b/app/frontend/static/assets/images/file-icons/extension/folder-open.png deleted file mode 100755 index e736b056..00000000 Binary files a/app/frontend/static/assets/images/file-icons/extension/folder-open.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/extension/folder.png b/app/frontend/static/assets/images/file-icons/extension/folder.png deleted file mode 100755 index 794edaa4..00000000 Binary files a/app/frontend/static/assets/images/file-icons/extension/folder.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/extension/git-file.png b/app/frontend/static/assets/images/file-icons/extension/git-file.png deleted file mode 100755 index b5a586f7..00000000 Binary files a/app/frontend/static/assets/images/file-icons/extension/git-file.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/extension/html.png b/app/frontend/static/assets/images/file-icons/extension/html.png deleted file mode 100755 index 877f5db2..00000000 Binary files a/app/frontend/static/assets/images/file-icons/extension/html.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/extension/js-file.png b/app/frontend/static/assets/images/file-icons/extension/js-file.png deleted file mode 100755 index b1bb0807..00000000 Binary files a/app/frontend/static/assets/images/file-icons/extension/js-file.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/extension/pdf.png b/app/frontend/static/assets/images/file-icons/extension/pdf.png deleted file mode 100755 index a9e343fe..00000000 Binary files a/app/frontend/static/assets/images/file-icons/extension/pdf.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/extension/server-2.png b/app/frontend/static/assets/images/file-icons/extension/server-2.png deleted file mode 100755 index ac09d3d3..00000000 Binary files a/app/frontend/static/assets/images/file-icons/extension/server-2.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/extension/server.png b/app/frontend/static/assets/images/file-icons/extension/server.png deleted file mode 100755 index 92bb6b71..00000000 Binary files a/app/frontend/static/assets/images/file-icons/extension/server.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/extension/zip-file.png b/app/frontend/static/assets/images/file-icons/extension/zip-file.png deleted file mode 100755 index 9694acc4..00000000 Binary files a/app/frontend/static/assets/images/file-icons/extension/zip-file.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/extension/zip.png b/app/frontend/static/assets/images/file-icons/extension/zip.png deleted file mode 100755 index 1072e277..00000000 Binary files a/app/frontend/static/assets/images/file-icons/extension/zip.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/firefox.png b/app/frontend/static/assets/images/file-icons/firefox.png deleted file mode 100755 index dd0311f1..00000000 Binary files a/app/frontend/static/assets/images/file-icons/firefox.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/icon-3.svg b/app/frontend/static/assets/images/file-icons/icon-3.svg deleted file mode 100755 index 7d4b148f..00000000 --- a/app/frontend/static/assets/images/file-icons/icon-3.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - diff --git a/app/frontend/static/assets/images/file-icons/icon-google.svg b/app/frontend/static/assets/images/file-icons/icon-google.svg deleted file mode 100755 index 515dbd9a..00000000 --- a/app/frontend/static/assets/images/file-icons/icon-google.svg +++ /dev/null @@ -1 +0,0 @@ -ShapeCreated with Avocode. \ No newline at end of file diff --git a/app/frontend/static/assets/images/file-icons/opera.png b/app/frontend/static/assets/images/file-icons/opera.png deleted file mode 100755 index 3f1a0f79..00000000 Binary files a/app/frontend/static/assets/images/file-icons/opera.png and /dev/null differ diff --git a/app/frontend/static/assets/images/file-icons/vivaldi.png b/app/frontend/static/assets/images/file-icons/vivaldi.png deleted file mode 100755 index c003ba49..00000000 Binary files a/app/frontend/static/assets/images/file-icons/vivaldi.png and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/1280x768/1.jpg b/app/frontend/static/assets/images/samples/1280x768/1.jpg deleted file mode 100755 index 265c6ef3..00000000 Binary files a/app/frontend/static/assets/images/samples/1280x768/1.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/1280x768/10.jpg b/app/frontend/static/assets/images/samples/1280x768/10.jpg deleted file mode 100755 index 9dca4dfb..00000000 Binary files a/app/frontend/static/assets/images/samples/1280x768/10.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/1280x768/11.jpg b/app/frontend/static/assets/images/samples/1280x768/11.jpg deleted file mode 100755 index 2c9f635f..00000000 Binary files a/app/frontend/static/assets/images/samples/1280x768/11.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/1280x768/12.jpg b/app/frontend/static/assets/images/samples/1280x768/12.jpg deleted file mode 100755 index 6c9c84c4..00000000 Binary files a/app/frontend/static/assets/images/samples/1280x768/12.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/1280x768/13.jpg b/app/frontend/static/assets/images/samples/1280x768/13.jpg deleted file mode 100755 index 5eb4800f..00000000 Binary files a/app/frontend/static/assets/images/samples/1280x768/13.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/1280x768/14.jpg b/app/frontend/static/assets/images/samples/1280x768/14.jpg deleted file mode 100755 index 985e5a9e..00000000 Binary files a/app/frontend/static/assets/images/samples/1280x768/14.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/1280x768/15.jpg b/app/frontend/static/assets/images/samples/1280x768/15.jpg deleted file mode 100755 index 9354851d..00000000 Binary files a/app/frontend/static/assets/images/samples/1280x768/15.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/1280x768/2.jpg b/app/frontend/static/assets/images/samples/1280x768/2.jpg deleted file mode 100755 index b3b0334d..00000000 Binary files a/app/frontend/static/assets/images/samples/1280x768/2.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/1280x768/3.jpg b/app/frontend/static/assets/images/samples/1280x768/3.jpg deleted file mode 100755 index 795fa672..00000000 Binary files a/app/frontend/static/assets/images/samples/1280x768/3.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/1280x768/4.jpg b/app/frontend/static/assets/images/samples/1280x768/4.jpg deleted file mode 100755 index 4a9a4b9e..00000000 Binary files a/app/frontend/static/assets/images/samples/1280x768/4.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/1280x768/5.jpg b/app/frontend/static/assets/images/samples/1280x768/5.jpg deleted file mode 100755 index cfa559f2..00000000 Binary files a/app/frontend/static/assets/images/samples/1280x768/5.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/1280x768/6.jpg b/app/frontend/static/assets/images/samples/1280x768/6.jpg deleted file mode 100755 index 54abe953..00000000 Binary files a/app/frontend/static/assets/images/samples/1280x768/6.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/1280x768/7.jpg b/app/frontend/static/assets/images/samples/1280x768/7.jpg deleted file mode 100755 index e42c171e..00000000 Binary files a/app/frontend/static/assets/images/samples/1280x768/7.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/1280x768/8.jpg b/app/frontend/static/assets/images/samples/1280x768/8.jpg deleted file mode 100755 index 019fcc9b..00000000 Binary files a/app/frontend/static/assets/images/samples/1280x768/8.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/1280x768/9.jpg b/app/frontend/static/assets/images/samples/1280x768/9.jpg deleted file mode 100755 index e9e1479b..00000000 Binary files a/app/frontend/static/assets/images/samples/1280x768/9.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/300x300/1.jpg b/app/frontend/static/assets/images/samples/300x300/1.jpg deleted file mode 100755 index f5a33f91..00000000 Binary files a/app/frontend/static/assets/images/samples/300x300/1.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/300x300/10.jpg b/app/frontend/static/assets/images/samples/300x300/10.jpg deleted file mode 100755 index 67e5bab9..00000000 Binary files a/app/frontend/static/assets/images/samples/300x300/10.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/300x300/11.jpg b/app/frontend/static/assets/images/samples/300x300/11.jpg deleted file mode 100755 index a30e6039..00000000 Binary files a/app/frontend/static/assets/images/samples/300x300/11.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/300x300/12.jpg b/app/frontend/static/assets/images/samples/300x300/12.jpg deleted file mode 100755 index a159909f..00000000 Binary files a/app/frontend/static/assets/images/samples/300x300/12.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/300x300/13.jpg b/app/frontend/static/assets/images/samples/300x300/13.jpg deleted file mode 100755 index 483bb856..00000000 Binary files a/app/frontend/static/assets/images/samples/300x300/13.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/300x300/14.jpg b/app/frontend/static/assets/images/samples/300x300/14.jpg deleted file mode 100755 index 34e8d655..00000000 Binary files a/app/frontend/static/assets/images/samples/300x300/14.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/300x300/15.jpg b/app/frontend/static/assets/images/samples/300x300/15.jpg deleted file mode 100755 index 5da4f097..00000000 Binary files a/app/frontend/static/assets/images/samples/300x300/15.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/300x300/2.jpg b/app/frontend/static/assets/images/samples/300x300/2.jpg deleted file mode 100755 index 9486bc00..00000000 Binary files a/app/frontend/static/assets/images/samples/300x300/2.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/300x300/3.jpg b/app/frontend/static/assets/images/samples/300x300/3.jpg deleted file mode 100755 index b38aa300..00000000 Binary files a/app/frontend/static/assets/images/samples/300x300/3.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/300x300/4.jpg b/app/frontend/static/assets/images/samples/300x300/4.jpg deleted file mode 100755 index 8166091c..00000000 Binary files a/app/frontend/static/assets/images/samples/300x300/4.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/300x300/5.jpg b/app/frontend/static/assets/images/samples/300x300/5.jpg deleted file mode 100755 index c43d4849..00000000 Binary files a/app/frontend/static/assets/images/samples/300x300/5.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/300x300/6.jpg b/app/frontend/static/assets/images/samples/300x300/6.jpg deleted file mode 100755 index 6bed1962..00000000 Binary files a/app/frontend/static/assets/images/samples/300x300/6.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/300x300/7.jpg b/app/frontend/static/assets/images/samples/300x300/7.jpg deleted file mode 100755 index 8c74ba0c..00000000 Binary files a/app/frontend/static/assets/images/samples/300x300/7.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/300x300/8.jpg b/app/frontend/static/assets/images/samples/300x300/8.jpg deleted file mode 100755 index 619788cd..00000000 Binary files a/app/frontend/static/assets/images/samples/300x300/8.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/300x300/9.jpg b/app/frontend/static/assets/images/samples/300x300/9.jpg deleted file mode 100755 index ffb7c985..00000000 Binary files a/app/frontend/static/assets/images/samples/300x300/9.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/Login_bg.jpg b/app/frontend/static/assets/images/samples/Login_bg.jpg deleted file mode 100755 index a52bc03e..00000000 Binary files a/app/frontend/static/assets/images/samples/Login_bg.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/Login_bg2.jpg b/app/frontend/static/assets/images/samples/Login_bg2.jpg deleted file mode 100755 index 7c86ec4a..00000000 Binary files a/app/frontend/static/assets/images/samples/Login_bg2.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/Mac.png b/app/frontend/static/assets/images/samples/Mac.png deleted file mode 100755 index 630d37f3..00000000 Binary files a/app/frontend/static/assets/images/samples/Mac.png and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/angular-4.png b/app/frontend/static/assets/images/samples/angular-4.png deleted file mode 100755 index e112617a..00000000 Binary files a/app/frontend/static/assets/images/samples/angular-4.png and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/bg_1.jpg b/app/frontend/static/assets/images/samples/bg_1.jpg deleted file mode 100755 index 850d715d..00000000 Binary files a/app/frontend/static/assets/images/samples/bg_1.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/bootstrap-stack.png b/app/frontend/static/assets/images/samples/bootstrap-stack.png deleted file mode 100755 index 4d7060b8..00000000 Binary files a/app/frontend/static/assets/images/samples/bootstrap-stack.png and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/charts.png b/app/frontend/static/assets/images/samples/charts.png deleted file mode 100755 index 9849435c..00000000 Binary files a/app/frontend/static/assets/images/samples/charts.png and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/dashboard.png b/app/frontend/static/assets/images/samples/dashboard.png deleted file mode 100755 index 4f7a5021..00000000 Binary files a/app/frontend/static/assets/images/samples/dashboard.png and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/e-commerce.png b/app/frontend/static/assets/images/samples/e-commerce.png deleted file mode 100755 index 7fc45623..00000000 Binary files a/app/frontend/static/assets/images/samples/e-commerce.png and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/editors.png b/app/frontend/static/assets/images/samples/editors.png deleted file mode 100755 index 87af301f..00000000 Binary files a/app/frontend/static/assets/images/samples/editors.png and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/email.png b/app/frontend/static/assets/images/samples/email.png deleted file mode 100755 index 8358d3d8..00000000 Binary files a/app/frontend/static/assets/images/samples/email.png and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/footer_bg.jpg b/app/frontend/static/assets/images/samples/footer_bg.jpg deleted file mode 100755 index 8efeab18..00000000 Binary files a/app/frontend/static/assets/images/samples/footer_bg.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/forms.png b/app/frontend/static/assets/images/samples/forms.png deleted file mode 100755 index e9cc3029..00000000 Binary files a/app/frontend/static/assets/images/samples/forms.png and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/html5.png b/app/frontend/static/assets/images/samples/html5.png deleted file mode 100755 index 650133b3..00000000 Binary files a/app/frontend/static/assets/images/samples/html5.png and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/invoice_banner.jpg b/app/frontend/static/assets/images/samples/invoice_banner.jpg deleted file mode 100755 index c1540b11..00000000 Binary files a/app/frontend/static/assets/images/samples/invoice_banner.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/lockscreen-bg.jpg b/app/frontend/static/assets/images/samples/lockscreen-bg.jpg deleted file mode 100755 index 133fefdb..00000000 Binary files a/app/frontend/static/assets/images/samples/lockscreen-bg.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/modal.png b/app/frontend/static/assets/images/samples/modal.png deleted file mode 100755 index 354989ad..00000000 Binary files a/app/frontend/static/assets/images/samples/modal.png and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/popup.png b/app/frontend/static/assets/images/samples/popup.png deleted file mode 100755 index 78bc587f..00000000 Binary files a/app/frontend/static/assets/images/samples/popup.png and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/profile_page/banner_01.jpg b/app/frontend/static/assets/images/samples/profile_page/banner_01.jpg deleted file mode 100755 index ffe888d7..00000000 Binary files a/app/frontend/static/assets/images/samples/profile_page/banner_01.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/profile_page/banner_02.jpg b/app/frontend/static/assets/images/samples/profile_page/banner_02.jpg deleted file mode 100755 index 0cf1ea03..00000000 Binary files a/app/frontend/static/assets/images/samples/profile_page/banner_02.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/profile_page/logo/01.png b/app/frontend/static/assets/images/samples/profile_page/logo/01.png deleted file mode 100755 index bd457d91..00000000 Binary files a/app/frontend/static/assets/images/samples/profile_page/logo/01.png and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/profile_page/logo/02.png b/app/frontend/static/assets/images/samples/profile_page/logo/02.png deleted file mode 100755 index 5c173d6c..00000000 Binary files a/app/frontend/static/assets/images/samples/profile_page/logo/02.png and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/profile_page/logo/03.png b/app/frontend/static/assets/images/samples/profile_page/logo/03.png deleted file mode 100755 index 7b0f482d..00000000 Binary files a/app/frontend/static/assets/images/samples/profile_page/logo/03.png and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/profile_page/profile_header_banner.jpg b/app/frontend/static/assets/images/samples/profile_page/profile_header_banner.jpg deleted file mode 100755 index de551cda..00000000 Binary files a/app/frontend/static/assets/images/samples/profile_page/profile_header_banner.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/profile_page/thumbnail/01.jpg b/app/frontend/static/assets/images/samples/profile_page/thumbnail/01.jpg deleted file mode 100755 index 684fa002..00000000 Binary files a/app/frontend/static/assets/images/samples/profile_page/thumbnail/01.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/profile_page/thumbnail/02.jpg b/app/frontend/static/assets/images/samples/profile_page/thumbnail/02.jpg deleted file mode 100755 index 7cd624b6..00000000 Binary files a/app/frontend/static/assets/images/samples/profile_page/thumbnail/02.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/profile_page/thumbnail/03.jpg b/app/frontend/static/assets/images/samples/profile_page/thumbnail/03.jpg deleted file mode 100755 index 7ed529cf..00000000 Binary files a/app/frontend/static/assets/images/samples/profile_page/thumbnail/03.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/profile_page/thumbnail/04.jpg b/app/frontend/static/assets/images/samples/profile_page/thumbnail/04.jpg deleted file mode 100755 index f6658b85..00000000 Binary files a/app/frontend/static/assets/images/samples/profile_page/thumbnail/04.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/profile_page/thumbnail/05.jpg b/app/frontend/static/assets/images/samples/profile_page/thumbnail/05.jpg deleted file mode 100755 index f53b9f43..00000000 Binary files a/app/frontend/static/assets/images/samples/profile_page/thumbnail/05.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/profile_page/thumbnail/06.jpg b/app/frontend/static/assets/images/samples/profile_page/thumbnail/06.jpg deleted file mode 100755 index 6d11ebca..00000000 Binary files a/app/frontend/static/assets/images/samples/profile_page/thumbnail/06.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/profile_page/thumbnail/07.jpg b/app/frontend/static/assets/images/samples/profile_page/thumbnail/07.jpg deleted file mode 100755 index 9bf0d1ac..00000000 Binary files a/app/frontend/static/assets/images/samples/profile_page/thumbnail/07.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/profile_page/thumbnail/08.jpg b/app/frontend/static/assets/images/samples/profile_page/thumbnail/08.jpg deleted file mode 100755 index a4cae088..00000000 Binary files a/app/frontend/static/assets/images/samples/profile_page/thumbnail/08.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/profile_page/thumbnail/09.jpg b/app/frontend/static/assets/images/samples/profile_page/thumbnail/09.jpg deleted file mode 100755 index a51f3d4e..00000000 Binary files a/app/frontend/static/assets/images/samples/profile_page/thumbnail/09.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/profile_page/thumbnail/10.jpg b/app/frontend/static/assets/images/samples/profile_page/thumbnail/10.jpg deleted file mode 100755 index 93adb439..00000000 Binary files a/app/frontend/static/assets/images/samples/profile_page/thumbnail/10.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/profile_page/thumbnail/11.jpg b/app/frontend/static/assets/images/samples/profile_page/thumbnail/11.jpg deleted file mode 100755 index 26dbd44e..00000000 Binary files a/app/frontend/static/assets/images/samples/profile_page/thumbnail/11.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/profile_page/thumbnail/12.jpg b/app/frontend/static/assets/images/samples/profile_page/thumbnail/12.jpg deleted file mode 100755 index 4ab39102..00000000 Binary files a/app/frontend/static/assets/images/samples/profile_page/thumbnail/12.jpg and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/tab_preview/01.png b/app/frontend/static/assets/images/samples/tab_preview/01.png deleted file mode 100755 index 29395cd1..00000000 Binary files a/app/frontend/static/assets/images/samples/tab_preview/01.png and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/tab_preview/02.png b/app/frontend/static/assets/images/samples/tab_preview/02.png deleted file mode 100755 index 42cac5f0..00000000 Binary files a/app/frontend/static/assets/images/samples/tab_preview/02.png and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/tab_preview/03.png b/app/frontend/static/assets/images/samples/tab_preview/03.png deleted file mode 100755 index d40b8b77..00000000 Binary files a/app/frontend/static/assets/images/samples/tab_preview/03.png and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/tab_preview/04.png b/app/frontend/static/assets/images/samples/tab_preview/04.png deleted file mode 100755 index 2b521f6c..00000000 Binary files a/app/frontend/static/assets/images/samples/tab_preview/04.png and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/tab_preview/05.png b/app/frontend/static/assets/images/samples/tab_preview/05.png deleted file mode 100755 index 457bc9e3..00000000 Binary files a/app/frontend/static/assets/images/samples/tab_preview/05.png and /dev/null differ diff --git a/app/frontend/static/assets/images/samples/weather.svg b/app/frontend/static/assets/images/samples/weather.svg deleted file mode 100755 index 26363ecb..00000000 --- a/app/frontend/static/assets/images/samples/weather.svg +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - diff --git a/app/frontend/static/assets/images/samples/widgets.png b/app/frontend/static/assets/images/samples/widgets.png deleted file mode 100755 index a5b07022..00000000 Binary files a/app/frontend/static/assets/images/samples/widgets.png and /dev/null differ diff --git a/app/frontend/static/assets/images/social_icons/facebook.svg b/app/frontend/static/assets/images/social_icons/facebook.svg deleted file mode 100755 index 565b77f8..00000000 --- a/app/frontend/static/assets/images/social_icons/facebook.svg +++ /dev/null @@ -1,20 +0,0 @@ - - - - Group 2 - Created with Sketch. - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/frontend/static/assets/images/social_icons/google_plus.svg b/app/frontend/static/assets/images/social_icons/google_plus.svg deleted file mode 100755 index 057ecf6b..00000000 --- a/app/frontend/static/assets/images/social_icons/google_plus.svg +++ /dev/null @@ -1,20 +0,0 @@ - - - - Group - Created with Sketch. - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/frontend/static/assets/images/social_icons/instagram.svg b/app/frontend/static/assets/images/social_icons/instagram.svg deleted file mode 100755 index 8aa65860..00000000 --- a/app/frontend/static/assets/images/social_icons/instagram.svg +++ /dev/null @@ -1,28 +0,0 @@ - - - - Group 4 - Created with Sketch. - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/frontend/static/assets/images/social_icons/twitter.svg b/app/frontend/static/assets/images/social_icons/twitter.svg deleted file mode 100755 index c9923e84..00000000 --- a/app/frontend/static/assets/images/social_icons/twitter.svg +++ /dev/null @@ -1,22 +0,0 @@ - - - - Group 3 - Created with Sketch. - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/frontend/static/assets/images/social_icons/youtube.svg b/app/frontend/static/assets/images/social_icons/youtube.svg deleted file mode 100755 index dd644311..00000000 --- a/app/frontend/static/assets/images/social_icons/youtube.svg +++ /dev/null @@ -1,20 +0,0 @@ - - - - Group 6 - Created with Sketch. - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/alerts.js b/app/frontend/static/assets/js/shared/alerts.js deleted file mode 100755 index d951040f..00000000 --- a/app/frontend/static/assets/js/shared/alerts.js +++ /dev/null @@ -1,102 +0,0 @@ -(function($) { - showSwal = function(type) { - 'use strict'; - if (type === 'basic') { - swal({ - text: 'Any fool can use a computer', - button: { - text: "OK", - value: true, - visible: true, - className: "btn btn-primary" - } - }) - - } else if (type === 'title-and-text') { - swal({ - title: 'Read the alert!', - text: 'Click OK to close this alert', - button: { - text: "OK", - value: true, - visible: true, - className: "btn btn-primary" - } - }) - - } else if (type === 'success-message') { - swal({ - title: 'Congratulations!', - text: 'You entered the correct answer', - icon: 'success', - button: { - text: "Continue", - value: true, - visible: true, - className: "btn btn-primary" - } - }) - - } else if (type === 'auto-close') { - swal({ - title: 'Auto close alert!', - text: 'I will close in 2 seconds.', - timer: 2000, - button: false - }).then( - function() {}, - // handling the promise rejection - function(dismiss) { - if (dismiss === 'timer') { - console.log('I was closed by the timer') - } - } - ) - } else if (type === 'warning-message-and-cancel') { - swal({ - title: 'Are you sure?', - text: "You won't be able to revert this!", - icon: 'warning', - showCancelButton: true, - confirmButtonColor: '#3f51b5', - cancelButtonColor: '#ff4081', - confirmButtonText: 'Great ', - buttons: { - cancel: { - text: "Cancel", - value: null, - visible: true, - className: "btn btn-danger", - closeModal: true, - }, - confirm: { - text: "OK", - value: true, - visible: true, - className: "btn btn-primary", - closeModal: true - } - } - }) - - } else if (type === 'custom-html') { - swal({ - content: { - element: "input", - attributes: { - placeholder: "Type your password", - type: "password", - class: 'form-control' - }, - }, - button: { - text: "OK", - value: true, - visible: true, - className: "btn btn-primary" - } - }) - } - } - -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/avgrund.js b/app/frontend/static/assets/js/shared/avgrund.js deleted file mode 100755 index b7870d1c..00000000 --- a/app/frontend/static/assets/js/shared/avgrund.js +++ /dev/null @@ -1,21 +0,0 @@ -(function($) { - 'use strict'; - $(function() { - $('#show').avgrund({ - height: 500, - holderClass: 'custom', - showClose: true, - showCloseText: 'x', - onBlurContainer: '.container-scroller', - template: '

So implement your design and place content here! If you want to close modal, please hit "Esc", click somewhere on the screen or use special button.

' + - '
' + - 'Twitter' + - 'Dribbble' + - '
' + - '
' + - 'Great!' + - 'Cancel' + - '
' - }); - }) -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/bootstrap-table.js b/app/frontend/static/assets/js/shared/bootstrap-table.js deleted file mode 100755 index c02e62c8..00000000 --- a/app/frontend/static/assets/js/shared/bootstrap-table.js +++ /dev/null @@ -1,66 +0,0 @@ -(function($) { - 'use strict'; - - function monthSorter(a, b) { - if (a.month < b.month) return -1; - if (a.month > b.month) return 1; - return 0; - } - - function buildTable($el, cells, rows) { - var i, j, row, - columns = [], - data = []; - - for (i = 0; i < cells; i++) { - columns.push({ - field: 'field' + i, - title: 'Cell' + i - }); - } - for (i = 0; i < rows; i++) { - row = {}; - for (j = 0; j < cells; j++) { - row['field' + j] = 'Row-' + i + '-' + j; - } - data.push(row); - } - $el.bootstrapTable('destroy').bootstrapTable({ - columns: columns, - data: data - }); - } - - $(function() { - buildTable($('#table'), 50, 50); - }); - - function actionFormatter(value, row, index) { - return [ - '', - '', - '', - '', - '', - '', - '', - '', - '' - ].join(''); - } - - window.actionEvents = { - 'click .like': function(e, value, row, index) { - alert('You click like icon, row: ' + JSON.stringify(row)); - console.log(value, row, index); - }, - 'click .edit': function(e, value, row, index) { - alert('You click edit icon, row: ' + JSON.stringify(row)); - console.log(value, row, index); - }, - 'click .remove': function(e, value, row, index) { - alert('You click remove icon, row: ' + JSON.stringify(row)); - console.log(value, row, index); - } - }; -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/bt-maxLength.js b/app/frontend/static/assets/js/shared/bt-maxLength.js deleted file mode 100755 index 91bfd569..00000000 --- a/app/frontend/static/assets/js/shared/bt-maxLength.js +++ /dev/null @@ -1,31 +0,0 @@ -(function($) { - 'use strict'; - $('#defaultconfig').maxlength({ - warningClass: "badge mt-1 badge-success", - limitReachedClass: "badge mt-1 badge-danger" - }); - - $('#defaultconfig-2').maxlength({ - alwaysShow: true, - threshold: 20, - warningClass: "badge mt-1 badge-success", - limitReachedClass: "badge mt-1 badge-danger" - }); - - $('#defaultconfig-3').maxlength({ - alwaysShow: true, - threshold: 10, - warningClass: "badge mt-1 badge-success", - limitReachedClass: "badge mt-1 badge-danger", - separator: ' of ', - preText: 'You have ', - postText: ' chars remaining.', - validate: true - }); - - $('#maxlength-textarea').maxlength({ - alwaysShow: true, - warningClass: "badge mt-1 badge-success", - limitReachedClass: "badge mt-1 badge-danger" - }); -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/c3.js b/app/frontend/static/assets/js/shared/c3.js deleted file mode 100755 index a8e1721b..00000000 --- a/app/frontend/static/assets/js/shared/c3.js +++ /dev/null @@ -1,218 +0,0 @@ -(function($) { - 'use strict'; - var c3LineChart = c3.generate({ - bindto: '#c3-line-chart', - data: { - columns: [ - ['data1', 30, 200, 100, 400, 150, 250], - ['data2', 50, 20, 10, 40, 15, 25] - ] - }, - color: { - pattern: ['rgba(88,216,163,1)', 'rgba(237,28,36,0.6)', 'rgba(4,189,254,0.6)'] - }, - padding: { - top: 0, - right: 0, - bottom: 30, - left: 0, - } - }); - - setTimeout(function() { - c3LineChart.load({ - columns: [ - ['data1', 230, 190, 300, 500, 300, 400] - ] - }); - }, 1000); - - setTimeout(function() { - c3LineChart.load({ - columns: [ - ['data3', 130, 150, 200, 300, 200, 100] - ] - }); - }, 1500); - - setTimeout(function() { - c3LineChart.unload({ - ids: 'data1' - }); - }, 2000); - - var c3SplineChart = c3.generate({ - bindto: '#c3-spline-chart', - data: { - columns: [ - ['data1', 30, 200, 100, 400, 150, 250], - ['data2', 130, 100, 140, 200, 150, 50] - ], - type: 'spline' - }, - color: { - pattern: ['rgba(88,216,163,1)', 'rgba(237,28,36,0.6)', 'rgba(4,189,254,0.6)'] - }, - padding: { - top: 0, - right: 0, - bottom: 30, - left: 0, - } - }); - var c3BarChart = c3.generate({ - bindto: '#c3-bar-chart', - data: { - columns: [ - ['data1', 30, 200, 100, 400, 150, 250], - ['data2', 130, 100, 140, 200, 150, 50] - ], - type: 'bar' - }, - color: { - pattern: ['rgba(88,216,163,1)', 'rgba(4,189,254,0.6)', 'rgba(237,28,36,0.6)'] - }, - padding: { - top: 0, - right: 0, - bottom: 30, - left: 0, - }, - bar: { - width: { - ratio: 0.7 // this makes bar width 50% of length between ticks - } - } - }); - - setTimeout(function() { - c3BarChart.load({ - columns: [ - ['data3', 130, -150, 200, 300, -200, 100] - ] - }); - }, 1000); - - var c3StepChart = c3.generate({ - bindto: '#c3-step-chart', - data: { - columns: [ - ['data1', 300, 350, 300, 0, 0, 100], - ['data2', 130, 100, 140, 200, 150, 50] - ], - types: { - data1: 'step', - data2: 'area-step' - } - }, - color: { - pattern: ['rgba(88,216,163,1)', 'rgba(4,189,254,0.6)', 'rgba(237,28,36,0.6)'] - }, - padding: { - top: 0, - right: 0, - bottom: 30, - left: 0, - } - }); - var c3PieChart = c3.generate({ - bindto: '#c3-pie-chart', - data: { - // iris data from R - columns: [ - ['data1', 30], - ['data2', 120], - ], - type: 'pie', - onclick: function(d, i) { - console.log("onclick", d, i); - }, - onmouseover: function(d, i) { - console.log("onmouseover", d, i); - }, - onmouseout: function(d, i) { - console.log("onmouseout", d, i); - } - }, - color: { - pattern: ['#6153F9', '#8E97FC', '#A7B3FD'] - }, - padding: { - top: 0, - right: 0, - bottom: 30, - left: 0, - } - }); - - setTimeout(function() { - c3PieChart.load({ - columns: [ - ["Income", 0.2, 0.2, 0.2, 0.2, 0.2, 0.4, 0.3, 0.2, 0.2, 0.1, 0.2, 0.2, 0.1, 0.1, 0.2, 0.4, 0.4, 0.3, 0.3, 0.3, 0.2, 0.4, 0.2, 0.5, 0.2, 0.2, 0.4, 0.2, 0.2, 0.2, 0.2, 0.4, 0.1, 0.2, 0.2, 0.2, 0.2, 0.1, 0.2, 0.2, 0.3, 0.3, 0.2, 0.6, 0.4, 0.3, 0.2, 0.2, 0.2, 0.2], - ["Outcome", 1.4, 1.5, 1.5, 1.3, 1.5, 1.3, 1.6, 1.0, 1.3, 1.4, 1.0, 1.5, 1.0, 1.4, 1.3, 1.4, 1.5, 1.0, 1.5, 1.1, 1.8, 1.3, 1.5, 1.2, 1.3, 1.4, 1.4, 1.7, 1.5, 1.0, 1.1, 1.0, 1.2, 1.6, 1.5, 1.6, 1.5, 1.3, 1.3, 1.3, 1.2, 1.4, 1.2, 1.0, 1.3, 1.2, 1.3, 1.3, 1.1, 1.3], - ["Revenue", 2.5, 1.9, 2.1, 1.8, 2.2, 2.1, 1.7, 1.8, 1.8, 2.5, 2.0, 1.9, 2.1, 2.0, 2.4, 2.3, 1.8, 2.2, 2.3, 1.5, 2.3, 2.0, 2.0, 1.8, 2.1, 1.8, 1.8, 1.8, 2.1, 1.6, 1.9, 2.0, 2.2, 1.5, 1.4, 2.3, 2.4, 1.8, 1.8, 2.1, 2.4, 2.3, 1.9, 2.3, 2.5, 2.3, 1.9, 2.0, 2.3, 1.8], - ] - }); - }, 1500); - - setTimeout(function() { - c3PieChart.unload({ - ids: 'data1' - }); - c3PieChart.unload({ - ids: 'data2' - }); - }, 2500); - var c3DonutChart = c3.generate({ - bindto: '#c3-donut-chart', - data: { - columns: [ - ['data1', 30], - ['data2', 120], - ], - type: 'donut', - onclick: function(d, i) { - console.log("onclick", d, i); - }, - onmouseover: function(d, i) { - console.log("onmouseover", d, i); - }, - onmouseout: function(d, i) { - console.log("onmouseout", d, i); - } - }, - color: { - pattern: ['rgba(88,216,163,1)', 'rgba(4,189,254,0.6)', 'rgba(237,28,36,0.6)'] - }, - padding: { - top: 0, - right: 0, - bottom: 30, - left: 0, - }, - donut: { - title: "Iris Petal Width" - } - }); - - setTimeout(function() { - c3DonutChart.load({ - columns: [ - ["setosa", 0.2, 0.2, 0.2, 0.2, 0.2, 0.4, 0.3, 0.2, 0.2, 0.1, 0.2, 0.2, 0.1, 0.1, 0.2, 0.4, 0.4, 0.3, 0.3, 0.3, 0.2, 0.4, 0.2, 0.5, 0.2, 0.2, 0.4, 0.2, 0.2, 0.2, 0.2, 0.4, 0.1, 0.2, 0.2, 0.2, 0.2, 0.1, 0.2, 0.2, 0.3, 0.3, 0.2, 0.6, 0.4, 0.3, 0.2, 0.2, 0.2, 0.2], - ["versicolor", 1.4, 1.5, 1.5, 1.3, 1.5, 1.3, 1.6, 1.0, 1.3, 1.4, 1.0, 1.5, 1.0, 1.4, 1.3, 1.4, 1.5, 1.0, 1.5, 1.1, 1.8, 1.3, 1.5, 1.2, 1.3, 1.4, 1.4, 1.7, 1.5, 1.0, 1.1, 1.0, 1.2, 1.6, 1.5, 1.6, 1.5, 1.3, 1.3, 1.3, 1.2, 1.4, 1.2, 1.0, 1.3, 1.2, 1.3, 1.3, 1.1, 1.3], - ["virginica", 2.5, 1.9, 2.1, 1.8, 2.2, 2.1, 1.7, 1.8, 1.8, 2.5, 2.0, 1.9, 2.1, 2.0, 2.4, 2.3, 1.8, 2.2, 2.3, 1.5, 2.3, 2.0, 2.0, 1.8, 2.1, 1.8, 1.8, 1.8, 2.1, 1.6, 1.9, 2.0, 2.2, 1.5, 1.4, 2.3, 2.4, 1.8, 1.8, 2.1, 2.4, 2.3, 1.9, 2.3, 2.5, 2.3, 1.9, 2.0, 2.3, 1.8], - ] - }); - }, 1500); - - setTimeout(function() { - c3DonutChart.unload({ - ids: 'data1' - }); - c3DonutChart.unload({ - ids: 'data2' - }); - }, 2500); - - -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/calendar.js b/app/frontend/static/assets/js/shared/calendar.js deleted file mode 100755 index 0ec5c423..00000000 --- a/app/frontend/static/assets/js/shared/calendar.js +++ /dev/null @@ -1,90 +0,0 @@ -(function ($) { - 'use strict'; - $(function () { - var style = getComputedStyle(document.body); - if ($('#calendar').length) { - $('#calendar').fullCalendar({ - header: { - left: 'prev,next today', - center: 'title', - right: 'month,basicWeek,basicDay' - }, - locale: 'en', - dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', - 'Thursday', 'Friday', 'Saturday' - ], - dayNamesShort: ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT'], - monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', - 'August', 'September', 'October', 'November', 'December' - ], - monthNamesShort: ['January', 'February', 'March', 'April', 'May', 'June', 'July', - 'August', 'September', 'October', 'November', 'December' - ], - defaultDate: '2017-07-12', - navLinks: true, // can click day/week names to navigate views - editable: true, - eventLimit: true, // allow "more" link when too many events - events: [{ - title: 'All Day Event', - start: '2017-07-01' - }, - { - title: 'Long Event', - start: '2017-07-07', - end: '2017-07-10', - color: style.getPropertyValue('--info') - }, - { - id: 999, - title: 'Repeating Event', - start: '2017-07-09T16:00:00', - color: style.getPropertyValue('--danger') - }, - { - id: 999, - title: 'Repeating Event', - start: '2017-07-16T16:00:00', - color: style.getPropertyValue('--info') - }, - { - title: 'Conference', - start: '2017-07-11', - end: '2017-07-13' - }, - { - title: 'Meeting', - start: '2017-07-12T10:30:00', - end: '2017-07-12T12:30:00', - color: style.getPropertyValue('--danger') - }, - { - title: 'Lunch', - start: '2017-07-12T12:00:00' - }, - { - title: 'Meeting', - start: '2017-07-12T14:30:00' - }, - { - title: 'Happy Hour', - start: '2017-07-12T17:30:00' - }, - { - title: 'Dinner', - start: '2017-07-12T20:00:00' - }, - { - title: 'Birthday Party', - start: '2017-07-13T07:00:00' - }, - { - title: 'Click for Google', - url: 'http://google.com/', - start: '2017-07-28', - color: style.getPropertyValue('--danger') - } - ] - }) - } - }); -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/chart.js b/app/frontend/static/assets/js/shared/chart.js deleted file mode 100755 index 5a27a433..00000000 --- a/app/frontend/static/assets/js/shared/chart.js +++ /dev/null @@ -1,999 +0,0 @@ -$(function () { - /* ChartJS */ - - 'use strict'; - if ($("#mixed-chart").length) { - var chartData = { - labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], - datasets: [{ - type: 'line', - label: 'Revenue', - data: ["23", "33", "32", "65", "21", "45", "35"], - backgroundColor: ChartColor[2], - borderColor: ChartColor[2], - borderWidth: 3, - fill: false, - }, { - type: 'bar', - label: 'Standard', - data: ["53", "28", "19", "29", "30", "51", "55"], - backgroundColor: ChartColor[0], - borderColor: ChartColor[0], - borderWidth: 2 - }, { - type: 'bar', - label: 'Extended', - data: ["34", "16", "46", "54", "42", "31", "49"], - backgroundColor: ChartColor[1], - borderColor: ChartColor[1] - }] - }; - var MixedChartCanvas = document.getElementById('mixed-chart').getContext('2d'); - lineChart = new Chart(MixedChartCanvas, { - type: 'bar', - data: chartData, - options: { - responsive: true, - title: { - display: true, - text: 'Revenue and number of lincences sold', - fontColor: chartFontcolor - }, - scales: { - xAxes: [{ - display: true, - ticks: { - fontColor: chartFontcolor, - stepSize: 50, - min: 0, - max: 150, - autoSkip: true, - autoSkipPadding: 15, - maxRotation: 0, - maxTicksLimit: 10 - }, - gridLines: { - display: false, - drawBorder: false, - color: chartGridLineColor, - zeroLineColor: chartGridLineColor - } - }], - yAxes: [{ - display: true, - scaleLabel: { - display: true, - labelString: 'Number of Sales', - fontSize: 12, - lineHeight: 2, - fontColor: chartFontcolor - }, - ticks: { - fontColor: chartFontcolor, - display: true, - autoSkip: false, - maxRotation: 0, - stepSize: 20, - min: 0, - max: 100 - }, - gridLines: { - drawBorder: false, - color: chartGridLineColor, - zeroLineColor: chartGridLineColor - } - }] - }, - legend: { - display: false - }, - legendCallback: function (chart) { - var text = []; - text.push('
'); - return text.join(""); - } - } - }); - document.getElementById('mixed-chart-legend').innerHTML = lineChart.generateLegend(); - } - if ($("#lineChart").length) { - var lineData = { - labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep"], - datasets: [{ - data: [0, 205, 75, 150, 100, 150, 50, 100, 80], - backgroundColor: ChartColor[0], - borderColor: ChartColor[0], - borderWidth: 3, - fill: 'false', - label: "Sales" - }] - }; - var lineOptions = { - responsive: true, - maintainAspectRatio: true, - plugins: { - filler: { - propagate: false - } - }, - scales: { - xAxes: [{ - display: true, - scaleLabel: { - display: true, - labelString: 'Month', - fontSize: 12, - lineHeight: 2, - fontColor: chartFontcolor - }, - ticks: { - fontColor: chartFontcolor, - stepSize: 50, - min: 0, - max: 150, - autoSkip: true, - autoSkipPadding: 15, - maxRotation: 0, - maxTicksLimit: 10 - }, - gridLines: { - display: false, - drawBorder: false, - color: 'transparent', - zeroLineColor: '#eeeeee' - } - }], - yAxes: [{ - display: true, - scaleLabel: { - display: true, - labelString: 'Number of sales', - fontSize: 12, - lineHeight: 2, - fontColor: chartFontcolor - }, - ticks: { - fontColor: chartFontcolor, - display: true, - autoSkip: false, - maxRotation: 0, - stepSize: 100, - min: 0, - max: 300 - }, - gridLines: { - drawBorder: false, - color: chartGridLineColor, - zeroLineColor: chartGridLineColor - } - }] - }, - legend: { - display: false - }, - legendCallback: function (chart) { - var text = []; - text.push('
'); - return text.join(""); - }, - elements: { - line: { - tension: 0 - }, - point: { - radius: 0 - } - } - } - var lineChartCanvas = $("#lineChart").get(0).getContext("2d"); - var lineChart = new Chart(lineChartCanvas, { - type: 'line', - data: lineData, - options: lineOptions - }); - document.getElementById('line-traffic-legend').innerHTML = lineChart.generateLegend(); - } - if ($("#areaChart").length) { - var gradientStrokeFill_1 = lineChartCanvas.createLinearGradient(1, 2, 1, 280); - gradientStrokeFill_1.addColorStop(0, "rgba(20, 88, 232, 0.37)"); - gradientStrokeFill_1.addColorStop(1, "rgba(255,255,255,0.4)") - var lineData = { - labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep"], - datasets: [{ - data: [0, 205, 75, 150, 100, 150, 50, 100, 80], - backgroundColor: gradientStrokeFill_1, - borderColor: ChartColor[0], - borderWidth: 3, - fill: true, - label: "Marketing" - }] - }; - var lineOptions = { - responsive: true, - maintainAspectRatio: true, - plugins: { - filler: { - propagate: false - } - }, - scales: { - xAxes: [{ - display: true, - scaleLabel: { - display: true, - labelString: 'Month', - fontColor: chartFontcolor, - fontSize: 12, - lineHeight: 2 - }, - ticks: { - autoSkip: true, - autoSkipPadding: 35, - maxRotation: 0, - maxTicksLimit: 10, - fontColor: chartFontcolor - }, - gridLines: { - display: false, - drawBorder: false, - color: chartGridLineColor, - zeroLineColor: chartGridLineColor - } - }], - yAxes: [{ - display: true, - scaleLabel: { - display: true, - labelString: 'Number of user', - fontSize: 12, - fontColor: chartFontcolor, - lineHeight: 2 - }, - ticks: { - display: true, - autoSkip: false, - maxRotation: 0, - stepSize: 100, - min: 0, - max: 300, - fontColor: chartFontcolor - }, - gridLines: { - drawBorder: false, - color: chartGridLineColor, - zeroLineColor: chartGridLineColor - } - }] - }, - legend: { - display: false - }, - legendCallback: function (chart) { - var text = []; - text.push('
'); - return text.join(""); - }, - elements: { - line: { - tension: 0 - }, - point: { - radius: 0 - } - } - } - var lineChartCanvas = $("#areaChart").get(0).getContext("2d"); - var lineChart = new Chart(lineChartCanvas, { - type: 'line', - data: lineData, - options: lineOptions - }); - document.getElementById('area-traffic-legend').innerHTML = lineChart.generateLegend(); - } - if ($("#barChart").length) { - var barChartCanvas = $("#barChart").get(0).getContext("2d"); - var barChart = new Chart(barChartCanvas, { - type: 'bar', - data: { - labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], - datasets: [{ - label: 'Profit', - data: [15, 28, 14, 22, 38, 30, 40, 70, 85, 50, 23, 20], - backgroundColor: ChartColor[0], - borderColor: ChartColor[0], - borderWidth: 0 - }] - }, - options: { - responsive: true, - maintainAspectRatio: true, - layout: { - padding: { - left: 0, - right: 0, - top: 0, - bottom: 0 - } - }, - scales: { - xAxes: [{ - display: true, - scaleLabel: { - display: true, - labelString: 'Sales by year', - fontColor: chartFontcolor, - fontSize: 12, - lineHeight: 2 - }, - ticks: { - fontColor: chartFontcolor, - stepSize: 50, - min: 0, - max: 150, - autoSkip: true, - autoSkipPadding: 15, - maxRotation: 0, - maxTicksLimit: 10 - }, - gridLines: { - display: false, - drawBorder: false, - color: chartGridLineColor, - zeroLineColor: chartGridLineColor - } - }], - yAxes: [{ - display: true, - scaleLabel: { - display: true, - labelString: 'revenue by sales', - fontColor: chartFontcolor, - fontSize: 12, - lineHeight: 2 - }, - ticks: { - display: true, - autoSkip: false, - maxRotation: 0, - fontColor: chartFontcolor, - stepSize: 50, - min: 0, - max: 150 - }, - gridLines: { - drawBorder: false, - color: chartGridLineColor, - zeroLineColor: chartGridLineColor - } - }] - }, - legend: { - display: false - }, - legendCallback: function (chart) { - var text = []; - text.push('
'); - return text.join(""); - }, - elements: { - point: { - radius: 0 - } - } - } - }); - document.getElementById('bar-traffic-legend').innerHTML = barChart.generateLegend(); - } - if ($("#stackedbarChart").length) { - var stackedbarChartCanvas = $("#stackedbarChart").get(0).getContext("2d"); - var stackedbarChart = new Chart(stackedbarChartCanvas, { - type: 'bar', - data: { - labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul"], - datasets: [{ - label: "Desktop", - backgroundColor: ChartColor[0], - borderColor: ChartColor[0], - borderWidth: 1, - data: [55, 45, 44, 54, 38, 40, 50] - }, - { - label: "Mobile", - backgroundColor: ChartColor[1], - borderColor: ChartColor[1], - borderWidth: 1, - data: [34, 20, 54, 34, 65, 40, 35] - } - ] - }, - options: { - responsive: true, - maintainAspectRatio: true, - legend: false, - categoryPercentage: 0.5, - stacked: true, - layout: { - padding: { - left: 0, - right: 0, - top: 0, - bottom: 0 - } - }, - scales: { - xAxes: [{ - display: true, - scaleLabel: { - display: true, - labelString: 'User by time', - fontColor: chartFontcolor, - fontSize: 12, - lineHeight: 2 - }, - ticks: { - fontColor: chartFontcolor, - stepSize: 50, - min: 0, - max: 150, - autoSkip: true, - autoSkipPadding: 15, - maxRotation: 0, - maxTicksLimit: 10 - }, - gridLines: { - display: false, - drawBorder: false, - color: chartGridLineColor, - zeroLineColor: chartGridLineColor - } - }], - yAxes: [{ - display: true, - scaleLabel: { - display: true, - labelString: 'Number of users', - fontColor: chartFontcolor, - fontSize: 12, - lineHeight: 2 - }, - ticks: { - fontColor: chartFontcolor, - stepSize: 50, - min: 0, - max: 150, - autoSkip: true, - autoSkipPadding: 15, - maxRotation: 0, - maxTicksLimit: 10 - }, - gridLines: { - drawBorder: false, - color: chartGridLineColor, - zeroLineColor: chartGridLineColor - } - }] - }, - legend: { - display: false - }, - legendCallback: function (chart) { - var text = []; - text.push('
'); - return text.join(""); - }, - elements: { - point: { - radius: 0 - } - } - } - }); - document.getElementById('stacked-bar-traffic-legend').innerHTML = stackedbarChart.generateLegend(); - } - if ($("#radarChart").length) { - var marksCanvas = document.getElementById("radarChart"); - var marksData = { - labels: ["English", "Maths", "Physics", "Chemistry", "Biology", "History"], - datasets: [{ - label: "Student A", - backgroundColor: ChartColor[0], - borderColor: ChartColor[0], - borderWidth: 0, - fill: true, - radius: 6, - pointRadius: 5, - pointBorderWidth: 0, - pointBackgroundColor: ChartColor[4], - pointHoverRadius: 10, - data: [54, 45, 60, 70, 54, 75] - }, { - label: "Student B", - backgroundColor: ChartColor[1], - borderColor: ChartColor[1], - borderWidth: 0, - fill: true, - radius: 6, - pointRadius: 5, - pointBorderWidth: 0, - pointBackgroundColor: ChartColor[1], - pointHoverRadius: 10, - data: [65, 75, 70, 80, 60, 80] - }] - }; - - var chartOptions = { - scale: { - ticks: { - beginAtZero: true, - min: 0, - max: 100, - stepSize: 20, - display: false, - fontColor: chartFontcolor - }, - pointLabels: { - fontSize: 14, - fontColor: chartFontcolor, - color: chartGridLineColor - } - }, - legend: false, - legendCallback: function (chart) { - var text = []; - text.push('
'); - return text.join(""); - }, - }; - - var radarChart = new Chart(marksCanvas, { - type: 'radar', - data: marksData, - options: chartOptions - }); - document.getElementById('radar-chart-legend').innerHTML = radarChart.generateLegend(); - } - if ($("#doughnutChart").length) { - var doughnutChartCanvas = $("#doughnutChart").get(0).getContext("2d"); - var doughnutPieData = { - datasets: [{ - data: [20, 80, 83], - backgroundColor: [ - ChartColor[0], - ChartColor[1], - ChartColor[2] - ], - borderColor: [ - ChartColor[0], - ChartColor[1], - ChartColor[2] - ], - }], - - // These labels appear in the legend and in the tooltips when hovering different arcs - labels: [ - 'Sales', - 'Profit', - 'Return', - ] - }; - var doughnutPieOptions = { - cutoutPercentage: 75, - animationEasing: "easeOutBounce", - animateRotate: true, - animateScale: false, - responsive: true, - maintainAspectRatio: true, - showScale: true, - legend: false, - legendCallback: function (chart) { - var text = []; - text.push('
'); - return text.join(""); - }, - layout: { - padding: { - left: 0, - right: 0, - top: 0, - bottom: 0 - } - } - }; - var doughnutChart = new Chart(doughnutChartCanvas, { - type: 'doughnut', - data: doughnutPieData, - options: doughnutPieOptions - }); - document.getElementById('doughnut-chart-legend').innerHTML = doughnutChart.generateLegend(); - } - if ($("#pieChart").length) { - var pieChartCanvas = $("#pieChart").get(0).getContext("2d"); - var pieChart = new Chart(pieChartCanvas, { - type: 'pie', - data: { - datasets: [{ - data: [30, 40, 30], - backgroundColor: [ - ChartColor[0], - ChartColor[1], - ChartColor[2] - ], - borderColor: [ - ChartColor[0], - ChartColor[1], - ChartColor[2] - ], - }], - labels: [ - 'Sales', - 'Profit', - 'Return', - ] - }, - options: { - responsive: true, - animation: { - animateScale: true, - animateRotate: true - }, - legend: { - display: false - }, - legendCallback: function (chart) { - var text = []; - text.push('
'); - return text.join(""); - } - } - }); - document.getElementById('pie-chart-legend').innerHTML = pieChart.generateLegend(); - } - if ($('#scatterChart').length) { - var options = { - type: 'bubble', - data: { - datasets: [{ - label: 'John', - data: [{ - x: 3, - y: 10, - r: 5 - }], - backgroundColor: ChartColor[0], - borderColor: ChartColor[0], - borderWidth: 0, - hoverBackgroundColor: ChartColor[0] - }, - { - label: 'Paul', - data: [{ - x: 2, - y: 2, - r: 10 - }], - backgroundColor: ChartColor[1], - borderColor: ChartColor[1], - borderWidth: 0, - hoverBackgroundColor: ChartColor[1] - }, { - label: 'Paul', - data: [{ - x: 12, - y: 32, - r: 13 - }], - backgroundColor: ChartColor[2], - borderColor: ChartColor[2], - borderWidth: 0, - hoverBackgroundColor: ChartColor[2] - }, - { - label: 'Paul', - data: [{ - x: 29, - y: 52, - r: 5 - }], - backgroundColor: ChartColor[0], - borderColor: ChartColor[0], - borderWidth: 0, - hoverBackgroundColor: ChartColor[0] - }, - { - label: 'Paul', - data: [{ - x: 49, - y: 62, - r: 5 - }], - backgroundColor: ChartColor[1], - borderColor: ChartColor[1], - borderWidth: 0, - hoverBackgroundColor: ChartColor[1] - }, - { - label: 'Paul', - data: [{ - x: 22, - y: 22, - r: 5 - }], - backgroundColor: ChartColor[2], - borderColor: ChartColor[2], - borderWidth: 0, - hoverBackgroundColor: ChartColor[2] - }, - { - label: 'Paul', - data: [{ - x: 23, - y: 25, - r: 5 - }], - backgroundColor: ChartColor[1], - borderColor: ChartColor[1], - borderWidth: 0, - hoverBackgroundColor: ChartColor[1] - }, - { - label: 'Paul', - data: [{ - x: 12, - y: 10, - r: 5 - }], - backgroundColor: ChartColor[1], - borderColor: ChartColor[1], - borderWidth: 0, - hoverBackgroundColor: ChartColor[1] - }, - { - label: 'Paul', - data: [{ - x: 34, - y: 23, - r: 5 - }], - backgroundColor: ChartColor[1], - borderColor: ChartColor[1], - borderWidth: 0, - hoverBackgroundColor: ChartColor[1] - }, - { - label: 'Paul', - data: [{ - x: 30, - y: 20, - r: 10 - }], - backgroundColor: ChartColor[1], - borderColor: ChartColor[1], - borderWidth: 0, - hoverBackgroundColor: ChartColor[1] - }, - { - label: 'Paul', - data: [{ - x: 12, - y: 17, - r: 5 - }], - backgroundColor: ChartColor[1], - borderColor: ChartColor[1], - borderWidth: 0, - hoverBackgroundColor: ChartColor[1] - }, - { - label: 'Paul', - data: [{ - x: 32, - y: 37, - r: 5 - }], - backgroundColor: ChartColor[0], - borderColor: ChartColor[0], - borderWidth: 0, - hoverBackgroundColor: ChartColor[0] - }, - { - label: 'Paul', - data: [{ - x: 52, - y: 57, - r: 5 - }], - backgroundColor: ChartColor[0], - borderColor: ChartColor[0], - borderWidth: 0, - hoverBackgroundColor: ChartColor[0] - }, - { - label: 'Paul', - data: [{ - x: 77, - y: 40, - r: 5 - }], - backgroundColor: ChartColor[0], - borderColor: ChartColor[0], - borderWidth: 0, - hoverBackgroundColor: ChartColor[0] - }, { - label: 'Paul', - data: [{ - x: 67, - y: 40, - r: 5 - }], - backgroundColor: ChartColor[0], - borderColor: ChartColor[0], - borderWidth: 0, - hoverBackgroundColor: ChartColor[0] - }, { - label: 'Paul', - data: [{ - x: 47, - y: 20, - r: 10 - }], - backgroundColor: ChartColor[0], - borderColor: ChartColor[0], - borderWidth: 0, - hoverBackgroundColor: ChartColor[0] - }, { - label: 'Paul', - data: [{ - x: 77, - y: 10, - r: 5 - }], - backgroundColor: ChartColor[0], - borderColor: ChartColor[0], - borderWidth: 0, - hoverBackgroundColor: ChartColor[0] - }, { - label: 'Paul', - data: [{ - x: 57, - y: 10, - r: 10 - }], - backgroundColor: ChartColor[0], - borderColor: ChartColor[0], - borderWidth: 0, - hoverBackgroundColor: ChartColor[0] - }, { - label: 'Paul', - data: [{ - x: 57, - y: 40, - r: 5 - }], - backgroundColor: ChartColor[3], - borderColor: ChartColor[3], - borderWidth: 0, - hoverBackgroundColor: ChartColor[3] - } - ] - }, - options: { - legend: false, - scales: { - xAxes: [{ - gridLines: { - display: false, - color: chartGridLineColor, - zeroLineColor: chartGridLineColor - }, - ticks: { - autoSkip: true, - autoSkipPadding: 45, - maxRotation: 0, - maxTicksLimit: 10, - fontColor: chartFontcolor - } - }], - yAxes: [{ - gridLines: { - color: chartGridLineColor, - zeroLineColor: chartGridLineColor, - display: true - }, - ticks: { - beginAtZero: true, - stepSize: 25, - max: 100, - fontColor: chartFontcolor - } - }] - }, - legend: { - display: false - }, - legendCallback: function (chart) { - var text = []; - text.push('
'); - return text.join(""); - }, - } - } - - var ctx = document.getElementById('scatterChart').getContext('2d'); - new Chart(ctx, options); - document.getElementById('scatter-chart-legend').innerHTML = barChart.generateLegend(); - } -}); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/chartist.js b/app/frontend/static/assets/js/shared/chartist.js deleted file mode 100755 index a4a93e99..00000000 --- a/app/frontend/static/assets/js/shared/chartist.js +++ /dev/null @@ -1,207 +0,0 @@ -(function($) { - //simple line - 'use strict'; - if ($('#ct-chart-line').length) { - new Chartist.Line('#ct-chart-line', { - labels: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'], - series: [ - [12, 9, 7, 8, 5], - [2, 1, 3.5, 7, 3], - [1, 3, 4, 5, 6] - ] - }, { - fullWidth: true, - chartPadding: { - right: 40 - } - }); - } - - //Line scatterer - var times = function(n) { - return Array.apply(null, new Array(n)); - }; - - var data = times(52).map(Math.random).reduce(function(data, rnd, index) { - data.labels.push(index + 1); - for (var i = 0; i < data.series.length; i++) { - data.series[i].push(Math.random() * 100) - } - return data; - }, { - labels: [], - series: times(4).map(function() { - return new Array() - }) - }); - - var options = { - showLine: false, - axisX: { - labelInterpolationFnc: function(value, index) { - return index % 13 === 0 ? 'W' + value : null; - } - } - }; - - var responsiveOptions = [ - ['screen and (min-width: 640px)', { - axisX: { - labelInterpolationFnc: function(value, index) { - return index % 4 === 0 ? 'W' + value : null; - } - } - }] - ]; - - if ($('#ct-chart-line-scatterer').length) { - new Chartist.Line('#ct-chart-line-scatterer', data, options, responsiveOptions); - } - - //Stacked bar Chart - if ($('#ct-chart-stacked-bar').length) { - new Chartist.Bar('#ct-chart-stacked-bar', { - labels: ['Q1', 'Q2', 'Q3', 'Q4'], - series: [ - ['800000', '1200000', '1400000', '1300000'], - ['200000', '400000', '500000', '300000'], - ['100000', '200000', '400000', '600000'], - ['400000', '600000', '200000', '0000'] - ] - }, { - stackBars: true, - axisY: { - labelInterpolationFnc: function(value) { - return (value / 1000) + 'k'; - } - } - }).on('draw', function(data) { - if (data.type === 'bar') { - data.element.attr({ - style: 'stroke-width: 30px' - }); - } - }); - } - - - //Horizontal bar chart - if ($('#ct-chart-horizontal-bar').length) { - new Chartist.Bar('#ct-chart-horizontal-bar', { - labels: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'], - series: [ - [5, 4, 3, 7, 5, 10, 3], - [3, 2, 9, 5, 4, 6, 4], - [2, 6, 7, 1, 3, 5, 9], - [2, 6, 7, 1, 3, 5, 19], - ] - }, { - seriesBarDistance: 10, - reverseData: true, - horizontalBars: true, - axisY: { - offset: 20 - } - }); - } - - //Pie - if ($('#ct-chart-pie').length) { - var data = { - series: [5, 3, 4] - }; - - var sum = function(a, b) { - return a + b - }; - - new Chartist.Pie('#ct-chart-pie', data, { - labelInterpolationFnc: function(value) { - return Math.round(value / data.series.reduce(sum) * 100) + '%'; - } - }); - } - - //Donut - var labels = ['safari', 'chrome', 'explorer', 'firefox']; - var data = { - series: [20, 40, 10, 30] - }; - - if ($('#ct-chart-donut').length) { - new Chartist.Pie('#ct-chart-donut', data, { - donut: true, - donutWidth: 60, - donutSolid: true, - startAngle: 270, - showLabel: true, - labelInterpolationFnc: function(value, index) { - var percentage = Math.round(value / data.series.reduce(sum) * 100) + '%'; - return labels[index] + ' ' + percentage; - } - }); - } - - - - //Dashboard Tickets Chart - if ($('#ct-chart-dash-barChart').length) { - new Chartist.Bar('#ct-chart-dash-barChart', { - labels: ['Week 1', 'Week 2', 'Week 3', 'Week 4'], - series: [ - [300, 140, 230, 140], - [323, 529, 644, 230], - [734, 539, 624, 334], - ] - }, { - stackBars: true, - axisY: { - labelInterpolationFnc: function(value) { - return (value / 100) + 'k'; - } - } - }).on('draw', function(data) { - if (data.type === 'bar') { - data.element.attr({ - style: 'stroke-width: 50px' - }); - } - }); - } - - //dashboard staked bar chart - if ($('#ct-chart-vartical-stacked-bar').length) { - new Chartist.Bar('#ct-chart-vartical-stacked-bar', { - labels: ['J', 'F', 'M', 'A', 'M', 'J', 'A'], - series: [{ - "name": "Income", - "data": [8, 4, 6, 3, 7, 3, 8] - }, - { - "name": "Outcome", - "data": [2, 7, 4, 8, 4, 6, 1] - }, - { - "name": "Revenue", - "data": [4, 3, 3, 6, 7, 2, 4] - } - ] - }, { - seriesBarDistance: 10, - reverseData: true, - horizontalBars: false, - height: '280px', - fullWidth: true, - chartPadding: { - top: 30, - left: 0, - right: 0, - bottom: 0 - }, - plugins: [ - Chartist.plugins.legend() - ] - }); - } - -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/circle-progress.js b/app/frontend/static/assets/js/shared/circle-progress.js deleted file mode 100755 index 8b0dc3e3..00000000 --- a/app/frontend/static/assets/js/shared/circle-progress.js +++ /dev/null @@ -1,8 +0,0 @@ -(function($) { - 'use strict'; - if ($(".circle-progress-1").length) { - $('.circle-progress-1').circleProgress({}).on('circle-animation-progress', function(event, progress, stepValue) { - $(this).find('.value').html(Math.round(100 * stepValue.toFixed(2).substr(1)) + '%'); - }); - } -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/clipboard.js b/app/frontend/static/assets/js/shared/clipboard.js deleted file mode 100755 index dbc1b200..00000000 --- a/app/frontend/static/assets/js/shared/clipboard.js +++ /dev/null @@ -1,10 +0,0 @@ -(function($) { - 'use strict'; - var clipboard = new ClipboardJS('.btn-clipboard'); - clipboard.on('success', function(e) { - console.log(e); - }); - clipboard.on('error', function(e) { - console.log(e); - }); -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/context-menu.js b/app/frontend/static/assets/js/shared/context-menu.js deleted file mode 100755 index bbaa60a5..00000000 --- a/app/frontend/static/assets/js/shared/context-menu.js +++ /dev/null @@ -1,240 +0,0 @@ -(function($) { - 'use strict'; - $.contextMenu({ - selector: '#context-menu-simple', - callback: function(key, options) {}, - items: { - "edit": { - name: "Edit", - icon: "edit" - }, - "cut": { - name: "Cut", - icon: "cut" - }, - copy: { - name: "Copy", - icon: "copy" - }, - "paste": { - name: "Paste", - icon: "paste" - }, - "delete": { - name: "Delete", - icon: "delete" - }, - "sep1": "---------", - "quit": { - name: "Quit", - icon: function() { - return 'context-menu-icon context-menu-icon-quit'; - } - } - } - }); - $.contextMenu({ - selector: '#context-menu-access', - callback: function(key, options) { - var m = "clicked: " + key; - window.console && console.log(m) || alert(m); - }, - items: { - "edit": { - name: "Edit", - icon: "edit", - accesskey: "e" - }, - "cut": { - name: "Cut", - icon: "cut", - accesskey: "c" - }, - // first unused character is taken (here: o) - "copy": { - name: "Copy", - icon: "copy", - accesskey: "c o p y" - }, - // words are truncated to their first letter (here: p) - "paste": { - name: "Paste", - icon: "paste", - accesskey: "cool paste" - }, - "delete": { - name: "Delete", - icon: "delete" - }, - "sep1": "---------", - "quit": { - name: "Quit", - icon: function($element, key, item) { - return 'context-menu-icon context-menu-icon-quit'; - } - } - } - }); - $.contextMenu({ - selector: '#context-menu-open', - callback: function(key, options) { - var m = "clicked: " + key; - window.console && console.log(m) || alert(m); - }, - items: { - "edit": { - name: "Closing on Click", - icon: "edit", - callback: function() { - return true; - } - }, - "cut": { - name: "Open after Click", - icon: "cut", - callback: function() { - return false; - } - } - } - }); - $.contextMenu({ - selector: '#context-menu-multi', - callback: function(key, options) { - var m = "clicked: " + key; - window.console && console.log(m) || alert(m); - }, - items: { - "edit": { - "name": "Edit", - "icon": "edit" - }, - "cut": { - "name": "Cut", - "icon": "cut" - }, - "sep1": "---------", - "quit": { - "name": "Quit", - "icon": "quit" - }, - "sep2": "---------", - "fold1": { - "name": "Sub group", - "items": { - "fold1-key1": { - "name": "Foo bar" - }, - "fold2": { - "name": "Sub group 2", - "items": { - "fold2-key1": { - "name": "alpha" - }, - "fold2-key2": { - "name": "bravo" - }, - "fold2-key3": { - "name": "charlie" - } - } - }, - "fold1-key3": { - "name": "delta" - } - } - }, - "fold1a": { - "name": "Other group", - "items": { - "fold1a-key1": { - "name": "echo" - }, - "fold1a-key2": { - "name": "foxtrot" - }, - "fold1a-key3": { - "name": "golf" - } - } - } - } - }); - $.contextMenu({ - selector: '#context-menu-hover', - trigger: 'hover', - delay: 500, - callback: function(key, options) { - var m = "clicked: " + key; - window.console && console.log(m) || alert(m); - }, - items: { - "edit": { - name: "Edit", - icon: "edit" - }, - "cut": { - name: "Cut", - icon: "cut" - }, - "copy": { - name: "Copy", - icon: "copy" - }, - "paste": { - name: "Paste", - icon: "paste" - }, - "delete": { - name: "Delete", - icon: "delete" - }, - "sep1": "---------", - "quit": { - name: "Quit", - icon: function($element, key, item) { - return 'context-menu-icon context-menu-icon-quit'; - } - } - } - }); - $.contextMenu({ - selector: '#context-menu-hover-autohide', - trigger: 'hover', - delay: 500, - autoHide: true, - callback: function(key, options) { - var m = "clicked: " + key; - window.console && console.log(m) || alert(m); - }, - items: { - "edit": { - name: "Edit", - icon: "edit" - }, - "cut": { - name: "Cut", - icon: "cut" - }, - "copy": { - name: "Copy", - icon: "copy" - }, - "paste": { - name: "Paste", - icon: "paste" - }, - "delete": { - name: "Delete", - icon: "delete" - }, - "sep1": "---------", - "quit": { - name: "Quit", - icon: function($element, key, item) { - return 'context-menu-icon context-menu-icon-quit'; - } - } - } - }); -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/cropper.js b/app/frontend/static/assets/js/shared/cropper.js deleted file mode 100755 index aadeb30f..00000000 --- a/app/frontend/static/assets/js/shared/cropper.js +++ /dev/null @@ -1,6 +0,0 @@ -(function($) { - 'use strict'; - $('#cropperExample').cropper({ - aspectRatio: 16 / 9 - }); -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/data-table.js b/app/frontend/static/assets/js/shared/data-table.js deleted file mode 100755 index 4a2f302d..00000000 --- a/app/frontend/static/assets/js/shared/data-table.js +++ /dev/null @@ -1,62 +0,0 @@ -(function ($) { - 'use strict'; - $(function () { - $('#order-listing').DataTable({ - "aLengthMenu": [ - [5, 10, 15, -1], - [5, 10, 15, "All"] - ], - "iDisplayLength": 5, - "bLengthChange": false, - "language": { - search: "Sort By :" - } - }); - $('#order-listing').each(function () { - var datatable = $(this); - // SEARCH - Add the placeholder for Search and Turn this into in-line form control - var search_input = datatable.closest('.dataTables_wrapper').find('div[id$=_filter] input'); - search_input.attr('placeholder', 'Sort'); - // search_input.removeClass('form-control-sm'); - var s = datatable.closest('.dataTables_wrapper').find(".dataTables_filter").append(''); - }); - }); - $(function () { - var fixedColumnTable = $('#fixed-column').DataTable({ - "aLengthMenu": [ - [5, 10, 15, -1], - [5, 10, 15, "All"] - ], - columnDefs: [{ - orderable: false, - targets: [1] - }], - fixedHeader: { - header: false, - footer: true - }, - scrollY: 300, - scrollX: true, - scrollCollapse: true, - bAutoWidth: false, - paging: false, - fixedColumns: true, - "iDisplayLength": 10, - "bLengthChange": true, - "language": { - search: "Sort By :" - } - }); - $('#fixed-column').each(function () { - var datatable = $(this); - // SEARCH - Add the placeholder for Search and Turn this into in-line form control - var search_input = datatable.closest('.dataTables_wrapper').find('div[id$=_filter] input'); - search_input.attr('placeholder', 'Sort'); - // search_input.removeClass('form-control-sm'); - var s = datatable.closest('.dataTables_wrapper').find(".dataTables_filter").append(''); - }); - $('#fixed-column_wrapper').resize(function() { - fixedColumnTable.draw(); - }); - }); -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/db.js b/app/frontend/static/assets/js/shared/db.js deleted file mode 100755 index c11debb6..00000000 --- a/app/frontend/static/assets/js/shared/db.js +++ /dev/null @@ -1,907 +0,0 @@ -(function($) { - (function() { - - var db = { - - loadData: function(filter) { - return $.grep(this.clients, function(client) { - return (!filter.Name || client.Name.indexOf(filter.Name) > -1) && - (filter.Age === undefined || client.Age === filter.Age) && - (!filter.Address || client.Address.indexOf(filter.Address) > -1) && - (!filter.Country || client.Country === filter.Country) && - (filter.Married === undefined || client.Married === filter.Married); - }); - }, - - insertItem: function(insertingClient) { - this.clients.push(insertingClient); - }, - - updateItem: function(updatingClient) {}, - - deleteItem: function(deletingClient) { - var clientIndex = $.inArray(deletingClient, this.clients); - this.clients.splice(clientIndex, 1); - } - - }; - - window.db = db; - - - db.countries = [{ - Name: "", - Id: 0 - }, - { - Name: "United States", - Id: 1 - }, - { - Name: "Canada", - Id: 2 - }, - { - Name: "United Kingdom", - Id: 3 - }, - { - Name: "France", - Id: 4 - }, - { - Name: "Brazil", - Id: 5 - }, - { - Name: "China", - Id: 6 - }, - { - Name: "Russia", - Id: 7 - } - ]; - - db.clients = [{ - "Name": "Otto Clay", - "Age": 61, - "Country": 6, - "Address": "Ap #897-1459 Quam Avenue", - "Married": false - }, - { - "Name": "Connor Johnston", - "Age": 73, - "Country": 7, - "Address": "Ap #370-4647 Dis Av.", - "Married": false - }, - { - "Name": "Lacey Hess", - "Age": 29, - "Country": 7, - "Address": "Ap #365-8835 Integer St.", - "Married": false - }, - { - "Name": "Timothy Henson", - "Age": 78, - "Country": 1, - "Address": "911-5143 Luctus Ave", - "Married": false - }, - { - "Name": "Ramona Benton", - "Age": 43, - "Country": 5, - "Address": "Ap #614-689 Vehicula Street", - "Married": true - }, - { - "Name": "Ezra Tillman", - "Age": 51, - "Country": 1, - "Address": "P.O. Box 738, 7583 Quisque St.", - "Married": true - }, - { - "Name": "Dante Carter", - "Age": 59, - "Country": 1, - "Address": "P.O. Box 976, 6316 Lorem, St.", - "Married": false - }, - { - "Name": "Christopher Mcclure", - "Age": 58, - "Country": 1, - "Address": "847-4303 Dictum Av.", - "Married": true - }, - { - "Name": "Ruby Rocha", - "Age": 62, - "Country": 2, - "Address": "5212 Sagittis Ave", - "Married": false - }, - { - "Name": "Imelda Hardin", - "Age": 39, - "Country": 5, - "Address": "719-7009 Auctor Av.", - "Married": false - }, - { - "Name": "Jonah Johns", - "Age": 28, - "Country": 5, - "Address": "P.O. Box 939, 9310 A Ave", - "Married": false - }, - { - "Name": "Herman Rosa", - "Age": 49, - "Country": 7, - "Address": "718-7162 Molestie Av.", - "Married": true - }, - { - "Name": "Arthur Gay", - "Age": 20, - "Country": 7, - "Address": "5497 Neque Street", - "Married": false - }, - { - "Name": "Xena Wilkerson", - "Age": 63, - "Country": 1, - "Address": "Ap #303-6974 Proin Street", - "Married": true - }, - { - "Name": "Lilah Atkins", - "Age": 33, - "Country": 5, - "Address": "622-8602 Gravida Ave", - "Married": true - }, - { - "Name": "Malik Shepard", - "Age": 59, - "Country": 1, - "Address": "967-5176 Tincidunt Av.", - "Married": false - }, - { - "Name": "Keely Silva", - "Age": 24, - "Country": 1, - "Address": "P.O. Box 153, 8995 Praesent Ave", - "Married": false - }, - { - "Name": "Hunter Pate", - "Age": 73, - "Country": 7, - "Address": "P.O. Box 771, 7599 Ante, Road", - "Married": false - }, - { - "Name": "Mikayla Roach", - "Age": 55, - "Country": 5, - "Address": "Ap #438-9886 Donec Rd.", - "Married": true - }, - { - "Name": "Upton Joseph", - "Age": 48, - "Country": 4, - "Address": "Ap #896-7592 Habitant St.", - "Married": true - }, - { - "Name": "Jeanette Pate", - "Age": 59, - "Country": 2, - "Address": "P.O. Box 177, 7584 Amet, St.", - "Married": false - }, - { - "Name": "Kaden Hernandez", - "Age": 79, - "Country": 3, - "Address": "366 Ut St.", - "Married": true - }, - { - "Name": "Kenyon Stevens", - "Age": 20, - "Country": 3, - "Address": "P.O. Box 704, 4580 Gravida Rd.", - "Married": false - }, - { - "Name": "Jerome Harper", - "Age": 31, - "Country": 5, - "Address": "2464 Porttitor Road", - "Married": false - }, - { - "Name": "Jelani Patel", - "Age": 36, - "Country": 2, - "Address": "P.O. Box 541, 5805 Nec Av.", - "Married": true - }, - { - "Name": "Keaton Oconnor", - "Age": 21, - "Country": 1, - "Address": "Ap #657-1093 Nec, Street", - "Married": false - }, - { - "Name": "Bree Johnston", - "Age": 31, - "Country": 2, - "Address": "372-5942 Vulputate Avenue", - "Married": false - }, - { - "Name": "Maisie Hodges", - "Age": 70, - "Country": 7, - "Address": "P.O. Box 445, 3880 Odio, Rd.", - "Married": false - }, - { - "Name": "Kuame Calhoun", - "Age": 39, - "Country": 2, - "Address": "P.O. Box 609, 4105 Rutrum St.", - "Married": true - }, - { - "Name": "Carlos Cameron", - "Age": 38, - "Country": 5, - "Address": "Ap #215-5386 A, Avenue", - "Married": false - }, - { - "Name": "Fulton Parsons", - "Age": 25, - "Country": 7, - "Address": "P.O. Box 523, 3705 Sed Rd.", - "Married": false - }, - { - "Name": "Wallace Christian", - "Age": 43, - "Country": 3, - "Address": "416-8816 Mauris Avenue", - "Married": true - }, - { - "Name": "Caryn Maldonado", - "Age": 40, - "Country": 1, - "Address": "108-282 Nonummy Ave", - "Married": false - }, - { - "Name": "Whilemina Frank", - "Age": 20, - "Country": 7, - "Address": "P.O. Box 681, 3938 Egestas. Av.", - "Married": true - }, - { - "Name": "Emery Moon", - "Age": 41, - "Country": 4, - "Address": "Ap #717-8556 Non Road", - "Married": true - }, - { - "Name": "Price Watkins", - "Age": 35, - "Country": 4, - "Address": "832-7810 Nunc Rd.", - "Married": false - }, - { - "Name": "Lydia Castillo", - "Age": 59, - "Country": 7, - "Address": "5280 Placerat, Ave", - "Married": true - }, - { - "Name": "Lawrence Conway", - "Age": 53, - "Country": 1, - "Address": "Ap #452-2808 Imperdiet St.", - "Married": false - }, - { - "Name": "Kalia Nicholson", - "Age": 67, - "Country": 5, - "Address": "P.O. Box 871, 3023 Tellus Road", - "Married": true - }, - { - "Name": "Brielle Baxter", - "Age": 45, - "Country": 3, - "Address": "Ap #822-9526 Ut, Road", - "Married": true - }, - { - "Name": "Valentine Brady", - "Age": 72, - "Country": 7, - "Address": "8014 Enim. Road", - "Married": true - }, - { - "Name": "Rebecca Gardner", - "Age": 57, - "Country": 4, - "Address": "8655 Arcu. Road", - "Married": true - }, - { - "Name": "Vladimir Tate", - "Age": 26, - "Country": 1, - "Address": "130-1291 Non, Rd.", - "Married": true - }, - { - "Name": "Vernon Hays", - "Age": 56, - "Country": 4, - "Address": "964-5552 In Rd.", - "Married": true - }, - { - "Name": "Allegra Hull", - "Age": 22, - "Country": 4, - "Address": "245-8891 Donec St.", - "Married": true - }, - { - "Name": "Hu Hendrix", - "Age": 65, - "Country": 7, - "Address": "428-5404 Tempus Ave", - "Married": true - }, - { - "Name": "Kenyon Battle", - "Age": 32, - "Country": 2, - "Address": "921-6804 Lectus St.", - "Married": false - }, - { - "Name": "Gloria Nielsen", - "Age": 24, - "Country": 4, - "Address": "Ap #275-4345 Lorem, Street", - "Married": true - }, - { - "Name": "Illiana Kidd", - "Age": 59, - "Country": 2, - "Address": "7618 Lacus. Av.", - "Married": false - }, - { - "Name": "Adria Todd", - "Age": 68, - "Country": 6, - "Address": "1889 Tincidunt Road", - "Married": false - }, - { - "Name": "Kirsten Mayo", - "Age": 71, - "Country": 1, - "Address": "100-8640 Orci, Avenue", - "Married": false - }, - { - "Name": "Willa Hobbs", - "Age": 60, - "Country": 6, - "Address": "P.O. Box 323, 158 Tristique St.", - "Married": false - }, - { - "Name": "Alexis Clements", - "Age": 69, - "Country": 5, - "Address": "P.O. Box 176, 5107 Proin Rd.", - "Married": false - }, - { - "Name": "Akeem Conrad", - "Age": 60, - "Country": 2, - "Address": "282-495 Sed Ave", - "Married": true - }, - { - "Name": "Montana Silva", - "Age": 79, - "Country": 6, - "Address": "P.O. Box 120, 9766 Consectetuer St.", - "Married": false - }, - { - "Name": "Kaseem Hensley", - "Age": 77, - "Country": 6, - "Address": "Ap #510-8903 Mauris. Av.", - "Married": true - }, - { - "Name": "Christopher Morton", - "Age": 35, - "Country": 5, - "Address": "P.O. Box 234, 3651 Sodales Avenue", - "Married": false - }, - { - "Name": "Wade Fernandez", - "Age": 49, - "Country": 6, - "Address": "740-5059 Dolor. Road", - "Married": true - }, - { - "Name": "Illiana Kirby", - "Age": 31, - "Country": 2, - "Address": "527-3553 Mi Ave", - "Married": false - }, - { - "Name": "Kimberley Hurley", - "Age": 65, - "Country": 5, - "Address": "P.O. Box 637, 9915 Dictum St.", - "Married": false - }, - { - "Name": "Arthur Olsen", - "Age": 74, - "Country": 5, - "Address": "887-5080 Eget St.", - "Married": false - }, - { - "Name": "Brody Potts", - "Age": 59, - "Country": 2, - "Address": "Ap #577-7690 Sem Road", - "Married": false - }, - { - "Name": "Dillon Ford", - "Age": 60, - "Country": 1, - "Address": "Ap #885-9289 A, Av.", - "Married": true - }, - { - "Name": "Hannah Juarez", - "Age": 61, - "Country": 2, - "Address": "4744 Sapien, Rd.", - "Married": true - }, - { - "Name": "Vincent Shaffer", - "Age": 25, - "Country": 2, - "Address": "9203 Nunc St.", - "Married": true - }, - { - "Name": "George Holt", - "Age": 27, - "Country": 6, - "Address": "4162 Cras Rd.", - "Married": false - }, - { - "Name": "Tobias Bartlett", - "Age": 74, - "Country": 4, - "Address": "792-6145 Mauris St.", - "Married": true - }, - { - "Name": "Xavier Hooper", - "Age": 35, - "Country": 1, - "Address": "879-5026 Interdum. Rd.", - "Married": false - }, - { - "Name": "Declan Dorsey", - "Age": 31, - "Country": 2, - "Address": "Ap #926-4171 Aenean Road", - "Married": true - }, - { - "Name": "Clementine Tran", - "Age": 43, - "Country": 4, - "Address": "P.O. Box 176, 9865 Eu Rd.", - "Married": true - }, - { - "Name": "Pamela Moody", - "Age": 55, - "Country": 6, - "Address": "622-6233 Luctus Rd.", - "Married": true - }, - { - "Name": "Julie Leon", - "Age": 43, - "Country": 6, - "Address": "Ap #915-6782 Sem Av.", - "Married": true - }, - { - "Name": "Shana Nolan", - "Age": 79, - "Country": 5, - "Address": "P.O. Box 603, 899 Eu St.", - "Married": false - }, - { - "Name": "Vaughan Moody", - "Age": 37, - "Country": 5, - "Address": "880 Erat Rd.", - "Married": false - }, - { - "Name": "Randall Reeves", - "Age": 44, - "Country": 3, - "Address": "1819 Non Street", - "Married": false - }, - { - "Name": "Dominic Raymond", - "Age": 68, - "Country": 1, - "Address": "Ap #689-4874 Nisi Rd.", - "Married": true - }, - { - "Name": "Lev Pugh", - "Age": 69, - "Country": 5, - "Address": "Ap #433-6844 Auctor Avenue", - "Married": true - }, - { - "Name": "Desiree Hughes", - "Age": 80, - "Country": 4, - "Address": "605-6645 Fermentum Avenue", - "Married": true - }, - { - "Name": "Idona Oneill", - "Age": 23, - "Country": 7, - "Address": "751-8148 Aliquam Avenue", - "Married": true - }, - { - "Name": "Lani Mayo", - "Age": 76, - "Country": 1, - "Address": "635-2704 Tristique St.", - "Married": true - }, - { - "Name": "Cathleen Bonner", - "Age": 40, - "Country": 1, - "Address": "916-2910 Dolor Av.", - "Married": false - }, - { - "Name": "Sydney Murray", - "Age": 44, - "Country": 5, - "Address": "835-2330 Fringilla St.", - "Married": false - }, - { - "Name": "Brenna Rodriguez", - "Age": 77, - "Country": 6, - "Address": "3687 Imperdiet Av.", - "Married": true - }, - { - "Name": "Alfreda Mcdaniel", - "Age": 38, - "Country": 7, - "Address": "745-8221 Aliquet Rd.", - "Married": true - }, - { - "Name": "Zachery Atkins", - "Age": 30, - "Country": 1, - "Address": "549-2208 Auctor. Road", - "Married": true - }, - { - "Name": "Amelia Rich", - "Age": 56, - "Country": 4, - "Address": "P.O. Box 734, 4717 Nunc Rd.", - "Married": false - }, - { - "Name": "Kiayada Witt", - "Age": 62, - "Country": 3, - "Address": "Ap #735-3421 Malesuada Avenue", - "Married": false - }, - { - "Name": "Lysandra Pierce", - "Age": 36, - "Country": 1, - "Address": "Ap #146-2835 Curabitur St.", - "Married": true - }, - { - "Name": "Cara Rios", - "Age": 58, - "Country": 4, - "Address": "Ap #562-7811 Quam. Ave", - "Married": true - }, - { - "Name": "Austin Andrews", - "Age": 55, - "Country": 7, - "Address": "P.O. Box 274, 5505 Sociis Rd.", - "Married": false - }, - { - "Name": "Lillian Peterson", - "Age": 39, - "Country": 2, - "Address": "6212 A Avenue", - "Married": false - }, - { - "Name": "Adria Beach", - "Age": 29, - "Country": 2, - "Address": "P.O. Box 183, 2717 Nunc Avenue", - "Married": true - }, - { - "Name": "Oleg Durham", - "Age": 80, - "Country": 4, - "Address": "931-3208 Nunc Rd.", - "Married": false - }, - { - "Name": "Casey Reese", - "Age": 60, - "Country": 4, - "Address": "383-3675 Ultrices, St.", - "Married": false - }, - { - "Name": "Kane Burnett", - "Age": 80, - "Country": 1, - "Address": "759-8212 Dolor. Ave", - "Married": false - }, - { - "Name": "Stewart Wilson", - "Age": 46, - "Country": 7, - "Address": "718-7845 Sagittis. Av.", - "Married": false - }, - { - "Name": "Charity Holcomb", - "Age": 31, - "Country": 6, - "Address": "641-7892 Enim. Ave", - "Married": false - }, - { - "Name": "Kyra Cummings", - "Age": 43, - "Country": 4, - "Address": "P.O. Box 702, 6621 Mus. Av.", - "Married": false - }, - { - "Name": "Stuart Wallace", - "Age": 25, - "Country": 7, - "Address": "648-4990 Sed Rd.", - "Married": true - }, - { - "Name": "Carter Clarke", - "Age": 59, - "Country": 6, - "Address": "Ap #547-2921 A Street", - "Married": false - } - ]; - - db.users = [{ - "ID": "x", - "Account": "A758A693-0302-03D1-AE53-EEFE22855556", - "Name": "Carson Kelley", - "RegisterDate": "2002-04-20T22:55:52-07:00" - }, - { - "Account": "D89FF524-1233-0CE7-C9E1-56EFF017A321", - "Name": "Prescott Griffin", - "RegisterDate": "2011-02-22T05:59:55-08:00" - }, - { - "Account": "06FAAD9A-5114-08F6-D60C-961B2528B4F0", - "Name": "Amir Saunders", - "RegisterDate": "2014-08-13T09:17:49-07:00" - }, - { - "Account": "EED7653D-7DD9-A722-64A8-36A55ECDBE77", - "Name": "Derek Thornton", - "RegisterDate": "2012-02-27T01:31:07-08:00" - }, - { - "Account": "2A2E6D40-FEBD-C643-A751-9AB4CAF1E2F6", - "Name": "Fletcher Romero", - "RegisterDate": "2010-06-25T15:49:54-07:00" - }, - { - "Account": "3978F8FA-DFF0-DA0E-0A5D-EB9D281A3286", - "Name": "Thaddeus Stein", - "RegisterDate": "2013-11-10T07:29:41-08:00" - }, - { - "Account": "658DBF5A-176E-569A-9273-74FB5F69FA42", - "Name": "Nash Knapp", - "RegisterDate": "2005-06-24T09:11:19-07:00" - }, - { - "Account": "76D2EE4B-7A73-1212-F6F2-957EF8C1F907", - "Name": "Quamar Vega", - "RegisterDate": "2011-04-13T20:06:29-07:00" - }, - { - "Account": "00E46809-A595-CE82-C5B4-D1CAEB7E3E58", - "Name": "Philip Galloway", - "RegisterDate": "2008-08-21T18:59:38-07:00" - }, - { - "Account": "C196781C-DDCC-AF83-DDC2-CA3E851A47A0", - "Name": "Mason French", - "RegisterDate": "2000-11-15T00:38:37-08:00" - }, - { - "Account": "5911F201-818A-B393-5888-13157CE0D63F", - "Name": "Ross Cortez", - "RegisterDate": "2010-05-27T17:35:32-07:00" - }, - { - "Account": "B8BB78F9-E1A1-A956-086F-E12B6FE168B6", - "Name": "Logan King", - "RegisterDate": "2003-07-08T16:58:06-07:00" - }, - { - "Account": "06F636C3-9599-1A2D-5FD5-86B24ADDE626", - "Name": "Cedric Leblanc", - "RegisterDate": "2011-06-30T14:30:10-07:00" - }, - { - "Account": "FE880CDD-F6E7-75CB-743C-64C6DE192412", - "Name": "Simon Sullivan", - "RegisterDate": "2013-06-11T16:35:07-07:00" - }, - { - "Account": "BBEDD673-E2C1-4872-A5D3-C4EBD4BE0A12", - "Name": "Jamal West", - "RegisterDate": "2001-03-16T20:18:29-08:00" - }, - { - "Account": "19BC22FA-C52E-0CC6-9552-10365C755FAC", - "Name": "Hector Morales", - "RegisterDate": "2012-11-01T01:56:34-07:00" - }, - { - "Account": "A8292214-2C13-5989-3419-6B83DD637D6C", - "Name": "Herrod Hart", - "RegisterDate": "2008-03-13T19:21:04-07:00" - }, - { - "Account": "0285564B-F447-0E7F-EAA1-7FB8F9C453C8", - "Name": "Clark Maxwell", - "RegisterDate": "2004-08-05T08:22:24-07:00" - }, - { - "Account": "EA78F076-4F6E-4228-268C-1F51272498AE", - "Name": "Reuben Walter", - "RegisterDate": "2011-01-23T01:55:59-08:00" - }, - { - "Account": "6A88C194-EA21-426F-4FE2-F2AE33F51793", - "Name": "Ira Ingram", - "RegisterDate": "2008-08-15T05:57:46-07:00" - }, - { - "Account": "4275E873-439C-AD26-56B3-8715E336508E", - "Name": "Damian Morrow", - "RegisterDate": "2015-09-13T01:50:55-07:00" - }, - { - "Account": "A0D733C4-9070-B8D6-4387-D44F0BA515BE", - "Name": "Macon Farrell", - "RegisterDate": "2011-03-14T05:41:40-07:00" - }, - { - "Account": "B3683DE8-C2FA-7CA0-A8A6-8FA7E954F90A", - "Name": "Joel Galloway", - "RegisterDate": "2003-02-03T04:19:01-08:00" - }, - { - "Account": "01D95A8E-91BC-2050-F5D0-4437AAFFD11F", - "Name": "Rigel Horton", - "RegisterDate": "2015-06-20T11:53:11-07:00" - }, - { - "Account": "F0D12CC0-31AC-A82E-FD73-EEEFDBD21A36", - "Name": "Sylvester Gaines", - "RegisterDate": "2004-03-12T09:57:13-08:00" - }, - { - "Account": "874FCC49-9A61-71BC-2F4E-2CE88348AD7B", - "Name": "Abbot Mckay", - "RegisterDate": "2008-12-26T20:42:57-08:00" - }, - { - "Account": "B8DA1912-20A0-FB6E-0031-5F88FD63EF90", - "Name": "Solomon Green", - "RegisterDate": "2013-09-04T01:44:47-07:00" - } - ]; - - }()); -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/desktop-notification.js b/app/frontend/static/assets/js/shared/desktop-notification.js deleted file mode 100755 index 073e4b81..00000000 --- a/app/frontend/static/assets/js/shared/desktop-notification.js +++ /dev/null @@ -1,80 +0,0 @@ -(function($) { - 'use strict'; - $.fn.easyNotify = function(options) { - - var settings = $.extend({ - title: "Notification", - options: { - body: "", - icon: "", - lang: 'pt-BR', - onClose: "", - onClick: "", - onError: "" - } - }, options); - - this.init = function() { - var notify = this; - if (!("Notification" in window)) { - alert("This browser does not support desktop notification"); - } else if (Notification.permission === "granted") { - - var notification = new Notification(settings.title, settings.options); - - notification.onclose = function() { - if (typeof settings.options.onClose === 'function') { - settings.options.onClose(); - } - }; - - notification.onclick = function() { - if (typeof settings.options.onClick === 'function') { - settings.options.onClick(); - } - }; - - notification.onerror = function() { - if (typeof settings.options.onError === 'function') { - settings.options.onError(); - } - }; - - } else if (Notification.permission !== 'denied') { - Notification.requestPermission(function(permission) { - if (permission === "granted") { - notify.init(); - } - - }); - } - - }; - - this.init(); - return this; - }; - - - //Initialise notification - var myFunction = function() { - alert('Click function'); - }; - var myImg = "https://unsplash.it/600/600?image=777"; - - $("form").submit(function(event) { - event.preventDefault(); - - var options = { - title: $("#title").val(), - options: { - body: $("#message").val(), - icon: myImg, - lang: 'en-US', - onClick: myFunction - } - }; - console.log(options); - $("#easyNotify").easyNotify(options); - }); -}(jQuery)); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/dragula.js b/app/frontend/static/assets/js/shared/dragula.js deleted file mode 100755 index 212ec4c5..00000000 --- a/app/frontend/static/assets/js/shared/dragula.js +++ /dev/null @@ -1,16 +0,0 @@ -(function($) { - 'use strict'; - var iconTochange; - dragula([document.getElementById("dragula-left"), document.getElementById("dragula-right")]); - dragula([document.getElementById("profile-list-left"), document.getElementById("profile-list-right")]); - dragula([document.getElementById("dragula-event-left"), document.getElementById("dragula-event-right")]) - .on('drop', function(el) { - console.log($(el)); - iconTochange = $(el).find('.mdi'); - if (iconTochange.hasClass('mdi-check')) { - iconTochange.removeClass('mdi-check text-primary').addClass('mdi-check-all text-success'); - } else if (iconTochange.hasClass('mdi-check-all')) { - iconTochange.removeClass('mdi-check-all text-success').addClass('mdi-check text-primary'); - } - }) -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/dropify.js b/app/frontend/static/assets/js/shared/dropify.js deleted file mode 100755 index 1a74da3c..00000000 --- a/app/frontend/static/assets/js/shared/dropify.js +++ /dev/null @@ -1,4 +0,0 @@ -(function($) { - 'use strict'; - $('.dropify').dropify(); -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/dropzone.js b/app/frontend/static/assets/js/shared/dropzone.js deleted file mode 100755 index 991ec710..00000000 --- a/app/frontend/static/assets/js/shared/dropzone.js +++ /dev/null @@ -1,6 +0,0 @@ -(function($) { - 'use strict'; - $("my-awesome-dropzone").dropzone({ - url: "bootstrapdash.com/" - }); -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/editorDemo.js b/app/frontend/static/assets/js/shared/editorDemo.js deleted file mode 100755 index 15c19aa0..00000000 --- a/app/frontend/static/assets/js/shared/editorDemo.js +++ /dev/null @@ -1,221 +0,0 @@ -(function($) { - 'use strict'; - /*Quill editor*/ - if ($("#quillExample1").length) { - var quill = new Quill('#quillExample1', { - modules: { - toolbar: [ - [{ - header: [1, 2, false] - }], - ['bold', 'italic', 'underline'], - ['image', 'code-block'] - ] - }, - placeholder: 'Compose an epic...', - theme: 'snow' // or 'bubble' - }); - } - - /*simplemde editor*/ - if ($("#simpleMde").length) { - var simplemde = new SimpleMDE({ - element: $("#simpleMde")[0] - }); - } - - /*Tinymce editor*/ - if ($("#tinyMceExample").length) { - tinymce.init({ - selector: '#tinyMceExample', - height: 500, - theme: 'silver', - plugins: [ - 'advlist autolink lists link image charmap print preview hr anchor pagebreak', - 'searchreplace wordcount visualblocks visualchars code fullscreen', - 'insertdatetime media nonbreaking save table contextmenu directionality', - 'emoticons template paste textcolor colorpicker textpattern imagetools codesample toc help' - ], - toolbar1: 'undo redo | insert | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image', - toolbar2: 'print preview media | forecolor backcolor emoticons | codesample help', - image_advtab: true, - templates: [{ - title: 'Test template 1', - content: 'Test 1' - }, - { - title: 'Test template 2', - content: 'Test 2' - } - ], - content_css: [] - }); - } - - /*Summernote editor*/ - if ($("#summernoteExample").length) { - $('#summernoteExample').summernote({ - height: 300, - tabsize: 2 - }); - } - - /*X-editable editor*/ - if ($('#editable-form').length) { - $.fn.editable.defaults.mode = 'inline'; - $.fn.editableform.buttons = - '' + - ''; - $('#username').editable({ - type: 'text', - pk: 1, - name: 'username', - title: 'Enter username' - }); - - $('#firstname').editable({ - validate: function(value) { - if ($.trim(value) === '') return 'This field is required'; - } - }); - - $('#sex').editable({ - source: [{ - value: 1, - text: 'Male' - }, - { - value: 2, - text: 'Female' - } - ] - }); - - $('#status').editable(); - - $('#group').editable({ - showbuttons: false - }); - - $('#vacation').editable({ - datepicker: { - todayBtn: 'linked' - } - }); - - $('#dob').editable(); - - $('#event').editable({ - placement: 'right', - combodate: { - firstItem: 'name' - } - }); - - $('#meeting_start').editable({ - format: 'yyyy-mm-dd hh:ii', - viewformat: 'dd/mm/yyyy hh:ii', - validate: function(v) { - if (v && v.getDate() === 10) return 'Day cant be 10!'; - }, - datetimepicker: { - todayBtn: 'linked', - weekStart: 1 - } - }); - - $('#comments').editable({ - showbuttons: 'bottom' - }); - - $('#note').editable(); - $('#pencil').on("click", function(e) { - e.stopPropagation(); - e.preventDefault(); - $('#note').editable('toggle'); - }); - - $('#state').editable({ - source: ["Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", "Connecticut", "Delaware", "Florida", "Georgia", "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", "Maine", "Maryland", "Massachusetts", "Michigan", "Minnesota", "Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire", "New Jersey", "New Mexico", "New York", "North Dakota", "North Carolina", "Ohio", "Oklahoma", "Oregon", "Pennsylvania", "Rhode Island", "South Carolina", "South Dakota", "Tennessee", "Texas", "Utah", "Vermont", "Virginia", "Washington", "West Virginia", "Wisconsin", "Wyoming"] - }); - - $('#state2').editable({ - value: 'California', - typeahead: { - name: 'state', - local: ["Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", "Connecticut", "Delaware", "Florida", "Georgia", "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", "Maine", "Maryland", "Massachusetts", "Michigan", "Minnesota", "Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire", "New Jersey", "New Mexico", "New York", "North Dakota", "North Carolina", "Ohio", "Oklahoma", "Oregon", "Pennsylvania", "Rhode Island", "South Carolina", "South Dakota", "Tennessee", "Texas", "Utah", "Vermont", "Virginia", "Washington", "West Virginia", "Wisconsin", "Wyoming"] - } - }); - - $('#fruits').editable({ - pk: 1, - limit: 3, - source: [{ - value: 1, - text: 'banana' - }, - { - value: 2, - text: 'peach' - }, - { - value: 3, - text: 'apple' - }, - { - value: 4, - text: 'watermelon' - }, - { - value: 5, - text: 'orange' - } - ] - }); - - $('#tags').editable({ - inputclass: 'input-large', - select2: { - tags: ['html', 'javascript', 'css', 'ajax'], - tokenSeparators: [",", " "] - } - }); - - $('#address').editable({ - url: '/post', - value: { - city: "Moscow", - street: "Lenina", - building: "12" - }, - validate: function(value) { - if (value.city === '') return 'city is required!'; - }, - display: function(value) { - if (!value) { - $(this).empty(); - return; - } - var html = '' + $('
').text(value.city).html() + ', ' + $('
').text(value.street).html() + ' st., bld. ' + $('
').text(value.building).html(); - $(this).html(html); - } - }); - - $('#user .editable').on('hidden', function(e, reason) { - if (reason === 'save' || reason === 'nochange') { - var $next = $(this).closest('tr').next().find('.editable'); - if ($('#autoopen').is(':checked')) { - setTimeout(function() { - $next.editable('show'); - }, 300); - } else { - $next.focus(); - } - } - }); - } -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/file-upload.js b/app/frontend/static/assets/js/shared/file-upload.js deleted file mode 100755 index 6991221c..00000000 --- a/app/frontend/static/assets/js/shared/file-upload.js +++ /dev/null @@ -1,12 +0,0 @@ -(function($) { - 'use strict'; - $(function() { - $('.file-upload-browse').on('click', function() { - var file = $(this).parent().parent().parent().find('.file-upload-default'); - file.trigger('click'); - }); - $('.file-upload-default').on('change', function() { - $(this).parent().find('.form-control').val($(this).val().replace(/C:\\fakepath\\/i, '')); - }); - }); -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/float-chart.js b/app/frontend/static/assets/js/shared/float-chart.js deleted file mode 100755 index 7466cd80..00000000 --- a/app/frontend/static/assets/js/shared/float-chart.js +++ /dev/null @@ -1,580 +0,0 @@ -(function ($) { - 'use strict'; - - function labelFormatter(label, series) { - return "
" + label + "
" + Math.round(series.percent) + "%
"; - } - - if ($("#curved-line-chart").length) { - var data = [{ - data: 18000, - color: '#FABA66', - label: 'Linda' - }, - { - data: 20000, - color: '#F36368', - label: 'John' - }, - { - data: 13000, - color: '#76C1FA', - label: 'Margaret' - }, - { - data: 15000, - color: '#63CF72', - label: 'Richard' - } - ]; - var d1 = [ - [0, 6], - [1, 14], - [2, 10], - [3, 14], - [4, 5] - ]; - var d2 = [ - [0, 6], - [1, 7], - [2, 11], - [3, 8], - [4, 11] - ]; - var d3 = [ - [0, 6], - [1, 5], - [2, 6], - [3, 10], - [4, 5] - ]; - var curvedLineOptions = { - series: { - shadowSize: 0, - curvedLines: { //This is a third party plugin to make curved lines - apply: true, - active: true, - monotonicFit: true - }, - lines: { - show: false, - lineWidth: 0 - } - }, - grid: { - borderWidth: 0, - labelMargin: 10, - hoverable: true, - clickable: true, - mouseActiveRadius: 6 - }, - xaxis: { - tickDecimals: 0, - ticks: false - }, - yaxis: { - tickDecimals: 0, - ticks: false - }, - legend: { - // show: true, - container: $("#chartLegend") - } - } - - $.plot($("#curved-line-chart"), [{ - data: d1, - lines: { - show: true, - fill: 0.98 - }, - label: 'Plans', - stack: true - }, - { - data: d2, - lines: { - show: true, - fill: 0.98 - }, - label: 'Purchase', - stack: true - }, - { - data: d3, - lines: { - show: true, - fill: 0.98 - }, - label: 'Services', - stack: true - } - ], curvedLineOptions); - } - - if ($("#pie-chart").length) { - $.plot("#pie-chart", data, { - series: { - pie: { - show: true, - radius: 1, - label: { - show: true, - radius: 3 / 4, - formatter: labelFormatter, - background: { - opacity: 0.5 - } - } - } - }, - legend: { - show: false - } - }); - } - - if ($("#line-chart").length) { - var d1 = [ - [0, 30], - [1, 35], - [2, 35], - [3, 30], - [4, 30] - ]; - var d2 = [ - [0, 50], - [1, 40], - [2, 45], - [3, 60], - [4, 50] - ]; - var d3 = [ - [0, 40], - [1, 50], - [2, 35], - [3, 25], - [4, 40] - ]; - - var stackedData = [{ - data: d1, - color: "#76C1FA" - }, - { - data: d2, - color: "#63CF72" - }, - { - data: d3, - color: "#F36368" - } - ]; - /*--------------------------------------------------- - Make some random data for Recent Items chart - ---------------------------------------------------*/ - - - var options = { - series: { - shadowSize: 0, - lines: { - show: true, - }, - }, - grid: { - borderWidth: 1, - labelMargin: 10, - mouseActiveRadius: 6, - borderColor: 'rgba(255,255,255,0.1)', - show: true, - hoverable: true, - clickable: true - - }, - xaxis: { - tickColor: 'rgba(255,255,255,0.3)', - tickDecimals: 0, - axisLabelColour: '#fff', - font: { - lineHeight: 15, - style: "normal", - color: "#fff" - }, - shadowSize: 0, - ticks: [ - [0, "Jan"], - [1, "Feb"], - [2, "Mar"], - [3, "Apr"], - [4, "May"], - [5, "Jun"], - [6, "Jul"], - [7, "Aug"], - [8, "Sep"], - [9, "Oct"], - [10, "Nov"], - [11, "Dec"] - ] - }, - - yaxis: { - tickColor: 'rgba(255,255,255,0.3)', - tickDecimals: 0, - font: { - lineHeight: 15, - style: "normal", - color: "#fff", - }, - shadowSize: 0 - }, - - legend: { - container: '.flc-line', - backgroundOpacity: 0.5, - noColumns: 0, - backgroundColor: "white", - lineWidth: 0 - }, - colors: ["#F36368", "#63CF72", "#68B3C8"] - }; - $.plot($("#line-chart"), [{ - data: d1, - lines: { - show: true - }, - label: 'Product A', - stack: true, - color: '#F36368' - }, - { - data: d2, - lines: { - show: true - }, - label: 'Product B', - stack: true, - color: '#FABA66' - }, - { - data: d3, - lines: { - show: true - }, - label: 'Product C', - stack: true, - color: '#68B3C8' - } - ], options); - } - - if ($(".flot-chart-line").length) { - $(".flot-chart-line").bind("plothover", function (event, pos, item) { - if (item) { - var x = item.datapoint[0].toFixed(2), - y = item.datapoint[1].toFixed(2); - $(".flot-tooltip").html(item.series.label + " Sales " + " : " + y).css({ - top: item.pageY + 5, - left: item.pageX + 5 - }).show(); - } else { - $(".flot-tooltip").hide(); - } - }); - - $("
").appendTo("body"); - } - - if ($("#area-chart").length) { - var d1 = [ - [0, 0], - [1, 35], - [2, 35], - [3, 30], - [4, 30], - [5, 5], - [6, 32], - [7, 37], - [8, 30], - [9, 35], - [10, 30], - [11, 5] - ]; - var options = { - series: { - shadowSize: 0, - curvedLines: { //This is a third party plugin to make curved lines - apply: true, - active: true, - monotonicFit: true - }, - lines: { - show: false, - fill: 0.98, - lineWidth: 0, - }, - }, - grid: { - borderWidth: 0, - labelMargin: 10, - hoverable: true, - clickable: true, - mouseActiveRadius: 6, - - }, - xaxis: { - tickDecimals: 0, - tickLength: 0 - }, - - yaxis: { - tickDecimals: 0, - tickLength: 0 - }, - - legend: { - show: false - } - }; - var curvedLineOptions = { - series: { - shadowSize: 0, - curvedLines: { //This is a third party plugin to make curved lines - apply: true, - active: true, - monotonicFit: true - }, - lines: { - show: false, - lineWidth: 0, - }, - }, - grid: { - borderWidth: 0, - labelMargin: 10, - hoverable: true, - clickable: true, - mouseActiveRadius: 6, - - }, - xaxis: { - tickDecimals: 0, - ticks: false - }, - - yaxis: { - tickDecimals: 0, - ticks: false - }, - - legend: { - noColumns: 4, - container: $("#chartLegend") - } - }; - $.plot($("#area-chart"), [{ - data: d1, - lines: { - show: true, - fill: 0.6 - }, - label: 'Product 1', - stack: true, - color: '#76C1FA' - }], options); - } - - if ($("#column-chart").length) { - var data = [ - ["January", 10], - ["February", 8], - ["March", 4], - ["April", 13], - ["May", 17], - ["June", 9] - ]; - $.plot("#column-chart", [data], { - series: { - bars: { - show: true, - barWidth: 0.6, - align: "center" - } - }, - xaxis: { - mode: "categories", - tickLength: 0 - }, - - grid: { - borderWidth: 0, - labelMargin: 10, - hoverable: true, - clickable: true, - mouseActiveRadius: 6, - } - - }); - } - - if ($("#stacked-bar-chart").length) { - var d1 = []; - for (var i = 0; i <= 10; i += 1) { - d1.push([i, parseInt(Math.random() * 30)]); - } - - var d2 = []; - for (var i = 0; i <= 10; i += 1) { - d2.push([i, parseInt(Math.random() * 30)]); - } - - var d3 = []; - for (var i = 0; i <= 10; i += 1) { - d3.push([i, parseInt(Math.random() * 30)]); - } - $.plot("#stacked-bar-chart", stackedData, { - series: { - stack: 0, - lines: { - show: false, - fill: true, - steps: false - }, - bars: { - show: true, - fill: true, - barWidth: 0.6 - }, - }, - grid: { - borderWidth: 0, - labelMargin: 10, - hoverable: true, - clickable: true, - mouseActiveRadius: 6, - } - }); - } - - if ($("#realtime-chart").length) { - var data = [], - totalPoints = 300; - - function getRandomData() { - - if (data.length > 0) - data = data.slice(1); - - // Do a random walk - - while (data.length < totalPoints) { - - var prev = data.length > 0 ? data[data.length - 1] : 50, - y = prev + Math.random() * 10 - 5; - - if (y < 0) { - y = 0; - } else if (y > 100) { - y = 100; - } - - data.push(y); - } - - // Zip the generated y values with the x values - - var res = []; - for (var i = 0; i < data.length; ++i) { - res.push([i, data[i]]) - } - - return res; - } - var updateInterval = 30; - - var plot = $.plot("#realtime-chart", [getRandomData()], { - series: { - shadowSize: 0 // Drawing is faster without shadows - }, - yaxis: { - min: 0, - max: 100 - }, - xaxis: { - show: false - }, - grid: { - borderWidth: 0, - labelMargin: 10, - hoverable: true, - clickable: true, - mouseActiveRadius: 6, - } - - }); - - function update() { - plot.setData([getRandomData()]); - // Since the axes don't change, we don't need to call plot.setupGrid() - plot.draw(); - setTimeout(update, updateInterval); - } - update(); - } - - if ($("#curved-line-chart").length) { - var d1 = [ - [0, 7], - [1, 11], - [2, 11], - [3, 13], - [4, 9] - ]; - var d2 = [ - [0, 5], - [1, 9], - [2, 9], - [3, 9], - [4, 7] - ]; - var d3 = [ - [0, 3], - [1, 6], - [2, 5], - [3, 6], - [4, 3] - ]; - $.plot($("#curved-line-chart"), [{ - data: d1, - lines: { - show: true, - fill: 0.98 - }, - label: 'Plans', - stack: false, - color: '#A8B4FD' - }, - { - data: d2, - lines: { - show: true, - fill: 0.98 - }, - label: 'Purchase', - stack: false, - color: '#8C95FC' - }, - { - data: d3, - lines: { - show: true, - fill: 0.98 - }, - label: 'Services', - stack: false, - color: '#5E50F9' - } - ], curvedLineOptions); - } - -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/form-addons.js b/app/frontend/static/assets/js/shared/form-addons.js deleted file mode 100755 index 5cb4cb7a..00000000 --- a/app/frontend/static/assets/js/shared/form-addons.js +++ /dev/null @@ -1,148 +0,0 @@ -(function ($) { - 'use strict'; - - // Jquery Tag Input Starts - if ($('#tags').length) { - $('#tags').tagsInput({ - 'width': '100%', - 'height': '75%', - 'interactive': true, - 'defaultText': 'Add More', - 'removeWithBackspace': true, - 'minChars': 0, - 'maxChars': 20, // if not provided there is no limit - 'placeholderColor': '#666666' - }); - } - - - // Jquery Bar Rating Starts - - $(function () { - function ratingEnable() { - $('#example-1to10').barrating('show', { - theme: 'bars-1to10' - }); - - $('#example-movie').barrating('show', { - theme: 'bars-movie' - }); - - $('#example-movie').barrating('set', 'Mediocre'); - - $('#example-square').barrating('show', { - theme: 'bars-square', - showValues: true, - showSelectedRating: false - }); - - $('#example-pill').barrating('show', { - theme: 'bars-pill', - initialRating: 'A', - showValues: true, - showSelectedRating: false, - allowEmpty: true, - emptyValue: '-- no rating selected --', - onSelect: function (value, text) { - alert('Selected rating: ' + value); - } - }); - - $('#example-reversed').barrating('show', { - theme: 'bars-reversed', - showSelectedRating: true, - reverse: true - }); - - $('#example-horizontal').barrating('show', { - theme: 'bars-horizontal', - reverse: true, - hoverState: false - }); - - $('#example-fontawesome').barrating({ - theme: 'fontawesome-stars', - showSelectedRating: false - }); - - $('#example-css').barrating({ - theme: 'css-stars', - showSelectedRating: false - }); - - $('#example-bootstrap').barrating({ - theme: 'bootstrap-stars', - showSelectedRating: false - }); - - var currentRating = $('#example-fontawesome-o').data('current-rating'); - - $('.stars-example-fontawesome-o .current-rating') - .find('span') - .html(currentRating); - - $('.stars-example-fontawesome-o .clear-rating').on('click', function (event) { - event.preventDefault(); - - $('#example-fontawesome-o') - .barrating('clear'); - }); - - $('#example-fontawesome-o').barrating({ - theme: 'fontawesome-stars-o', - showSelectedRating: false, - initialRating: currentRating, - onSelect: function (value, text) { - if (!value) { - $('#example-fontawesome-o') - .barrating('clear'); - } else { - $('.stars-example-fontawesome-o .current-rating') - .addClass('hidden'); - - $('.stars-example-fontawesome-o .your-rating') - .removeClass('hidden') - .find('span') - .html(value); - } - }, - onClear: function (value, text) { - $('.stars-example-fontawesome-o') - .find('.current-rating') - .removeClass('hidden') - .end() - .find('.your-rating') - .addClass('hidden'); - } - }); - } - - function ratingDisable() { - $('select').barrating('destroy'); - } - - $('.rating-enable').click(function (event) { - event.preventDefault(); - - ratingEnable(); - - $(this).addClass('deactivated'); - $('.rating-disable').removeClass('deactivated'); - }); - - $('.rating-disable').click(function (event) { - event.preventDefault(); - - ratingDisable(); - - $(this).addClass('deactivated'); - $('.rating-enable').removeClass('deactivated'); - }); - - ratingEnable(); - }); - - - // Jquery Bar Rating Ends - -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/form-repeater.js b/app/frontend/static/assets/js/shared/form-repeater.js deleted file mode 100755 index ad80ffc3..00000000 --- a/app/frontend/static/assets/js/shared/form-repeater.js +++ /dev/null @@ -1,38 +0,0 @@ -(function($) { - 'use strict'; - $(function() { - $('.repeater').repeater({ - // (Optional) - // "defaultValues" sets the values of added items. The keys of - // defaultValues refer to the value of the input's name attribute. - // If a default value is not specified for an input, then it will - // have its value cleared. - defaultValues: { - 'text-input': 'foo' - }, - // (Optional) - // "show" is called just after an item is added. The item is hidden - // at this point. If a show callback is not given the item will - // have $(this).show() called on it. - show: function() { - $(this).slideDown(); - }, - // (Optional) - // "hide" is called when a user clicks on a data-repeater-delete - // element. The item is still visible. "hide" is passed a function - // as its first argument which will properly remove the item. - // "hide" allows for a confirmation step, to send a delete request - // to the server, etc. If a hide callback is not given the item - // will be deleted. - hide: function(deleteElement) { - if (confirm('Are you sure you want to delete this element?')) { - $(this).slideUp(deleteElement); - } - }, - // (Optional) - // Removes the delete button from the first list item, - // defaults to false. - isFirstItemUndeletable: true - }) - }); -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/form-validation.js b/app/frontend/static/assets/js/shared/form-validation.js deleted file mode 100755 index ce24d3e6..00000000 --- a/app/frontend/static/assets/js/shared/form-validation.js +++ /dev/null @@ -1,111 +0,0 @@ -(function ($) { - 'use strict'; - $.validator.setDefaults({ - submitHandler: function (form, event) { - - // Ajax code for submission - var form = $(form); - event.preventDefault(); - $.ajax({ - type: form.attr('method'), - data: form.serialize(), - url: form.attr('action'), - success: function (data) { - //success message - }, - error: function (data) { - //error message - } - }); - } - }); - $(function () { - // validate the comment form when it is submitted - $("#commentForm").validate({ - errorPlacement: function (label, element) { - label.addClass('mt-2 text-danger'); - label.insertAfter(element); - }, - highlight: function (element, errorClass) { - $(element).parent().addClass('has-danger') - $(element).addClass('form-control-danger') - } - }); - // validate signup form on keyup and submit - $("#signupForm").validate({ - rules: { - firstname: "required", - lastname: "required", - username: { - required: true, - minlength: 2 - }, - password: { - required: true, - minlength: 5 - }, - confirm_password: { - required: true, - minlength: 5, - equalTo: "#password" - }, - email: { - required: true, - email: true - }, - topic: { - required: "#newsletter:checked", - minlength: 2 - }, - agree: "required" - }, - messages: { - firstname: "Please enter your firstname", - lastname: "Please enter your lastname", - username: { - required: "Please enter a username", - minlength: "Your username must consist of at least 2 characters" - }, - password: { - required: "Please provide a password", - minlength: "Your password must be at least 5 characters long" - }, - confirm_password: { - required: "Please provide a password", - minlength: "Your password must be at least 5 characters long", - equalTo: "Please enter the same password as above" - }, - email: "Please enter a valid email address", - agree: "Please accept our policy", - topic: "Please select at least 2 topics" - }, - errorPlacement: function (label, element) { - label.addClass('mt-2 text-danger'); - label.insertAfter(element); - }, - highlight: function (element, errorClass) { - $(element).parent().addClass('has-danger') - $(element).addClass('form-control-danger') - } - }); - // propose username by combining first- and lastname - $("#username").focus(function () { - var firstname = $("#firstname").val(); - var lastname = $("#lastname").val(); - if (firstname && lastname && !this.value) { - this.value = firstname + "." + lastname; - } - }); - //code to hide topic selection, disable for demo - var newsletter = $("#newsletter"); - // newsletter topics are optional, hide at first - var inital = newsletter.is(":checked"); - var topics = $("#newsletter_topics")[inital ? "removeClass" : "addClass"]("gray"); - var topicInputs = topics.find("input").attr("disabled", !inital); - // show when newsletter is checked - newsletter.on("click", function () { - topics[this.checked ? "removeClass" : "addClass"]("gray"); - topicInputs.attr("disabled", !this.checked); - }); - }); -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/formpickers.js b/app/frontend/static/assets/js/shared/formpickers.js deleted file mode 100755 index 2c3d058c..00000000 --- a/app/frontend/static/assets/js/shared/formpickers.js +++ /dev/null @@ -1,41 +0,0 @@ -(function ($) { - 'use strict'; - if ($("#timepicker-example").length) { - $('#timepicker-example').datetimepicker({ - format: 'LT' - }); - } - if ($(".color-picker").length) { - $('.color-picker').asColorPicker(); - } - if ($("#datepicker-popup").length) { - $('#datepicker-popup').datepicker({ - enableOnReadonly: true, - todayHighlight: true, - }); - } - if ($("#inline-datepicker").length) { - $('#inline-datepicker').datepicker({ - enableOnReadonly: true, - todayHighlight: true, - // language: 'en' For English Language - }); - } - if ($(".datepicker-autoclose").length) { - $('.datepicker-autoclose').datepicker({ - autoclose: true - }); - } - if ($('input[name="date-range"]').length) { - $('input[name="date-range"]').daterangepicker(); - } - if ($('input[name="date-time-range"]').length) { - $('input[name="date-time-range"]').daterangepicker({ - timePicker: true, - timePickerIncrement: 30, - locale: { - format: 'MM/DD/YYYY h:mm A' - } - }); - } -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/google-charts.js b/app/frontend/static/assets/js/shared/google-charts.js deleted file mode 100755 index fd38e55e..00000000 --- a/app/frontend/static/assets/js/shared/google-charts.js +++ /dev/null @@ -1,131 +0,0 @@ -(function ($) { - 'use strict'; - google.charts.load('current', { - 'packages': ['line'] - }); - google.charts.setOnLoadCallback(drawChart); - - function drawChart() { - - var data = new google.visualization.DataTable(); - data.addColumn('number', 'Day'); - data.addColumn('number', 'Guardians of the Galaxy'); - data.addColumn('number', 'The Avengers'); - data.addColumn('number', 'Transformers: Age of Extinction'); - - data.addRows([ - [1, 37.8, 80.8, 41.8], - [2, 30.9, 69.5, 32.4], - [3, 25.4, 57, 25.7], - [4, 11.7, 18.8, 10.5], - [5, 11.9, 17.6, 10.4], - [6, 8.8, 13.6, 7.7], - [7, 7.6, 12.3, 9.6], - [8, 12.3, 29.2, 10.6], - [9, 16.9, 42.9, 14.8], - [10, 12.8, 30.9, 11.6], - [11, 5.3, 7.9, 4.7], - [12, 6.6, 8.4, 5.2], - [13, 4.8, 6.3, 3.6], - [14, 4.2, 6.2, 3.4] - ]); - - var options = { - legend: { - maxLines: 2, - position: 'top' - }, - title: 'Box Office Earnings in First Two Weeks of Opening', - subtitle: 'in millions of dollars (USD)' - }; - - var chart = new google.charts.Line(document.getElementById('line-chart')); - - chart.draw(data, google.charts.Line.convertOptions(options)); - } -})(jQuery); - - -(function ($) { - google.charts.load('current', { - 'packages': ['bar'] - }); - google.charts.setOnLoadCallback(drawChart); - - function drawChart() { - var data = google.visualization.arrayToDataTable([ - ['Year', 'Sales', 'Expenses', 'Profit'], - ['2014', 1000, 400, 200], - ['2015', 1170, 460, 250], - ['2016', 660, 1120, 300], - ['2017', 1030, 540, 350] - ]); - - var options = { - chart: { - title: 'Company Performance', - subtitle: 'Sales, Expenses, and Profit: 2014-2017', - }, - bars: 'horizontal' // Required for Material Bar Charts. - }; - - var chart = new google.charts.Bar(document.getElementById('Bar-chart')); - - chart.draw(data, google.charts.Bar.convertOptions(options)); - } -})(jQuery); - - -(function ($) { - google.charts.load("current", { - packages: ["corechart"] - }); - google.charts.setOnLoadCallback(drawChart); - - function drawChart() { - var data = google.visualization.arrayToDataTable([ - ['Task', 'Hours per Day'], - ['Work', 11], - ['Eat', 2], - ['Commute', 2], - ['Watch TV', 2], - ['Sleep', 7] - ]); - - var options = { - title: 'My Daily Activities', - pieHole: 0.4, - }; - - var chart = new google.visualization.PieChart(document.getElementById('donutchart')); - chart.draw(data, options); - } -})(jQuery); - - -(function ($) { - google.charts.load("current", { - packages: ["corechart"] - }); - google.charts.setOnLoadCallback(drawChart); - - function drawChart() { - var data = google.visualization.arrayToDataTable([ - ['Language', 'Speakers (in millions)'], - ['German', 5.85], - ['French', 1.66], - ['Italian', 0.316], - ['Romansh', 0.0791] - ]); - - var options = { - legend: 'none', - pieSliceText: 'label', - title: 'Swiss Language Use (100 degree rotation)', - pieStartAngle: 100, - }; - - var chart = new google.visualization.PieChart(document.getElementById('piechart')); - chart.draw(data, options); - } -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/google-maps.js b/app/frontend/static/assets/js/shared/google-maps.js deleted file mode 100755 index 412573b4..00000000 --- a/app/frontend/static/assets/js/shared/google-maps.js +++ /dev/null @@ -1,681 +0,0 @@ -'use strict'; - - -function initMap() { - //Map location - var MapLocation = { - lat: 40.6971494, - lng: -74.2598719 - }; - - // Map Zooming - var MapZoom = 14; - - - // Basic Map - var MapWithMarker = new google.maps.Map(document.getElementById('map-with-marker'), { - zoom: MapZoom, - center: MapLocation - }); - var marker_1 = new google.maps.Marker({ - position: MapLocation, - map: MapWithMarker - }); - - // Basic map with cutom marker - var CutomMarker = new google.maps.Map(document.getElementById('cutom-marker'), { - zoom: MapZoom, - center: MapLocation - }); - var iconBase = '../../images/sprites/'; - var marker_2 = new google.maps.Marker({ - position: MapLocation, - map: CutomMarker, - icon: iconBase + 'flag.png' - }); - - // Map without controls - var MinimalMap = new google.maps.Map(document.getElementById('map-minimal'), { - zoom: MapZoom, - center: MapLocation, - disableDefaultUI: true - }); - var marker_3 = new google.maps.Marker({ - position: MapLocation, - map: MinimalMap - }); - - // Night Mode - var NightModeMap = new google.maps.Map(document.getElementById('night-mode-map'), { - zoom: MapZoom, - center: MapLocation, - styles: [{ - "featureType": "all", - "elementType": "all", - "stylers": [{ - "saturation": -100 - }, - { - "gamma": 0.5 - } - ] - }] - }); - - // Apple Theme - var AppletThemeMap = new google.maps.Map(document.getElementById('apple-map-theme'), { - zoom: MapZoom, - center: MapLocation, - styles: [{ - "featureType": "landscape.man_made", - "elementType": "geometry", - "stylers": [{ - "color": "#f7f1df" - }] - }, - { - "featureType": "landscape.natural", - "elementType": "geometry", - "stylers": [{ - "color": "#d0e3b4" - }] - }, - { - "featureType": "landscape.natural.terrain", - "elementType": "geometry", - "stylers": [{ - "visibility": "off" - }] - }, - { - "featureType": "poi", - "elementType": "labels", - "stylers": [{ - "visibility": "off" - }] - }, - { - "featureType": "poi.business", - "elementType": "all", - "stylers": [{ - "visibility": "off" - }] - }, - { - "featureType": "poi.medical", - "elementType": "geometry", - "stylers": [{ - "color": "#fbd3da" - }] - }, - { - "featureType": "poi.park", - "elementType": "geometry", - "stylers": [{ - "color": "#bde6ab" - }] - }, - { - "featureType": "road", - "elementType": "geometry.stroke", - "stylers": [{ - "visibility": "off" - }] - }, - { - "featureType": "road", - "elementType": "labels", - "stylers": [{ - "visibility": "off" - }] - }, - { - "featureType": "road.highway", - "elementType": "geometry.fill", - "stylers": [{ - "color": "#ffe15f" - }] - }, - { - "featureType": "road.highway", - "elementType": "geometry.stroke", - "stylers": [{ - "color": "#efd151" - }] - }, - { - "featureType": "road.arterial", - "elementType": "geometry.fill", - "stylers": [{ - "color": "#ffffff" - }] - }, - { - "featureType": "road.local", - "elementType": "geometry.fill", - "stylers": [{ - "color": "black" - }] - }, - { - "featureType": "transit.station.airport", - "elementType": "geometry.fill", - "stylers": [{ - "color": "#cfb2db" - }] - }, - { - "featureType": "water", - "elementType": "geometry", - "stylers": [{ - "color": "#a2daf2" - }] - } - ] - }); - - // Nature Theme - var NatureThemeMap = new google.maps.Map(document.getElementById('nature-map-theme'), { - zoom: MapZoom, - center: MapLocation, - styles: [{ - "featureType": "landscape", - "stylers": [{ - "hue": "#FFA800" - }, - { - "saturation": 0 - }, - { - "lightness": 0 - }, - { - "gamma": 1 - } - ] - }, - { - "featureType": "road.highway", - "stylers": [{ - "hue": "#53FF00" - }, - { - "saturation": -73 - }, - { - "lightness": 40 - }, - { - "gamma": 1 - } - ] - }, - { - "featureType": "road.arterial", - "stylers": [{ - "hue": "#FBFF00" - }, - { - "saturation": 0 - }, - { - "lightness": 0 - }, - { - "gamma": 1 - } - ] - }, - { - "featureType": "road.local", - "stylers": [{ - "hue": "#00FFFD" - }, - { - "saturation": 0 - }, - { - "lightness": 30 - }, - { - "gamma": 1 - } - ] - }, - { - "featureType": "water", - "stylers": [{ - "hue": "#00BFFF" - }, - { - "saturation": 6 - }, - { - "lightness": 8 - }, - { - "gamma": 1 - } - ] - }, - { - "featureType": "poi", - "stylers": [{ - "hue": "#679714" - }, - { - "saturation": 33.4 - }, - { - "lightness": -25.4 - }, - { - "gamma": 1 - } - ] - } - ] - }); - - // Captor Theme - var CaptorThemeMap = new google.maps.Map(document.getElementById('captor-map-theme'), { - zoom: MapZoom, - center: MapLocation, - styles: [{ - "featureType": "water", - "stylers": [{ - "color": "#0e171d" - }] - }, - { - "featureType": "landscape", - "stylers": [{ - "color": "#1e303d" - }] - }, - { - "featureType": "road", - "stylers": [{ - "color": "#1e303d" - }] - }, - { - "featureType": "poi.park", - "stylers": [{ - "color": "#1e303d" - }] - }, - { - "featureType": "transit", - "stylers": [{ - "color": "#182731" - }, - { - "visibility": "simplified" - } - ] - }, - { - "featureType": "poi", - "elementType": "labels.icon", - "stylers": [{ - "color": "#f0c514" - }, - { - "visibility": "off" - } - ] - }, - { - "featureType": "poi", - "elementType": "labels.text.stroke", - "stylers": [{ - "color": "#1e303d" - }, - { - "visibility": "off" - } - ] - }, - { - "featureType": "transit", - "elementType": "labels.text.fill", - "stylers": [{ - "color": "#e77e24" - }, - { - "visibility": "off" - } - ] - }, - { - "featureType": "road", - "elementType": "labels.text.fill", - "stylers": [{ - "color": "#94a5a6" - }] - }, - { - "featureType": "administrative", - "elementType": "labels", - "stylers": [{ - "visibility": "simplified" - }, - { - "color": "#e84c3c" - } - ] - }, - { - "featureType": "poi", - "stylers": [{ - "color": "#e84c3c" - }, - { - "visibility": "off" - } - ] - } - ] - }); - - // Avagardo Theme - var AvagardoThemeMap = new google.maps.Map(document.getElementById('avocado-map-theme'), { - zoom: MapZoom, - center: MapLocation, - styles: [{ - "featureType": "water", - "elementType": "geometry", - "stylers": [{ - "visibility": "on" - }, - { - "color": "#aee2e0" - } - ] - }, - { - "featureType": "landscape", - "elementType": "geometry.fill", - "stylers": [{ - "color": "#abce83" - }] - }, - { - "featureType": "poi", - "elementType": "geometry.fill", - "stylers": [{ - "color": "#769E72" - }] - }, - { - "featureType": "poi", - "elementType": "labels.text.fill", - "stylers": [{ - "color": "#7B8758" - }] - }, - { - "featureType": "poi", - "elementType": "labels.text.stroke", - "stylers": [{ - "color": "#EBF4A4" - }] - }, - { - "featureType": "poi.park", - "elementType": "geometry", - "stylers": [{ - "visibility": "simplified" - }, - { - "color": "#8dab68" - } - ] - }, - { - "featureType": "road", - "elementType": "geometry.fill", - "stylers": [{ - "visibility": "simplified" - }] - }, - { - "featureType": "road", - "elementType": "labels.text.fill", - "stylers": [{ - "color": "#5B5B3F" - }] - }, - { - "featureType": "road", - "elementType": "labels.text.stroke", - "stylers": [{ - "color": "#ABCE83" - }] - }, - { - "featureType": "road", - "elementType": "labels.icon", - "stylers": [{ - "visibility": "off" - }] - }, - { - "featureType": "road.local", - "elementType": "geometry", - "stylers": [{ - "color": "#A4C67D" - }] - }, - { - "featureType": "road.arterial", - "elementType": "geometry", - "stylers": [{ - "color": "#9BBF72" - }] - }, - { - "featureType": "road.highway", - "elementType": "geometry", - "stylers": [{ - "color": "#EBF4A4" - }] - }, - { - "featureType": "transit", - "stylers": [{ - "visibility": "off" - }] - }, - { - "featureType": "administrative", - "elementType": "geometry.stroke", - "stylers": [{ - "visibility": "on" - }, - { - "color": "#87ae79" - } - ] - }, - { - "featureType": "administrative", - "elementType": "geometry.fill", - "stylers": [{ - "color": "#7f2200" - }, - { - "visibility": "off" - } - ] - }, - { - "featureType": "administrative", - "elementType": "labels.text.stroke", - "stylers": [{ - "color": "#ffffff" - }, - { - "visibility": "on" - }, - { - "weight": 4.1 - } - ] - }, - { - "featureType": "administrative", - "elementType": "labels.text.fill", - "stylers": [{ - "color": "#495421" - }] - }, - { - "featureType": "administrative.neighborhood", - "elementType": "labels", - "stylers": [{ - "visibility": "off" - }] - } - ] - }); - - // Propia Theme - var PropiaThemeMap = new google.maps.Map(document.getElementById('propia-map-theme'), { - zoom: MapZoom, - center: MapLocation, - styles: [{ - "featureType": "landscape", - "stylers": [{ - "visibility": "simplified" - }, - { - "color": "#2b3f57" - }, - { - "weight": 0.1 - } - ] - }, - { - "featureType": "administrative", - "stylers": [{ - "visibility": "on" - }, - { - "hue": "#ff0000" - }, - { - "weight": 0.4 - }, - { - "color": "#ffffff" - } - ] - }, - { - "featureType": "road.highway", - "elementType": "labels.text", - "stylers": [{ - "weight": 1.3 - }, - { - "color": "#FFFFFF" - } - ] - }, - { - "featureType": "road.highway", - "elementType": "geometry", - "stylers": [{ - "color": "#f55f77" - }, - { - "weight": 3 - } - ] - }, - { - "featureType": "road.arterial", - "elementType": "geometry", - "stylers": [{ - "color": "#f55f77" - }, - { - "weight": 1.1 - } - ] - }, - { - "featureType": "road.local", - "elementType": "geometry", - "stylers": [{ - "color": "#f55f77" - }, - { - "weight": 0.4 - } - ] - }, - {}, - { - "featureType": "road.highway", - "elementType": "labels", - "stylers": [{ - "weight": 0.8 - }, - { - "color": "#ffffff" - }, - { - "visibility": "on" - } - ] - }, - { - "featureType": "road.local", - "elementType": "labels", - "stylers": [{ - "visibility": "off" - }] - }, - { - "featureType": "road.arterial", - "elementType": "labels", - "stylers": [{ - "color": "#ffffff" - }, - { - "weight": 0.7 - } - ] - }, - { - "featureType": "poi", - "elementType": "labels", - "stylers": [{ - "visibility": "off" - }] - }, - { - "featureType": "poi", - "stylers": [{ - "color": "#6c5b7b" - }] - }, - { - "featureType": "water", - "stylers": [{ - "color": "#f3b191" - }] - }, - { - "featureType": "transit.line", - "stylers": [{ - "visibility": "on" - }] - } - ] - }); -} \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/horizontal-menu.js b/app/frontend/static/assets/js/shared/horizontal-menu.js deleted file mode 100755 index 5c80b560..00000000 --- a/app/frontend/static/assets/js/shared/horizontal-menu.js +++ /dev/null @@ -1,9 +0,0 @@ -// For horizontal menu 1 -$(".navbar.horizontal-layout .navbar-menu-wrapper .navbar-toggler").on("click", function() { - $(".navbar.horizontal-layout").toggleClass("header-toggled"); -}); - -// For horizontal menu 2 -$(".horizontal-menu-2 .navbar.horizontal-layout-2 .navbar-menu-wrapper .navbar-toggler").on("click", function() { - $(".horizontal-menu-2 .navbar.horizontal-layout-2 .nav-bottom").toggleClass("header-toggled"); -}); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/iCheck.js b/app/frontend/static/assets/js/shared/iCheck.js deleted file mode 100755 index d3e4ec37..00000000 --- a/app/frontend/static/assets/js/shared/iCheck.js +++ /dev/null @@ -1,43 +0,0 @@ -(function($) { - 'use strict'; - $(function() { - $('.icheck input').iCheck({ - checkboxClass: 'icheckbox_minimal-blue', - radioClass: 'iradio_minimal', - increaseArea: '20%' - }); - $('.icheck-square input').iCheck({ - checkboxClass: 'icheckbox_square-blue', - radioClass: 'iradio_square', - increaseArea: '20%' - }); - $('.icheck-flat input').iCheck({ - checkboxClass: 'icheckbox_flat-blue', - radioClass: 'iradio_flat', - increaseArea: '20%' - }); - var icheckLineArray = $('.icheck-line input'); - for (var i = 0; i < icheckLineArray.length; i++) { - var self = $(icheckLineArray[i]); - var label = self.next(); - var label_text = label.text(); - - label.remove(); - self.iCheck({ - checkboxClass: 'icheckbox_line-blue', - radioClass: 'iradio_line', - insert: '
' + label_text - }); - } - $('.icheck-polaris input').iCheck({ - checkboxClass: 'icheckbox_polaris', - radioClass: 'iradio_polaris', - increaseArea: '20%' - }); - $('.icheck-futurico input').iCheck({ - checkboxClass: 'icheckbox_futurico', - radioClass: 'iradio_futurico', - increaseArea: '20%' - }); - }); -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/inputmask.js b/app/frontend/static/assets/js/shared/inputmask.js deleted file mode 100755 index 3bc79287..00000000 --- a/app/frontend/static/assets/js/shared/inputmask.js +++ /dev/null @@ -1,7 +0,0 @@ -(function($) { - 'use strict'; - - // initializing inputmask - $(":input").inputmask(); - -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/ion-range-slider.js b/app/frontend/static/assets/js/shared/ion-range-slider.js deleted file mode 100755 index 933cf934..00000000 --- a/app/frontend/static/assets/js/shared/ion-range-slider.js +++ /dev/null @@ -1,189 +0,0 @@ -(function($) { - 'use strict'; - - if ($('#range_01').length) { - $("#range_01").ionRangeSlider(); - } - - if ($("#range_02").length) { - $("#range_02").ionRangeSlider({ - min: 100, - max: 1000, - from: 550 - }); - } - - if ($("#range_03").length) { - $("#range_03").ionRangeSlider({ - type: "double", - grid: true, - min: 0, - max: 1000, - from: 200, - to: 800, - prefix: "$" - }); - } - - if ($("#range_04").length) { - $("#range_04").ionRangeSlider({ - type: "double", - min: 100, - max: 200, - from: 145, - to: 155, - prefix: "Weight: ", - postfix: " million pounds", - decorate_both: true - }); - } - - if ($("#range_05").length) { - $("#range_05").ionRangeSlider({ - type: "double", - min: 1000, - max: 2000, - from: 1200, - to: 1800, - hide_min_max: true, - hide_from_to: true, - grid: false - }); - } - - if ($("#range_06").length) { - $("#range_06").ionRangeSlider({ - type: "double", - min: 1000, - max: 2000, - from: 1200, - to: 1800, - hide_min_max: true, - hide_from_to: true, - grid: true - }); - } - - if ($("#range_07").length) { - $("#range_07").ionRangeSlider({ - type: "double", - grid: true, - min: 0, - max: 10000, - from: 1000, - prefix: "$" - }); - } - - if ($("#range_08").length) { - $("#range_08").ionRangeSlider({ - type: "single", - grid: true, - min: -90, - max: 90, - from: 0, - postfix: "°" - }); - } - - if ($("#range_09").length) { - $("#range_09").ionRangeSlider({ - type: "double", - min: 0, - max: 10000, - grid: true - }); - } - - if ($("#range_10").length) { - $("#range_10").ionRangeSlider({ - type: "double", - min: 0, - max: 10000, - grid: true, - grid_num: 10 - }); - } - - if ($("#range_11").length) { - $("#range_11").ionRangeSlider({ - type: "double", - min: 0, - max: 10000, - step: 500, - grid: true, - grid_snap: true - }); - } - - if ($("#range_12").length) { - $("#range_12").ionRangeSlider({ - type: "single", - min: 0, - max: 10, - step: 2.34, - grid: true, - grid_snap: true - }); - } - - if ($("#range_13").length) { - $("#range_13").ionRangeSlider({ - type: "double", - min: 0, - max: 100, - from: 30, - to: 70, - from_fixed: true - }); - } - - if ($("#range_14").length) { - $("#range_14").ionRangeSlider({ - min: 0, - max: 100, - from: 30, - from_min: 10, - from_max: 50 - }); - } - - if ($("#range_15").length) { - $("#range_15").ionRangeSlider({ - min: 0, - max: 100, - from: 30, - from_min: 10, - from_max: 50, - from_shadow: true - }); - } - - if ($("#range_16").length) { - $("#range_16").ionRangeSlider({ - type: "double", - min: 0, - max: 100, - from: 20, - from_min: 10, - from_max: 30, - from_shadow: true, - to: 80, - to_min: 70, - to_max: 90, - to_shadow: true, - grid: true, - grid_num: 10 - }); - } - - if ($("#range_17").length) { - $("#range_17").ionRangeSlider({ - min: 0, - max: 100, - from: 30, - disable: true - }); - } - -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/jq.tablesort.js b/app/frontend/static/assets/js/shared/jq.tablesort.js deleted file mode 100755 index c3fe6c2c..00000000 --- a/app/frontend/static/assets/js/shared/jq.tablesort.js +++ /dev/null @@ -1,123 +0,0 @@ -/* - * jq.TableSort -- jQuery Table sorter Plug-in. - * - * Version 1.0.0. - * - * Copyright (c) 2017 Dmitry Zavodnikov. - * - * Licensed under the MIT License. - */ -(function($) { - 'use strict'; - var SORT = 'sort'; - var ASC = 'asc'; - var DESC = 'desc'; - var UNSORT = 'unsort'; - - var config = { - defaultColumn: 0, - defaultOrder: 'asc', - styles: { - 'sort': 'sortStyle', - 'asc': 'ascStyle', - 'desc': 'descStyle', - 'unsort': 'unsortStyle' - }, - selector: function(tableBody, column) { - var groups = []; - - var tableRows = $(tableBody).find('tr'); - for (var i = 0; i < tableRows.length; i++) { - var td = $(tableRows[i]).find('td')[column]; - - groups.push({ - 'values': [tableRows[i]], - 'key': $(td).text() - }); - } - return groups; - }, - comparator: function(group1, group2) { - return group1.key.localeCompare(group2.key); - } - }; - - function getTableHeaders(table) { - return $(table).find('thead > tr > th'); - } - - function getSortableTableHeaders(table) { - return getTableHeaders(table).filter(function(index) { - return $(this).hasClass(config.styles[SORT]); - }); - } - - function changeOrder(table, column) { - var sortedHeader = getTableHeaders(table).filter(function(index) { - return $(this).hasClass(config.styles[ASC]) || $(this).hasClass(config.styles[DESC]); - }); - - var sordOrder = config.defaultOrder; - if (sortedHeader.hasClass(config.styles[ASC])) { - sordOrder = ASC; - } - if (sortedHeader.hasClass(config.styles[DESC])) { - sordOrder = DESC; - } - - var th = getTableHeaders(table)[column]; - - if (th === sortedHeader[0]) { - if (sordOrder === ASC) { - sordOrder = DESC; - } else { - sordOrder = ASC; - } - } - - var headers = getSortableTableHeaders(table); - headers.removeClass(config.styles[ASC]); - headers.removeClass(config.styles[DESC]); - headers.addClass(config.styles[UNSORT]); - - $(th).removeClass(config.styles[UNSORT]); - $(th).addClass(config.styles[sordOrder]); - - var tbody = $(table).find('tbody')[0]; - var groups = config.selector(tbody, column); - - // Sorting. - groups.sort(function(a, b) { - var res = config.comparator(a, b); - return sordOrder === ASC ? res : -1 * res; - }); - - for (var i = 0; i < groups.length; i++) { - var trList = groups[i]; - var trListValues = trList.values; - for (var j = 0; j < trListValues.length; j++) { - tbody.append(trListValues[j]); - } - } - } - - $.fn.tablesort = function(userConfig) { - // Create and save table sort configuration. - $.extend(config, userConfig); - - // Process all selected tables. - var selectedTables = this; - for (var i = 0; i < selectedTables.length; i++) { - var table = selectedTables[i]; - var tableHeader = getSortableTableHeaders(table); - for (var j = 0; j < tableHeader.length; j++) { - var th = tableHeader[j]; - $(th).on("click", function(event) { - var clickColumn = $.inArray(event.currentTarget, getTableHeaders(table)); - changeOrder(table, clickColumn); - }); - } - } - return this; - }; -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/jquery-file-upload.js b/app/frontend/static/assets/js/shared/jquery-file-upload.js deleted file mode 100755 index d723a959..00000000 --- a/app/frontend/static/assets/js/shared/jquery-file-upload.js +++ /dev/null @@ -1,9 +0,0 @@ -(function($) { - 'use strict'; - if ($("#fileuploader").length) { - $("#fileuploader").uploadFile({ - url: "YOUR_FILE_UPLOAD_URL", - fileName: "myfile" - }); - } -})(jQuery); \ No newline at end of file diff --git a/app/frontend/static/assets/js/shared/js-grid.js b/app/frontend/static/assets/js/shared/js-grid.js deleted file mode 100755 index 2545db71..00000000 --- a/app/frontend/static/assets/js/shared/js-grid.js +++ /dev/null @@ -1,192 +0,0 @@ -(function($) { - 'use strict'; - $(function() { - - //basic config - if ($("#js-grid").length) { - $("#js-grid").jsGrid({ - height: "500px", - width: "100%", - filtering: true, - editing: true, - inserting: true, - sorting: true, - paging: true, - autoload: true, - pageSize: 15, - pageButtonCount: 5, - deleteConfirm: "Do you really want to delete the client?", - data: db.clients, - fields: [{ - name: "Name", - type: "text", - width: 150 - }, - { - name: "Age", - type: "number", - width: 50 - }, - { - name: "Address", - type: "text", - width: 200 - }, - { - name: "Country", - type: "select", - items: db.countries, - valueField: "Id", - textField: "Name" - }, - { - name: "Married", - title: "Is Married", - itemTemplate: function(value, item) { - return $("
") - .addClass("form-check mt-0") - .append( - $("