Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Implement a cross-workspace search form on welcome page. Can be disab…
Browse files Browse the repository at this point in the history
…led by admin. Ignore non-loading workspaces, search 5 results max per workspace.
  • Loading branch information
cdujeu committed Jun 27, 2016
1 parent 3f4cf1c commit 291836f
Show file tree
Hide file tree
Showing 21 changed files with 471 additions and 12 deletions.
2 changes: 2 additions & 0 deletions core/src/plugins/access.ajxp_home/manifest.xml
Expand Up @@ -13,6 +13,8 @@
description="CONF_MESSAGE[Open workspace by simple click instead of double click.]" default="true" expose="true"/>
<global_param name="ENABLE_GETTING_STARTED" type="boolean"
label="CONF_MESSAGE[Enable Getting Started]" description="CONF_MESSAGE[Enable addition tabulation to access getting started videos]" default="true" expose="true"/>
<global_param name="ENABLE_GLOBAL_SEARCH" type="boolean"
label="CONF_MESSAGE[Enable Global Search]" description="CONF_MESSAGE[Enable cross-workspaces search form on home page]" default="true" expose="true"/>
<global_param name="URL_APP_IOSAPPSTORE" type="string" expose="true"
label="CONF_MESSAGE[iOS App URL]" description="CONF_MESSAGE[URL of the iOS application]" default="https://itunes.apple.com/us/app/pydio/id709275884?mt=8"/>
<global_param name="URL_APP_ANDROID" type="string" expose="true"
Expand Down
92 changes: 91 additions & 1 deletion core/src/plugins/access.ajxp_home/res/home.css
Expand Up @@ -200,7 +200,7 @@
}
#home_account_pane #home_center_panel div#logo_div {
transition: all 550ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
margin-top: 20%;
margin-top: 17%;
position: relative;
}
#home_account_pane #home_center_panel.legend_visible div#logo_div {
Expand Down Expand Up @@ -647,6 +647,96 @@ div#tutorial_dl_apps_pane div#dl_pydio_mac div {
div#tutorial_dl_apps_pane div#dl_pydio_android a.icon-android {
top: 30px;
}
div.home_search {
text-align: center;
position: relative;
top: 120px;
background-color: transparent;
width: 710px;
margin: 0 auto;
height: 40px;
overflow: visible;
}
div.home_search div.react-autosuggest {
position: absolute;
}
div.home_search div.react-autosuggest input.react-autosuggest__input {
width: 340px;
font-size: 16px;
padding: 8px 0;
position: relative;
border-width: 0 0 1px 0;
border-color: white;
border-radius: 0;
background-color: transparent;
color: white;
}
div.home_search div.react-autosuggest input.react-autosuggest__input::-webkit-input-placeholder {
color: rgba(255, 255, 255, 0.73);
}
div.home_search div.react-autosuggest input.react-autosuggest__input:-moz-placeholder {
/* Firefox 18- */
color: rgba(255, 255, 255, 0.73);
}
div.home_search div.react-autosuggest input.react-autosuggest__input::-moz-placeholder {
/* Firefox 19+ */
color: rgba(255, 255, 255, 0.73);
}
div.home_search div.react-autosuggest input.react-autosuggest__input:-ms-input-placeholder {
color: rgba(255, 255, 255, 0.73);
}
div.home_search div.react-autosuggest .react-autosuggest__suggestions {
width: 340px;
background-color: rgba(255, 255, 255, 0.98);
max-height: 235px;
}
div.home_search div.react-autosuggest .react-autosuggest__suggestions li.react-autosuggest__suggestion {
text-align: left;
}
div.home_search div.react-autosuggest .react-autosuggest__suggestions li.react-autosuggest__suggestion span.nodeSuggestion {
display: block;
padding: 16px 8px;
border-bottom: 1px solid #e0e0e0;
font-size: 14px;
color: rgba(0, 0, 0, 0.93);
cursor: pointer;
}
div.home_search div.react-autosuggest .react-autosuggest__suggestions li.react-autosuggest__suggestion span.nodeSuggestion span.highlight {
display: inline-block;
background-color: rgba(255, 255, 0, 0.26);
}
div.home_search div.react-autosuggest .react-autosuggest__suggestions li.react-autosuggest__suggestion span.nodeSuggestion span.icon {
font-size: 16px;
display: inline-block;
margin: 0 12px 0 5px;
color: rgba(0, 0, 0, 0.73);
text-align: center;
width: 25px;
}
div.home_search div.react-autosuggest .react-autosuggest__suggestions li.react-autosuggest__suggestion span.groupHeader {
display: block;
padding: 8px 8px;
border-bottom: 0px;
font-size: 13px;
color: white;
cursor: pointer;
background-color: #009688;
}
div.home_search div.react-autosuggest .react-autosuggest__suggestions li.react-autosuggest__suggestion span.groupHeader span.openicon {
display: none;
float: right;
}
div.home_search div.react-autosuggest .react-autosuggest__suggestions li.react-autosuggest__suggestion span.groupHeader:hover span.openicon {
margin-top: 3px;
display: inline-block;
}
div.home_search span.suggest-search {
font-size: 16px;
position: absolute;
color: white;
right: 380px;
top: 10px;
}
@media only screen and (max-width: 980px) {
#notifications_center div.notif_event_container {
width: 100px;
Expand Down
94 changes: 93 additions & 1 deletion core/src/plugins/access.ajxp_home/res/home.less
Expand Up @@ -216,7 +216,7 @@
height: 100%;
div#logo_div{
transition: @bezier_transition;
margin-top:20%;
margin-top:17%;
position: relative;
}
&.legend_visible div#logo_div{
Expand Down Expand Up @@ -679,7 +679,99 @@ div#tutorial_dl_apps_pane{

}

div.home_search{
text-align: center;
position: relative;
top: 120px;
background-color: transparent;
width: 710px;
margin: 0 auto;
height: 40px;
overflow: visible;

div.react-autosuggest{
position: absolute;
input.react-autosuggest__input {
width: 340px;
font-size:16px;
padding: 8px 0;
position: relative;
border-width:0 0 1px 0;
border-color: white;
border-radius: 0;
background-color: transparent;
color: white;
@placeholder: rgba(255, 255, 255, 0.73);
&::-webkit-input-placeholder {
color: @placeholder;
}
&:-moz-placeholder { /* Firefox 18- */
color: @placeholder;
}
&::-moz-placeholder { /* Firefox 19+ */
color: @placeholder;
}
&:-ms-input-placeholder {
color: @placeholder;
}
}
.react-autosuggest__suggestions{
width: 340px;
background-color: rgba(255, 255, 255, 0.98);
max-height: 235px;
li.react-autosuggest__suggestion{
text-align: left;
span.nodeSuggestion{
display: block;
padding: 16px 8px;
border-bottom: 1px solid #e0e0e0;
font-size:14px;
color: rgba(0,0,0,0.93);
cursor: pointer;
span.highlight{
display: inline-block;
background-color: rgba(255, 255, 0, 0.26);
}
span.icon{
font-size:16px;
display: inline-block;
margin: 0 12px 0 5px;
color: rgba(0,0,0,0.73);
text-align: center;
width: 25px;
}
}
span.groupHeader{
display: block;;
padding: 8px 8px;
border-bottom: 0px;
font-size:13px;
color: white;
cursor: pointer;
background-color: #009688;
span.openicon{
display: none;
float: right;
}
&:hover{
span.openicon{
margin-top: 3px;
display: inline-block;
}
}
}
}
}
}
span.suggest-search{
font-size:16px;
position: absolute;
color: white;
right: 380px;
top: 10px
}

}

@media only screen
and (max-width : 980px){
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/access.ajxp_home/res/i18n/ca.php
Expand Up @@ -87,5 +87,5 @@
"69"=> "Download Sync Client for Mac OSX",
"70"=> "Native application for iOS devices",
"71"=> "Native application for Android Devices",

"72"=> "Search all workspaces...",
);
1 change: 1 addition & 0 deletions core/src/plugins/access.ajxp_home/res/i18n/de.php
Expand Up @@ -84,4 +84,5 @@
"69"=> "Sync-Client für Mac OSX herunterladen",
"70"=> "App für iOS-Geräte",
"71"=> "App für Android-Geräte",
"72"=> "Search all workspaces...",
);
1 change: 1 addition & 0 deletions core/src/plugins/access.ajxp_home/res/i18n/en.php
Expand Up @@ -84,4 +84,5 @@
"69"=> "Download Sync Client for Mac OSX",
"70"=> "Native application for iOS devices",
"71"=> "Native application for Android Devices",
"72"=> "Search all workspaces...",
);
2 changes: 1 addition & 1 deletion core/src/plugins/access.ajxp_home/res/i18n/es.php
Expand Up @@ -88,5 +88,5 @@
"69"=> "Download Sync Client for Mac OSX",
"70"=> "Native application for iOS devices",
"71"=> "Native application for Android Devices",

"72"=> "Search all workspaces...",
);
1 change: 1 addition & 0 deletions core/src/plugins/access.ajxp_home/res/i18n/fr.php
Expand Up @@ -83,4 +83,5 @@
"69"=> "Télécharger l'appli de synchro (Mac)",
"70"=> "Application pour smarthpones iOS",
"71"=> "Application pour smarthpones Android",
"72"=> "Chercher dans tous les dépôts...",
);
2 changes: 1 addition & 1 deletion core/src/plugins/access.ajxp_home/res/i18n/hu.php
Expand Up @@ -87,5 +87,5 @@
"69"=> "Download Sync Client for Mac OSX",
"70"=> "Native application for iOS devices",
"71"=> "Native application for Android Devices",

"72"=> "Search all workspaces...",
);
2 changes: 1 addition & 1 deletion core/src/plugins/access.ajxp_home/res/i18n/it.php
Expand Up @@ -84,5 +84,5 @@
"69"=> "Download Sync Client for Mac OSX",
"70"=> "Native application for iOS devices",
"71"=> "Native application for Android Devices",

"72"=> "Search all workspaces...",
);
2 changes: 1 addition & 1 deletion core/src/plugins/access.ajxp_home/res/i18n/nl.php
Expand Up @@ -84,6 +84,6 @@
"69"=> "Download Sync Client for Mac OSX",
"70"=> "Native application for iOS devices",
"71"=> "Native application for Android Devices",

"72"=> "Search all workspaces...",
);

2 changes: 1 addition & 1 deletion core/src/plugins/access.ajxp_home/res/i18n/pt.php
Expand Up @@ -84,5 +84,5 @@
"69"=> "Download Sync Client for Mac OSX",
"70"=> "Native application for iOS devices",
"71"=> "Native application for Android Devices",

"72"=> "Search all workspaces...",
);
2 changes: 1 addition & 1 deletion core/src/plugins/access.ajxp_home/res/i18n/ru.php
Expand Up @@ -84,5 +84,5 @@
"69"=> "Download Sync Client for Mac OSX",
"70"=> "Native application for iOS devices",
"71"=> "Native application for Android Devices",

"72"=> "Search all workspaces...",
);
2 changes: 1 addition & 1 deletion core/src/plugins/access.ajxp_home/res/i18n/si.php
Expand Up @@ -85,5 +85,5 @@
"69"=> "Download Sync Client for Mac OSX",
"70"=> "Native application for iOS devices",
"71"=> "Native application for Android Devices",

"72"=> "Search all workspaces...",
);

0 comments on commit 291836f

Please sign in to comment.