Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ui to configure text search services #1841

Merged
merged 3 commits into from
May 18, 2017

Conversation

kappu72
Copy link
Contributor

@kappu72 kappu72 commented May 18, 2017

This plugins adds a ui to configure text search services. With this pool configured services will be saved and loaded from map config.
To use, add
SearchServicesConfigPlugin: require('../plugins/SearchServicesConfig' to plugins.config and configure in localConfig.json

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.08%) to 79.479% when pulling 7425b0d on kappu72:master into 2a9f77a on geosolutions-it:master.

transition: left 0.3s, top 0.3s;
}
.noUi-state-drag * {
cursor: inherit !important;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't use !important

@@ -0,0 +1,403 @@
/* all this css rules are related to the slider, copy paste from advanced layertree example */

.noUi-target,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are generic for every noUi, please make them more specific or move the generic css in proper folders

@@ -0,0 +1,211 @@
/**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid /** in favor of /* to allow documentation

const WFSOptionalProps = require('../components/mapcontrols/searchservicesconfig/WFSOptionalProps.jsx');


const SearchServicesConfigPanel = React.createClass({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -266,7 +266,31 @@
"bearingLabel": "Direzione"
},
"search":{
"placeholder": "Cerca un indirizzo o inserisci coordinate..."
"placeholder": "Cerca un indirizzo o inserisci coordinate...",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for french and german use an online service.

"savebtn": "Update",
"cancelbtn": "Cancel",
"confirmremove": "Delete?",
"cancelconfirm": "Confirm Cancel?",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you confirm? or are you sure?

"addbtn": "Aggiungi",
"cancelbtn": "Annulla",
"confirmremove": "Elimina?",
"cancelconfirm": "Confermi annulla?",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confermi? or "Sei sicuro?"

"searchservicesbutton": "Configure search services",
"configpaneltitle": "Create/edit a search service",
"serviceslistlabel": "Available services",
"overriedservice": "Overried services",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Override default services

"s_wfs_props_label" : "Proprietà WFS service",
"s_wfs_opt_props_label" : "Proprietà facoltative",
"s_result_props_label": "Proprietà di visualizzazione dei risultati",
"s_priority_info": "Usato per oridnare resultati, valori più alti per primi. Nominatim ha priorità = 5"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usato per oridnare resultati,i valori più alti vengono visualizzati per primi. Nominatim ha priorità = 5
note: only 1 space after "Nominatim"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix oridnare resultati to ordinare risultati

"s_wfs_props_label" : "WFS service props",
"s_wfs_opt_props_label" : "Optional props",
"s_result_props_label": "Result display properties",
"s_priority_info": "Used to sort search results, higher values first. Nominatim results have priority = 5"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 space only after nominatim

@@ -0,0 +1,53 @@
/**
* Copyright 2017, GeoSolutions Sas.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove all double * from copyright comments

@@ -0,0 +1,76 @@
/**
* Copyright 2017, GeoSolutions Sas.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here

@@ -0,0 +1,51 @@
/**
* Copyright 2017, GeoSolutions Sas.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here

@@ -0,0 +1,81 @@
/**
* Copyright 2017, GeoSolutions Sas.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here

@@ -0,0 +1,67 @@
/**
* Copyright 2017, GeoSolutions Sas.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here

@@ -0,0 +1,48 @@
/**
* Copyright 2017, GeoSolutions Sas.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here

@@ -0,0 +1,43 @@
/**
* Copyright 2017, GeoSolutions Sas.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here

@@ -0,0 +1,78 @@
/**
* Copyright 2017, GeoSolutions Sas.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here

@@ -0,0 +1,45 @@
/**
* Copyright 2017, GeoSolutions Sas.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here

"s_wfs_props_label" : "Proprietà WFS service",
"s_wfs_opt_props_label" : "Proprietà facoltative",
"s_result_props_label": "Proprietà di visualizzazione dei risultati",
"s_priority_info": "Usato per oridnare resultati, valori più alti per primi. Nominatim ha priorità = 5"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix oridnare resultati to ordinare risultati

}


#search-serivices-ui .noUi-background {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

search-serivices-editor is better, and use a class

border-bottom: 1px solid gray;
font-size: larger;
}
.confirm-close{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

too generic, use specific selector

text: <Message msgId="search.cancelbtn" />, className: "btn btn-sm btn-warning confirm-close"}} onConfirm={this.onClose} bsStyle="primary" text={(<Glyphicon glyph={closeGlyph}/>)}/>) : <button onClick={this.onClose} className="close">{closeGlyph ? <Glyphicon glyph={closeGlyph}/> : <span>×</span>}</button>}
}
</span>
<div role="body" id="search-serivices-ui">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use a class if possible

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.08%) to 79.479% when pulling 50829b2 on kappu72:master into 2a9f77a on geosolutions-it:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.09%) to 79.474% when pulling a3d399f on kappu72:master into 2a9f77a on geosolutions-it:master.

@offtherailz offtherailz merged commit 27b303b into geosolutions-it:master May 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants