kopia lustrzana https://github.com/OpenDroneMap/WebODM
Lightning network plugin skeleton
rodzic
3714f438b6
commit
d5b284539d
|
@ -0,0 +1 @@
|
|||
from .plugin import *
|
|
@ -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
|
||||
}
|
|
@ -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)
|
||||
]
|
||||
|
||||
|
|
@ -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 %}
|
Ładowanie…
Reference in New Issue