Lightning network plugin skeleton

pull/580/head
Piero Toffanin 2018-12-28 15:14:15 -05:00
rodzic 3714f438b6
commit d5b284539d
4 zmienionych plików z 47 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1 @@
from .plugin import *

Wyświetl plik

@ -0,0 +1,13 @@
{
"name": "Lightning Network Bridge",
"webodmMinVersion": "0.7.0",
"description": "A plugin to sync accounts from webodm.net",
"version": "0.1.0",
"author": "Piero Toffanin",
"email": "pt@masseranolabs.com",
"repository": "https://github.com/OpenDroneMap/WebODM",
"tags": ["webodm", "lightning", "network", "cloud"],
"homepage": "https://github.com/OpenDroneMap/WebODM",
"experimental": false,
"deprecated": false
}

Wyświetl plik

@ -0,0 +1,18 @@
from app.plugins import PluginBase, Menu, MountPoint
from django.shortcuts import render
from django.contrib.auth.decorators import login_required
class Plugin(PluginBase):
def main_menu(self):
return [Menu("Lightning Network", self.public_url(""), "fa fa-bolt fa-fw")]
def app_mount_points(self):
@login_required
def diagnostic(request):
return render(request, self.template_path("index.html"))
return [
MountPoint('$', diagnostic)
]

Wyświetl plik

@ -0,0 +1,15 @@
{% extends "app/plugins/templates/base.html" %}
{% block content %}
<!-- <script src="./Chart.min.js"></script> -->
<h2>Test</h2>
<div class="row text-center">
<div class="col-md-4 col-sm-12">
</div>
<div class="col-md-4 col-sm-12">
</div>
</div>
<hr/>
{% endblock %}