kopia lustrzana https://github.com/OpenDroneMap/WebODM
Minor tweaks
rodzic
e8ca6f38c1
commit
7bbfefe1e6
|
@ -1,7 +1,5 @@
|
|||
<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.
|
||||
|
||||
|
||||
|
|
|
@ -21,9 +21,9 @@ from django.contrib.auth.decorators import login_required
|
|||
from django import forms
|
||||
|
||||
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'}))
|
||||
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):
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
|
|
@ -87,13 +87,12 @@ export default class TaskView extends Component {
|
|||
<Fragment>
|
||||
{error ? <ErrorDialog errorMessage={error} /> : ""}
|
||||
<Button
|
||||
id={"dronedbButton"}
|
||||
bsStyle={"default"}
|
||||
bsSize={"small"}
|
||||
className={"platform-btn"}
|
||||
onClick={this.handleClick}>
|
||||
<i className={"fas fa-cloud"} />
|
||||
DroneDB
|
||||
<i className={"ddb-icon fa-fw"} />
|
||||
DroneDB Import
|
||||
</Button>
|
||||
<SelectUrlDialog
|
||||
show={isDialogOpen}
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
.platform-btn {
|
||||
.ddb-icon{
|
||||
margin-right: 8px;
|
||||
}
|
||||
.fa-cloud {
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
|
|
|
@ -126,7 +126,7 @@ export default class ShareButton extends React.Component{
|
|||
|
||||
const getButtonLabel = () => {
|
||||
|
||||
if (taskInfo == null) return "Share on DroneDB";
|
||||
if (taskInfo == null) return "Share to DroneDB";
|
||||
if (taskInfo.error) return "DroneDB plugin error";
|
||||
|
||||
var text = BUTTON_TEXT_MAPPER[taskInfo.status];
|
||||
|
|
|
@ -249,7 +249,7 @@ export default class SelectUrlDialog extends Component {
|
|||
<Modal.Body bsClass="my-modal">
|
||||
{this.state.organizations!= null && this.state.organizations.length > 0 ?
|
||||
<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={"icon-cell"}>
|
||||
<i className={"fas fa-sitemap"}></i>
|
||||
|
|
|
@ -1,13 +1,11 @@
|
|||
{% extends "app/plugins/templates/base.html" %}
|
||||
{% load bootstrap_extras %}
|
||||
{% block content %}
|
||||
<h3>Welcome to DroneDB!</h3>
|
||||
<h5><strong>Instructions</strong></h5>
|
||||
On this screen, you can provide the registry url and credentials to access DroneDB
|
||||
<h3>DroneDB Plugin</h3>
|
||||
Provide your credentials to access <a href="https://dronedb.app" target="_blank">DroneDB</a>:
|
||||
<br/>
|
||||
<br/>
|
||||
<form action="" method="post" class="oam-form oam-token-form">
|
||||
<h4>Settings</h4>
|
||||
{% csrf_token %}
|
||||
{% 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>
|
||||
|
|
Ładowanie…
Reference in New Issue