kopia lustrzana https://github.com/OpenDroneMap/WebODM
Minor tweaks
rodzic
e8ca6f38c1
commit
7bbfefe1e6
|
@ -1,7 +1,5 @@
|
||||||
<h1 align="center">DroneDB</h1>
|
<h1 align="center">DroneDB</h1>
|
||||||
|
|
||||||
Welcome to DroneDB Plugin!
|
|
||||||
|
|
||||||
DroneDB is a WebODM add-on that enables you to import and export your files to DroneDB.
|
DroneDB is a WebODM add-on that enables you to import and export your files to DroneDB.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -21,9 +21,9 @@ from django.contrib.auth.decorators import login_required
|
||||||
from django import forms
|
from django import forms
|
||||||
|
|
||||||
class SettingsForm(forms.Form):
|
class SettingsForm(forms.Form):
|
||||||
registry_url = forms.CharField(label='Registry Url', required=False, max_length=1024, widget=forms.TextInput(attrs={'placeholder': 'Registry Url'}))
|
|
||||||
username = forms.CharField(label='Username', required=False, max_length=1024, widget=forms.TextInput(attrs={'placeholder': 'Username'}))
|
username = forms.CharField(label='Username', required=False, max_length=1024, widget=forms.TextInput(attrs={'placeholder': 'Username'}))
|
||||||
password = forms.CharField(label='Password', required=False, max_length=1024, widget=forms.PasswordInput(attrs={'placeholder': 'Password'}))
|
password = forms.CharField(label='Password', required=False, max_length=1024, widget=forms.PasswordInput(attrs={'placeholder': 'Password'}))
|
||||||
|
registry_url = forms.CharField(label='Registry URL', required=False, max_length=1024, widget=forms.TextInput(attrs={'placeholder': 'Registry Url'}))
|
||||||
|
|
||||||
class Plugin(PluginBase):
|
class Plugin(PluginBase):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
|
|
|
@ -87,13 +87,12 @@ export default class TaskView extends Component {
|
||||||
<Fragment>
|
<Fragment>
|
||||||
{error ? <ErrorDialog errorMessage={error} /> : ""}
|
{error ? <ErrorDialog errorMessage={error} /> : ""}
|
||||||
<Button
|
<Button
|
||||||
id={"dronedbButton"}
|
|
||||||
bsStyle={"default"}
|
bsStyle={"default"}
|
||||||
bsSize={"small"}
|
bsSize={"small"}
|
||||||
className={"platform-btn"}
|
className={"platform-btn"}
|
||||||
onClick={this.handleClick}>
|
onClick={this.handleClick}>
|
||||||
<i className={"fas fa-cloud"} />
|
<i className={"ddb-icon fa-fw"} />
|
||||||
DroneDB
|
DroneDB Import
|
||||||
</Button>
|
</Button>
|
||||||
<SelectUrlDialog
|
<SelectUrlDialog
|
||||||
show={isDialogOpen}
|
show={isDialogOpen}
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
.platform-btn {
|
.platform-btn {
|
||||||
|
.ddb-icon{
|
||||||
|
margin-right: 8px;
|
||||||
|
}
|
||||||
.fa-cloud {
|
.fa-cloud {
|
||||||
margin-right: 0.5em;
|
margin-right: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
|
@ -126,7 +126,7 @@ export default class ShareButton extends React.Component{
|
||||||
|
|
||||||
const getButtonLabel = () => {
|
const getButtonLabel = () => {
|
||||||
|
|
||||||
if (taskInfo == null) return "Share on DroneDB";
|
if (taskInfo == null) return "Share to DroneDB";
|
||||||
if (taskInfo.error) return "DroneDB plugin error";
|
if (taskInfo.error) return "DroneDB plugin error";
|
||||||
|
|
||||||
var text = BUTTON_TEXT_MAPPER[taskInfo.status];
|
var text = BUTTON_TEXT_MAPPER[taskInfo.status];
|
||||||
|
|
|
@ -249,7 +249,7 @@ export default class SelectUrlDialog extends Component {
|
||||||
<Modal.Body bsClass="my-modal">
|
<Modal.Body bsClass="my-modal">
|
||||||
{this.state.organizations!= null && this.state.organizations.length > 0 ?
|
{this.state.organizations!= null && this.state.organizations.length > 0 ?
|
||||||
<div style={{'marginBottom': '20px'}}>
|
<div style={{'marginBottom': '20px'}}>
|
||||||
<p>Import the images from your DroneDB account</p>
|
<p>Import images from your DroneDB account</p>
|
||||||
<div className={"select-row"}>
|
<div className={"select-row"}>
|
||||||
<div className={"icon-cell"}>
|
<div className={"icon-cell"}>
|
||||||
<i className={"fas fa-sitemap"}></i>
|
<i className={"fas fa-sitemap"}></i>
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
{% extends "app/plugins/templates/base.html" %}
|
{% extends "app/plugins/templates/base.html" %}
|
||||||
{% load bootstrap_extras %}
|
{% load bootstrap_extras %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h3>Welcome to DroneDB!</h3>
|
<h3>DroneDB Plugin</h3>
|
||||||
<h5><strong>Instructions</strong></h5>
|
Provide your credentials to access <a href="https://dronedb.app" target="_blank">DroneDB</a>:
|
||||||
On this screen, you can provide the registry url and credentials to access DroneDB
|
|
||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
<form action="" method="post" class="oam-form oam-token-form">
|
<form action="" method="post" class="oam-form oam-token-form">
|
||||||
<h4>Settings</h4>
|
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{% include "app/plugins/templates/form.html" %}
|
{% include "app/plugins/templates/form.html" %}
|
||||||
<button id="btnVerify" type="button" class="btn btn-success" disabled><i class="fas fa-user-check"></i> Verify Configuration</button>
|
<button id="btnVerify" type="button" class="btn btn-success" disabled><i class="fas fa-user-check"></i> Verify Configuration</button>
|
||||||
|
|
Ładowanie…
Reference in New Issue