From 9e4284bc7cf8499da3c2b6c93604ecc4cf4bfc44 Mon Sep 17 00:00:00 2001 From: Tino Vazquez Date: Fri, 22 Mar 2013 13:55:07 +0100 Subject: [PATCH 1/2] Add legacy code from Sunstone to oZones Get rid of unused sunstone install vendor directories --- install.sh | 197 ++- .../Server/public/js/legacysunstone/layout.js | 161 +++ .../Server/public/js/legacysunstone/locale.js | 94 ++ .../public/js/legacysunstone/sunstone-util.js | 1264 +++++++++++++++++ .../public/js/legacysunstone/sunstone.js | 794 +++++++++++ 5 files changed, 2395 insertions(+), 115 deletions(-) create mode 100644 src/ozones/Server/public/js/legacysunstone/layout.js create mode 100644 src/ozones/Server/public/js/legacysunstone/locale.js create mode 100644 src/ozones/Server/public/js/legacysunstone/sunstone-util.js create mode 100644 src/ozones/Server/public/js/legacysunstone/sunstone.js diff --git a/install.sh b/install.sh index 2d3a3de79a..e26c604f4a 100755 --- a/install.sh +++ b/install.sh @@ -290,17 +290,8 @@ SUNSTONE_DIRS="$SUNSTONE_LOCATION/routes \ $SUNSTONE_LOCATION/public/vendor \ $SUNSTONE_LOCATION/public/vendor/crypto-js \ $SUNSTONE_LOCATION/public/vendor/explorercanvas \ - $SUNSTONE_LOCATION/public/vendor/jQueryLayout \ - $SUNSTONE_LOCATION/public/vendor/dataTables \ - $SUNSTONE_LOCATION/public/vendor/jQueryUI \ - $SUNSTONE_LOCATION/public/vendor/jQueryUI/images \ - $SUNSTONE_LOCATION/public/vendor/jQuery \ - $SUNSTONE_LOCATION/public/vendor/jGrowl \ $SUNSTONE_LOCATION/public/vendor/flot \ $SUNSTONE_LOCATION/public/vendor/fileuploader \ - $SUNSTONE_LOCATION/public/vendor/FontAwesome \ - $SUNSTONE_LOCATION/public/vendor/FontAwesome/css \ - $SUNSTONE_LOCATION/public/vendor/FontAwesome/font \ $SUNSTONE_LOCATION/public/vendor/4.0 \ $SUNSTONE_LOCATION/public/vendor/4.0/datatables \ $SUNSTONE_LOCATION/public/vendor/4.0/foundation_datatables \ @@ -1418,78 +1409,6 @@ SUNSTONE_PUBLIC_JS_PLUGINS_FILES="\ SUNSTONE_PUBLIC_CSS_FILES="src/sunstone/public/css/app.css \ src/sunstone/public/css/login.css" -SUNSTONE_PUBLIC_VENDOR_DATATABLES="\ - src/sunstone/public/vendor/dataTables/jquery.dataTables.min.js \ - src/sunstone/public/vendor/dataTables/ColVis.min.js \ - src/sunstone/public/vendor/dataTables/ColReorderWithResize.js \ - src/sunstone/public/vendor/dataTables/demo_table_jui.css \ - src/sunstone/public/vendor/dataTables/ColVis.css \ - src/sunstone/public/vendor/dataTables/BSD-LICENSE.txt \ - src/sunstone/public/vendor/dataTables/NOTICE" - -SUNSTONE_PUBLIC_VENDOR_JGROWL="\ - src/sunstone/public/vendor/jGrowl/jquery.jgrowl_minimized.js \ - src/sunstone/public/vendor/jGrowl/jquery.jgrowl.css \ - src/sunstone/public/vendor/jGrowl/NOTICE" - -SUNSTONE_PUBLIC_VENDOR_JQUERY="\ - src/sunstone/public/vendor/jQuery/jquery-1.7.2.min.js \ - src/sunstone/public/vendor/jQuery/MIT-LICENSE.txt \ - src/sunstone/public/vendor/jQuery/NOTICE" - -SUNSTONE_PUBLIC_VENDOR_JQUERYUI="\ -src/sunstone/public/vendor/jQueryUI/jquery-ui-1.8.16.custom.css \ -src/sunstone/public/vendor/jQueryUI/jquery-ui-1.9.2.custom.min.css \ -src/sunstone/public/vendor/jQueryUI/MIT-LICENSE.txt \ -src/sunstone/public/vendor/jQueryUI/jquery-ui-1.8.16.custom.min.js \ -src/sunstone/public/vendor/jQueryUI/NOTICE \ -" - -SUNSTONE_PUBLIC_VENDOR_JQUERYUIIMAGES="\ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_353735_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_aaaaaa_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_eeeeee_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_f2f2f2_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_ffffff_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_100_f6f6f6_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_25_f6f6f6_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_55_ffffff_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_65_353735_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_75_ffffff_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_55_fbf9ee_1x400.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_65_ffffff_1x400.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_75_dadada_1x400.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_75_e6e6e6_1x400.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_95_fef1ec_1x400.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_100_f6f6f6_1x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_0073ea_1x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_0098c3_1x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_353735_1x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_f6f6f6_1x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_50_dddddd_1x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_50_ffffff_1x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_75_cccccc_1x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_0073ea_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_0098c3_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_222222_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_2e83ff_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_353735_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_454545_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_666666_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_888888_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_cd0a0a_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_d10300_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_ff0084_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_ffffff_256x240.png \ -" - - - -SUNSTONE_PUBLIC_VENDOR_JQUERYLAYOUT="\ - src/sunstone/public/vendor/jQueryLayout/layout-default-latest.css \ - src/sunstone/public/vendor/jQueryLayout/jquery.layout-latest.min.js \ - src/sunstone/public/vendor/jQueryLayout/NOTICE" - SUNSTONE_PUBLIC_VENDOR_FLOT="\ src/sunstone/public/vendor/flot/jquery.flot.min.js \ src/sunstone/public/vendor/flot/jquery.flot.navigate.min.js \ @@ -1519,25 +1438,6 @@ SUNSTONE_PUBLIC_VENDOR_XML2JSON="\ src/sunstone/public/vendor/xml2json/NOTICE \ src/sunstone/public/vendor/xml2json/jquery.xml2json.pack.js" -SUNSTONE_PUBLIC_VENDOR_FONTAWESOME="\ -src/sunstone/public/vendor/FontAwesome/NOTICE \ -" - -SUNSTONE_PUBLIC_VENDOR_FONTAWESOME_CSS="\ -src/sunstone/public/vendor/FontAwesome/css/font-awesome.css \ -" - -SUNSTONE_PUBLIC_VENDOR_FONTAWESOME_FONT="\ -src/sunstone/public/vendor/FontAwesome/font/fontawesome-webfont.eot \ -src/sunstone/public/vendor/FontAwesome/font/fontawesome-webfont.woff \ -src/sunstone/public/vendor/FontAwesome/font/fontawesome-webfont.ttf \ -src/sunstone/public/vendor/FontAwesome/font/fontawesome-webfont.svg \ -" - - - - - SUNSTONE_PUBLIC_NEW_VENDOR_DATATABLES="\ src/sunstone/public/vendor/4.0/datatables/media/js/jquery.dataTables.min.js \ src/sunstone/public/vendor/4.0/datatables/license-bsd.txt" @@ -1719,33 +1619,100 @@ OZONES_LIB_API_ZONA_FILES="src/ozones/Client/lib/zona/ZoneElement.rb \ src/ozones/Client/lib/zona/OZonesElement.rb \ src/ozones/Client/lib/zona/ZonePool.rb" -OZONES_PUBLIC_VENDOR_JQUERY=$SUNSTONE_PUBLIC_VENDOR_JQUERY +OZONES_PUBLIC_VENDOR_JQUERY="\ + src/sunstone/public/vendor/jQuery/jquery-1.7.2.min.js \ + src/sunstone/public/vendor/jQuery/MIT-LICENSE.txt \ + src/sunstone/public/vendor/jQuery/NOTICE" OZONES_PUBLIC_VENDOR_CRYPTOJS=$SUNSTONE_PUBLIC_VENDOR_CRYPTOJS -OZONES_PUBLIC_VENDOR_DATATABLES=$SUNSTONE_PUBLIC_VENDOR_DATATABLES +OZONES_PUBLIC_VENDOR_DATATABLES="\ + src/sunstone/public/vendor/dataTables/jquery.dataTables.min.js \ + src/sunstone/public/vendor/dataTables/ColVis.min.js \ + src/sunstone/public/vendor/dataTables/ColReorderWithResize.js \ + src/sunstone/public/vendor/dataTables/demo_table_jui.css \ + src/sunstone/public/vendor/dataTables/ColVis.css \ + src/sunstone/public/vendor/dataTables/BSD-LICENSE.txt \ + src/sunstone/public/vendor/dataTables/NOTICE" -OZONES_PUBLIC_VENDOR_JGROWL=$SUNSTONE_PUBLIC_VENDOR_JGROWL +OZONES_PUBLIC_VENDOR_JGROWL="\ + src/sunstone/public/vendor/jGrowl/jquery.jgrowl_minimized.js \ + src/sunstone/public/vendor/jGrowl/jquery.jgrowl.css \ + src/sunstone/public/vendor/jGrowl/NOTICE" -OZONES_PUBLIC_VENDOR_JQUERYUI=$SUNSTONE_PUBLIC_VENDOR_JQUERYUI +OZONES_PUBLIC_VENDOR_JQUERYUI="\ +src/sunstone/public/vendor/jQueryUI/jquery-ui-1.8.16.custom.css \ +src/sunstone/public/vendor/jQueryUI/jquery-ui-1.9.2.custom.min.css \ +src/sunstone/public/vendor/jQueryUI/MIT-LICENSE.txt \ +src/sunstone/public/vendor/jQueryUI/jquery-ui-1.8.16.custom.min.js \ +src/sunstone/public/vendor/jQueryUI/NOTICE \ +" -OZONES_PUBLIC_VENDOR_JQUERYUIIMAGES=$SUNSTONE_PUBLIC_VENDOR_JQUERYUIIMAGES +OZONES_PUBLIC_VENDOR_JQUERYUIIMAGES="\ +src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_353735_40x100.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_aaaaaa_40x100.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_eeeeee_40x100.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_f2f2f2_40x100.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_ffffff_40x100.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_100_f6f6f6_40x100.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_25_f6f6f6_40x100.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_55_ffffff_40x100.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_65_353735_40x100.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_75_ffffff_40x100.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_55_fbf9ee_1x400.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_65_ffffff_1x400.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_75_dadada_1x400.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_75_e6e6e6_1x400.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_95_fef1ec_1x400.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_100_f6f6f6_1x100.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_0073ea_1x100.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_0098c3_1x100.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_353735_1x100.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_f6f6f6_1x100.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_50_dddddd_1x100.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_50_ffffff_1x100.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_75_cccccc_1x100.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-icons_0073ea_256x240.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-icons_0098c3_256x240.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-icons_222222_256x240.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-icons_2e83ff_256x240.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-icons_353735_256x240.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-icons_454545_256x240.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-icons_666666_256x240.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-icons_888888_256x240.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-icons_cd0a0a_256x240.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-icons_d10300_256x240.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-icons_ff0084_256x240.png \ +src/sunstone/public/vendor/jQueryUI/images/ui-icons_ffffff_256x240.png \ +" -OZONES_PUBLIC_VENDOR_JQUERYLAYOUT=$SUNSTONE_PUBLIC_VENDOR_JQUERYLAYOUT +OZONES_PUBLIC_VENDOR_JQUERYLAYOUT="\ + src/sunstone/public/vendor/jQueryLayout/layout-default-latest.css \ + src/sunstone/public/vendor/jQueryLayout/jquery.layout-latest.min.js \ + src/sunstone/public/vendor/jQueryLayout/NOTICE" -OZONES_PUBLIC_VENDOR_FONTAWESOME=$SUNSTONE_PUBLIC_VENDOR_FONTAWESOME +OZONES_PUBLIC_VENDOR_FONTAWESOME="\ +src/sunstone/public/vendor/FontAwesome/NOTICE \ +" -OZONES_PUBLIC_VENDOR_FONTAWESOME_FONT=$SUNSTONE_PUBLIC_VENDOR_FONTAWESOME_FONT +OZONES_PUBLIC_VENDOR_FONTAWESOME_FONT="\ +src/sunstone/public/vendor/FontAwesome/font/fontawesome-webfont.eot \ +src/sunstone/public/vendor/FontAwesome/font/fontawesome-webfont.woff \ +src/sunstone/public/vendor/FontAwesome/font/fontawesome-webfont.ttf \ +src/sunstone/public/vendor/FontAwesome/font/fontawesome-webfont.svg \ +" -OZONES_PUBLIC_VENDOR_FONTAWESOME_CSS=$SUNSTONE_PUBLIC_VENDOR_FONTAWESOME_CSS +OZONES_PUBLIC_VENDOR_FONTAWESOME_CSS="\ +src/sunstone/public/vendor/FontAwesome/css/font-awesome.css \ +" OZONES_PUBLIC_JS_FILES="src/ozones/Server/public/js/ozones.js \ - src/ozones/Server/public/js/login.js \ - src/ozones/Server/public/js/ozones-util.js \ - src/sunstone/public/js/layout.js \ - src/sunstone/public/js/sunstone.js \ - src/sunstone/public/js/sunstone-util.js \ - src/sunstone/public/js/locale.js" + src/ozones/Server/public/js/login.js \ + src/ozones/Server/public/js/ozones-util.js \ + src/ozones/Server/public/js/legacysunstone/layout.js \ + src/ozones/Server/public/js/legacysunstone/sunstone.js \ + src/ozones/Server/public/js/legacysunstone/sunstone-util.js \ + src/ozones/Server/public/js/legacysunstone/locale.js" OZONES_PUBLIC_CSS_FILES="src/ozones/Server/public/css/application.css \ src/ozones/Server/public/css/layout.css \ diff --git a/src/ozones/Server/public/js/legacysunstone/layout.js b/src/ozones/Server/public/js/legacysunstone/layout.js new file mode 100644 index 0000000000..1fde922a16 --- /dev/null +++ b/src/ozones/Server/public/js/legacysunstone/layout.js @@ -0,0 +1,161 @@ +/* -------------------------------------------------------------------------- */ +/* Copyright 2002-2013, OpenNebula Project (OpenNebula.org), C12G Labs */ +/* */ +/* Licensed under the Apache License, Version 2.0 (the "License"); you may */ +/* not use this file except in compliance with the License. You may obtain */ +/* a copy of the License at */ +/* */ +/* http://www.apache.org/licenses/LICENSE-2.0 */ +/* */ +/* Unless required by applicable law or agreed to in writing, software */ +/* distributed under the License is distributed on an "AS IS" BASIS, */ +/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ +/* See the License for the specific language governing permissions and */ +/* limitations under the License. */ +/* -------------------------------------------------------------------------- */ + +var activeTab; +var outerLayout, innerLayout; + +function hideDialog(){ + innerLayout.close("south"); +} + +function popDialog(content){ + $("#dialog").html(content); + innerLayout.open("south"); +} + +function popDialogLoading(){ + var loading = '
loading...
'; + popDialog(loading); +} + +function showTab(tabname,highlight_tab){ + //Since menu items no longer have an element + //we no longer expect #tab_id here, but simply tab_id + //So safety check - remove # from #tab_id if present to ensure compatibility + if (tabname.indexOf('#') == 0) + tabname = tabname.substring(1); + if (highlight_tab && highlight_tab.indexOf('#') == 0) + highlight_tab == highlight.substring(1); + + var activeTab = tabname; + + if (!highlight_tab) highlight_tab = activeTab; + + //clean selected menu + $("#navigation li").removeClass("navigation-active-li"); + $("div#header ul#menutop_ul li").removeClass("navigation-active-li"); + + //select tab in left menu + var li = $("#navigation li#li_"+highlight_tab) + li.addClass("navigation-active-li"); + + //select tab in top menu + var top_li = $("div#header ul#menutop_ul li#top_"+highlight_tab); + top_li.addClass("navigation-active-li"); + + + //show tab + $(".tab").hide(); + $('#'+activeTab).show(); + innerLayout.close("south"); +} + +function setupTabs(){ + + var topTabs = $(".outer-west ul li.topTab"); + var subTabs = $(".outer-west ul li.subTab"); + + subTabs.live("click",function(){ + //leave floor to topTab listener in case of tabs with both classes + if ($(this).hasClass('topTab')) return false; + + var tab = $(this).attr('id').substring(3); + showTab(tab); + return false; + }); + + topTabs.live("click",function(e){ + var tab = $(this).attr('id').substring(3); + //Subtabs have a class with the name of this tab + var subtabs = $('div#menu li.'+tab); + + //toggle subtabs only when clicking on the icon or when clicking on an + //already selected menu + if ($(e.target).is('span') || + $(this).hasClass("navigation-active-li")){ + //for each subtab, we hide the subsubtabs + subtabs.each(function(){ + //for each subtab, hide its subtabs + var subsubtabs = $(this).attr('id').substr(3); + //subsubtabs class + subsubtabs = $('div#menu li.'+subsubtabs); + subsubtabs.hide(); + }); + //hide subtabs and reset icon to + position, since all subsubtabs + //are hidden + subtabs.fadeToggle('fast'); + $('span',subtabs).removeClass('ui-icon-circle-minus'); + $('span',subtabs).addClass('ui-icon-circle-plus'); + //toggle icon on this tab + $('span',this).toggleClass('ui-icon-circle-plus ui-icon-circle-minus'); + }; + //if we are clicking on the icon only, do not show the tab + if ($(e.target).is('span')) return false; + + showTab(tab); + return false; + }); + +}; + +function setupTopMenu(){ + $('div#header ul#menutop_ul li').live('click',function(){ + var tab = "#" + $(this).attr('id').substring(4); + showTab(tab); + }); +}; + +$(document).ready(function () { + $(".tab").hide(); + + setupTabs(); + setupTopMenu(); + + outerLayout = $('body').layout({ + applyDefaultStyles: false + , center__paneSelector: ".outer-center" + , west__paneSelector: ".outer-west" + , west__size: 210 + , north__size: 26 + , south__size: 26 + , spacing_open: 0 // ALL panes + , spacing_closed: 0 // ALL panes + //, north__spacing_open: 0 + //, south__spacing_open: 0 + , north__maxSize: 200 + , south__maxSize: 200 + , south__closable: false + , north__closable: false + , west__closable: false + , south__resizable: false + , north__resizable: false + , west__resizable: false + }); + + var factor = 0.6; + var dialog_height = Math.floor($(".outer-center").height()*factor); + + innerLayout = $('div.outer-center').layout({ + fxName: "slide" + , initClosed: true + , center__paneSelector: ".inner-center" + , south__paneSelector: ".inner-south" + , south__size: dialog_height + , spacing_open: 5 // ALL panes + , spacing_closed: 5 // ALL panes + }); + +}); diff --git a/src/ozones/Server/public/js/legacysunstone/locale.js b/src/ozones/Server/public/js/legacysunstone/locale.js new file mode 100644 index 0000000000..7cbbb7f714 --- /dev/null +++ b/src/ozones/Server/public/js/legacysunstone/locale.js @@ -0,0 +1,94 @@ +/* -------------------------------------------------------------------------- */ +/* Copyright 2002-2013, OpenNebula Project (OpenNebula.org), C12G Labs */ +/* */ +/* Licensed under the Apache License, Version 2.0 (the "License"); you may */ +/* not use this file except in compliance with the License. You may obtain */ +/* a copy of the License at */ +/* */ +/* http://www.apache.org/licenses/LICENSE-2.0 */ +/* */ +/* Unless required by applicable law or agreed to in writing, software */ +/* distributed under the License is distributed on an "AS IS" BASIS, */ +/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ +/* See the License for the specific language governing permissions and */ +/* limitations under the License. */ +/* -------------------------------------------------------------------------- */ + +var lang="" +var locale = {}; +var datatable_lang = ""; + +function tr(str){ + var tmp = locale[str]; + if ( tmp == null || tmp == "" ) { + //console.debug("Missing translation: "+str); + tmp = str; + } + return tmp; +}; + +//Pops up loading new language dialog. Retrieves the user template, updates the LANG variable. +//Updates template and session configuration and reloads the view. +function setLang(lang_str){ + var lang_tmp=""; + var dialog = $('
'+ + tr("Loading new language... please wait")+ + ' '+spinner+'
').dialog({ + draggable:false, + modal:true, + resizable:false, + buttons:{}, + width: 460, + minHeight: 50 + }); + + var updateUserTemplate = function(request,user_json){ + var template = user_json.USER.TEMPLATE; + var template_str=""; + template["LANG"] = lang_tmp; + + //convert json to ONE template format - simple conversion + $.each(template,function(key,value){ + template_str += (key + '=' + '"' + value + '"\n'); + }); + + var obj = { + data: { + id: uid, + extra_param: template_str + }, + error: onError, + success: function() { + $.post('config',JSON.stringify({lang:lang_tmp}),function(){ + window.location.href = "."; + }); + } + }; + OpenNebula.User.update(obj); + + }; + + lang_tmp = lang_str; + + if (whichUI() == "sunstone"){ + var obj = { + data : { + id: uid + }, + success: updateUserTemplate + }; + OpenNebula.User.show(obj); + } else { + dialog.dialog('close'); + }; +}; + +$(document).ready(function(){ + //Update static translations + $('#doc_link').html(tr("Documentation")); + $('#support_link').html(tr("Support")); + $('#community_link').html(tr("Community")); + $('#welcome').html(tr("Welcome")); + $('#logout').html(tr("Sign out")); +}); \ No newline at end of file diff --git a/src/ozones/Server/public/js/legacysunstone/sunstone-util.js b/src/ozones/Server/public/js/legacysunstone/sunstone-util.js new file mode 100644 index 0000000000..d54bdf6891 --- /dev/null +++ b/src/ozones/Server/public/js/legacysunstone/sunstone-util.js @@ -0,0 +1,1264 @@ +/* -------------------------------------------------------------------------- */ +/* Copyright 2002-2013, OpenNebula Project (OpenNebula.org), C12G Labs */ +/* */ +/* Licensed under the Apache License, Version 2.0 (the "License"); you may */ +/* not use this file except in compliance with the License. You may obtain */ +/* a copy of the License at */ +/* */ +/* http://www.apache.org/licenses/LICENSE-2.0 */ +/* */ +/* Unless required by applicable law or agreed to in writing, software */ +/* distributed under the License is distributed on an "AS IS" BASIS, */ +/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ +/* See the License for the specific language governing permissions and */ +/* limitations under the License. */ +/* -------------------------------------------------------------------------- */ + + +/* Some useful functions for Sunstone default plugins */ +var INTERVAL=60000; //milisecs + +function someTime(){ //some time under 30secs + return Math.floor(Math.random()*30000); +} + +//introduces 0s before a number until in reaches 'length'. +function pad(number,length) { + var str = '' + number; + while (str.length < length) + str = '0' + str; + return str; +} + +//turns a Unix-formatted time into a human readable string +function pretty_time(time_seconds) +{ + var d = new Date(); + d.setTime(time_seconds*1000); + + var secs = pad(d.getSeconds(),2); + var hour = pad(d.getHours(),2); + var mins = pad(d.getMinutes(),2); + var day = pad(d.getDate(),2); + var month = pad(d.getMonth()+1,2); //getMonths returns 0-11 + var year = d.getFullYear(); + + return hour + ":" + mins +":" + secs + " " + month + "/" + day + "/" + year; +} + +// Format time for plot axis +// If show date, only date information is shown +function pretty_time_axis(time, show_date){ + var d = new Date(); + d.setTime(time*1000); + + var secs = pad(d.getSeconds(),2); + var hour = pad(d.getHours(),2); + var mins = pad(d.getMinutes(),2); + var day = pad(d.getDate(),2); + var month = pad(d.getMonth()+1,2); //getMonths returns 0-11 + var year = d.getFullYear(); + + if (show_date) + return month + "/" + day; + else + return hour + ":" + mins; +} + +function pretty_time_runtime(time){ + var d = new Date(); + d.setTime(time*1000); + + var secs = pad(d.getUTCSeconds(),2); + var hour = pad(d.getUTCHours(),2); + var mins = pad(d.getUTCMinutes(),2); + var day = d.getUTCDate()-1; + var month = pad(d.getUTCMonth()+1,2); //getMonths returns 0-11 + var year = d.getUTCFullYear(); + + return day + "d " + hour + ":" + mins;// + ":" + secs;// + " " + month + "/" + day; +} + +//returns a human readable size in Kilo, Mega, Giga or Tera bytes +//if no from_bytes, assumes value comes in Ks +function humanize_size(value,from_bytes) { + if (typeof(value) === "undefined") { + value = 0; + } + var binarySufix = from_bytes ? + ["", "K", "M", "G", "T" ] : ["K", "M", "G", "T" ]; + var i=0; + while (value > 1024 && i < 3){ + value = value / 1024; + i++; + } + value = Math.round(value * 10) / 10; + + if (value - Math.round(value) == 0) { + value = Math.round(value); + } + + var st = value + binarySufix[i]; + return st; +} + +//Wrapper to add an element to a dataTable +function addElement(element,dataTable){ + dataTable.fnAddData(element); +} + +//deletes an element with id 'tag' from a dataTable +function deleteElement(dataTable,tag){ + var tr = $(tag,dataTable).parents('tr')[0]; + dataTable.fnDeleteRow(tr); + recountCheckboxes(dataTable); +} + +//Handle the activation of action buttons and the check_all box +//when elements in a datatable are modified. +function recountCheckboxes(dataTable){ + var table = $('tbody',dataTable); + var context = table.parents('form'); + var nodes = $('tr',table); //visible nodes + var total_length = nodes.length; + var checked_length = $('input.check_item:checked',nodes).length; + var last_action_b = $('.last_action_button',context); + + if (checked_length) { //at least 1 element checked + //enable action buttons + $('.top_button, .list_button',context).button("enable"); + //check if the last_action_button should be enabled + if (last_action_b.length && last_action_b.val().length){ + last_action_b.button("enable"); + }; + //enable checkall box + if (total_length == checked_length){ + $('.check_all',dataTable).attr('checked','checked'); + } else { + $('.check_all',dataTable).removeAttr('checked'); + }; + } else { //no elements cheked + //disable action buttons, uncheck checkAll + $('.check_all',dataTable).removeAttr('checked'); + $('.top_button, .list_button',context).button("disable"); + last_action_b.button("disable"); + }; + + //any case the create dialog buttons should always be enabled. + $('.create_dialog_button',context).button("enable"); + $('.alwaysActive',context).button("enable"); +} + +//Init action buttons and checkboxes listeners +function tableCheckboxesListener(dataTable){ + //Initialization - disable all buttons + var context = dataTable.parents('form'); + + $('.last_action_button',context).button("disable"); + $('.top_button, .list_button',context).button("disable"); + //These are always enabled + $('.create_dialog_button',context).button("enable"); + $('.alwaysActive',context).button("enable"); + + //listen to changes in the visible inputs + $('tbody input.check_item',dataTable).live("change",function(){ + var datatable = $(this).parents('table'); + recountCheckboxes(datatable); + }); +} + +// Updates a data_table, with a 2D array containing the new values +// Does a partial redraw, so the filter and pagination are kept +function updateView(item_list,dataTable){ + if (dataTable) { + dataTable.fnClearTable(); + dataTable.fnAddData(item_list); + dataTable.fnDraw(false); + }; +} + +//replaces an element with id 'tag' in a dataTable with a new one +function updateSingleElement(element,dataTable,tag){ + var nodes = dataTable.fnGetNodes(); + var tr = $(tag,nodes).parents('tr')[0]; + var position = dataTable.fnGetPosition(tr); + dataTable.fnUpdate(element,position,0,false); + recountCheckboxes(dataTable); +} + +function getElementData(id, resource_tag, dataTable){ + var nodes = dataTable.fnGetNodes(); + var tr = $(resource_tag+'_'+id,nodes).parents('tr')[0]; + return dataTable.fnGetData(tr); +} + +// Returns an string in the form key=value key=value ... +// Does not explore objects in depth. +function stringJSON(json){ + var str = ""; + for (field in json) { + str+= field + '=' + json[field] + ' '; + }; + return str; +} + +//Notifications +//Notification of submission of action +function notifySubmit(action, args, extra_param){ + var action_text = action.replace(/OpenNebula\./,'').replace(/\./,' '); + + var msg = '

'+tr("Submitted")+'

'; + if (!args || (typeof args == 'object' && args.constructor != Array)){ + + msg += action_text; + } else { + + msg += action_text + ": " + args; + }; + if (extra_param && extra_param.constructor != Object) { + msg += " >> " + extra_param; + }; + + $.jGrowl(msg, {theme: "jGrowl-notify-submit", position: "bottom-right"}); +} + +//Notification on error +function notifyError(msg){ + msg = "

"+tr("Error")+"

" + msg; + $.jGrowl(msg, {theme: "jGrowl-notify-error", position: "bottom-right", sticky: true }); +} + +//Standard notification +function notifyMessage(msg){ + msg = "

"+tr("Info")+"

" + msg; + $.jGrowl(msg, {theme: "jGrowl-notify-submit", position: "bottom-right"}); +} + +// Returns an HTML string with the json keys and values +// Attempts to css format output, giving different values to +// margins etc. according to depth level etc. +// See exapmle of use in plugins. +function prettyPrintJSON(template_json,padding,weight, border_bottom,padding_top_bottom){ + var str = "" + if (!template_json){ return "Not defined";} + if (!padding) {padding=0}; + if (!weight) {weight="bold";} + if (!border_bottom) {border_bottom = "1px solid #CCCCCC";} + if (!padding_top_bottom) {padding_top_bottom=6;} + var field = null; + + if (template_json.constructor == Array){ + for (field = 0; field < template_json.length; ++field){ + str += prettyPrintRowJSON(field,template_json[field],padding,weight, border_bottom,padding_top_bottom); + } + } else { + for (field in template_json) { + str += prettyPrintRowJSON(field,template_json[field],padding,weight, border_bottom,padding_top_bottom); + } + } + return str; +} + +function prettyPrintRowJSON(field,value,padding,weight, border_bottom,padding_top_bottom){ + var str=""; + + if (typeof value == 'object'){ + //name of field row + str += '\ + ' + +tr(field)+ + '\ + \ + \ + '; + //attributes rows + //empty row - prettyprint - empty row + str += '\ + \ + \ + ' + + prettyPrintJSON(value,padding+25,"normal","0",1) + + '\ + \ + \ + '; + } else { + str += '\ + '+ + tr(field)+ + '\ + '+ + value+ + '\ + '; + }; + + return str; +} + +//Add a listener to the check-all box of a datatable, enabling it to +//check and uncheck all the checkboxes of its elements. +function initCheckAllBoxes(datatable){ + + //small css hack + $('input.check_all',datatable).css({"border":"2px"}); + $('input.check_all',datatable).live("change",function(){ + var table = $(this).parents('table'); + var checked = $(this).attr('checked'); + if (checked) { //check all + $('tbody input.check_item',table).attr('checked','checked'); + } else { //uncheck all + $('tbody input.check_item',table).removeAttr('checked'); + }; + recountCheckboxes(table); + }); +} + +//standard handling for the server errors on ajax requests. +//Pops up a message with the information. +function onError(request,error_json) { + var method; + var action; + var object; + var id; + var reason; + var m; + var message = error_json.error.message; + + if ( typeof onError.disabled == 'undefined' ) { + onError.disabled=false; + }; + + //redirect to login if unauthenticated + if (error_json.error.http_status=="401") { + switch (whichUI()){ + case "selfservice": + window.location.href = "ui"; + break; + default: + window.location.href = "login"; + }; + + onError.disabled=false; + return false; + }; + + + if (!message){ + if (!onError.disabled){ + notifyError(tr("Cannot contact server: is it running and reachable?")); + onError.disabled=true; + } + return false; + }; + + if (message.match(/^Network is unreachable .+$/)){ + if (!onError.disabled){ + notifyError(tr("Network is unreachable: is OpenNebula running?")); + onError.disabled=true; + }; + return false; + } else { + onError.disabled=false; + }; + + + //Parse known errors: + var get_error = /^\[(\w+)\] Error getting ([\w ]+) \[(\d+)\]\.$/; + var auth_error = /^\[(\w+)\] User \[(\d+)\] not authorized to perform action on ([\w ]+).$/; + + if (m = message.match(get_error)) { + method = m[1]; + action = "Show"; + object = m[2]; + id = m[3]; + } else if (m = message.match(auth_error)) { + method = m[1]; + object = m[3]; + reason = tr("Unauthorized"); + }; + + if (m) { + var rows; + var i; + var value; + rows = ["method","action","object","id","reason"]; + message = ""; + for (i = 0; i"+key+""+value+""; + } + message = "" + message + "
"; + }; + + notifyError(message); + return true; +} + +//Replaces the checkboxes of a datatable with a ajax-loading spinner. +//Used when refreshing elements of a datatable. +function waitingNodes(dataTable){ + $('tr input.check_item:visible',dataTable).replaceWith(spinner); +} + + +//The following functions extract the value of a specific column +//in a dataTable. If the order of datatable columns is changed this +//should be the only place to adjust. +function getUserName(uid){ + if (typeof(dataTable_users) != "undefined"){ + return getName(uid,dataTable_users,2); + } + return uid; +} + +function getGroupName(gid){ + if (typeof(dataTable_groups) != "undefined"){ + return getName(gid,dataTable_groups,2); + } + return gid; +} + +function getImageName(id){ + if (typeof(dataTable_images) != "undefined"){ + return getName(id,dataTable_images,4); + } + return id; +}; + +function getClusterName(id){ + if (typeof(dataTable_clusters) != "undefined"){ + return getName(id,dataTable_clusters,2); + } + return id; +}; + +function getDatastoreName(id){ + if (typeof(dataTable_datastores) != "undefined"){ + return getName(id,dataTable_datastores,4); + } + return id; +}; + +function getVNetName(id){ + if (typeof(dataTable_vNetworks) != "undefined"){ + return getName(id,dataTable_vNetworks,4); + } + return id; +}; + +function getHostName(id){ + if (typeof(dataTable_hosts) != "undefined"){ + return getName(id,dataTable_hosts,2); + } + return id; +}; + +function getTemplateName(id){ + if (typeof(dataTable_templates) != "undefined"){ + return getName(id,dataTable_templates,4); + } + return id; +}; + +// Returns the value of the column with the resource of specified +// id in the dataTable. +function getName(id,dataTable,name_col){ + var name = id; + if (typeof(dataTable) == "undefined") { + return name; + } + var nodes = dataTable.fnGetData(); + + $.each(nodes,function(){ + if (id == this[1]) { + name = this[name_col]; + return false; + } + }); + return name; +}; + +// A more general version of the above. +// Search a datatable record matching the filter_str in the filter_col. Returns +// the value of that record in the desired value column. +function getValue(filter_str,filter_col,value_col,dataTable){ + var value=""; + if (typeof(dataTable) == "undefined") return value; + + var nodes = dataTable.fnGetData(); + + $.each(nodes,function(){ + if (filter_str == this[filter_col]){ + value = this[value_col]; + return false; + }; + }); + return value; +}; + +//Replaces all class"tip" divs with an information icon that +//displays the tip information on mouseover. +function setupTips(context){ + + //For each tip in this context + $('div.tip',context).each(function(){ + //store the text + var obj = $(this); + var tip = obj.html(); + //replace the text with an icon and spans + obj.html(''); + obj.append(''); + + obj.append(''); + + //add the text to .tipspan + $('span.tipspan',obj).html(tip); + //make sure it is not floating in the wrong place + obj.parent().append('
'); + //hide the text + $('span.tipspan',obj).hide(); + + //When the mouse is hovering on the icon we fadein/out + //the tip text + $('span.info_icon',obj).hover(function(e){ + var icon = $(this); + var top, left; + top = e.pageY - 15;// - $(this).parents('#create_vm_dialog').offset().top - 15; + left = e.pageX + 15;// - $(this).parents('#create_vm_dialog').offset().left; + icon.next().css( + {"top":top+"px", + "left":left+"px"}); + icon.next().fadeIn(); + },function(){ + $(this).next().fadeOut(); + }); + }); +} + +//returns an array of ids of selected elements in a dataTable +function getSelectedNodes(dataTable){ + var selected_nodes = []; + if (dataTable){ + //Which rows of the datatable are checked? + var nodes = $('tbody input.check_item:checked',dataTable); + $.each(nodes,function(){ + selected_nodes.push($(this).val()); + }); + }; + return selected_nodes; +} + +//returns a HTML string with options for +//a select input code generated from a dataTable. +//Allows filtering elements specifing status columns +//and bad status (if the values of the columns match the bad status) +//then this elem is skipped. +//no_empty_obj allows to skip adding a Please Select option +function makeSelectOptions(dataTable, + option_value_col, + option_name_col, + status_cols, + bad_status_values, + no_empty_opt){ + var nodes = dataTable.fnGetData(); + var select = ""; + if (!no_empty_opt) + select = ''; + var array; + for (var j=0; j'+name+' (id:'+id+')'; + }; + }; + return select; +} + +//Escape doublequote in a string and return it +function escapeDoubleQuotes(string){ + string = string.replace(/\\"/g,'"'); + return string.replace(/"/g,'\\"'); +} + +//Generate the div elements in which the monitoring graphs +//will be contained. They have some elements which ids are +//determined by the graphs configuration, so when the time +//of plotting comes, we can put the data in the right place. +function generateMonitoringDivs(graphs, id_prefix, options){ + var str = ""; + //40% of the width of the screen minus + //200px (left menu size) + var width = ($(window).width()-200)*39/100; + var id_suffix=""; + var label=""; + var id=""; + var omit_title = options && options.omit_title; + + $.each(graphs,function(){ + label = this.monitor_resources; + id_suffix=label.replace(/,/g,'_'); + id_suffix=id_suffix.replace(/\//g,'_'); + id = id_prefix+id_suffix; + str+=''+ + (!omit_title ? '' : '') + + '\ +
'+this.title+'
\ +
'+ + spinner+ + '
\ +
'; + }); + + return str; +} + +//Draws data for plotting. It will find the correct +//div for doing it in the context with an id +//formed by a prefix (i.e. "hosts") and a suffix +//determined by the graph configuration: "info". +function plot_graph(data,context,id_prefix,info){ + var monitoring_resources = info.monitor_resources; + var labels = info.labels + var humanize = info.humanize_figures ? + humanize_size : function(val){ return val }; + var convert_from_bytes = info.convert_from_bytes; + var id_suffix = monitoring_resources.replace(/,/g,'_'); + id_suffix = id_suffix.replace(/\//g,'_'); + var monitoring_resources_array = monitoring_resources.split(','); + + if (labels) { + labels_array = labels.split(',') + } + + var monitoring = data.monitoring + var series = []; + var serie; + var mon_count = 0; + var show_date = info.show_date; + + //make sure series are painted in the order of the + //monitoring_resources array. + for (var i=0; i'); + var dialog = $('#template_update_dialog',dialogs_context); + + //Put HTML in place + dialog.html( + '
\ +

'+tr("Please, choose and modify the template you want to update")+':

\ +
\ + \ + \ +
\ + \ +
\ +
\ +
\ + \ +
\ +
\ +
'); + + //Convert into jQuery + dialog.dialog({ + autoOpen:false, + width:700, + modal:true, + height:430, + resizable:false + }); + + $('button',dialog).button(); + + $('#template_update_select',dialog).change(function(){ + var id = $(this).val(); + if (id && id.length){ + var dialog = $('#template_update_dialog'); + var resource = $('#template_update_button',dialog).val(); + $('#template_update_textarea',dialog).val("Loading..."); + Sunstone.runAction(resource+".fetch_template",id); + } else { + $('#template_update_textarea',dialog).val(""); + }; + }); + + $('#template_update_button',dialog).click(function(){ + var dialog = $('#template_update_dialog'); + var new_template = $('#template_update_textarea',dialog).val(); + var id = $('#template_update_select',dialog).val(); + + if (!id || !id.length) { + dialog.dialog('close'); + return false; + }; + + //Workaround so deletion of templates is allowed. + if (!new_template) new_template=" "; + + var resource = $(this).val(); + Sunstone.runAction(resource+".update",id,new_template); + dialog.dialog('close'); + return false; + }); +} + +//Pops up a dialog to update a template. +//If 1 element is selected, then this the only one shown. +//If no elements are selected, then all elements are included in the select box. +//If several elements are selected, only those are included in the select box. +function popUpTemplateUpdateDialog(elem_str,select_items,sel_elems){ + var dialog = $('#template_update_dialog'); + $('#template_update_button',dialog).val(elem_str); + $('#template_update_select',dialog).html(select_items); + $('#template_update_textarea',dialog).val(""); + + if (sel_elems.length >= 1){ //several items in the list are selected + //grep them + var new_select= sel_elems.length > 1? '' : ""; + $('option','').each(function(){ + var val = $(this).val(); + if ($.inArray(val,sel_elems) >= 0){ + new_select+=''; + }; + }); + $('#template_update_select',dialog).html(new_select); + if (sel_elems.length == 1) { + $('#template_update_select option',dialog).attr('selected','selected'); + $('#template_update_select',dialog).trigger("change"); + } + }; + + dialog.dialog('open'); + return false; +} + + +//Shows run a custom action when clicking on rows. +function infoListener(dataTable, info_action){ + $('tbody tr',dataTable).live("click",function(e){ + if ($(e.target).is('input') || + $(e.target).is('select') || + $(e.target).is('option')) return true; + + var aData = dataTable.fnGetData(this); + var id = $(aData[0]).val(); + if (!id) return true; + + var count = $('tbody .check_item:checked', dataTable).length; + + //If ctrl is hold down or there is already some item selected + //then just select. + if (info_action){ + if (e.ctrlKey || count >= 1) + $('.check_item',this).trigger('click'); + else { + popDialogLoading(); + Sunstone.runAction(info_action,id) + }; + } else { + $('.check_item',this).trigger('click'); + }; + + return false; + }); +} + +function mustBeAdmin(){ + return gid == 0; +} + +function mustNotBeAdmin(){ + return !mustBeAdmin(); +} + +function users_sel(){ + return users_select; +} + +function groups_sel(){ + return groups_select; +} + +function hosts_sel(){ + return hosts_select; +} + +function clusters_sel() { + return clusters_select; +} + +function datastores_sel() { + return datastores_select; +} + +/* Below functions to easier permission management */ + +function ownerUse(resource){ + return parseInt(resource.PERMISSIONS.OWNER_U); +}; +function ownerManage(resource){ + return parseInt(resource.PERMISSIONS.OWNER_M); +}; +function ownerAdmin(resource){ + return parseInt(resource.PERMISSIONS.OWNER_A); +}; + +function groupUse(resource){ + return parseInt(resource.PERMISSIONS.GROUP_U); +}; +function groupManage(resource){ + return parseInt(resource.PERMISSIONS.GROUP_M); +}; +function groupAdmin(resource){ + return parseInt(resource.PERMISSIONS.GROUP_A); +}; + +function otherUse(resource){ + return parseInt(resource.PERMISSIONS.OTHER_U); +}; +function otherManage(resource){ + return parseInt(resource.PERMISSIONS.OTHER_M); +}; +function otherAdmin(resource){ + return parseInt(resource.PERMISSIONS.OTHER_A); +}; + + +function ownerPermStr(resource){ + var result = ""; + result += ownerUse(resource) ? "u" : "-"; + result += ownerManage(resource) ? "m" : "-"; + result += ownerAdmin(resource) ? "a" : "-"; + return result; +}; + +function groupPermStr(resource){ + var result = ""; + result += groupUse(resource) ? "u" : "-"; + result += groupManage(resource) ? "m" : "-"; + result += groupAdmin(resource) ? "a" : "-"; + return result; +}; + +function otherPermStr(resource){ + var result = ""; + result += otherUse(resource) ? "u" : "-"; + result += otherManage(resource) ? "m" : "-"; + result += otherAdmin(resource) ? "a" : "-"; + return result; +}; + +function setPermissionsTable(resource,context){ + if (ownerUse(resource)) + $('.owner_u',context).attr('checked','checked'); + if (ownerManage(resource)) + $('.owner_m',context).attr('checked','checked'); + if (ownerAdmin(resource)) + $('.owner_a',context).attr('checked','checked'); + if (groupUse(resource)) + $('.group_u',context).attr('checked','checked'); + if (groupManage(resource)) + $('.group_m',context).attr('checked','checked'); + if (groupAdmin(resource)) + $('.group_a',context).attr('checked','checked'); + if (otherUse(resource)) + $('.other_u',context).attr('checked','checked'); + if (otherManage(resource)) + $('.other_m',context).attr('checked','checked'); + if (otherAdmin(resource)) + $('.other_a',context).attr('checked','checked'); +}; + +//Returns an octet given a permission table with checkboxes +function buildOctet(permTable){ + var owner=0; + var group=0; + var other=0; + + if ($('.owner_u',permTable).is(':checked')) + owner+=4; + if ($('.owner_m',permTable).is(':checked')) + owner+=2; + if ($('.owner_a',permTable).is(':checked')) + owner+=1; + + if ($('.group_u',permTable).is(':checked')) + group+=4; + if ($('.group_m',permTable).is(':checked')) + group+=2; + if ($('.group_a',permTable).is(':checked')) + group+=1; + + if ($('.other_u',permTable).is(':checked')) + other+=4; + if ($('.other_m',permTable).is(':checked')) + other+=2; + if ($('.other_a',permTable).is(':checked')) + other+=1; + + return ""+owner+group+other; +}; + + +// Sets up a dialog to edit and update user and group quotas +// Called from user/group plugins +function setupQuotasDialog(dialog){ + + var height = Math.floor($(window).height()*0.8); //set height to a percentage of the window + + //Prepare jquery dialog + dialog.dialog({ + autoOpen: false, + modal:true, + width: 740, + height: height + }); + + $('button',dialog).button(); + $('#vm_quota,#datastore_quota,#image_quota,#network_quota',dialog).hide(); + + $('#quota_types input',dialog).click(function(){ + $('#vm_quota,#datastore_quota,#image_quota,#network_quota',dialog).hide(); + $('#'+$(this).val()+'_quota',dialog).show(); + $('#add_quota_button',dialog).show(); + }) + + $('#add_quota_button',dialog).hide(); + + $('#add_quota_button',dialog).click(function(){ + var sel = $('#quota_types input:checked',dialog).val(); + var fields = $('div#'+sel+'_quota input,div#'+sel+'_quota select',dialog); + var json = {}; + + for (var i = 0; i < fields.length; i++){ + var field = $(fields[i]); + var name = field.attr('name'); + var value = field.val(); + if (name == 'ID' && !value.length){ + notifyError(tr("Please select an element")); + return false; + }; + if (!value) value = 0; + json[name] = value; + }; + + json['TYPE'] = sel.toUpperCase(); + + if (json['TYPE'] == "VM" && + $('.current_quotas table tbody tr.vm_quota', dialog).length){ + notifyError("Only 1 VM quota is allowed") + return false; + } + + + var tr = quotaListItem(json) + $('.current_quotas table tbody',dialog).append($(tr).hide().fadeIn()); + return false; + }); + + $('form', dialog).submit(function(){ + var obj = {}; + $('table tbody tr',this).each(function(){ + var json = JSON.parse($(this).attr('quota')); + var type = json['TYPE']; + delete json['TYPE']; + obj[type.toUpperCase()] = json; + }); + + var action = $('div.form_buttons button',this).val(); + var sel_elems = SunstoneCfg["actions"][action].elements(); + Sunstone.runAction(action,sel_elems,obj); + dialog.dialog('close'); + return false; + }); +} + +function popUpQuotasDialog(dialog, resource, sel_elems){ + var im_sel = makeSelectOptions(dataTable_images,1,4,[],[]); + var vn_sel = makeSelectOptions(dataTable_vNetworks,1,4,[],[]); + $('#datastore_quota select',dialog).html(datastores_sel()); + $('#image_quota select',dialog).html(im_sel); + $('#network_quota select',dialog).html(vn_sel); + + $('table tbody',dialog).empty(); + //If only one user is selected we fecth the user's quotas, otherwise we do nothing. + if (sel_elems.length == 1){ + var id = sel_elems[0]; + Sunstone.runAction(resource + '.fetch_quotas',id); + }; + + dialog.dialog('open'); +} + + +//Action to be performed when an edit quota icon is clicked. +function setupQuotaIcons(){ + $('.quota_edit_icon').live('click',function(){ + var dialog = $(this).parents('form'); + var tr = $(this).parents('tr'); + var quota = JSON.parse(tr.attr('quota')); + switch (quota.TYPE){ + case "VM": + $('div#vm_quota input[name="VMS"]',dialog).val(quota.VMS); + $('div#vm_quota input[name="MEMORY"]',dialog).val(quota.MEMORY); + $('div#vm_quota input[name="CPU"]',dialog).val(quota.CPU); + break; + case "DATASTORE": + $('div#datastore_quota select[name="ID"]',dialog).val(quota.ID); + $('div#datastore_quota input[name="SIZE"]',dialog).val(quota.SIZE); + $('div#datastore_quota input[name="IMAGES"]').val(quota.IMAGES); + break; + case "IMAGE": + $('div#image_quota select[name="ID"]',dialog).val(quota.ID); + $('div#image_quota input[name="RVMS"]',dialog).val(quota.RVMS); + break; + case "NETWORK": + $('div#network_quota select[name="ID"]',dialog).val(quota.ID); + $('div#network_quota input[name="LEASES"]',dialog).val(quota.LEASES); + break; + } + $('div#quota_types input[value="'+quota.TYPE.toLowerCase()+'"]',dialog).trigger('click'); + tr.fadeOut(function(){$(this).remove()}); + return false; + }); +} + +// Returns an object with quota information in form of list items +function parseQuotas(elem, formatter_f){ + var quotas = []; + var results = { + VM : "", + DATASTORE : "", + IMAGE : "", + NETWORK : "" + } + //max 1 vm quota + if (!$.isEmptyObject(elem.VM_QUOTA)){ + elem.VM_QUOTA.VM.TYPE = 'VM' + quotas.push(elem.VM_QUOTA.VM) + } + + var ds_arr = [] + if ($.isArray(elem.DATASTORE_QUOTA.DATASTORE)){ + ds_arr = elem.DATASTORE_QUOTA.DATASTORE + } else if (!$.isEmptyObject(elem.DATASTORE_QUOTA)){ + ds_arr = [elem.DATASTORE_QUOTA.DATASTORE] + } + + for (var i = 0; i < ds_arr.length; i++){ + ds_arr[i].TYPE = 'DATASTORE'; + quotas.push(ds_arr[i]); + } + + var im_arr = [] + if ($.isArray(elem.IMAGE_QUOTA.IMAGE)){ + im_arr = elem.IMAGE_QUOTA.IMAGE + } else if (!$.isEmptyObject(elem.IMAGE_QUOTA)){ + im_arr = [elem.IMAGE_QUOTA.IMAGE] + } + + for (var i = 0; i < im_arr.length; i++){ + im_arr[i].TYPE = 'IMAGE'; + quotas.push(im_arr[i]); + } + + var vn_arr = [] + if ($.isArray(elem.NETWORK_QUOTA)){ + vn_arr = elem.NETWORK_QUOTA.NETWORK + } else if (!$.isEmptyObject(elem.NETWORK_QUOTA)){ + vn_arr = [elem.NETWORK_QUOTA.NETWORK] + } + + for (var i = 0; i < vn_arr.length; i++){ + vn_arr[i].TYPE = 'NETWORK'; + quotas.push(vn_arr[i]); + } + + for (var i = 0; i < quotas.length; i++){ + var tr = formatter_f(quotas[i]); + results[quotas[i].TYPE] += tr; + } + return results; +} + +//Receives a quota json object. Returns a nice string out of it. +function quotaListItem(quota_json){ + var value = JSON.stringify(quota_json) + var str = '
';
+    switch(quota_json.TYPE){
+    case "VM":
+        str +=  'VMs: ' + quota_json.VMS + (quota_json.VMS_USED ? ' (' + quota_json.VMS_USED + '). ' : ". ") +
+               'Memory: ' + quota_json.MEMORY + (quota_json.MEMORY_USED ? ' MB (' + quota_json.MEMORY_USED + ' MB). ' : " MB. ") +
+               'CPU: ' + quota_json.CPU +  (quota_json.CPU_USED ? ' (' + quota_json.CPU_USED + '). ' : ". ");
+        break;
+    case "DATASTORE":
+        str +=  'ID/Name: ' + getDatastoreName(quota_json.ID) + '. ' +
+               'Size: ' + quota_json.SIZE +  (quota_json.SIZE_USED ? ' MB (' + quota_json.SIZE_USED + ' MB). ' : " MB. ") +
+               'Images: ' + quota_json.IMAGES +  (quota_json.IMAGES_USED ? ' (' + quota_json.IMAGES_USED + '). ' : ".");
+        break;
+    case "IMAGE":
+        str +=  'ID/Name: ' + getImageName(quota_json.ID) + '. ' +
+               'RVMs: ' + quota_json.RVMS +  (quota_json.RVMS_USED ? ' (' + quota_json.RVMS_USED + '). ' : ". ");
+        break;
+    case "NETWORK":
+        str +=  'ID/Name: ' + getVNetName(quota_json.ID) + '. ' +
+               'Leases: ' + quota_json.LEASES +  (quota_json.LEASES_USED ? ' (' + quota_json.LEASES_USED + '). ': ". ");
+        break;
+    }
+    str += '
'; + return str; +} + +/* Returns the code of a jquery progress bar + Options: object with width, height, label and fontSize as keys +*/ +function progressBar(value, opts){ + if (value > 100) value = 100; + + if (!opts) opts = {}; + + if (!opts.width) opts.width = 'auto'; + + if (!opts.label) opts.label = ""; + + if (!opts.height) opts.height = '10px'; + + if (!opts.fontSize) opts.fontSize = '0.6em'; + + if (!opts.labelVPos) opts.labelVPos = '-4px'; + + if (!opts.labelHPos) opts.labelHPos = '90px'; + + return '
\ + '+opts.label+'\ +
\ +
'; +} + +function loadAccounting(resource, id, graphs, options){ + var secs_in_day = 3600 * 24; + var now = Math.floor(new Date().getTime() / 1000) + var start = options && options.start ? options.start : now - secs_in_day; + var end = options && options.end ? options.end : now; + var interval; + if (options && options.interval){ + interval = options.interval; + } else { + //If we are asking more than one interval is one day, otherwise 1 hour + interval = (end - start) > secs_in_day ? secs_in_day : 3600; + } + + for (var i = 0; i < graphs.length; i++){ + var graph_cfg = graphs[i]; + graph_cfg.start = start + graph_cfg.end = end + graph_cfg.interval = interval + // If the date range is longer than 24 hours, then show only + // date, otherwise show time in the x axis + graph_cfg.show_date = (end - start) > (3600 * 24)? true : false; + Sunstone.runAction(resource+".accounting", id, graph_cfg); + }; +} \ No newline at end of file diff --git a/src/ozones/Server/public/js/legacysunstone/sunstone.js b/src/ozones/Server/public/js/legacysunstone/sunstone.js new file mode 100644 index 0000000000..0003aa3b9c --- /dev/null +++ b/src/ozones/Server/public/js/legacysunstone/sunstone.js @@ -0,0 +1,794 @@ +/* -------------------------------------------------------------------------- */ +/* Copyright 2002-2013, OpenNebula Project (OpenNebula.org), C12G Labs */ +/* */ +/* Licensed under the Apache License, Version 2.0 (the "License"); you may */ +/* not use this file except in compliance with the License. You may obtain */ +/* a copy of the License at */ +/* */ +/* http://www.apache.org/licenses/LICENSE-2.0 */ +/* */ +/* Unless required by applicable law or agreed to in writing, software */ +/* distributed under the License is distributed on an "AS IS" BASIS, */ +/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ +/* See the License for the specific language governing permissions and */ +/* limitations under the License. */ +/* -------------------------------------------------------------------------- */ + +var cookie = {}; +var username = ''; +var uid = ''; +var gid = ''; +var spinner = 'retrieving'; + +var main_tabs_context; +var dialogs_context; +var plots_context; +var info_panels_context; + + +//Sunstone configuration is formed by predifined "actions", main tabs +//and "info_panels". Each tab has "content" and "buttons". Each +//"info_panel" has "tabs" with "content". +var SunstoneCfg = { + "actions" : {}, + "tabs" : {}, + "info_panels" : {} +}; + +/* Public plugin interface */ + +var Sunstone = { + + //Adds a predifined action + "addAction" : function (action_name,action_obj) { + SunstoneCfg["actions"][action_name] = action_obj; + }, + + //Replaces a predefined action + "updateAction" : function(action_name,action_obj) { + SunstoneCfg["actions"][action_name] = action_obj; + }, + + //Deletes a predefined action. + "removeAction" : function(action_name) { + delete SunstoneCfg["actions"][action_name]; + }, + + //Adds several actions encapsulated in an js object. + "addActions" : function(actions) { + for (action in actions){ + Sunstone.addAction(action,actions[action]); + } + }, + + //Adds a new main tab. Refreshes the dom if wanted. + "addMainTab" : function(tab_id,tab_obj,refresh) { + SunstoneCfg["tabs"][tab_id] = tab_obj; + if (refresh){ + insertTab(tab_id); + } + }, + + //Updates the content of an info tab and refreshes the DOM if wanted. + "updateMainTabContent" : function(tab_id,content_arg,refresh){ + SunstoneCfg["tabs"][tab_id]["content"]=content_arg; + //if not present it will not be updated + if (refresh){ + $('div#'+tab_id, main_tabs_context).html(content_arg); + } + }, + + //Replaces the buttons of an info tab and regenerates them if wanted. + "updateMainTabButtons" : function(tab_id,buttons_arg,refresh){ + SunstoneCfg["tabs"][tab_id]["buttons"]=buttons_arg; + if (refresh){ + $('div#'+tab_id+' .action_blocks', main_tabs_context).empty(); + insertButtonsInTab(tab_id); + } + }, + + //Removes a tab and refreshes the DOM + "removeMainTab" : function(tab_id,refresh) { + delete SunstoneCfg["tabs"][tab_id]; + if (refresh) { + $('div#'+tab_id, main_tabs_context).remove(); + $('ul#navigation li#li_'+tab_id).remove(); + } + }, + + //Adds a new info panel + "addInfoPanel" : function(panel_name, panel_obj){ + SunstoneCfg["info_panels"][panel_name]=panel_obj; + }, + + //Replaces an existing info panel + "updateInfoPanel" : function(panel_name,panel_obj){ + SunstoneCfg["info_panels"][panel_name]=panel_obj; + }, + + //Removes an info panel + "removeInfoPanel" : function(panel_name){ + delete SunstoneCfg["info_panels"][panel_name]; + }, + + //Makes an info panel content pop up in the screen. + "popUpInfoPanel" : function(panel_name, selected_tab){ + popDialog(Sunstone.getInfoPanelHTML(panel_name, selected_tab)); + }, + + //Generates and returns the HTML div element for an info panel, with + //Jquery tabs. + "getInfoPanelHTML" : function(panel_name,selected_tab){ + var info_panel = $('
    '); + var tabs = SunstoneCfg["info_panels"][panel_name]; + var tab=null; + for (tab_name in tabs){ + tab=tabs[tab_name]; + $('ul',info_panel).append('
  • '+tab.title+'
  • '); + info_panel.append('
    '+tab.content+'
    '); + } + if (selected_tab){ + return info_panel.tabs({selected: selected_tab}); + } + return info_panel.tabs({selected: 0}); + + }, + + //adds a tab to an info panel. + "addInfoPanelTab" : function(panel_name, panel_tab_id, panel_tab_obj){ + SunstoneCfg["info_panels"][panel_name][panel_tab_id] = panel_tab_obj; + }, + + //Replaces a tab from an info panel. Refreshes the DOM if wanted. + "updateInfoPanelTab" : function(panel_name, panel_tab_id, + panel_tab_obj, refresh){ + SunstoneCfg["info_panels"][panel_name][panel_tab_id] = panel_tab_obj; + if (refresh){ + var tab_content = panel_tab_obj.content; + $('div#'+panel_name+' div#'+panel_tab_id,info_panel_context).html(tab_content); + } + }, + + //Removes a tab from an info panel configuration. + "removeInfoPanelTab" : function(panel_name,panel_tab_id){ + delete SunstoneCfg["info_panels"][panel_name][panel_tab_id]; + }, + + //Runs a predefined action. Wraps the calls to opennebula.js and + //can be use to run action depending on conditions and notify them + //if desired. Returns 1 if some problem has been detected: i.e + //the condition to run the action is not met, the action is not found + "runAction" : function(action, data_arg, extra_param){ + + var actions = SunstoneCfg["actions"]; + if (!actions[action]){ + notifyError("Action "+action+" not defined"); + return 1; + } + + var action_cfg = actions[action]; + var notify = action_cfg.notify; + + var condition = action_cfg["condition"]; + + //Is the condition to run the action met? + //Should we inform if it is not met? + if (condition && !condition()){ + if (notify) { + notifyError("This action cannot be run"); + } + return 1; + } + + var call = action_cfg["call"]; + var callback = action_cfg["callback"]; + var err = action_cfg["error"]; + + //We ease the use of: + // * "create" calls to opennebula.js + // * "single" element calls to opennebula.js + // * "list" (get the pool of elements) calls to opennebula.js + // * "monitor_global" (returns monitoring info from a pool of elements + // * "monitor_single" (returns monitoring info from 1 element) + // * "multiple" - actions to be run on a given list of elements + // (with maybe an extra parameter). + // * The default actions. Simple call the the pre-defined "call" + // function with an extraparam if defined. + switch (action_cfg.type){ + + case "create": + case "register": + call({data:data_arg, success: callback, error:err}); + break; + case "single": + if (extra_param){ + call({ + data:{ + id:data_arg, + extra_param:extra_param + }, + success: callback,error:err + }); + } else { + call({data:{id:data_arg}, success: callback,error:err}); + }; + break; + case "list": + call({success: callback, error:err}); + break; + case "monitor_global": + call({ + timeout: true, + success: callback, + error:err, + data: {monitor: data_arg}}); + break; + case "monitor": + case "monitor_single": + call({ + timeout: true, + success: callback, + error:err, + data: {id:data_arg, monitor: extra_param}}); + break; + case "multiple": + //run on the list of nodes that come on the data + $.each(data_arg,function(){ + if (extra_param){ + call({ + data:{ + id:this, + extra_param:extra_param + }, + success: callback, + error: err}); + } else { + call({ + data:{id:this}, + success: callback, + error:err}); + } + }); + break; + default: + //This action is complemente handled by the "call" function. + //we pass any data if present. + if (data_arg && extra_param) {call(data_arg,extra_param);} + else if (data_arg) {call(data_arg);} + else {call();} + } + //notify submission + if (notify) { + notifySubmit(action,data_arg,extra_param); + } + + return 0; + }, + + //returns a button object from the desired tab + "getButton" : function(tab_id,button_name){ + var button = null; + var buttons = SunstoneCfg["tabs"][tab_id]["buttons"]; + button = buttons[button_name]; + //not found, is it in the list then? + if (!button && buttons["action_list"]) + { + button = buttons["action_list"]["actions"][button_name]; + } + return button; + } //end sunstone methods + +}; + + + +//Plugins have done their pre-ready jobs when we execute this. That means +//all startup configuration is in place regarding tabs, info panels etc. +$(document).ready(function(){ + + //Contexts - make everything more efficient + main_tabs_context = $('div.inner-center'); + dialogs_context = $('div#dialogs'); + plots_context = $('div#plots'); + info_panels_context = $('div#info_panels'); + + readCookie(); + setLogin(); + + //Insert the tabs in the DOM and their buttons. + insertTabs(); +// hideSubTabs(); + insertButtons(); + + //Enhace the look of select buttons + initListButtons(); + + //Prepare the standard confirmation dialogs + setupConfirmDialogs(); + + //This dialog is shared to update templates + setupTemplateUpdateDialog(); + + //Listen for .action_buttons + //An action buttons runs a predefined action. If it has type + //"multiple" it runs that action on the elements of a datatable. + $('.action_button').live("click",function(){ + var error = 0; + var table = null; + var value = $(this).attr('value'); + var action = SunstoneCfg["actions"][value]; + if (!action) { + notifyError("Action "+value+" not defined."); + return false; + }; + switch (action.type){ + case "multiple": //find the datatable + var nodes = action.elements(); + error = Sunstone.runAction(value,nodes); + break; + default: + error = Sunstone.runAction(value); + } + + if (!error){ + //proceed to close confirm dialog in + //case it was open + $('div#confirm_dialog').dialog("close"); + }; + + return false; + }); + + + //Listen .confirm_buttons. These buttons show a confirmation dialog + //before running the action. + $('.confirm_button',main_tabs_context).live("click",function(){ + popUpConfirmDialog(this); + return false; + }); + + //Listen .confirm_buttons. These buttons show a confirmation dialog + //with a select box before running the action. + $('.confirm_with_select_button',main_tabs_context).live("click",function(){ + popUpConfirmWithSelectDialog(this); + return false; + }); + + //Jquery-enhace the buttons in the DOM + $('button').button(); + + //Close overlay dialogs when clicking outside of them. + $(".ui-widget-overlay").live("click", function (){ + $("div:ui-dialog:visible").dialog("close"); + }); + + //Close select lists when clicking somewhere else. + $('*:not(.action_list,.list_button)').click(function(){ + $('.action_blocks .action_list:visible',main_tabs_context).hide(); + }); + + //Close open panel + $('.close_dialog_link').live("click",function(){ + hideDialog(); + return false; + }); + + + + //Start with the dashboard (supposing we have one). + showTab('dashboard_tab'); + +}); + + + + +//reads the cookie and places its info in the 'cookie' var +function readCookie(){ + $.each(document.cookie.split("; "), function(i,e){ + var e_split = e.split("="); + var key = e_split[0]; + var value = e_split[1]; + cookie[key] = value; + }); +} + +//sets the user info in the top bar and creates a listner in the +//signout button +function setLogin(){ + //This variables can be used anywhere + switch(whichUI()){ + case "sunstone": + username = cookie["one-user"]; + uid = cookie["one-user_id"]; + gid = cookie["one-user_gid"]; + break; + case "ozones": + username = cookie["ozones-user"]; + break; + case "selfservice": + username = cookie["occi-user"]; + uid = cookie["occi-user-id"]; + break; + }; + + + $("div#header span#user").html(username); + + $("div#header a#logout").click(function(){ + redirect = function(){window.location.href = "login";}; + switch(whichUI()){ + case "sunstone": + OpenNebula.Auth.logout({success:redirect}); + break; + case "ozones": + oZones.Auth.logout({success:redirect}); + break; + case "selfservice": + OCCI.Auth.logout({success:function(){window.location.href = "ui";}}); + break; + } + return false; + }); +} + +//returns whether we are Sunstone, or oZones +//not the most elegant way, but better in its own function +function whichUI(){ + if (typeof(OpenNebula)!="undefined") + return "sunstone"; + if (typeof(oZones)!="undefined") + return "ozones"; + if (typeof(OCCI)!="undefined") + return "selfservice"; +}; + +//Inserts all main tabs in the DOM +function insertTabs(){ + var tab_info; + for (tab in SunstoneCfg["tabs"]){ + insertTab(tab); + } +} + + +//Inserts a main tab in the DOM. This is done by +//adding the content to the proper div and by adding a list item +//link to the navigation menu +function insertTab(tab_name){ + var tab_info = SunstoneCfg['tabs'][tab_name]; + var condition = tab_info['condition']; + var tabClass = tab_info['tabClass'] ? tab_info['tabClass'] : 'topTab'; + var parent = tab_info['parentTab'] ? tab_info['parentTab'] : ''; + var showOnTop = tab_info['showOnTopMenu']; + + //skip this tab if we do not meet the condition + if (condition && !condition()) {return;} + + main_tabs_context.append(''); + + $('div#'+tab_name,main_tabs_context).html(tab_info.content); + + var li_item = '
  • '+tab_info.title+'
  • '; + + //if this is a submenu... + if (parent.length) { + var children = $('div#menu ul#navigation li.'+parent); + //if there are other submenus, insert after last of them + if (children.length) + $(children[children.length-1]).after(li_item); + else //instert after parent menu + $('div#menu ul#navigation li#li_'+parent).after(li_item); + } else { //not a submenu, instert in the end + $('div#menu ul#navigation').append(li_item); + }; + + if (parent){ //this is a subtab + $('div#menu li#li_'+tab_name).hide();//hide by default + $('div#menu li#li_'+parent+' span').css("display","inline-block"); + }; + + if (showOnTop){ + $('div#header ul#menutop_ul').append('
  • '+tab_info.title+'
  • '); + }; +}; + +function hideSubTabs(){ + for (tab in SunstoneCfg["tabs"]){ + var tab_info = SunstoneCfg["tabs"][tab]; + var tabClass = tab_info["tabClass"]; + if (tabClass=="subTab"){ + $('div#menu ul#navigation #li_'+tab).hide(); + }; + }; +} + + + +//Inserts the buttons of all tabs. +function insertButtons(){ + for (tab in SunstoneCfg["tabs"]){ + insertButtonsInTab(tab) + } +} + +//If we have defined a block of action buttons in a tab, +//this function takes care of inserting them in the DOM. +function insertButtonsInTab(tab_name){ + var buttons = SunstoneCfg["tabs"][tab_name]["buttons"]; + var button_code=""; + var sel_obj=null; + var condition=null; + + //Check if we have included an appropiate space our tab to + //insert them (an .action_blocks div) + var action_block = $('div#'+tab_name+' div.action_blocks',main_tabs_context) + + if (action_block.length){ + + //for every button defined for this tab... + for (button_name in buttons){ + button_code = ""; + button = buttons[button_name]; + condition = button.condition; + //if we meet the condition we proceed. Otherwise we skip it. + if (condition && !condition()) { continue; } + + //depending on the type of button we generate different + //code. There are 4 possible types: + /* + * select: We need to create a select element with actions inside. + * image: a button consisting of a link with an image inside. + * create: we make sure they have the "action_button" class. + * default: generally buttons have the "_button" class. + */ + switch (button.type) { + case "select": + button_code = ''; + break; + case "image": + button_code = ''+button.text+''; + break; + case "create_dialog": + button_code = ''; + break; + default: + button_code = ''; + + } + + if (button.alwaysActive) { + button_code = $(button_code).addClass("alwaysActive"); + } + + action_block.append(button_code); + + }//for each button in tab + $('.top_button',action_block).button(); + }//if tab exists +} + +//Converts selects into buttons which show a list of actions when +//clicked. This lists have two parts, one for the last action run, and +//another containing a list of actions that can be folded/unfolded. +function initListButtons(){ + + //for each multi_action select + $('.multi_action_slct',main_tabs_context).each(function(){ + //prepare replacement buttons + var buttonset = $('
    '+tr("Previous action")+'').button(); + button1.attr('disabled','disabled'); + var button2 = $('').button({ + text:false, + icons: { primary: "ui-icon-triangle-1-s" } + }); + buttonset.append(button1); + buttonset.append(button2); + buttonset.buttonset(); + + //prepare list + var options = $('option', $(this)); + var list = $('
      '); + $.each(options,function(){ + var classes = $(this).attr('class'); + var item = $('
    • '); + var a = $(''+$(this).text()+''); + a.val($(this).val()); + item.html(a); + list.append(item); + }); + list.css({ + "display":"none" + }); + + $(this).before(buttonset); + $(this).parents('.action_blocks').append(list); + $(this).remove(); + + }); + + //below the listeners for events on these buttons and list + + //enable run the last action button + $('.action_list li a',main_tabs_context).click(function(){ + //enable run last action button + var prev_action_button = $('.last_action_button',$(this).parents('.action_blocks')); + prev_action_button.val($(this).val()); + prev_action_button.removeClass("confirm_with_select_button"); + prev_action_button.removeClass("confirm_button"); + prev_action_button.removeClass("action_button"); + prev_action_button.addClass($(this).attr('class')); + prev_action_button.button("option","label",$(this).text()); + prev_action_button.button("enable"); + $(this).parents('ul').hide("blind",100); + //return false; + }); + + //Show the list of actions in place + $('.list_button',main_tabs_context).click(function(){ + $('.action_list',$(this).parents('.action_blocks')).css({ + "left": $(this).prev().position().left, + "top": $(this).prev().position().top+13, + "width": $(this).parent().outerWidth()-11 + }); + //100ms animation time + $('.action_list',$(this).parents('.action_blocks')).toggle("blind",100); + return false; + }); +} + +//Prepares the standard confirm dialogs +function setupConfirmDialogs(){ + dialogs_context.append('
      '); + var dialog = $('div#confirm_dialog',dialogs_context); + + //add the HTML with the standard question and buttons. + dialog.html( + '
      \ +
      '+tr("You have to confirm this action.")+'
      \ +
      \ +
      '+tr("Do you want to proceed?")+'
      \ +
      \ +
      \ + \ + \ +
      \ +
      '); + + //prepare the jquery dialog + dialog.dialog({ + resizable:false, + modal:true, + width:300, + heigth:200, + autoOpen:false + }); + + //enhace the button look + $('button',dialog).button(); + + //if a cancel button is pressed, we close the dialog. + $('button.confirm_cancel',dialog).click(function(){ + $(this).parents('div:ui-dialog').dialog("close"); + return false; + }); + + dialogs_context.append('
      '); + dialog = $('div#confirm_with_select_dialog',dialogs_context); + + dialog.html( + '
      \ +
      '+tr("You need to select something.")+'
      \ + \ +
      \ + \ + \ +
      \ +
      '); + + //prepare the jquery dialog + dialog.dialog({ + resizable:false, + modal:true, + width:300, + heigth:300, + autoOpen:false + }); + + $('button',dialog).button(); + + //if a cancel button is pressed, we close the dialog. + $('button.confirm_cancel',dialog).click(function(){ + $(this).parents('div:ui-dialog').dialog("close"); + return false; + }); + + //when we proceed with a "confirm with select" we need to + //find out if we are running an action with a parametre on a datatable + //items or if its just an action + $('button#confirm_with_select_proceed',dialog).click(function(){ + var context = $(this).parents('div:ui-dialog'); + var error = 0; + var value = $(this).val(); + var action = SunstoneCfg["actions"][value]; + var param = $('select#confirm_select',context).val(); + + if (!param.length){ + notifyError("You must select a value"); + return false; + }; + + if (!action) { notifyError("Action "+value+" not defined."); return false;}; + switch (action.type){ + case "multiple": //find the datatable + var nodes = action.elements(); + error = Sunstone.runAction(value,nodes,param); + break; + default: + error = Sunstone.runAction(value,param); + break; + } + + if (!error){ + context.dialog("close"); + } + + return false; + }); +} + +//Popup a confirmation dialog. +//In order to find out the dialog action and +//tip for the user we need to access the clicked button +//configuration. We do this by discovering the name of the parent tab +//and with the value of the clicked element. +function popUpConfirmDialog(target_elem){ + var dialog = $('div#confirm_dialog'); + var value = $(target_elem).val(); + var tab_id = $(target_elem).parents('.tab').attr('id'); + var button = Sunstone.getButton(tab_id,value); + + if (button.tip == undefined) + var tip = tr("You have to confrim this action"); + else + var tip = button.tip + + $('button#confirm_proceed',dialog).val(value); + + + $('div#confirm_tip',dialog).text(tip); + dialog.dialog("open"); +} + +//Same as previous. This time we need as well to access the updated +//select list, which is done through the pointer of found in the +//config of the button (a function returning the select options). +function popUpConfirmWithSelectDialog(target_elem){ + var dialog = $('div#confirm_with_select_dialog'); + var value = $(target_elem).val(); + var tab_id = $(target_elem).parents('.tab').attr('id'); + var button = Sunstone.getButton(tab_id,value); + + if (button.tip == undefined) + var tip = tr("You have to confrim this action"); + else + var tip = button.tip + + var select_var = button.select(); + $('select#confirm_select',dialog).html(select_var); + $('div#confirm_with_select_tip',dialog).text(tip); + + $('button#confirm_with_select_proceed',dialog).val(value); + dialog.dialog("open"); +} From 24251a56beefaeaff19755ed0ab950a5e3752f65 Mon Sep 17 00:00:00 2001 From: Tino Vazquez Date: Fri, 22 Mar 2013 17:45:42 +0100 Subject: [PATCH 2/2] feature #1664: Moving vendors from sunstone to ozones in the source tree --- install.sh | 124 +++++++++--------- .../Server}/public/vendor/FontAwesome/NOTICE | 0 .../vendor/FontAwesome/css/font-awesome.css | 0 .../FontAwesome/font/fontawesome-webfont.eot | Bin .../FontAwesome/font/fontawesome-webfont.svg | 0 .../FontAwesome/font/fontawesome-webfont.ttf | Bin .../FontAwesome/font/fontawesome-webfont.woff | Bin .../public/vendor/dataTables/BSD-LICENSE.txt | 0 .../vendor/dataTables/ColReorderWithResize.js | 0 .../public/vendor/dataTables/ColVis.css | 0 .../public/vendor/dataTables/ColVis.min.js | 0 .../Server}/public/vendor/dataTables/NOTICE | 0 .../vendor/dataTables/demo_table_jui.css | 0 .../dataTables/jquery.dataTables.min.js | 0 .../Server}/public/vendor/jGrowl/NOTICE | 0 .../public/vendor/jGrowl/jquery.jgrowl.css | 0 .../vendor/jGrowl/jquery.jgrowl_minimized.js | 0 .../public/vendor/jQuery/MIT-LICENSE.txt | 0 .../Server}/public/vendor/jQuery/NOTICE | 0 .../public/vendor/jQuery/jquery-1.7.1.min.js | 0 .../public/vendor/jQuery/jquery-1.7.2.min.js | 0 .../Server}/public/vendor/jQueryLayout/NOTICE | 0 .../jQueryLayout/jquery.layout-latest.min.js | 0 .../jQueryLayout/layout-default-latest.css | 0 .../public/vendor/jQueryUI/MIT-LICENSE.txt | 0 .../Server}/public/vendor/jQueryUI/NOTICE | 0 .../images/ui-bg_flat_0_353735_40x100.png | Bin .../images/ui-bg_flat_0_aaaaaa_40x100.png | Bin .../images/ui-bg_flat_0_eeeeee_40x100.png | Bin .../images/ui-bg_flat_0_f2f2f2_40x100.png | Bin .../images/ui-bg_flat_0_ffffff_40x100.png | Bin .../images/ui-bg_flat_100_f6f6f6_40x100.png | Bin .../images/ui-bg_flat_25_f6f6f6_40x100.png | Bin .../images/ui-bg_flat_55_ffffff_40x100.png | Bin .../images/ui-bg_flat_65_353735_40x100.png | Bin .../images/ui-bg_flat_75_ffffff_40x100.png | Bin .../images/ui-bg_glass_55_fbf9ee_1x400.png | Bin .../images/ui-bg_glass_65_ffffff_1x400.png | Bin .../images/ui-bg_glass_75_dadada_1x400.png | Bin .../images/ui-bg_glass_75_e6e6e6_1x400.png | Bin .../images/ui-bg_glass_95_fef1ec_1x400.png | Bin .../ui-bg_highlight-soft_100_f6f6f6_1x100.png | Bin .../ui-bg_highlight-soft_25_0073ea_1x100.png | Bin .../ui-bg_highlight-soft_25_0098c3_1x100.png | Bin .../ui-bg_highlight-soft_25_353735_1x100.png | Bin .../ui-bg_highlight-soft_25_f6f6f6_1x100.png | Bin .../ui-bg_highlight-soft_50_dddddd_1x100.png | Bin .../ui-bg_highlight-soft_50_ffffff_1x100.png | Bin .../ui-bg_highlight-soft_75_cccccc_1x100.png | Bin .../images/ui-icons_0073ea_256x240.png | Bin .../images/ui-icons_0098c3_256x240.png | Bin .../images/ui-icons_222222_256x240.png | Bin .../images/ui-icons_2e83ff_256x240.png | Bin .../images/ui-icons_353735_256x240.png | Bin .../images/ui-icons_454545_256x240.png | Bin .../images/ui-icons_666666_256x240.png | Bin .../images/ui-icons_888888_256x240.png | Bin .../images/ui-icons_cd0a0a_256x240.png | Bin .../images/ui-icons_d10300_256x240.png | Bin .../images/ui-icons_ff0084_256x240.png | Bin .../images/ui-icons_ffffff_256x240.png | Bin .../jQueryUI/jquery-ui-1.8.16.custom.css | 0 .../jQueryUI/jquery-ui-1.8.16.custom.min.js | 0 .../jQueryUI/jquery-ui-1.9.2.custom.min.css | 0 64 files changed, 62 insertions(+), 62 deletions(-) rename src/{sunstone => ozones/Server}/public/vendor/FontAwesome/NOTICE (100%) rename src/{sunstone => ozones/Server}/public/vendor/FontAwesome/css/font-awesome.css (100%) rename src/{sunstone => ozones/Server}/public/vendor/FontAwesome/font/fontawesome-webfont.eot (100%) rename src/{sunstone => ozones/Server}/public/vendor/FontAwesome/font/fontawesome-webfont.svg (100%) rename src/{sunstone => ozones/Server}/public/vendor/FontAwesome/font/fontawesome-webfont.ttf (100%) rename src/{sunstone => ozones/Server}/public/vendor/FontAwesome/font/fontawesome-webfont.woff (100%) rename src/{sunstone => ozones/Server}/public/vendor/dataTables/BSD-LICENSE.txt (100%) rename src/{sunstone => ozones/Server}/public/vendor/dataTables/ColReorderWithResize.js (100%) rename src/{sunstone => ozones/Server}/public/vendor/dataTables/ColVis.css (100%) rename src/{sunstone => ozones/Server}/public/vendor/dataTables/ColVis.min.js (100%) rename src/{sunstone => ozones/Server}/public/vendor/dataTables/NOTICE (100%) rename src/{sunstone => ozones/Server}/public/vendor/dataTables/demo_table_jui.css (100%) rename src/{sunstone => ozones/Server}/public/vendor/dataTables/jquery.dataTables.min.js (100%) rename src/{sunstone => ozones/Server}/public/vendor/jGrowl/NOTICE (100%) rename src/{sunstone => ozones/Server}/public/vendor/jGrowl/jquery.jgrowl.css (100%) rename src/{sunstone => ozones/Server}/public/vendor/jGrowl/jquery.jgrowl_minimized.js (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQuery/MIT-LICENSE.txt (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQuery/NOTICE (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQuery/jquery-1.7.1.min.js (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQuery/jquery-1.7.2.min.js (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryLayout/NOTICE (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryLayout/jquery.layout-latest.min.js (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryLayout/layout-default-latest.css (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/MIT-LICENSE.txt (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/NOTICE (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-bg_flat_0_353735_40x100.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-bg_flat_0_aaaaaa_40x100.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-bg_flat_0_eeeeee_40x100.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-bg_flat_0_f2f2f2_40x100.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-bg_flat_0_ffffff_40x100.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-bg_flat_100_f6f6f6_40x100.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-bg_flat_25_f6f6f6_40x100.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-bg_flat_55_ffffff_40x100.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-bg_flat_65_353735_40x100.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-bg_flat_75_ffffff_40x100.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-bg_glass_55_fbf9ee_1x400.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-bg_glass_65_ffffff_1x400.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-bg_glass_75_dadada_1x400.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-bg_glass_75_e6e6e6_1x400.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-bg_glass_95_fef1ec_1x400.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-bg_highlight-soft_100_f6f6f6_1x100.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_0073ea_1x100.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_0098c3_1x100.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_353735_1x100.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_f6f6f6_1x100.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-bg_highlight-soft_50_dddddd_1x100.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-bg_highlight-soft_50_ffffff_1x100.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-bg_highlight-soft_75_cccccc_1x100.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-icons_0073ea_256x240.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-icons_0098c3_256x240.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-icons_222222_256x240.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-icons_2e83ff_256x240.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-icons_353735_256x240.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-icons_454545_256x240.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-icons_666666_256x240.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-icons_888888_256x240.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-icons_cd0a0a_256x240.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-icons_d10300_256x240.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-icons_ff0084_256x240.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/images/ui-icons_ffffff_256x240.png (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/jquery-ui-1.8.16.custom.css (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/jquery-ui-1.8.16.custom.min.js (100%) rename src/{sunstone => ozones/Server}/public/vendor/jQueryUI/jquery-ui-1.9.2.custom.min.css (100%) diff --git a/install.sh b/install.sh index e26c604f4a..1ae67b8ff5 100755 --- a/install.sh +++ b/install.sh @@ -1620,90 +1620,90 @@ OZONES_LIB_API_ZONA_FILES="src/ozones/Client/lib/zona/ZoneElement.rb \ src/ozones/Client/lib/zona/ZonePool.rb" OZONES_PUBLIC_VENDOR_JQUERY="\ - src/sunstone/public/vendor/jQuery/jquery-1.7.2.min.js \ - src/sunstone/public/vendor/jQuery/MIT-LICENSE.txt \ - src/sunstone/public/vendor/jQuery/NOTICE" + src/ozones/Server/public/vendor/jQuery/jquery-1.7.2.min.js \ + src/ozones/Server/public/vendor/jQuery/MIT-LICENSE.txt \ + src/ozones/Server/public/vendor/jQuery/NOTICE" OZONES_PUBLIC_VENDOR_CRYPTOJS=$SUNSTONE_PUBLIC_VENDOR_CRYPTOJS OZONES_PUBLIC_VENDOR_DATATABLES="\ - src/sunstone/public/vendor/dataTables/jquery.dataTables.min.js \ - src/sunstone/public/vendor/dataTables/ColVis.min.js \ - src/sunstone/public/vendor/dataTables/ColReorderWithResize.js \ - src/sunstone/public/vendor/dataTables/demo_table_jui.css \ - src/sunstone/public/vendor/dataTables/ColVis.css \ - src/sunstone/public/vendor/dataTables/BSD-LICENSE.txt \ - src/sunstone/public/vendor/dataTables/NOTICE" + src/ozones/Server/public/vendor/dataTables/jquery.dataTables.min.js \ + src/ozones/Server/public/vendor/dataTables/ColVis.min.js \ + src/ozones/Server/public/vendor/dataTables/ColReorderWithResize.js \ + src/ozones/Server/public/vendor/dataTables/demo_table_jui.css \ + src/ozones/Server/public/vendor/dataTables/ColVis.css \ + src/ozones/Server/public/vendor/dataTables/BSD-LICENSE.txt \ + src/ozones/Server/public/vendor/dataTables/NOTICE" OZONES_PUBLIC_VENDOR_JGROWL="\ - src/sunstone/public/vendor/jGrowl/jquery.jgrowl_minimized.js \ - src/sunstone/public/vendor/jGrowl/jquery.jgrowl.css \ - src/sunstone/public/vendor/jGrowl/NOTICE" + src/ozones/Server/public/vendor/jGrowl/jquery.jgrowl_minimized.js \ + src/ozones/Server/public/vendor/jGrowl/jquery.jgrowl.css \ + src/ozones/Server/public/vendor/jGrowl/NOTICE" OZONES_PUBLIC_VENDOR_JQUERYUI="\ -src/sunstone/public/vendor/jQueryUI/jquery-ui-1.8.16.custom.css \ -src/sunstone/public/vendor/jQueryUI/jquery-ui-1.9.2.custom.min.css \ -src/sunstone/public/vendor/jQueryUI/MIT-LICENSE.txt \ -src/sunstone/public/vendor/jQueryUI/jquery-ui-1.8.16.custom.min.js \ -src/sunstone/public/vendor/jQueryUI/NOTICE \ +src/ozones/Server/public/vendor/jQueryUI/jquery-ui-1.8.16.custom.css \ +src/ozones/Server/public/vendor/jQueryUI/jquery-ui-1.9.2.custom.min.css \ +src/ozones/Server/public/vendor/jQueryUI/MIT-LICENSE.txt \ +src/ozones/Server/public/vendor/jQueryUI/jquery-ui-1.8.16.custom.min.js \ +src/ozones/Server/public/vendor/jQueryUI/NOTICE \ " OZONES_PUBLIC_VENDOR_JQUERYUIIMAGES="\ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_353735_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_aaaaaa_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_eeeeee_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_f2f2f2_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_ffffff_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_100_f6f6f6_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_25_f6f6f6_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_55_ffffff_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_65_353735_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_75_ffffff_40x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_55_fbf9ee_1x400.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_65_ffffff_1x400.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_75_dadada_1x400.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_75_e6e6e6_1x400.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_95_fef1ec_1x400.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_100_f6f6f6_1x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_0073ea_1x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_0098c3_1x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_353735_1x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_f6f6f6_1x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_50_dddddd_1x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_50_ffffff_1x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_75_cccccc_1x100.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_0073ea_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_0098c3_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_222222_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_2e83ff_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_353735_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_454545_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_666666_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_888888_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_cd0a0a_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_d10300_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_ff0084_256x240.png \ -src/sunstone/public/vendor/jQueryUI/images/ui-icons_ffffff_256x240.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_0_353735_40x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_0_aaaaaa_40x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_0_eeeeee_40x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_0_f2f2f2_40x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_0_ffffff_40x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_100_f6f6f6_40x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_25_f6f6f6_40x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_55_ffffff_40x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_65_353735_40x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_75_ffffff_40x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_glass_55_fbf9ee_1x400.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_glass_65_ffffff_1x400.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_glass_75_dadada_1x400.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_glass_75_e6e6e6_1x400.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_glass_95_fef1ec_1x400.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_100_f6f6f6_1x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_0073ea_1x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_0098c3_1x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_353735_1x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_f6f6f6_1x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_50_dddddd_1x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_50_ffffff_1x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_75_cccccc_1x100.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_0073ea_256x240.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_0098c3_256x240.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_222222_256x240.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_2e83ff_256x240.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_353735_256x240.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_454545_256x240.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_666666_256x240.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_888888_256x240.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_cd0a0a_256x240.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_d10300_256x240.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_ff0084_256x240.png \ +src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_ffffff_256x240.png \ " OZONES_PUBLIC_VENDOR_JQUERYLAYOUT="\ - src/sunstone/public/vendor/jQueryLayout/layout-default-latest.css \ - src/sunstone/public/vendor/jQueryLayout/jquery.layout-latest.min.js \ - src/sunstone/public/vendor/jQueryLayout/NOTICE" + src/ozones/Server/public/vendor/jQueryLayout/layout-default-latest.css \ + src/ozones/Server/public/vendor/jQueryLayout/jquery.layout-latest.min.js \ + src/ozones/Server/public/vendor/jQueryLayout/NOTICE" OZONES_PUBLIC_VENDOR_FONTAWESOME="\ -src/sunstone/public/vendor/FontAwesome/NOTICE \ +src/ozones/Server/public/vendor/FontAwesome/NOTICE \ " OZONES_PUBLIC_VENDOR_FONTAWESOME_FONT="\ -src/sunstone/public/vendor/FontAwesome/font/fontawesome-webfont.eot \ -src/sunstone/public/vendor/FontAwesome/font/fontawesome-webfont.woff \ -src/sunstone/public/vendor/FontAwesome/font/fontawesome-webfont.ttf \ -src/sunstone/public/vendor/FontAwesome/font/fontawesome-webfont.svg \ +src/ozones/Server/public/vendor/FontAwesome/font/fontawesome-webfont.eot \ +src/ozones/Server/public/vendor/FontAwesome/font/fontawesome-webfont.woff \ +src/ozones/Server/public/vendor/FontAwesome/font/fontawesome-webfont.ttf \ +src/ozones/Server/public/vendor/FontAwesome/font/fontawesome-webfont.svg \ " OZONES_PUBLIC_VENDOR_FONTAWESOME_CSS="\ -src/sunstone/public/vendor/FontAwesome/css/font-awesome.css \ +src/ozones/Server/public/vendor/FontAwesome/css/font-awesome.css \ " OZONES_PUBLIC_JS_FILES="src/ozones/Server/public/js/ozones.js \ diff --git a/src/sunstone/public/vendor/FontAwesome/NOTICE b/src/ozones/Server/public/vendor/FontAwesome/NOTICE similarity index 100% rename from src/sunstone/public/vendor/FontAwesome/NOTICE rename to src/ozones/Server/public/vendor/FontAwesome/NOTICE diff --git a/src/sunstone/public/vendor/FontAwesome/css/font-awesome.css b/src/ozones/Server/public/vendor/FontAwesome/css/font-awesome.css similarity index 100% rename from src/sunstone/public/vendor/FontAwesome/css/font-awesome.css rename to src/ozones/Server/public/vendor/FontAwesome/css/font-awesome.css diff --git a/src/sunstone/public/vendor/FontAwesome/font/fontawesome-webfont.eot b/src/ozones/Server/public/vendor/FontAwesome/font/fontawesome-webfont.eot similarity index 100% rename from src/sunstone/public/vendor/FontAwesome/font/fontawesome-webfont.eot rename to src/ozones/Server/public/vendor/FontAwesome/font/fontawesome-webfont.eot diff --git a/src/sunstone/public/vendor/FontAwesome/font/fontawesome-webfont.svg b/src/ozones/Server/public/vendor/FontAwesome/font/fontawesome-webfont.svg similarity index 100% rename from src/sunstone/public/vendor/FontAwesome/font/fontawesome-webfont.svg rename to src/ozones/Server/public/vendor/FontAwesome/font/fontawesome-webfont.svg diff --git a/src/sunstone/public/vendor/FontAwesome/font/fontawesome-webfont.ttf b/src/ozones/Server/public/vendor/FontAwesome/font/fontawesome-webfont.ttf similarity index 100% rename from src/sunstone/public/vendor/FontAwesome/font/fontawesome-webfont.ttf rename to src/ozones/Server/public/vendor/FontAwesome/font/fontawesome-webfont.ttf diff --git a/src/sunstone/public/vendor/FontAwesome/font/fontawesome-webfont.woff b/src/ozones/Server/public/vendor/FontAwesome/font/fontawesome-webfont.woff similarity index 100% rename from src/sunstone/public/vendor/FontAwesome/font/fontawesome-webfont.woff rename to src/ozones/Server/public/vendor/FontAwesome/font/fontawesome-webfont.woff diff --git a/src/sunstone/public/vendor/dataTables/BSD-LICENSE.txt b/src/ozones/Server/public/vendor/dataTables/BSD-LICENSE.txt similarity index 100% rename from src/sunstone/public/vendor/dataTables/BSD-LICENSE.txt rename to src/ozones/Server/public/vendor/dataTables/BSD-LICENSE.txt diff --git a/src/sunstone/public/vendor/dataTables/ColReorderWithResize.js b/src/ozones/Server/public/vendor/dataTables/ColReorderWithResize.js similarity index 100% rename from src/sunstone/public/vendor/dataTables/ColReorderWithResize.js rename to src/ozones/Server/public/vendor/dataTables/ColReorderWithResize.js diff --git a/src/sunstone/public/vendor/dataTables/ColVis.css b/src/ozones/Server/public/vendor/dataTables/ColVis.css similarity index 100% rename from src/sunstone/public/vendor/dataTables/ColVis.css rename to src/ozones/Server/public/vendor/dataTables/ColVis.css diff --git a/src/sunstone/public/vendor/dataTables/ColVis.min.js b/src/ozones/Server/public/vendor/dataTables/ColVis.min.js similarity index 100% rename from src/sunstone/public/vendor/dataTables/ColVis.min.js rename to src/ozones/Server/public/vendor/dataTables/ColVis.min.js diff --git a/src/sunstone/public/vendor/dataTables/NOTICE b/src/ozones/Server/public/vendor/dataTables/NOTICE similarity index 100% rename from src/sunstone/public/vendor/dataTables/NOTICE rename to src/ozones/Server/public/vendor/dataTables/NOTICE diff --git a/src/sunstone/public/vendor/dataTables/demo_table_jui.css b/src/ozones/Server/public/vendor/dataTables/demo_table_jui.css similarity index 100% rename from src/sunstone/public/vendor/dataTables/demo_table_jui.css rename to src/ozones/Server/public/vendor/dataTables/demo_table_jui.css diff --git a/src/sunstone/public/vendor/dataTables/jquery.dataTables.min.js b/src/ozones/Server/public/vendor/dataTables/jquery.dataTables.min.js similarity index 100% rename from src/sunstone/public/vendor/dataTables/jquery.dataTables.min.js rename to src/ozones/Server/public/vendor/dataTables/jquery.dataTables.min.js diff --git a/src/sunstone/public/vendor/jGrowl/NOTICE b/src/ozones/Server/public/vendor/jGrowl/NOTICE similarity index 100% rename from src/sunstone/public/vendor/jGrowl/NOTICE rename to src/ozones/Server/public/vendor/jGrowl/NOTICE diff --git a/src/sunstone/public/vendor/jGrowl/jquery.jgrowl.css b/src/ozones/Server/public/vendor/jGrowl/jquery.jgrowl.css similarity index 100% rename from src/sunstone/public/vendor/jGrowl/jquery.jgrowl.css rename to src/ozones/Server/public/vendor/jGrowl/jquery.jgrowl.css diff --git a/src/sunstone/public/vendor/jGrowl/jquery.jgrowl_minimized.js b/src/ozones/Server/public/vendor/jGrowl/jquery.jgrowl_minimized.js similarity index 100% rename from src/sunstone/public/vendor/jGrowl/jquery.jgrowl_minimized.js rename to src/ozones/Server/public/vendor/jGrowl/jquery.jgrowl_minimized.js diff --git a/src/sunstone/public/vendor/jQuery/MIT-LICENSE.txt b/src/ozones/Server/public/vendor/jQuery/MIT-LICENSE.txt similarity index 100% rename from src/sunstone/public/vendor/jQuery/MIT-LICENSE.txt rename to src/ozones/Server/public/vendor/jQuery/MIT-LICENSE.txt diff --git a/src/sunstone/public/vendor/jQuery/NOTICE b/src/ozones/Server/public/vendor/jQuery/NOTICE similarity index 100% rename from src/sunstone/public/vendor/jQuery/NOTICE rename to src/ozones/Server/public/vendor/jQuery/NOTICE diff --git a/src/sunstone/public/vendor/jQuery/jquery-1.7.1.min.js b/src/ozones/Server/public/vendor/jQuery/jquery-1.7.1.min.js similarity index 100% rename from src/sunstone/public/vendor/jQuery/jquery-1.7.1.min.js rename to src/ozones/Server/public/vendor/jQuery/jquery-1.7.1.min.js diff --git a/src/sunstone/public/vendor/jQuery/jquery-1.7.2.min.js b/src/ozones/Server/public/vendor/jQuery/jquery-1.7.2.min.js similarity index 100% rename from src/sunstone/public/vendor/jQuery/jquery-1.7.2.min.js rename to src/ozones/Server/public/vendor/jQuery/jquery-1.7.2.min.js diff --git a/src/sunstone/public/vendor/jQueryLayout/NOTICE b/src/ozones/Server/public/vendor/jQueryLayout/NOTICE similarity index 100% rename from src/sunstone/public/vendor/jQueryLayout/NOTICE rename to src/ozones/Server/public/vendor/jQueryLayout/NOTICE diff --git a/src/sunstone/public/vendor/jQueryLayout/jquery.layout-latest.min.js b/src/ozones/Server/public/vendor/jQueryLayout/jquery.layout-latest.min.js similarity index 100% rename from src/sunstone/public/vendor/jQueryLayout/jquery.layout-latest.min.js rename to src/ozones/Server/public/vendor/jQueryLayout/jquery.layout-latest.min.js diff --git a/src/sunstone/public/vendor/jQueryLayout/layout-default-latest.css b/src/ozones/Server/public/vendor/jQueryLayout/layout-default-latest.css similarity index 100% rename from src/sunstone/public/vendor/jQueryLayout/layout-default-latest.css rename to src/ozones/Server/public/vendor/jQueryLayout/layout-default-latest.css diff --git a/src/sunstone/public/vendor/jQueryUI/MIT-LICENSE.txt b/src/ozones/Server/public/vendor/jQueryUI/MIT-LICENSE.txt similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/MIT-LICENSE.txt rename to src/ozones/Server/public/vendor/jQueryUI/MIT-LICENSE.txt diff --git a/src/sunstone/public/vendor/jQueryUI/NOTICE b/src/ozones/Server/public/vendor/jQueryUI/NOTICE similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/NOTICE rename to src/ozones/Server/public/vendor/jQueryUI/NOTICE diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_353735_40x100.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_0_353735_40x100.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_353735_40x100.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_0_353735_40x100.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_aaaaaa_40x100.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_0_aaaaaa_40x100.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_aaaaaa_40x100.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_0_aaaaaa_40x100.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_eeeeee_40x100.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_0_eeeeee_40x100.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_eeeeee_40x100.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_0_eeeeee_40x100.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_f2f2f2_40x100.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_0_f2f2f2_40x100.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_f2f2f2_40x100.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_0_f2f2f2_40x100.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_ffffff_40x100.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_0_ffffff_40x100.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_0_ffffff_40x100.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_0_ffffff_40x100.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_100_f6f6f6_40x100.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_100_f6f6f6_40x100.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_100_f6f6f6_40x100.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_100_f6f6f6_40x100.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_25_f6f6f6_40x100.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_25_f6f6f6_40x100.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_25_f6f6f6_40x100.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_25_f6f6f6_40x100.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_55_ffffff_40x100.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_55_ffffff_40x100.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_55_ffffff_40x100.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_55_ffffff_40x100.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_65_353735_40x100.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_65_353735_40x100.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_65_353735_40x100.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_65_353735_40x100.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_75_ffffff_40x100.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_75_ffffff_40x100.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-bg_flat_75_ffffff_40x100.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_flat_75_ffffff_40x100.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_55_fbf9ee_1x400.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_glass_55_fbf9ee_1x400.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_55_fbf9ee_1x400.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_glass_55_fbf9ee_1x400.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_65_ffffff_1x400.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_glass_65_ffffff_1x400.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_65_ffffff_1x400.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_glass_65_ffffff_1x400.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_75_dadada_1x400.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_glass_75_dadada_1x400.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_75_dadada_1x400.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_glass_75_dadada_1x400.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_75_e6e6e6_1x400.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_glass_75_e6e6e6_1x400.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_75_e6e6e6_1x400.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_glass_75_e6e6e6_1x400.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_95_fef1ec_1x400.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_glass_95_fef1ec_1x400.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-bg_glass_95_fef1ec_1x400.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_glass_95_fef1ec_1x400.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_100_f6f6f6_1x100.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_100_f6f6f6_1x100.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_100_f6f6f6_1x100.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_100_f6f6f6_1x100.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_0073ea_1x100.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_0073ea_1x100.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_0073ea_1x100.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_0073ea_1x100.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_0098c3_1x100.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_0098c3_1x100.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_0098c3_1x100.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_0098c3_1x100.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_353735_1x100.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_353735_1x100.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_353735_1x100.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_353735_1x100.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_f6f6f6_1x100.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_f6f6f6_1x100.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_f6f6f6_1x100.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_25_f6f6f6_1x100.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_50_dddddd_1x100.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_50_dddddd_1x100.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_50_dddddd_1x100.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_50_dddddd_1x100.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_50_ffffff_1x100.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_50_ffffff_1x100.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_50_ffffff_1x100.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_50_ffffff_1x100.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_75_cccccc_1x100.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_75_cccccc_1x100.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-bg_highlight-soft_75_cccccc_1x100.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-bg_highlight-soft_75_cccccc_1x100.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-icons_0073ea_256x240.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_0073ea_256x240.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-icons_0073ea_256x240.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_0073ea_256x240.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-icons_0098c3_256x240.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_0098c3_256x240.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-icons_0098c3_256x240.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_0098c3_256x240.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-icons_222222_256x240.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_222222_256x240.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-icons_222222_256x240.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_222222_256x240.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-icons_2e83ff_256x240.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_2e83ff_256x240.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-icons_2e83ff_256x240.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_2e83ff_256x240.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-icons_353735_256x240.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_353735_256x240.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-icons_353735_256x240.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_353735_256x240.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-icons_454545_256x240.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_454545_256x240.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-icons_454545_256x240.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_454545_256x240.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-icons_666666_256x240.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_666666_256x240.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-icons_666666_256x240.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_666666_256x240.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-icons_888888_256x240.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_888888_256x240.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-icons_888888_256x240.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_888888_256x240.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-icons_cd0a0a_256x240.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_cd0a0a_256x240.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-icons_cd0a0a_256x240.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_cd0a0a_256x240.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-icons_d10300_256x240.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_d10300_256x240.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-icons_d10300_256x240.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_d10300_256x240.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-icons_ff0084_256x240.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_ff0084_256x240.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-icons_ff0084_256x240.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_ff0084_256x240.png diff --git a/src/sunstone/public/vendor/jQueryUI/images/ui-icons_ffffff_256x240.png b/src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_ffffff_256x240.png similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/images/ui-icons_ffffff_256x240.png rename to src/ozones/Server/public/vendor/jQueryUI/images/ui-icons_ffffff_256x240.png diff --git a/src/sunstone/public/vendor/jQueryUI/jquery-ui-1.8.16.custom.css b/src/ozones/Server/public/vendor/jQueryUI/jquery-ui-1.8.16.custom.css similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/jquery-ui-1.8.16.custom.css rename to src/ozones/Server/public/vendor/jQueryUI/jquery-ui-1.8.16.custom.css diff --git a/src/sunstone/public/vendor/jQueryUI/jquery-ui-1.8.16.custom.min.js b/src/ozones/Server/public/vendor/jQueryUI/jquery-ui-1.8.16.custom.min.js similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/jquery-ui-1.8.16.custom.min.js rename to src/ozones/Server/public/vendor/jQueryUI/jquery-ui-1.8.16.custom.min.js diff --git a/src/sunstone/public/vendor/jQueryUI/jquery-ui-1.9.2.custom.min.css b/src/ozones/Server/public/vendor/jQueryUI/jquery-ui-1.9.2.custom.min.css similarity index 100% rename from src/sunstone/public/vendor/jQueryUI/jquery-ui-1.9.2.custom.min.css rename to src/ozones/Server/public/vendor/jQueryUI/jquery-ui-1.9.2.custom.min.css