2018-01-29 13:47:21 +01:00
|
|
|
<!doctype html>
|
|
|
|
<head>
|
|
|
|
<title>Platypush Web Console</title>
|
|
|
|
|
2018-06-12 17:32:59 +02:00
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/skeleton.css') }}">
|
2019-05-15 09:31:04 +02:00
|
|
|
<!-- <link rel="stylesheet" href="{{ url_for('static', filename='css/skeleton-tabs.css') }}"> -->
|
2018-06-12 17:32:59 +02:00
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/normalize.css') }}">
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='font-awesome/css/font-awesome.min.css') }}">
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/application.css') }}">
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/toggles.css') }}">
|
2018-01-29 13:47:21 +01:00
|
|
|
|
2019-05-15 09:31:04 +02:00
|
|
|
<script type="text/javascript" src="{{ url_for('static', filename='js/vue.js') }}"></script>
|
|
|
|
<!--<script type="text/javascript" src="{{ url_for('static', filename='js/vue.min.js') }}"></script>-->
|
|
|
|
|
|
|
|
<!-- <script type="text/javascript" src="{{ url_for('static', filename='js/jquery-3.3.1.min.js') }}"></script> -->
|
|
|
|
<!-- <script type="text/javascript" src="{{ url_for('static', filename='js/jquery-ui-1.12.1.min.js') }}"></script> -->
|
|
|
|
<!-- <script type="text/javascript" src="{{ url_for('static', filename='js/skeleton-tabs.js') }}"></script> -->
|
|
|
|
|
2018-01-29 13:47:21 +01:00
|
|
|
<script type="text/javascript" src="{{ url_for('static', filename='js/application.js') }}"></script>
|
2019-05-15 09:31:04 +02:00
|
|
|
<!-- <script type="text/javascript" src="{{ url_for('static', filename='js/pushbullet.js') }}"></script> -->
|
2018-01-29 13:47:21 +01:00
|
|
|
<script type="text/javascript">
|
2019-05-15 09:31:04 +02:00
|
|
|
if (!window.config) {
|
|
|
|
window.config = {};
|
|
|
|
}
|
|
|
|
|
|
|
|
window.config = { ...window.config,
|
|
|
|
websocket_port: {% print(websocket_port) %},
|
|
|
|
has_ssl: {% print('true' if has_ssl else 'false') %},
|
|
|
|
plugins: JSON.parse('{% print(utils.to_json(plugins))|safe %}'),
|
|
|
|
};
|
2018-01-29 13:47:21 +01:00
|
|
|
|
|
|
|
{% if token %}
|
2019-05-15 09:31:04 +02:00
|
|
|
window.config.token = '{% print(token) %}';
|
2018-01-29 13:47:21 +01:00
|
|
|
{% else %}
|
2019-05-15 09:31:04 +02:00
|
|
|
window.config.token = undefined;
|
2018-01-29 13:47:21 +01:00
|
|
|
{% endif %}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<header>
|
2018-01-30 00:54:46 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="logo nine columns">
|
|
|
|
<span class="logo-1">Platypush</span>
|
|
|
|
<span class="logo-2">Web Panel</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="date-time" class="three columns">
|
|
|
|
<div class="date"></div>
|
|
|
|
<div class="time"></div>
|
|
|
|
</div>
|
2018-01-29 13:47:21 +01:00
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
|
2019-05-15 09:31:04 +02:00
|
|
|
<nav>
|
|
|
|
{% for plugin in plugins.keys()|sort() %}
|
|
|
|
<a href="#{% print plugin %}">
|
|
|
|
{% print plugin %}
|
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
</nav>
|
2018-01-29 13:47:21 +01:00
|
|
|
|
2019-05-15 09:31:04 +02:00
|
|
|
<main>
|
|
|
|
<div id="app">
|
2018-03-27 23:13:42 +02:00
|
|
|
{% for plugin in plugins.keys()|sort() %}
|
2019-01-07 15:34:31 +01:00
|
|
|
{% with configuration=plugins[plugin], utils=utils %}
|
2019-05-15 09:31:04 +02:00
|
|
|
<div class="tab-pane plugin-tab-content" id="{% print plugin %}-container">
|
|
|
|
{% include 'panel/' + plugin + '/index.html' %}
|
2019-01-07 15:34:31 +01:00
|
|
|
</div>
|
|
|
|
{% endwith %}
|
2018-01-29 13:47:21 +01:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</main>
|
2019-05-15 09:31:04 +02:00
|
|
|
</body>
|
2018-01-29 13:47:21 +01:00
|
|
|
|