diff --git a/install/ui/index.html b/install/ui/index.html
index 0523df4d1..75ff82997 100644
--- a/install/ui/index.html
+++ b/install/ui/index.html
@@ -16,7 +16,6 @@
-
diff --git a/install/ui/src/freeipa/app.js b/install/ui/src/freeipa/app.js
index 88c8c2bab..361d2371e 100644
--- a/install/ui/src/freeipa/app.js
+++ b/install/ui/src/freeipa/app.js
@@ -30,8 +30,6 @@ define([
'exports', // for circullar deps
'./ipa',
'./jquery',
- './navigation',
- './webui',
//only entities
'./aci',
'./automember',
diff --git a/install/ui/src/freeipa/navigation.js b/install/ui/src/freeipa/navigation.js
deleted file mode 100644
index 910fb79e2..000000000
--- a/install/ui/src/freeipa/navigation.js
+++ /dev/null
@@ -1,460 +0,0 @@
-/*jsl:import ipa.js */
-
-/* Authors:
- * Pavel Zuna
- * Endi S. Dewata
- *
- * Copyright (C) 2010 Red Hat
- * see file 'COPYING' for use and warranty information
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
-*/
-
-define(['./ipa', './jquery'], function(IPA, $) {
-
-IPA.navigation = function(spec) {
-
- spec = spec || {};
-
- var that = {};
-
- that.name = spec.name;
-
- that.container = spec.container;
- that.root = that.container.attr('id');
-
- that.content = spec.content;
- that.tab_class = spec.tab_class || 'tabs';
- that.max_depth = spec.max_depth || 3;
-
- that.tabs = [];
- that.tabs_by_name = {};
-
- that.path = {};
-
- that.set_tabs = function(tabs) {
- that.tabs = tabs;
- that.tabs_by_name = {};
-
- for (var i=0; i', {
- name: that.root
- }).appendTo(that.container);
-
- that._create(that.tabs, container, 1);
-
- var tabs = $('.' + that.tab_class, that.container);
- tabs.tabs({
- select: function(event, ui) {
-
- // get the selected tab
- var panel = $(ui.panel);
- var name = panel.attr('name');
- var selected_tab = that.get_tab(name);
-
- // get the tab specified in the URL state
- var state = that.get_state();
- var url_tab = that.get_active_tab(state);
-
- if (url_tab) {
- // if they are the same, the selection is triggered by hash change
- if (url_tab == selected_tab) {
- // use the URL state to update internal state
- return that.push_state(state);
-
- // if the selection is for the ancestor
- } else if (that.is_ancestor(url_tab, selected_tab)) {
- // let the tab be updated and don't change the state
- return true;
- }
- }
-
- // selection is triggered by mouse click, update the URL state
- return that.show_tab(name);
- }
- });
- };
-
- that._create = function(tabs, container, depth) {
-
- var parent_name = container.attr('name');
- that.path[parent_name] = tabs[0].name;
-
- container.addClass(that.tab_class);
- container.addClass('tabs'+depth);
-
- var ul = $('').appendTo(container);
- var created_count = 0;
-
- for (var i=0; i').append($('', {
- href: '#'+tab_id,
- title: tab.label,
- html: tab.label
- }));
-
- if (tab.hidden) {
- tab_li.css('display', 'none');
- }
-
- tab.children_container = $('', {
- id: tab_id,
- name: tab.name
- });
-
- if (tab.children && tab.children.length) {
- var kids =
- that._create(tab.children, tab.children_container, depth+1);
- /*If there are no child tabs, remove the container */
- if (kids === 0) {
- tabs.splice(i, 1);
- i -= 1;
- continue;
- }
- }
- created_count += 1;
- tab_li.appendTo(ul);
- tab.children_container.appendTo(container);
- }
- return created_count;
- };
-
- that.update = function() {
- for (var i=1; i<=that.max_depth; i++) {
- that.container.removeClass(that.tab_class+'-'+i);
- that.content.removeClass(that.tab_class+'-'+i);
- }
- $('.entity', that.content).css('display', 'none');
-
- var container = $('div[name='+that.root+']', that.container);
- that._update(that.tabs, container, 1);
- };
-
- that._update = function(tabs, container, depth) {
-
- var parent_name = container.attr('name');
- var tab_name = that.get_state(parent_name);
- if (!tab_name) tab_name = that.path[parent_name];
- that.path[parent_name] = tab_name;
-
- var index = 0;
- while (index < tabs.length && tabs[index].name != tab_name) index++;
- if (index >= tabs.length) index = 0;
-
- container.tabs('select', index);
-
- var tab = tabs[index];
- if (tab.depth !== undefined) {
- depth += tab.depth;
- }
-
- if (tab.children && tab.children.length) {
- var next_depth = depth + 1;
- that._update(tab.children, tab.children_container, next_depth);
-
- } else if (tab.entity) {
-
- that.container.addClass(that.tab_class+'-'+depth);
- that.content.addClass(that.tab_class+'-'+depth);
-
- var entity_container = $('.entity[name="'+tab.entity.name+'"]',
- that.content);
- if (!entity_container.length) {
- tab.content = $('', {
- name: tab.entity.name,
- title: tab.entity.label,
- 'class': 'entity'
- }).appendTo(that.content);
- tab.entity.create(tab.content);
- }
-
- entity_container.css('display', 'block');
- tab.entity.display(tab.content);
- }
- };
-
- // methods that should be invoked by subclasses
- that.navigation_update = that.update;
-
- that.set_tabs(spec.tabs);
-
- return that;
-};
-
-return {};
-});
\ No newline at end of file
diff --git a/install/ui/src/freeipa/webui.js b/install/ui/src/freeipa/webui.js
deleted file mode 100644
index db1dab07e..000000000
--- a/install/ui/src/freeipa/webui.js
+++ /dev/null
@@ -1,136 +0,0 @@
-/* Authors:
- * Pavel Zuna
- * Endi S. Dewata
- *
- * Copyright (C) 2010 Red Hat
- * see file 'COPYING' for use and warranty information
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
-
-define(['./ipa'], function(IPA) {
-
-/* tabs definition for IPA webUI */
-
-IPA.admin_navigation = function(spec) {
-
- spec = spec || {};
-
- spec.name = 'admin';
-
- spec.tabs = [
- {name: 'identity', label: IPA.messages.tabs.identity, children: [
- {entity: 'user'},
- {entity: 'group'},
- {entity: 'host'},
- {entity: 'hostgroup'},
- {entity: 'netgroup'},
- {entity: 'service'},
- {name:'dns', label: IPA.messages.tabs.dns, children:[
- {entity: 'dnszone'},
- {entity: 'dnsconfig'},
- {entity: 'dnsrecord', hidden:true}
- ]
- },
- {entity: 'cert', label: IPA.messages.tabs.cert },
- {entity: 'realmdomains'}
- ]},
- {name: 'policy', label: IPA.messages.tabs.policy, children: [
- {name: 'hbac', label: IPA.messages.tabs.hbac, children: [
- {entity: 'hbacrule'},
- {entity: 'hbacsvc'},
- {entity: 'hbacsvcgroup'},
- {entity: 'hbactest'}
- ]},
- {name: 'sudo', label: IPA.messages.tabs.sudo, children: [
- {entity: 'sudorule'},
- {entity: 'sudocmd'},
- {entity: 'sudocmdgroup'}
- ]},
- {name:'automount',
- label: IPA.messages.tabs.automount,
- children:[
- {entity: 'automountlocation', hidden:true, depth: -1},
- {entity: 'automountmap', hidden: true, depth: -1},
- {entity: 'automountkey', hidden: true, depth: -1}]},
- {entity: 'pwpolicy'},
- {entity: 'krbtpolicy'},
- {entity: 'selinuxusermap'},
- {name: 'automember', label: IPA.messages.tabs.automember,
- children: [
- { name: 'amgroup', entity: 'automember',
- facet: 'searchgroup', label: IPA.messages.objects.automember.usergrouprules},
- { name: 'amhostgroup', entity: 'automember',
- facet: 'searchhostgroup', label: IPA.messages.objects.automember.hostgrouprules}
- ]}
- ]},
- {name: 'ipaserver', label: IPA.messages.tabs.ipaserver, children: [
- {name: 'rolebased', label: IPA.messages.tabs.role, children: [
- {entity: 'role'},
- {entity: 'privilege'},
- {entity: 'permission'}
- ]},
- {entity: 'selfservice'},
- {entity: 'delegation'},
- {entity: 'idrange'},
- {
- name: 'trusts', label: IPA.messages.tabs.trust, children:[
- {entity: 'trust'},
- {entity: 'trustconfig'}
- ]
- },
- {entity: 'config'}
- ]}];
-
- var that = IPA.navigation(spec);
-
- return that;
-};
-
-IPA.self_serv_navigation = function(spec) {
-
- spec = spec || {};
-
- spec.name = 'self-service';
-
- spec.tabs = [
- {name: 'identity', label: IPA.messages.tabs.identity, children: [
- {entity: 'user'}
- ]}];
-
- var that = IPA.navigation(spec);
-
- that.update = function() {
- var pkey = that.get_state('user-pkey');
- var facet = that.get_state('user-facet');
-
- if (pkey && facet) {
- that.navigation_update();
-
- } else {
- var state = {
- 'navigation': 'identity',
- 'identity': 'user',
- 'user-pkey': pkey || IPA.whoami_pkey,
- 'user-facet': facet || 'details'
- };
- that.push_state(state);
- }
- };
-
- return that;
-};
-
-return {};
-});
diff --git a/install/ui/src/libs/Makefile.am b/install/ui/src/libs/Makefile.am
index 20d908544..807b9d8d3 100644
--- a/install/ui/src/libs/Makefile.am
+++ b/install/ui/src/libs/Makefile.am
@@ -3,7 +3,6 @@ NULL =
appdir = $(IPA_DATA_DIR)/ui/js/libs
app_DATA = \
browser.js \
- jquery.ba-bbq.js \
jquery.js \
jquery.ordered-map.js \
jquery-ui.js \
diff --git a/install/ui/src/libs/jquery.ba-bbq.js b/install/ui/src/libs/jquery.ba-bbq.js
deleted file mode 100644
index bcbf24834..000000000
--- a/install/ui/src/libs/jquery.ba-bbq.js
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
- * jQuery BBQ: Back Button & Query Library - v1.2.1 - 2/17/2010
- * http://benalman.com/projects/jquery-bbq-plugin/
- *
- * Copyright (c) 2010 "Cowboy" Ben Alman
- * Dual licensed under the MIT and GPL licenses.
- * http://benalman.com/about/license/
- */
-(function($,p){var i,m=Array.prototype.slice,r=decodeURIComponent,a=$.param,c,l,v,b=$.bbq=$.bbq||{},q,u,j,e=$.event.special,d="hashchange",A="querystring",D="fragment",y="elemUrlAttr",g="location",k="href",t="src",x=/^.*\?|#.*$/g,w=/^.*\#/,h,C={};function E(F){return typeof F==="string"}function B(G){var F=m.call(arguments,1);return function(){return G.apply(this,F.concat(m.call(arguments)))}}function n(F){return F.replace(/^[^#]*#?(.*)$/,"$1")}function o(F){return F.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}function f(H,M,F,I,G){var O,L,K,N,J;if(I!==i){K=F.match(H?/^([^#]*)\#?(.*)$/:/^([^#?]*)\??([^#]*)(#?.*)/);J=K[3]||"";if(G===2&&E(I)){L=I.replace(H?w:x,"")}else{N=l(K[2]);I=E(I)?l[H?D:A](I):I;L=G===2?I:G===1?$.extend({},I,N):$.extend({},N,I);L=a(L);if(H){L=L.replace(h,r)}}O=K[1]+(H?"#":L||!K[1]?"?":"")+L+J}else{O=M(F!==i?F:p[g][k])}return O}a[A]=B(f,0,o);a[D]=c=B(f,1,n);c.noEscape=function(G){G=G||"";var F=$.map(G.split(""),encodeURIComponent);h=new RegExp(F.join("|"),"g")};c.noEscape(",/");$.deparam=l=function(I,F){var H={},G={"true":!0,"false":!1,"null":null};$.each(I.replace(/\+/g," ").split("&"),function(L,Q){var K=Q.split("="),P=r(K[0]),J,O=H,M=0,R=P.split("]["),N=R.length-1;if(/\[/.test(R[0])&&/\]$/.test(R[N])){R[N]=R[N].replace(/\]$/,"");R=R.shift().split("[").concat(R);N=R.length-1}else{N=0}if(K.length===2){J=r(K[1]);if(F){J=J&&!isNaN(J)?+J:J==="undefined"?i:G[J]!==i?G[J]:J}if(N){for(;M<=N;M++){P=R[M]===""?O.length:R[M];O=O[P]=M').hide().insertAfter("body")[0].contentWindow;q=function(){return a(n.document[c][l])};o=function(u,s){if(u!==s){var t=n.document;t.open().close();t[c].hash="#"+u}};o(a())}}m.start=function(){if(r){return}var t=a();o||p();(function s(){var v=a(),u=q(t);if(v!==t){o(t=v,u);$(i).trigger(d)}else{if(u!==t){i[c][l]=i[c][l].replace(/#.*/,"")+"#"+u}}r=setTimeout(s,$[d+"Delay"])})()};m.stop=function(){if(!n){r&&clearTimeout(r);r=0}};return m})()})(jQuery,this);
\ No newline at end of file