Imported Upstream version 4.6.2
34
install/ui/Makefile.am
Normal file
@@ -0,0 +1,34 @@
|
||||
AUTOMAKE_OPTIONS = 1.7
|
||||
|
||||
NULL =
|
||||
|
||||
SUBDIRS = \
|
||||
build \
|
||||
css \
|
||||
images \
|
||||
src \
|
||||
$(NULL)
|
||||
|
||||
appdir = $(IPA_DATA_DIR)/ui
|
||||
app_DATA = \
|
||||
favicon.ico \
|
||||
index.html \
|
||||
ie.css \
|
||||
ipa.css \
|
||||
reset_password.js \
|
||||
reset_password.html \
|
||||
sync_otp.html \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DIST = \
|
||||
doc \
|
||||
jsl.conf \
|
||||
less \
|
||||
README-LICENSE.txt \
|
||||
test \
|
||||
util \
|
||||
$(app_DATA) \
|
||||
$(NULL)
|
||||
|
||||
install-data-hook:
|
||||
$(INSTALL) -d -m 755 $(DESTDIR)$(appdir)/js/plugins
|
||||
817
install/ui/Makefile.in
Normal file
@@ -0,0 +1,817 @@
|
||||
# Makefile.in generated by automake 1.15.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2017 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = { \
|
||||
if test -z '$(MAKELEVEL)'; then \
|
||||
false; \
|
||||
elif test -n '$(MAKE_HOST)'; then \
|
||||
true; \
|
||||
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
|
||||
true; \
|
||||
else \
|
||||
false; \
|
||||
fi; \
|
||||
}
|
||||
am__make_running_with_option = \
|
||||
case $${target_option-} in \
|
||||
?) ;; \
|
||||
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||
"target option '$${target_option-}' specified" >&2; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
has_opt=no; \
|
||||
sane_makeflags=$$MAKEFLAGS; \
|
||||
if $(am__is_gnu_make); then \
|
||||
sane_makeflags=$$MFLAGS; \
|
||||
else \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
bs=\\; \
|
||||
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||
esac; \
|
||||
fi; \
|
||||
skip_next=no; \
|
||||
strip_trailopt () \
|
||||
{ \
|
||||
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||
}; \
|
||||
for flg in $$sane_makeflags; do \
|
||||
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||
case $$flg in \
|
||||
*=*|--*) continue;; \
|
||||
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||
-*I?*) strip_trailopt 'I';; \
|
||||
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||
-*O?*) strip_trailopt 'O';; \
|
||||
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||
-*l?*) strip_trailopt 'l';; \
|
||||
-[dEDm]) skip_next=yes;; \
|
||||
-[JT]) skip_next=yes;; \
|
||||
esac; \
|
||||
case $$flg in \
|
||||
*$$target_option*) has_opt=yes; break;; \
|
||||
esac; \
|
||||
done; \
|
||||
test $$has_opt = yes
|
||||
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
||||
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
subdir = install/ui
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
|
||||
$(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
|
||||
$(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
|
||||
$(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
|
||||
$(top_srcdir)/m4/progtest.m4 $(top_srcdir)/VERSION.m4 \
|
||||
$(top_srcdir)/server.m4 $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
AM_V_P = $(am__v_P_@AM_V@)
|
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||
am__v_P_0 = false
|
||||
am__v_P_1 = :
|
||||
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||
am__v_GEN_0 = @echo " GEN " $@;
|
||||
am__v_GEN_1 =
|
||||
AM_V_at = $(am__v_at_@AM_V@)
|
||||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||
am__v_at_0 = @
|
||||
am__v_at_1 =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
|
||||
ctags-recursive dvi-recursive html-recursive info-recursive \
|
||||
install-data-recursive install-dvi-recursive \
|
||||
install-exec-recursive install-html-recursive \
|
||||
install-info-recursive install-pdf-recursive \
|
||||
install-ps-recursive install-recursive installcheck-recursive \
|
||||
installdirs-recursive pdf-recursive ps-recursive \
|
||||
tags-recursive uninstall-recursive
|
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
|
||||
am__install_max = 40
|
||||
am__nobase_strip_setup = \
|
||||
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
|
||||
am__nobase_strip = \
|
||||
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
|
||||
am__nobase_list = $(am__nobase_strip_setup); \
|
||||
for p in $$list; do echo "$$p $$p"; done | \
|
||||
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
|
||||
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
|
||||
if (++n[$$2] == $(am__install_max)) \
|
||||
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
|
||||
END { for (dir in files) print dir, files[dir] }'
|
||||
am__base_list = \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
||||
am__uninstall_files_from_dir = { \
|
||||
test -z "$$files" \
|
||||
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|
||||
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
|
||||
$(am__cd) "$$dir" && rm -f $$files; }; \
|
||||
}
|
||||
am__installdirs = "$(DESTDIR)$(appdir)"
|
||||
DATA = $(app_DATA)
|
||||
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
|
||||
distclean-recursive maintainer-clean-recursive
|
||||
am__recursive_targets = \
|
||||
$(RECURSIVE_TARGETS) \
|
||||
$(RECURSIVE_CLEAN_TARGETS) \
|
||||
$(am__extra_recursive_targets)
|
||||
AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
|
||||
distdir
|
||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
||||
# Read a list of newline-separated strings from the standard input,
|
||||
# and print each of them once, without duplicates. Input order is
|
||||
# *not* preserved.
|
||||
am__uniquify_input = $(AWK) '\
|
||||
BEGIN { nonempty = 0; } \
|
||||
{ items[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in items) print i; }; } \
|
||||
'
|
||||
# Make sure the list of sources is unique. This is necessary because,
|
||||
# e.g., the same source file might be shared among _SOURCES variables
|
||||
# for different programs/libraries.
|
||||
am__define_uniq_tagged_files = \
|
||||
list='$(am__tagged_files)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | $(am__uniquify_input)`
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DIST_SUBDIRS = $(SUBDIRS)
|
||||
am__DIST_COMMON = $(srcdir)/Makefile.in
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
am__relativize = \
|
||||
dir0=`pwd`; \
|
||||
sed_first='s,^\([^/]*\)/.*$$,\1,'; \
|
||||
sed_rest='s,^[^/]*/*,,'; \
|
||||
sed_last='s,^.*/\([^/]*\)$$,\1,'; \
|
||||
sed_butlast='s,/*[^/]*$$,,'; \
|
||||
while test -n "$$dir1"; do \
|
||||
first=`echo "$$dir1" | sed -e "$$sed_first"`; \
|
||||
if test "$$first" != "."; then \
|
||||
if test "$$first" = ".."; then \
|
||||
dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
|
||||
dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
|
||||
else \
|
||||
first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
|
||||
if test "$$first2" = "$$first"; then \
|
||||
dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
|
||||
else \
|
||||
dir2="../$$dir2"; \
|
||||
fi; \
|
||||
dir0="$$dir0"/"$$first"; \
|
||||
fi; \
|
||||
fi; \
|
||||
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
|
||||
done; \
|
||||
reldir="$$dir2"
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMTAR = @AMTAR@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
API_VERSION = @API_VERSION@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CMOCKA_CFLAGS = @CMOCKA_CFLAGS@
|
||||
CMOCKA_LIBS = @CMOCKA_LIBS@
|
||||
CONFIG_STATUS = @CONFIG_STATUS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CRYPTO_CFLAGS = @CRYPTO_CFLAGS@
|
||||
CRYPTO_LIBS = @CRYPTO_LIBS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DATA_VERSION = @DATA_VERSION@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DIRSRV_CFLAGS = @DIRSRV_CFLAGS@
|
||||
DIRSRV_LIBS = @DIRSRV_LIBS@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
GETTEXT_DOMAIN = @GETTEXT_DOMAIN@
|
||||
GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
|
||||
GIT_BRANCH = @GIT_BRANCH@
|
||||
GIT_VERSION = @GIT_VERSION@
|
||||
GMSGFMT = @GMSGFMT@
|
||||
GMSGFMT_015 = @GMSGFMT_015@
|
||||
GREP = @GREP@
|
||||
INI_CFLAGS = @INI_CFLAGS@
|
||||
INI_LIBS = @INI_LIBS@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
INTLLIBS = @INTLLIBS@
|
||||
INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
|
||||
IPAPLATFORM = @IPAPLATFORM@
|
||||
IPA_DATA_DIR = @IPA_DATA_DIR@
|
||||
IPA_SYSCONF_DIR = @IPA_SYSCONF_DIR@
|
||||
JSLINT = @JSLINT@
|
||||
KRAD_LIBS = @KRAD_LIBS@
|
||||
KRB5KDC_SERVICE = @KRB5KDC_SERVICE@
|
||||
KRB5_CFLAGS = @KRB5_CFLAGS@
|
||||
KRB5_LIBS = @KRB5_LIBS@
|
||||
LD = @LD@
|
||||
LDAP_CFLAGS = @LDAP_CFLAGS@
|
||||
LDAP_LIBS = @LDAP_LIBS@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBICONV = @LIBICONV@
|
||||
LIBINTL = @LIBINTL@
|
||||
LIBINTL_LIBS = @LIBINTL_LIBS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBPDB_NAME = @LIBPDB_NAME@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBVERTO_CFLAGS = @LIBVERTO_CFLAGS@
|
||||
LIBVERTO_LIBS = @LIBVERTO_LIBS@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBICONV = @LTLIBICONV@
|
||||
LTLIBINTL = @LTLIBINTL@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
MK_ASSIGN = @MK_ASSIGN@
|
||||
MK_ELSE = @MK_ELSE@
|
||||
MK_ENDIF = @MK_ENDIF@
|
||||
MK_IFEQ = @MK_IFEQ@
|
||||
MSGATTRIB = @MSGATTRIB@
|
||||
MSGFMT = @MSGFMT@
|
||||
MSGFMT_015 = @MSGFMT_015@
|
||||
MSGMERGE = @MSGMERGE@
|
||||
NAMED_GROUP = @NAMED_GROUP@
|
||||
NDRNBT_CFLAGS = @NDRNBT_CFLAGS@
|
||||
NDRNBT_LIBS = @NDRNBT_LIBS@
|
||||
NDRPAC_CFLAGS = @NDRPAC_CFLAGS@
|
||||
NDRPAC_LIBS = @NDRPAC_LIBS@
|
||||
NDR_CFLAGS = @NDR_CFLAGS@
|
||||
NDR_LIBS = @NDR_LIBS@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
NSPR_CFLAGS = @NSPR_CFLAGS@
|
||||
NSPR_LIBS = @NSPR_LIBS@
|
||||
NSS_CFLAGS = @NSS_CFLAGS@
|
||||
NSS_LIBS = @NSS_LIBS@
|
||||
NUM_VERSION = @NUM_VERSION@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
ODS_USER = @ODS_USER@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
|
||||
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
|
||||
POPT_CFLAGS = @POPT_CFLAGS@
|
||||
POPT_LIBS = @POPT_LIBS@
|
||||
POSUB = @POSUB@
|
||||
PYLINT = @PYLINT@
|
||||
PYTHON = @PYTHON@
|
||||
PYTHON2 = @PYTHON2@
|
||||
PYTHON3 = @PYTHON3@
|
||||
PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
|
||||
PYTHON_INSTALL_EXTRA_OPTIONS = @PYTHON_INSTALL_EXTRA_OPTIONS@
|
||||
PYTHON_PLATFORM = @PYTHON_PLATFORM@
|
||||
PYTHON_PREFIX = @PYTHON_PREFIX@
|
||||
PYTHON_VERSION = @PYTHON_VERSION@
|
||||
RANLIB = @RANLIB@
|
||||
SAMBA40EXTRA_LIBPATH = @SAMBA40EXTRA_LIBPATH@
|
||||
SAMBAUTIL_CFLAGS = @SAMBAUTIL_CFLAGS@
|
||||
SAMBAUTIL_LIBS = @SAMBAUTIL_LIBS@
|
||||
SASL_CFLAGS = @SASL_CFLAGS@
|
||||
SASL_LIBS = @SASL_LIBS@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
SSSCERTMAP_CFLAGS = @SSSCERTMAP_CFLAGS@
|
||||
SSSCERTMAP_LIBS = @SSSCERTMAP_LIBS@
|
||||
SSSIDMAP_CFLAGS = @SSSIDMAP_CFLAGS@
|
||||
SSSIDMAP_LIBS = @SSSIDMAP_LIBS@
|
||||
SSSNSSIDMAP_CFLAGS = @SSSNSSIDMAP_CFLAGS@
|
||||
SSSNSSIDMAP_LIBS = @SSSNSSIDMAP_LIBS@
|
||||
STRIP = @STRIP@
|
||||
TALLOC_CFLAGS = @TALLOC_CFLAGS@
|
||||
TALLOC_LIBS = @TALLOC_LIBS@
|
||||
TEVENT_CFLAGS = @TEVENT_CFLAGS@
|
||||
TEVENT_LIBS = @TEVENT_LIBS@
|
||||
UNISTRING_LIBS = @UNISTRING_LIBS@
|
||||
UNLINK = @UNLINK@
|
||||
USE_NLS = @USE_NLS@
|
||||
UUID_CFLAGS = @UUID_CFLAGS@
|
||||
UUID_LIBS = @UUID_LIBS@
|
||||
VENDOR_SUFFIX = @VENDOR_SUFFIX@
|
||||
VERSION = @VERSION@
|
||||
XGETTEXT = @XGETTEXT@
|
||||
XGETTEXT_015 = @XGETTEXT_015@
|
||||
XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
|
||||
XMLRPC_CFLAGS = @XMLRPC_CFLAGS@
|
||||
XMLRPC_LIBS = @XMLRPC_LIBS@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
i18ntests = @i18ntests@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
krb5rundir = @krb5rundir@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
pkgpyexecdir = @pkgpyexecdir@
|
||||
pkgpythondir = @pkgpythondir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
pyexecdir = @pyexecdir@
|
||||
pythondir = @pythondir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
sysconfenvdir = @sysconfenvdir@
|
||||
systemdsystemunitdir = @systemdsystemunitdir@
|
||||
systemdtmpfilesdir = @systemdtmpfilesdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
AUTOMAKE_OPTIONS = 1.7
|
||||
NULL =
|
||||
SUBDIRS = \
|
||||
build \
|
||||
css \
|
||||
images \
|
||||
src \
|
||||
$(NULL)
|
||||
|
||||
appdir = $(IPA_DATA_DIR)/ui
|
||||
app_DATA = \
|
||||
favicon.ico \
|
||||
index.html \
|
||||
ie.css \
|
||||
ipa.css \
|
||||
reset_password.js \
|
||||
reset_password.html \
|
||||
sync_otp.html \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DIST = \
|
||||
doc \
|
||||
jsl.conf \
|
||||
less \
|
||||
README-LICENSE.txt \
|
||||
test \
|
||||
util \
|
||||
$(app_DATA) \
|
||||
$(NULL)
|
||||
|
||||
all: all-recursive
|
||||
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign install/ui/Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign install/ui/Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
install-appDATA: $(app_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
@list='$(app_DATA)'; test -n "$(appdir)" || list=; \
|
||||
if test -n "$$list"; then \
|
||||
echo " $(MKDIR_P) '$(DESTDIR)$(appdir)'"; \
|
||||
$(MKDIR_P) "$(DESTDIR)$(appdir)" || exit 1; \
|
||||
fi; \
|
||||
for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
echo "$$d$$p"; \
|
||||
done | $(am__base_list) | \
|
||||
while read files; do \
|
||||
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(appdir)'"; \
|
||||
$(INSTALL_DATA) $$files "$(DESTDIR)$(appdir)" || exit $$?; \
|
||||
done
|
||||
|
||||
uninstall-appDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(app_DATA)'; test -n "$(appdir)" || list=; \
|
||||
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
||||
dir='$(DESTDIR)$(appdir)'; $(am__uninstall_files_from_dir)
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
# into them and run 'make' without going through this Makefile.
|
||||
# To change the values of 'make' variables: instead of editing Makefiles,
|
||||
# (1) if the variable is set in 'config.status', edit 'config.status'
|
||||
# (which will cause the Makefiles to be regenerated when you run 'make');
|
||||
# (2) otherwise, pass the desired values on the 'make' command line.
|
||||
$(am__recursive_targets):
|
||||
@fail=; \
|
||||
if $(am__make_keepgoing); then \
|
||||
failcom='fail=yes'; \
|
||||
else \
|
||||
failcom='exit 1'; \
|
||||
fi; \
|
||||
dot_seen=no; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
case "$@" in \
|
||||
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
||||
*) list='$(SUBDIRS)' ;; \
|
||||
esac; \
|
||||
for subdir in $$list; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
dot_seen=yes; \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done; \
|
||||
if test "$$dot_seen" = "no"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||
fi; test -z "$$fail"
|
||||
|
||||
ID: $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); mkid -fID $$unique
|
||||
tags: tags-recursive
|
||||
TAGS: tags
|
||||
|
||||
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
set x; \
|
||||
here=`pwd`; \
|
||||
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
||||
include_option=--etags-include; \
|
||||
empty_fix=.; \
|
||||
else \
|
||||
include_option=--include; \
|
||||
empty_fix=; \
|
||||
fi; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test ! -f $$subdir/TAGS || \
|
||||
set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
$(am__define_uniq_tagged_files); \
|
||||
shift; \
|
||||
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
if test $$# -gt 0; then \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
"$$@" $$unique; \
|
||||
else \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$unique; \
|
||||
fi; \
|
||||
fi
|
||||
ctags: ctags-recursive
|
||||
|
||||
CTAGS: ctags
|
||||
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); \
|
||||
test -z "$(CTAGS_ARGS)$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& $(am__cd) $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) "$$here"
|
||||
cscopelist: cscopelist-recursive
|
||||
|
||||
cscopelist-am: $(am__tagged_files)
|
||||
list='$(am__tagged_files)'; \
|
||||
case "$(srcdir)" in \
|
||||
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
|
||||
*) sdir=$(subdir)/$(srcdir) ;; \
|
||||
esac; \
|
||||
for i in $$list; do \
|
||||
if test -f "$$i"; then \
|
||||
echo "$(subdir)/$$i"; \
|
||||
else \
|
||||
echo "$$sdir/$$i"; \
|
||||
fi; \
|
||||
done >> $(top_builddir)/cscope.files
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
$(am__make_dryrun) \
|
||||
|| test -d "$(distdir)/$$subdir" \
|
||||
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|
||||
|| exit 1; \
|
||||
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
|
||||
$(am__relativize); \
|
||||
new_distdir=$$reldir; \
|
||||
dir1=$$subdir; dir2="$(top_distdir)"; \
|
||||
$(am__relativize); \
|
||||
new_top_distdir=$$reldir; \
|
||||
echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
|
||||
echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
|
||||
($(am__cd) $$subdir && \
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$$new_top_distdir" \
|
||||
distdir="$$new_distdir" \
|
||||
am__remove_distdir=: \
|
||||
am__skip_length_check=: \
|
||||
am__skip_mode_fix=: \
|
||||
distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-recursive
|
||||
all-am: Makefile $(DATA)
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
for dir in "$(DESTDIR)$(appdir)"; do \
|
||||
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
||||
done
|
||||
install: install-recursive
|
||||
install-exec: install-exec-recursive
|
||||
install-data: install-data-recursive
|
||||
uninstall: uninstall-recursive
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-recursive
|
||||
install-strip:
|
||||
if test -z '$(STRIP)'; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
install; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||
fi
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-recursive
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-recursive
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic distclean-tags
|
||||
|
||||
dvi: dvi-recursive
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-recursive
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-recursive
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-appDATA
|
||||
@$(NORMAL_INSTALL)
|
||||
$(MAKE) $(AM_MAKEFLAGS) install-data-hook
|
||||
install-dvi: install-dvi-recursive
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-recursive
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-recursive
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-recursive
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-recursive
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-recursive
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-recursive
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-appDATA
|
||||
|
||||
.MAKE: $(am__recursive_targets) install-am install-data-am \
|
||||
install-strip
|
||||
|
||||
.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
|
||||
check-am clean clean-generic clean-libtool cscopelist-am ctags \
|
||||
ctags-am distclean distclean-generic distclean-libtool \
|
||||
distclean-tags distdir dvi dvi-am html html-am info info-am \
|
||||
install install-am install-appDATA install-data \
|
||||
install-data-am install-data-hook install-dvi install-dvi-am \
|
||||
install-exec install-exec-am install-html install-html-am \
|
||||
install-info install-info-am install-man install-pdf \
|
||||
install-pdf-am install-ps install-ps-am install-strip \
|
||||
installcheck installcheck-am installdirs installdirs-am \
|
||||
maintainer-clean maintainer-clean-generic mostlyclean \
|
||||
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
||||
tags tags-am uninstall uninstall-am uninstall-appDATA
|
||||
|
||||
.PRECIOUS: Makefile
|
||||
|
||||
|
||||
install-data-hook:
|
||||
$(INSTALL) -d -m 755 $(DESTDIR)$(appdir)/js/plugins
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
787
install/ui/README-LICENSE.txt
Normal file
@@ -0,0 +1,787 @@
|
||||
This file contains a list of third party code which is not under general
|
||||
FreeIPA copyright.
|
||||
|
||||
Third party code:
|
||||
|
||||
Bootstrap - code licensed under Apache License v2.0
|
||||
* css/bootstrap.css
|
||||
* src/libs/bootrap.js
|
||||
|
||||
bootstrap-datepicker - Apache License v2.0
|
||||
* css/bootstrap-datepicker3.min.css
|
||||
* src/libs/bootrap-datepicker.js
|
||||
|
||||
jQuery - licensed under MIT license
|
||||
* jquery.js
|
||||
http://jquery.org/license/
|
||||
|
||||
JSON 2 - public domain
|
||||
* json2.js
|
||||
|
||||
QUnit - dual licensed under MIT and GPLv2 licenses
|
||||
* test/qunit.css
|
||||
* test/qunit.js
|
||||
* jsDump licensed under BSD 2 license
|
||||
* Javascript Diff Algorithm licensed under MIT license
|
||||
|
||||
Font Awesome - code licensed under MIT license
|
||||
* less/font-awesome
|
||||
|
||||
UglifyJS - licensed under BSD license
|
||||
* util/uglifyjs/uglify-js.js
|
||||
* utli/uglifyjs/lib/*
|
||||
|
||||
Dojo, Dojo Builder - dual licensed under BSD license and AFL version 2.1
|
||||
* full license text in util/build/LICENSE
|
||||
* util/build/build.js
|
||||
* util/build/_base/*.js
|
||||
* build/dojo/dojo.js
|
||||
|
||||
QRCode.js - licensed under MIT license
|
||||
* qrcode.js
|
||||
|
||||
d3 - licensed under BSD License
|
||||
* d3.js
|
||||
|
||||
Full license texts and copyright notices are listed below.
|
||||
|
||||
= jQuery copyright notice with MIT license =
|
||||
|
||||
Copyright 2012 jQuery Foundation and other contributors
|
||||
http://jquery.com/
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
= QUnit copyright notice =
|
||||
|
||||
QUnit - A JavaScript Unit Testing Framework
|
||||
|
||||
http://docs.jquery.com/QUnit
|
||||
|
||||
Copyright (c) 2009 John Resig, Jörn Zaefferer
|
||||
Dual licensed under the MIT (MIT-LICENSE.txt)
|
||||
and GPL (GPL-LICENSE.txt) licenses.
|
||||
|
||||
= JSON 2 public domain text =
|
||||
|
||||
json2.js
|
||||
2012-10-08
|
||||
|
||||
Public Domain.
|
||||
|
||||
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
|
||||
|
||||
See http://www.JSON.org/js.html
|
||||
|
||||
= UglifyJS copyright notice with BSD license =
|
||||
|
||||
Copyright 2010 (c) Mihai Bazon <mihai.bazon@gmail.com>
|
||||
Based on parse-js (http://marijn.haverbeke.nl/parse-js/).
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
* Redistributions of source code must retain the above
|
||||
copyright notice, this list of conditions and the following
|
||||
disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following
|
||||
disclaimer in the documentation and/or other materials
|
||||
provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “AS IS” AND ANY
|
||||
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE
|
||||
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
||||
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
||||
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
||||
THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGE.
|
||||
|
||||
= The MIT License (MIT) - QRCcode.js =
|
||||
Copyright (c) 2012 davidshimjs
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
= MIT license template =
|
||||
Copyright (C) <year> <copyright holders>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
= BSD 2 license template =
|
||||
|
||||
Copyright (c) <YEAR>, <OWNER>
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation and/or
|
||||
other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
= SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 =
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
|
||||
= GNU GENERAL PUBLIC LICENSE Version 2, June 1991 license =
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
= Apache License, Version 2.0 =
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
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.
|
||||
|
||||
== d3.js BSD License ==
|
||||
Copyright (c) 2010-2015, Michael Bostock
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
* The name Michael Bostock may not be used to endorse or promote products
|
||||
derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL MICHAEL BOSTOCK BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
||||
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
11
install/ui/build/Makefile.am
Normal file
@@ -0,0 +1,11 @@
|
||||
AUTOMAKE_OPTIONS = 1.7
|
||||
|
||||
NULL =
|
||||
|
||||
SUBDIRS = \
|
||||
dojo \
|
||||
freeipa \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(NULL)
|
||||
737
install/ui/build/Makefile.in
Normal file
@@ -0,0 +1,737 @@
|
||||
# Makefile.in generated by automake 1.15.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2017 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = { \
|
||||
if test -z '$(MAKELEVEL)'; then \
|
||||
false; \
|
||||
elif test -n '$(MAKE_HOST)'; then \
|
||||
true; \
|
||||
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
|
||||
true; \
|
||||
else \
|
||||
false; \
|
||||
fi; \
|
||||
}
|
||||
am__make_running_with_option = \
|
||||
case $${target_option-} in \
|
||||
?) ;; \
|
||||
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||
"target option '$${target_option-}' specified" >&2; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
has_opt=no; \
|
||||
sane_makeflags=$$MAKEFLAGS; \
|
||||
if $(am__is_gnu_make); then \
|
||||
sane_makeflags=$$MFLAGS; \
|
||||
else \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
bs=\\; \
|
||||
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||
esac; \
|
||||
fi; \
|
||||
skip_next=no; \
|
||||
strip_trailopt () \
|
||||
{ \
|
||||
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||
}; \
|
||||
for flg in $$sane_makeflags; do \
|
||||
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||
case $$flg in \
|
||||
*=*|--*) continue;; \
|
||||
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||
-*I?*) strip_trailopt 'I';; \
|
||||
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||
-*O?*) strip_trailopt 'O';; \
|
||||
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||
-*l?*) strip_trailopt 'l';; \
|
||||
-[dEDm]) skip_next=yes;; \
|
||||
-[JT]) skip_next=yes;; \
|
||||
esac; \
|
||||
case $$flg in \
|
||||
*$$target_option*) has_opt=yes; break;; \
|
||||
esac; \
|
||||
done; \
|
||||
test $$has_opt = yes
|
||||
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
||||
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
subdir = install/ui/build
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
|
||||
$(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
|
||||
$(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
|
||||
$(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
|
||||
$(top_srcdir)/m4/progtest.m4 $(top_srcdir)/VERSION.m4 \
|
||||
$(top_srcdir)/server.m4 $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
AM_V_P = $(am__v_P_@AM_V@)
|
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||
am__v_P_0 = false
|
||||
am__v_P_1 = :
|
||||
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||
am__v_GEN_0 = @echo " GEN " $@;
|
||||
am__v_GEN_1 =
|
||||
AM_V_at = $(am__v_at_@AM_V@)
|
||||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||
am__v_at_0 = @
|
||||
am__v_at_1 =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
|
||||
ctags-recursive dvi-recursive html-recursive info-recursive \
|
||||
install-data-recursive install-dvi-recursive \
|
||||
install-exec-recursive install-html-recursive \
|
||||
install-info-recursive install-pdf-recursive \
|
||||
install-ps-recursive install-recursive installcheck-recursive \
|
||||
installdirs-recursive pdf-recursive ps-recursive \
|
||||
tags-recursive uninstall-recursive
|
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac
|
||||
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
|
||||
distclean-recursive maintainer-clean-recursive
|
||||
am__recursive_targets = \
|
||||
$(RECURSIVE_TARGETS) \
|
||||
$(RECURSIVE_CLEAN_TARGETS) \
|
||||
$(am__extra_recursive_targets)
|
||||
AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
|
||||
distdir
|
||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
||||
# Read a list of newline-separated strings from the standard input,
|
||||
# and print each of them once, without duplicates. Input order is
|
||||
# *not* preserved.
|
||||
am__uniquify_input = $(AWK) '\
|
||||
BEGIN { nonempty = 0; } \
|
||||
{ items[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in items) print i; }; } \
|
||||
'
|
||||
# Make sure the list of sources is unique. This is necessary because,
|
||||
# e.g., the same source file might be shared among _SOURCES variables
|
||||
# for different programs/libraries.
|
||||
am__define_uniq_tagged_files = \
|
||||
list='$(am__tagged_files)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | $(am__uniquify_input)`
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DIST_SUBDIRS = $(SUBDIRS)
|
||||
am__DIST_COMMON = $(srcdir)/Makefile.in
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
am__relativize = \
|
||||
dir0=`pwd`; \
|
||||
sed_first='s,^\([^/]*\)/.*$$,\1,'; \
|
||||
sed_rest='s,^[^/]*/*,,'; \
|
||||
sed_last='s,^.*/\([^/]*\)$$,\1,'; \
|
||||
sed_butlast='s,/*[^/]*$$,,'; \
|
||||
while test -n "$$dir1"; do \
|
||||
first=`echo "$$dir1" | sed -e "$$sed_first"`; \
|
||||
if test "$$first" != "."; then \
|
||||
if test "$$first" = ".."; then \
|
||||
dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
|
||||
dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
|
||||
else \
|
||||
first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
|
||||
if test "$$first2" = "$$first"; then \
|
||||
dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
|
||||
else \
|
||||
dir2="../$$dir2"; \
|
||||
fi; \
|
||||
dir0="$$dir0"/"$$first"; \
|
||||
fi; \
|
||||
fi; \
|
||||
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
|
||||
done; \
|
||||
reldir="$$dir2"
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMTAR = @AMTAR@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
API_VERSION = @API_VERSION@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CMOCKA_CFLAGS = @CMOCKA_CFLAGS@
|
||||
CMOCKA_LIBS = @CMOCKA_LIBS@
|
||||
CONFIG_STATUS = @CONFIG_STATUS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CRYPTO_CFLAGS = @CRYPTO_CFLAGS@
|
||||
CRYPTO_LIBS = @CRYPTO_LIBS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DATA_VERSION = @DATA_VERSION@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DIRSRV_CFLAGS = @DIRSRV_CFLAGS@
|
||||
DIRSRV_LIBS = @DIRSRV_LIBS@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
GETTEXT_DOMAIN = @GETTEXT_DOMAIN@
|
||||
GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
|
||||
GIT_BRANCH = @GIT_BRANCH@
|
||||
GIT_VERSION = @GIT_VERSION@
|
||||
GMSGFMT = @GMSGFMT@
|
||||
GMSGFMT_015 = @GMSGFMT_015@
|
||||
GREP = @GREP@
|
||||
INI_CFLAGS = @INI_CFLAGS@
|
||||
INI_LIBS = @INI_LIBS@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
INTLLIBS = @INTLLIBS@
|
||||
INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
|
||||
IPAPLATFORM = @IPAPLATFORM@
|
||||
IPA_DATA_DIR = @IPA_DATA_DIR@
|
||||
IPA_SYSCONF_DIR = @IPA_SYSCONF_DIR@
|
||||
JSLINT = @JSLINT@
|
||||
KRAD_LIBS = @KRAD_LIBS@
|
||||
KRB5KDC_SERVICE = @KRB5KDC_SERVICE@
|
||||
KRB5_CFLAGS = @KRB5_CFLAGS@
|
||||
KRB5_LIBS = @KRB5_LIBS@
|
||||
LD = @LD@
|
||||
LDAP_CFLAGS = @LDAP_CFLAGS@
|
||||
LDAP_LIBS = @LDAP_LIBS@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBICONV = @LIBICONV@
|
||||
LIBINTL = @LIBINTL@
|
||||
LIBINTL_LIBS = @LIBINTL_LIBS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBPDB_NAME = @LIBPDB_NAME@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBVERTO_CFLAGS = @LIBVERTO_CFLAGS@
|
||||
LIBVERTO_LIBS = @LIBVERTO_LIBS@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBICONV = @LTLIBICONV@
|
||||
LTLIBINTL = @LTLIBINTL@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
MK_ASSIGN = @MK_ASSIGN@
|
||||
MK_ELSE = @MK_ELSE@
|
||||
MK_ENDIF = @MK_ENDIF@
|
||||
MK_IFEQ = @MK_IFEQ@
|
||||
MSGATTRIB = @MSGATTRIB@
|
||||
MSGFMT = @MSGFMT@
|
||||
MSGFMT_015 = @MSGFMT_015@
|
||||
MSGMERGE = @MSGMERGE@
|
||||
NAMED_GROUP = @NAMED_GROUP@
|
||||
NDRNBT_CFLAGS = @NDRNBT_CFLAGS@
|
||||
NDRNBT_LIBS = @NDRNBT_LIBS@
|
||||
NDRPAC_CFLAGS = @NDRPAC_CFLAGS@
|
||||
NDRPAC_LIBS = @NDRPAC_LIBS@
|
||||
NDR_CFLAGS = @NDR_CFLAGS@
|
||||
NDR_LIBS = @NDR_LIBS@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
NSPR_CFLAGS = @NSPR_CFLAGS@
|
||||
NSPR_LIBS = @NSPR_LIBS@
|
||||
NSS_CFLAGS = @NSS_CFLAGS@
|
||||
NSS_LIBS = @NSS_LIBS@
|
||||
NUM_VERSION = @NUM_VERSION@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
ODS_USER = @ODS_USER@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
|
||||
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
|
||||
POPT_CFLAGS = @POPT_CFLAGS@
|
||||
POPT_LIBS = @POPT_LIBS@
|
||||
POSUB = @POSUB@
|
||||
PYLINT = @PYLINT@
|
||||
PYTHON = @PYTHON@
|
||||
PYTHON2 = @PYTHON2@
|
||||
PYTHON3 = @PYTHON3@
|
||||
PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
|
||||
PYTHON_INSTALL_EXTRA_OPTIONS = @PYTHON_INSTALL_EXTRA_OPTIONS@
|
||||
PYTHON_PLATFORM = @PYTHON_PLATFORM@
|
||||
PYTHON_PREFIX = @PYTHON_PREFIX@
|
||||
PYTHON_VERSION = @PYTHON_VERSION@
|
||||
RANLIB = @RANLIB@
|
||||
SAMBA40EXTRA_LIBPATH = @SAMBA40EXTRA_LIBPATH@
|
||||
SAMBAUTIL_CFLAGS = @SAMBAUTIL_CFLAGS@
|
||||
SAMBAUTIL_LIBS = @SAMBAUTIL_LIBS@
|
||||
SASL_CFLAGS = @SASL_CFLAGS@
|
||||
SASL_LIBS = @SASL_LIBS@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
SSSCERTMAP_CFLAGS = @SSSCERTMAP_CFLAGS@
|
||||
SSSCERTMAP_LIBS = @SSSCERTMAP_LIBS@
|
||||
SSSIDMAP_CFLAGS = @SSSIDMAP_CFLAGS@
|
||||
SSSIDMAP_LIBS = @SSSIDMAP_LIBS@
|
||||
SSSNSSIDMAP_CFLAGS = @SSSNSSIDMAP_CFLAGS@
|
||||
SSSNSSIDMAP_LIBS = @SSSNSSIDMAP_LIBS@
|
||||
STRIP = @STRIP@
|
||||
TALLOC_CFLAGS = @TALLOC_CFLAGS@
|
||||
TALLOC_LIBS = @TALLOC_LIBS@
|
||||
TEVENT_CFLAGS = @TEVENT_CFLAGS@
|
||||
TEVENT_LIBS = @TEVENT_LIBS@
|
||||
UNISTRING_LIBS = @UNISTRING_LIBS@
|
||||
UNLINK = @UNLINK@
|
||||
USE_NLS = @USE_NLS@
|
||||
UUID_CFLAGS = @UUID_CFLAGS@
|
||||
UUID_LIBS = @UUID_LIBS@
|
||||
VENDOR_SUFFIX = @VENDOR_SUFFIX@
|
||||
VERSION = @VERSION@
|
||||
XGETTEXT = @XGETTEXT@
|
||||
XGETTEXT_015 = @XGETTEXT_015@
|
||||
XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
|
||||
XMLRPC_CFLAGS = @XMLRPC_CFLAGS@
|
||||
XMLRPC_LIBS = @XMLRPC_LIBS@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
i18ntests = @i18ntests@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
krb5rundir = @krb5rundir@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
pkgpyexecdir = @pkgpyexecdir@
|
||||
pkgpythondir = @pkgpythondir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
pyexecdir = @pyexecdir@
|
||||
pythondir = @pythondir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
sysconfenvdir = @sysconfenvdir@
|
||||
systemdsystemunitdir = @systemdsystemunitdir@
|
||||
systemdtmpfilesdir = @systemdtmpfilesdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
AUTOMAKE_OPTIONS = 1.7
|
||||
NULL =
|
||||
SUBDIRS = \
|
||||
dojo \
|
||||
freeipa \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(NULL)
|
||||
|
||||
all: all-recursive
|
||||
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign install/ui/build/Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign install/ui/build/Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
# into them and run 'make' without going through this Makefile.
|
||||
# To change the values of 'make' variables: instead of editing Makefiles,
|
||||
# (1) if the variable is set in 'config.status', edit 'config.status'
|
||||
# (which will cause the Makefiles to be regenerated when you run 'make');
|
||||
# (2) otherwise, pass the desired values on the 'make' command line.
|
||||
$(am__recursive_targets):
|
||||
@fail=; \
|
||||
if $(am__make_keepgoing); then \
|
||||
failcom='fail=yes'; \
|
||||
else \
|
||||
failcom='exit 1'; \
|
||||
fi; \
|
||||
dot_seen=no; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
case "$@" in \
|
||||
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
||||
*) list='$(SUBDIRS)' ;; \
|
||||
esac; \
|
||||
for subdir in $$list; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
dot_seen=yes; \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done; \
|
||||
if test "$$dot_seen" = "no"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||
fi; test -z "$$fail"
|
||||
|
||||
ID: $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); mkid -fID $$unique
|
||||
tags: tags-recursive
|
||||
TAGS: tags
|
||||
|
||||
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
set x; \
|
||||
here=`pwd`; \
|
||||
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
||||
include_option=--etags-include; \
|
||||
empty_fix=.; \
|
||||
else \
|
||||
include_option=--include; \
|
||||
empty_fix=; \
|
||||
fi; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test ! -f $$subdir/TAGS || \
|
||||
set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
$(am__define_uniq_tagged_files); \
|
||||
shift; \
|
||||
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
if test $$# -gt 0; then \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
"$$@" $$unique; \
|
||||
else \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$unique; \
|
||||
fi; \
|
||||
fi
|
||||
ctags: ctags-recursive
|
||||
|
||||
CTAGS: ctags
|
||||
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); \
|
||||
test -z "$(CTAGS_ARGS)$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& $(am__cd) $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) "$$here"
|
||||
cscopelist: cscopelist-recursive
|
||||
|
||||
cscopelist-am: $(am__tagged_files)
|
||||
list='$(am__tagged_files)'; \
|
||||
case "$(srcdir)" in \
|
||||
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
|
||||
*) sdir=$(subdir)/$(srcdir) ;; \
|
||||
esac; \
|
||||
for i in $$list; do \
|
||||
if test -f "$$i"; then \
|
||||
echo "$(subdir)/$$i"; \
|
||||
else \
|
||||
echo "$$sdir/$$i"; \
|
||||
fi; \
|
||||
done >> $(top_builddir)/cscope.files
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
$(am__make_dryrun) \
|
||||
|| test -d "$(distdir)/$$subdir" \
|
||||
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|
||||
|| exit 1; \
|
||||
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
|
||||
$(am__relativize); \
|
||||
new_distdir=$$reldir; \
|
||||
dir1=$$subdir; dir2="$(top_distdir)"; \
|
||||
$(am__relativize); \
|
||||
new_top_distdir=$$reldir; \
|
||||
echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
|
||||
echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
|
||||
($(am__cd) $$subdir && \
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$$new_top_distdir" \
|
||||
distdir="$$new_distdir" \
|
||||
am__remove_distdir=: \
|
||||
am__skip_length_check=: \
|
||||
am__skip_mode_fix=: \
|
||||
distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-recursive
|
||||
all-am: Makefile
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
install: install-recursive
|
||||
install-exec: install-exec-recursive
|
||||
install-data: install-data-recursive
|
||||
uninstall: uninstall-recursive
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-recursive
|
||||
install-strip:
|
||||
if test -z '$(STRIP)'; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
install; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||
fi
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-recursive
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-recursive
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic distclean-tags
|
||||
|
||||
dvi: dvi-recursive
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-recursive
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-recursive
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-dvi: install-dvi-recursive
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-recursive
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-recursive
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-recursive
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-recursive
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-recursive
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-recursive
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am:
|
||||
|
||||
.MAKE: $(am__recursive_targets) install-am install-strip
|
||||
|
||||
.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
|
||||
check-am clean clean-generic clean-libtool cscopelist-am ctags \
|
||||
ctags-am distclean distclean-generic distclean-libtool \
|
||||
distclean-tags distdir dvi dvi-am html html-am info info-am \
|
||||
install install-am install-data install-data-am install-dvi \
|
||||
install-dvi-am install-exec install-exec-am install-html \
|
||||
install-html-am install-info install-info-am install-man \
|
||||
install-pdf install-pdf-am install-ps install-ps-am \
|
||||
install-strip installcheck installcheck-am installdirs \
|
||||
installdirs-am maintainer-clean maintainer-clean-generic \
|
||||
mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
|
||||
ps ps-am tags tags-am uninstall uninstall-am
|
||||
|
||||
.PRECIOUS: Makefile
|
||||
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
10
install/ui/build/dojo/Makefile.am
Normal file
@@ -0,0 +1,10 @@
|
||||
NULL =
|
||||
|
||||
appdir = $(IPA_DATA_DIR)/ui/js/dojo
|
||||
app_DATA = \
|
||||
dojo.js \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(app_DATA) \
|
||||
$(NULL)
|
||||
612
install/ui/build/dojo/Makefile.in
Normal file
@@ -0,0 +1,612 @@
|
||||
# Makefile.in generated by automake 1.15.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2017 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = { \
|
||||
if test -z '$(MAKELEVEL)'; then \
|
||||
false; \
|
||||
elif test -n '$(MAKE_HOST)'; then \
|
||||
true; \
|
||||
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
|
||||
true; \
|
||||
else \
|
||||
false; \
|
||||
fi; \
|
||||
}
|
||||
am__make_running_with_option = \
|
||||
case $${target_option-} in \
|
||||
?) ;; \
|
||||
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||
"target option '$${target_option-}' specified" >&2; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
has_opt=no; \
|
||||
sane_makeflags=$$MAKEFLAGS; \
|
||||
if $(am__is_gnu_make); then \
|
||||
sane_makeflags=$$MFLAGS; \
|
||||
else \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
bs=\\; \
|
||||
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||
esac; \
|
||||
fi; \
|
||||
skip_next=no; \
|
||||
strip_trailopt () \
|
||||
{ \
|
||||
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||
}; \
|
||||
for flg in $$sane_makeflags; do \
|
||||
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||
case $$flg in \
|
||||
*=*|--*) continue;; \
|
||||
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||
-*I?*) strip_trailopt 'I';; \
|
||||
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||
-*O?*) strip_trailopt 'O';; \
|
||||
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||
-*l?*) strip_trailopt 'l';; \
|
||||
-[dEDm]) skip_next=yes;; \
|
||||
-[JT]) skip_next=yes;; \
|
||||
esac; \
|
||||
case $$flg in \
|
||||
*$$target_option*) has_opt=yes; break;; \
|
||||
esac; \
|
||||
done; \
|
||||
test $$has_opt = yes
|
||||
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
||||
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
subdir = install/ui/build/dojo
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
|
||||
$(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
|
||||
$(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
|
||||
$(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
|
||||
$(top_srcdir)/m4/progtest.m4 $(top_srcdir)/VERSION.m4 \
|
||||
$(top_srcdir)/server.m4 $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
AM_V_P = $(am__v_P_@AM_V@)
|
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||
am__v_P_0 = false
|
||||
am__v_P_1 = :
|
||||
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||
am__v_GEN_0 = @echo " GEN " $@;
|
||||
am__v_GEN_1 =
|
||||
AM_V_at = $(am__v_at_@AM_V@)
|
||||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||
am__v_at_0 = @
|
||||
am__v_at_1 =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
|
||||
am__install_max = 40
|
||||
am__nobase_strip_setup = \
|
||||
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
|
||||
am__nobase_strip = \
|
||||
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
|
||||
am__nobase_list = $(am__nobase_strip_setup); \
|
||||
for p in $$list; do echo "$$p $$p"; done | \
|
||||
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
|
||||
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
|
||||
if (++n[$$2] == $(am__install_max)) \
|
||||
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
|
||||
END { for (dir in files) print dir, files[dir] }'
|
||||
am__base_list = \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
||||
am__uninstall_files_from_dir = { \
|
||||
test -z "$$files" \
|
||||
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|
||||
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
|
||||
$(am__cd) "$$dir" && rm -f $$files; }; \
|
||||
}
|
||||
am__installdirs = "$(DESTDIR)$(appdir)"
|
||||
DATA = $(app_DATA)
|
||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
||||
am__DIST_COMMON = $(srcdir)/Makefile.in
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMTAR = @AMTAR@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
API_VERSION = @API_VERSION@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CMOCKA_CFLAGS = @CMOCKA_CFLAGS@
|
||||
CMOCKA_LIBS = @CMOCKA_LIBS@
|
||||
CONFIG_STATUS = @CONFIG_STATUS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CRYPTO_CFLAGS = @CRYPTO_CFLAGS@
|
||||
CRYPTO_LIBS = @CRYPTO_LIBS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DATA_VERSION = @DATA_VERSION@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DIRSRV_CFLAGS = @DIRSRV_CFLAGS@
|
||||
DIRSRV_LIBS = @DIRSRV_LIBS@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
GETTEXT_DOMAIN = @GETTEXT_DOMAIN@
|
||||
GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
|
||||
GIT_BRANCH = @GIT_BRANCH@
|
||||
GIT_VERSION = @GIT_VERSION@
|
||||
GMSGFMT = @GMSGFMT@
|
||||
GMSGFMT_015 = @GMSGFMT_015@
|
||||
GREP = @GREP@
|
||||
INI_CFLAGS = @INI_CFLAGS@
|
||||
INI_LIBS = @INI_LIBS@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
INTLLIBS = @INTLLIBS@
|
||||
INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
|
||||
IPAPLATFORM = @IPAPLATFORM@
|
||||
IPA_DATA_DIR = @IPA_DATA_DIR@
|
||||
IPA_SYSCONF_DIR = @IPA_SYSCONF_DIR@
|
||||
JSLINT = @JSLINT@
|
||||
KRAD_LIBS = @KRAD_LIBS@
|
||||
KRB5KDC_SERVICE = @KRB5KDC_SERVICE@
|
||||
KRB5_CFLAGS = @KRB5_CFLAGS@
|
||||
KRB5_LIBS = @KRB5_LIBS@
|
||||
LD = @LD@
|
||||
LDAP_CFLAGS = @LDAP_CFLAGS@
|
||||
LDAP_LIBS = @LDAP_LIBS@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBICONV = @LIBICONV@
|
||||
LIBINTL = @LIBINTL@
|
||||
LIBINTL_LIBS = @LIBINTL_LIBS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBPDB_NAME = @LIBPDB_NAME@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBVERTO_CFLAGS = @LIBVERTO_CFLAGS@
|
||||
LIBVERTO_LIBS = @LIBVERTO_LIBS@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBICONV = @LTLIBICONV@
|
||||
LTLIBINTL = @LTLIBINTL@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
MK_ASSIGN = @MK_ASSIGN@
|
||||
MK_ELSE = @MK_ELSE@
|
||||
MK_ENDIF = @MK_ENDIF@
|
||||
MK_IFEQ = @MK_IFEQ@
|
||||
MSGATTRIB = @MSGATTRIB@
|
||||
MSGFMT = @MSGFMT@
|
||||
MSGFMT_015 = @MSGFMT_015@
|
||||
MSGMERGE = @MSGMERGE@
|
||||
NAMED_GROUP = @NAMED_GROUP@
|
||||
NDRNBT_CFLAGS = @NDRNBT_CFLAGS@
|
||||
NDRNBT_LIBS = @NDRNBT_LIBS@
|
||||
NDRPAC_CFLAGS = @NDRPAC_CFLAGS@
|
||||
NDRPAC_LIBS = @NDRPAC_LIBS@
|
||||
NDR_CFLAGS = @NDR_CFLAGS@
|
||||
NDR_LIBS = @NDR_LIBS@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
NSPR_CFLAGS = @NSPR_CFLAGS@
|
||||
NSPR_LIBS = @NSPR_LIBS@
|
||||
NSS_CFLAGS = @NSS_CFLAGS@
|
||||
NSS_LIBS = @NSS_LIBS@
|
||||
NUM_VERSION = @NUM_VERSION@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
ODS_USER = @ODS_USER@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
|
||||
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
|
||||
POPT_CFLAGS = @POPT_CFLAGS@
|
||||
POPT_LIBS = @POPT_LIBS@
|
||||
POSUB = @POSUB@
|
||||
PYLINT = @PYLINT@
|
||||
PYTHON = @PYTHON@
|
||||
PYTHON2 = @PYTHON2@
|
||||
PYTHON3 = @PYTHON3@
|
||||
PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
|
||||
PYTHON_INSTALL_EXTRA_OPTIONS = @PYTHON_INSTALL_EXTRA_OPTIONS@
|
||||
PYTHON_PLATFORM = @PYTHON_PLATFORM@
|
||||
PYTHON_PREFIX = @PYTHON_PREFIX@
|
||||
PYTHON_VERSION = @PYTHON_VERSION@
|
||||
RANLIB = @RANLIB@
|
||||
SAMBA40EXTRA_LIBPATH = @SAMBA40EXTRA_LIBPATH@
|
||||
SAMBAUTIL_CFLAGS = @SAMBAUTIL_CFLAGS@
|
||||
SAMBAUTIL_LIBS = @SAMBAUTIL_LIBS@
|
||||
SASL_CFLAGS = @SASL_CFLAGS@
|
||||
SASL_LIBS = @SASL_LIBS@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
SSSCERTMAP_CFLAGS = @SSSCERTMAP_CFLAGS@
|
||||
SSSCERTMAP_LIBS = @SSSCERTMAP_LIBS@
|
||||
SSSIDMAP_CFLAGS = @SSSIDMAP_CFLAGS@
|
||||
SSSIDMAP_LIBS = @SSSIDMAP_LIBS@
|
||||
SSSNSSIDMAP_CFLAGS = @SSSNSSIDMAP_CFLAGS@
|
||||
SSSNSSIDMAP_LIBS = @SSSNSSIDMAP_LIBS@
|
||||
STRIP = @STRIP@
|
||||
TALLOC_CFLAGS = @TALLOC_CFLAGS@
|
||||
TALLOC_LIBS = @TALLOC_LIBS@
|
||||
TEVENT_CFLAGS = @TEVENT_CFLAGS@
|
||||
TEVENT_LIBS = @TEVENT_LIBS@
|
||||
UNISTRING_LIBS = @UNISTRING_LIBS@
|
||||
UNLINK = @UNLINK@
|
||||
USE_NLS = @USE_NLS@
|
||||
UUID_CFLAGS = @UUID_CFLAGS@
|
||||
UUID_LIBS = @UUID_LIBS@
|
||||
VENDOR_SUFFIX = @VENDOR_SUFFIX@
|
||||
VERSION = @VERSION@
|
||||
XGETTEXT = @XGETTEXT@
|
||||
XGETTEXT_015 = @XGETTEXT_015@
|
||||
XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
|
||||
XMLRPC_CFLAGS = @XMLRPC_CFLAGS@
|
||||
XMLRPC_LIBS = @XMLRPC_LIBS@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
i18ntests = @i18ntests@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
krb5rundir = @krb5rundir@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
pkgpyexecdir = @pkgpyexecdir@
|
||||
pkgpythondir = @pkgpythondir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
pyexecdir = @pyexecdir@
|
||||
pythondir = @pythondir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
sysconfenvdir = @sysconfenvdir@
|
||||
systemdsystemunitdir = @systemdsystemunitdir@
|
||||
systemdtmpfilesdir = @systemdtmpfilesdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
NULL =
|
||||
appdir = $(IPA_DATA_DIR)/ui/js/dojo
|
||||
app_DATA = \
|
||||
dojo.js \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(app_DATA) \
|
||||
$(NULL)
|
||||
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign install/ui/build/dojo/Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign install/ui/build/dojo/Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
install-appDATA: $(app_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
@list='$(app_DATA)'; test -n "$(appdir)" || list=; \
|
||||
if test -n "$$list"; then \
|
||||
echo " $(MKDIR_P) '$(DESTDIR)$(appdir)'"; \
|
||||
$(MKDIR_P) "$(DESTDIR)$(appdir)" || exit 1; \
|
||||
fi; \
|
||||
for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
echo "$$d$$p"; \
|
||||
done | $(am__base_list) | \
|
||||
while read files; do \
|
||||
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(appdir)'"; \
|
||||
$(INSTALL_DATA) $$files "$(DESTDIR)$(appdir)" || exit $$?; \
|
||||
done
|
||||
|
||||
uninstall-appDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(app_DATA)'; test -n "$(appdir)" || list=; \
|
||||
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
||||
dir='$(DESTDIR)$(appdir)'; $(am__uninstall_files_from_dir)
|
||||
tags TAGS:
|
||||
|
||||
ctags CTAGS:
|
||||
|
||||
cscope cscopelist:
|
||||
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(DATA)
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(appdir)"; do \
|
||||
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
||||
done
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
if test -z '$(STRIP)'; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
install; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||
fi
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-appDATA
|
||||
|
||||
install-dvi: install-dvi-am
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-am
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-am
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-am
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-appDATA
|
||||
|
||||
.MAKE: install-am install-strip
|
||||
|
||||
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
|
||||
cscopelist-am ctags-am distclean distclean-generic \
|
||||
distclean-libtool distdir dvi dvi-am html html-am info info-am \
|
||||
install install-am install-appDATA install-data \
|
||||
install-data-am install-dvi install-dvi-am install-exec \
|
||||
install-exec-am install-html install-html-am install-info \
|
||||
install-info-am install-man install-pdf install-pdf-am \
|
||||
install-ps install-ps-am install-strip installcheck \
|
||||
installcheck-am installdirs maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-generic \
|
||||
mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \
|
||||
uninstall-am uninstall-appDATA
|
||||
|
||||
.PRECIOUS: Makefile
|
||||
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
1
install/ui/build/dojo/dojo.js
vendored
Normal file
23
install/ui/build/freeipa/Makefile.am
Normal file
@@ -0,0 +1,23 @@
|
||||
NULL =
|
||||
|
||||
appdir = $(IPA_DATA_DIR)/ui/js/freeipa
|
||||
nodist_app_DATA = \
|
||||
app.js \
|
||||
core.js \
|
||||
$(NULL)
|
||||
|
||||
CLEANFILES = $(nodist_app_DATA)
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(app_DATA) \
|
||||
$(NULL)
|
||||
|
||||
core := $(wildcard ../../src/freeipa/*.js)
|
||||
base := $(wildcard ../../src/freeipa/_base/*.js)
|
||||
widgets := $(wildcard ../../src/freeipa/widgets/*.js)
|
||||
nav := $(wildcard ../../src/freeipa/navigation/*.js)
|
||||
|
||||
app.js: $(core) $(base) $(widgets) $(nav)
|
||||
$(srcdir)/../../util/make-ui.sh
|
||||
|
||||
core.js: app.js
|
||||
624
install/ui/build/freeipa/Makefile.in
Normal file
@@ -0,0 +1,624 @@
|
||||
# Makefile.in generated by automake 1.15.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2017 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = { \
|
||||
if test -z '$(MAKELEVEL)'; then \
|
||||
false; \
|
||||
elif test -n '$(MAKE_HOST)'; then \
|
||||
true; \
|
||||
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
|
||||
true; \
|
||||
else \
|
||||
false; \
|
||||
fi; \
|
||||
}
|
||||
am__make_running_with_option = \
|
||||
case $${target_option-} in \
|
||||
?) ;; \
|
||||
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||
"target option '$${target_option-}' specified" >&2; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
has_opt=no; \
|
||||
sane_makeflags=$$MAKEFLAGS; \
|
||||
if $(am__is_gnu_make); then \
|
||||
sane_makeflags=$$MFLAGS; \
|
||||
else \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
bs=\\; \
|
||||
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||
esac; \
|
||||
fi; \
|
||||
skip_next=no; \
|
||||
strip_trailopt () \
|
||||
{ \
|
||||
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||
}; \
|
||||
for flg in $$sane_makeflags; do \
|
||||
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||
case $$flg in \
|
||||
*=*|--*) continue;; \
|
||||
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||
-*I?*) strip_trailopt 'I';; \
|
||||
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||
-*O?*) strip_trailopt 'O';; \
|
||||
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||
-*l?*) strip_trailopt 'l';; \
|
||||
-[dEDm]) skip_next=yes;; \
|
||||
-[JT]) skip_next=yes;; \
|
||||
esac; \
|
||||
case $$flg in \
|
||||
*$$target_option*) has_opt=yes; break;; \
|
||||
esac; \
|
||||
done; \
|
||||
test $$has_opt = yes
|
||||
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
||||
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
subdir = install/ui/build/freeipa
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
|
||||
$(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
|
||||
$(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
|
||||
$(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
|
||||
$(top_srcdir)/m4/progtest.m4 $(top_srcdir)/VERSION.m4 \
|
||||
$(top_srcdir)/server.m4 $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
AM_V_P = $(am__v_P_@AM_V@)
|
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||
am__v_P_0 = false
|
||||
am__v_P_1 = :
|
||||
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||
am__v_GEN_0 = @echo " GEN " $@;
|
||||
am__v_GEN_1 =
|
||||
AM_V_at = $(am__v_at_@AM_V@)
|
||||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||
am__v_at_0 = @
|
||||
am__v_at_1 =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
|
||||
am__install_max = 40
|
||||
am__nobase_strip_setup = \
|
||||
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
|
||||
am__nobase_strip = \
|
||||
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
|
||||
am__nobase_list = $(am__nobase_strip_setup); \
|
||||
for p in $$list; do echo "$$p $$p"; done | \
|
||||
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
|
||||
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
|
||||
if (++n[$$2] == $(am__install_max)) \
|
||||
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
|
||||
END { for (dir in files) print dir, files[dir] }'
|
||||
am__base_list = \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
||||
am__uninstall_files_from_dir = { \
|
||||
test -z "$$files" \
|
||||
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|
||||
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
|
||||
$(am__cd) "$$dir" && rm -f $$files; }; \
|
||||
}
|
||||
am__installdirs = "$(DESTDIR)$(appdir)"
|
||||
DATA = $(nodist_app_DATA)
|
||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
||||
am__DIST_COMMON = $(srcdir)/Makefile.in
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMTAR = @AMTAR@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
API_VERSION = @API_VERSION@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CMOCKA_CFLAGS = @CMOCKA_CFLAGS@
|
||||
CMOCKA_LIBS = @CMOCKA_LIBS@
|
||||
CONFIG_STATUS = @CONFIG_STATUS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CRYPTO_CFLAGS = @CRYPTO_CFLAGS@
|
||||
CRYPTO_LIBS = @CRYPTO_LIBS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DATA_VERSION = @DATA_VERSION@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DIRSRV_CFLAGS = @DIRSRV_CFLAGS@
|
||||
DIRSRV_LIBS = @DIRSRV_LIBS@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
GETTEXT_DOMAIN = @GETTEXT_DOMAIN@
|
||||
GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
|
||||
GIT_BRANCH = @GIT_BRANCH@
|
||||
GIT_VERSION = @GIT_VERSION@
|
||||
GMSGFMT = @GMSGFMT@
|
||||
GMSGFMT_015 = @GMSGFMT_015@
|
||||
GREP = @GREP@
|
||||
INI_CFLAGS = @INI_CFLAGS@
|
||||
INI_LIBS = @INI_LIBS@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
INTLLIBS = @INTLLIBS@
|
||||
INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
|
||||
IPAPLATFORM = @IPAPLATFORM@
|
||||
IPA_DATA_DIR = @IPA_DATA_DIR@
|
||||
IPA_SYSCONF_DIR = @IPA_SYSCONF_DIR@
|
||||
JSLINT = @JSLINT@
|
||||
KRAD_LIBS = @KRAD_LIBS@
|
||||
KRB5KDC_SERVICE = @KRB5KDC_SERVICE@
|
||||
KRB5_CFLAGS = @KRB5_CFLAGS@
|
||||
KRB5_LIBS = @KRB5_LIBS@
|
||||
LD = @LD@
|
||||
LDAP_CFLAGS = @LDAP_CFLAGS@
|
||||
LDAP_LIBS = @LDAP_LIBS@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBICONV = @LIBICONV@
|
||||
LIBINTL = @LIBINTL@
|
||||
LIBINTL_LIBS = @LIBINTL_LIBS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBPDB_NAME = @LIBPDB_NAME@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBVERTO_CFLAGS = @LIBVERTO_CFLAGS@
|
||||
LIBVERTO_LIBS = @LIBVERTO_LIBS@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBICONV = @LTLIBICONV@
|
||||
LTLIBINTL = @LTLIBINTL@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
MK_ASSIGN = @MK_ASSIGN@
|
||||
MK_ELSE = @MK_ELSE@
|
||||
MK_ENDIF = @MK_ENDIF@
|
||||
MK_IFEQ = @MK_IFEQ@
|
||||
MSGATTRIB = @MSGATTRIB@
|
||||
MSGFMT = @MSGFMT@
|
||||
MSGFMT_015 = @MSGFMT_015@
|
||||
MSGMERGE = @MSGMERGE@
|
||||
NAMED_GROUP = @NAMED_GROUP@
|
||||
NDRNBT_CFLAGS = @NDRNBT_CFLAGS@
|
||||
NDRNBT_LIBS = @NDRNBT_LIBS@
|
||||
NDRPAC_CFLAGS = @NDRPAC_CFLAGS@
|
||||
NDRPAC_LIBS = @NDRPAC_LIBS@
|
||||
NDR_CFLAGS = @NDR_CFLAGS@
|
||||
NDR_LIBS = @NDR_LIBS@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
NSPR_CFLAGS = @NSPR_CFLAGS@
|
||||
NSPR_LIBS = @NSPR_LIBS@
|
||||
NSS_CFLAGS = @NSS_CFLAGS@
|
||||
NSS_LIBS = @NSS_LIBS@
|
||||
NUM_VERSION = @NUM_VERSION@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
ODS_USER = @ODS_USER@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
|
||||
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
|
||||
POPT_CFLAGS = @POPT_CFLAGS@
|
||||
POPT_LIBS = @POPT_LIBS@
|
||||
POSUB = @POSUB@
|
||||
PYLINT = @PYLINT@
|
||||
PYTHON = @PYTHON@
|
||||
PYTHON2 = @PYTHON2@
|
||||
PYTHON3 = @PYTHON3@
|
||||
PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
|
||||
PYTHON_INSTALL_EXTRA_OPTIONS = @PYTHON_INSTALL_EXTRA_OPTIONS@
|
||||
PYTHON_PLATFORM = @PYTHON_PLATFORM@
|
||||
PYTHON_PREFIX = @PYTHON_PREFIX@
|
||||
PYTHON_VERSION = @PYTHON_VERSION@
|
||||
RANLIB = @RANLIB@
|
||||
SAMBA40EXTRA_LIBPATH = @SAMBA40EXTRA_LIBPATH@
|
||||
SAMBAUTIL_CFLAGS = @SAMBAUTIL_CFLAGS@
|
||||
SAMBAUTIL_LIBS = @SAMBAUTIL_LIBS@
|
||||
SASL_CFLAGS = @SASL_CFLAGS@
|
||||
SASL_LIBS = @SASL_LIBS@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
SSSCERTMAP_CFLAGS = @SSSCERTMAP_CFLAGS@
|
||||
SSSCERTMAP_LIBS = @SSSCERTMAP_LIBS@
|
||||
SSSIDMAP_CFLAGS = @SSSIDMAP_CFLAGS@
|
||||
SSSIDMAP_LIBS = @SSSIDMAP_LIBS@
|
||||
SSSNSSIDMAP_CFLAGS = @SSSNSSIDMAP_CFLAGS@
|
||||
SSSNSSIDMAP_LIBS = @SSSNSSIDMAP_LIBS@
|
||||
STRIP = @STRIP@
|
||||
TALLOC_CFLAGS = @TALLOC_CFLAGS@
|
||||
TALLOC_LIBS = @TALLOC_LIBS@
|
||||
TEVENT_CFLAGS = @TEVENT_CFLAGS@
|
||||
TEVENT_LIBS = @TEVENT_LIBS@
|
||||
UNISTRING_LIBS = @UNISTRING_LIBS@
|
||||
UNLINK = @UNLINK@
|
||||
USE_NLS = @USE_NLS@
|
||||
UUID_CFLAGS = @UUID_CFLAGS@
|
||||
UUID_LIBS = @UUID_LIBS@
|
||||
VENDOR_SUFFIX = @VENDOR_SUFFIX@
|
||||
VERSION = @VERSION@
|
||||
XGETTEXT = @XGETTEXT@
|
||||
XGETTEXT_015 = @XGETTEXT_015@
|
||||
XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
|
||||
XMLRPC_CFLAGS = @XMLRPC_CFLAGS@
|
||||
XMLRPC_LIBS = @XMLRPC_LIBS@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
i18ntests = @i18ntests@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
krb5rundir = @krb5rundir@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
pkgpyexecdir = @pkgpyexecdir@
|
||||
pkgpythondir = @pkgpythondir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
pyexecdir = @pyexecdir@
|
||||
pythondir = @pythondir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
sysconfenvdir = @sysconfenvdir@
|
||||
systemdsystemunitdir = @systemdsystemunitdir@
|
||||
systemdtmpfilesdir = @systemdtmpfilesdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
NULL =
|
||||
appdir = $(IPA_DATA_DIR)/ui/js/freeipa
|
||||
nodist_app_DATA = \
|
||||
app.js \
|
||||
core.js \
|
||||
$(NULL)
|
||||
|
||||
CLEANFILES = $(nodist_app_DATA)
|
||||
EXTRA_DIST = \
|
||||
$(app_DATA) \
|
||||
$(NULL)
|
||||
|
||||
core := $(wildcard ../../src/freeipa/*.js)
|
||||
base := $(wildcard ../../src/freeipa/_base/*.js)
|
||||
widgets := $(wildcard ../../src/freeipa/widgets/*.js)
|
||||
nav := $(wildcard ../../src/freeipa/navigation/*.js)
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign install/ui/build/freeipa/Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign install/ui/build/freeipa/Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
install-nodist_appDATA: $(nodist_app_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
@list='$(nodist_app_DATA)'; test -n "$(appdir)" || list=; \
|
||||
if test -n "$$list"; then \
|
||||
echo " $(MKDIR_P) '$(DESTDIR)$(appdir)'"; \
|
||||
$(MKDIR_P) "$(DESTDIR)$(appdir)" || exit 1; \
|
||||
fi; \
|
||||
for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
echo "$$d$$p"; \
|
||||
done | $(am__base_list) | \
|
||||
while read files; do \
|
||||
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(appdir)'"; \
|
||||
$(INSTALL_DATA) $$files "$(DESTDIR)$(appdir)" || exit $$?; \
|
||||
done
|
||||
|
||||
uninstall-nodist_appDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(nodist_app_DATA)'; test -n "$(appdir)" || list=; \
|
||||
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
||||
dir='$(DESTDIR)$(appdir)'; $(am__uninstall_files_from_dir)
|
||||
tags TAGS:
|
||||
|
||||
ctags CTAGS:
|
||||
|
||||
cscope cscopelist:
|
||||
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(DATA)
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(appdir)"; do \
|
||||
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
||||
done
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
if test -z '$(STRIP)'; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
install; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||
fi
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-nodist_appDATA
|
||||
|
||||
install-dvi: install-dvi-am
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-am
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-am
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-am
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-nodist_appDATA
|
||||
|
||||
.MAKE: install-am install-strip
|
||||
|
||||
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
|
||||
cscopelist-am ctags-am distclean distclean-generic \
|
||||
distclean-libtool distdir dvi dvi-am html html-am info info-am \
|
||||
install install-am install-data install-data-am install-dvi \
|
||||
install-dvi-am install-exec install-exec-am install-html \
|
||||
install-html-am install-info install-info-am install-man \
|
||||
install-nodist_appDATA install-pdf install-pdf-am install-ps \
|
||||
install-ps-am install-strip installcheck installcheck-am \
|
||||
installdirs maintainer-clean maintainer-clean-generic \
|
||||
mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
|
||||
ps ps-am tags-am uninstall uninstall-am \
|
||||
uninstall-nodist_appDATA
|
||||
|
||||
.PRECIOUS: Makefile
|
||||
|
||||
|
||||
app.js: $(core) $(base) $(widgets) $(nav)
|
||||
$(srcdir)/../../util/make-ui.sh
|
||||
|
||||
core.js: app.js
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
25
install/ui/css/Makefile.am
Normal file
@@ -0,0 +1,25 @@
|
||||
NULL =
|
||||
|
||||
appdir = $(IPA_DATA_DIR)/ui/css
|
||||
app_DATA = \
|
||||
bootstrap-datepicker3.min.css \
|
||||
patternfly.css \
|
||||
$(NULL)
|
||||
|
||||
nodist_app_DATA = \
|
||||
ipa.css
|
||||
|
||||
CLEANFILES = $(nodist_app_DATA)
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(app_DATA) \
|
||||
$(NULL)
|
||||
|
||||
ipa := $(wildcard ../less/*.less) \
|
||||
../less/font-awesome/variables.less \
|
||||
../less/patternfly/variables.less \
|
||||
../less/bootstrap/variables.less \
|
||||
../less/variables.less
|
||||
|
||||
ipa.css: $(ipa)
|
||||
$(srcdir)/../util/make-css.sh
|
||||
648
install/ui/css/Makefile.in
Normal file
@@ -0,0 +1,648 @@
|
||||
# Makefile.in generated by automake 1.15.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2017 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = { \
|
||||
if test -z '$(MAKELEVEL)'; then \
|
||||
false; \
|
||||
elif test -n '$(MAKE_HOST)'; then \
|
||||
true; \
|
||||
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
|
||||
true; \
|
||||
else \
|
||||
false; \
|
||||
fi; \
|
||||
}
|
||||
am__make_running_with_option = \
|
||||
case $${target_option-} in \
|
||||
?) ;; \
|
||||
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||
"target option '$${target_option-}' specified" >&2; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
has_opt=no; \
|
||||
sane_makeflags=$$MAKEFLAGS; \
|
||||
if $(am__is_gnu_make); then \
|
||||
sane_makeflags=$$MFLAGS; \
|
||||
else \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
bs=\\; \
|
||||
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||
esac; \
|
||||
fi; \
|
||||
skip_next=no; \
|
||||
strip_trailopt () \
|
||||
{ \
|
||||
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||
}; \
|
||||
for flg in $$sane_makeflags; do \
|
||||
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||
case $$flg in \
|
||||
*=*|--*) continue;; \
|
||||
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||
-*I?*) strip_trailopt 'I';; \
|
||||
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||
-*O?*) strip_trailopt 'O';; \
|
||||
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||
-*l?*) strip_trailopt 'l';; \
|
||||
-[dEDm]) skip_next=yes;; \
|
||||
-[JT]) skip_next=yes;; \
|
||||
esac; \
|
||||
case $$flg in \
|
||||
*$$target_option*) has_opt=yes; break;; \
|
||||
esac; \
|
||||
done; \
|
||||
test $$has_opt = yes
|
||||
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
||||
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
subdir = install/ui/css
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
|
||||
$(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
|
||||
$(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
|
||||
$(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
|
||||
$(top_srcdir)/m4/progtest.m4 $(top_srcdir)/VERSION.m4 \
|
||||
$(top_srcdir)/server.m4 $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
AM_V_P = $(am__v_P_@AM_V@)
|
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||
am__v_P_0 = false
|
||||
am__v_P_1 = :
|
||||
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||
am__v_GEN_0 = @echo " GEN " $@;
|
||||
am__v_GEN_1 =
|
||||
AM_V_at = $(am__v_at_@AM_V@)
|
||||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||
am__v_at_0 = @
|
||||
am__v_at_1 =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
|
||||
am__install_max = 40
|
||||
am__nobase_strip_setup = \
|
||||
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
|
||||
am__nobase_strip = \
|
||||
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
|
||||
am__nobase_list = $(am__nobase_strip_setup); \
|
||||
for p in $$list; do echo "$$p $$p"; done | \
|
||||
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
|
||||
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
|
||||
if (++n[$$2] == $(am__install_max)) \
|
||||
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
|
||||
END { for (dir in files) print dir, files[dir] }'
|
||||
am__base_list = \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
||||
am__uninstall_files_from_dir = { \
|
||||
test -z "$$files" \
|
||||
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|
||||
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
|
||||
$(am__cd) "$$dir" && rm -f $$files; }; \
|
||||
}
|
||||
am__installdirs = "$(DESTDIR)$(appdir)" "$(DESTDIR)$(appdir)"
|
||||
DATA = $(app_DATA) $(nodist_app_DATA)
|
||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
||||
am__DIST_COMMON = $(srcdir)/Makefile.in
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMTAR = @AMTAR@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
API_VERSION = @API_VERSION@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CMOCKA_CFLAGS = @CMOCKA_CFLAGS@
|
||||
CMOCKA_LIBS = @CMOCKA_LIBS@
|
||||
CONFIG_STATUS = @CONFIG_STATUS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CRYPTO_CFLAGS = @CRYPTO_CFLAGS@
|
||||
CRYPTO_LIBS = @CRYPTO_LIBS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DATA_VERSION = @DATA_VERSION@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DIRSRV_CFLAGS = @DIRSRV_CFLAGS@
|
||||
DIRSRV_LIBS = @DIRSRV_LIBS@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
GETTEXT_DOMAIN = @GETTEXT_DOMAIN@
|
||||
GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
|
||||
GIT_BRANCH = @GIT_BRANCH@
|
||||
GIT_VERSION = @GIT_VERSION@
|
||||
GMSGFMT = @GMSGFMT@
|
||||
GMSGFMT_015 = @GMSGFMT_015@
|
||||
GREP = @GREP@
|
||||
INI_CFLAGS = @INI_CFLAGS@
|
||||
INI_LIBS = @INI_LIBS@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
INTLLIBS = @INTLLIBS@
|
||||
INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
|
||||
IPAPLATFORM = @IPAPLATFORM@
|
||||
IPA_DATA_DIR = @IPA_DATA_DIR@
|
||||
IPA_SYSCONF_DIR = @IPA_SYSCONF_DIR@
|
||||
JSLINT = @JSLINT@
|
||||
KRAD_LIBS = @KRAD_LIBS@
|
||||
KRB5KDC_SERVICE = @KRB5KDC_SERVICE@
|
||||
KRB5_CFLAGS = @KRB5_CFLAGS@
|
||||
KRB5_LIBS = @KRB5_LIBS@
|
||||
LD = @LD@
|
||||
LDAP_CFLAGS = @LDAP_CFLAGS@
|
||||
LDAP_LIBS = @LDAP_LIBS@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBICONV = @LIBICONV@
|
||||
LIBINTL = @LIBINTL@
|
||||
LIBINTL_LIBS = @LIBINTL_LIBS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBPDB_NAME = @LIBPDB_NAME@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBVERTO_CFLAGS = @LIBVERTO_CFLAGS@
|
||||
LIBVERTO_LIBS = @LIBVERTO_LIBS@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBICONV = @LTLIBICONV@
|
||||
LTLIBINTL = @LTLIBINTL@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
MK_ASSIGN = @MK_ASSIGN@
|
||||
MK_ELSE = @MK_ELSE@
|
||||
MK_ENDIF = @MK_ENDIF@
|
||||
MK_IFEQ = @MK_IFEQ@
|
||||
MSGATTRIB = @MSGATTRIB@
|
||||
MSGFMT = @MSGFMT@
|
||||
MSGFMT_015 = @MSGFMT_015@
|
||||
MSGMERGE = @MSGMERGE@
|
||||
NAMED_GROUP = @NAMED_GROUP@
|
||||
NDRNBT_CFLAGS = @NDRNBT_CFLAGS@
|
||||
NDRNBT_LIBS = @NDRNBT_LIBS@
|
||||
NDRPAC_CFLAGS = @NDRPAC_CFLAGS@
|
||||
NDRPAC_LIBS = @NDRPAC_LIBS@
|
||||
NDR_CFLAGS = @NDR_CFLAGS@
|
||||
NDR_LIBS = @NDR_LIBS@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
NSPR_CFLAGS = @NSPR_CFLAGS@
|
||||
NSPR_LIBS = @NSPR_LIBS@
|
||||
NSS_CFLAGS = @NSS_CFLAGS@
|
||||
NSS_LIBS = @NSS_LIBS@
|
||||
NUM_VERSION = @NUM_VERSION@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
ODS_USER = @ODS_USER@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
|
||||
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
|
||||
POPT_CFLAGS = @POPT_CFLAGS@
|
||||
POPT_LIBS = @POPT_LIBS@
|
||||
POSUB = @POSUB@
|
||||
PYLINT = @PYLINT@
|
||||
PYTHON = @PYTHON@
|
||||
PYTHON2 = @PYTHON2@
|
||||
PYTHON3 = @PYTHON3@
|
||||
PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
|
||||
PYTHON_INSTALL_EXTRA_OPTIONS = @PYTHON_INSTALL_EXTRA_OPTIONS@
|
||||
PYTHON_PLATFORM = @PYTHON_PLATFORM@
|
||||
PYTHON_PREFIX = @PYTHON_PREFIX@
|
||||
PYTHON_VERSION = @PYTHON_VERSION@
|
||||
RANLIB = @RANLIB@
|
||||
SAMBA40EXTRA_LIBPATH = @SAMBA40EXTRA_LIBPATH@
|
||||
SAMBAUTIL_CFLAGS = @SAMBAUTIL_CFLAGS@
|
||||
SAMBAUTIL_LIBS = @SAMBAUTIL_LIBS@
|
||||
SASL_CFLAGS = @SASL_CFLAGS@
|
||||
SASL_LIBS = @SASL_LIBS@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
SSSCERTMAP_CFLAGS = @SSSCERTMAP_CFLAGS@
|
||||
SSSCERTMAP_LIBS = @SSSCERTMAP_LIBS@
|
||||
SSSIDMAP_CFLAGS = @SSSIDMAP_CFLAGS@
|
||||
SSSIDMAP_LIBS = @SSSIDMAP_LIBS@
|
||||
SSSNSSIDMAP_CFLAGS = @SSSNSSIDMAP_CFLAGS@
|
||||
SSSNSSIDMAP_LIBS = @SSSNSSIDMAP_LIBS@
|
||||
STRIP = @STRIP@
|
||||
TALLOC_CFLAGS = @TALLOC_CFLAGS@
|
||||
TALLOC_LIBS = @TALLOC_LIBS@
|
||||
TEVENT_CFLAGS = @TEVENT_CFLAGS@
|
||||
TEVENT_LIBS = @TEVENT_LIBS@
|
||||
UNISTRING_LIBS = @UNISTRING_LIBS@
|
||||
UNLINK = @UNLINK@
|
||||
USE_NLS = @USE_NLS@
|
||||
UUID_CFLAGS = @UUID_CFLAGS@
|
||||
UUID_LIBS = @UUID_LIBS@
|
||||
VENDOR_SUFFIX = @VENDOR_SUFFIX@
|
||||
VERSION = @VERSION@
|
||||
XGETTEXT = @XGETTEXT@
|
||||
XGETTEXT_015 = @XGETTEXT_015@
|
||||
XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
|
||||
XMLRPC_CFLAGS = @XMLRPC_CFLAGS@
|
||||
XMLRPC_LIBS = @XMLRPC_LIBS@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
i18ntests = @i18ntests@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
krb5rundir = @krb5rundir@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
pkgpyexecdir = @pkgpyexecdir@
|
||||
pkgpythondir = @pkgpythondir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
pyexecdir = @pyexecdir@
|
||||
pythondir = @pythondir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
sysconfenvdir = @sysconfenvdir@
|
||||
systemdsystemunitdir = @systemdsystemunitdir@
|
||||
systemdtmpfilesdir = @systemdtmpfilesdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
NULL =
|
||||
appdir = $(IPA_DATA_DIR)/ui/css
|
||||
app_DATA = \
|
||||
bootstrap-datepicker3.min.css \
|
||||
patternfly.css \
|
||||
$(NULL)
|
||||
|
||||
nodist_app_DATA = \
|
||||
ipa.css
|
||||
|
||||
CLEANFILES = $(nodist_app_DATA)
|
||||
EXTRA_DIST = \
|
||||
$(app_DATA) \
|
||||
$(NULL)
|
||||
|
||||
ipa := $(wildcard ../less/*.less) \
|
||||
../less/font-awesome/variables.less \
|
||||
../less/patternfly/variables.less \
|
||||
../less/bootstrap/variables.less \
|
||||
../less/variables.less
|
||||
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign install/ui/css/Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign install/ui/css/Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
install-appDATA: $(app_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
@list='$(app_DATA)'; test -n "$(appdir)" || list=; \
|
||||
if test -n "$$list"; then \
|
||||
echo " $(MKDIR_P) '$(DESTDIR)$(appdir)'"; \
|
||||
$(MKDIR_P) "$(DESTDIR)$(appdir)" || exit 1; \
|
||||
fi; \
|
||||
for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
echo "$$d$$p"; \
|
||||
done | $(am__base_list) | \
|
||||
while read files; do \
|
||||
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(appdir)'"; \
|
||||
$(INSTALL_DATA) $$files "$(DESTDIR)$(appdir)" || exit $$?; \
|
||||
done
|
||||
|
||||
uninstall-appDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(app_DATA)'; test -n "$(appdir)" || list=; \
|
||||
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
||||
dir='$(DESTDIR)$(appdir)'; $(am__uninstall_files_from_dir)
|
||||
install-nodist_appDATA: $(nodist_app_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
@list='$(nodist_app_DATA)'; test -n "$(appdir)" || list=; \
|
||||
if test -n "$$list"; then \
|
||||
echo " $(MKDIR_P) '$(DESTDIR)$(appdir)'"; \
|
||||
$(MKDIR_P) "$(DESTDIR)$(appdir)" || exit 1; \
|
||||
fi; \
|
||||
for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
echo "$$d$$p"; \
|
||||
done | $(am__base_list) | \
|
||||
while read files; do \
|
||||
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(appdir)'"; \
|
||||
$(INSTALL_DATA) $$files "$(DESTDIR)$(appdir)" || exit $$?; \
|
||||
done
|
||||
|
||||
uninstall-nodist_appDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(nodist_app_DATA)'; test -n "$(appdir)" || list=; \
|
||||
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
||||
dir='$(DESTDIR)$(appdir)'; $(am__uninstall_files_from_dir)
|
||||
tags TAGS:
|
||||
|
||||
ctags CTAGS:
|
||||
|
||||
cscope cscopelist:
|
||||
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(DATA)
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(appdir)" "$(DESTDIR)$(appdir)"; do \
|
||||
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
||||
done
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
if test -z '$(STRIP)'; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
install; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||
fi
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-appDATA install-nodist_appDATA
|
||||
|
||||
install-dvi: install-dvi-am
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-am
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-am
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-am
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-appDATA uninstall-nodist_appDATA
|
||||
|
||||
.MAKE: install-am install-strip
|
||||
|
||||
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
|
||||
cscopelist-am ctags-am distclean distclean-generic \
|
||||
distclean-libtool distdir dvi dvi-am html html-am info info-am \
|
||||
install install-am install-appDATA install-data \
|
||||
install-data-am install-dvi install-dvi-am install-exec \
|
||||
install-exec-am install-html install-html-am install-info \
|
||||
install-info-am install-man install-nodist_appDATA install-pdf \
|
||||
install-pdf-am install-ps install-ps-am install-strip \
|
||||
installcheck installcheck-am installdirs maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-generic \
|
||||
mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \
|
||||
uninstall-am uninstall-appDATA uninstall-nodist_appDATA
|
||||
|
||||
.PRECIOUS: Makefile
|
||||
|
||||
|
||||
ipa.css: $(ipa)
|
||||
$(srcdir)/../util/make-css.sh
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
8
install/ui/css/bootstrap-datepicker3.min.css
vendored
Normal file
7
install/ui/css/patternfly.css
Normal file
5
install/ui/doc/Makefile
Normal file
@@ -0,0 +1,5 @@
|
||||
all:
|
||||
jsduck --config config.json
|
||||
|
||||
clean:
|
||||
@rm -rf ../build/code_doc
|
||||
275
install/ui/doc/categories.json
Normal file
@@ -0,0 +1,275 @@
|
||||
[
|
||||
{
|
||||
"name": "Application Core",
|
||||
"groups": [
|
||||
{
|
||||
"name": "General",
|
||||
"classes": [
|
||||
"IPA.object",
|
||||
"IPA.observer",
|
||||
"rpc.command",
|
||||
"rpc.batch_command",
|
||||
"rpc.concurrent_command",
|
||||
"entity.entity"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Application controller and Phases",
|
||||
"classes": [
|
||||
"phases",
|
||||
"_base.Phase_controller*",
|
||||
"auth",
|
||||
"auth.Auth",
|
||||
"Application_controller",
|
||||
"app",
|
||||
"plugin_loader",
|
||||
"menu",
|
||||
"navigation",
|
||||
"config"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Navigation",
|
||||
"classes": [
|
||||
"navigation.*"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Facets",
|
||||
"classes": [
|
||||
"facet.facet",
|
||||
"facets.ActionMixin",
|
||||
"facets.HeaderMixin",
|
||||
"facets.Facet",
|
||||
"*_facet",
|
||||
"*Facet"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Dialogs",
|
||||
"classes": [
|
||||
"IPA.dialog",
|
||||
"IPA.opened_dialogs",
|
||||
"IPA.dialog_button",
|
||||
"IPA.confirm_mixin",
|
||||
"*_dialog"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Entity policies",
|
||||
"classes": [
|
||||
"entity.*_policy"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Entity internals",
|
||||
"classes": [
|
||||
"entity.entity_builder",
|
||||
"entity.entity_policies"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Build",
|
||||
"classes": [
|
||||
"_base.Builder",
|
||||
"_base.Construct_registry",
|
||||
"_base.Singleton_registry",
|
||||
"_base.construct",
|
||||
"builder",
|
||||
"reg",
|
||||
"details.details_builder",
|
||||
"details.section_builder",
|
||||
"field.field_builder",
|
||||
"widget.widget_builder"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Metadata & Text providers",
|
||||
"classes": [
|
||||
"_base.Provider",
|
||||
"_base.Search_provider",
|
||||
"_base.i18n",
|
||||
"metadata",
|
||||
"text"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Utils",
|
||||
"classes": [
|
||||
"IPA.associator",
|
||||
"IPA.serial_associator",
|
||||
"IPA.bulk_associator",
|
||||
"IPA.association_config",
|
||||
"_base.debug",
|
||||
"_base.Spec_mod",
|
||||
"datetime",
|
||||
"extend",
|
||||
"spec_util",
|
||||
"util"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Facet and Dialog Components",
|
||||
"groups": [
|
||||
{
|
||||
"name": "Facet internals",
|
||||
"classes": [
|
||||
"facet.simple_facet_header",
|
||||
"facet.facet_header",
|
||||
"facet.facet_title",
|
||||
"facet.facet_group",
|
||||
"facet.state",
|
||||
"facet.FacetState",
|
||||
"facet.action_holder",
|
||||
"details.facet_policies",
|
||||
"field.field_container",
|
||||
"IPA.widget_container",
|
||||
"details.update_info",
|
||||
"details.command_info",
|
||||
"details.field_info",
|
||||
"details.update_info_builder",
|
||||
"details.command_builder",
|
||||
"FormMixin"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Facet actions",
|
||||
"classes": [
|
||||
"facet.action",
|
||||
"dialogs.password.action",
|
||||
"*_action"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Facet policies",
|
||||
"classes": [
|
||||
"*facet_policy",
|
||||
"IPA.hide_empty_row_policy",
|
||||
"IPA.user.preserved_user_policy",
|
||||
"IPA.user.stageuser_sidebar_policy",
|
||||
"aci.permission_target_policy",
|
||||
"aci.permission_managed_policy"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Dialog policies",
|
||||
"classes": [
|
||||
"idviews.idoverride_adder_policy"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Evaluators & Summaries",
|
||||
"classes": [
|
||||
"*_evaluator",
|
||||
"facet.summary_cond",
|
||||
"*_summary_cond"
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
"name": "Widgets",
|
||||
"classes": [
|
||||
"IPA.widget",
|
||||
"*_widget",
|
||||
"*Widget",
|
||||
"widgets.*",
|
||||
"IPA.action_panel"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Sections and layout widgets",
|
||||
"classes": [
|
||||
"IPA.layout",
|
||||
"IPA.section",
|
||||
"*_section",
|
||||
"*_layout",
|
||||
"IPA.details_table_section_nc"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Widget mixins, utils and related",
|
||||
"classes": [
|
||||
"widget.alert_helper",
|
||||
"IPA.option_widget_base",
|
||||
"IPA.column",
|
||||
"IPA.html_util",
|
||||
"topology_graph.TopoGraph"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Fields",
|
||||
"classes": [
|
||||
"field.field",
|
||||
"*_field"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Binders",
|
||||
"classes": [
|
||||
"*Binder"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Adapters",
|
||||
"classes": [
|
||||
"*Adapter"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Formatters",
|
||||
"classes": [
|
||||
"IPA.formatter",
|
||||
"*_formatter"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Validators",
|
||||
"classes": [
|
||||
"field.validator",
|
||||
"*_validator"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Modules",
|
||||
"groups": [
|
||||
{
|
||||
"name": "Core",
|
||||
"classes": [
|
||||
"IPA",
|
||||
"association",
|
||||
"details",
|
||||
"dialogs.password",
|
||||
"entity",
|
||||
"facet",
|
||||
"field",
|
||||
"ordered_map",
|
||||
"widget"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Plugins",
|
||||
"classes": [
|
||||
"aci",
|
||||
"idviews",
|
||||
"otptoken",
|
||||
"radiusproxy",
|
||||
"stageuser",
|
||||
"topology",
|
||||
"topology_graph",
|
||||
"user",
|
||||
"plugins.api_browser",
|
||||
"plugins.caacl",
|
||||
"plugins.certprofile",
|
||||
"plugins.load",
|
||||
"plugins.login",
|
||||
"plugins.login_process",
|
||||
"plugins.sync_otp"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
13
install/ui/doc/config.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"--title": "FreeIPA Web UI Documentation",
|
||||
"--categories": "categories.json",
|
||||
"--guides": "guides.json",
|
||||
"--css": ["doc.css"],
|
||||
"--external": ["jQuery", "Store", "QueryResult", "Stateful", "Evented",
|
||||
"XMLHttpRequest", "Promise"],
|
||||
"--warnings": ["-link", "-nodoc"],
|
||||
"--": [
|
||||
"../src/freeipa/"
|
||||
],
|
||||
"--output": "../build/code_doc"
|
||||
}
|
||||
4
install/ui/doc/doc.css
Normal file
@@ -0,0 +1,4 @@
|
||||
code {
|
||||
background-color: #F7F7F9;
|
||||
color: #DD1144;
|
||||
}
|
||||
37
install/ui/doc/guides.json
Normal file
@@ -0,0 +1,37 @@
|
||||
[
|
||||
{
|
||||
"title": "FreeIPA Web UI Guides",
|
||||
"items": [
|
||||
{
|
||||
"name": "Debugging",
|
||||
"url": "guides/debugging_web_ui",
|
||||
"title": "Web UI debugging",
|
||||
"description": "With built JavaScript layer debugging can be quite tricky."
|
||||
},
|
||||
{
|
||||
"name": "Navigation",
|
||||
"url": "guides/navigation",
|
||||
"title": "Navigation",
|
||||
"description": "Navigation was refactored. This guide describes previous flaws and new implementation"
|
||||
},
|
||||
{
|
||||
"name": "Plugins",
|
||||
"url": "guides/plugins",
|
||||
"title": "Plugin support",
|
||||
"description": "Introduction into plugin infrastructure."
|
||||
},
|
||||
{
|
||||
"name": "Phases",
|
||||
"url": "guides/phases",
|
||||
"title": "Application phases",
|
||||
"description": "Introduction to application phases"
|
||||
},
|
||||
{
|
||||
"name": "Registries",
|
||||
"url": "guides/registries",
|
||||
"title": "Registries and Build system",
|
||||
"description": "This document contains design of component build system."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
79
install/ui/doc/guides/debugging_web_ui/README.md
Normal file
@@ -0,0 +1,79 @@
|
||||
# Debugging Web UI - FreeIPA 3.2 and later
|
||||
|
||||
## Introduction
|
||||
|
||||
Since version 3.2 (not released yet) FreeIPA Web UI uses [AMD modules](http://dojotoolkit.org/documentation/tutorials/1.8/modules/). The change also lead to introduction of JavaScript builder&compiler. Code is build into one JavaScript file by Dojo builder and further compiled by UglifyJS compiler. Overall it makes UI faster but it made debugging of production version more complicated -- such code is quite hard to read.
|
||||
|
||||
This document tries to describe how to report runtime error in FreeIPA Web UI.
|
||||
|
||||
## Browser developer tools
|
||||
|
||||
The main prerequisite is to know how to inspect code and thrown JS errors in browser developer tools. This document will deal only with Chrome/Chromium developer tools because, in authors option, they are the most advanced (compared to Internet Explorer 9, Firefox, Opera).
|
||||
|
||||
Chrome Developer tools are [documented](https://developers.google.com/chrome-developer-tools).
|
||||
|
||||
## JavaScript console
|
||||
|
||||
[JavaScript console][1] can be opened by `ctrl + shift + j` keyboard shortcut, or by `F12` and choosing `console` tab in developer tools.
|
||||
|
||||
Error reporting perspective, Console serves for displaying errors. If there is a unexpected error it usually indicates a bug. The error message can be expanded, it will display a call stack with source file names, line number and a link to a [Script Panel][2]. The top line is usually the source of the error.
|
||||
|
||||
### Expected errors
|
||||
|
||||
Web UI needs to have established session. If it doesn't have one, first JSON-RPC command to FreeIPA API will fail with HTTP 401 Unauthorized error. Web UI will try to authenticate by Kerberos ticket. If user doesn't have a valid ticket it will raise another error.
|
||||
|
||||
The output looks like this:
|
||||
|
||||
POST https://vm-061.idm.lab.eng.brq.redhat.com/ipa/session/json 401 (Unauthorized) jquery.js:4
|
||||
GET https://vm-061.idm.lab.eng.brq.redhat.com/ipa/session/login_kerberos?_=1363177904558 401 (Unauthorized) jquery.js:4
|
||||
|
||||
Please ignore these two errors.
|
||||
|
||||
## Script panel
|
||||
|
||||
[Script panel][2] provides graphical interface to a debugger. One can inspect and step through the code.
|
||||
|
||||
### Compiled code
|
||||
|
||||
If the code is compiled, it is usually one or several dense lines. Such code is completely unreadable -> unusable for error reporting. One should use `Pretty print` feature executed by button with `{}` icon located on the bottom. Pretty print will add proper formatting to the code. It may be required to reload the page and reproduce the bug again to have console link to new line number. At this point the Error console contains error with usable line numbers which are helpful for developers.
|
||||
|
||||
### Debugging with source codes
|
||||
|
||||
Even better reporting is when one have and can use source codes. The compiled Web UI layer is located in `/usr/share/ipa/ui/js/freeipa/app.js` file. One can copy files from source git repository in `install/ui/src/freeipa/` directory to the `/usr/share/ipa/ui/js/freeipa/` directory (in will replace the `app.js` file). By doing that, next reload of Web UI will use source files (clearing browser cache may be required). After that all JavaScript errors will contain proper source code name and line number.
|
||||
|
||||
A tool was made to made this task easier. It's located in git repo at `install/ui/util/sync.sh`. One can copy the files form dev machine to test machine by:
|
||||
|
||||
sync.sh --host root@test.machine -fc
|
||||
|
||||
Notes:
|
||||
|
||||
* `root` is user with write rights to `/usr/share/ipa/ui/js/freeipa/` directory
|
||||
* `test.machine` is name of test machine
|
||||
* `-f` option is shortcut for `--freeipa`
|
||||
* `-c` option is shortcut for `--clean` - wipes the content of destination directory
|
||||
* working directory is `install/ui/util` in git directory
|
||||
* without using `--host` option it can also work on local computer (not much tested)
|
||||
|
||||
If one did not backup the original app.js file, he can make new one and sync it there by:
|
||||
|
||||
|
||||
make-ui.sh
|
||||
sync.sh --host root@test.machine -fcC
|
||||
|
||||
Notes:
|
||||
|
||||
* `-C` is shortcut for `--compiled` and means that the compiled version, made by `make-ui.sh`, will be copied.
|
||||
* `make-ui.sh` requires to have Java installed in order to work (uses Rhino)
|
||||
|
||||
## Conclusion
|
||||
|
||||
While reporting an UI bug it's good to check if there is some JavaScript error and if so, send a call stack with line numbers, preferably the ones by using source codes. If source codes are not available, pretty print function should be used and send also code (~15 lines on both sides) around the bug.
|
||||
|
||||
The most valuable information in order of preference are:
|
||||
|
||||
- steps to reproduce
|
||||
- JavaScript error text with call stack with line numbers and source code names
|
||||
- sreenshots
|
||||
|
||||
[1]: https://developers.google.com/chrome-developer-tools/docs/console
|
||||
[2]: https://developers.google.com/chrome-developer-tools/docs/scripts
|
||||
270
install/ui/doc/guides/navigation/README.md
Normal file
@@ -0,0 +1,270 @@
|
||||
# Navigation refactoring
|
||||
|
||||
## Introduction
|
||||
|
||||
Navigation code undertook complete rewrite. Previous navigation served for multiple purposes. These purposes were so tight together that it created several limitations for future enhancements of the framework. New implementation splits the code to several more or less independent components with given responsibilities. First part of this document describes old issues, second new implementation.
|
||||
|
||||
## Glossary
|
||||
|
||||
- **navigation**: covers whole functionality of changing pages, updating of visual representation and hash.
|
||||
- **menu**: only the visual representation on the page
|
||||
- **hash**: part of the URL after `#` sign
|
||||
- **router**: component which matches hashes to facets
|
||||
- **facet**: 'page' of the application
|
||||
|
||||
## Problems of previous implementation
|
||||
|
||||
### Global state
|
||||
|
||||
The change of facet state was done by changing hash part of URL. The change was handled by navigation, it caused the same chain of commands as showing a different page. Basically a facet told navigation to tell it that it needs to change it state, which is redundant. The only thing needed is to announce: ``I'm changing my state''. Navigation can then just update hash.
|
||||
|
||||
The process was as follows:
|
||||
|
||||
1. `IPA.nav.push_state(state)`
|
||||
2. `IPA.nav.update()`
|
||||
3. `entity.display(facet_node)`
|
||||
4. check if to reload facet
|
||||
5. `facet.show()`
|
||||
6. several calls of `IPA.nav.get_state(key)`
|
||||
7. do the action
|
||||
|
||||
Page change was the same with some additional steps.
|
||||
|
||||
Using global values also prevents using more facets on a one page. Such feature is not required yet but it is an unnecessary limitation which can be easily
|
||||
avoided.
|
||||
|
||||
### Entity structure
|
||||
|
||||
Menu specification and UI structure required an entity to be specified for every page. `entity.display(facet_node)` served for switching facets. The `display` method was basically doing part of a work of application controller. An artificial entity would have to be created for pages without any entity.
|
||||
|
||||
### Fixed dirty check
|
||||
|
||||
`IPA.nav.push_state(state)` method contained a code which checks facet if it has some unsaved changes (is dirty) and displays a ``dirty dialog''. The type of the dialog was set in the method and therefore it was the same for each facet. It would create limitations for non-CRUD facets.
|
||||
|
||||
### DOM representation bound with rest of the functionality
|
||||
|
||||
This was the biggest issue. DOM representation (menu) was required for switching facets. Navigation used a concept of tabs. A tab was a node in navigation tree structure. Each leaf tab represented an entity or entity's facet. So one couldn't have a working navigation without existing menu or a facet without corresponding menu item.
|
||||
|
||||
### Difficult extensibility
|
||||
|
||||
It was very difficult to add item on particular position. The tree-like structure of tabs was hard-coded and initialized on init. Additional changes weren't supported. Navigation didn't offer any method which would add new item on certain position. Partial update of menu wasn't possible. Recreation wasn't tested.
|
||||
|
||||
## New implementation
|
||||
|
||||
Rewrite of the navigation addresses all mentioned issues. The old `IPA.navigation` class was split into server smaller ones with limited responsibilities:
|
||||
|
||||
* `navigation.menu_spec`
|
||||
* `navigation.Menu`
|
||||
* `navigation.Router`
|
||||
* `Application_controller`
|
||||
* `widgets.App`
|
||||
* `widgets.Menu`
|
||||
|
||||
### Menu
|
||||
|
||||
Menu is implemented in two classes: `navigation.Menu` and `widgets.Menu`.
|
||||
|
||||
#### `navigation.Menu`
|
||||
|
||||
Is a data model of a menu. It contains object store of menu items. It provides array of currently selected items and events which can be used for observation of changes.
|
||||
|
||||
New items can be added by simple method.
|
||||
|
||||
#### `widgets.Menu`
|
||||
|
||||
Is the HTML representation of a menu - a widget. It uses `navigation.Menu` as it's data model. It listens to data model's `selected` event to update selection state and observers data.models object store to reflect it's changes. Hence, new items are immediately rendered and removed are destroyed.
|
||||
|
||||
Menu offers `item-select` event. Other components should listed to it and do appropriate work.
|
||||
|
||||
Menu widget doesn't change it's data model in any way. It just observes.
|
||||
|
||||
### Router
|
||||
|
||||
`navigation.Router` is applications router. It is an extension of dojo router. It adds a support for facets. It provides API for route registration, hash generation and update, and navigation to facets.
|
||||
|
||||
IMPORTANT: Facets widgets and other parts of application shouldn't use router directly. They should use navigation proxy(`navigation`) instead.
|
||||
|
||||
#### Route registration
|
||||
|
||||
Router has `register_route(routes, handler)` method for registering of routes. It's a wrapper of Dojo's router's `register` method. The difference is that this method can register multiple routes for one handler and that the handler is bound to router object so it can has it reference.
|
||||
|
||||
Standard implementation has handler for entity pages and for standalone pages. Standalone pages are not supported yet because facet register (a map of facets) is not implemented yet.
|
||||
|
||||
Extensions can register their own routes+handlers to support new types of facets/hash representations.
|
||||
|
||||
Router maintains each route registration so they can be deleted if needed.
|
||||
|
||||
#### Route evaluation
|
||||
|
||||
Evaluation is done by dojo router component. When it matches a route, it calls corresponded handler.
|
||||
|
||||
### Handlers and showing a facet
|
||||
|
||||
Route handlers receive dojo router's event argument objects. Handler can inspect old hash, new hash and state pulled from the new hash.
|
||||
|
||||
Handler should decode a facet and it's state, set the state to the facet and call `show_facet(facet)`. It publishes `facet-show` event. This tells the application that we should change the facet but router doesn't care how it's done.
|
||||
|
||||
Handler should always change if `ignore_next` flag isn't set. It can use `check_clear_ignore` which does this check and cleans the flag. When the flag is set the handler shouldn't do anything. The flag is mainly used when updating hash of already displayed facet. User can then bookmark the facet state.
|
||||
|
||||
### Navigating to a facet
|
||||
|
||||
It's a opposite operation of hash change handling and facet show. Router has two build-in methods: `navigate_to_facet` and `navigate_to_entity_facet`. Their purpose is to create hash which can be matched by some route and then call `navigate_to_hash(hash, facet)`.
|
||||
|
||||
**navigate_to_hash**
|
||||
Tells application "I want to change facet" by raising `facet-change` global event. Listeners can inspect associated facet and hash, then set `navigation.canceled` property if they want to prevent the change. They should do it synchronously. When somebody cancels the change, navigation notifies it by raising `facet-change-canceled` global event. Otherwise the hash is updated.
|
||||
|
||||
#### Updating hash
|
||||
|
||||
Hash can be updated in two cases: navigating to a facet and updating a facet state. The difference is in setting `ignore_next` property. The former sets it, latter doesn't.
|
||||
|
||||
|
||||
### Navigation proxy
|
||||
|
||||
Implemented as singleton in `.navigation` module. It's purpose is to offer interface for navigating between pages to facet, widgets and other components.
|
||||
|
||||
Consumers don't have to worry about internal implementation => they are not bound to specific router implementation.
|
||||
|
||||
Exposed methods:
|
||||
|
||||
* `show`
|
||||
* `show_entity`
|
||||
* `show_default`
|
||||
|
||||
Check code for arguments documentation.
|
||||
|
||||
Extensions can add new methods.
|
||||
|
||||
### Application controller
|
||||
|
||||
Application controller (AC) ties all the components together. It basically contains most of the integration logic as navigation did before but it delegates most of the actions to other components.
|
||||
|
||||
#### Application initialization
|
||||
|
||||
AC initialization is done in 3 phases: `app-init`, `metadata`, `profile`. Creation of AC instance and phase registration is done in `./app` module.
|
||||
|
||||
**app-init phase**
|
||||
|
||||
* creates AC instance
|
||||
* create menu store
|
||||
* creates router
|
||||
* creates app widget
|
||||
* bounds menu widget with menu store
|
||||
* registers handlers for:
|
||||
* click in menu widget (`item-select` event)
|
||||
* select change in menu data model (`selected` event)
|
||||
* profile view (app widget event)
|
||||
* logout (app widget event)
|
||||
* `facet-show` (router)
|
||||
* `facet-change` (router)
|
||||
* `facet-change-canceled` (router)
|
||||
* subscribes to global events (topics):
|
||||
* `phase-error`
|
||||
* renders app widget
|
||||
|
||||
**metadata phase**
|
||||
basically calls `IPA.init` to get metadata and profile information.
|
||||
|
||||
**profile phase**
|
||||
chooses menu based on identity information obtained in metadata phase. Adds menu items to menu.
|
||||
|
||||
Starts the router. Start of the router causes hash evaluation. A facet is displayed when hash is specified. When no facet is displayed, AC navigates to profile's default page.
|
||||
|
||||
**phase error:**
|
||||
When some phase fail, error content is displayed. At the time we can't count that everything is initialized so tools for displaying the error are very limited - no metadata, no profile, possibly no app widget.
|
||||
|
||||
#### Facet changing
|
||||
|
||||
AC listens to `facet-change` event. It compares current and new facet and asks old one if it is dirty, when it is, AC obtains dirty dialog from current facet and displays it. Hence, facets can choose how the dirty dialog would look like. AC prevents the change when told by the dialog.
|
||||
|
||||
#### Facet showing
|
||||
|
||||
AC hides old facets and shows new one. If new doesn't have container AC sets it one and registers listener for facet's `facet-state-change` event. At this point it also tries to identify menu item with the facet and select it. Unlike the previous implementation, it also works when no menu item is matched.
|
||||
|
||||
#### Menu clicks
|
||||
|
||||
On menu click AC tries to match facet with menu item and navigate to it.
|
||||
|
||||
Menu item is not selected because the change can be prevented. Therefore selection is performed in facet show handler.
|
||||
|
||||
#### Facet state changing
|
||||
|
||||
AC listens to `facet-state-change` event. AC updates hash when displayed facet changes its state.
|
||||
|
||||
#### Multiple menu levels
|
||||
|
||||
AC expect that the menu will have 2-3 menu levels. Current used CSS doesn't automatically handle 3rd level. Hence, AC observes select state and sets special class on content node to inform CSS.
|
||||
|
||||
#### Further generalization
|
||||
|
||||
As a framework class AC should be further generalized, mostly to get rid of IPA specific functions (app widget and its handlers, profiles,...).
|
||||
|
||||
|
||||
## How does it all work together?
|
||||
|
||||
Now, when everything is described, we can proceed to method calls chains examples of most common use cases. It will explain what operations are executed for certain use cases.
|
||||
|
||||
### Loading Web UI
|
||||
|
||||
It just goes through `app-init`, `metadata`, `profiles` phases. At the end of profile phase a facet is selected based on hash, if there is no hash, default facet is selected. The difference is only lack of `navigate_to_xxx` call in the former case. Details will be described in following chapter.
|
||||
|
||||
### Navigation to a page
|
||||
|
||||
Initiated by:
|
||||
|
||||
// navigation is './navigation' module
|
||||
var state = { key1: val1, key2: val2 };
|
||||
navigation.show(target_facet, state);
|
||||
|
||||
1. proxy gets reference to navigation of current AC: `nav`
|
||||
2. proxy calls `nav.navigate_to_facet(facet, state);`
|
||||
3. `navigate_to_facet` creates hash, calls `navigate_to_hash(facet, hash)`
|
||||
4. `navigate_to_hash` ask app if it can change facet by raising `facet-change` event
|
||||
5. AC will responds to it and ask current facet if it's dirty, if so:
|
||||
a. navigation is canceled. Must be canceled because it has to be synchronous and it can't wait for user input.
|
||||
b. `facet-change-cancelled` event is raised, no build in listeners for it
|
||||
c. dirty dialog is displayed
|
||||
d. user selects action
|
||||
e. on confirmation AC calls `navigate_to_hash` with same params to proceed with the change
|
||||
6. hash is updated
|
||||
7. hash changed event is raised and then processed by router
|
||||
8. router matches hash to handler and calls handler
|
||||
9. handler decodes facet and state from hash
|
||||
10. handler sets state to facet, it will cause appropriate actions in facet
|
||||
11. handler raises `facet-show` event
|
||||
12. `facet-show` event is caught by AC (handler: `on_facet_show`)
|
||||
13. AC matches facet to menu item (`this._find_menu_item(facet)`)
|
||||
14. AC selects menu item (`this.menu.select(menu_item)`)
|
||||
15. menu store raises `selected` event
|
||||
a. menu widget redraw itself according to selection
|
||||
b. AC adds style for third level menu if needed (handler: `on_menu_select`)
|
||||
16. AC set container for facet if needed (usually for the first time)
|
||||
17. AC hides current facet (`current_facet.hide()`)
|
||||
18. AC shows new facet (`facet.show()`)
|
||||
* facet clears and refreshes when `needs_update()` is true (might be set by as a result of `facet.set_state(state)` call in hash handler
|
||||
|
||||
### Click on menu item
|
||||
|
||||
1. user clicks on menu item
|
||||
2. raises `item-select` event of menu widget
|
||||
3. AC catches it
|
||||
4. AC traverse menu items to get first one with facet or entity set
|
||||
5. AC calls `navigate_to_entity_facet` or `navigate_to_facet` based on the result of previous operation
|
||||
6. rest is same as in [previous use case](#navigation-to-a-page)
|
||||
|
||||
### Update of facet state
|
||||
|
||||
1. facet updates its state
|
||||
2. facet publishes `facet-state-change` event.
|
||||
3. AC catches it and calls `navigation.create_hash` and then `navigation.update_hash`
|
||||
4. facet internally responds to the change
|
||||
|
||||
As you can see it just updates the hash but no navigation is done. This feature makes facet independent on navigation breaks one-facet displayed limitation (there can be facet containing more facets).
|
||||
|
||||
### Set hash by hand in a browser when facet is dirty
|
||||
|
||||
Basically the same as navigation to a page, only from hash is updated step. This implementation, nor the previous one, doesn't check dirty state of currently displayed facet. Hence, facet is changed in both cases.
|
||||
|
||||
## Open Questions
|
||||
|
||||
- Should facet state update be moved from navigation to app controller?
|
||||
- Add extensibility point to Menu Store for supporting initialization of different types of menu items? Extract entity & facet logic to it.
|
||||
125
install/ui/doc/guides/phases/README.md
Normal file
@@ -0,0 +1,125 @@
|
||||
# Introduction
|
||||
|
||||
Declarative nature and support for extensibility of FreeIPA WebUI
|
||||
creates demand for structural initialization of the application. Phase
|
||||
components were created to solve this tasks.
|
||||
|
||||
## Components
|
||||
|
||||
Phases functionality consists of the two components/modules:
|
||||
`./_base/PhaseController` and `./phases`.
|
||||
|
||||
### PhaseController
|
||||
|
||||
Phase controller basically does all the work. It provides functionality for running and
|
||||
changing phases.
|
||||
|
||||
- define phases
|
||||
- controls instantiation of PhaseController
|
||||
- provides API for phase task registration
|
||||
|
||||
## Phase
|
||||
|
||||
Phase is a part of application runtime. Most of the phases are related
|
||||
to load and initialization process.
|
||||
|
||||
### Tasks
|
||||
|
||||
Phase consists of task. Each task can have a priority set, 10 is
|
||||
default. Task can by synchronous or asynchronous. When phase is started
|
||||
it runs all tasks sequentially sorted by priority. If the task is
|
||||
synchronous it waits for its completion before starting another task.
|
||||
Asynchronous task are just started. Phase is completed when all task
|
||||
finishes - waits for all asynchronous tasks.
|
||||
|
||||
Asynchronous task is a task which handler returns a promise.
|
||||
|
||||
### Phase task registration
|
||||
|
||||
Modules should register a phase task through `./phases` module.
|
||||
|
||||
phases.on('phase_name', handler, priority);
|
||||
|
||||
## Descriptions of FreeIPA phases
|
||||
|
||||
FreeIPA has following phases:
|
||||
|
||||
- customization
|
||||
- registration
|
||||
- init
|
||||
- metadata
|
||||
- post-metadata
|
||||
- profile
|
||||
- runtime
|
||||
- shutdown
|
||||
|
||||
### Resource load implicit phase
|
||||
|
||||
Each application needs to load its resources. This mainly means
|
||||
JavaScript files but also CSS files, images and fonts. Phases modules
|
||||
are part of that data and therefore are no initialized until loaded.
|
||||
Hence resources load is an implicit and a first phase.
|
||||
|
||||
FreeIPA Web UI uses AMD modules therefore resources have to be either
|
||||
declared in main HTML file’s header or in modules specification. The
|
||||
former one is obsolete and should be replace by the latter.
|
||||
|
||||
The main HTML file should require an application module. Application
|
||||
module is a module that should have dependencies required for the
|
||||
application to run. By specifying these dependencies we may control
|
||||
which modules/plugins and their dependencies get loaded. Currently it’s
|
||||
`freeipa/app`.
|
||||
|
||||
### Alternation phase
|
||||
|
||||
Serves for altering components specifications. This phase should be used
|
||||
only by plugins and configurable modules. Core modules shouldn’t use
|
||||
this phase.
|
||||
|
||||
### Registration phase
|
||||
|
||||
Modules should register widget, facet, entity final construct
|
||||
specifications.
|
||||
|
||||
### Init phase
|
||||
|
||||
Serves for initialization of core UI components: application controller,
|
||||
router, menu, application widget …
|
||||
|
||||
### Metadata phase
|
||||
|
||||
Metadata, configuration and user specific information should be loaded
|
||||
in this phase.
|
||||
|
||||
### Runtime phase
|
||||
|
||||
Phase where plugins can expect that application is completely
|
||||
initialized. Most of user interaction will happen here.
|
||||
|
||||
### Shutdown phase
|
||||
|
||||
Destroys session. Currently redirects to other page. In future may
|
||||
destroy all facets and entities and just show basic UI again.
|
||||
|
||||
## Adding a new phase
|
||||
|
||||
One can add a new phase at any time. It will be executed only if it’s
|
||||
position is after currently running phase.
|
||||
|
||||
|
||||
define(['./phases'], function(phases) {
|
||||
|
||||
// add 'new-phase' on the last position
|
||||
phases.add('new-phase');
|
||||
|
||||
// add 'pre-runtime' phase before 'runtime' phase
|
||||
phases.add('pre-runtime', { before: 'runtime' });
|
||||
|
||||
// add 'post-runtime' phase after 'runtime' phase
|
||||
phases.add('post-runtime', { after: 'runtime' });
|
||||
|
||||
// add '7th-phase' phase on exact position (whatever it is)
|
||||
// or on the last, if position is bigger than number of currently
|
||||
// registered phases
|
||||
phases.add('7th-phase', { position: 7 });
|
||||
});
|
||||
BIN
install/ui/doc/guides/phases/icon.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
73
install/ui/doc/guides/plugins/README.md
Normal file
@@ -0,0 +1,73 @@
|
||||
# Plugins
|
||||
|
||||
This document tries to describe new plugin infrastructure of FreeIPA Web UI.
|
||||
|
||||
## Plugin location and structure
|
||||
|
||||
Plugin is registered by creating a directory `$plugin_name` in `/usr/share/ipa/ui/js/plugins/`. `$plugin_name` is name of the plugin, it has to start with a letter and may contain only ASCII alphanumeric character, underscore _ and dash - .
|
||||
|
||||
Plugin folder must contain `$plugin_name.js` file. It's have to be either AMD module or a layer built by Dojo builder.
|
||||
|
||||
## Plugin index - registration
|
||||
|
||||
Web UI consist only of static files. It can't examine plugins directory during runtime. Therefore it needs some configuration file with listed plugins to load. We can call this file a plugin index. It's located in `/usr/share/ipa/ui/js/freeipa/plugins.js`.
|
||||
|
||||
### Structure
|
||||
|
||||
Plugin index is a simple AMD module with array `plugins` containing plugin names.
|
||||
|
||||
define([], function() {
|
||||
return [
|
||||
'module-1',
|
||||
'module-2'
|
||||
];
|
||||
});
|
||||
|
||||
### Index regeneration
|
||||
|
||||
Plugin index is dynamically created by wsgi script: `/usr/share/ipa/wsgi/plugins.py`. Httpd rewrite rule hides this fact and makes sure that it can be access as at it's location.
|
||||
|
||||
## Load
|
||||
|
||||
Plugins have to be loaded before registration phase, that means right after implicit resource load phase. First we must load index and then plugins.
|
||||
|
||||
### Loading index
|
||||
|
||||
Plugin index is part of `freeipa` package of FreeIPA Web UI, therefore the easiest would be to add `./plugins` as a dependency in `./app` module. But that would be wrong. `./app` module is part of freeipa layer build and it would be included - it couldn't be updated later. Hence, it must be loaded dynamically.
|
||||
|
||||
### Loading plugins
|
||||
|
||||
From AMD's perspective plugin is a package. Loader can't load it because it doesn't know where it is located, so each plugin needs to be registered in a loader with:
|
||||
|
||||
{
|
||||
name: '$plugin_name',
|
||||
path: 'plugins/$plugin_name'
|
||||
}
|
||||
|
||||
Then, plugin may be dynamically loaded. Application should proceed to registration phase after all plugins are loaded.
|
||||
|
||||
## Extending UI
|
||||
|
||||
At this point plugins can do whatever they want to do. In future we should provide more or less stable plugin API. Consumers of the API would care only about the API and not the underlying functionality. It would allow to create some internal changes without breaking simple plugins.
|
||||
|
||||
There are 3 main extension use cases:
|
||||
|
||||
* adding completely new page
|
||||
* adding new UI fields to existing pages
|
||||
* by modifying page spec
|
||||
* by extending already created pages
|
||||
|
||||
Both cases of adding new UI fields are not straightforward.
|
||||
|
||||
### Modifying page spec
|
||||
|
||||
Spec of most pages are enclosed in function calls which are usually evaluated right before creating a page. All spec should be moved to static property of corresponding module. Spec should be completely declarative. It should no contain any calls dependent on already initialized app. Extensions should extend the spec at `alternation` phase.
|
||||
|
||||
### Modifying already created pages
|
||||
|
||||
Facets don't support content recreation. They expects that `create(container)` method is called only once. New rules for facets and widgets have to be set to support extensibility:
|
||||
|
||||
* Web UI components should not be directly depend on HTML representation of other components (widget/facets)
|
||||
* each widget should support destroying and recreating its HTML representation
|
||||
* widget should not modify it's container
|
||||
* communication should be done mostly by events and topics (global event)
|
||||
304
install/ui/doc/guides/registries/README.md
Normal file
@@ -0,0 +1,304 @@
|
||||
# Components registration and build
|
||||
|
||||
This document contains design of component build system.
|
||||
|
||||
## Build system
|
||||
|
||||
Build system is the core of Web UI. Its task is to create instance from components definition (spec object).
|
||||
|
||||
The system consists of:
|
||||
|
||||
* registries
|
||||
* builders
|
||||
* component classes for registration
|
||||
* nested component specification
|
||||
|
||||
## Registries
|
||||
|
||||
We can have two types of registries:
|
||||
|
||||
* constructor registries
|
||||
* singleton registries
|
||||
|
||||
|
||||
## Constructor registry
|
||||
|
||||
Constructor registry holds information required for building an object. It's basically a map with component type as a key and `{factory, constructor, default specification}` as value. For successful registration one must provide a component type, and factory or a constructor. Default specification object is not required.
|
||||
|
||||
Both constructors and factories should not expect more than one parameter. The only param which they will receive is a specification object.
|
||||
|
||||
## Singleton registry
|
||||
|
||||
Singleton registry is a object which stores `[component_name, instance]` pairs. The difference between singleton registry and normal JavaScript object is that the registry is supposed to create the instance if it doesn't exist when requested.
|
||||
|
||||
To accomplish such task registry has to have a factory or a component constructor and a specification object available. This values might be stored in a constructor registry. Therefore singleton registry might internally contain constructor registries.
|
||||
|
||||
## Build
|
||||
|
||||
The build process has a general rule: Each component handles the build of its children. It's expected that the component knows what type of children it's supposed to contain and therefore it knows how to build them. Usually that means that it knows which builder to use.
|
||||
|
||||
To allow smooth transition, we need to support building object by using various methods: registry, factory and constructor. When using registry, we may also want to allow applying some defaults. Therefore spec object may contain following build related properties to tell how it should be build. Each build property should have `$` prefix to distinguish it from spec properties.
|
||||
|
||||
* `$type`: string - component type
|
||||
* `$factory`: factory function which expects this spec. obj. as param
|
||||
* `$ctor`: constructor function which expects this spec. obj. as param
|
||||
* `$mixim_spec`: boolean indicating that multiple specification objects can be mixed in.
|
||||
* `$pre_ops`: operations which modify spec before instantiation
|
||||
* `$post_ops`: operations which modify object after instantiation
|
||||
|
||||
|
||||
## Builder
|
||||
|
||||
We can see that the build process is moderately complex and therefore it should not be done by parent components. It's a task for a builder.
|
||||
|
||||
Additionally builder must deal with following conditions:
|
||||
|
||||
* to have or to not have associated constructor registry
|
||||
* handle only string or a function as a spec object
|
||||
* handle already built object
|
||||
* handle array of spec
|
||||
|
||||
**Builders tasks**
|
||||
|
||||
1. get factory or constructor function
|
||||
2. make copy of spec object
|
||||
3. remove reserved properties from spec object
|
||||
4. call factory|constructor with a copy of spec object as param
|
||||
5. return built instance
|
||||
|
||||
### Get factory or constructor function
|
||||
|
||||
The flow depends on:
|
||||
|
||||
* type of spec object (object, string, function)
|
||||
* presence of Constructor registry
|
||||
|
||||
If more than one specification is defined (type, constructor, factory) the order of precedence is:
|
||||
|
||||
1. factory
|
||||
2. constructor
|
||||
3. type (registry contain spec)
|
||||
a. factory
|
||||
b. constructor
|
||||
|
||||
|
||||
#### Distinguishing between methods
|
||||
|
||||
Methods are distinguished by type of spec object or it's properties.
|
||||
|
||||
**Type**
|
||||
|
||||
* spec is string
|
||||
* spec is Object and `spec.type` is string
|
||||
* spec in registry is evaluated the same way except that it shouldn't contain `type` property.
|
||||
|
||||
**Factory**
|
||||
|
||||
* spec is function
|
||||
* spec is Object and spec.factory is function
|
||||
|
||||
**Constructor**
|
||||
|
||||
* spec is function and with extend method (indicates that it's dojo class)
|
||||
* spec is Object and `spec.constructor` is function
|
||||
|
||||
Builder must have a reference to Constructor registry for `Type` method to be able to build the object, otherwise it doesn't have constructor or factory available, unless builder has defaults set.
|
||||
|
||||
### Builder defaults
|
||||
|
||||
Builder can have default values for factory or constructor. It's useful for builders which specializes in building one object type. Ie. widget builder might have `text_widget` as a default.
|
||||
|
||||
### String modes
|
||||
|
||||
Builder supports two behaviors when spec is a string: `type` and `property`.
|
||||
|
||||
**type**
|
||||
|
||||
String specifies object type - default
|
||||
|
||||
**property**
|
||||
|
||||
String represents a value of spec property. Spec property is specified by `string_property` builder property. One has to make sure that builder has default factory or a constructor set when using this mode.
|
||||
|
||||
### Conflicts of specification objects
|
||||
|
||||
When spec is an Object and Constructor registry has also defined default specification object, only the supplied spec is used. This behavior might be overridden by setting `mixim_spec` attribute of supplied spec to `true`. In such case supplied spec is mixed in a default spec. Setting `mixim_spec` in default spec doesn't have any effect, it's ignored.
|
||||
|
||||
### Spec modification - pre_ops
|
||||
|
||||
pre_ops' purpose is to modify spec object. Pre_ops can be specified at locations ordered by execution order as follows:
|
||||
|
||||
* builder: applies to all objects
|
||||
* construct registry: applies to objects with given type
|
||||
* spec: applies only to the one object
|
||||
|
||||
#### Types of operations
|
||||
|
||||
Pre_op can be function, object or diff object.
|
||||
|
||||
**Function**
|
||||
|
||||
Takes two params: `spec` and `context`. Has to return `spec`. It can replace the spec by other object but it has make sure that it returns something. Returned spec will replace the previous one.
|
||||
|
||||
**Object**
|
||||
|
||||
Plain object is mixed in into spec object
|
||||
|
||||
**Diff object**
|
||||
|
||||
Diff object is applied on spec by `spec_mod` utility. Control properties are removed and then remains are mixed in into spec as if it was just plain object.
|
||||
|
||||
### Object modification - post_ops
|
||||
|
||||
post_ops are similar to pre_ops but their purpose is to modify the created object. Post_ops can only be functions and objects, no diff objects. Functions receive `obj`, `spec` and `context` as params and have to return `obj`.
|
||||
|
||||
|
||||
## Global registries for builders and registries
|
||||
|
||||
Web UI has several object types: entities, facets, widgets, fields, actions, validators, entity policies, facet policies. Each object type requires its builder, construct registry and some also a singleton registry. Two umbrella pseudo-registries were created to avoid creation of twice as many modules and also to allow redefinition of the registries: `reg` and `builder`.
|
||||
|
||||
**`reg`**
|
||||
is a registry of construct registries or singleton registries. Difference between normal registry is that one can access its registries directly.
|
||||
|
||||
**`builder`**
|
||||
is a registry of builders. Each object type may have its own builder with different defaults, pre_ops, post_ops and construct registry. Construct registry is usually the one registered in `reg` under the same type name.
|
||||
Builder also serves as general build interface so one don't have to obtain the builder first. It's interface is:
|
||||
|
||||
var new_obj = builder.build(object_type, spec, context, overrides);
|
||||
|
||||
`builder` contains general builder - a builder without any defaults. It can be used when there is a need to use builder logic but it doesn't require any defaults:
|
||||
|
||||
var new_obj = builder.build('', spec, context, overrides);
|
||||
|
||||
## Examples
|
||||
|
||||
For demonstration purposes examples will use action as a framework object
|
||||
|
||||
### Registration of builder and registry to global registries
|
||||
|
||||
|
||||
// './facet_registry.js'
|
||||
define(['./builder', './reg'], function(builder, reg) {
|
||||
|
||||
var exp = {};
|
||||
|
||||
var exp.action = function(spec) {
|
||||
//fac definition
|
||||
};
|
||||
|
||||
// Registration of Action builder and registry into global registries
|
||||
// ./builder can create new builder just by calling `get` with
|
||||
// not-yet-registered type
|
||||
exp.action_builder = builder.get('action');
|
||||
|
||||
// setting default factory
|
||||
exp.action_builder.factory = exp.action;
|
||||
|
||||
// registration of construct registry - builder by default creates its
|
||||
// own construct registry
|
||||
reg.set('action', exp.action_builder.registry);
|
||||
|
||||
return exp;
|
||||
});
|
||||
|
||||
|
||||
#### Singleton registry
|
||||
|
||||
Some object types, like entities, are singletons. It's type corresponds to instance. For these types the registration is slightly different:
|
||||
|
||||
define(['./_base/Singleton_registry','./builder', './reg'],
|
||||
function(Singleton_registry, builder, reg) {
|
||||
|
||||
var exp = {};
|
||||
// module definition ...
|
||||
|
||||
// registries definition
|
||||
var registry = new Singleton_registry();
|
||||
reg.set('entity', registry);
|
||||
builder.set('entity', registry.builder);
|
||||
registry.builder.factory = exp.entity;
|
||||
|
||||
return exp;
|
||||
});
|
||||
|
||||
|
||||
### New action registration
|
||||
|
||||
define([
|
||||
'./phases',
|
||||
'./reg'
|
||||
], function(phases, reg) {
|
||||
var exp = {};
|
||||
exp.custom_action = function(spec) { /* definition */ };
|
||||
|
||||
exp.registry = function() {
|
||||
var a = reg.action; // action construct registry
|
||||
a.register('custom', exp.custom_action);
|
||||
};
|
||||
|
||||
// register in registration phase
|
||||
phases.on('registration', exp.registry);
|
||||
return exp;
|
||||
});
|
||||
|
||||
|
||||
### Build of new action
|
||||
|
||||
define([
|
||||
'./builder'
|
||||
], function(builder) {
|
||||
var action = builder.build('action', {
|
||||
$type = 'custom'
|
||||
/* other spec properties */
|
||||
}); // no context and no overrides
|
||||
|
||||
// simplified:
|
||||
action = builder.build('action', 'custom');
|
||||
});
|
||||
|
||||
|
||||
### Raw usage of Singleton registry without using global registries
|
||||
|
||||
It's only example. One should use global registries for facets and entities.
|
||||
|
||||
#### Definition
|
||||
|
||||
// './facet_registry.js'
|
||||
define(['./_base/Singleton_registry'], function(Singleton_registry) {
|
||||
|
||||
return new Singleton_registry();
|
||||
});
|
||||
|
||||
#### Usage
|
||||
|
||||
define(['./facet_registry', './ipa'], function(registry, IPA) {
|
||||
|
||||
var my_facet = function(spec) {
|
||||
|
||||
spec = spec || {};
|
||||
|
||||
var that = IPA.facet(spec);
|
||||
return that;
|
||||
};
|
||||
|
||||
// optional, but for facets preferable
|
||||
var default_spec = { /* some properties */ };
|
||||
|
||||
// register factory as construct specification
|
||||
registry.register('foo_facet', my_facet, default_spec);
|
||||
|
||||
|
||||
// we may define other instance with the same factory
|
||||
var other_spec = { /* other properties */ };
|
||||
|
||||
// register with spec object
|
||||
registry.register({
|
||||
type: 'other_facet',
|
||||
factory: my_facet,
|
||||
spec: other_spec
|
||||
});
|
||||
|
||||
// obtaining instance
|
||||
var foo_facet = registry.get('foo_facet');
|
||||
var other_facet = registry.get('other_facet');
|
||||
});
|
||||
BIN
install/ui/favicon.ico
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
23
install/ui/ie.css
Normal file
@@ -0,0 +1,23 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvobornik@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2012 Red Hat
|
||||
*
|
||||
* Styles for IE only
|
||||
*/
|
||||
|
||||
.aci-attribute-table-container {
|
||||
overflow: auto !important;
|
||||
overflow-x: hidden !important;
|
||||
width: 348px !important;
|
||||
}
|
||||
|
||||
.aci-attribute-table {
|
||||
float: left;
|
||||
margin: 0;
|
||||
width: 332px !important;
|
||||
}
|
||||
|
||||
.aci-attribute-table tbody {
|
||||
height: auto !important;
|
||||
}
|
||||
15
install/ui/images/Makefile.am
Normal file
@@ -0,0 +1,15 @@
|
||||
NULL =
|
||||
|
||||
appdir = $(IPA_DATA_DIR)/ui/images
|
||||
app_DATA = \
|
||||
facet-tab-off.png \
|
||||
facet-tab-on.png \
|
||||
header-logo.png \
|
||||
login-screen-background.jpg \
|
||||
login-screen-logo.png \
|
||||
product-name.png \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(app_DATA) \
|
||||
$(NULL)
|
||||
617
install/ui/images/Makefile.in
Normal file
@@ -0,0 +1,617 @@
|
||||
# Makefile.in generated by automake 1.15.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2017 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = { \
|
||||
if test -z '$(MAKELEVEL)'; then \
|
||||
false; \
|
||||
elif test -n '$(MAKE_HOST)'; then \
|
||||
true; \
|
||||
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
|
||||
true; \
|
||||
else \
|
||||
false; \
|
||||
fi; \
|
||||
}
|
||||
am__make_running_with_option = \
|
||||
case $${target_option-} in \
|
||||
?) ;; \
|
||||
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||
"target option '$${target_option-}' specified" >&2; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
has_opt=no; \
|
||||
sane_makeflags=$$MAKEFLAGS; \
|
||||
if $(am__is_gnu_make); then \
|
||||
sane_makeflags=$$MFLAGS; \
|
||||
else \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
bs=\\; \
|
||||
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||
esac; \
|
||||
fi; \
|
||||
skip_next=no; \
|
||||
strip_trailopt () \
|
||||
{ \
|
||||
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||
}; \
|
||||
for flg in $$sane_makeflags; do \
|
||||
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||
case $$flg in \
|
||||
*=*|--*) continue;; \
|
||||
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||
-*I?*) strip_trailopt 'I';; \
|
||||
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||
-*O?*) strip_trailopt 'O';; \
|
||||
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||
-*l?*) strip_trailopt 'l';; \
|
||||
-[dEDm]) skip_next=yes;; \
|
||||
-[JT]) skip_next=yes;; \
|
||||
esac; \
|
||||
case $$flg in \
|
||||
*$$target_option*) has_opt=yes; break;; \
|
||||
esac; \
|
||||
done; \
|
||||
test $$has_opt = yes
|
||||
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
||||
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
subdir = install/ui/images
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
|
||||
$(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
|
||||
$(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
|
||||
$(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
|
||||
$(top_srcdir)/m4/progtest.m4 $(top_srcdir)/VERSION.m4 \
|
||||
$(top_srcdir)/server.m4 $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
AM_V_P = $(am__v_P_@AM_V@)
|
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||
am__v_P_0 = false
|
||||
am__v_P_1 = :
|
||||
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||
am__v_GEN_0 = @echo " GEN " $@;
|
||||
am__v_GEN_1 =
|
||||
AM_V_at = $(am__v_at_@AM_V@)
|
||||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||
am__v_at_0 = @
|
||||
am__v_at_1 =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
|
||||
am__install_max = 40
|
||||
am__nobase_strip_setup = \
|
||||
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
|
||||
am__nobase_strip = \
|
||||
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
|
||||
am__nobase_list = $(am__nobase_strip_setup); \
|
||||
for p in $$list; do echo "$$p $$p"; done | \
|
||||
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
|
||||
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
|
||||
if (++n[$$2] == $(am__install_max)) \
|
||||
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
|
||||
END { for (dir in files) print dir, files[dir] }'
|
||||
am__base_list = \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
||||
am__uninstall_files_from_dir = { \
|
||||
test -z "$$files" \
|
||||
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|
||||
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
|
||||
$(am__cd) "$$dir" && rm -f $$files; }; \
|
||||
}
|
||||
am__installdirs = "$(DESTDIR)$(appdir)"
|
||||
DATA = $(app_DATA)
|
||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
||||
am__DIST_COMMON = $(srcdir)/Makefile.in
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMTAR = @AMTAR@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
API_VERSION = @API_VERSION@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CMOCKA_CFLAGS = @CMOCKA_CFLAGS@
|
||||
CMOCKA_LIBS = @CMOCKA_LIBS@
|
||||
CONFIG_STATUS = @CONFIG_STATUS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CRYPTO_CFLAGS = @CRYPTO_CFLAGS@
|
||||
CRYPTO_LIBS = @CRYPTO_LIBS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DATA_VERSION = @DATA_VERSION@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DIRSRV_CFLAGS = @DIRSRV_CFLAGS@
|
||||
DIRSRV_LIBS = @DIRSRV_LIBS@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
GETTEXT_DOMAIN = @GETTEXT_DOMAIN@
|
||||
GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
|
||||
GIT_BRANCH = @GIT_BRANCH@
|
||||
GIT_VERSION = @GIT_VERSION@
|
||||
GMSGFMT = @GMSGFMT@
|
||||
GMSGFMT_015 = @GMSGFMT_015@
|
||||
GREP = @GREP@
|
||||
INI_CFLAGS = @INI_CFLAGS@
|
||||
INI_LIBS = @INI_LIBS@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
INTLLIBS = @INTLLIBS@
|
||||
INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
|
||||
IPAPLATFORM = @IPAPLATFORM@
|
||||
IPA_DATA_DIR = @IPA_DATA_DIR@
|
||||
IPA_SYSCONF_DIR = @IPA_SYSCONF_DIR@
|
||||
JSLINT = @JSLINT@
|
||||
KRAD_LIBS = @KRAD_LIBS@
|
||||
KRB5KDC_SERVICE = @KRB5KDC_SERVICE@
|
||||
KRB5_CFLAGS = @KRB5_CFLAGS@
|
||||
KRB5_LIBS = @KRB5_LIBS@
|
||||
LD = @LD@
|
||||
LDAP_CFLAGS = @LDAP_CFLAGS@
|
||||
LDAP_LIBS = @LDAP_LIBS@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBICONV = @LIBICONV@
|
||||
LIBINTL = @LIBINTL@
|
||||
LIBINTL_LIBS = @LIBINTL_LIBS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBPDB_NAME = @LIBPDB_NAME@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBVERTO_CFLAGS = @LIBVERTO_CFLAGS@
|
||||
LIBVERTO_LIBS = @LIBVERTO_LIBS@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBICONV = @LTLIBICONV@
|
||||
LTLIBINTL = @LTLIBINTL@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
MK_ASSIGN = @MK_ASSIGN@
|
||||
MK_ELSE = @MK_ELSE@
|
||||
MK_ENDIF = @MK_ENDIF@
|
||||
MK_IFEQ = @MK_IFEQ@
|
||||
MSGATTRIB = @MSGATTRIB@
|
||||
MSGFMT = @MSGFMT@
|
||||
MSGFMT_015 = @MSGFMT_015@
|
||||
MSGMERGE = @MSGMERGE@
|
||||
NAMED_GROUP = @NAMED_GROUP@
|
||||
NDRNBT_CFLAGS = @NDRNBT_CFLAGS@
|
||||
NDRNBT_LIBS = @NDRNBT_LIBS@
|
||||
NDRPAC_CFLAGS = @NDRPAC_CFLAGS@
|
||||
NDRPAC_LIBS = @NDRPAC_LIBS@
|
||||
NDR_CFLAGS = @NDR_CFLAGS@
|
||||
NDR_LIBS = @NDR_LIBS@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
NSPR_CFLAGS = @NSPR_CFLAGS@
|
||||
NSPR_LIBS = @NSPR_LIBS@
|
||||
NSS_CFLAGS = @NSS_CFLAGS@
|
||||
NSS_LIBS = @NSS_LIBS@
|
||||
NUM_VERSION = @NUM_VERSION@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
ODS_USER = @ODS_USER@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
|
||||
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
|
||||
POPT_CFLAGS = @POPT_CFLAGS@
|
||||
POPT_LIBS = @POPT_LIBS@
|
||||
POSUB = @POSUB@
|
||||
PYLINT = @PYLINT@
|
||||
PYTHON = @PYTHON@
|
||||
PYTHON2 = @PYTHON2@
|
||||
PYTHON3 = @PYTHON3@
|
||||
PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
|
||||
PYTHON_INSTALL_EXTRA_OPTIONS = @PYTHON_INSTALL_EXTRA_OPTIONS@
|
||||
PYTHON_PLATFORM = @PYTHON_PLATFORM@
|
||||
PYTHON_PREFIX = @PYTHON_PREFIX@
|
||||
PYTHON_VERSION = @PYTHON_VERSION@
|
||||
RANLIB = @RANLIB@
|
||||
SAMBA40EXTRA_LIBPATH = @SAMBA40EXTRA_LIBPATH@
|
||||
SAMBAUTIL_CFLAGS = @SAMBAUTIL_CFLAGS@
|
||||
SAMBAUTIL_LIBS = @SAMBAUTIL_LIBS@
|
||||
SASL_CFLAGS = @SASL_CFLAGS@
|
||||
SASL_LIBS = @SASL_LIBS@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
SSSCERTMAP_CFLAGS = @SSSCERTMAP_CFLAGS@
|
||||
SSSCERTMAP_LIBS = @SSSCERTMAP_LIBS@
|
||||
SSSIDMAP_CFLAGS = @SSSIDMAP_CFLAGS@
|
||||
SSSIDMAP_LIBS = @SSSIDMAP_LIBS@
|
||||
SSSNSSIDMAP_CFLAGS = @SSSNSSIDMAP_CFLAGS@
|
||||
SSSNSSIDMAP_LIBS = @SSSNSSIDMAP_LIBS@
|
||||
STRIP = @STRIP@
|
||||
TALLOC_CFLAGS = @TALLOC_CFLAGS@
|
||||
TALLOC_LIBS = @TALLOC_LIBS@
|
||||
TEVENT_CFLAGS = @TEVENT_CFLAGS@
|
||||
TEVENT_LIBS = @TEVENT_LIBS@
|
||||
UNISTRING_LIBS = @UNISTRING_LIBS@
|
||||
UNLINK = @UNLINK@
|
||||
USE_NLS = @USE_NLS@
|
||||
UUID_CFLAGS = @UUID_CFLAGS@
|
||||
UUID_LIBS = @UUID_LIBS@
|
||||
VENDOR_SUFFIX = @VENDOR_SUFFIX@
|
||||
VERSION = @VERSION@
|
||||
XGETTEXT = @XGETTEXT@
|
||||
XGETTEXT_015 = @XGETTEXT_015@
|
||||
XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
|
||||
XMLRPC_CFLAGS = @XMLRPC_CFLAGS@
|
||||
XMLRPC_LIBS = @XMLRPC_LIBS@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
i18ntests = @i18ntests@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
krb5rundir = @krb5rundir@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
pkgpyexecdir = @pkgpyexecdir@
|
||||
pkgpythondir = @pkgpythondir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
pyexecdir = @pyexecdir@
|
||||
pythondir = @pythondir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
sysconfenvdir = @sysconfenvdir@
|
||||
systemdsystemunitdir = @systemdsystemunitdir@
|
||||
systemdtmpfilesdir = @systemdtmpfilesdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
NULL =
|
||||
appdir = $(IPA_DATA_DIR)/ui/images
|
||||
app_DATA = \
|
||||
facet-tab-off.png \
|
||||
facet-tab-on.png \
|
||||
header-logo.png \
|
||||
login-screen-background.jpg \
|
||||
login-screen-logo.png \
|
||||
product-name.png \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(app_DATA) \
|
||||
$(NULL)
|
||||
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign install/ui/images/Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign install/ui/images/Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
install-appDATA: $(app_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
@list='$(app_DATA)'; test -n "$(appdir)" || list=; \
|
||||
if test -n "$$list"; then \
|
||||
echo " $(MKDIR_P) '$(DESTDIR)$(appdir)'"; \
|
||||
$(MKDIR_P) "$(DESTDIR)$(appdir)" || exit 1; \
|
||||
fi; \
|
||||
for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
echo "$$d$$p"; \
|
||||
done | $(am__base_list) | \
|
||||
while read files; do \
|
||||
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(appdir)'"; \
|
||||
$(INSTALL_DATA) $$files "$(DESTDIR)$(appdir)" || exit $$?; \
|
||||
done
|
||||
|
||||
uninstall-appDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(app_DATA)'; test -n "$(appdir)" || list=; \
|
||||
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
||||
dir='$(DESTDIR)$(appdir)'; $(am__uninstall_files_from_dir)
|
||||
tags TAGS:
|
||||
|
||||
ctags CTAGS:
|
||||
|
||||
cscope cscopelist:
|
||||
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(DATA)
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(appdir)"; do \
|
||||
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
||||
done
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
if test -z '$(STRIP)'; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
install; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||
fi
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-appDATA
|
||||
|
||||
install-dvi: install-dvi-am
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-am
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-am
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-am
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-appDATA
|
||||
|
||||
.MAKE: install-am install-strip
|
||||
|
||||
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
|
||||
cscopelist-am ctags-am distclean distclean-generic \
|
||||
distclean-libtool distdir dvi dvi-am html html-am info info-am \
|
||||
install install-am install-appDATA install-data \
|
||||
install-data-am install-dvi install-dvi-am install-exec \
|
||||
install-exec-am install-html install-html-am install-info \
|
||||
install-info-am install-man install-pdf install-pdf-am \
|
||||
install-ps install-ps-am install-strip installcheck \
|
||||
installcheck-am installdirs maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-generic \
|
||||
mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \
|
||||
uninstall-am uninstall-appDATA
|
||||
|
||||
.PRECIOUS: Makefile
|
||||
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
BIN
install/ui/images/facet-tab-off.png
Normal file
|
After Width: | Height: | Size: 228 B |
BIN
install/ui/images/facet-tab-on.png
Normal file
|
After Width: | Height: | Size: 192 B |
BIN
install/ui/images/header-logo.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
install/ui/images/login-screen-background.jpg
Normal file
|
After Width: | Height: | Size: 92 KiB |
BIN
install/ui/images/login-screen-logo.png
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
install/ui/images/product-name.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
75
install/ui/index.html
Normal file
@@ -0,0 +1,75 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>IPA: Identity Policy Audit</title>
|
||||
|
||||
<!--[if IE]>
|
||||
<meta id="ie-detector">
|
||||
<![endif]-->
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<script type="text/javascript" src="js/libs/loader.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
var dojoConfig = {
|
||||
baseUrl: "js",
|
||||
has: {
|
||||
'dojo-firebug': false,
|
||||
'dojo-debug-messages': true
|
||||
},
|
||||
parseOnLoad: false,
|
||||
async: true,
|
||||
packages: [
|
||||
{
|
||||
name: 'libs',
|
||||
location: 'libs'
|
||||
},
|
||||
{
|
||||
name:'dojo',
|
||||
location:'dojo'
|
||||
},
|
||||
{
|
||||
name: 'freeipa',
|
||||
location: 'freeipa'
|
||||
}
|
||||
],
|
||||
cacheBust: ipa_loader.num_version || ""
|
||||
};
|
||||
|
||||
(function() {
|
||||
var ie = !!document.getElementById('ie-detector');
|
||||
var styles = [
|
||||
'css/patternfly.css',
|
||||
'css/bootstrap-datepicker3.min.css',
|
||||
'css/ipa.css',
|
||||
'ipa.css'
|
||||
];
|
||||
if (ie) styles.push('ie.css');
|
||||
var icons = ['favicon.ico'];
|
||||
var scripts = [
|
||||
'js/libs/json2.js',
|
||||
'js/libs/jquery.js',
|
||||
'js/libs/bootstrap.js',
|
||||
'js/libs/bootstrap-datepicker.js',
|
||||
'js/libs/patternfly.js',
|
||||
'js/libs/jquery.ordered-map.js',
|
||||
'js/libs/browser.js',
|
||||
'js/dojo/dojo.js',
|
||||
'js/libs/qrcode.js'
|
||||
];
|
||||
ipa_loader.scripts(scripts, function() {
|
||||
require(['freeipa/app'], function(app){ app.run(); });
|
||||
});
|
||||
ipa_loader.styles(styles);
|
||||
ipa_loader.icons(icons);
|
||||
|
||||
})();
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<noscript>This application requires JavaScript enabled.</noscript>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
561
install/ui/ipa.css
Normal file
@@ -0,0 +1,561 @@
|
||||
|
||||
/* Authors:
|
||||
* Pavel Zuna <pzuna@redhat.com>
|
||||
* Adam Young <ayoung@redhat.com>
|
||||
* Endi Sukma Dewata <edewata@redhat.com>
|
||||
* Kyle Baker <kybaker@redhat.com>
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2010 Red Hat
|
||||
*/
|
||||
|
||||
|
||||
html {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
overflow: auto;
|
||||
position: relative;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
textarea[readonly] {
|
||||
color: Gray;
|
||||
}
|
||||
|
||||
/* ---- Container ---- */
|
||||
|
||||
.app-container {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* ---- Password expiration */
|
||||
|
||||
.header-passwordexpires {
|
||||
color: red;
|
||||
font-weight: bold;
|
||||
padding: 7px 10px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
/* ---- Notification area ---- */
|
||||
|
||||
.notification-area {
|
||||
position: fixed;
|
||||
left: 50%;
|
||||
top: 15px;
|
||||
}
|
||||
|
||||
.notification-area div {
|
||||
position: relative;
|
||||
left: -50%;
|
||||
z-index: 20;
|
||||
word-wrap: break-word;
|
||||
max-width: 500px;
|
||||
}
|
||||
|
||||
/* ---- Facet ---- */
|
||||
|
||||
.facet {
|
||||
position: relative;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.active-facet {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.facet-title {
|
||||
color: gray;
|
||||
}
|
||||
|
||||
.facet-title.no-pkey {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.facet-pkey {
|
||||
color:black;
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
.breadcrumb {
|
||||
padding: 0;
|
||||
margin: 5px 0 0 0;
|
||||
}
|
||||
|
||||
.breadcrumb a {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* ---- Facet Tabs ---- */
|
||||
|
||||
.facet-group {
|
||||
float: left;
|
||||
margin-right: 1em;
|
||||
}
|
||||
|
||||
.facet-group-label {
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.facet-tab {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.facet-tab li {
|
||||
display: inline-block;
|
||||
padding-right: 1px;
|
||||
}
|
||||
|
||||
.facet-tab li a {
|
||||
background-color: #dedbde;
|
||||
border-left: 1px solid #c9c3ba;
|
||||
border-right: 1px solid #c9c3ba;
|
||||
margin: 0 0 0;
|
||||
padding: 8px 16px 4px 16px;
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
line-height: 19px;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
.facet-tab li a.selected {
|
||||
color: #6C6F73;
|
||||
background-color: #f1f0ee;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.facet-tab li.settings {
|
||||
margin-left:1em; margin-right:1em;
|
||||
}
|
||||
|
||||
|
||||
/* Facet tabs coloring */
|
||||
|
||||
.facet-group li a {
|
||||
background-image: url(images/facet-tab-off.png);
|
||||
background-repeat: repeat-x;
|
||||
background-position: 0px -33px;
|
||||
}
|
||||
|
||||
.facet-group li a.selected {
|
||||
background-image: url(images/facet-tab-on.png);
|
||||
}
|
||||
|
||||
div[name=settings].facet-group li a {
|
||||
background-position: 0px -66px;
|
||||
}
|
||||
|
||||
.facet-group li[name^=member] a,
|
||||
.facet-group li[name^=managedby] a {
|
||||
background-position: 0px 0px;
|
||||
}
|
||||
|
||||
.facet-group li[name^=memberof] a {
|
||||
background-position: 0px -33px;
|
||||
}
|
||||
|
||||
/* ---- Facet Controls ---- */
|
||||
|
||||
.facet-controls {
|
||||
padding: 5px 0px;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.facet-controls-left {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.facet-controls-right {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.facet-controls-right .fa.fa-user {
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
.control-buttons {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.control-buttons button {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.facet-actions {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
/* --- Facet error --- */
|
||||
|
||||
.facet-error {
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.facet-error h1 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.facet-error .error-details {
|
||||
margin-top: 2em;
|
||||
}
|
||||
|
||||
.facet-error .error-details code {
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
/* ---- Search Facet ---- */
|
||||
|
||||
.search-option {
|
||||
margin-right: 8px;
|
||||
width: 178px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.search-filter {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.search-filter input {
|
||||
width: 178px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.search-filter a {
|
||||
position: relative;
|
||||
margin: 0 0 0 -20px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.pagination-control {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.pagination-control a {
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
.pagination-control input[name=current_page] {
|
||||
width: 22px;
|
||||
padding: 0 6px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* ---- Details Facet ---- */
|
||||
|
||||
.details-content {
|
||||
border-top: 1px solid #DFDFDF;
|
||||
}
|
||||
|
||||
/* ---- Dialog ---- */
|
||||
|
||||
.modal code {
|
||||
white-space: normal;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.aci-attribute-table tbody {
|
||||
height: 10em;
|
||||
}
|
||||
|
||||
.aci-attribute-table .aci-attribute-column {
|
||||
width: 200em; /* it will fit actual width */
|
||||
}
|
||||
|
||||
.aci-attribute-table-container {
|
||||
height: 13.5em;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.strikethrough { text-decoration: line-through; }
|
||||
|
||||
textarea.certificate {
|
||||
font-family: monospace;
|
||||
width: 100%;
|
||||
height: 250px;
|
||||
}
|
||||
|
||||
.error-message-hinted {
|
||||
color: red;
|
||||
padding-top: 0.5em;
|
||||
padding-bottom: 0.5em;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
/* ---- Table ---- */
|
||||
|
||||
/* Used in association tables */
|
||||
th div[name="buttons"] .btn-link {
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
table.scrollable thead {
|
||||
display: block;
|
||||
}
|
||||
|
||||
table.scrollable tbody {
|
||||
display: block;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.adder-dialog-content {
|
||||
max-height: 400px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.adder-dialog-buttons {
|
||||
text-align: center;
|
||||
margin-top: 9.5px;
|
||||
}
|
||||
|
||||
/* remove padding to enlarge the tiny width of the button column */
|
||||
.adder-dialog-buttons .row .col-sm-12 {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* add some space for vertical layout (sm and bigger) */
|
||||
/* 768px == @screen-sm-min */
|
||||
@media (min-width: 768px) {
|
||||
.adder-dialog-buttons {
|
||||
margin-top: 34px;
|
||||
}
|
||||
|
||||
.adder-dialog-buttons button {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ---- Widgets ---- */
|
||||
|
||||
.multivalued-widget [name=value] {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.multivalued-widget a[name=add] {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.option_widget {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0 0 0 1px;
|
||||
}
|
||||
|
||||
.option_widget.nested {
|
||||
padding-left: 40px;
|
||||
}
|
||||
|
||||
.option_widget.inline,
|
||||
.option_widget.inline > li {
|
||||
display: inline;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.option_widget.columns > li {
|
||||
float: left;
|
||||
width: 33%;
|
||||
min-width: 90px;
|
||||
max-width: 150px;
|
||||
}
|
||||
|
||||
.option_widget.columns.attribute_widget {
|
||||
position: relative;
|
||||
overflow-y: auto;
|
||||
max-height: 36em;
|
||||
}
|
||||
|
||||
.option_widget.columns.attribute_widget > li {
|
||||
float: left;
|
||||
width: 50%;
|
||||
min-width: 90px;
|
||||
max-width: 200px;
|
||||
}
|
||||
|
||||
.combobox-widget-input {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.combobox-widget-input input {
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
.combobox-widget-input a i {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
margin-top: 4px;
|
||||
margin-right: 8px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.combobox-widget-list {
|
||||
border: 1px solid #A0A0A0;
|
||||
background: #EEEEEE;
|
||||
padding: 5px;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.combobox-widget-list a {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.combobox-widget-list a i {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.combobox-widget-list select {
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
.input-group .combobox-widget-input .form-control {
|
||||
position: initial;
|
||||
float: inherit;
|
||||
}
|
||||
|
||||
/* ---- HBAC Test ---- */
|
||||
|
||||
.hbac-test-header .search-filter {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.hbac-test-title {
|
||||
font-size: 1.8em;
|
||||
text-transform: uppercase;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.hbac-test-title,
|
||||
.hbac-test-title ~ label {
|
||||
margin-right: 5px !important;
|
||||
}
|
||||
|
||||
.hbac-test-top-panel {
|
||||
position: relative;;
|
||||
}
|
||||
|
||||
.hbac-test-navigation-buttons {
|
||||
float: right;
|
||||
}
|
||||
|
||||
/* ---- DNS ---- */
|
||||
|
||||
.dnstype-table div[name=position] {
|
||||
|
||||
padding-right: 9px;
|
||||
}
|
||||
|
||||
.dnstype-table td {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
|
||||
/* --- Automember --- */
|
||||
|
||||
.automember-header {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.automember-header-label {
|
||||
display: inline-block;
|
||||
font-weight: 600;
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
.automember-header-control {
|
||||
display: inline-block;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
/* --- Facet title states --- */
|
||||
|
||||
.facet-title h1 {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.facet-title .header-icon {
|
||||
display: none;
|
||||
font-size: 70%;
|
||||
vertical-align: 20%;
|
||||
/* Font awesome style, TODO: use mixin */
|
||||
display: inline-block;
|
||||
font-family: FontAwesome;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
line-height: 1;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.facet-title.enabled .header-icon:before {
|
||||
content: "\f00c";
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.facet-title.disabled .header-icon:before {
|
||||
content: "\f068";
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.facet-title.preserved .header-icon:before {
|
||||
content: "\f014";
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.facet-title.staging .header-icon:before {
|
||||
content: "\f0ad";
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.facet-title.disabled h1,
|
||||
.facet-title.disabled h1 .facet-pkey{
|
||||
color: gray;
|
||||
}
|
||||
|
||||
.action-panel {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: -30px;
|
||||
|
||||
width: 150px;
|
||||
|
||||
-moz-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
|
||||
-webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
|
||||
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
|
||||
.action-panel-list {
|
||||
margin: 0 0 10px 0;
|
||||
list-style: none;
|
||||
padding: 0 0 0 15px;
|
||||
}
|
||||
|
||||
.action-title {
|
||||
font-size: 1em;
|
||||
font-weight: bold;
|
||||
margin: 15px 0 5px 15px;
|
||||
line-height: 1em;
|
||||
}
|
||||
|
||||
.disabled {
|
||||
color: gray;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/* --- Multiple choice widget --- */
|
||||
|
||||
.multiple-choice-section-header {
|
||||
font-weight: bold;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
143
install/ui/jsl.conf
Normal file
@@ -0,0 +1,143 @@
|
||||
#
|
||||
# Configuration File for JavaScript Lint 0.3.0
|
||||
# Developed by Matthias Miller (http://www.JavaScriptLint.com)
|
||||
#
|
||||
# This configuration file can be used to lint a collection of scripts, or to enable
|
||||
# or disable warnings for scripts that are linted via the command line.
|
||||
#
|
||||
|
||||
### Warnings
|
||||
# Enable or disable warnings based on requirements.
|
||||
# Use "+WarningName" to display or "-WarningName" to suppress.
|
||||
#
|
||||
+no_return_value # function {0} does not always return a value
|
||||
+duplicate_formal # duplicate formal argument {0}
|
||||
+equal_as_assign # test for equality (==) mistyped as assignment (=)?{0}
|
||||
+var_hides_arg # variable {0} hides argument
|
||||
+redeclared_var # redeclaration of {0} {1}
|
||||
+anon_no_return_value # anonymous function does not always return a value
|
||||
+missing_semicolon # missing semicolon
|
||||
+meaningless_block # meaningless block; curly braces have no impact
|
||||
+comma_separated_stmts # multiple statements separated by commas (use semicolons?)
|
||||
+unreachable_code # unreachable code
|
||||
+missing_break # missing break statement
|
||||
+missing_break_for_last_case # missing break statement for last case in switch
|
||||
+comparison_type_conv # comparisons against null, 0, true, false, or an empty string allowing implicit type conversion (use === or !==)
|
||||
+inc_dec_within_stmt # increment (++) and decrement (--) operators used as part of greater statement
|
||||
+useless_void # use of the void type may be unnecessary (void is always undefined)
|
||||
+multiple_plus_minus # unknown order of operations for successive plus (e.g. x+++y) or minus (e.g. x---y) signs
|
||||
+use_of_label # use of label
|
||||
-block_without_braces # block statement without curly braces
|
||||
+leading_decimal_point # leading decimal point may indicate a number or an object member
|
||||
+trailing_decimal_point # trailing decimal point may indicate a number or an object member
|
||||
+octal_number # leading zeros make an octal number
|
||||
+nested_comment # nested comment
|
||||
+misplaced_regex # regular expressions should be preceded by a left parenthesis, assignment, colon, or comma
|
||||
-ambiguous_newline # unexpected end of line; it is ambiguous whether these lines are part of the same statement
|
||||
+empty_statement # empty statement or extra semicolon
|
||||
-missing_option_explicit # the "option explicit" control comment is missing
|
||||
+partial_option_explicit # the "option explicit" control comment, if used, must be in the first script tag
|
||||
+dup_option_explicit # duplicate "option explicit" control comment
|
||||
+useless_assign # useless assignment
|
||||
+ambiguous_nested_stmt # block statements containing block statements should use curly braces to resolve ambiguity
|
||||
+ambiguous_else_stmt # the else statement could be matched with one of multiple if statements (use curly braces to indicate intent)
|
||||
+missing_default_case # missing default case in switch statement
|
||||
+duplicate_case_in_switch # duplicate case in switch statements
|
||||
+default_not_at_end # the default case is not at the end of the switch statement
|
||||
+legacy_cc_not_understood # couldn't understand control comment using /*@keyword@*/ syntax
|
||||
+jsl_cc_not_understood # couldn't understand control comment using /*jsl:keyword*/ syntax
|
||||
+useless_comparison # useless comparison; comparing identical expressions
|
||||
+with_statement # with statement hides undeclared variables; use temporary variable instead
|
||||
+trailing_comma_in_array # extra comma is not recommended in array initializers
|
||||
+assign_to_function_call # assignment to a function call
|
||||
+parseint_missing_radix # parseInt missing radix parameter
|
||||
|
||||
|
||||
### Output format
|
||||
# Customize the format of the error message.
|
||||
# __FILE__ indicates current file path
|
||||
# __FILENAME__ indicates current file name
|
||||
# __LINE__ indicates current line
|
||||
# __ERROR__ indicates error message
|
||||
#
|
||||
# Visual Studio syntax (default):
|
||||
+output-format __FILE__(__LINE__): __ERROR__
|
||||
# Alternative syntax:
|
||||
#+output-format __FILE__:__LINE__: __ERROR__
|
||||
|
||||
|
||||
### Context
|
||||
# Show the in-line position of the error.
|
||||
# Use "+context" to display or "-context" to suppress.
|
||||
#
|
||||
+context
|
||||
|
||||
|
||||
### Semicolons
|
||||
# By default, assignments of an anonymous function to a variable or
|
||||
# property (such as a function prototype) must be followed by a semicolon.
|
||||
#
|
||||
+lambda_assign_requires_semicolon
|
||||
|
||||
|
||||
### Control Comments
|
||||
# Both JavaScript Lint and the JScript interpreter confuse each other with the syntax for
|
||||
# the /*@keyword@*/ control comments and JScript conditional comments. (The latter is
|
||||
# enabled in JScript with @cc_on@). The /*jsl:keyword*/ syntax is preferred for this reason,
|
||||
# although legacy control comments are enabled by default for backward compatibility.
|
||||
#
|
||||
+legacy_control_comments
|
||||
|
||||
|
||||
### JScript Function Extensions
|
||||
# JScript allows member functions to be defined like this:
|
||||
# function MyObj() { /*constructor*/ }
|
||||
# function MyObj.prototype.go() { /*member function*/ }
|
||||
#
|
||||
# It also allows events to be attached like this:
|
||||
# function window::onload() { /*init page*/ }
|
||||
#
|
||||
# This is a Microsoft-only JavaScript extension. Enable this setting to allow them.
|
||||
#
|
||||
-jscript_function_extensions
|
||||
|
||||
|
||||
### Defining identifiers
|
||||
# By default, "option explicit" is enabled on a per-file basis.
|
||||
# To enable this for all files, use "+always_use_option_explicit"
|
||||
#-always_use_option_explicit
|
||||
+always_use_option_explicit
|
||||
|
||||
# Define certain identifiers of which the lint is not aware.
|
||||
# (Use this in conjunction with the "undeclared identifier" warning.)
|
||||
#
|
||||
# Common uses for webpages might be:
|
||||
+define window
|
||||
+define document
|
||||
+define alert
|
||||
+define $
|
||||
+define JSON
|
||||
+define jQuery
|
||||
+define define
|
||||
+define require
|
||||
+define ipa_loader
|
||||
|
||||
### Files
|
||||
# Specify which files to lint
|
||||
# Use "+recurse" to enable recursion (disabled by default).
|
||||
# To add a set of files, use "+process FileName", "+process Folder\Path\*.js",
|
||||
# or "+process Folder\Path\*.htm".
|
||||
#
|
||||
|
||||
+process index.html
|
||||
+process src/libs/browser.js
|
||||
+process src/libs/jquery.ordered-map.js
|
||||
+process src/freeipa/*.js
|
||||
+process src/freeipa/_base/*.js
|
||||
+process src/freeipa/dialogs/*.js
|
||||
+process src/freeipa/navigation/*.js
|
||||
+process src/freeipa/facets/*.js
|
||||
+process src/freeipa/plugins/*.js
|
||||
+process src/freeipa/widgets/*.js
|
||||
+process src/*.js
|
||||
+process ./*.js
|
||||
33
install/ui/less/alerts.less
Normal file
@@ -0,0 +1,33 @@
|
||||
//
|
||||
// Alerts
|
||||
// --------------------------------------------------
|
||||
|
||||
// Add styles for Font Awesome
|
||||
|
||||
.alert {
|
||||
> .fa, > .fa-layered {
|
||||
font-size: 20px;
|
||||
position: absolute;
|
||||
left: 7px;
|
||||
top: 7px;
|
||||
}
|
||||
.fa-info {
|
||||
color: #72767b;
|
||||
}
|
||||
}
|
||||
|
||||
.alert-success .fa-check-circle-o {
|
||||
color: #5cb75c;
|
||||
}
|
||||
|
||||
.alert-info .fa-info-circle {
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
.alert-danger .fa-exclamation-circle {
|
||||
color: #c90813;
|
||||
}
|
||||
|
||||
.alert-warning .fa-warning {
|
||||
color: #eb7720;
|
||||
}
|
||||
829
install/ui/less/bootstrap/variables.less
Normal file
@@ -0,0 +1,829 @@
|
||||
//
|
||||
// Variables
|
||||
// --------------------------------------------------
|
||||
|
||||
|
||||
//== Colors
|
||||
//
|
||||
//## Gray and brand colors for use across Bootstrap.
|
||||
|
||||
@gray-darker: lighten(#000, 13.5%); // #222
|
||||
@gray-dark: lighten(#000, 20%); // #333
|
||||
@gray: lighten(#000, 33.5%); // #555
|
||||
@gray-light: lighten(#000, 60%); // #999
|
||||
@gray-lighter: lighten(#000, 93.5%); // #eee
|
||||
|
||||
@brand-primary: #428bca;
|
||||
@brand-success: #5cb85c;
|
||||
@brand-info: #5bc0de;
|
||||
@brand-warning: #f0ad4e;
|
||||
@brand-danger: #d9534f;
|
||||
|
||||
|
||||
//== Scaffolding
|
||||
//
|
||||
// ## Settings for some of the most global styles.
|
||||
|
||||
//** Background color for `<body>`.
|
||||
@body-bg: #fff;
|
||||
//** Global text color on `<body>`.
|
||||
@text-color: @gray-dark;
|
||||
|
||||
//** Global textual link color.
|
||||
@link-color: @brand-primary;
|
||||
//** Link hover color set via `darken()` function.
|
||||
@link-hover-color: darken(@link-color, 15%);
|
||||
|
||||
|
||||
//== Typography
|
||||
//
|
||||
//## Font, line-height, and color for body text, headings, and more.
|
||||
|
||||
@font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
@font-family-serif: Georgia, "Times New Roman", Times, serif;
|
||||
//** Default monospace fonts for `<code>`, `<kbd>`, and `<pre>`.
|
||||
@font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace;
|
||||
@font-family-base: @font-family-sans-serif;
|
||||
|
||||
@font-size-base: 14px;
|
||||
@font-size-large: ceil((@font-size-base * 1.25)); // ~18px
|
||||
@font-size-small: ceil((@font-size-base * 0.85)); // ~12px
|
||||
|
||||
@font-size-h1: floor((@font-size-base * 2.6)); // ~36px
|
||||
@font-size-h2: floor((@font-size-base * 2.15)); // ~30px
|
||||
@font-size-h3: ceil((@font-size-base * 1.7)); // ~24px
|
||||
@font-size-h4: ceil((@font-size-base * 1.25)); // ~18px
|
||||
@font-size-h5: @font-size-base;
|
||||
@font-size-h6: ceil((@font-size-base * 0.85)); // ~12px
|
||||
|
||||
//** Unit-less `line-height` for use in components like buttons.
|
||||
@line-height-base: 1.428571429; // 20/14
|
||||
//** Computed "line-height" (`font-size` * `line-height`) for use with `margin`, `padding`, etc.
|
||||
@line-height-computed: floor((@font-size-base * @line-height-base)); // ~20px
|
||||
|
||||
//** By default, this inherits from the `<body>`.
|
||||
@headings-font-family: inherit;
|
||||
@headings-font-weight: 500;
|
||||
@headings-line-height: 1.1;
|
||||
@headings-color: inherit;
|
||||
|
||||
|
||||
//-- Iconography
|
||||
//
|
||||
//## Specify custom locations of the include Glyphicons icon font. Useful for those including Bootstrap via Bower.
|
||||
|
||||
@icon-font-path: "../fonts/";
|
||||
@icon-font-name: "glyphicons-halflings-regular";
|
||||
@icon-font-svg-id: "glyphicons_halflingsregular";
|
||||
|
||||
//== Components
|
||||
//
|
||||
//## Define common padding and border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start).
|
||||
|
||||
@padding-base-vertical: 6px;
|
||||
@padding-base-horizontal: 12px;
|
||||
|
||||
@padding-large-vertical: 10px;
|
||||
@padding-large-horizontal: 16px;
|
||||
|
||||
@padding-small-vertical: 5px;
|
||||
@padding-small-horizontal: 10px;
|
||||
|
||||
@padding-xs-vertical: 1px;
|
||||
@padding-xs-horizontal: 5px;
|
||||
|
||||
@line-height-large: 1.33;
|
||||
@line-height-small: 1.5;
|
||||
|
||||
@border-radius-base: 4px;
|
||||
@border-radius-large: 6px;
|
||||
@border-radius-small: 3px;
|
||||
|
||||
//** Global color for active items (e.g., navs or dropdowns).
|
||||
@component-active-color: #fff;
|
||||
//** Global background color for active items (e.g., navs or dropdowns).
|
||||
@component-active-bg: @brand-primary;
|
||||
|
||||
//** Width of the `border` for generating carets that indicator dropdowns.
|
||||
@caret-width-base: 4px;
|
||||
//** Carets increase slightly in size for larger components.
|
||||
@caret-width-large: 5px;
|
||||
|
||||
|
||||
//== Tables
|
||||
//
|
||||
//## Customizes the `.table` component with basic values, each used across all table variations.
|
||||
|
||||
//** Padding for `<th>`s and `<td>`s.
|
||||
@table-cell-padding: 8px;
|
||||
//** Padding for cells in `.table-condensed`.
|
||||
@table-condensed-cell-padding: 5px;
|
||||
|
||||
//** Default background color used for all tables.
|
||||
@table-bg: transparent;
|
||||
//** Background color used for `.table-striped`.
|
||||
@table-bg-accent: #f9f9f9;
|
||||
//** Background color used for `.table-hover`.
|
||||
@table-bg-hover: #f5f5f5;
|
||||
@table-bg-active: @table-bg-hover;
|
||||
|
||||
//** Border color for table and cell borders.
|
||||
@table-border-color: #ddd;
|
||||
|
||||
|
||||
//== Buttons
|
||||
//
|
||||
//## For each of Bootstrap's buttons, define text, background and border color.
|
||||
|
||||
@btn-font-weight: normal;
|
||||
|
||||
@btn-default-color: #333;
|
||||
@btn-default-bg: #fff;
|
||||
@btn-default-border: #ccc;
|
||||
|
||||
@btn-primary-color: #fff;
|
||||
@btn-primary-bg: @brand-primary;
|
||||
@btn-primary-border: darken(@btn-primary-bg, 5%);
|
||||
|
||||
@btn-success-color: #fff;
|
||||
@btn-success-bg: @brand-success;
|
||||
@btn-success-border: darken(@btn-success-bg, 5%);
|
||||
|
||||
@btn-info-color: #fff;
|
||||
@btn-info-bg: @brand-info;
|
||||
@btn-info-border: darken(@btn-info-bg, 5%);
|
||||
|
||||
@btn-warning-color: #fff;
|
||||
@btn-warning-bg: @brand-warning;
|
||||
@btn-warning-border: darken(@btn-warning-bg, 5%);
|
||||
|
||||
@btn-danger-color: #fff;
|
||||
@btn-danger-bg: @brand-danger;
|
||||
@btn-danger-border: darken(@btn-danger-bg, 5%);
|
||||
|
||||
@btn-link-disabled-color: @gray-light;
|
||||
|
||||
|
||||
//== Forms
|
||||
//
|
||||
//##
|
||||
|
||||
//** `<input>` background color
|
||||
@input-bg: #fff;
|
||||
//** `<input disabled>` background color
|
||||
@input-bg-disabled: @gray-lighter;
|
||||
|
||||
//** Text color for `<input>`s
|
||||
@input-color: @gray;
|
||||
//** `<input>` border color
|
||||
@input-border: #ccc;
|
||||
//** `<input>` border radius
|
||||
@input-border-radius: @border-radius-base;
|
||||
//** Border color for inputs on focus
|
||||
@input-border-focus: #66afe9;
|
||||
|
||||
//** Placeholder text color
|
||||
@input-color-placeholder: @gray-light;
|
||||
|
||||
//** Default `.form-control` height
|
||||
@input-height-base: (@line-height-computed + (@padding-base-vertical * 2) + 2);
|
||||
//** Large `.form-control` height
|
||||
//@input-height-large: (ceil(@font-size-large * @line-height-large) + (@padding-large-vertical * 2) + 2);
|
||||
//** Small `.form-control` height
|
||||
//@input-height-small: (floor(@font-size-small * @line-height-small) + (@padding-small-vertical * 2) + 2);
|
||||
|
||||
@legend-color: @gray-dark;
|
||||
@legend-border-color: #e5e5e5;
|
||||
|
||||
//** Background color for textual input addons
|
||||
@input-group-addon-bg: @gray-lighter;
|
||||
//** Border color for textual input addons
|
||||
@input-group-addon-border-color: @input-border;
|
||||
|
||||
|
||||
//== Dropdowns
|
||||
//
|
||||
//## Dropdown menu container and contents.
|
||||
|
||||
//** Background for the dropdown menu.
|
||||
@dropdown-bg: #fff;
|
||||
//** Dropdown menu `border-color`.
|
||||
@dropdown-border: rgba(0,0,0,.15);
|
||||
//** Dropdown menu `border-color` **for IE8**.
|
||||
@dropdown-fallback-border: #ccc;
|
||||
//** Divider color for between dropdown items.
|
||||
@dropdown-divider-bg: #e5e5e5;
|
||||
|
||||
//** Dropdown link text color.
|
||||
@dropdown-link-color: @gray-dark;
|
||||
//** Hover color for dropdown links.
|
||||
@dropdown-link-hover-color: darken(@gray-dark, 5%);
|
||||
//** Hover background for dropdown links.
|
||||
@dropdown-link-hover-bg: #f5f5f5;
|
||||
|
||||
//** Active dropdown menu item text color.
|
||||
@dropdown-link-active-color: @component-active-color;
|
||||
//** Active dropdown menu item background color.
|
||||
@dropdown-link-active-bg: @component-active-bg;
|
||||
|
||||
//** Disabled dropdown menu item background color.
|
||||
@dropdown-link-disabled-color: @gray-light;
|
||||
|
||||
//** Text color for headers within dropdown menus.
|
||||
@dropdown-header-color: @gray-light;
|
||||
|
||||
// Note: Deprecated @dropdown-caret-color as of v3.1.0
|
||||
@dropdown-caret-color: #000;
|
||||
|
||||
|
||||
//-- Z-index master list
|
||||
//
|
||||
// Warning: Avoid customizing these values. They're used for a bird's eye view
|
||||
// of components dependent on the z-axis and are designed to all work together.
|
||||
//
|
||||
// Note: These variables are not generated into the Customizer.
|
||||
|
||||
@zindex-navbar: 1000;
|
||||
@zindex-dropdown: 1000;
|
||||
@zindex-popover: 1010;
|
||||
@zindex-tooltip: 1030;
|
||||
@zindex-navbar-fixed: 1030;
|
||||
@zindex-modal-background: 1040;
|
||||
@zindex-modal: 1050;
|
||||
|
||||
|
||||
//== Media queries breakpoints
|
||||
//
|
||||
//## Define the breakpoints at which your layout will change, adapting to different screen sizes.
|
||||
|
||||
// Extra small screen / phone
|
||||
// Note: Deprecated @screen-xs and @screen-phone as of v3.0.1
|
||||
@screen-xs: 480px;
|
||||
@screen-xs-min: @screen-xs;
|
||||
@screen-phone: @screen-xs-min;
|
||||
|
||||
// Small screen / tablet
|
||||
// Note: Deprecated @screen-sm and @screen-tablet as of v3.0.1
|
||||
@screen-sm: 768px;
|
||||
@screen-sm-min: @screen-sm;
|
||||
@screen-tablet: @screen-sm-min;
|
||||
|
||||
// Medium screen / desktop
|
||||
// Note: Deprecated @screen-md and @screen-desktop as of v3.0.1
|
||||
@screen-md: 992px;
|
||||
@screen-md-min: @screen-md;
|
||||
@screen-desktop: @screen-md-min;
|
||||
|
||||
// Large screen / wide desktop
|
||||
// Note: Deprecated @screen-lg and @screen-lg-desktop as of v3.0.1
|
||||
@screen-lg: 1200px;
|
||||
@screen-lg-min: @screen-lg;
|
||||
@screen-lg-desktop: @screen-lg-min;
|
||||
|
||||
// So media queries don't overlap when required, provide a maximum
|
||||
@screen-xs-max: (@screen-sm-min - 1);
|
||||
@screen-sm-max: (@screen-md-min - 1);
|
||||
@screen-md-max: (@screen-lg-min - 1);
|
||||
|
||||
|
||||
//== Grid system
|
||||
//
|
||||
//## Define your custom responsive grid.
|
||||
|
||||
//** Number of columns in the grid.
|
||||
@grid-columns: 12;
|
||||
//** Padding between columns. Gets divided in half for the left and right.
|
||||
@grid-gutter-width: 30px;
|
||||
// Navbar collapse
|
||||
//** Point at which the navbar becomes uncollapsed.
|
||||
@grid-float-breakpoint: @screen-sm-min;
|
||||
//** Point at which the navbar begins collapsing.
|
||||
@grid-float-breakpoint-max: (@grid-float-breakpoint - 1);
|
||||
|
||||
|
||||
//== Container sizes
|
||||
//
|
||||
//## Define the maximum width of `.container` for different screen sizes.
|
||||
|
||||
// Small screen / tablet
|
||||
@container-tablet: ((720px + @grid-gutter-width));
|
||||
//** For `@screen-sm-min` and up.
|
||||
@container-sm: @container-tablet;
|
||||
|
||||
// Medium screen / desktop
|
||||
@container-desktop: ((940px + @grid-gutter-width));
|
||||
//** For `@screen-md-min` and up.
|
||||
@container-md: @container-desktop;
|
||||
|
||||
// Large screen / wide desktop
|
||||
@container-large-desktop: ((1140px + @grid-gutter-width));
|
||||
//** For `@screen-lg-min` and up.
|
||||
@container-lg: @container-large-desktop;
|
||||
|
||||
|
||||
//== Navbar
|
||||
//
|
||||
//##
|
||||
|
||||
// Basics of a navbar
|
||||
@navbar-height: 50px;
|
||||
@navbar-margin-bottom: @line-height-computed;
|
||||
@navbar-border-radius: @border-radius-base;
|
||||
@navbar-padding-horizontal: floor((@grid-gutter-width / 2));
|
||||
@navbar-padding-vertical: ((@navbar-height - @line-height-computed) / 2);
|
||||
@navbar-collapse-max-height: 340px;
|
||||
|
||||
@navbar-default-color: #777;
|
||||
@navbar-default-bg: #f8f8f8;
|
||||
@navbar-default-border: darken(@navbar-default-bg, 6.5%);
|
||||
|
||||
// Navbar links
|
||||
@navbar-default-link-color: #777;
|
||||
@navbar-default-link-hover-color: #333;
|
||||
@navbar-default-link-hover-bg: transparent;
|
||||
@navbar-default-link-active-color: #555;
|
||||
@navbar-default-link-active-bg: darken(@navbar-default-bg, 6.5%);
|
||||
@navbar-default-link-disabled-color: #ccc;
|
||||
@navbar-default-link-disabled-bg: transparent;
|
||||
|
||||
// Navbar brand label
|
||||
@navbar-default-brand-color: @navbar-default-link-color;
|
||||
@navbar-default-brand-hover-color: darken(@navbar-default-brand-color, 10%);
|
||||
@navbar-default-brand-hover-bg: transparent;
|
||||
|
||||
// Navbar toggle
|
||||
@navbar-default-toggle-hover-bg: #ddd;
|
||||
@navbar-default-toggle-icon-bar-bg: #888;
|
||||
@navbar-default-toggle-border-color: #ddd;
|
||||
|
||||
|
||||
// Inverted navbar
|
||||
// Reset inverted navbar basics
|
||||
@navbar-inverse-color: @gray-light;
|
||||
@navbar-inverse-bg: #222;
|
||||
@navbar-inverse-border: darken(@navbar-inverse-bg, 10%);
|
||||
|
||||
// Inverted navbar links
|
||||
@navbar-inverse-link-color: @gray-light;
|
||||
@navbar-inverse-link-hover-color: #fff;
|
||||
@navbar-inverse-link-hover-bg: transparent;
|
||||
@navbar-inverse-link-active-color: @navbar-inverse-link-hover-color;
|
||||
@navbar-inverse-link-active-bg: darken(@navbar-inverse-bg, 10%);
|
||||
@navbar-inverse-link-disabled-color: #444;
|
||||
@navbar-inverse-link-disabled-bg: transparent;
|
||||
|
||||
// Inverted navbar brand label
|
||||
@navbar-inverse-brand-color: @navbar-inverse-link-color;
|
||||
@navbar-inverse-brand-hover-color: #fff;
|
||||
@navbar-inverse-brand-hover-bg: transparent;
|
||||
|
||||
// Inverted navbar toggle
|
||||
@navbar-inverse-toggle-hover-bg: #333;
|
||||
@navbar-inverse-toggle-icon-bar-bg: #fff;
|
||||
@navbar-inverse-toggle-border-color: #333;
|
||||
|
||||
|
||||
//== Navs
|
||||
//
|
||||
//##
|
||||
|
||||
//=== Shared nav styles
|
||||
@nav-link-padding: 10px 15px;
|
||||
@nav-link-hover-bg: @gray-lighter;
|
||||
|
||||
@nav-disabled-link-color: @gray-light;
|
||||
@nav-disabled-link-hover-color: @gray-light;
|
||||
|
||||
@nav-open-link-hover-color: #fff;
|
||||
|
||||
//== Tabs
|
||||
@nav-tabs-border-color: #ddd;
|
||||
|
||||
@nav-tabs-link-hover-border-color: @gray-lighter;
|
||||
|
||||
@nav-tabs-active-link-hover-bg: @body-bg;
|
||||
@nav-tabs-active-link-hover-color: @gray;
|
||||
@nav-tabs-active-link-hover-border-color: #ddd;
|
||||
|
||||
@nav-tabs-justified-link-border-color: #ddd;
|
||||
@nav-tabs-justified-active-link-border-color: @body-bg;
|
||||
|
||||
//== Pills
|
||||
@nav-pills-border-radius: @border-radius-base;
|
||||
@nav-pills-active-link-hover-bg: @component-active-bg;
|
||||
@nav-pills-active-link-hover-color: @component-active-color;
|
||||
|
||||
|
||||
//== Pagination
|
||||
//
|
||||
//##
|
||||
|
||||
@pagination-color: @link-color;
|
||||
@pagination-bg: #fff;
|
||||
@pagination-border: #ddd;
|
||||
|
||||
@pagination-hover-color: @link-hover-color;
|
||||
@pagination-hover-bg: @gray-lighter;
|
||||
@pagination-hover-border: #ddd;
|
||||
|
||||
@pagination-active-color: #fff;
|
||||
@pagination-active-bg: @brand-primary;
|
||||
@pagination-active-border: @brand-primary;
|
||||
|
||||
@pagination-disabled-color: @gray-light;
|
||||
@pagination-disabled-bg: #fff;
|
||||
@pagination-disabled-border: #ddd;
|
||||
|
||||
|
||||
//== Pager
|
||||
//
|
||||
//##
|
||||
|
||||
@pager-bg: @pagination-bg;
|
||||
@pager-border: @pagination-border;
|
||||
@pager-border-radius: 15px;
|
||||
|
||||
@pager-hover-bg: @pagination-hover-bg;
|
||||
|
||||
@pager-active-bg: @pagination-active-bg;
|
||||
@pager-active-color: @pagination-active-color;
|
||||
|
||||
@pager-disabled-color: @pagination-disabled-color;
|
||||
|
||||
|
||||
//== Jumbotron
|
||||
//
|
||||
//##
|
||||
|
||||
@jumbotron-padding: 30px;
|
||||
@jumbotron-color: inherit;
|
||||
@jumbotron-bg: @gray-lighter;
|
||||
@jumbotron-heading-color: inherit;
|
||||
@jumbotron-font-size: ceil((@font-size-base * 1.5));
|
||||
|
||||
|
||||
//== Form states and alerts
|
||||
//
|
||||
//## Define colors for form feedback states and, by default, alerts.
|
||||
|
||||
@state-success-text: #3c763d;
|
||||
@state-success-bg: #dff0d8;
|
||||
@state-success-border: darken(spin(@state-success-bg, -10), 5%);
|
||||
|
||||
@state-info-text: #31708f;
|
||||
@state-info-bg: #d9edf7;
|
||||
@state-info-border: darken(spin(@state-info-bg, -10), 7%);
|
||||
|
||||
@state-warning-text: #8a6d3b;
|
||||
@state-warning-bg: #fcf8e3;
|
||||
@state-warning-border: darken(spin(@state-warning-bg, -10), 5%);
|
||||
|
||||
@state-danger-text: #a94442;
|
||||
@state-danger-bg: #f2dede;
|
||||
@state-danger-border: darken(spin(@state-danger-bg, -10), 5%);
|
||||
|
||||
|
||||
//== Tooltips
|
||||
//
|
||||
//##
|
||||
|
||||
//** Tooltip max width
|
||||
@tooltip-max-width: 200px;
|
||||
//** Tooltip text color
|
||||
@tooltip-color: #fff;
|
||||
//** Tooltip background color
|
||||
@tooltip-bg: #000;
|
||||
@tooltip-opacity: .9;
|
||||
|
||||
//** Tooltip arrow width
|
||||
@tooltip-arrow-width: 5px;
|
||||
//** Tooltip arrow color
|
||||
@tooltip-arrow-color: @tooltip-bg;
|
||||
|
||||
|
||||
//== Popovers
|
||||
//
|
||||
//##
|
||||
|
||||
//** Popover body background color
|
||||
@popover-bg: #fff;
|
||||
//** Popover maximum width
|
||||
@popover-max-width: 276px;
|
||||
//** Popover border color
|
||||
@popover-border-color: rgba(0,0,0,.2);
|
||||
//** Popover fallback border color
|
||||
@popover-fallback-border-color: #ccc;
|
||||
|
||||
//** Popover title background color
|
||||
@popover-title-bg: darken(@popover-bg, 3%);
|
||||
|
||||
//** Popover arrow width
|
||||
@popover-arrow-width: 10px;
|
||||
//** Popover arrow color
|
||||
@popover-arrow-color: #fff;
|
||||
|
||||
//** Popover outer arrow width
|
||||
@popover-arrow-outer-width: (@popover-arrow-width + 1);
|
||||
//** Popover outer arrow color
|
||||
@popover-arrow-outer-color: fadein(@popover-border-color, 5%);
|
||||
//** Popover outer arrow fallback color
|
||||
@popover-arrow-outer-fallback-color: darken(@popover-fallback-border-color, 20%);
|
||||
|
||||
|
||||
//== Labels
|
||||
//
|
||||
//##
|
||||
|
||||
//** Default label background color
|
||||
@label-default-bg: @gray-light;
|
||||
//** Primary label background color
|
||||
@label-primary-bg: @brand-primary;
|
||||
//** Success label background color
|
||||
@label-success-bg: @brand-success;
|
||||
//** Info label background color
|
||||
@label-info-bg: @brand-info;
|
||||
//** Warning label background color
|
||||
@label-warning-bg: @brand-warning;
|
||||
//** Danger label background color
|
||||
@label-danger-bg: @brand-danger;
|
||||
|
||||
//** Default label text color
|
||||
@label-color: #fff;
|
||||
//** Default text color of a linked label
|
||||
@label-link-hover-color: #fff;
|
||||
|
||||
|
||||
//== Modals
|
||||
//
|
||||
//##
|
||||
|
||||
//** Padding applied to the modal body
|
||||
@modal-inner-padding: 20px;
|
||||
|
||||
//** Padding applied to the modal title
|
||||
@modal-title-padding: 15px;
|
||||
//** Modal title line-height
|
||||
@modal-title-line-height: @line-height-base;
|
||||
|
||||
//** Background color of modal content area
|
||||
@modal-content-bg: #fff;
|
||||
//** Modal content border color
|
||||
@modal-content-border-color: rgba(0,0,0,.2);
|
||||
//** Modal content border color **for IE8**
|
||||
@modal-content-fallback-border-color: #999;
|
||||
|
||||
//** Modal backdrop background color
|
||||
@modal-backdrop-bg: #000;
|
||||
//** Modal backdrop opacity
|
||||
@modal-backdrop-opacity: .5;
|
||||
//** Modal header border color
|
||||
@modal-header-border-color: #e5e5e5;
|
||||
//** Modal footer border color
|
||||
@modal-footer-border-color: @modal-header-border-color;
|
||||
|
||||
@modal-lg: 900px;
|
||||
@modal-md: 600px;
|
||||
@modal-sm: 300px;
|
||||
|
||||
|
||||
//== Alerts
|
||||
//
|
||||
//## Define alert colors, border radius, and padding.
|
||||
|
||||
@alert-padding: 15px;
|
||||
@alert-border-radius: @border-radius-base;
|
||||
@alert-link-font-weight: bold;
|
||||
|
||||
@alert-success-bg: @state-success-bg;
|
||||
@alert-success-text: @state-success-text;
|
||||
@alert-success-border: @state-success-border;
|
||||
|
||||
@alert-info-bg: @state-info-bg;
|
||||
@alert-info-text: @state-info-text;
|
||||
@alert-info-border: @state-info-border;
|
||||
|
||||
@alert-warning-bg: @state-warning-bg;
|
||||
@alert-warning-text: @state-warning-text;
|
||||
@alert-warning-border: @state-warning-border;
|
||||
|
||||
@alert-danger-bg: @state-danger-bg;
|
||||
@alert-danger-text: @state-danger-text;
|
||||
@alert-danger-border: @state-danger-border;
|
||||
|
||||
|
||||
//== Progress bars
|
||||
//
|
||||
//##
|
||||
|
||||
//** Background color of the whole progress component
|
||||
@progress-bg: #f5f5f5;
|
||||
//** Progress bar text color
|
||||
@progress-bar-color: #fff;
|
||||
|
||||
//** Default progress bar color
|
||||
@progress-bar-bg: @brand-primary;
|
||||
//** Success progress bar color
|
||||
@progress-bar-success-bg: @brand-success;
|
||||
//** Warning progress bar color
|
||||
@progress-bar-warning-bg: @brand-warning;
|
||||
//** Danger progress bar color
|
||||
@progress-bar-danger-bg: @brand-danger;
|
||||
//** Info progress bar color
|
||||
@progress-bar-info-bg: @brand-info;
|
||||
|
||||
|
||||
//== List group
|
||||
//
|
||||
//##
|
||||
|
||||
//** Background color on `.list-group-item`
|
||||
@list-group-bg: #fff;
|
||||
//** `.list-group-item` border color
|
||||
@list-group-border: #ddd;
|
||||
//** List group border radius
|
||||
@list-group-border-radius: @border-radius-base;
|
||||
|
||||
//** Background color of single list elements on hover
|
||||
@list-group-hover-bg: #f5f5f5;
|
||||
//** Text color of active list elements
|
||||
@list-group-active-color: @component-active-color;
|
||||
//** Background color of active list elements
|
||||
@list-group-active-bg: @component-active-bg;
|
||||
//** Border color of active list elements
|
||||
@list-group-active-border: @list-group-active-bg;
|
||||
@list-group-active-text-color: lighten(@list-group-active-bg, 40%);
|
||||
|
||||
@list-group-link-color: #555;
|
||||
@list-group-link-heading-color: #333;
|
||||
|
||||
|
||||
//== Panels
|
||||
//
|
||||
//##
|
||||
|
||||
@panel-bg: #fff;
|
||||
@panel-body-padding: 15px;
|
||||
@panel-border-radius: @border-radius-base;
|
||||
|
||||
//** Border color for elements within panels
|
||||
@panel-inner-border: #ddd;
|
||||
@panel-footer-bg: #f5f5f5;
|
||||
|
||||
@panel-default-text: @gray-dark;
|
||||
@panel-default-border: #ddd;
|
||||
@panel-default-heading-bg: #f5f5f5;
|
||||
|
||||
@panel-primary-text: #fff;
|
||||
@panel-primary-border: @brand-primary;
|
||||
@panel-primary-heading-bg: @brand-primary;
|
||||
|
||||
@panel-success-text: @state-success-text;
|
||||
@panel-success-border: @state-success-border;
|
||||
@panel-success-heading-bg: @state-success-bg;
|
||||
|
||||
@panel-info-text: @state-info-text;
|
||||
@panel-info-border: @state-info-border;
|
||||
@panel-info-heading-bg: @state-info-bg;
|
||||
|
||||
@panel-warning-text: @state-warning-text;
|
||||
@panel-warning-border: @state-warning-border;
|
||||
@panel-warning-heading-bg: @state-warning-bg;
|
||||
|
||||
@panel-danger-text: @state-danger-text;
|
||||
@panel-danger-border: @state-danger-border;
|
||||
@panel-danger-heading-bg: @state-danger-bg;
|
||||
|
||||
|
||||
//== Thumbnails
|
||||
//
|
||||
//##
|
||||
|
||||
//** Padding around the thumbnail image
|
||||
@thumbnail-padding: 4px;
|
||||
//** Thumbnail background color
|
||||
@thumbnail-bg: @body-bg;
|
||||
//** Thumbnail border color
|
||||
@thumbnail-border: #ddd;
|
||||
//** Thumbnail border radius
|
||||
@thumbnail-border-radius: @border-radius-base;
|
||||
|
||||
//** Custom text color for thumbnail captions
|
||||
@thumbnail-caption-color: @text-color;
|
||||
//** Padding around the thumbnail caption
|
||||
@thumbnail-caption-padding: 9px;
|
||||
|
||||
|
||||
//== Wells
|
||||
//
|
||||
//##
|
||||
|
||||
@well-bg: #f5f5f5;
|
||||
@well-border: darken(@well-bg, 7%);
|
||||
|
||||
|
||||
//== Badges
|
||||
//
|
||||
//##
|
||||
|
||||
@badge-color: #fff;
|
||||
//** Linked badge text color on hover
|
||||
@badge-link-hover-color: #fff;
|
||||
@badge-bg: @gray-light;
|
||||
|
||||
//** Badge text color in active nav link
|
||||
@badge-active-color: @link-color;
|
||||
//** Badge background color in active nav link
|
||||
@badge-active-bg: #fff;
|
||||
|
||||
@badge-font-weight: bold;
|
||||
@badge-line-height: 1;
|
||||
@badge-border-radius: 10px;
|
||||
|
||||
|
||||
//== Breadcrumbs
|
||||
//
|
||||
//##
|
||||
|
||||
@breadcrumb-padding-vertical: 8px;
|
||||
@breadcrumb-padding-horizontal: 15px;
|
||||
//** Breadcrumb background color
|
||||
@breadcrumb-bg: #f5f5f5;
|
||||
//** Breadcrumb text color
|
||||
@breadcrumb-color: #ccc;
|
||||
//** Text color of current page in the breadcrumb
|
||||
@breadcrumb-active-color: @gray-light;
|
||||
//** Textual separator for between breadcrumb elements
|
||||
@breadcrumb-separator: "/";
|
||||
|
||||
|
||||
//== Carousel
|
||||
//
|
||||
//##
|
||||
|
||||
@carousel-text-shadow: 0 1px 2px rgba(0,0,0,.6);
|
||||
|
||||
@carousel-control-color: #fff;
|
||||
@carousel-control-width: 15%;
|
||||
@carousel-control-opacity: .5;
|
||||
@carousel-control-font-size: 20px;
|
||||
|
||||
@carousel-indicator-active-bg: #fff;
|
||||
@carousel-indicator-border-color: #fff;
|
||||
|
||||
@carousel-caption-color: #fff;
|
||||
|
||||
|
||||
//== Close
|
||||
//
|
||||
//##
|
||||
|
||||
@close-font-weight: bold;
|
||||
@close-color: #000;
|
||||
@close-text-shadow: 0 1px 0 #fff;
|
||||
|
||||
|
||||
//== Code
|
||||
//
|
||||
//##
|
||||
|
||||
@code-color: #c7254e;
|
||||
@code-bg: #f9f2f4;
|
||||
|
||||
@kbd-color: #fff;
|
||||
@kbd-bg: #333;
|
||||
|
||||
@pre-bg: #f5f5f5;
|
||||
@pre-color: @gray-dark;
|
||||
@pre-border-color: #ccc;
|
||||
@pre-scrollable-max-height: 340px;
|
||||
|
||||
|
||||
//== Type
|
||||
//
|
||||
//##
|
||||
|
||||
//** Text muted color
|
||||
@text-muted: @gray-light;
|
||||
//** Abbreviations and acronyms border color
|
||||
@abbr-border-color: @gray-light;
|
||||
//** Headings small color
|
||||
@headings-small-color: @gray-light;
|
||||
//** Blockquote small color
|
||||
@blockquote-small-color: @gray-light;
|
||||
//** Blockquote font size
|
||||
@blockquote-font-size: (@font-size-base * 1.25);
|
||||
//** Blockquote border color
|
||||
@blockquote-border-color: @gray-lighter;
|
||||
//** Page header border color
|
||||
@page-header-border-color: @gray-lighter;
|
||||
|
||||
|
||||
//== Miscellaneous
|
||||
//
|
||||
//##
|
||||
|
||||
//** Horizontal line color.
|
||||
@hr-border: @gray-lighter;
|
||||
|
||||
//** Horizontal offset for forms and lists.
|
||||
@component-offset-horizontal: 180px;
|
||||
77
install/ui/less/brand.less
Normal file
@@ -0,0 +1,77 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2013 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
// this file should be overridden with brand/platform specific content
|
||||
|
||||
@login-details-border: #777777;
|
||||
|
||||
.login-pf {
|
||||
|
||||
.login-pf-body {
|
||||
padding-top: 50px;
|
||||
}
|
||||
|
||||
#badge img {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#brand {
|
||||
position: absolute;
|
||||
top: -135px;
|
||||
img {
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.container {
|
||||
padding-top: 40px;
|
||||
|
||||
.details p:first-child {
|
||||
border-top: 1px solid @login-details-border;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 768px == @screen-sm-min
|
||||
@media (min-width: 768px) {
|
||||
.navbar-pf .navbar-brand {
|
||||
padding: 2px 0 3px;
|
||||
}
|
||||
|
||||
.login-pf .container .details {
|
||||
p:first-child {
|
||||
border-top: 0;
|
||||
}
|
||||
border-left: 1px solid @login-details-border;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-height: 520px) {
|
||||
.reset-login-pf-height;
|
||||
.login-pf {
|
||||
.login-pf-body {
|
||||
padding-top: 0;
|
||||
}
|
||||
#badge {
|
||||
margin-top: 0;
|
||||
height: 70px;
|
||||
}
|
||||
}
|
||||
}
|
||||
26
install/ui/less/config-pages.less
Normal file
@@ -0,0 +1,26 @@
|
||||
//
|
||||
// For config pages in /install/html/ and /install/migration/
|
||||
//
|
||||
|
||||
.info-page .navbar-header {
|
||||
line-height: 40px;
|
||||
}
|
||||
|
||||
.browser-config {
|
||||
|
||||
h2 {
|
||||
margin-top: 1.5em;
|
||||
}
|
||||
|
||||
.disabled {
|
||||
color: #969696;
|
||||
}
|
||||
}
|
||||
|
||||
.ssbrowser {
|
||||
h2 > img {
|
||||
height: 22px;
|
||||
vertical-align: bottom;
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
}
|
||||
9
install/ui/less/font-awesome/path.less
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/* FONT PATH
|
||||
* -------------------------- */
|
||||
|
||||
@font-face {
|
||||
font-family: 'FontAwesome';
|
||||
src: url('@{fa-font-path}/fontawesome-webfont.ttf?v=@{fa-version}') format('truetype');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
381
install/ui/less/font-awesome/variables.less
vendored
Normal file
@@ -0,0 +1,381 @@
|
||||
// Variables
|
||||
// --------------------------
|
||||
|
||||
@fa-font-path: "../fonts";
|
||||
//@fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/4.0.3/fonts"; // for referencing Bootstrap CDN font files directly
|
||||
@fa-css-prefix: fa;
|
||||
@fa-version: "4.0.3";
|
||||
@fa-border-color: #eee;
|
||||
@fa-inverse: #fff;
|
||||
@fa-li-width: (30em / 14);
|
||||
|
||||
@fa-var-glass: "\f000";
|
||||
@fa-var-music: "\f001";
|
||||
@fa-var-search: "\f002";
|
||||
@fa-var-envelope-o: "\f003";
|
||||
@fa-var-heart: "\f004";
|
||||
@fa-var-star: "\f005";
|
||||
@fa-var-star-o: "\f006";
|
||||
@fa-var-user: "\f007";
|
||||
@fa-var-film: "\f008";
|
||||
@fa-var-th-large: "\f009";
|
||||
@fa-var-th: "\f00a";
|
||||
@fa-var-th-list: "\f00b";
|
||||
@fa-var-check: "\f00c";
|
||||
@fa-var-times: "\f00d";
|
||||
@fa-var-search-plus: "\f00e";
|
||||
@fa-var-search-minus: "\f010";
|
||||
@fa-var-power-off: "\f011";
|
||||
@fa-var-signal: "\f012";
|
||||
@fa-var-cog: "\f013";
|
||||
@fa-var-trash-o: "\f014";
|
||||
@fa-var-home: "\f015";
|
||||
@fa-var-file-o: "\f016";
|
||||
@fa-var-clock-o: "\f017";
|
||||
@fa-var-road: "\f018";
|
||||
@fa-var-download: "\f019";
|
||||
@fa-var-arrow-circle-o-down: "\f01a";
|
||||
@fa-var-arrow-circle-o-up: "\f01b";
|
||||
@fa-var-inbox: "\f01c";
|
||||
@fa-var-play-circle-o: "\f01d";
|
||||
@fa-var-repeat: "\f01e";
|
||||
@fa-var-refresh: "\f021";
|
||||
@fa-var-list-alt: "\f022";
|
||||
@fa-var-lock: "\f023";
|
||||
@fa-var-flag: "\f024";
|
||||
@fa-var-headphones: "\f025";
|
||||
@fa-var-volume-off: "\f026";
|
||||
@fa-var-volume-down: "\f027";
|
||||
@fa-var-volume-up: "\f028";
|
||||
@fa-var-qrcode: "\f029";
|
||||
@fa-var-barcode: "\f02a";
|
||||
@fa-var-tag: "\f02b";
|
||||
@fa-var-tags: "\f02c";
|
||||
@fa-var-book: "\f02d";
|
||||
@fa-var-bookmark: "\f02e";
|
||||
@fa-var-print: "\f02f";
|
||||
@fa-var-camera: "\f030";
|
||||
@fa-var-font: "\f031";
|
||||
@fa-var-bold: "\f032";
|
||||
@fa-var-italic: "\f033";
|
||||
@fa-var-text-height: "\f034";
|
||||
@fa-var-text-width: "\f035";
|
||||
@fa-var-align-left: "\f036";
|
||||
@fa-var-align-center: "\f037";
|
||||
@fa-var-align-right: "\f038";
|
||||
@fa-var-align-justify: "\f039";
|
||||
@fa-var-list: "\f03a";
|
||||
@fa-var-outdent: "\f03b";
|
||||
@fa-var-indent: "\f03c";
|
||||
@fa-var-video-camera: "\f03d";
|
||||
@fa-var-picture-o: "\f03e";
|
||||
@fa-var-pencil: "\f040";
|
||||
@fa-var-map-marker: "\f041";
|
||||
@fa-var-adjust: "\f042";
|
||||
@fa-var-tint: "\f043";
|
||||
@fa-var-pencil-square-o: "\f044";
|
||||
@fa-var-share-square-o: "\f045";
|
||||
@fa-var-check-square-o: "\f046";
|
||||
@fa-var-arrows: "\f047";
|
||||
@fa-var-step-backward: "\f048";
|
||||
@fa-var-fast-backward: "\f049";
|
||||
@fa-var-backward: "\f04a";
|
||||
@fa-var-play: "\f04b";
|
||||
@fa-var-pause: "\f04c";
|
||||
@fa-var-stop: "\f04d";
|
||||
@fa-var-forward: "\f04e";
|
||||
@fa-var-fast-forward: "\f050";
|
||||
@fa-var-step-forward: "\f051";
|
||||
@fa-var-eject: "\f052";
|
||||
@fa-var-chevron-left: "\f053";
|
||||
@fa-var-chevron-right: "\f054";
|
||||
@fa-var-plus-circle: "\f055";
|
||||
@fa-var-minus-circle: "\f056";
|
||||
@fa-var-times-circle: "\f057";
|
||||
@fa-var-check-circle: "\f058";
|
||||
@fa-var-question-circle: "\f059";
|
||||
@fa-var-info-circle: "\f05a";
|
||||
@fa-var-crosshairs: "\f05b";
|
||||
@fa-var-times-circle-o: "\f05c";
|
||||
@fa-var-check-circle-o: "\f05d";
|
||||
@fa-var-ban: "\f05e";
|
||||
@fa-var-arrow-left: "\f060";
|
||||
@fa-var-arrow-right: "\f061";
|
||||
@fa-var-arrow-up: "\f062";
|
||||
@fa-var-arrow-down: "\f063";
|
||||
@fa-var-share: "\f064";
|
||||
@fa-var-expand: "\f065";
|
||||
@fa-var-compress: "\f066";
|
||||
@fa-var-plus: "\f067";
|
||||
@fa-var-minus: "\f068";
|
||||
@fa-var-asterisk: "\f069";
|
||||
@fa-var-exclamation-circle: "\f06a";
|
||||
@fa-var-gift: "\f06b";
|
||||
@fa-var-leaf: "\f06c";
|
||||
@fa-var-fire: "\f06d";
|
||||
@fa-var-eye: "\f06e";
|
||||
@fa-var-eye-slash: "\f070";
|
||||
@fa-var-exclamation-triangle: "\f071";
|
||||
@fa-var-plane: "\f072";
|
||||
@fa-var-calendar: "\f073";
|
||||
@fa-var-random: "\f074";
|
||||
@fa-var-comment: "\f075";
|
||||
@fa-var-magnet: "\f076";
|
||||
@fa-var-chevron-up: "\f077";
|
||||
@fa-var-chevron-down: "\f078";
|
||||
@fa-var-retweet: "\f079";
|
||||
@fa-var-shopping-cart: "\f07a";
|
||||
@fa-var-folder: "\f07b";
|
||||
@fa-var-folder-open: "\f07c";
|
||||
@fa-var-arrows-v: "\f07d";
|
||||
@fa-var-arrows-h: "\f07e";
|
||||
@fa-var-bar-chart-o: "\f080";
|
||||
@fa-var-twitter-square: "\f081";
|
||||
@fa-var-facebook-square: "\f082";
|
||||
@fa-var-camera-retro: "\f083";
|
||||
@fa-var-key: "\f084";
|
||||
@fa-var-cogs: "\f085";
|
||||
@fa-var-comments: "\f086";
|
||||
@fa-var-thumbs-o-up: "\f087";
|
||||
@fa-var-thumbs-o-down: "\f088";
|
||||
@fa-var-star-half: "\f089";
|
||||
@fa-var-heart-o: "\f08a";
|
||||
@fa-var-sign-out: "\f08b";
|
||||
@fa-var-linkedin-square: "\f08c";
|
||||
@fa-var-thumb-tack: "\f08d";
|
||||
@fa-var-external-link: "\f08e";
|
||||
@fa-var-sign-in: "\f090";
|
||||
@fa-var-trophy: "\f091";
|
||||
@fa-var-github-square: "\f092";
|
||||
@fa-var-upload: "\f093";
|
||||
@fa-var-lemon-o: "\f094";
|
||||
@fa-var-phone: "\f095";
|
||||
@fa-var-square-o: "\f096";
|
||||
@fa-var-bookmark-o: "\f097";
|
||||
@fa-var-phone-square: "\f098";
|
||||
@fa-var-twitter: "\f099";
|
||||
@fa-var-facebook: "\f09a";
|
||||
@fa-var-github: "\f09b";
|
||||
@fa-var-unlock: "\f09c";
|
||||
@fa-var-credit-card: "\f09d";
|
||||
@fa-var-rss: "\f09e";
|
||||
@fa-var-hdd-o: "\f0a0";
|
||||
@fa-var-bullhorn: "\f0a1";
|
||||
@fa-var-bell: "\f0f3";
|
||||
@fa-var-certificate: "\f0a3";
|
||||
@fa-var-hand-o-right: "\f0a4";
|
||||
@fa-var-hand-o-left: "\f0a5";
|
||||
@fa-var-hand-o-up: "\f0a6";
|
||||
@fa-var-hand-o-down: "\f0a7";
|
||||
@fa-var-arrow-circle-left: "\f0a8";
|
||||
@fa-var-arrow-circle-right: "\f0a9";
|
||||
@fa-var-arrow-circle-up: "\f0aa";
|
||||
@fa-var-arrow-circle-down: "\f0ab";
|
||||
@fa-var-globe: "\f0ac";
|
||||
@fa-var-wrench: "\f0ad";
|
||||
@fa-var-tasks: "\f0ae";
|
||||
@fa-var-filter: "\f0b0";
|
||||
@fa-var-briefcase: "\f0b1";
|
||||
@fa-var-arrows-alt: "\f0b2";
|
||||
@fa-var-users: "\f0c0";
|
||||
@fa-var-link: "\f0c1";
|
||||
@fa-var-cloud: "\f0c2";
|
||||
@fa-var-flask: "\f0c3";
|
||||
@fa-var-scissors: "\f0c4";
|
||||
@fa-var-files-o: "\f0c5";
|
||||
@fa-var-paperclip: "\f0c6";
|
||||
@fa-var-floppy-o: "\f0c7";
|
||||
@fa-var-square: "\f0c8";
|
||||
@fa-var-bars: "\f0c9";
|
||||
@fa-var-list-ul: "\f0ca";
|
||||
@fa-var-list-ol: "\f0cb";
|
||||
@fa-var-strikethrough: "\f0cc";
|
||||
@fa-var-underline: "\f0cd";
|
||||
@fa-var-table: "\f0ce";
|
||||
@fa-var-magic: "\f0d0";
|
||||
@fa-var-truck: "\f0d1";
|
||||
@fa-var-pinterest: "\f0d2";
|
||||
@fa-var-pinterest-square: "\f0d3";
|
||||
@fa-var-google-plus-square: "\f0d4";
|
||||
@fa-var-google-plus: "\f0d5";
|
||||
@fa-var-money: "\f0d6";
|
||||
@fa-var-caret-down: "\f0d7";
|
||||
@fa-var-caret-up: "\f0d8";
|
||||
@fa-var-caret-left: "\f0d9";
|
||||
@fa-var-caret-right: "\f0da";
|
||||
@fa-var-columns: "\f0db";
|
||||
@fa-var-sort: "\f0dc";
|
||||
@fa-var-sort-asc: "\f0dd";
|
||||
@fa-var-sort-desc: "\f0de";
|
||||
@fa-var-envelope: "\f0e0";
|
||||
@fa-var-linkedin: "\f0e1";
|
||||
@fa-var-undo: "\f0e2";
|
||||
@fa-var-gavel: "\f0e3";
|
||||
@fa-var-tachometer: "\f0e4";
|
||||
@fa-var-comment-o: "\f0e5";
|
||||
@fa-var-comments-o: "\f0e6";
|
||||
@fa-var-bolt: "\f0e7";
|
||||
@fa-var-sitemap: "\f0e8";
|
||||
@fa-var-umbrella: "\f0e9";
|
||||
@fa-var-clipboard: "\f0ea";
|
||||
@fa-var-lightbulb-o: "\f0eb";
|
||||
@fa-var-exchange: "\f0ec";
|
||||
@fa-var-cloud-download: "\f0ed";
|
||||
@fa-var-cloud-upload: "\f0ee";
|
||||
@fa-var-user-md: "\f0f0";
|
||||
@fa-var-stethoscope: "\f0f1";
|
||||
@fa-var-suitcase: "\f0f2";
|
||||
@fa-var-bell-o: "\f0a2";
|
||||
@fa-var-coffee: "\f0f4";
|
||||
@fa-var-cutlery: "\f0f5";
|
||||
@fa-var-file-text-o: "\f0f6";
|
||||
@fa-var-building-o: "\f0f7";
|
||||
@fa-var-hospital-o: "\f0f8";
|
||||
@fa-var-ambulance: "\f0f9";
|
||||
@fa-var-medkit: "\f0fa";
|
||||
@fa-var-fighter-jet: "\f0fb";
|
||||
@fa-var-beer: "\f0fc";
|
||||
@fa-var-h-square: "\f0fd";
|
||||
@fa-var-plus-square: "\f0fe";
|
||||
@fa-var-angle-double-left: "\f100";
|
||||
@fa-var-angle-double-right: "\f101";
|
||||
@fa-var-angle-double-up: "\f102";
|
||||
@fa-var-angle-double-down: "\f103";
|
||||
@fa-var-angle-left: "\f104";
|
||||
@fa-var-angle-right: "\f105";
|
||||
@fa-var-angle-up: "\f106";
|
||||
@fa-var-angle-down: "\f107";
|
||||
@fa-var-desktop: "\f108";
|
||||
@fa-var-laptop: "\f109";
|
||||
@fa-var-tablet: "\f10a";
|
||||
@fa-var-mobile: "\f10b";
|
||||
@fa-var-circle-o: "\f10c";
|
||||
@fa-var-quote-left: "\f10d";
|
||||
@fa-var-quote-right: "\f10e";
|
||||
@fa-var-spinner: "\f110";
|
||||
@fa-var-circle: "\f111";
|
||||
@fa-var-reply: "\f112";
|
||||
@fa-var-github-alt: "\f113";
|
||||
@fa-var-folder-o: "\f114";
|
||||
@fa-var-folder-open-o: "\f115";
|
||||
@fa-var-smile-o: "\f118";
|
||||
@fa-var-frown-o: "\f119";
|
||||
@fa-var-meh-o: "\f11a";
|
||||
@fa-var-gamepad: "\f11b";
|
||||
@fa-var-keyboard-o: "\f11c";
|
||||
@fa-var-flag-o: "\f11d";
|
||||
@fa-var-flag-checkered: "\f11e";
|
||||
@fa-var-terminal: "\f120";
|
||||
@fa-var-code: "\f121";
|
||||
@fa-var-reply-all: "\f122";
|
||||
@fa-var-mail-reply-all: "\f122";
|
||||
@fa-var-star-half-o: "\f123";
|
||||
@fa-var-location-arrow: "\f124";
|
||||
@fa-var-crop: "\f125";
|
||||
@fa-var-code-fork: "\f126";
|
||||
@fa-var-chain-broken: "\f127";
|
||||
@fa-var-question: "\f128";
|
||||
@fa-var-info: "\f129";
|
||||
@fa-var-exclamation: "\f12a";
|
||||
@fa-var-superscript: "\f12b";
|
||||
@fa-var-subscript: "\f12c";
|
||||
@fa-var-eraser: "\f12d";
|
||||
@fa-var-puzzle-piece: "\f12e";
|
||||
@fa-var-microphone: "\f130";
|
||||
@fa-var-microphone-slash: "\f131";
|
||||
@fa-var-shield: "\f132";
|
||||
@fa-var-calendar-o: "\f133";
|
||||
@fa-var-fire-extinguisher: "\f134";
|
||||
@fa-var-rocket: "\f135";
|
||||
@fa-var-maxcdn: "\f136";
|
||||
@fa-var-chevron-circle-left: "\f137";
|
||||
@fa-var-chevron-circle-right: "\f138";
|
||||
@fa-var-chevron-circle-up: "\f139";
|
||||
@fa-var-chevron-circle-down: "\f13a";
|
||||
@fa-var-html5: "\f13b";
|
||||
@fa-var-css3: "\f13c";
|
||||
@fa-var-anchor: "\f13d";
|
||||
@fa-var-unlock-alt: "\f13e";
|
||||
@fa-var-bullseye: "\f140";
|
||||
@fa-var-ellipsis-h: "\f141";
|
||||
@fa-var-ellipsis-v: "\f142";
|
||||
@fa-var-rss-square: "\f143";
|
||||
@fa-var-play-circle: "\f144";
|
||||
@fa-var-ticket: "\f145";
|
||||
@fa-var-minus-square: "\f146";
|
||||
@fa-var-minus-square-o: "\f147";
|
||||
@fa-var-level-up: "\f148";
|
||||
@fa-var-level-down: "\f149";
|
||||
@fa-var-check-square: "\f14a";
|
||||
@fa-var-pencil-square: "\f14b";
|
||||
@fa-var-external-link-square: "\f14c";
|
||||
@fa-var-share-square: "\f14d";
|
||||
@fa-var-compass: "\f14e";
|
||||
@fa-var-caret-square-o-down: "\f150";
|
||||
@fa-var-caret-square-o-up: "\f151";
|
||||
@fa-var-caret-square-o-right: "\f152";
|
||||
@fa-var-eur: "\f153";
|
||||
@fa-var-gbp: "\f154";
|
||||
@fa-var-usd: "\f155";
|
||||
@fa-var-inr: "\f156";
|
||||
@fa-var-jpy: "\f157";
|
||||
@fa-var-rub: "\f158";
|
||||
@fa-var-krw: "\f159";
|
||||
@fa-var-btc: "\f15a";
|
||||
@fa-var-file: "\f15b";
|
||||
@fa-var-file-text: "\f15c";
|
||||
@fa-var-sort-alpha-asc: "\f15d";
|
||||
@fa-var-sort-alpha-desc: "\f15e";
|
||||
@fa-var-sort-amount-asc: "\f160";
|
||||
@fa-var-sort-amount-desc: "\f161";
|
||||
@fa-var-sort-numeric-asc: "\f162";
|
||||
@fa-var-sort-numeric-desc: "\f163";
|
||||
@fa-var-thumbs-up: "\f164";
|
||||
@fa-var-thumbs-down: "\f165";
|
||||
@fa-var-youtube-square: "\f166";
|
||||
@fa-var-youtube: "\f167";
|
||||
@fa-var-xing: "\f168";
|
||||
@fa-var-xing-square: "\f169";
|
||||
@fa-var-youtube-play: "\f16a";
|
||||
@fa-var-dropbox: "\f16b";
|
||||
@fa-var-stack-overflow: "\f16c";
|
||||
@fa-var-instagram: "\f16d";
|
||||
@fa-var-flickr: "\f16e";
|
||||
@fa-var-adn: "\f170";
|
||||
@fa-var-bitbucket: "\f171";
|
||||
@fa-var-bitbucket-square: "\f172";
|
||||
@fa-var-tumblr: "\f173";
|
||||
@fa-var-tumblr-square: "\f174";
|
||||
@fa-var-long-arrow-down: "\f175";
|
||||
@fa-var-long-arrow-up: "\f176";
|
||||
@fa-var-long-arrow-left: "\f177";
|
||||
@fa-var-long-arrow-right: "\f178";
|
||||
@fa-var-apple: "\f179";
|
||||
@fa-var-windows: "\f17a";
|
||||
@fa-var-android: "\f17b";
|
||||
@fa-var-linux: "\f17c";
|
||||
@fa-var-dribbble: "\f17d";
|
||||
@fa-var-skype: "\f17e";
|
||||
@fa-var-foursquare: "\f180";
|
||||
@fa-var-trello: "\f181";
|
||||
@fa-var-female: "\f182";
|
||||
@fa-var-male: "\f183";
|
||||
@fa-var-gittip: "\f184";
|
||||
@fa-var-sun-o: "\f185";
|
||||
@fa-var-moon-o: "\f186";
|
||||
@fa-var-archive: "\f187";
|
||||
@fa-var-bug: "\f188";
|
||||
@fa-var-vk: "\f189";
|
||||
@fa-var-weibo: "\f18a";
|
||||
@fa-var-renren: "\f18b";
|
||||
@fa-var-pagelines: "\f18c";
|
||||
@fa-var-stack-exchange: "\f18d";
|
||||
@fa-var-arrow-circle-o-right: "\f18e";
|
||||
@fa-var-arrow-circle-o-left: "\f190";
|
||||
@fa-var-caret-square-o-left: "\f191";
|
||||
@fa-var-dot-circle-o: "\f192";
|
||||
@fa-var-wheelchair: "\f193";
|
||||
@fa-var-vimeo-square: "\f194";
|
||||
@fa-var-try: "\f195";
|
||||
@fa-var-plus-square-o: "\f196";
|
||||
|
||||
201
install/ui/less/forms-override.less
Normal file
@@ -0,0 +1,201 @@
|
||||
/* Authors:
|
||||
* UXD team
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2013 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
// This file contains overrides of reference RCUE implementation to comply
|
||||
// with IPA design
|
||||
|
||||
|
||||
// variables
|
||||
@checkbox-color: darken(#b7b7b7, 20%);
|
||||
@checkbox-disabled-color: #d2d2d2;
|
||||
@checkbox-hover-color: #64b0db;
|
||||
@checkbox-selected-color: darken(@checkbox-hover-color, 20%);
|
||||
|
||||
/* Checkboxes and Radios */
|
||||
|
||||
.radio-cnt, .checkbox-cnt {
|
||||
position: relative;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
display: inline;
|
||||
position: absolute;
|
||||
overflow: hidden;
|
||||
margin:0;
|
||||
padding:0;
|
||||
border:0;
|
||||
outline:0;
|
||||
opacity:0;
|
||||
}
|
||||
|
||||
input[type="checkbox"]:focus + label:before,
|
||||
input[type="radio"]:focus + label:before {
|
||||
outline: thin dotted @checkbox-selected-color;
|
||||
}
|
||||
|
||||
input[type="checkbox"] + label,
|
||||
input[type="radio"] + label {
|
||||
display: inline-block;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
|
||||
&:before {
|
||||
.fa();
|
||||
|
||||
font-size: 125%;
|
||||
vertical-align: -7%;
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
input[type="checkbox"].standalone + label,
|
||||
input[type="radio"].standalone + label {
|
||||
width: 13px;
|
||||
|
||||
&:before {
|
||||
margin-right: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
input[type="radio"] + label,
|
||||
input[type="checkbox"] + label {
|
||||
|
||||
&:before {
|
||||
color: @checkbox-color;
|
||||
}
|
||||
|
||||
&:hover:before {
|
||||
color: @checkbox-hover-color;
|
||||
}
|
||||
}
|
||||
|
||||
input[type="radio"]:disabled + label,
|
||||
input[type="checkbox"]:disabled + label {
|
||||
color: @checkbox-disabled-color;
|
||||
|
||||
&:before,
|
||||
&:hover:before {
|
||||
color: @checkbox-disabled-color;
|
||||
}
|
||||
}
|
||||
|
||||
input[type="radio"]:disabled:checked + label,
|
||||
input[type="checkbox"]:disabled:checked + label {
|
||||
color: @checkbox-color;
|
||||
|
||||
&:before,
|
||||
&:hover:before {
|
||||
color: @checkbox-color;
|
||||
}
|
||||
}
|
||||
|
||||
input[type="checkbox"] + label:before {
|
||||
content: @fa-var-square-o;
|
||||
}
|
||||
|
||||
input[type="checkbox"]:checked + label:before {
|
||||
content: @fa-var-check-square-o;
|
||||
color: @checkbox-selected-color;
|
||||
}
|
||||
|
||||
input[type="radio"] + label:before {
|
||||
content: @fa-var-circle-o;
|
||||
}
|
||||
|
||||
input[type="radio"]:checked + label:before {
|
||||
content: @fa-var-dot-circle-o;
|
||||
color: @checkbox-selected-color;
|
||||
}
|
||||
|
||||
.form-horizontal {
|
||||
|
||||
.controls {
|
||||
|
||||
.link-btn {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
a, label {
|
||||
padding-top: 3px;
|
||||
}
|
||||
|
||||
// disable previous in combobox
|
||||
.combobox-widget a {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// implicit required indicator
|
||||
.form-group.required .control-label label:after {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
right: 6px;
|
||||
top: 0px;
|
||||
font-size: 125%;
|
||||
font-weight: bold;
|
||||
content: '*';
|
||||
color: #1d85d9;
|
||||
}
|
||||
|
||||
.fluid-row .form-group.required .control-label label:after {
|
||||
position: relative;
|
||||
right: -2px;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.form-group.required .control-label label:after {
|
||||
position: relative;
|
||||
right: -2px;
|
||||
}
|
||||
}
|
||||
|
||||
// don't show red highlight for valid controls in multivalued widget with error
|
||||
.has-error .valid .form-control {
|
||||
|
||||
border-color: #bababa !important;
|
||||
|
||||
&:hover {
|
||||
border-color: #66afe9 !important;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
border-color: #66afe9;
|
||||
outline: 0;
|
||||
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
|
||||
box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// tables
|
||||
.table > tfoot > tr > td.table-summary {
|
||||
// reset padding to properly style DataTables pagination
|
||||
padding: 0;
|
||||
|
||||
.summary {
|
||||
padding: 2px 10px 3px;
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
16
install/ui/less/ipa.less
Normal file
@@ -0,0 +1,16 @@
|
||||
/* FreeIPA styles */
|
||||
|
||||
@import "font-awesome/variables";
|
||||
@import "bootstrap/variables";
|
||||
@import "patternfly/variables";
|
||||
@import "variables";
|
||||
|
||||
@import "mixins";
|
||||
@import "layout";
|
||||
@import "forms-override";
|
||||
@import "alerts";
|
||||
@import "widgets";
|
||||
@import "plugins/otp";
|
||||
@import "login.less";
|
||||
@import "config-pages.less";
|
||||
@import "brand";
|
||||
26
install/ui/less/layout.less
Normal file
@@ -0,0 +1,26 @@
|
||||
#simple-container .content {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#container {
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
/* --- Table layout created by CSS --- */
|
||||
.table-layout {
|
||||
display: table;
|
||||
}
|
||||
.table-row {
|
||||
display: table-row;
|
||||
.table-cell {
|
||||
display: table-cell;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.table-head {
|
||||
padding: 0 5px 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
.break-words {
|
||||
word-break: break-all;
|
||||
}
|
||||
55
install/ui/less/login.less
Normal file
@@ -0,0 +1,55 @@
|
||||
/**
|
||||
* Authors:
|
||||
* UXD team
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2013 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
.facet[name=login] {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.login-pf-body {
|
||||
height: 100%;
|
||||
background: @login-bg-color url("@{img-path}/@{img-bg-login}") repeat-x 50% 0;
|
||||
background-size: auto;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.reset-login-pf-height() {
|
||||
.login-pf {
|
||||
height: auto;
|
||||
.login-pf-body {
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
.login-pf .container {
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
|
||||
// 768px = @screen-sm-min)
|
||||
@media (min-width: 768px) {
|
||||
.login-pf-body {
|
||||
background-size: 100% auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-height: 300px) {
|
||||
.reset-login-pf-height;
|
||||
}
|
||||
12
install/ui/less/mixins.less
Normal file
@@ -0,0 +1,12 @@
|
||||
//
|
||||
// Originally from Font Awesome
|
||||
|
||||
.fa() {
|
||||
display: inline-block;
|
||||
font-family: FontAwesome;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
line-height: 1;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
131
install/ui/less/patternfly.less
Normal file
@@ -0,0 +1,131 @@
|
||||
/**
|
||||
* Combination of Bootstrap 3, PatternFly and Font Awesome without
|
||||
* font imports which requires bundling of fonts. They are replaced
|
||||
* with system fonts (Open Sans, FontAwesome).
|
||||
*/
|
||||
|
||||
// Variables
|
||||
// Expects that dependencies are in the same directory as FreeIPA
|
||||
@bootstrap_dir: "../../../../bootstrap";
|
||||
@bootstrap_select_dir: "../../../../bootstrap-select";
|
||||
@fontawesome_dir: "../../../../Font-Awesome";
|
||||
@patternfly_dir: "../../../../patternfly";
|
||||
|
||||
/* Bootstrap 3 */
|
||||
|
||||
// Core variables and mixins
|
||||
@import "@{bootstrap_dir}/less/variables.less";
|
||||
@import "@{bootstrap_dir}/less/mixins.less";
|
||||
|
||||
// Reset
|
||||
@import "@{bootstrap_dir}/less/normalize.less";
|
||||
@import "@{bootstrap_dir}/less/print.less";
|
||||
|
||||
// Core CSS
|
||||
@import "@{bootstrap_dir}/less/scaffolding.less";
|
||||
@import "@{bootstrap_dir}/less/type.less";
|
||||
@import "@{bootstrap_dir}/less/code.less";
|
||||
@import "@{bootstrap_dir}/less/grid.less";
|
||||
@import "@{bootstrap_dir}/less/tables.less";
|
||||
@import "@{bootstrap_dir}/less/forms.less";
|
||||
@import "@{bootstrap_dir}/less/buttons.less";
|
||||
|
||||
// Components
|
||||
@import "@{bootstrap_dir}/less/component-animations.less";
|
||||
// we don't use glyphicons
|
||||
//@import "@{bootstrap_dir}/less/glyphicons.less";
|
||||
@import "@{bootstrap_dir}/less/dropdowns.less";
|
||||
@import "@{bootstrap_dir}/less/button-groups.less";
|
||||
@import "@{bootstrap_dir}/less/input-groups.less";
|
||||
@import "@{bootstrap_dir}/less/navs.less";
|
||||
@import "@{bootstrap_dir}/less/navbar.less";
|
||||
@import "@{bootstrap_dir}/less/breadcrumbs.less";
|
||||
@import "@{bootstrap_dir}/less/pagination.less";
|
||||
@import "@{bootstrap_dir}/less/pager.less";
|
||||
@import "@{bootstrap_dir}/less/labels.less";
|
||||
@import "@{bootstrap_dir}/less/badges.less";
|
||||
@import "@{bootstrap_dir}/less/jumbotron.less";
|
||||
@import "@{bootstrap_dir}/less/thumbnails.less";
|
||||
@import "@{bootstrap_dir}/less/alerts.less";
|
||||
@import "@{bootstrap_dir}/less/progress-bars.less";
|
||||
@import "@{bootstrap_dir}/less/media.less";
|
||||
@import "@{bootstrap_dir}/less/list-group.less";
|
||||
@import "@{bootstrap_dir}/less/panels.less";
|
||||
@import "@{bootstrap_dir}/less/wells.less";
|
||||
@import "@{bootstrap_dir}/less/close.less";
|
||||
|
||||
// Components w/ JavaScript
|
||||
@import "@{bootstrap_dir}/less/modals.less";
|
||||
@import "@{bootstrap_dir}/less/tooltip.less";
|
||||
@import "@{bootstrap_dir}/less/popovers.less";
|
||||
@import "@{bootstrap_dir}/less/carousel.less";
|
||||
|
||||
// Utility classes
|
||||
@import "@{bootstrap_dir}/less/utilities.less";
|
||||
@import "@{bootstrap_dir}/less/responsive-utilities.less";
|
||||
|
||||
|
||||
/* Font Awesome */
|
||||
@import "@{fontawesome_dir}/less/variables";
|
||||
@import "@{fontawesome_dir}/less/mixins";
|
||||
// Replace with our definition
|
||||
//@import "@{fontawesome_dir}/less/path";
|
||||
@import "font-awesome/path";
|
||||
@import "@{fontawesome_dir}/less/core";
|
||||
@import "@{fontawesome_dir}/less/larger";
|
||||
@import "@{fontawesome_dir}/less/fixed-width";
|
||||
@import "@{fontawesome_dir}/less/list";
|
||||
@import "@{fontawesome_dir}/less/bordered-pulled";
|
||||
@import "@{fontawesome_dir}/less/spinning";
|
||||
@import "@{fontawesome_dir}/less/rotated-flipped";
|
||||
@import "@{fontawesome_dir}/less/stacked";
|
||||
@import "@{fontawesome_dir}/less/icons";
|
||||
|
||||
/* Bootstrap-Combobox */
|
||||
//@import "../@{bootstrap_combox_dir}/less/combobox.less";
|
||||
|
||||
/* Bootstrap-Select */
|
||||
@import (less) "@{bootstrap_select_dir}/bootstrap-select.css";
|
||||
|
||||
/* PatternFly overrides and new stuff */
|
||||
// Based on "@{patternfly_dir}/less/patternfly.less";
|
||||
@import "@{patternfly_dir}/less/variables";
|
||||
@import "@{patternfly_dir}/less/mixins";
|
||||
@import "@{patternfly_dir}/less/alerts";
|
||||
@import "@{patternfly_dir}/less/badges";
|
||||
@import "@{patternfly_dir}/less/bootstrap-select";
|
||||
@import "@{patternfly_dir}/less/bootstrap-combobox.less";
|
||||
@import "@{patternfly_dir}/less/bootstrap-select.less";
|
||||
@import "@{patternfly_dir}/less/bootstrap-treeview.less";
|
||||
@import "@{patternfly_dir}/less/breadcrumbs";
|
||||
@import "@{patternfly_dir}/less/buttons";
|
||||
@import "@{patternfly_dir}/less/close";
|
||||
@import "@{patternfly_dir}/less/datatables";
|
||||
@import "@{patternfly_dir}/less/dropdowns";
|
||||
//@import "@{patternfly_dir}/less/fonts";
|
||||
@import "patternfly/font";
|
||||
@import "@{patternfly_dir}/less/forms";
|
||||
//@import "@{patternfly_dir}/less/icons";
|
||||
@import "@{patternfly_dir}/less/infotip";
|
||||
@import "@{patternfly_dir}/less/labels";
|
||||
@import "@{patternfly_dir}/less/list-group";
|
||||
@import "@{patternfly_dir}/less/login";
|
||||
@import "@{patternfly_dir}/less/modals";
|
||||
@import "@{patternfly_dir}/less/navbar";
|
||||
@import "@{patternfly_dir}/less/notifications-drawer";
|
||||
@import "@{patternfly_dir}/less/pager";
|
||||
@import "@{patternfly_dir}/less/pagination";
|
||||
@import "@{patternfly_dir}/less/panels";
|
||||
@import "@{patternfly_dir}/less/popovers";
|
||||
@import "@{patternfly_dir}/less/progress-bars.less";
|
||||
@import "@{patternfly_dir}/less/search.less";
|
||||
@import "@{patternfly_dir}/less/sidebar";
|
||||
@import "@{patternfly_dir}/less/spinner.less";
|
||||
@import "@{patternfly_dir}/less/syntax-highlighting.less";
|
||||
@import "@{patternfly_dir}/less/tables";
|
||||
@import "@{patternfly_dir}/less/tabs";
|
||||
@import "@{patternfly_dir}/less/tooltip";
|
||||
@import "@{patternfly_dir}/less/type";
|
||||
|
||||
// our overrides
|
||||
@fa-font-path: "../fonts/fontawesome";
|
||||
90
install/ui/less/patternfly/font.less
Normal file
@@ -0,0 +1,90 @@
|
||||
//
|
||||
// Font face definitions are different than original RCUE ones.
|
||||
// Here we supply only ttf variants. Additionally local variant can be
|
||||
// used so it can save some load time in some browsers.
|
||||
//
|
||||
// This approach has a disadvantage:
|
||||
// - fonts do not work in IE8 and below
|
||||
//
|
||||
// Advantage is that it nicely fits into Fedora packaging guidelines
|
||||
//
|
||||
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('Open Sans'), local('OpenSans'),
|
||||
url('../fonts/open-sans/OpenSans-Regular.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
src: local('OpenSans-Light'), local('Open Sans Light'),
|
||||
url('../fonts/open-sans/OpenSans-Light.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
src: local('Open Sans Semibold'), local('OpenSans-Semibold'),
|
||||
url('../fonts/open-sans/OpenSans-Semibold.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: local('Open Sans Bold'), local('OpenSans-Bold'),
|
||||
url('../fonts/open-sans/OpenSans-Bold.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 800;
|
||||
src: local('Open Sans Extrabold'), local('OpenSans-Extrabold'),
|
||||
url('../fonts/open-sans/OpenSans-ExtraBold.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 300;
|
||||
src: local('Open Sans Light Italic'), local('OpenSansLight-Italic'),
|
||||
url('../fonts/open-sans/OpenSans-LightItalic.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: local('Open Sans Italic'), local('OpenSans-Italic'),
|
||||
url('../fonts/open-sans/OpenSans-Italic.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 600;
|
||||
src: local('Open Sans Semibold Italic'), local('OpenSans-SemiboldItalic'),
|
||||
url('../fonts/open-sans/OpenSans-SemiboldItalic.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'),
|
||||
url('../fonts/open-sans/OpenSans-BoldItalic.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 800;
|
||||
src: local('Open Sans Extrabold Italic'), local('OpenSans-ExtraboldItalic'),
|
||||
url('../fonts/open-sans/OpenSans-ExtraBoldItalic.ttf') format('truetype');
|
||||
}
|
||||
194
install/ui/less/patternfly/variables.less
Executable file
@@ -0,0 +1,194 @@
|
||||
//
|
||||
// Variables
|
||||
// --------------------------------------------------
|
||||
// Bootstrap overrides and PatternFly-specific variables
|
||||
|
||||
/* Bootstrap overrides */
|
||||
@alert-danger-bg: @body-bg;
|
||||
@alert-danger-border: @brand-danger;
|
||||
@alert-danger-text: @gray-dark;
|
||||
@alert-info-bg: @body-bg;
|
||||
@alert-info-border: #ccc;
|
||||
@alert-info-text: @gray-dark;
|
||||
@alert-link-font-weight: 500;
|
||||
@alert-padding: 7px;
|
||||
@alert-success-bg: @body-bg;
|
||||
@alert-success-border: @brand-success;
|
||||
@alert-success-text: @gray-dark;
|
||||
@alert-warning-bg: @body-bg;
|
||||
@alert-warning-border: @brand-warning;
|
||||
@alert-warning-text: @gray-dark;
|
||||
@badge-border-radius: @border-radius-base;
|
||||
@border-radius-base: 1px;
|
||||
@border-radius-large: @border-radius-base;
|
||||
@border-radius-small: @border-radius-base;
|
||||
@brand-primary: #1cace9;
|
||||
@brand-success: #5cb75c;
|
||||
@brand-info: #27799c;
|
||||
@brand-warning: #eb7720;
|
||||
@brand-danger: #c90813;
|
||||
@breadcrumb-active-color: @gray-pf;
|
||||
@breadcrumb-bg: transparent;
|
||||
@breadcrumb-color: @gray-pf;
|
||||
@breadcrumb-separator: @fa-var-angle-right;
|
||||
@btn-danger-bg: #ab070f;
|
||||
@btn-danger-border: #781919;
|
||||
@btn-default-bg: @gray-lighter;
|
||||
@btn-default-border: #b7b7b7;
|
||||
@btn-default-color: @gray-pf;
|
||||
@btn-font-weight: 600;
|
||||
@btn-primary-bg: #189AD1;
|
||||
@btn-primary-border: #267DA1;
|
||||
@caret-width-base: 0;
|
||||
@caret-width-large: @caret-width-base;
|
||||
@dropdown-border: #b6b6b6;
|
||||
@dropdown-divider-bg: #e5e5e5;
|
||||
@dropdown-fallback-border: @dropdown-border;
|
||||
@dropdown-link-active-bg: @link-color;
|
||||
@dropdown-link-active-color: #fff;
|
||||
@dropdown-link-hover-bg: #d4edfa;
|
||||
@dropdown-link-hover-color: @gray-pf;
|
||||
@font-family-base: "Open Sans", Helvetica, Arial, sans-serif;
|
||||
@font-size-base: 12px;
|
||||
@font-size-h1: ceil(@font-size-base * 2); // ~24px
|
||||
@font-size-h2: ceil(@font-size-base * 1.8333); // ~22px
|
||||
@font-size-h3: ceil(@font-size-base * 1.3333); // ~16px
|
||||
@font-size-h5: ceil(@font-size-base * 1.0833); // ~13px
|
||||
@font-size-large: ceil(@font-size-base * 1.1666); // ~14px
|
||||
@font-size-small: ceil(@font-size-base * .9166); // ~11px
|
||||
@grid-gutter-width: 40px;
|
||||
@icon-font-path: "../../components/bootstrap/dist/fonts/";
|
||||
@input-bg-disabled: #F8F8F8;
|
||||
@input-border: #BABABA;
|
||||
@input-color: @gray-dark;
|
||||
@line-height-base: 1.66666667; // 20/12
|
||||
@link-color: #0099d3;
|
||||
@list-group-border: #f2f2f2;
|
||||
@list-group-border-radius: 0;
|
||||
@list-group-hover-bg: #d4edfa;
|
||||
@link-hover-color: #00618a;
|
||||
@nav-tabs-active-link-hover-color: @link-color;
|
||||
@nav-tabs-border-color: #e9e8e8;
|
||||
@nav-tabs-justified-link-border-color: @nav-tabs-border-color;
|
||||
@nav-tabs-link-hover-border-color: transparent;
|
||||
@padding-base-horizontal: 6px;
|
||||
@padding-base-vertical: 2px;
|
||||
@padding-large-horizontal: 10px;
|
||||
@padding-large-vertical: 6px;
|
||||
@padding-small-horizontal: @padding-base-horizontal;
|
||||
@padding-small-vertical: @padding-base-vertical;
|
||||
@pager-border-radius: 0;
|
||||
@pager-disabled-color: #969696;
|
||||
@pagination-bg: #f5f5f5;
|
||||
@pagination-border: #bbbbbb;
|
||||
@pagination-hover-bg: #ededed;
|
||||
@panel-danger-border: @brand-danger;
|
||||
@panel-danger-heading-bg: @brand-danger;
|
||||
@panel-danger-text: @panel-primary-text;
|
||||
@panel-info-border: @brand-info;
|
||||
@panel-info-heading-bg: @brand-info;
|
||||
@panel-info-text: @panel-primary-text;
|
||||
@panel-inner-border: #cecdcd;
|
||||
@panel-success-border: @brand-success;
|
||||
@panel-success-heading-bg: @brand-success;
|
||||
@panel-success-text: @panel-primary-text;
|
||||
@panel-warning-border: @brand-warning;
|
||||
@panel-warning-heading-bg: @brand-warning;
|
||||
@panel-warning-text: @panel-primary-text;
|
||||
@popover-arrow-color: #fff;
|
||||
@popover-arrow-outer-color: #bbb;
|
||||
@popover-border-color: #bbb;
|
||||
@popover-max-width: 220px;
|
||||
@popover-title-bg: #f5f5f5;
|
||||
@table-bg-accent: #f5f5f5;
|
||||
@table-bg-hover: #d5ecf9;
|
||||
@table-border-color: #d1d1d1;
|
||||
@table-cell-padding: 10px;
|
||||
@tooltip-arrow-width: 8px;
|
||||
@tooltip-bg: #434343;
|
||||
@tooltip-max-width: 220px;
|
||||
|
||||
/* PatternFly-specific */
|
||||
@btn-danger-bg-img-start: #d60915;
|
||||
@btn-danger-bg-img-stop: #ac0710;
|
||||
@btn-default-bg-img-start: #fafafa;
|
||||
@btn-default-bg-img-stop: #ededed;
|
||||
@btn-primary-bg-img-start: #1CACE8;
|
||||
@btn-primary-bg-img-stop: #1998CC;
|
||||
@btn-xs-font-weight: 400;
|
||||
@dropdown-divider-margin: 4px 1px;
|
||||
@dropdown-link-active-border-color: #0076b7;
|
||||
@dropdown-link-hover-border-color: #b3d3e7;
|
||||
@dropdown-link-focus-bg: @link-color;
|
||||
@dropdown-link-focus-color: #fff;
|
||||
@fa-font-path: "../../components/font-awesome/fonts";
|
||||
@font-path: "../fonts";
|
||||
@gray-light-pf: #aaa;
|
||||
@gray-pf: #4d5258;
|
||||
@icon-font-name-fa: "FontAwesome";
|
||||
@icon-font-name-pf: "PatternFlyIcons-webfont";
|
||||
@icon-prefix: pficon;
|
||||
@img-badge-ie8: "logo.png";
|
||||
@img-badge-ie8-height: 69px;
|
||||
@img-badge-ie8-width: 73px;
|
||||
@img-bg-login: "bg-login.jpg";
|
||||
@img-brand-ie8: "brand.png";
|
||||
@img-brand-lg-ie8: "brand-lg.png";
|
||||
@img-path: "../img";
|
||||
@img-path-alt: @img-path;
|
||||
@input-border-disabled: #d4d4d4;
|
||||
@list-group-top-border: #e9e8e8;
|
||||
@login-bg-color: #080808;
|
||||
@login-container-bg-color: #181818;
|
||||
@login-container-bg-color-rgba: rgba(255, 255, 255, 0.055);
|
||||
@modal-title-padding-horizontal: 18px;
|
||||
@modal-title-padding-vertical: 10px;
|
||||
@nav-tabs-color: @gray-pf;
|
||||
@navbar-pf-bg-color: #030303; //#393F45
|
||||
@navbar-pf-border-color: #199dde;
|
||||
@navbar-pf-active-color: #f1f1f1;
|
||||
@navbar-pf-color: #cfcfcf;
|
||||
@navbar-pf-icon-bar-bg-color: #fff;
|
||||
@navbar-pf-navbar-header-border-color: lighten(@navbar-pf-bg-color, 15%);
|
||||
@navbar-pf-navbar-nav-active-bg-color: lighten(@navbar-pf-bg-color, 12.5%);
|
||||
@navbar-pf-navbar-nav-active-active-bg-color: lighten(@navbar-pf-bg-color, 8%);
|
||||
@navbar-pf-navbar-nav-active-active-open-bg-color: lighten(@navbar-pf-bg-color, 11%);
|
||||
@navbar-pf-navbar-navbar-brand-padding: 8px 0 7px;
|
||||
@navbar-pf-navbar-navbar-brand-min-width: 270px;
|
||||
@navbar-pf-navbar-navbar-persistent-bg-color: #f6f6f6;
|
||||
@navbar-pf-navbar-navbar-persistent-border-color: #cecdcd;
|
||||
@navbar-pf-navbar-primary-active-bg-color-start: lighten(@navbar-pf-navbar-primary-hover-bg-color-start, 5%);
|
||||
@navbar-pf-navbar-primary-active-bg-color-stop: lighten(@navbar-pf-navbar-primary-hover-bg-color-stop, 7.5%);
|
||||
@navbar-pf-navbar-primary-active-border-color: lighten(@navbar-pf-navbar-primary-hover-border-color, 5%);
|
||||
@navbar-pf-navbar-primary-bg-color-start: lighten(@navbar-pf-bg-color, 10%); // #474C50;
|
||||
@navbar-pf-navbar-primary-bg-color-stop: @navbar-pf-bg-color; // #383F43;
|
||||
@navbar-pf-navbar-primary-context-active-bg-color-start: lighten(@navbar-pf-navbar-primary-context-hover-bg-color-start, 5%);
|
||||
@navbar-pf-navbar-primary-context-active-bg-color-stop: lighten(@navbar-pf-navbar-primary-context-hover-bg-color-stop, 7.5%);
|
||||
@navbar-pf-navbar-primary-context-active-border-color: lighten(@navbar-pf-navbar-primary-context-hover-border-color, 5%);
|
||||
@navbar-pf-navbar-primary-context-active-border-right-color: @navbar-pf-navbar-primary-context-active-border-color;
|
||||
@navbar-pf-navbar-primary-context-active-border-top-color: lighten(@navbar-pf-navbar-primary-context-hover-border-top-color, 6%);
|
||||
@navbar-pf-navbar-primary-context-bg-color-start: lighten(@navbar-pf-navbar-primary-bg-color-start, 8.5%);
|
||||
@navbar-pf-navbar-primary-context-bg-color-stop: lighten(@navbar-pf-navbar-primary-bg-color-stop, 11%);
|
||||
@navbar-pf-navbar-primary-context-border-color: lighten(@navbar-pf-navbar-header-border-color, 8%);
|
||||
@navbar-pf-navbar-primary-context-border-top-color: lighten(@navbar-pf-navbar-header-border-color, 7%);
|
||||
@navbar-pf-navbar-primary-context-hover-bg-color-start: lighten(@navbar-pf-navbar-primary-context-bg-color-start, 5%);
|
||||
@navbar-pf-navbar-primary-context-hover-bg-color-stop: lighten(@navbar-pf-navbar-primary-context-bg-color-stop, 7.5%);
|
||||
@navbar-pf-navbar-primary-context-hover-border-color: lighten(@navbar-pf-navbar-primary-context-border-color, 5%);
|
||||
@navbar-pf-navbar-primary-context-hover-border-top-color: lighten(@navbar-pf-navbar-primary-context-border-top-color, 6%);
|
||||
@navbar-pf-navbar-primary-hover-bg-color-start: lighten(@navbar-pf-navbar-primary-bg-color-start, 10%);
|
||||
@navbar-pf-navbar-primary-hover-bg-color-stop: lighten(@navbar-pf-navbar-primary-bg-color-stop, 10%);
|
||||
@navbar-pf-navbar-primary-hover-border-color: lighten(@navbar-pf-navbar-header-border-color, 20%);
|
||||
@navbar-pf-navbar-utility-border-color: lighten(@navbar-pf-bg-color, 15.5%);
|
||||
@navbar-pf-navbar-utility-color: @navbar-pf-color;
|
||||
@navbar-pf-navbar-utility-hover-bg-color: lighten(@navbar-pf-bg-color, 12.5%);
|
||||
@navbar-pf-navbar-utility-hover-border-color: lighten(@navbar-pf-navbar-utility-border-color, 5%);
|
||||
@navbar-pf-navbar-utility-open-bg-color: lighten(@navbar-pf-navbar-utility-hover-bg-color, 7.5%);
|
||||
@navbar-pf-navbar-utility-open-border-color: lighten(@navbar-pf-navbar-utility-hover-border-color, 5%);
|
||||
@pagination-padding-small-vertical: 0;
|
||||
@panel-default-border-color: #bebdbd;
|
||||
@sidebar-pf-bg: #fafafa;
|
||||
@sidebar-pf-border-color: #d0d0d0;
|
||||
@table-border-hover: #a7cadf;
|
||||
@table-cell-padding-bottom: 3px;
|
||||
@table-cell-padding-top: 2px;
|
||||
@tooltip-font-size: @font-size-base;
|
||||
1
install/ui/less/plugins/load_page.less
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
9
install/ui/less/plugins/otp.less
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
.otp-uri {
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.qrcode-widget img {
|
||||
margin: 0 auto;
|
||||
max-width: 100%;
|
||||
}
|
||||
5
install/ui/less/variables.less
Normal file
@@ -0,0 +1,5 @@
|
||||
// FreeIPA Less Variables
|
||||
|
||||
@img-path: '../images';
|
||||
@img-bg-login: 'login-screen-background.jpg';
|
||||
@login-bg-color: #25292d;
|
||||
248
install/ui/less/widgets.less
Normal file
@@ -0,0 +1,248 @@
|
||||
|
||||
|
||||
#simple-container {
|
||||
|
||||
.global-activity-indicator {
|
||||
|
||||
bottom: auto;
|
||||
height: auto;
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
color: white;
|
||||
width: 200px;
|
||||
text-align: left;
|
||||
|
||||
.activity-row {
|
||||
background-color: transparent;
|
||||
display: block;
|
||||
padding: 10px 20px;
|
||||
}
|
||||
|
||||
.activity-text {
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.activity-text {
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
.slider {
|
||||
transition-property: all;
|
||||
transition-duration: .5s;
|
||||
transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
|
||||
}
|
||||
}
|
||||
|
||||
.global-activity-indicator {
|
||||
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
text-shadow: none;
|
||||
color: black;
|
||||
font-size: 20px;
|
||||
font-weight: 300;
|
||||
height: 80px;
|
||||
margin: auto;
|
||||
text-align: center;
|
||||
|
||||
.activity-row {
|
||||
display: inline-block;
|
||||
background-color: rgba(0, 0, 0, 0.2);
|
||||
padding: 7px;
|
||||
border: 1px solid rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.activity-text {
|
||||
padding: 3px 14px;
|
||||
background-color: white;
|
||||
}
|
||||
}
|
||||
|
||||
.slider {
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
#simple-container .slider.closed,
|
||||
.slider.closed {
|
||||
max-height: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
// Rule Details Widget
|
||||
|
||||
.rule-enable-radio {
|
||||
// make some space for 'Undo' button
|
||||
line-height: @input-height-base + 2;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
// SSH Key Widget
|
||||
|
||||
.sshkey-status {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
// Make bootstrap tooltips wider
|
||||
.tooltip-inner {
|
||||
min-width: 200px;
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
// Datetime widget
|
||||
.input-group .form-control.datetime-hour,
|
||||
.input-group .form-control.datetime-minutes {
|
||||
width: 30px;
|
||||
}
|
||||
|
||||
.datetime-widget .time-cnt {
|
||||
width: 1%;
|
||||
display: table-cell;
|
||||
|
||||
.input-group-addon {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.time-separator {
|
||||
padding-left: 2px;
|
||||
padding-right: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.datetime-widget .time-group {
|
||||
display: table;
|
||||
padding-left: 10px
|
||||
}
|
||||
|
||||
.apibrowser {
|
||||
.item-select input[type=text] {
|
||||
width: 100%;
|
||||
padding-left: 5px;
|
||||
}
|
||||
.label {
|
||||
margin-left: 5px; // spacing between param flags
|
||||
}
|
||||
.prop-label {
|
||||
text-align: right;
|
||||
font-weight: 300;
|
||||
}
|
||||
}
|
||||
|
||||
// Certificate Widget
|
||||
|
||||
.certificate-widget {
|
||||
padding: 5px 5px 5px 5px;
|
||||
border: 1px dashed #DDD;
|
||||
label {
|
||||
padding-right: 10px;
|
||||
}
|
||||
.cert-value {
|
||||
padding-left: 5px;
|
||||
}
|
||||
.certificate {
|
||||
word-wrap: break-word;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
.dropdown {
|
||||
float:right;
|
||||
}
|
||||
ul.dropdown-menu {
|
||||
min-width: 100px;
|
||||
}
|
||||
.watermark {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
opacity:0.5;
|
||||
font-size: 150%;
|
||||
}
|
||||
}
|
||||
|
||||
// Working widget
|
||||
|
||||
.working-widget {
|
||||
position: absolute;
|
||||
display: none;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
.spinner {
|
||||
align-self: center;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=409254
|
||||
tbody:empty { display: none; }
|
||||
|
||||
// Topology Graph
|
||||
|
||||
.topology-view {
|
||||
svg {
|
||||
background-color: #FFF;
|
||||
cursor: default;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
-o-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
|
||||
path.link {
|
||||
fill: none;
|
||||
stroke: #000;
|
||||
stroke-width: 4px;
|
||||
cursor: pointer;
|
||||
.dragline {
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
.plus {
|
||||
font-size: .9em;
|
||||
font-family: FontAwesome;
|
||||
fill: #fff;
|
||||
}
|
||||
|
||||
.adder_label {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
path.adder {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.selected {
|
||||
stroke-dasharray: 10,2;
|
||||
}
|
||||
|
||||
.marker {
|
||||
stroke: rgba(0, 0, 0);
|
||||
}
|
||||
|
||||
circle.node {
|
||||
stroke-width: 1.5px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
text {
|
||||
font: 16px sans-serif;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
text.id {
|
||||
text-anchor: middle;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Moves message next to the rule radio button to the right in caacl plugin.
|
||||
*/
|
||||
.rule-radio-note {
|
||||
float: right;
|
||||
}
|
||||
122
install/ui/reset_password.html
Normal file
@@ -0,0 +1,122 @@
|
||||
<!DOCTYPE html>
|
||||
<html class="login-pf">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>IPA: Identity Policy Audit</title>
|
||||
<script type="text/javascript" src="js/libs/loader.js"></script>
|
||||
<script type="text/javascript">
|
||||
(function() {
|
||||
var styles = [
|
||||
'../ui/css/patternfly.css',
|
||||
'../ui/css/ipa.css',
|
||||
'../ui/ipa.css'
|
||||
];
|
||||
ipa_loader.styles(styles);
|
||||
ipa_loader.scripts([
|
||||
'js/libs/jquery.js',
|
||||
'reset_password.js'
|
||||
]);
|
||||
})();
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="login-pf-body">
|
||||
<span id="badge">
|
||||
<img src="images/login-screen-logo.png" alt="" />
|
||||
</span>
|
||||
<div class="container">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-12">
|
||||
<div id="brand">
|
||||
<img src="images/product-name.png" alt="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-7 col-md-6 col-lg-5 login">
|
||||
<form class="form-horizontal" role="form" action="/ipa/session/change_password" method="post" id="reset_password">
|
||||
<div class="form-group validation-summary-group">
|
||||
<div class="col-sm-12 controls">
|
||||
<div class="widget validation-summary">
|
||||
<div class="alert alert-success" style="display:none;">
|
||||
<span class="fa fa-check-circle-o"></span><p></p>
|
||||
</div>
|
||||
<div class="alert alert-danger" style="display:none;">
|
||||
<span class="fa fa-exclamation-circle"></span><p></p>
|
||||
</div>
|
||||
<div class="alert alert-warning" style="display:none;">
|
||||
<span class="fa fa-warning"></span><p></p>
|
||||
</div>
|
||||
<div class="alert alert-info" style="display:none;">
|
||||
<span class="fa fa-info-circle"></span><p></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-4 control-label">
|
||||
<label for="user">Username</label>
|
||||
</div>
|
||||
<div class="col-sm-8 controls">
|
||||
<div class="widget text-widget">
|
||||
<input type="text" class="form-control" name="user" id="user" title="Username" accesskey="u">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-4 control-label">
|
||||
<label for="old_password">Current Password</label>
|
||||
</div>
|
||||
<div class="col-sm-8 controls">
|
||||
<div class="widget text-widget">
|
||||
<input type="password" class="form-control" name="old_password" id="old_password" accesskey="p">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-4 control-label">
|
||||
<label for="otp">OTP</label>
|
||||
</div>
|
||||
<div class="col-sm-8 controls">
|
||||
<div class="widget text-widget">
|
||||
<input type="password" class="form-control" name="otp" id="otp" accesskey="o">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-4 control-label">
|
||||
<label for="new_password">New Password</label>
|
||||
</div>
|
||||
<div class="col-sm-8 controls">
|
||||
<div class="widget text-widget">
|
||||
<input type="password" class="form-control" name="new_password" id="new_password" accesskey="n">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-4 control-label">
|
||||
<label for="verify_password">Verify Password</label>
|
||||
</div>
|
||||
<div class="col-sm-8 controls">
|
||||
<div class="widget text-widget">
|
||||
<input type="password" class="form-control" id="verify_password" accesskey="v">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-xs-4 col-sm-offset-4 col-sm-8 submit">
|
||||
<input name="submit" class="btn btn-primary btn-lg" value="Reset" type="submit" />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="col-sm-5 col-md-6 col-lg-7 details">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
224
install/ui/reset_password.js
Normal file
@@ -0,0 +1,224 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
var RP = {}; //Reset Password Page
|
||||
|
||||
RP.reset_password = function(username, old_password, new_password, otp) {
|
||||
|
||||
//possible results: 'ok', 'invalid-password', 'policy-error'
|
||||
|
||||
var status, result, reason, invalid, failure, data, request;
|
||||
|
||||
status = 'invalid';
|
||||
result = {
|
||||
status: status,
|
||||
message: "Password reset was not successful."
|
||||
};
|
||||
|
||||
function success_handler(data, text_status, xhr) {
|
||||
|
||||
result.status = xhr.getResponseHeader("X-IPA-Pwchange-Result") || status;
|
||||
|
||||
if (result.status === 'policy-error') {
|
||||
result.message = xhr.getResponseHeader("X-IPA-Pwchange-Policy-Error");
|
||||
} else if (result.status === 'invalid-password') {
|
||||
result.message = "The password or username you entered is incorrect.";
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
function error_handler(xhr, text_status, error_thrown) {
|
||||
return result;
|
||||
}
|
||||
|
||||
data = {
|
||||
user: username,
|
||||
old_password: old_password,
|
||||
new_password: new_password
|
||||
};
|
||||
|
||||
if (otp) {
|
||||
data.otp = otp;
|
||||
}
|
||||
|
||||
request = {
|
||||
url: '/ipa/session/change_password',
|
||||
data: data,
|
||||
contentType: 'application/x-www-form-urlencoded',
|
||||
processData: true,
|
||||
dataType: 'html',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
success: success_handler,
|
||||
error: error_handler
|
||||
};
|
||||
|
||||
$.ajax(request);
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
RP.verify_required = function(field, value) {
|
||||
|
||||
var valid = true;
|
||||
|
||||
if (!value || value === '') {
|
||||
valid = false;
|
||||
RP.show_error(field +" is required");
|
||||
}
|
||||
|
||||
return valid;
|
||||
};
|
||||
|
||||
|
||||
RP.on_submit = function() {
|
||||
|
||||
var username = $('#user').val();
|
||||
var current_password = $('#old_password').val();
|
||||
var otp = $('#otp').val();
|
||||
var new_password = $('#new_password').val();
|
||||
var verify_password = $('#verify_password').val();
|
||||
|
||||
if (!RP.verify_required('Username', username)) return;
|
||||
if (!RP.verify_required('Current Password', current_password)) return;
|
||||
if (!RP.verify_required('New Password', new_password)) return;
|
||||
if (!RP.verify_required('Verify Password', verify_password)) return;
|
||||
|
||||
if (new_password !== verify_password) {
|
||||
RP.show_error("Passwords must match");
|
||||
return;
|
||||
}
|
||||
|
||||
var result = RP.reset_password(username, current_password, new_password, otp);
|
||||
|
||||
if (result.status !== 'ok') {
|
||||
RP.show_error(result.message);
|
||||
} else {
|
||||
RP.reset_form();
|
||||
RP.show_success("Password reset was successful.");
|
||||
RP.redirect();
|
||||
}
|
||||
};
|
||||
|
||||
RP.reset_form = function() {
|
||||
$('.alert-danger').css('display', 'none');
|
||||
$('.alert-success').css('display', 'none');
|
||||
$('#old_password').val('');
|
||||
$('#otp').val('');
|
||||
$('#new_password').val('');
|
||||
$('#verify_password').val('');
|
||||
};
|
||||
|
||||
RP.show_error = function(message) {
|
||||
|
||||
$('.alert-danger > p').text(message);
|
||||
$('.alert-danger').css('display', '');
|
||||
$('.alert-success').css('display', 'none');
|
||||
};
|
||||
|
||||
RP.show_info = function(message) {
|
||||
|
||||
$('.alert-info > p').text(message || '');
|
||||
if (!message) {
|
||||
$('.alert-info').css('display', 'none');
|
||||
} else {
|
||||
$('.alert-info').css('display', '');
|
||||
}
|
||||
};
|
||||
|
||||
RP.show_success = function(message) {
|
||||
|
||||
$('.alert-success > p').text(message);
|
||||
$('.alert-danger').css('display', 'none');
|
||||
$('.alert-success').css('display', '');
|
||||
};
|
||||
|
||||
RP.parse_uri = function() {
|
||||
var opts = {};
|
||||
if (window.location.search.length > 1) {
|
||||
var couples = window.location.search.substr(1).split("&");
|
||||
for (var i=0,l=couples.length; i < l; i++) {
|
||||
var couple = couples[i].split("=");
|
||||
var key = decodeURIComponent(couple[0]);
|
||||
var value = couple.length > 1 ? decodeURIComponent(couple[1]) : '';
|
||||
opts[key] = value;
|
||||
}
|
||||
}
|
||||
return opts;
|
||||
};
|
||||
|
||||
RP.redirect = function() {
|
||||
|
||||
var opts = RP.parse_uri();
|
||||
var url = opts['url'];
|
||||
var delay = parseInt(opts['delay'], 10);
|
||||
|
||||
var msg_cont = $('.alert-success > p');
|
||||
$('.redirect', msg_cont).remove();
|
||||
|
||||
// button for manual redirection
|
||||
if (url) {
|
||||
var redir_cont = $('<span/>', { 'class': 'redirect' }).
|
||||
append(' ').
|
||||
append($('<a/>', {
|
||||
href: url,
|
||||
text: 'Continue to next page'
|
||||
})).
|
||||
appendTo(msg_cont);
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
if (delay <= 0 || delay > 0) { // NaN check
|
||||
RP.redir_url = url;
|
||||
RP.redir_delay = delay;
|
||||
RP.redir_count_down();
|
||||
}
|
||||
};
|
||||
|
||||
RP.redir_count_down = function() {
|
||||
|
||||
RP.show_info("You will be redirected in " + Math.max(RP.redir_delay, 0) + "s");
|
||||
if (RP.redir_delay <= 0) {
|
||||
window.location = RP.redir_url;
|
||||
return;
|
||||
}
|
||||
window.setTimeout(RP.redir_count_down, 1000);
|
||||
RP.redir_delay--;
|
||||
};
|
||||
|
||||
|
||||
RP.init = function() {
|
||||
var opts = RP.parse_uri();
|
||||
if (opts['user']) {
|
||||
$("#user").val(opts['user']);
|
||||
}
|
||||
|
||||
$('#reset_password').submit(function() {
|
||||
RP.on_submit();
|
||||
return false;
|
||||
});
|
||||
};
|
||||
|
||||
/* main (document onready event handler) */
|
||||
$(function() {
|
||||
RP.init();
|
||||
});
|
||||
13
install/ui/src/Makefile.am
Normal file
@@ -0,0 +1,13 @@
|
||||
AUTOMAKE_OPTIONS = 1.7
|
||||
|
||||
NULL =
|
||||
|
||||
SUBDIRS = \
|
||||
libs \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DIST = \
|
||||
build.profile.js \
|
||||
dojo.profile.js \
|
||||
freeipa \
|
||||
webui.profile.js
|
||||
739
install/ui/src/Makefile.in
Normal file
@@ -0,0 +1,739 @@
|
||||
# Makefile.in generated by automake 1.15.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2017 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = { \
|
||||
if test -z '$(MAKELEVEL)'; then \
|
||||
false; \
|
||||
elif test -n '$(MAKE_HOST)'; then \
|
||||
true; \
|
||||
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
|
||||
true; \
|
||||
else \
|
||||
false; \
|
||||
fi; \
|
||||
}
|
||||
am__make_running_with_option = \
|
||||
case $${target_option-} in \
|
||||
?) ;; \
|
||||
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||
"target option '$${target_option-}' specified" >&2; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
has_opt=no; \
|
||||
sane_makeflags=$$MAKEFLAGS; \
|
||||
if $(am__is_gnu_make); then \
|
||||
sane_makeflags=$$MFLAGS; \
|
||||
else \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
bs=\\; \
|
||||
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||
esac; \
|
||||
fi; \
|
||||
skip_next=no; \
|
||||
strip_trailopt () \
|
||||
{ \
|
||||
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||
}; \
|
||||
for flg in $$sane_makeflags; do \
|
||||
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||
case $$flg in \
|
||||
*=*|--*) continue;; \
|
||||
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||
-*I?*) strip_trailopt 'I';; \
|
||||
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||
-*O?*) strip_trailopt 'O';; \
|
||||
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||
-*l?*) strip_trailopt 'l';; \
|
||||
-[dEDm]) skip_next=yes;; \
|
||||
-[JT]) skip_next=yes;; \
|
||||
esac; \
|
||||
case $$flg in \
|
||||
*$$target_option*) has_opt=yes; break;; \
|
||||
esac; \
|
||||
done; \
|
||||
test $$has_opt = yes
|
||||
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
||||
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
subdir = install/ui/src
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
|
||||
$(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \
|
||||
$(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
|
||||
$(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
|
||||
$(top_srcdir)/m4/progtest.m4 $(top_srcdir)/VERSION.m4 \
|
||||
$(top_srcdir)/server.m4 $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
AM_V_P = $(am__v_P_@AM_V@)
|
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||
am__v_P_0 = false
|
||||
am__v_P_1 = :
|
||||
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||
am__v_GEN_0 = @echo " GEN " $@;
|
||||
am__v_GEN_1 =
|
||||
AM_V_at = $(am__v_at_@AM_V@)
|
||||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||
am__v_at_0 = @
|
||||
am__v_at_1 =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
|
||||
ctags-recursive dvi-recursive html-recursive info-recursive \
|
||||
install-data-recursive install-dvi-recursive \
|
||||
install-exec-recursive install-html-recursive \
|
||||
install-info-recursive install-pdf-recursive \
|
||||
install-ps-recursive install-recursive installcheck-recursive \
|
||||
installdirs-recursive pdf-recursive ps-recursive \
|
||||
tags-recursive uninstall-recursive
|
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac
|
||||
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
|
||||
distclean-recursive maintainer-clean-recursive
|
||||
am__recursive_targets = \
|
||||
$(RECURSIVE_TARGETS) \
|
||||
$(RECURSIVE_CLEAN_TARGETS) \
|
||||
$(am__extra_recursive_targets)
|
||||
AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
|
||||
distdir
|
||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
||||
# Read a list of newline-separated strings from the standard input,
|
||||
# and print each of them once, without duplicates. Input order is
|
||||
# *not* preserved.
|
||||
am__uniquify_input = $(AWK) '\
|
||||
BEGIN { nonempty = 0; } \
|
||||
{ items[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in items) print i; }; } \
|
||||
'
|
||||
# Make sure the list of sources is unique. This is necessary because,
|
||||
# e.g., the same source file might be shared among _SOURCES variables
|
||||
# for different programs/libraries.
|
||||
am__define_uniq_tagged_files = \
|
||||
list='$(am__tagged_files)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | $(am__uniquify_input)`
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DIST_SUBDIRS = $(SUBDIRS)
|
||||
am__DIST_COMMON = $(srcdir)/Makefile.in
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
am__relativize = \
|
||||
dir0=`pwd`; \
|
||||
sed_first='s,^\([^/]*\)/.*$$,\1,'; \
|
||||
sed_rest='s,^[^/]*/*,,'; \
|
||||
sed_last='s,^.*/\([^/]*\)$$,\1,'; \
|
||||
sed_butlast='s,/*[^/]*$$,,'; \
|
||||
while test -n "$$dir1"; do \
|
||||
first=`echo "$$dir1" | sed -e "$$sed_first"`; \
|
||||
if test "$$first" != "."; then \
|
||||
if test "$$first" = ".."; then \
|
||||
dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
|
||||
dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
|
||||
else \
|
||||
first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
|
||||
if test "$$first2" = "$$first"; then \
|
||||
dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
|
||||
else \
|
||||
dir2="../$$dir2"; \
|
||||
fi; \
|
||||
dir0="$$dir0"/"$$first"; \
|
||||
fi; \
|
||||
fi; \
|
||||
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
|
||||
done; \
|
||||
reldir="$$dir2"
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMTAR = @AMTAR@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
API_VERSION = @API_VERSION@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CMOCKA_CFLAGS = @CMOCKA_CFLAGS@
|
||||
CMOCKA_LIBS = @CMOCKA_LIBS@
|
||||
CONFIG_STATUS = @CONFIG_STATUS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CRYPTO_CFLAGS = @CRYPTO_CFLAGS@
|
||||
CRYPTO_LIBS = @CRYPTO_LIBS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DATA_VERSION = @DATA_VERSION@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DIRSRV_CFLAGS = @DIRSRV_CFLAGS@
|
||||
DIRSRV_LIBS = @DIRSRV_LIBS@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
GETTEXT_DOMAIN = @GETTEXT_DOMAIN@
|
||||
GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
|
||||
GIT_BRANCH = @GIT_BRANCH@
|
||||
GIT_VERSION = @GIT_VERSION@
|
||||
GMSGFMT = @GMSGFMT@
|
||||
GMSGFMT_015 = @GMSGFMT_015@
|
||||
GREP = @GREP@
|
||||
INI_CFLAGS = @INI_CFLAGS@
|
||||
INI_LIBS = @INI_LIBS@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
INTLLIBS = @INTLLIBS@
|
||||
INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
|
||||
IPAPLATFORM = @IPAPLATFORM@
|
||||
IPA_DATA_DIR = @IPA_DATA_DIR@
|
||||
IPA_SYSCONF_DIR = @IPA_SYSCONF_DIR@
|
||||
JSLINT = @JSLINT@
|
||||
KRAD_LIBS = @KRAD_LIBS@
|
||||
KRB5KDC_SERVICE = @KRB5KDC_SERVICE@
|
||||
KRB5_CFLAGS = @KRB5_CFLAGS@
|
||||
KRB5_LIBS = @KRB5_LIBS@
|
||||
LD = @LD@
|
||||
LDAP_CFLAGS = @LDAP_CFLAGS@
|
||||
LDAP_LIBS = @LDAP_LIBS@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBICONV = @LIBICONV@
|
||||
LIBINTL = @LIBINTL@
|
||||
LIBINTL_LIBS = @LIBINTL_LIBS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBPDB_NAME = @LIBPDB_NAME@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBVERTO_CFLAGS = @LIBVERTO_CFLAGS@
|
||||
LIBVERTO_LIBS = @LIBVERTO_LIBS@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBICONV = @LTLIBICONV@
|
||||
LTLIBINTL = @LTLIBINTL@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
MK_ASSIGN = @MK_ASSIGN@
|
||||
MK_ELSE = @MK_ELSE@
|
||||
MK_ENDIF = @MK_ENDIF@
|
||||
MK_IFEQ = @MK_IFEQ@
|
||||
MSGATTRIB = @MSGATTRIB@
|
||||
MSGFMT = @MSGFMT@
|
||||
MSGFMT_015 = @MSGFMT_015@
|
||||
MSGMERGE = @MSGMERGE@
|
||||
NAMED_GROUP = @NAMED_GROUP@
|
||||
NDRNBT_CFLAGS = @NDRNBT_CFLAGS@
|
||||
NDRNBT_LIBS = @NDRNBT_LIBS@
|
||||
NDRPAC_CFLAGS = @NDRPAC_CFLAGS@
|
||||
NDRPAC_LIBS = @NDRPAC_LIBS@
|
||||
NDR_CFLAGS = @NDR_CFLAGS@
|
||||
NDR_LIBS = @NDR_LIBS@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
NSPR_CFLAGS = @NSPR_CFLAGS@
|
||||
NSPR_LIBS = @NSPR_LIBS@
|
||||
NSS_CFLAGS = @NSS_CFLAGS@
|
||||
NSS_LIBS = @NSS_LIBS@
|
||||
NUM_VERSION = @NUM_VERSION@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
ODS_USER = @ODS_USER@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
|
||||
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
|
||||
POPT_CFLAGS = @POPT_CFLAGS@
|
||||
POPT_LIBS = @POPT_LIBS@
|
||||
POSUB = @POSUB@
|
||||
PYLINT = @PYLINT@
|
||||
PYTHON = @PYTHON@
|
||||
PYTHON2 = @PYTHON2@
|
||||
PYTHON3 = @PYTHON3@
|
||||
PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
|
||||
PYTHON_INSTALL_EXTRA_OPTIONS = @PYTHON_INSTALL_EXTRA_OPTIONS@
|
||||
PYTHON_PLATFORM = @PYTHON_PLATFORM@
|
||||
PYTHON_PREFIX = @PYTHON_PREFIX@
|
||||
PYTHON_VERSION = @PYTHON_VERSION@
|
||||
RANLIB = @RANLIB@
|
||||
SAMBA40EXTRA_LIBPATH = @SAMBA40EXTRA_LIBPATH@
|
||||
SAMBAUTIL_CFLAGS = @SAMBAUTIL_CFLAGS@
|
||||
SAMBAUTIL_LIBS = @SAMBAUTIL_LIBS@
|
||||
SASL_CFLAGS = @SASL_CFLAGS@
|
||||
SASL_LIBS = @SASL_LIBS@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
SSSCERTMAP_CFLAGS = @SSSCERTMAP_CFLAGS@
|
||||
SSSCERTMAP_LIBS = @SSSCERTMAP_LIBS@
|
||||
SSSIDMAP_CFLAGS = @SSSIDMAP_CFLAGS@
|
||||
SSSIDMAP_LIBS = @SSSIDMAP_LIBS@
|
||||
SSSNSSIDMAP_CFLAGS = @SSSNSSIDMAP_CFLAGS@
|
||||
SSSNSSIDMAP_LIBS = @SSSNSSIDMAP_LIBS@
|
||||
STRIP = @STRIP@
|
||||
TALLOC_CFLAGS = @TALLOC_CFLAGS@
|
||||
TALLOC_LIBS = @TALLOC_LIBS@
|
||||
TEVENT_CFLAGS = @TEVENT_CFLAGS@
|
||||
TEVENT_LIBS = @TEVENT_LIBS@
|
||||
UNISTRING_LIBS = @UNISTRING_LIBS@
|
||||
UNLINK = @UNLINK@
|
||||
USE_NLS = @USE_NLS@
|
||||
UUID_CFLAGS = @UUID_CFLAGS@
|
||||
UUID_LIBS = @UUID_LIBS@
|
||||
VENDOR_SUFFIX = @VENDOR_SUFFIX@
|
||||
VERSION = @VERSION@
|
||||
XGETTEXT = @XGETTEXT@
|
||||
XGETTEXT_015 = @XGETTEXT_015@
|
||||
XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
|
||||
XMLRPC_CFLAGS = @XMLRPC_CFLAGS@
|
||||
XMLRPC_LIBS = @XMLRPC_LIBS@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
i18ntests = @i18ntests@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
krb5rundir = @krb5rundir@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
pkgpyexecdir = @pkgpyexecdir@
|
||||
pkgpythondir = @pkgpythondir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
pyexecdir = @pyexecdir@
|
||||
pythondir = @pythondir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
sysconfenvdir = @sysconfenvdir@
|
||||
systemdsystemunitdir = @systemdsystemunitdir@
|
||||
systemdtmpfilesdir = @systemdtmpfilesdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
AUTOMAKE_OPTIONS = 1.7
|
||||
NULL =
|
||||
SUBDIRS = \
|
||||
libs \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DIST = \
|
||||
build.profile.js \
|
||||
dojo.profile.js \
|
||||
freeipa \
|
||||
webui.profile.js
|
||||
|
||||
all: all-recursive
|
||||
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign install/ui/src/Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign install/ui/src/Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
# into them and run 'make' without going through this Makefile.
|
||||
# To change the values of 'make' variables: instead of editing Makefiles,
|
||||
# (1) if the variable is set in 'config.status', edit 'config.status'
|
||||
# (which will cause the Makefiles to be regenerated when you run 'make');
|
||||
# (2) otherwise, pass the desired values on the 'make' command line.
|
||||
$(am__recursive_targets):
|
||||
@fail=; \
|
||||
if $(am__make_keepgoing); then \
|
||||
failcom='fail=yes'; \
|
||||
else \
|
||||
failcom='exit 1'; \
|
||||
fi; \
|
||||
dot_seen=no; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
case "$@" in \
|
||||
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
||||
*) list='$(SUBDIRS)' ;; \
|
||||
esac; \
|
||||
for subdir in $$list; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
dot_seen=yes; \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done; \
|
||||
if test "$$dot_seen" = "no"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||
fi; test -z "$$fail"
|
||||
|
||||
ID: $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); mkid -fID $$unique
|
||||
tags: tags-recursive
|
||||
TAGS: tags
|
||||
|
||||
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
set x; \
|
||||
here=`pwd`; \
|
||||
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
||||
include_option=--etags-include; \
|
||||
empty_fix=.; \
|
||||
else \
|
||||
include_option=--include; \
|
||||
empty_fix=; \
|
||||
fi; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test ! -f $$subdir/TAGS || \
|
||||
set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
$(am__define_uniq_tagged_files); \
|
||||
shift; \
|
||||
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
if test $$# -gt 0; then \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
"$$@" $$unique; \
|
||||
else \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$unique; \
|
||||
fi; \
|
||||
fi
|
||||
ctags: ctags-recursive
|
||||
|
||||
CTAGS: ctags
|
||||
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); \
|
||||
test -z "$(CTAGS_ARGS)$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& $(am__cd) $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) "$$here"
|
||||
cscopelist: cscopelist-recursive
|
||||
|
||||
cscopelist-am: $(am__tagged_files)
|
||||
list='$(am__tagged_files)'; \
|
||||
case "$(srcdir)" in \
|
||||
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
|
||||
*) sdir=$(subdir)/$(srcdir) ;; \
|
||||
esac; \
|
||||
for i in $$list; do \
|
||||
if test -f "$$i"; then \
|
||||
echo "$(subdir)/$$i"; \
|
||||
else \
|
||||
echo "$$sdir/$$i"; \
|
||||
fi; \
|
||||
done >> $(top_builddir)/cscope.files
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
$(am__make_dryrun) \
|
||||
|| test -d "$(distdir)/$$subdir" \
|
||||
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|
||||
|| exit 1; \
|
||||
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
|
||||
$(am__relativize); \
|
||||
new_distdir=$$reldir; \
|
||||
dir1=$$subdir; dir2="$(top_distdir)"; \
|
||||
$(am__relativize); \
|
||||
new_top_distdir=$$reldir; \
|
||||
echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
|
||||
echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
|
||||
($(am__cd) $$subdir && \
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$$new_top_distdir" \
|
||||
distdir="$$new_distdir" \
|
||||
am__remove_distdir=: \
|
||||
am__skip_length_check=: \
|
||||
am__skip_mode_fix=: \
|
||||
distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-recursive
|
||||
all-am: Makefile
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
install: install-recursive
|
||||
install-exec: install-exec-recursive
|
||||
install-data: install-data-recursive
|
||||
uninstall: uninstall-recursive
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-recursive
|
||||
install-strip:
|
||||
if test -z '$(STRIP)'; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
install; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||
fi
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-recursive
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-recursive
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic distclean-tags
|
||||
|
||||
dvi: dvi-recursive
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-recursive
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-recursive
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-dvi: install-dvi-recursive
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-recursive
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-recursive
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-recursive
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-recursive
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-recursive
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-recursive
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am:
|
||||
|
||||
.MAKE: $(am__recursive_targets) install-am install-strip
|
||||
|
||||
.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
|
||||
check-am clean clean-generic clean-libtool cscopelist-am ctags \
|
||||
ctags-am distclean distclean-generic distclean-libtool \
|
||||
distclean-tags distdir dvi dvi-am html html-am info info-am \
|
||||
install install-am install-data install-data-am install-dvi \
|
||||
install-dvi-am install-exec install-exec-am install-html \
|
||||
install-html-am install-info install-info-am install-man \
|
||||
install-pdf install-pdf-am install-ps install-ps-am \
|
||||
install-strip installcheck installcheck-am installdirs \
|
||||
installdirs-am maintainer-clean maintainer-clean-generic \
|
||||
mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
|
||||
ps ps-am tags tags-am uninstall uninstall-am
|
||||
|
||||
.PRECIOUS: Makefile
|
||||
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
108
install/ui/src/build.profile.js
Normal file
@@ -0,0 +1,108 @@
|
||||
//
|
||||
// BUILDER profile
|
||||
//
|
||||
|
||||
var profile = (function(){
|
||||
return {
|
||||
basePath: ".",
|
||||
releaseDir: "../release",
|
||||
releaseName: "build",
|
||||
action: "release",
|
||||
|
||||
layerOptimize: false,
|
||||
optimize: false,
|
||||
cssOptimize: false,
|
||||
mini: true,
|
||||
stripConsole: "warn",
|
||||
selectorEngine: "lite",
|
||||
|
||||
staticHasFeatures: {
|
||||
"host-rhino":1,
|
||||
"host-browser":0,
|
||||
"host-node":0,
|
||||
"dom":0,
|
||||
"dojo-has-api":1,
|
||||
"dojo-xhr-factory":0,
|
||||
"dojo-inject-api":1,
|
||||
"dojo-timeout-api":0,
|
||||
"dojo-trace-api":1,
|
||||
"dojo-loader-catches":0,
|
||||
"dojo-dom-ready-api":0,
|
||||
"dojo-dom-ready-plugin":0,
|
||||
"dojo-ready-api":1,
|
||||
"dojo-error-api":1,
|
||||
"dojo-publish-privates":1,
|
||||
"dojo-gettext-api":1,
|
||||
"dojo-sniff":0,
|
||||
"dojo-loader":1,
|
||||
"dojo-test-xd":0,
|
||||
"dojo-test-sniff":0
|
||||
},
|
||||
|
||||
packages:[{
|
||||
name: "dojo",
|
||||
location: "dojo"
|
||||
},{
|
||||
name: "build",
|
||||
location: "build"
|
||||
}],
|
||||
|
||||
layers: {
|
||||
"build/build": {
|
||||
include: [
|
||||
'dojo/dojo',
|
||||
'build/buildControlBase',
|
||||
'build/argv',
|
||||
'build/build.profile',
|
||||
'build/discover',
|
||||
'build/messages',
|
||||
'build/removeComments',
|
||||
'build/fs',
|
||||
'build/main',
|
||||
'build/fileUtils',
|
||||
'build/process',
|
||||
'build/v1xProfiles',
|
||||
'build/replace',
|
||||
'build/fileHandleThrottle',
|
||||
'build/buildControl',
|
||||
'build/commandLineArgs',
|
||||
'build/stringify',
|
||||
'build/buildControlDefault',
|
||||
'build/version',
|
||||
'build/plugins/querySelector',
|
||||
'build/plugins/domReady',
|
||||
'build/plugins/has',
|
||||
'build/plugins/text',
|
||||
'build/plugins/loadInit',
|
||||
'build/plugins/require',
|
||||
'build/plugins/i18n',
|
||||
'build/transforms/depsDump',
|
||||
'build/transforms/copy',
|
||||
'build/transforms/trace',
|
||||
'build/transforms/read',
|
||||
'build/transforms/writeAmd',
|
||||
'build/transforms/dojoPragmas',
|
||||
'build/transforms/report',
|
||||
'build/transforms/hasFindAll',
|
||||
'build/transforms/hasFixup',
|
||||
'build/transforms/writeDojo',
|
||||
'build/transforms/depsScan',
|
||||
'build/transforms/write',
|
||||
'build/transforms/dojoReport',
|
||||
'build/transforms/writeOptimized',
|
||||
'build/transforms/insertSymbols',
|
||||
'build/transforms/hasReport',
|
||||
'build/transforms/writeCss',
|
||||
'build/transforms/depsDeclarative',
|
||||
'build/transforms/optimizeCss',
|
||||
'build/node/fs',
|
||||
'build/node/process',
|
||||
'build/rhino/fs',
|
||||
'build/rhino/process'
|
||||
],
|
||||
customBase: true,
|
||||
boot: true
|
||||
}
|
||||
}
|
||||
};
|
||||
})();
|
||||
102
install/ui/src/dojo.profile.js
Normal file
@@ -0,0 +1,102 @@
|
||||
//
|
||||
// DOJO profile
|
||||
//
|
||||
|
||||
var profile = (function(){
|
||||
return {
|
||||
basePath: ".",
|
||||
releaseDir: "../release",
|
||||
releaseName: "dojo",
|
||||
action: "release",
|
||||
|
||||
layerOptimize: false,
|
||||
optimize: false,
|
||||
cssOptimize: false,
|
||||
mini: true,
|
||||
stripConsole: "warn",
|
||||
selectorEngine: "lite",
|
||||
|
||||
defaultConfig: {
|
||||
hasCache:{
|
||||
"config-deferredInstrumentation": 0,
|
||||
"config-dojo-loader-catches": 0,
|
||||
"config-tlmSiblingOfDojo": 0,
|
||||
"dojo-amd-factory-scan": 0,
|
||||
"dojo-combo-api": 0,
|
||||
"dojo-config-api": 1,
|
||||
"dojo-config-require": 0,
|
||||
"dojo-debug-messages": 0,
|
||||
"dojo-dom-ready-api": 1,
|
||||
"dojo-firebug": 0,
|
||||
"dojo-guarantee-console": 1,
|
||||
"dojo-has-api": 1,
|
||||
"dojo-inject-api": 1,
|
||||
"dojo-loader": 1,
|
||||
"dojo-log-api": 0,
|
||||
"dojo-modulePaths": 0,
|
||||
"dojo-moduleUrl": 0,
|
||||
"dojo-publish-privates": 0,
|
||||
"dojo-requirejs-api": 0,
|
||||
"dojo-sniff": 0,
|
||||
"dojo-sync-loader": 0,
|
||||
"dojo-test-sniff": 0,
|
||||
"dojo-timeout-api": 0,
|
||||
"dojo-trace-api": 0,
|
||||
"dojo-undef-api": 0,
|
||||
"dojo-v1x-i18n-Api": 1,
|
||||
"dom": 1,
|
||||
"host-browser": 1,
|
||||
"extend-dojo": 1
|
||||
},
|
||||
async: 1
|
||||
},
|
||||
|
||||
|
||||
packages:[
|
||||
{
|
||||
name: "dojo",
|
||||
location: "dojo"
|
||||
}
|
||||
],
|
||||
|
||||
layers: {
|
||||
"dojo/dojo": {
|
||||
// explicitly include all modules which we want in our build
|
||||
include: [
|
||||
"dojo/dojo",
|
||||
"dojo/domReady",
|
||||
"dojo/_base/declare",
|
||||
// ^ core is about 20KB
|
||||
"dojo/_base/lang",
|
||||
"dojo/_base/array",
|
||||
"dojo/string",
|
||||
// ^ adds 10KB
|
||||
"dojo/dom",
|
||||
"dojo/dom-construct",
|
||||
"dojo/dom-class",
|
||||
"dojo/dom-style",
|
||||
"dojo/dom-prop",
|
||||
// ^ adds 20KB, with router only 5KB
|
||||
"dojo/Stateful",
|
||||
"dojo/Evented",
|
||||
"dojo/on",
|
||||
"dojo/io-query",
|
||||
//
|
||||
"dojo/keys",
|
||||
"dojo/router",
|
||||
"dojo/hash", //used by router
|
||||
"dojo/topic", //used by router
|
||||
// ^ adds 20 KB, most of it is dojo/dom*
|
||||
"dojo/store/Observable",
|
||||
"dojo/store/Memory",
|
||||
"dojo/query",
|
||||
"dojo/NodeList-dom",
|
||||
"dojo/promise/all"
|
||||
// Total size: 75KB
|
||||
],
|
||||
customBase: true,
|
||||
boot: true
|
||||
}
|
||||
}
|
||||
};
|
||||
})();
|
||||
613
install/ui/src/freeipa/Application_controller.js
Normal file
@@ -0,0 +1,613 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2012 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
define([
|
||||
'dojo/_base/declare',
|
||||
'dojo/_base/array',
|
||||
'dojo/Deferred',
|
||||
'dojo/on',
|
||||
'dojo/topic',
|
||||
'dojo/query',
|
||||
'dojo/dom-class',
|
||||
'./auth',
|
||||
'./json2',
|
||||
'./widgets/App',
|
||||
'./widgets/FacetContainer',
|
||||
'./ipa',
|
||||
'./rpc',
|
||||
'./reg',
|
||||
'./config',
|
||||
'./widget',
|
||||
'./navigation/Menu',
|
||||
'./navigation/Router',
|
||||
'./navigation/routing',
|
||||
'./navigation/menu_spec',
|
||||
'./plugins/load_page'
|
||||
],
|
||||
function(declare, array, Deferred, on, topic, query, dom_class, auth,
|
||||
JSON, App_widget, FacetContainer, IPA, rpc, reg, config, widget_mod,
|
||||
Menu, Router, routing, menu_spec) {
|
||||
|
||||
/**
|
||||
* Application controller
|
||||
*
|
||||
* Controls interaction between navigation, menu and facets.
|
||||
*
|
||||
* @class Application_controller
|
||||
*/
|
||||
var App = declare(null, {
|
||||
|
||||
/**
|
||||
* Facet container map
|
||||
*/
|
||||
containers: null,
|
||||
|
||||
app_widget: null,
|
||||
|
||||
router: null,
|
||||
|
||||
menu: null,
|
||||
|
||||
initialized: false,
|
||||
|
||||
facet_changing: false,
|
||||
|
||||
/**
|
||||
* Listeners for user menu items
|
||||
*/
|
||||
on_profile_listener: null,
|
||||
on_passwd_reset_listener: null,
|
||||
on_logout_listener: null,
|
||||
on_item_select_listener: null,
|
||||
on_configuration_listerer: null,
|
||||
on_about_listener: null,
|
||||
|
||||
/**
|
||||
* Currently displayed facet
|
||||
*
|
||||
*/
|
||||
current_facet: null,
|
||||
|
||||
/**
|
||||
* Currently displayed facet container
|
||||
*/
|
||||
current_container: null,
|
||||
|
||||
init: function() {
|
||||
this.menu = new Menu();
|
||||
this.router = new Router();
|
||||
routing.init(this.router);
|
||||
|
||||
var body_node = query('body')[0];
|
||||
this.app_widget = new App_widget();
|
||||
this.app_widget.container_node = body_node;
|
||||
this.app_widget.menu_widget.set_menu(this.menu);
|
||||
|
||||
var simple_container = new FacetContainer();
|
||||
simple_container.container_node = body_node;
|
||||
|
||||
var notification_container = new FacetContainer({
|
||||
container_node: body_node,
|
||||
id: "notification",
|
||||
'class': ''
|
||||
});
|
||||
|
||||
this.containers = {
|
||||
// Default view
|
||||
main: {
|
||||
widget: this.app_widget
|
||||
},
|
||||
// Mainly for standalone facets
|
||||
simple: {
|
||||
widget: simple_container
|
||||
}
|
||||
};
|
||||
|
||||
this.register_user_menu_listeners();
|
||||
|
||||
on(this.router, 'facet-show', this.on_facet_show.bind(this));
|
||||
on(this.router, 'facet-change', this.on_facet_change.bind(this));
|
||||
on(this.router, 'facet-change-canceled', this.on_facet_canceled.bind(this));
|
||||
on(this.router, 'error', this.on_router_error.bind(this));
|
||||
topic.subscribe('phase-error', this.on_phase_error.bind(this));
|
||||
topic.subscribe('authenticate', this.on_authenticate.bind(this));
|
||||
|
||||
this.app_widget.render();
|
||||
this.app_widget.hide();
|
||||
simple_container.render();
|
||||
simple_container.hide();
|
||||
notification_container.render();
|
||||
var load_facet = reg.facet.get('load');
|
||||
this.show_facet(load_facet);
|
||||
IPA.opened_dialogs.start_handling(this);
|
||||
},
|
||||
|
||||
register_user_menu_listeners: function() {
|
||||
this.on_profile_listener = on(this.app_widget, 'profile-click',
|
||||
this.on_profile.bind(this));
|
||||
this.on_passwd_reset_listener = on(this.app_widget,
|
||||
'password-reset-click', this.on_password_reset.bind(this));
|
||||
this.on_logout_listener = on(this.app_widget, 'logout-click',
|
||||
this.on_logout.bind(this));
|
||||
this.on_item_select_listener = on(this.app_widget.menu_widget,
|
||||
'item-select', this.on_menu_click.bind(this));
|
||||
this.on_configuration_listerer = on(this.app_widget,
|
||||
'configuration-click', this.on_configuration.bind(this));
|
||||
this.on_about_listener = on(this.app_widget,
|
||||
'about-click', this.on_about.bind(this));
|
||||
},
|
||||
|
||||
/**
|
||||
* Turns off one item in user dropdown menu and remove its listener.
|
||||
* @param {string} name of the user menu item which should be disabled
|
||||
* @param {Object} listener disable di
|
||||
*/
|
||||
disable_user_menu_item: function(name, listener) {
|
||||
this.app_widget.disable_user_menu_item(name);
|
||||
listener.remove();
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets:
|
||||
* * metadata
|
||||
* * server configuration
|
||||
* * user information
|
||||
*/
|
||||
get_configuration: function(success_handler, error_handler) {
|
||||
IPA.init({ on_success: success_handler, on_error: error_handler});
|
||||
},
|
||||
|
||||
/**
|
||||
* Deduces current application profile - administraion or self-service.
|
||||
* Initializes profiles's menu.
|
||||
*/
|
||||
choose_profile: function() {
|
||||
|
||||
this.update_logged_in(true);
|
||||
var selfservice = this.is_selfservice();
|
||||
|
||||
|
||||
this.app_widget.menu_widget.ignore_changes = true;
|
||||
|
||||
if (selfservice) {
|
||||
if (this.is_aduser_selfservice()) {
|
||||
this.menu.name = menu_spec.ad_self_service.name;
|
||||
this.menu.add_items(menu_spec.ad_self_service.items);
|
||||
this.disable_user_menu_item('password_reset',
|
||||
this.on_passwd_reset_listener);
|
||||
} else {
|
||||
this.menu.name = menu_spec.self_service.name;
|
||||
this.menu.add_items(menu_spec.self_service.items);
|
||||
}
|
||||
} else {
|
||||
this.menu.name = menu_spec.admin.name;
|
||||
this.menu.add_items(menu_spec.admin.items);
|
||||
}
|
||||
|
||||
this.app_widget.menu_widget.ignore_changes = false;
|
||||
this.app_widget.menu_widget.render();
|
||||
this.app_widget.menu_widget.select(this.menu.selected);
|
||||
},
|
||||
|
||||
start_runtime: function() {
|
||||
this.run_time = new Deferred();
|
||||
|
||||
// hide load or login facets
|
||||
this.hide_facet();
|
||||
|
||||
IPA.update_password_expiration();
|
||||
|
||||
// now we are ready for displaying a facet,
|
||||
// it can match a facet if hash is set
|
||||
this.router.startup();
|
||||
|
||||
// choose default facet if not defined by route
|
||||
if (!this.current_facet) {
|
||||
this.navigate_to_default();
|
||||
}
|
||||
|
||||
return this.run_time.promise;
|
||||
},
|
||||
|
||||
navigate_to_default: function() {
|
||||
if (IPA.is_selfservice) {
|
||||
this.on_profile();
|
||||
} else {
|
||||
routing.navigate(routing.default_path);
|
||||
}
|
||||
},
|
||||
|
||||
start_logout: function() {
|
||||
IPA.logout();
|
||||
},
|
||||
|
||||
is_selfservice: function() {
|
||||
var whoami = IPA.whoami.data;
|
||||
var self_service = true;
|
||||
|
||||
if (whoami.hasOwnProperty('memberof_group') &&
|
||||
whoami.memberof_group.indexOf('admins') !== -1) {
|
||||
self_service = false;
|
||||
} else if (whoami.hasOwnProperty('memberofindirect_group')&&
|
||||
whoami.memberofindirect_group.indexOf('admins') !== -1) {
|
||||
self_service = false;
|
||||
} else if (whoami.hasOwnProperty('memberof_role') &&
|
||||
whoami.memberof_role.length > 0) {
|
||||
self_service = false;
|
||||
} else if (whoami.hasOwnProperty('memberofindirect_role') &&
|
||||
whoami.memberofindirect_role.length > 0) {
|
||||
self_service = false;
|
||||
}
|
||||
|
||||
IPA.is_selfservice = self_service; // quite ugly, needed for users
|
||||
|
||||
return self_service;
|
||||
},
|
||||
|
||||
is_aduser_selfservice: function() {
|
||||
var selfservice = IPA.whoami.metadata.object === 'idoverrideuser';
|
||||
// quite ugly, needed for users and iduseroverride to hide breadcrumb
|
||||
IPA.is_aduser_selfservice = selfservice;
|
||||
|
||||
return selfservice;
|
||||
},
|
||||
|
||||
update_logged_in: function(logged_in) {
|
||||
this.app_widget.set('logged', logged_in);
|
||||
|
||||
var whoami = IPA.whoami;
|
||||
var fullname = '';
|
||||
var entity = whoami.metadata.object;
|
||||
|
||||
if (whoami.data.cn) {
|
||||
fullname = whoami.data.cn[0];
|
||||
} else if (whoami.data.displayname) {
|
||||
fullname = whoami.data.displayname[0];
|
||||
} else if (whoami.data.gecos) {
|
||||
fullname = whoami.data.gecos[0];
|
||||
} else if (whoami.data.krbprincipalname) {
|
||||
fullname = whoami.data.krbprincipalname[0];
|
||||
} else if (whoami.data.ipaoriginaluid) {
|
||||
fullname = whoami.data.ipaoriginaluid[0];
|
||||
}
|
||||
|
||||
this.app_widget.set('fullname', fullname);
|
||||
},
|
||||
|
||||
on_profile: function() {
|
||||
routing.navigate(['entity', IPA.whoami.metadata.object, 'details',
|
||||
IPA.whoami.metadata.arguments]);
|
||||
},
|
||||
|
||||
on_logout: function(event) {
|
||||
this.run_time.resolve();
|
||||
},
|
||||
|
||||
on_password_reset: function() {
|
||||
IPA.password_selfservice();
|
||||
},
|
||||
|
||||
on_configuration: function() {
|
||||
var dialog = IPA.dialog({
|
||||
title: '@i18n:customization.customization',
|
||||
fields: [
|
||||
{
|
||||
$type: 'text',
|
||||
name: 'pagination_size',
|
||||
label: '@i18n:customization.table_pagination',
|
||||
validators: ['positive_integer']
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
dialog.create_button({
|
||||
name: 'save',
|
||||
label: '@i18n:buttons.save',
|
||||
click: function () {
|
||||
if (!dialog.validate()) {
|
||||
widget_mod.focus_invalid(dialog);
|
||||
return;
|
||||
}
|
||||
var widget = dialog.get_field('pagination_size').widget;
|
||||
var new_value = widget.get_value()[0];
|
||||
config.set('table_page_size', new_value, true);
|
||||
topic.publish('change-pagination');
|
||||
dialog.close();
|
||||
}
|
||||
});
|
||||
|
||||
dialog.create_button({
|
||||
name: 'cancel',
|
||||
label: '@i18n:buttons.cancel',
|
||||
click: function () {
|
||||
dialog.close();
|
||||
}
|
||||
});
|
||||
|
||||
dialog.open();
|
||||
|
||||
var size = config.get('table_page_size').toString();
|
||||
dialog.get_field('pagination_size').set_value([size]);
|
||||
},
|
||||
|
||||
on_about: function() {
|
||||
var dialog = IPA.about_dialog();
|
||||
dialog.open();
|
||||
},
|
||||
|
||||
on_phase_error: function(error) {
|
||||
|
||||
error = error || {};
|
||||
var name = error.name || 'Runtime error';
|
||||
var error_container = $('<div/>', {
|
||||
'class': 'container facet-content facet-error'
|
||||
}).appendTo($('.app-container .content').empty());
|
||||
error_container.append($('<h1/>', { text: name }));
|
||||
var details = $('<div/>', {
|
||||
'class': 'error-details'
|
||||
}).appendTo(error_container);
|
||||
|
||||
details.append($('<p/>', { text: 'Web UI got in unrecoverable state during "' + error.phase + '" phase.' }));
|
||||
if (error.name) window.console.error(error.name);
|
||||
if (error.results) {
|
||||
details.append('<h3>Technical details:</h3>');
|
||||
var msg = error.results.message;
|
||||
if (msg) {
|
||||
window.console.error(msg);
|
||||
details.append($('<div/>', { text: msg }));
|
||||
}
|
||||
if (error.results.stack) {
|
||||
var stack = error.results.stack.toString();
|
||||
window.console.error(stack);
|
||||
details.append($('<div/>').append($('<code/>', { text: stack })));
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
on_facet_change: function(event) {
|
||||
//this.facet_changing = true;
|
||||
var new_facet = event.facet;
|
||||
var current_facet = this.current_facet;
|
||||
|
||||
if (current_facet === new_facet) return;
|
||||
|
||||
if (current_facet && !current_facet.can_leave()) {
|
||||
var permit_clb = function() {
|
||||
// Some facet's might not call reset before this call but after
|
||||
// so they are still dirty. Calling reset prevent's opening of
|
||||
// dirty dialog again.
|
||||
if (current_facet.is_dirty()) current_facet.reset(); //TODO change
|
||||
this.router.navigate_to_hash(event.hash, event.facet);
|
||||
}.bind(this);
|
||||
|
||||
var dialog = current_facet.show_leave_dialog(permit_clb);
|
||||
this.router.canceled = true;
|
||||
dialog.open();
|
||||
}
|
||||
},
|
||||
|
||||
on_facet_canceled: function(event) {
|
||||
},
|
||||
|
||||
on_facet_state_changed: function(event) {
|
||||
if (event.facet === this.current_facet) {
|
||||
routing.update_hash(event.facet, event.state);
|
||||
}
|
||||
},
|
||||
|
||||
on_facet_show: function(event) {
|
||||
this.show_facet(event.facet);
|
||||
},
|
||||
|
||||
show_facet: function(facet) {
|
||||
|
||||
// prevent changing facet when authenticating
|
||||
if (this.current_facet && this.current_facet.name === 'login' &&
|
||||
!auth.current.authenticated && facet.requires_auth) {
|
||||
return;
|
||||
}
|
||||
|
||||
// choose container
|
||||
var container = this.containers[facet.preferred_container];
|
||||
if (!container) container = this.containers.main;
|
||||
|
||||
if (this.current_container !== container) {
|
||||
|
||||
if (this.current_container) {
|
||||
this.current_container.widget.hide();
|
||||
}
|
||||
|
||||
this.current_container = container;
|
||||
this.current_container.widget.show();
|
||||
}
|
||||
|
||||
// update menu
|
||||
var menu_item = this._find_menu_item(facet);
|
||||
if (menu_item) this.menu.select(menu_item);
|
||||
|
||||
// show facet
|
||||
if (!facet.container_node) {
|
||||
facet.container_node = container.widget.content_node;
|
||||
on(facet, 'facet-state-change', this.on_facet_state_changed.bind(this));
|
||||
}
|
||||
|
||||
if (this.current_facet !== facet) {
|
||||
IPA.opened_dialogs.hide();
|
||||
}
|
||||
|
||||
this.hide_facet();
|
||||
this.current_facet = facet;
|
||||
facet.show();
|
||||
IPA.opened_dialogs.focus_top();
|
||||
},
|
||||
|
||||
hide_facet: function() {
|
||||
|
||||
if (this.current_facet) {
|
||||
this.current_facet.hide();
|
||||
}
|
||||
this.current_facet = null;
|
||||
},
|
||||
|
||||
|
||||
_find_menu_item: function(facet) {
|
||||
|
||||
var items = [];
|
||||
|
||||
// entity facets
|
||||
if (facet.entity) {
|
||||
items = this.menu.query({ entity: facet.entity.name, facet: facet.name });
|
||||
}
|
||||
|
||||
// entity fallback
|
||||
if (!items.total && facet.entity) {
|
||||
items = this.menu.query({ entity: facet.entity.name });
|
||||
}
|
||||
|
||||
// normal facets
|
||||
if (!items.total) {
|
||||
items = this.menu.query({ facet: facet.name });
|
||||
}
|
||||
|
||||
// fallback: Top level item
|
||||
if (!items.total) {
|
||||
items = this.menu.query({ parent: null });
|
||||
}
|
||||
|
||||
if (items.total) {
|
||||
if (items.total === 1) return items[0];
|
||||
|
||||
// select the menu item with the most similar state as the facet
|
||||
var best = items[0];
|
||||
var best_score = 0;
|
||||
var item, i, j, l, score;
|
||||
var state = facet.state;
|
||||
for (i=0, l=items.total; i<l; i++) {
|
||||
item = items[i];
|
||||
score = 0;
|
||||
if (item.pkeys && facet.get_pkeys) {
|
||||
var pkeys = facet.get_pkeys();
|
||||
for (j=0, j=item.pkeys.length; j<l; j++) {
|
||||
if (pkeys.indexOf(item.pkeys[j]) > -1) score++;
|
||||
}
|
||||
}
|
||||
if (item.args) {
|
||||
for (var name in item.args) {
|
||||
if (!item.args.hasOwnProperty(name)) continue;
|
||||
if (state[name] == item.args[name]) score++;
|
||||
}
|
||||
}
|
||||
if (score > best_score) {
|
||||
best_score = score;
|
||||
best = item;
|
||||
}
|
||||
}
|
||||
|
||||
return best;
|
||||
}
|
||||
},
|
||||
|
||||
on_router_error: function(error) {
|
||||
|
||||
if (error.type === 'route') {
|
||||
this.navigate_to_default();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Tries to find menu item with assigned facet and navigate to it.
|
||||
*/
|
||||
on_menu_click: function(menu_item) {
|
||||
this._navigate_to_menu_item(menu_item);
|
||||
},
|
||||
|
||||
_navigate_to_menu_item: function(menu_item) {
|
||||
|
||||
if (menu_item.entity) {
|
||||
// entity pages
|
||||
routing.navigate([
|
||||
'entity',
|
||||
menu_item.entity,
|
||||
menu_item.facet,
|
||||
menu_item.pkeys,
|
||||
menu_item.args]);
|
||||
} else if (menu_item.facet) {
|
||||
// concrete facets
|
||||
routing.navigate(['generic', menu_item.facet, menu_item.args]);
|
||||
} else {
|
||||
// categories, select first posible child, it may be the last
|
||||
var children = this.menu.query({parent: menu_item.name });
|
||||
if (children.total) {
|
||||
var success = false;
|
||||
for (var i=0; i<children.total;i++) {
|
||||
success = this._navigate_to_menu_item(children[i]);
|
||||
if (success) break;
|
||||
}
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
},
|
||||
|
||||
/**
|
||||
* Starts authentication process in authentication UI
|
||||
* @returns {undefined}
|
||||
*/
|
||||
on_authenticate: function() {
|
||||
|
||||
var self = this;
|
||||
if (this.auth_ui === 'dialog') {
|
||||
var dummy_command = {
|
||||
execute: function() {
|
||||
topic.publish('auth-successful');
|
||||
}
|
||||
};
|
||||
|
||||
var dialog = IPA.unauthorized_dialog({
|
||||
close_on_escape: false,
|
||||
error_thrown: { name: '', message: ''},
|
||||
command: dummy_command
|
||||
});
|
||||
|
||||
dialog.open();
|
||||
} else {
|
||||
var facet = this.current_facet;
|
||||
|
||||
// we don't want the load facet to be displayed after successful auth
|
||||
if (facet && facet.name === 'load') {
|
||||
facet = null;
|
||||
}
|
||||
var login_facet = reg.facet.get('login');
|
||||
|
||||
on.once(login_facet, "logged_in", function() {
|
||||
if (facet) {
|
||||
self.show_facet(facet);
|
||||
}
|
||||
topic.publish('auth-successful');
|
||||
});
|
||||
this.show_facet(login_facet);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return App;
|
||||
});
|
||||
349
install/ui/src/freeipa/FieldBinder.js
Normal file
@@ -0,0 +1,349 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2013 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
define(['dojo/_base/declare',
|
||||
'dojo/_base/lang',
|
||||
'dojo/on',
|
||||
'./util'
|
||||
],
|
||||
function(declare, lang, on, util) {
|
||||
|
||||
/**
|
||||
* Field binder
|
||||
*
|
||||
* Binds input widget with field - defines standard communication logic
|
||||
* between widget and a field.
|
||||
*
|
||||
* Usage:
|
||||
*
|
||||
* var binder = new FieldBinder(widget, field).bind();
|
||||
*
|
||||
* // or
|
||||
* var binder = new FieldBinder({
|
||||
* field: field,
|
||||
* widget: widget
|
||||
* });
|
||||
* binder.bind()
|
||||
*
|
||||
* @class FieldBinder
|
||||
*/
|
||||
var FieldBinder = declare([], {
|
||||
|
||||
/**
|
||||
* Field
|
||||
* @property {IPA.field}
|
||||
*/
|
||||
field: null,
|
||||
|
||||
/**
|
||||
* Widget
|
||||
* @property {IPA.input_widget}
|
||||
*/
|
||||
widget: null,
|
||||
|
||||
/**
|
||||
* Binder is enabled
|
||||
*
|
||||
* Handlers are not be called when set to false.
|
||||
*
|
||||
* @property {boolean}
|
||||
*/
|
||||
enabled: true,
|
||||
|
||||
/**
|
||||
* Handlers
|
||||
* @protected
|
||||
* @property {Function[]}
|
||||
*/
|
||||
handlers: null,
|
||||
|
||||
/**
|
||||
* Value update is in progress
|
||||
*
|
||||
* When set, binder should not react to field's nor widget's value-change
|
||||
* event.
|
||||
*
|
||||
* @property {boolean}
|
||||
*/
|
||||
updating: false,
|
||||
|
||||
/**
|
||||
* Bind widget with field
|
||||
*
|
||||
* Listens for field's:
|
||||
*
|
||||
* - enable-change
|
||||
* - valid-change
|
||||
* - value-change
|
||||
* - dirty-change
|
||||
* - require-change
|
||||
* - writable-change
|
||||
* - readonly-change
|
||||
* - reset
|
||||
*
|
||||
* Listens for widget's:
|
||||
*
|
||||
* - value-change
|
||||
* - undo-click
|
||||
*
|
||||
* @param {boolean} hard
|
||||
* Hard binding. Sets `field.widget` to `this.widget`.
|
||||
* This option is for backward compatibility.
|
||||
*/
|
||||
bind: function(hard) {
|
||||
|
||||
var field = this.field;
|
||||
var widget = this.widget;
|
||||
|
||||
if (hard) field.widget = widget;
|
||||
|
||||
this.handle(field, 'enable-change', this.on_field_enable_change);
|
||||
this.handle(field, 'valid-change', this.on_field_valid_change);
|
||||
this.handle(field, 'value-change', this.on_field_value_change);
|
||||
this.handle(field, 'dirty-change', this.on_field_dirty_change);
|
||||
this.handle(field, 'require-change', this.on_field_require_change);
|
||||
this.handle(field, 'writable-change', this.on_field_writable_change);
|
||||
this.handle(field, 'readonly-change', this.on_field_readonly_change);
|
||||
this.handle(field, 'acl-rights-change', this.on_field_acl_rights_change);
|
||||
this.handle(field, 'reset', this.on_field_reset);
|
||||
|
||||
this.handle(widget, 'value-change', this.on_widget_value_change);
|
||||
this.handle(widget, 'undo-click', this.on_widget_undo_click);
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
/**
|
||||
* Unbind all handlers
|
||||
*/
|
||||
unbind: function() {
|
||||
|
||||
var handler;
|
||||
while ((handler = this.handlers.pop())) {
|
||||
handler.remove();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Creates and registers the handler.
|
||||
* Handler will be called in binder context and only if
|
||||
* `this.enabled === true`.
|
||||
*
|
||||
* Do not use `on(target, type, handler)` directly.
|
||||
*
|
||||
* @param {Function} handler
|
||||
* @return {Function} context bound handler
|
||||
* @protected
|
||||
*/
|
||||
handle: function(target, type, handler) {
|
||||
|
||||
var _this = this;
|
||||
|
||||
var hndlr = function() {
|
||||
if (_this.enabled !== true) return;
|
||||
else {
|
||||
handler.apply(_this, Array.prototype.slice.call(arguments, 0));
|
||||
}
|
||||
};
|
||||
|
||||
var reg_hndl = on(target, type, hndlr);
|
||||
this.handlers.push(reg_hndl);
|
||||
|
||||
return hndlr;
|
||||
},
|
||||
|
||||
/**
|
||||
* Field enable change handler
|
||||
*
|
||||
* Reflect enabled state to widget
|
||||
*
|
||||
* @protected
|
||||
*/
|
||||
on_field_enable_change: function(event) {
|
||||
this.widget.set_enabled(event.enabled);
|
||||
},
|
||||
|
||||
/**
|
||||
* Field valid change handler
|
||||
* @protected
|
||||
*/
|
||||
on_field_valid_change: function(event) {
|
||||
this.widget.set_valid(event.result);
|
||||
},
|
||||
|
||||
/**
|
||||
* Field dirty change handler
|
||||
*
|
||||
* Controls showing of widget's undo button
|
||||
*
|
||||
* @protected
|
||||
*/
|
||||
on_field_dirty_change: function(event) {
|
||||
|
||||
if (!this.field.undo) return;
|
||||
if (event.dirty) {
|
||||
this.widget.show_undo();
|
||||
} else {
|
||||
this.widget.hide_undo();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Field require change handler
|
||||
*
|
||||
* Updates widget's require state
|
||||
*
|
||||
* @protected
|
||||
*/
|
||||
on_field_require_change: function(event) {
|
||||
|
||||
this.widget.set_required(event.required);
|
||||
},
|
||||
|
||||
/**
|
||||
* Field require change handler
|
||||
*
|
||||
* Updates widget's require state
|
||||
*
|
||||
* @protected
|
||||
*/
|
||||
on_field_writable_change: function(event) {
|
||||
|
||||
this.widget.set_writable(event.writable);
|
||||
},
|
||||
|
||||
/**
|
||||
* Field require change handler
|
||||
*
|
||||
* Updates widget's require state
|
||||
*
|
||||
* @protected
|
||||
*/
|
||||
on_field_readonly_change: function(event) {
|
||||
|
||||
this.widget.set_read_only(event.read_only);
|
||||
},
|
||||
|
||||
/**
|
||||
* Field acl rights change handler
|
||||
* @protected
|
||||
*/
|
||||
on_field_acl_rights_change: function(event) {
|
||||
|
||||
var readable= event.rights.indexOf('r') > -1;
|
||||
if (this.widget.set_readable) {
|
||||
this.widget.set_readable(readable);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Field reset handler
|
||||
*
|
||||
* @param {Object} event
|
||||
* @protected
|
||||
*/
|
||||
on_field_reset: function(event) {
|
||||
this.copy_properties();
|
||||
},
|
||||
|
||||
/**
|
||||
* Field value change handler
|
||||
* @protected
|
||||
*/
|
||||
on_field_value_change: function(event) {
|
||||
|
||||
if (this.updating) return;
|
||||
|
||||
var format_result = util.format(this.field.ui_formatter, event.value);
|
||||
if (format_result.ok) {
|
||||
this.updating = true;
|
||||
this.widget.update(format_result.value);
|
||||
this.updating = false;
|
||||
} else {
|
||||
// this should not happen in ideal world
|
||||
window.console.warn('field format error: '+this.field.name);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Widget value change handler
|
||||
* @protected
|
||||
*/
|
||||
on_widget_value_change: function(event) {
|
||||
|
||||
if (this.updating) return;
|
||||
|
||||
var val = this.widget.save();
|
||||
var format_result = util.parse(this.field.ui_parser, val);
|
||||
if (format_result.ok) {
|
||||
this.updating = true;
|
||||
this.field.set_value(format_result.value);
|
||||
this.updating = false;
|
||||
} else {
|
||||
this.field.set_valid(format_result);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Widget undo click handler
|
||||
* @protected
|
||||
*/
|
||||
on_widget_undo_click: function(event) {
|
||||
|
||||
this.field.reset();
|
||||
},
|
||||
|
||||
/**
|
||||
* Copies `label`, `tooltip`, `measurement_unit`, `undo`, `writable`,
|
||||
* `read_only` from field to widget
|
||||
*/
|
||||
copy_properties: function() {
|
||||
|
||||
var field = this.field;
|
||||
var widget = this.widget;
|
||||
|
||||
if (field.label) widget.label = field.label;
|
||||
if (field.tooltip) widget.tooltip = field.tooltip;
|
||||
if (field.measurement_unit) widget.measurement_unit = field.measurement_unit;
|
||||
widget.undo = field.undo;
|
||||
widget.set_writable(field.writable);
|
||||
widget.set_read_only(field.read_only);
|
||||
widget.set_required(field.is_required());
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
constructor: function(arg1, arg2) {
|
||||
|
||||
this.handlers = [];
|
||||
|
||||
if (arg2) {
|
||||
this.field = arg1;
|
||||
this.widget = arg2;
|
||||
} else {
|
||||
arg1 = arg1 || {};
|
||||
this.field = arg1.field;
|
||||
this.widget = arg1.widget;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return FieldBinder;
|
||||
});
|
||||
203
install/ui/src/freeipa/FormMixin.js
Normal file
@@ -0,0 +1,203 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2013 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
define(['dojo/_base/declare',
|
||||
'dojo/on',
|
||||
'./builder',
|
||||
'./field',
|
||||
'./ordered-map'
|
||||
],
|
||||
function(declare, on, builder, field_mod, ordered_map) {
|
||||
|
||||
/**
|
||||
* Form mixin
|
||||
*
|
||||
* Manages fields and related logic.
|
||||
*
|
||||
* Expects that this mixin will be mixed in a class which will implement
|
||||
* `Stateful`.
|
||||
*
|
||||
* @class FormMixin
|
||||
*/
|
||||
var FormMixin = declare([], {
|
||||
|
||||
/**
|
||||
* Some field is dirty
|
||||
* @property {boolean}
|
||||
*/
|
||||
dirty: null,
|
||||
|
||||
/**
|
||||
* Fields
|
||||
* @property {ordered_map}
|
||||
*/
|
||||
fields: null,
|
||||
|
||||
/**
|
||||
* Builds fields on add if not already built
|
||||
*
|
||||
* @property {field.field_builder}
|
||||
*/
|
||||
field_builder: null,
|
||||
|
||||
/**
|
||||
* Raised when `dirty` state changes
|
||||
* @event dirty-change
|
||||
*/
|
||||
|
||||
/**
|
||||
* Raised after fields reset
|
||||
* @event reset
|
||||
*/
|
||||
|
||||
/**
|
||||
* Get field by name
|
||||
* @param {string} name
|
||||
*/
|
||||
get_field: function(name) {
|
||||
return this.fields.get(name);
|
||||
},
|
||||
|
||||
/**
|
||||
* Get all fields
|
||||
* @return {Array.<IPA.field>}
|
||||
*/
|
||||
get_fields: function() {
|
||||
return this.fields.values;
|
||||
},
|
||||
|
||||
/**
|
||||
* Add field
|
||||
* @param {IPA.field|Object|String} field
|
||||
* Field or field spec
|
||||
*/
|
||||
add_field: function(field) {
|
||||
field.container = this;
|
||||
var built = this.field_builder.build_field(field);
|
||||
this.register_field_listeners(built);
|
||||
this.fields.put(field.name, built);
|
||||
return built;
|
||||
},
|
||||
|
||||
/**
|
||||
* Add multiple fields
|
||||
* @param {Array} fields
|
||||
*/
|
||||
add_fields: function(fields) {
|
||||
|
||||
if (!fields) return [];
|
||||
|
||||
var built = [];
|
||||
for (var i=0; i<fields.length; i++) {
|
||||
var f = this.add_field(fields[i]);
|
||||
built.push(f);
|
||||
}
|
||||
return built;
|
||||
},
|
||||
|
||||
/**
|
||||
* Registers listeners for field events
|
||||
* @param {IPA.field} field
|
||||
* @protected
|
||||
*/
|
||||
register_field_listeners: function(field) {
|
||||
|
||||
on(field, 'dirty-change', this.on_field_dirty_change.bind(this));
|
||||
},
|
||||
|
||||
/**
|
||||
* Field's dirty-change handler
|
||||
* @param {Object} event
|
||||
* @protected
|
||||
* @fires dirty-change
|
||||
*/
|
||||
on_field_dirty_change: function(event) {
|
||||
|
||||
var old = this.dirty;
|
||||
|
||||
if (event.dirty) {
|
||||
this.dirty = true;
|
||||
} else {
|
||||
this.dirty = this.is_dirty();
|
||||
}
|
||||
|
||||
if (old !== this.dirty) {
|
||||
this.emit('dirty-change', { source: this, dirty: this.dirty });
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Perform check if any field is dirty
|
||||
*
|
||||
* @return {boolean}
|
||||
* - true: some field is dirty
|
||||
* - false: all field's aren't dirty
|
||||
*/
|
||||
is_dirty: function() {
|
||||
var fields = this.get_fields();
|
||||
for (var i=0; i<fields.length; i++) {
|
||||
if (fields[i].enabled && fields[i].dirty) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* Reset all fields
|
||||
* @fires reset
|
||||
*/
|
||||
reset: function() {
|
||||
|
||||
var fields = this.get_fields();
|
||||
for (var i=0; i<fields.length; i++) {
|
||||
var field = fields[i];
|
||||
field.reset();
|
||||
}
|
||||
|
||||
this.emit('reset', { source: this });
|
||||
},
|
||||
|
||||
/**
|
||||
* Validate all fields
|
||||
* @return {boolean} true when all fields are valid
|
||||
*/
|
||||
validate: function() {
|
||||
var valid = true;
|
||||
var fields = this.get_fields();
|
||||
for (var i=0; i<fields.length; i++) {
|
||||
var field = fields[i];
|
||||
valid = field.validate() && field.validate_required() && valid;
|
||||
}
|
||||
return valid;
|
||||
},
|
||||
|
||||
/** Constructor */
|
||||
constructor: function(spec) {
|
||||
|
||||
this.fields = ordered_map();
|
||||
var builder_spec = spec.field_builder || field_mod.field_builder;
|
||||
this.field_builder = builder.build(null, builder_spec);
|
||||
this.dirty = false;
|
||||
}
|
||||
});
|
||||
|
||||
return FormMixin;
|
||||
});
|
||||
426
install/ui/src/freeipa/_base/Builder.js
Normal file
@@ -0,0 +1,426 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2012 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
define(['dojo/_base/declare',
|
||||
'dojo/_base/array',
|
||||
'dojo/_base/lang',
|
||||
'./construct',
|
||||
'./Construct_registry',
|
||||
'./Spec_mod'
|
||||
], function(declare, array, lang, construct, Construct_registry, Spec_mod) {
|
||||
|
||||
var undefined;
|
||||
|
||||
/**
|
||||
* Builder
|
||||
*
|
||||
* Builds objects based on their specification.
|
||||
* @class _base.Builder
|
||||
*/
|
||||
var Builder = declare(null, {
|
||||
/**
|
||||
* Construct registry
|
||||
* @property {_base.Construct_registry}
|
||||
*/
|
||||
registry: null,
|
||||
|
||||
/**
|
||||
* Specification modifier
|
||||
* @property {_base.Spec_mod}
|
||||
*/
|
||||
spec_mod: null,
|
||||
|
||||
/**
|
||||
* Default factory
|
||||
* @property {Function|null}
|
||||
*/
|
||||
factory: null,
|
||||
|
||||
/**
|
||||
* Default constructor
|
||||
* @property {Function|null}
|
||||
*/
|
||||
ctor: null,
|
||||
|
||||
/**
|
||||
* Array of spec modifiers.
|
||||
*
|
||||
* Are applied before build on spec object.
|
||||
*
|
||||
* Spec modifier can be:
|
||||
*
|
||||
* - a function which is called before build
|
||||
* - takes params: spec, context
|
||||
* - returns spec
|
||||
* - an object which is mixed in into spec
|
||||
* - an object with properties for Spec_mod
|
||||
*
|
||||
* @property {Array|null}
|
||||
*/
|
||||
pre_ops: null,
|
||||
|
||||
/**
|
||||
* Array of object modifiers.
|
||||
*
|
||||
* Object modifier is a function which is after build.
|
||||
*
|
||||
* - takes params: built object, spec, context
|
||||
* - returns object
|
||||
* @property {Array|null}
|
||||
*/
|
||||
post_ops: null,
|
||||
|
||||
/**
|
||||
* Controls what builder do when spec is a string. Possible values:
|
||||
*
|
||||
* - 'type'
|
||||
* - 'property'
|
||||
*
|
||||
* ##Type
|
||||
* Spec is type. Queries registry for obtaining construction spec.
|
||||
*
|
||||
* ##Property
|
||||
* Spec is a property of spec, name of property is set in
|
||||
* `string_property`. This mode should be combined with default
|
||||
* factory or ctor otherwise the build will fail.
|
||||
*
|
||||
* @property {string}
|
||||
*/
|
||||
string_mode: 'type',
|
||||
|
||||
/**
|
||||
* Property name for `string_mode` == `property`
|
||||
* @property {string}
|
||||
*/
|
||||
string_property: '',
|
||||
|
||||
/**
|
||||
* Build object based on spec.
|
||||
*
|
||||
* @param {string|Function|Object|Array} spec Build spec
|
||||
*
|
||||
* - **String**: type name, queries registry
|
||||
* - **Function**: factory or ctor
|
||||
* - **Object**: spec object
|
||||
* - **Array**: array of spec objects
|
||||
*
|
||||
* Build control properties of spec object:
|
||||
*
|
||||
* - $ctor: Function
|
||||
* - $factory: Function
|
||||
* - $mixim_spec: boolean
|
||||
* - $type: string
|
||||
* - $pre_ops: []
|
||||
* - $post_ops: []
|
||||
*
|
||||
* All other properties will be passed to object construction method.
|
||||
* @param {Object} context build context
|
||||
* @param {Object} overrides
|
||||
* Builder default factory and ctor is overridden by those specified
|
||||
* in overrides when overrides are set.
|
||||
*/
|
||||
build: function(spec, context, overrides) {
|
||||
|
||||
var f,c, pre, post;
|
||||
|
||||
if (spec === undefined || spec === null) return null;
|
||||
if (!construct.is_spec(spec)) return spec;
|
||||
|
||||
context = context || {};
|
||||
|
||||
// save
|
||||
if (overrides) {
|
||||
f = this.factory;
|
||||
c = this.ctor;
|
||||
pre = this.pre_ops;
|
||||
post = this.post_ops;
|
||||
if (typeof overrides === 'function') {
|
||||
if (construct.is_ctor(overrides)) {
|
||||
overrides = { $ctor: overrides };
|
||||
} else {
|
||||
overrides = { $factory: overrides };
|
||||
}
|
||||
}
|
||||
this.factory = overrides.$factory;
|
||||
this.ctor = overrides.$ctor;
|
||||
if (overrides.$pre_ops) this.pre_ops = overrides.$pre_ops;
|
||||
if (overrides.$post_ops) this.post_ops = overrides.$post_ops;
|
||||
}
|
||||
|
||||
// build
|
||||
var objects;
|
||||
if (lang.isArray(spec)) {
|
||||
objects = [];
|
||||
for (var i=0; i<spec.length; i++) {
|
||||
var obj = this._build(spec[i], context);
|
||||
objects.push(obj);
|
||||
}
|
||||
} else {
|
||||
objects = this._build(spec, context);
|
||||
}
|
||||
|
||||
// restore
|
||||
if (overrides) {
|
||||
this.factory = f;
|
||||
this.ctor = c;
|
||||
this.pre_ops = pre;
|
||||
this.post_ops = post;
|
||||
}
|
||||
|
||||
return objects;
|
||||
},
|
||||
|
||||
/**
|
||||
* Create new construction spec from an existing one based on object
|
||||
* specification object and save the new construction spec
|
||||
*
|
||||
* @param {Object} spec Specification object
|
||||
* @return {Object} Construction specification
|
||||
*/
|
||||
merge_spec: function(spec, force_mixin) {
|
||||
var cs = {};
|
||||
|
||||
if (typeof spec === 'function') {
|
||||
// spec ctor or factory
|
||||
|
||||
if (construct.is_ctor(spec)) {
|
||||
cs.ctor = spec;
|
||||
} else {
|
||||
cs.factory = spec;
|
||||
}
|
||||
} else if (typeof spec === 'string') {
|
||||
// spec is type name or spec property
|
||||
cs = this._get_cs_string(spec);
|
||||
} else if (typeof spec === 'object') {
|
||||
var c = spec.$ctor,
|
||||
f = spec.$factory,
|
||||
m = spec.$mixim_spec || force_mixin,
|
||||
t = spec.$type,
|
||||
pre = spec.$pre_ops,
|
||||
post = spec.$post_ops;
|
||||
|
||||
var s = lang.mixin({},spec);
|
||||
delete s.$ctor;
|
||||
delete s.$factory;
|
||||
delete s.$mixim_spec;
|
||||
delete s.$type;
|
||||
delete s.$pre_ops;
|
||||
delete s.$post_ops;
|
||||
|
||||
if (t) {
|
||||
cs = this._query_registry(t);
|
||||
if (cs.spec && m) {
|
||||
lang.mixin(cs.spec, s);
|
||||
} else {
|
||||
cs.spec = s;
|
||||
}
|
||||
} else {
|
||||
cs.spec = s;
|
||||
}
|
||||
|
||||
if (c) cs.ctor = c;
|
||||
if (f) cs.factory = f;
|
||||
|
||||
cs.pre_ops = cs.pre_ops || [];
|
||||
cs.post_ops = cs.post_ops || [];
|
||||
if (pre) cs.pre_ops.push.apply(cs.pre_ops, pre);
|
||||
if (post) cs.post_ops.push.apply(cs.post_ops, post);
|
||||
}
|
||||
return cs;
|
||||
},
|
||||
|
||||
/**
|
||||
* Build single object
|
||||
* @protected
|
||||
*/
|
||||
_build: function(spec, context) {
|
||||
var cs = this._get_construction_spec(spec);
|
||||
var obj = this._build_core(cs, context);
|
||||
return obj;
|
||||
},
|
||||
|
||||
/**
|
||||
* Normalizes construction specification
|
||||
* @protected
|
||||
*/
|
||||
_get_construction_spec: function(spec) {
|
||||
|
||||
var cs = this.merge_spec(spec);
|
||||
cs.spec = cs.spec || {};
|
||||
if (!cs.factory && !cs.ctor) {
|
||||
if (this.ctor) cs.ctor = this.ctor;
|
||||
else if (this.factory) cs.factory = this.factory;
|
||||
}
|
||||
|
||||
return cs;
|
||||
},
|
||||
|
||||
/**
|
||||
* Queries registry and returns copy of construction specification
|
||||
* @protected
|
||||
*/
|
||||
_query_registry: function(type) {
|
||||
|
||||
if (this.registry) {
|
||||
var cs = this.registry.get(type);
|
||||
if (!cs) cs = {};
|
||||
cs = construct.clone(cs);
|
||||
return cs;
|
||||
} else {
|
||||
throw {
|
||||
error: 'Build error: construct registry required',
|
||||
builder: this
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Get cs from string according to string mode
|
||||
* @protected
|
||||
*/
|
||||
_get_cs_string: function(spec) {
|
||||
|
||||
var cs;
|
||||
if (this.string_mode === 'type') {
|
||||
cs = this._query_registry(spec);
|
||||
} else {
|
||||
var sp = {};
|
||||
sp[this.string_property] = spec;
|
||||
cs = { spec: sp };
|
||||
}
|
||||
return cs;
|
||||
},
|
||||
|
||||
/**
|
||||
* Core build method
|
||||
* @protected
|
||||
*/
|
||||
_build_core: function(construction_spec, context) {
|
||||
|
||||
var cs = construction_spec,
|
||||
obj = null;
|
||||
|
||||
if (!(cs.factory && typeof cs.factory === 'function') &&
|
||||
!(cs.ctor && typeof cs.ctor === 'function')) {
|
||||
throw {
|
||||
error: 'Build error: missing or invalid ctor or factory',
|
||||
code: 'no-ctor-fac',
|
||||
spec: cs
|
||||
};
|
||||
}
|
||||
|
||||
// deep clone to prevent modification of original spec by preops
|
||||
cs.spec = construct.clone(cs.spec);
|
||||
|
||||
cs.spec = this._run_preops(this.pre_ops, cs.spec, context);
|
||||
if (cs.pre_ops) {
|
||||
cs.spec = this._run_preops(cs.pre_ops, cs.spec, context);
|
||||
}
|
||||
cs.spec = cs.spec || {};
|
||||
|
||||
// do we want following?, remove?
|
||||
this.spec_mod.mod(cs.spec, cs.spec);
|
||||
this.spec_mod.del_rules(cs.spec);
|
||||
|
||||
try {
|
||||
if (cs.factory) {
|
||||
obj = cs.factory(cs.spec);
|
||||
} else {
|
||||
obj = new cs.ctor(cs.spec);
|
||||
}
|
||||
|
||||
obj = this._run_post_ops(this.post_ops, obj, cs.spec, context);
|
||||
if (cs.post_ops) {
|
||||
obj = this._run_post_ops(cs.post_ops, obj, cs.spec, context);
|
||||
}
|
||||
} catch (e) {
|
||||
if (e.expected) {
|
||||
// expected exceptions thrown by builder just mean that
|
||||
// object is not to be built
|
||||
obj = null;
|
||||
} else {
|
||||
window.console.error(e.stack);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
return obj;
|
||||
},
|
||||
|
||||
/**
|
||||
* Apply pre_ops
|
||||
* @protected
|
||||
*/
|
||||
_run_preops: function(pre_ops, spec, context) {
|
||||
for (var i=0; i<pre_ops.length; i++) {
|
||||
var preop = pre_ops[i];
|
||||
var preop_t = typeof preop;
|
||||
if (preop_t === 'function') {
|
||||
spec = preop(spec, context);
|
||||
} else if (preop_t === 'object') {
|
||||
var temp = construct.clone(preop);
|
||||
this.spec_mod.mod(spec, temp);
|
||||
this.spec_mod.del_rules(temp);
|
||||
lang.mixin(spec, temp);
|
||||
}
|
||||
}
|
||||
return spec;
|
||||
},
|
||||
|
||||
/**
|
||||
* Apply post_ops
|
||||
* @protected
|
||||
*/
|
||||
_run_post_ops: function(post_ops, obj, spec, context) {
|
||||
for (var i=0; i<post_ops.length; i++) {
|
||||
var postop = post_ops[i];
|
||||
var postop_t = typeof postop;
|
||||
if (postop_t === 'function') {
|
||||
obj = postop(obj, spec, context);
|
||||
} else if (postop_t === 'object') {
|
||||
lang.mixin(obj, postop);
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
},
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* set spec.registry to use Construct_registry instance
|
||||
*/
|
||||
constructor: function(spec) {
|
||||
|
||||
spec = spec || {};
|
||||
this.pre_ops = [];
|
||||
this.post_ops = [];
|
||||
if (spec.factory) this.factory = spec.factory;
|
||||
if (spec.ctor) this.ctor = spec.ctor;
|
||||
if (spec.registry) this.registry = spec.registry;
|
||||
else this.registry = new Construct_registry();
|
||||
if (spec.spec_mod) this.spec_mod = spec.spec_mod;
|
||||
else this.spec_mod = new Spec_mod();
|
||||
if (spec.pre_ops) this.pre_ops.push.call(this.pre_ops, spec.pre_ops);
|
||||
if (spec.post_ops) this.post_ops.push.call(this.post_ops, spec.post_ops);
|
||||
}
|
||||
});
|
||||
|
||||
return Builder;
|
||||
});
|
||||
196
install/ui/src/freeipa/_base/Construct_registry.js
Normal file
@@ -0,0 +1,196 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2012 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
define(['dojo/_base/declare',
|
||||
'dojo/_base/array',
|
||||
'dojo/_base/lang',
|
||||
'./construct'
|
||||
], function(declare, array, lang, construct) {
|
||||
|
||||
/**
|
||||
* Registry for storing construction specification.
|
||||
* @class _base.Construct_registry
|
||||
*/
|
||||
var Construct_registry = declare(null, {
|
||||
|
||||
|
||||
/**
|
||||
* Internal map for construction specifications.
|
||||
* @protected
|
||||
*/
|
||||
_map: null,
|
||||
|
||||
/**
|
||||
* Registers construction specification
|
||||
*
|
||||
* // May be defined by single construction spec object:
|
||||
* var construction_spec = {
|
||||
* type: String,
|
||||
* factory: Function,
|
||||
* ctor: Function,
|
||||
* spec: Object,
|
||||
* pre_ops: [],
|
||||
* post_ops: []
|
||||
* };
|
||||
* register(construction_spec);
|
||||
*
|
||||
* // or by defining them separately as params:
|
||||
* register(type, factory|ctor, spec);
|
||||
*
|
||||
* @param {string|Object} type type or construction spec
|
||||
* @param {Function} func ctor or factory function
|
||||
* @param {Object} [default_spec] default spec object for given type
|
||||
*
|
||||
* @returns {Object}
|
||||
*/
|
||||
register: function(type, func, default_spec) {
|
||||
|
||||
var cs, f, c;
|
||||
|
||||
if (typeof type === 'object') {
|
||||
cs = type;
|
||||
} else {
|
||||
construct.is_ctor(func) ? c = func : f = func;
|
||||
cs = {
|
||||
type: type,
|
||||
factory: f,
|
||||
ctor: c,
|
||||
spec: default_spec
|
||||
};
|
||||
}
|
||||
|
||||
if (!cs.pre_ops) cs.pre_ops = [];
|
||||
if (!cs.post_ops) cs.post_ops = [];
|
||||
|
||||
this._check_spec(cs);
|
||||
|
||||
this._map[cs.type] = cs;
|
||||
return cs;
|
||||
},
|
||||
|
||||
/**
|
||||
* Makes a copy of construct specification of original type. Extends
|
||||
* it with values in supplied construct specification.
|
||||
*
|
||||
* @param {string} org_type Original type
|
||||
* @param {string} new_type New type
|
||||
* @param {Object} construct_spec Construction specification
|
||||
*/
|
||||
copy: function(org_type, new_type, construct_spec) {
|
||||
|
||||
var def_cs = construct_spec;
|
||||
var old_cs = this._check_get(org_type);
|
||||
var cs = construct.clone(old_cs);
|
||||
|
||||
cs.type = new_type;
|
||||
if (def_cs.pre_ops) cs.pre_ops.push.apply(cs.pre_ops, def_cs.pre_ops);
|
||||
if (def_cs.post_ops) cs.post_ops.push.apply(cs.post_ops, def_cs.post_ops);
|
||||
if (def_cs.factory) cs.factory = def_cs.factory;
|
||||
if (def_cs.ctor) cs.ctor = def_cs.ctor;
|
||||
if (def_cs.spec) {
|
||||
cs.spec = cs.spec || {};
|
||||
lang.mixin(cs.spec, def_cs.spec);
|
||||
}
|
||||
|
||||
this._check_spec(cs);
|
||||
|
||||
this._map[cs.type] = cs;
|
||||
return cs;
|
||||
},
|
||||
|
||||
/**
|
||||
* Registers pre operation.
|
||||
*
|
||||
* Purpose of pre operation is to modify spec object before build
|
||||
* operation.
|
||||
*
|
||||
* When op is Function it gets called with spec as a param and should
|
||||
* return modified spec.
|
||||
*
|
||||
* When op is Object, the object gets mixed in into spec.
|
||||
*
|
||||
* @param {string} type
|
||||
* @param {Function|Object} op
|
||||
* @param {boolean} move op to first position
|
||||
*/
|
||||
register_pre_op: function(type, op, first) {
|
||||
|
||||
var cs = this._check_get(type);
|
||||
if (first) cs.pre_ops.unshift(op);
|
||||
else cs.pre_ops.push(op);
|
||||
},
|
||||
|
||||
/**
|
||||
* Registers post operation.
|
||||
*
|
||||
* Purpose of post operation is to modify built object.
|
||||
*
|
||||
* When op is Function it gets called with built object as a param
|
||||
* and should return modified obj.
|
||||
*
|
||||
* When op is Object, the object gets mixed in into built object. Use
|
||||
* with caution.
|
||||
*
|
||||
* @param {string} type
|
||||
* @param {Function|Object} op
|
||||
* @param {boolean} first move op to first position
|
||||
*/
|
||||
register_post_op: function(type, op, first) {
|
||||
|
||||
var cs = this._check_get(type);
|
||||
if (first) cs.post_ops.unshift(op);
|
||||
else cs.post_ops.push(op);
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets construction specification for given type.
|
||||
*
|
||||
* @param {string} string Type name
|
||||
* @returns {Object|null}
|
||||
*/
|
||||
get: function(type) {
|
||||
return this._map[type] || null;
|
||||
},
|
||||
|
||||
_check_get: function(type) {
|
||||
var cs = this.get(type);
|
||||
if (!cs) throw construct.no_cs_for_type_error(type);
|
||||
return cs;
|
||||
},
|
||||
|
||||
_check_spec: function(spec) {
|
||||
if (typeof spec.type !== 'string' || spec.type === '') {
|
||||
throw 'Argument exception: Invalid type';
|
||||
}
|
||||
if (!lang.isArrayLike(spec.pre_ops)) {
|
||||
throw 'Argument exception: Invalid pre_ops type.';
|
||||
}
|
||||
if (!lang.isArrayLike(spec.post_ops)) {
|
||||
throw 'Argument exception: Invalid post_ops type.';
|
||||
}
|
||||
},
|
||||
|
||||
constructor: function(spec) {
|
||||
this._map = {};
|
||||
}
|
||||
});
|
||||
|
||||
return Construct_registry;
|
||||
});
|
||||
258
install/ui/src/freeipa/_base/Phase_controller.js
Normal file
@@ -0,0 +1,258 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2012 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
define([
|
||||
'dojo/_base/array',
|
||||
'dojo/_base/declare',
|
||||
'dojo/Deferred',
|
||||
'dojo/promise/all',
|
||||
'dojo/topic',
|
||||
'../ordered-map'
|
||||
], function(array, declare, Deferred, all, topic, ordered_map) {
|
||||
|
||||
|
||||
/**
|
||||
* Phase
|
||||
*
|
||||
* This class does not exist, it's only for documentation purposes.
|
||||
*
|
||||
* @class _base.Phase_controller.phase
|
||||
* @abstract
|
||||
*/
|
||||
/**
|
||||
* Name
|
||||
* @property {string} name
|
||||
*/
|
||||
/**
|
||||
* Tasks
|
||||
* @property {Array.<_base.Phase_controller.task>} tasks
|
||||
*/
|
||||
|
||||
/**
|
||||
* Phase task
|
||||
*
|
||||
* This class does not exist, it's only for documentation purposes.
|
||||
*
|
||||
* @class _base.Phase_controller.task
|
||||
* @abstract
|
||||
*/
|
||||
/**
|
||||
* Name
|
||||
* @property {number} priority
|
||||
*/
|
||||
/**
|
||||
* Tasks
|
||||
* @property {Function} handler
|
||||
*/
|
||||
|
||||
/**
|
||||
* Phase Controller
|
||||
*
|
||||
* Creates synchronization points - phases - in application life cycle.
|
||||
*
|
||||
* Phases:
|
||||
*
|
||||
* - are ordered
|
||||
* - consist of task
|
||||
* - phase finishes when all task finishes
|
||||
* - new phases can be added at runtime
|
||||
*
|
||||
* @class _base.Phase_controller
|
||||
*/
|
||||
var Phase_controller = declare(null, {
|
||||
|
||||
/**
|
||||
* Phases
|
||||
* @property {ordered_map.<string, _base.Phase_controller.phase>}
|
||||
*/
|
||||
phases: null,
|
||||
|
||||
/**
|
||||
* Current phase name
|
||||
* @property {string}
|
||||
*/
|
||||
current: null,
|
||||
|
||||
/**
|
||||
* Run all phases in a row starting from current, or the first when
|
||||
* current is not set.
|
||||
*/
|
||||
run: function() {
|
||||
if (this.current !== null) {
|
||||
var phase = this.phases.get(this.current);
|
||||
this._run_phase(phase);
|
||||
} else {
|
||||
this.next_phase(true);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Runs phase
|
||||
*
|
||||
* 1. Sorts tasks of the phase based on their priority.
|
||||
* 2. Runs all task sequentially.
|
||||
* 3. Waits for all tasks to complete (in case of asynchronous ones)
|
||||
* 4. Optionally runs next phase
|
||||
*
|
||||
* @param {_base.Phase_controller.phase} phase Phase to run
|
||||
* @param {boolean} next_phase Whether to run next phase when current finishes
|
||||
*/
|
||||
_run_phase: function(phase, next_phase) {
|
||||
|
||||
if (!phase) return;
|
||||
this.current = phase.name;
|
||||
topic.publish('phase-start', { phase: phase.name });
|
||||
var promises = [];
|
||||
|
||||
var tasks = phase.tasks.sort(function(a,b) {
|
||||
return a.priority-b.priority;
|
||||
});
|
||||
|
||||
array.forEach(tasks, function(task) {
|
||||
var promise;
|
||||
try {
|
||||
promise = task.handler();
|
||||
} catch (e) {
|
||||
var fail = new Deferred();
|
||||
fail.reject(e, true);
|
||||
promise = fail.promise;
|
||||
}
|
||||
promises.push(promise);
|
||||
});
|
||||
|
||||
all(promises).then(function(results) {
|
||||
topic.publish('phase-finished',
|
||||
{ phase: phase.name, results: results });
|
||||
if (next_phase) {
|
||||
this.next_phase(next_phase);
|
||||
}
|
||||
}.bind(this), function(results) {
|
||||
topic.publish('phase-error',
|
||||
{ phase: phase.name, results: results });
|
||||
// don't go for next phase on error, let app decide what to do
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* Selects next phase and then runs it.
|
||||
*
|
||||
* @param {boolean} continuous Whether to run phases continuously
|
||||
*/
|
||||
next_phase: function(continuous) {
|
||||
var phase;
|
||||
|
||||
if (this.current === null) {
|
||||
phase = this.phases.get_value_by_index(0);
|
||||
} else {
|
||||
var index = this.phases.get_key_index(this.current);
|
||||
phase = this.phases.get_value_by_index(index + 1);
|
||||
}
|
||||
|
||||
this._run_phase(phase, continuous);
|
||||
},
|
||||
|
||||
/**
|
||||
* Adds task for a phase.
|
||||
*
|
||||
* At phase execution, tasks are sorted by priority and executed in
|
||||
* that order.
|
||||
*
|
||||
* @param {string} phase_name Name of associated phase
|
||||
* @param {Function} handler Task handler. Should return promise if async.
|
||||
* @param {number} [priority=10] Priority of task.
|
||||
*/
|
||||
add_task: function(phase_name, handler, priority) {
|
||||
|
||||
var phase = this.phases.get(phase_name);
|
||||
|
||||
if (!phase) {
|
||||
window.console.warn('no such phase: ' + phase_name);
|
||||
return;
|
||||
}
|
||||
|
||||
if (typeof priority !== 'number') priority = 10;
|
||||
|
||||
phase.tasks.push({
|
||||
priority: priority,
|
||||
handler: handler
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* Adds a phase
|
||||
*
|
||||
* Possible options:
|
||||
*
|
||||
* - before: 'name-of-phase'
|
||||
* - after: 'name-of-phase'
|
||||
* - position: 'position for new phase'
|
||||
*
|
||||
* @param {string} phase name
|
||||
* @param {Array.<_base.Phase_controller.task>} tasks
|
||||
* @param {Object} options
|
||||
*/
|
||||
add_phase: function(name, tasks, options) {
|
||||
|
||||
var phase = {
|
||||
name: name,
|
||||
tasks: tasks || []
|
||||
};
|
||||
|
||||
var position;
|
||||
if (options) {
|
||||
if (options.before) {
|
||||
position = this.phases.get_key_index(options.before);
|
||||
} else if (options.after) {
|
||||
position = this.phases.get_key_index(options.after);
|
||||
if (position === -1) position = this.phases.length;
|
||||
else position++;
|
||||
} else if (options.position) {
|
||||
position = options.position;
|
||||
}
|
||||
}
|
||||
|
||||
this.phases.put(name, phase, position);
|
||||
},
|
||||
|
||||
/**
|
||||
* Checks if phases with given name exists
|
||||
*
|
||||
* @param {string} name
|
||||
* @return {boolean}
|
||||
*/
|
||||
exists: function(name) {
|
||||
return !!this.phases.get(name);
|
||||
},
|
||||
|
||||
constructor: function(spec) {
|
||||
spec = spec || {};
|
||||
|
||||
this.phases = ordered_map();
|
||||
|
||||
var phases = spec.phases || [];
|
||||
array.forEach(phases, function(phase) {
|
||||
this.add_phase(phase);
|
||||
}.bind(this));
|
||||
}
|
||||
});
|
||||
|
||||
return Phase_controller;
|
||||
|
||||
});
|
||||
230
install/ui/src/freeipa/_base/Provider.js
Normal file
@@ -0,0 +1,230 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2013 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Value provider.
|
||||
*
|
||||
* It search source or child providers for value defined by key.
|
||||
*
|
||||
* Key consists of code and path.
|
||||
*
|
||||
* Code defines the type of resource. Provider's handles() method tells whether
|
||||
* it can handle this type of resource.
|
||||
*
|
||||
* Path is a plain object path within a source.
|
||||
*
|
||||
* // if source is
|
||||
* {
|
||||
* foo: {
|
||||
* bar: {
|
||||
* a: 'val'
|
||||
* }
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* // path: `foo.bar.a` would return `val`
|
||||
*
|
||||
* @class _base.Provider
|
||||
*
|
||||
*/
|
||||
define([
|
||||
'dojo/_base/declare',
|
||||
'dojo/_base/lang',
|
||||
'./debug'],
|
||||
function(declare, lang, debug) {
|
||||
|
||||
var undefined;
|
||||
var Provider = declare(null, {
|
||||
|
||||
/**
|
||||
* Array of other providers
|
||||
* @property {_base.Provider[]}
|
||||
*/
|
||||
providers: null,
|
||||
|
||||
/**
|
||||
* Source object or a function which returns source object.
|
||||
* @property {Function|Object|_base.Provider}
|
||||
*/
|
||||
source: null,
|
||||
|
||||
/**
|
||||
* Path within a source.
|
||||
*
|
||||
* When defined, all lookups in source are based on the object
|
||||
* defined by this path within a source.
|
||||
* @property {string}
|
||||
*/
|
||||
path: null,
|
||||
|
||||
/**
|
||||
* Value which is returned if no value nor alternative is found
|
||||
* @property {Mixed}
|
||||
*/
|
||||
null_value: null,
|
||||
|
||||
/**
|
||||
* Specifies which type should be returned. Limited to output of
|
||||
* typeof operator.
|
||||
* @property {string}
|
||||
*/
|
||||
required_type: null,
|
||||
|
||||
_code: null,
|
||||
_code_length: null,
|
||||
_handling_provider: null,
|
||||
|
||||
_set_code: function(code) {
|
||||
this._code = code;
|
||||
if (code) this._code_length = code.length;
|
||||
},
|
||||
|
||||
_get_source: function() {
|
||||
var source;
|
||||
var type = typeof this.source;
|
||||
if (type === 'function') {
|
||||
source = this.source.call(this);
|
||||
} else if (type === 'object') {
|
||||
source = this.source;
|
||||
|
||||
// if source is another provider, use its source as this source
|
||||
if (source.isInstanceOf && source.isInstanceOf(Provider) &&
|
||||
source.source) {
|
||||
source = source._get_source();
|
||||
}
|
||||
}
|
||||
if (this.path) {
|
||||
source = lang.getObject(this.path, false, source);
|
||||
}
|
||||
return source;
|
||||
},
|
||||
|
||||
|
||||
_handles: function(key) {
|
||||
if (!this._code) return false;
|
||||
if (typeof key !== 'string') return false;
|
||||
if (key[0] !== '@') return false;
|
||||
var code = key.substring(0, this._code_length);
|
||||
var handles = code === this._code;
|
||||
return handles;
|
||||
},
|
||||
|
||||
_handle_children: function(key) {
|
||||
var handles = false;
|
||||
this._handling_provider = null;
|
||||
for (var i=0; i< this.providers.length; i++) {
|
||||
handles = this.providers[i].handles(key);
|
||||
if (handles) {
|
||||
this._handling_provider = this.providers[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
return handles;
|
||||
},
|
||||
|
||||
/**
|
||||
* Get's value from this provider's source
|
||||
* @protected
|
||||
*/
|
||||
_get: function(key) {
|
||||
var property = key.substring(this._code_length);
|
||||
var value = lang.getObject(property, false, this._get_source());
|
||||
return value;
|
||||
},
|
||||
|
||||
/**
|
||||
* Finds out whether this or some of its children handles given key.
|
||||
*/
|
||||
handles: function(key) {
|
||||
var handles = this._handles(key);
|
||||
handles = handles || this._handle_children(key);
|
||||
return handles;
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets value.
|
||||
*
|
||||
* @param {string|Object} Key or value
|
||||
* @param {Object} Alternate value
|
||||
*/
|
||||
get: function(key, alternate) {
|
||||
|
||||
var value = key;
|
||||
if (key !== undefined) {
|
||||
if (this._handles(key)) {
|
||||
value = this._get(key);
|
||||
} else if(this._handle_children(key)) {
|
||||
value = this._handling_provider.get(key);
|
||||
} else {
|
||||
// Report invalid keys
|
||||
if (typeof key === 'string' && key[0] === '@') {
|
||||
window.console.warn('Using key as value:'+key);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var ret = value || alternate;
|
||||
if (!ret && key && debug.provider_missing_value) {
|
||||
window.console.log('No value for:'+key);
|
||||
}
|
||||
|
||||
if ((this.required_type && typeof ret !== this.required_type) ||
|
||||
ret === null ||
|
||||
ret === undefined){
|
||||
ret = this.null_value;
|
||||
}
|
||||
|
||||
return ret;
|
||||
},
|
||||
|
||||
/**
|
||||
* Finds object with attr_name === value in array defined by key.
|
||||
*/
|
||||
find: function(key, attr_name, value) {
|
||||
|
||||
var arr = this.get(key);
|
||||
if (!lang.isArrayLike(arr)) return null;
|
||||
|
||||
for (var i=0; i<arr.length; i++) {
|
||||
if (arr[i][attr_name] === value) {
|
||||
return arr[i];
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
},
|
||||
|
||||
constructor: function(spec) {
|
||||
spec = spec || {};
|
||||
this.source = spec.source || {};
|
||||
this.path = spec.path || null;
|
||||
this.providers = spec.providers || [];
|
||||
if (spec.null_value !== undefined) {
|
||||
this.null_value = spec.null_value;
|
||||
}
|
||||
this.required_type = spec.required_type;
|
||||
if (spec.code) {
|
||||
this._set_code(spec.code);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return Provider;
|
||||
});
|
||||
122
install/ui/src/freeipa/_base/Search_provider.js
Normal file
@@ -0,0 +1,122 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2013 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Search value provider
|
||||
*
|
||||
* Serves for searching for values within an array in a source object.
|
||||
*
|
||||
* Path has input formats as follows:
|
||||
*
|
||||
* * key1:key2:key3
|
||||
* * key1:key2
|
||||
* * key2
|
||||
*
|
||||
* With:
|
||||
*
|
||||
* * base_query: `%1.takes_params`
|
||||
* * array_attr: `name`
|
||||
*
|
||||
* Such path is translates into query:
|
||||
*
|
||||
* * `%key1.takes_params[name=%key2].$key3`
|
||||
*
|
||||
* In a future we should support defining generic queries and thus not be
|
||||
* limited to simple search.
|
||||
*
|
||||
* @class _base.Search_provider
|
||||
* @extends _base.Provider
|
||||
*/
|
||||
define(['dojo/_base/declare','dojo/_base/lang', './Provider'],
|
||||
function(declare, lang, Provider) {
|
||||
|
||||
var Search_provider = declare([Provider], {
|
||||
|
||||
base_query: null,
|
||||
array_attr: null,
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
* @protected
|
||||
*/
|
||||
_get: function(key) {
|
||||
var search_keys = key.substring(this._code_length);
|
||||
search_keys = search_keys.split(':');
|
||||
var count = search_keys.length;
|
||||
if (count < 1 || count > 3) return null;
|
||||
|
||||
var key1, key2, key3;
|
||||
if (count === 1) {
|
||||
key2 = search_keys[0];
|
||||
} else if (count === 2) {
|
||||
key1 = search_keys[0];
|
||||
key2 = search_keys[1];
|
||||
} else {
|
||||
key1 = search_keys[0];
|
||||
key2 = search_keys[1];
|
||||
key3 = search_keys[2];
|
||||
}
|
||||
|
||||
var arr;
|
||||
var source = arr = this._get_source();
|
||||
|
||||
if (key1) {
|
||||
var property = this.base_query.replace('%1', search_keys[0]);
|
||||
arr = lang.getObject(property, false, source);
|
||||
}
|
||||
var ret = this._find(arr, this.array_attr, key2, false);
|
||||
if (ret && key3) {
|
||||
ret = lang.getObject(key3, false, ret);
|
||||
}
|
||||
return ret;
|
||||
},
|
||||
|
||||
/**
|
||||
* Finds object with attr_name === value in array defined by key.
|
||||
* @protected
|
||||
*/
|
||||
_find: function(array, attr, value, all) {
|
||||
|
||||
var vals = [];
|
||||
|
||||
if (!lang.isArrayLike(array)) return null;
|
||||
|
||||
for (var i=0; i<array.length; i++) {
|
||||
if (array[i][attr] === value) {
|
||||
vals.push(array[i]);
|
||||
if (!all) break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!all) return vals[0] || null;
|
||||
|
||||
return vals;
|
||||
},
|
||||
|
||||
constructor: function(spec) {
|
||||
|
||||
spec = spec || {};
|
||||
this.base_query = spec.base_query || '%1';
|
||||
this.array_attr = spec.array_attr || 'name';
|
||||
}
|
||||
});
|
||||
|
||||
return Search_provider;
|
||||
});
|
||||
168
install/ui/src/freeipa/_base/Singleton_registry.js
Normal file
@@ -0,0 +1,168 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2012 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
define(['dojo/_base/declare',
|
||||
'dojo/_base/array',
|
||||
'dojo/_base/lang',
|
||||
'./construct',
|
||||
'./Builder',
|
||||
'./Construct_registry'
|
||||
], function(declare, array, lang, construct, Builder, Construct_registry) {
|
||||
|
||||
/**
|
||||
* Registry for storing singleton instances of various items based
|
||||
* on their type.
|
||||
*
|
||||
* @class _base.Singleton_registry
|
||||
*/
|
||||
var Singleton_registry = declare(null, {
|
||||
|
||||
/**
|
||||
* Internal map for instances
|
||||
* @protected
|
||||
* @property {Object}
|
||||
*/
|
||||
_map: {},
|
||||
|
||||
/**
|
||||
* Builder used for building new instances. Builder has to have a
|
||||
* Constructor registry set.
|
||||
* @property {_base.Builder}
|
||||
*/
|
||||
builder: null,
|
||||
|
||||
/**
|
||||
* Gets an instance of given type. Creates a new one if it doesn't
|
||||
* exist.
|
||||
*
|
||||
* When an object is passed in, the function returns it.
|
||||
*
|
||||
* @param {string|Object} type Type's name. Or the object itself.
|
||||
* @return {Object|null}
|
||||
*/
|
||||
get: function(type) {
|
||||
|
||||
if (typeof type === 'object') return type;
|
||||
|
||||
var obj = this._map[type];
|
||||
|
||||
if (!obj) {
|
||||
if (!this.builder) return null;
|
||||
try {
|
||||
obj = this._map[type] = this.builder.build(type);
|
||||
} catch (e) {
|
||||
if (e.code === 'no-ctor-fac') obj = null;
|
||||
else {
|
||||
window.console.error('Error while building: ' + type);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return obj;
|
||||
},
|
||||
|
||||
/**
|
||||
* Set object of given type - overwrites existing
|
||||
*
|
||||
* @param {string} type
|
||||
* @param {Mixed} object
|
||||
*/
|
||||
set: function (type, obj) {
|
||||
this._map[type] = obj;
|
||||
},
|
||||
|
||||
/**
|
||||
* Removes object of given type from registry
|
||||
*
|
||||
* @param {string} type
|
||||
*/
|
||||
remove: function(type) {
|
||||
|
||||
var undefined;
|
||||
this._map[type] = undefined;
|
||||
},
|
||||
|
||||
/**
|
||||
* Registers construction specification
|
||||
*
|
||||
* @param {string|Object} type type or construction spec
|
||||
* @param {Function} func ctor or factory function
|
||||
* @param {Object} [default_spec] default spec object for given type
|
||||
*
|
||||
* @return {Object}
|
||||
*/
|
||||
register: function(type, func, default_spec) {
|
||||
this._check_builder();
|
||||
this.builder.registry.register(type, func, default_spec);
|
||||
},
|
||||
|
||||
/**
|
||||
* Makes a copy of construct specification of original type. Extends
|
||||
* it with values in supplied construct specification.
|
||||
*
|
||||
* @param {string} org_type Original type
|
||||
* @param {string} new_type New type
|
||||
* @param {Object} construct_spec Construction specification
|
||||
*/
|
||||
copy: function(org_type, new_type, construct_spec) {
|
||||
this._check_builder();
|
||||
this.builder.registry.copy(org_type, new_type, construct_spec);
|
||||
},
|
||||
|
||||
/**
|
||||
* Create new construction specification based on an existing one and
|
||||
* a specification object. Save it as a new type.
|
||||
* @param {string|Function} type New type or a callback to get
|
||||
* the type: `callback(spec)`
|
||||
* @param {Object} spec Construction specification
|
||||
*/
|
||||
register_from_spec: function(type, spec) {
|
||||
this._check_builder();
|
||||
var cs = this.builder.merge_spec(spec, true);
|
||||
if (typeof type === 'function') {
|
||||
cs.type = type(cs.spec);
|
||||
} else {
|
||||
cs.type = type;
|
||||
}
|
||||
this.builder.registry.register(cs);
|
||||
},
|
||||
|
||||
_check_builder: function() {
|
||||
if (!lang.exists('builder.registry', this)) {
|
||||
throw {
|
||||
error: 'Object Initialized Exception: builder not initalized',
|
||||
context: this
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
constructor: function(spec) {
|
||||
|
||||
spec = spec || {};
|
||||
this._map = {};
|
||||
this.builder = spec.builder || new Builder({
|
||||
registry: new Construct_registry()
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
return Singleton_registry;
|
||||
});
|
||||
242
install/ui/src/freeipa/_base/Spec_mod.js
Normal file
@@ -0,0 +1,242 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2013 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
define(['dojo/_base/declare',
|
||||
'dojo/_base/lang'
|
||||
], function(declare, lang) {
|
||||
|
||||
/**
|
||||
* Utility for common modification of specification objects
|
||||
*
|
||||
* @class _base.Spec_mod
|
||||
*/
|
||||
var Spec_mod = declare(null, {
|
||||
|
||||
/**
|
||||
* Modifies spec according to rules defined in diff object.
|
||||
*
|
||||
* Diff should have structure as follows:
|
||||
*
|
||||
* {
|
||||
* $add: array of add rules
|
||||
* $del: array of del rules
|
||||
* $set: array of set rules
|
||||
* $replace: array of replace rules
|
||||
* }
|
||||
*
|
||||
* The order of modification is del, add, set, replace.
|
||||
*
|
||||
* @param {Object} spec
|
||||
* @param {Object} diff
|
||||
*/
|
||||
mod: function(spec, diff) {
|
||||
|
||||
if (!diff) return spec;
|
||||
|
||||
this.del(spec, diff.$del);
|
||||
this.add(spec, diff.$add);
|
||||
this.set(spec, diff.$set);
|
||||
this.replace(spec, diff.$replace);
|
||||
|
||||
return spec;
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Adds objects according to rules to array.
|
||||
*
|
||||
* A rule is a triple of path and a object and position to add:
|
||||
*
|
||||
* ['path.to.spec.array', {}, position]
|
||||
* @param {Object} spec
|
||||
* @param {Array} rules
|
||||
*/
|
||||
add: function(spec, rules) {
|
||||
|
||||
return this._apply_rules(spec, rules, this._add);
|
||||
},
|
||||
|
||||
/**
|
||||
* Deletes objects according to rules from an array.
|
||||
*
|
||||
* A rule is a pair of path and delete conditions:
|
||||
*
|
||||
* ['path.to.spec.array', [ { name: 'foo'}, { name: 'baz'} ]]
|
||||
* // Deletes all objects with name 'baz' or 'foo'.
|
||||
* @param {Object} spec
|
||||
* @param {Array} rules
|
||||
*/
|
||||
del: function(spec, rules) {
|
||||
|
||||
return this._apply_rules(spec, rules, this._del);
|
||||
},
|
||||
|
||||
/**
|
||||
* A rule is a pair of path and a object to set.
|
||||
*
|
||||
* ['path.to.spec.property', {}]
|
||||
* @param {Object} spec
|
||||
* @param {Array} rules
|
||||
*/
|
||||
set: function(spec, rules) {
|
||||
|
||||
return this._apply_rules(spec, rules, this._set);
|
||||
},
|
||||
|
||||
/**
|
||||
* Replace objects in an arrays
|
||||
*
|
||||
* A rule is a pair of path to an array and a objects to replace in that array
|
||||
*
|
||||
* [
|
||||
* 'path.to.spec.array',
|
||||
* [
|
||||
* [match, new_obj_spec],
|
||||
* [match2, new_obj_spec_2],
|
||||
* ...
|
||||
* ]
|
||||
* ]
|
||||
* Example of replacement specs:
|
||||
*
|
||||
* ['add', { name: 'add', hide_cond: [] }]
|
||||
* [{ name: 'add' }, { name: 'add', hide_cond: [] }]
|
||||
* @param {Object} spec
|
||||
* @param {Array} rules
|
||||
*/
|
||||
replace: function(spec, rules) {
|
||||
|
||||
return this._apply_rules(spec, rules, this._replace);
|
||||
},
|
||||
|
||||
/**
|
||||
* Removes all rule props
|
||||
* @param {Object} diff
|
||||
*/
|
||||
del_rules: function(diff) {
|
||||
delete diff.$add;
|
||||
delete diff.$del;
|
||||
delete diff.$set;
|
||||
delete diff.$replace;
|
||||
},
|
||||
|
||||
_apply_rules: function(spec, rules, method) {
|
||||
if (!lang.isArrayLike(rules)) return spec;
|
||||
|
||||
for (var i=0; i<rules.length; i++) {
|
||||
method.call(this, spec, rules[i]);
|
||||
}
|
||||
|
||||
return spec;
|
||||
},
|
||||
|
||||
_add: function(spec, rule) {
|
||||
|
||||
var path = rule[0];
|
||||
var value = rule[1];
|
||||
var pos = rule[2];
|
||||
var arr = lang.getObject(path, false, spec);
|
||||
|
||||
if (!arr) {
|
||||
arr = [];
|
||||
lang.setObject(path, arr, spec);
|
||||
}
|
||||
|
||||
if (typeof pos !== 'number') pos = arr.length;
|
||||
else if (pos < 0) pos = 0;
|
||||
else if (pos > arr.length) pos = arr.length;
|
||||
|
||||
arr.splice(pos, 0, value);
|
||||
return spec;
|
||||
},
|
||||
|
||||
_del: function(spec, rule) {
|
||||
|
||||
var path = rule[0];
|
||||
var conds = rule[1];
|
||||
var arr = lang.getObject(path, false, spec);
|
||||
|
||||
if (!arr) return spec;
|
||||
|
||||
var del = [];
|
||||
var i,j;
|
||||
|
||||
for (i=0; i<arr.length; i++) {
|
||||
for (j=0; j<conds.length; j++) {
|
||||
if (this._match(arr[i], conds[j])) {
|
||||
del.push(i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
del.sort(function(a,b) {return b-a;});
|
||||
for (i=0; i<del.length;i++) {
|
||||
arr.splice(del[i], 1);
|
||||
}
|
||||
return spec;
|
||||
},
|
||||
|
||||
_replace: function(spec, rule) {
|
||||
|
||||
var path = rule[0];
|
||||
var replace_rules = rule[1];
|
||||
var arr = lang.getObject(path, false, spec);
|
||||
if (!arr) return spec;
|
||||
|
||||
for (var i=0; i<replace_rules.length; i++) {
|
||||
var conds = replace_rules[i][0];
|
||||
var new_spec = replace_rules[i][1];
|
||||
|
||||
for (var j=0; j<arr.length; j++) {
|
||||
if (this._match(arr[j], conds)) {
|
||||
arr[j] = new_spec;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return spec;
|
||||
},
|
||||
|
||||
_match: function(value, cond) {
|
||||
var match = true;
|
||||
|
||||
if (typeof cond !== 'object') {
|
||||
match = cond === value;
|
||||
} else {
|
||||
for (var prop in cond) {
|
||||
if (cond.hasOwnProperty(prop) && cond[prop] !== value[prop]) {
|
||||
match = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return match;
|
||||
},
|
||||
|
||||
_set: function(spec, rule) {
|
||||
lang.setObject(rule[0], rule[1], spec);
|
||||
return spec;
|
||||
}
|
||||
});
|
||||
|
||||
return Spec_mod;
|
||||
});
|
||||
126
install/ui/src/freeipa/_base/construct.js
Normal file
@@ -0,0 +1,126 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2012 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
define(['dojo/_base/declare',
|
||||
'dojo/_base/array',
|
||||
'dojo/_base/lang'
|
||||
], function(declare, array, lang) {
|
||||
|
||||
/**
|
||||
* Helper module
|
||||
* @class _base.construct
|
||||
* @singleton
|
||||
*/
|
||||
var construct = {
|
||||
|
||||
/**
|
||||
* Checks if supplied object is a constructor function.
|
||||
* It can recognize only classes declared by `dojo/_base/declare`.
|
||||
* @param {Object} obj
|
||||
*/
|
||||
is_ctor: function(obj) {
|
||||
|
||||
return typeof obj === 'function' && typeof obj.extend === 'function';
|
||||
},
|
||||
|
||||
/**
|
||||
* Finds out if object is a spec object.
|
||||
*
|
||||
* Object is not a spec object when it has an `isInstanceOf` function.
|
||||
*
|
||||
* @param {Object} obj
|
||||
*/
|
||||
is_spec: function(obj) {
|
||||
var ret = false;
|
||||
if (typeof obj === 'object') {
|
||||
ret = typeof obj.isInstanceOf === 'function';
|
||||
}
|
||||
return !ret;
|
||||
},
|
||||
|
||||
/**
|
||||
* Deep clone
|
||||
*
|
||||
* - does not clone framework objects
|
||||
* - fails on cyclic non-framework objects
|
||||
*
|
||||
* based on `dojo/_base/lang.clone`
|
||||
*
|
||||
* @param {Mixed} src object to clone
|
||||
*/
|
||||
clone: function(src) {
|
||||
|
||||
if(!src || typeof src != "object" || lang.isFunction(src)) {
|
||||
// null, undefined, any non-object, or function
|
||||
return src; // anything
|
||||
}
|
||||
if(src.nodeType && "cloneNode" in src) {
|
||||
// DOM Node
|
||||
return src.cloneNode(true); // Node
|
||||
}
|
||||
if (!construct.is_spec(src)) {
|
||||
// framework object
|
||||
return src;
|
||||
}
|
||||
if (src instanceof Date) {
|
||||
// Date
|
||||
return new Date(src.getTime()); // Date
|
||||
}
|
||||
if (src instanceof RegExp) {
|
||||
// RegExp
|
||||
return new RegExp(src); // RegExp
|
||||
}
|
||||
var r, i, l;
|
||||
if (lang.isArray(src)){
|
||||
// array
|
||||
r = [];
|
||||
for (i = 0, l = src.length; i < l; ++i) {
|
||||
if (i in src){
|
||||
r.push(construct.clone(src[i]));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// generic objects
|
||||
r = src.constructor ? new src.constructor() : {};
|
||||
}
|
||||
return lang._mixin(r, src, construct.clone);
|
||||
},
|
||||
|
||||
/**
|
||||
* Run object's init function after instantiation if it has one
|
||||
* @param {Object} obj
|
||||
* @param {Object} spec
|
||||
*/
|
||||
init_post_op: function(obj, spec) {
|
||||
if (obj && typeof obj.init === 'function') {
|
||||
obj.init(spec);
|
||||
}
|
||||
return obj;
|
||||
},
|
||||
|
||||
no_cs_for_type_error: function(type) {
|
||||
return {
|
||||
error: 'No construction specification for given type',
|
||||
type: type
|
||||
};
|
||||
}
|
||||
};
|
||||
return construct;
|
||||
});
|
||||
41
install/ui/src/freeipa/_base/debug.js
Normal file
@@ -0,0 +1,41 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2014 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
define([], function() {
|
||||
|
||||
/**
|
||||
* Debug module
|
||||
*
|
||||
* One can set flags to enable console output of various messages.
|
||||
*
|
||||
* """
|
||||
* var debug = require('freeipa._base.debug');
|
||||
* debug.provider_missing_value = true;
|
||||
* """
|
||||
*
|
||||
* Currently used flags
|
||||
*
|
||||
* - provider_missing_value
|
||||
*
|
||||
* @class _base.debug
|
||||
*/
|
||||
return {
|
||||
provider_missing_value: false
|
||||
};
|
||||
});
|
||||
42
install/ui/src/freeipa/_base/i18n.js
Normal file
@@ -0,0 +1,42 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2012 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Gets translated message.
|
||||
*
|
||||
* If a message starts with `@i18n`: it tries to get the message from
|
||||
* message object. If it doesn't contain a string with
|
||||
* the key it returns alternate string.
|
||||
*
|
||||
* It all other cases the message itself or empty string is returned.
|
||||
* @class _base.i18n
|
||||
* @extends _base.Provider
|
||||
* @singleton
|
||||
*/
|
||||
define(['dojo/_base/lang', './Provider'], function(lang, Provider) {
|
||||
|
||||
var i18n = new Provider({
|
||||
code: '@i18n:',
|
||||
null_value: '',
|
||||
required_type: 'string'
|
||||
});
|
||||
|
||||
return i18n;
|
||||
});
|
||||
972
install/ui/src/freeipa/aci.js
Normal file
@@ -0,0 +1,972 @@
|
||||
/* Authors:
|
||||
* Adam Young <ayoung@redhat.com>
|
||||
* Endi S. Dewata <edewata@redhat.com>
|
||||
*
|
||||
* 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
define([
|
||||
'dojo/on',
|
||||
'./metadata',
|
||||
'./ipa',
|
||||
'./jquery',
|
||||
'./phases',
|
||||
'./reg',
|
||||
'./text',
|
||||
'./details',
|
||||
'./search',
|
||||
'./association',
|
||||
'./entity'],
|
||||
function(on, metadata_provider, IPA, $, phases, reg, text) {
|
||||
|
||||
/**
|
||||
* Widgets, entities and fields related to Access Control that means
|
||||
* Permissions, Privilege, Role, Delegation and Self-service.
|
||||
*
|
||||
* @class aci
|
||||
* @singleton
|
||||
*/
|
||||
var aci = {};
|
||||
|
||||
/**
|
||||
* List of fields which are disabled for managed permissions
|
||||
* @property {Array}
|
||||
*/
|
||||
aci.managed_fields = [
|
||||
'ipapermright', 'extratargetfilter', 'memberof', 'ipapermlocation',
|
||||
'ipapermtarget', 'type'
|
||||
];
|
||||
|
||||
var make_permission_spec = function() {
|
||||
|
||||
return {
|
||||
name: 'permission',
|
||||
facet_groups: ['settings', 'privilege'],
|
||||
facets: [
|
||||
{
|
||||
$type: 'search',
|
||||
columns: [ 'cn' ]
|
||||
},
|
||||
{
|
||||
$factory: aci.permission_details_facet,
|
||||
$type: 'details',
|
||||
fields: [
|
||||
{
|
||||
name:'cn',
|
||||
widget: 'identity.cn'
|
||||
},
|
||||
{
|
||||
$type: 'radio',
|
||||
name:'ipapermbindruletype',
|
||||
widget: 'identity.ipapermbindruletype',
|
||||
flags: ['w_if_no_aci']
|
||||
},
|
||||
{
|
||||
$type: 'rights',
|
||||
name: 'ipapermright',
|
||||
widget: 'identity.ipapermright',
|
||||
required: true,
|
||||
flags: ['w_if_no_aci']
|
||||
},
|
||||
{
|
||||
$type: 'multivalued',
|
||||
name: 'extratargetfilter',
|
||||
widget: 'target.extratargetfilter',
|
||||
acl_param: 'ipapermtargetfilter',
|
||||
enabled: false,
|
||||
flags: ['w_if_no_aci']
|
||||
},
|
||||
{
|
||||
$type: 'multivalued',
|
||||
name: 'memberof',
|
||||
widget: 'target.memberof',
|
||||
enabled: false,
|
||||
flags: ['w_if_no_aci']
|
||||
},
|
||||
{
|
||||
name: 'ipapermlocation',
|
||||
widget: 'target.ipapermlocation',
|
||||
enabled: false,
|
||||
flags: ['w_if_no_aci']
|
||||
},
|
||||
{
|
||||
name: 'ipapermtarget',
|
||||
widget: 'target.ipapermtarget',
|
||||
enabled: false,
|
||||
flags: ['w_if_no_aci']
|
||||
},
|
||||
{
|
||||
$type: 'select',
|
||||
name: 'type',
|
||||
widget: 'target.type',
|
||||
enabled: false,
|
||||
flags: ['w_if_no_aci']
|
||||
|
||||
},
|
||||
{
|
||||
name: 'attrs',
|
||||
widget: 'target.attrs',
|
||||
enabled: false,
|
||||
flags: ['w_if_no_aci']
|
||||
},
|
||||
{
|
||||
name: 'attrs_multi',
|
||||
param: 'attrs',
|
||||
$type: 'multivalued',
|
||||
widget: 'target.attrs_multi',
|
||||
enabled: false,
|
||||
flags: ['w_if_no_aci']
|
||||
},
|
||||
{
|
||||
name: 'ipapermdefaultattr',
|
||||
$type: 'multivalued',
|
||||
widget: 'managed.ipapermdefaultattr'
|
||||
},
|
||||
{
|
||||
name: 'ipapermincludedattr',
|
||||
$type: 'multivalued',
|
||||
widget: 'managed.ipapermincludedattr',
|
||||
read_only: true
|
||||
},
|
||||
{
|
||||
name: 'ipapermexcludedattr',
|
||||
$type: 'multivalued',
|
||||
widget: 'managed.ipapermexcludedattr',
|
||||
read_only: true
|
||||
}
|
||||
],
|
||||
widgets: [
|
||||
{
|
||||
$type: 'details_section',
|
||||
name: 'identity',
|
||||
label: '@i18n:objects.permission.identity',
|
||||
widgets: [
|
||||
'cn',
|
||||
{
|
||||
$type: 'radio',
|
||||
name: 'ipapermbindruletype',
|
||||
options: ['permission', 'all', 'anonymous']
|
||||
},
|
||||
{
|
||||
$type: 'rights',
|
||||
name: 'ipapermright',
|
||||
layout: 'columns'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
$type: 'permission_target',
|
||||
container_factory: IPA.details_section,
|
||||
label: '@i18n:objects.permission.target',
|
||||
name: 'target'
|
||||
},
|
||||
{
|
||||
$type: 'details_section',
|
||||
name: 'managed',
|
||||
label: '@i18n:objects.permission.managed',
|
||||
widgets: [
|
||||
{
|
||||
$type: 'multivalued',
|
||||
name: 'ipapermdefaultattr'
|
||||
},
|
||||
{
|
||||
$type: 'multivalued',
|
||||
name: 'ipapermincludedattr'
|
||||
},
|
||||
{
|
||||
$type: 'multivalued',
|
||||
name: 'ipapermexcludedattr'
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
policies: [
|
||||
aci.permission_managed_policy,
|
||||
{
|
||||
$factory: aci.permission_target_policy,
|
||||
widget_name: 'target'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
$type: 'association',
|
||||
name: 'member_privilege',
|
||||
facet_group: 'privilege'
|
||||
}
|
||||
],
|
||||
adder_dialog: {
|
||||
height: 450,
|
||||
fields: [
|
||||
{
|
||||
name:'cn',
|
||||
widget: 'general.cn'
|
||||
},
|
||||
{
|
||||
$type: 'radio',
|
||||
name:'ipapermbindruletype',
|
||||
widget: 'general.ipapermbindruletype'
|
||||
},
|
||||
{
|
||||
$type: 'rights',
|
||||
name: 'ipapermright',
|
||||
widget: 'general.ipapermright',
|
||||
required: true
|
||||
},
|
||||
{
|
||||
$type: 'multivalued',
|
||||
name: 'extratargetfilter',
|
||||
widget: 'target.extratargetfilter',
|
||||
acl_param: 'ipapermtargetfilter',
|
||||
enabled: false
|
||||
},
|
||||
{
|
||||
$type: 'multivalued',
|
||||
name: 'memberof',
|
||||
widget: 'target.memberof',
|
||||
enabled: false
|
||||
},
|
||||
{
|
||||
name: 'ipapermlocation',
|
||||
widget: 'target.ipapermlocation',
|
||||
enabled: false
|
||||
},
|
||||
{
|
||||
name: 'ipapermtarget',
|
||||
widget: 'target.ipapermtarget',
|
||||
enabled: false
|
||||
},
|
||||
{
|
||||
$type: 'select',
|
||||
name: 'type',
|
||||
widget: 'target.type',
|
||||
enabled: false
|
||||
},
|
||||
{
|
||||
name: 'attrs',
|
||||
widget: 'target.attrs',
|
||||
enabled: false
|
||||
},
|
||||
{
|
||||
name: 'attrs_multi',
|
||||
$type: 'multivalued',
|
||||
param: 'attrs',
|
||||
widget: 'target.attrs_multi',
|
||||
enabled: false
|
||||
}
|
||||
],
|
||||
widgets: [
|
||||
{
|
||||
$type: 'details_section',
|
||||
name: 'general',
|
||||
widgets: [
|
||||
'cn',
|
||||
{
|
||||
$type: 'radio',
|
||||
name: 'ipapermbindruletype',
|
||||
options: ['permission', 'all', 'anonymous'],
|
||||
default_value: 'permission'
|
||||
},
|
||||
{
|
||||
$type: 'rights',
|
||||
name: 'ipapermright',
|
||||
layout: 'columns'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
$type: 'permission_target',
|
||||
name:'target'
|
||||
}
|
||||
],
|
||||
policies: [
|
||||
{
|
||||
$factory: aci.permission_target_policy,
|
||||
widget_name: 'target'
|
||||
}
|
||||
]
|
||||
}
|
||||
};};
|
||||
|
||||
/**
|
||||
* @class aci.permission_details_facet
|
||||
* @extends details.details_facet
|
||||
*/
|
||||
aci.permission_details_facet = function(spec) {
|
||||
|
||||
var that = IPA.details_facet(spec);
|
||||
|
||||
that.get_refresh_command_name = function() {
|
||||
return that.entity.name+'_show_'+that.get_pkey();
|
||||
};
|
||||
|
||||
return that;
|
||||
};
|
||||
|
||||
var make_privilege_spec = function() {
|
||||
return {
|
||||
name: 'privilege',
|
||||
facet_groups: ['permission', 'settings', 'role'],
|
||||
facets: [
|
||||
{
|
||||
$type: 'search',
|
||||
columns: [
|
||||
'cn',
|
||||
'description'
|
||||
]
|
||||
},
|
||||
{
|
||||
$type: 'details',
|
||||
sections: [
|
||||
{
|
||||
name: 'identity',
|
||||
label: '@i18n:details.identity',
|
||||
fields: [
|
||||
'cn',
|
||||
{
|
||||
$type: 'textarea',
|
||||
name: 'description'
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
$type: 'association',
|
||||
name: 'member_role',
|
||||
facet_group: 'role',
|
||||
add_method: 'add_privilege',
|
||||
remove_method: 'remove_privilege',
|
||||
associator: IPA.serial_associator
|
||||
},
|
||||
{
|
||||
$type: 'association',
|
||||
name: 'memberof_permission',
|
||||
facet_group: 'permission',
|
||||
add_method: 'add_permission',
|
||||
remove_method: 'remove_permission'
|
||||
}
|
||||
],
|
||||
standard_association_facets: true,
|
||||
adder_dialog: {
|
||||
fields: [
|
||||
'cn',
|
||||
{
|
||||
$type: 'textarea',
|
||||
name: 'description'
|
||||
}
|
||||
]
|
||||
}
|
||||
};};
|
||||
|
||||
var make_role_spec = function() {
|
||||
return {
|
||||
name: 'role',
|
||||
facet_groups: ['member', 'privilege', 'settings'],
|
||||
facets: [
|
||||
{
|
||||
$type: 'search',
|
||||
columns: [
|
||||
'cn',
|
||||
'description'
|
||||
]
|
||||
},
|
||||
{
|
||||
$type: 'details',
|
||||
sections: [
|
||||
{
|
||||
name: 'identity',
|
||||
label: '@i18n:objects.role.identity',
|
||||
fields: [
|
||||
'cn',
|
||||
{
|
||||
$type: 'textarea',
|
||||
name: 'description'
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
$type: 'association',
|
||||
name: 'memberof_privilege',
|
||||
facet_group: 'privilege',
|
||||
add_method: 'add_privilege',
|
||||
remove_method: 'remove_privilege'
|
||||
}
|
||||
],
|
||||
standard_association_facets: true,
|
||||
adder_dialog: {
|
||||
fields: [
|
||||
'cn',
|
||||
{
|
||||
$type: 'textarea',
|
||||
name: 'description'
|
||||
}
|
||||
]
|
||||
}
|
||||
};};
|
||||
|
||||
var make_selfservice_spec = function() {
|
||||
return {
|
||||
name: 'selfservice',
|
||||
facets: [
|
||||
{
|
||||
$type: 'search',
|
||||
columns: [ 'aciname' ],
|
||||
pagination: false
|
||||
},
|
||||
{
|
||||
$type: 'details',
|
||||
check_rights: false,
|
||||
sections: [
|
||||
{
|
||||
name: 'general',
|
||||
label: '@i18n:details.general',
|
||||
fields: [
|
||||
'aciname',
|
||||
{
|
||||
$type: 'attributes',
|
||||
object_type: 'user',
|
||||
name: 'attrs'
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
adder_dialog: {
|
||||
fields: [
|
||||
'aciname',
|
||||
{
|
||||
$type: 'attributes',
|
||||
object_type: 'user',
|
||||
name: 'attrs'
|
||||
}
|
||||
]
|
||||
}
|
||||
};};
|
||||
|
||||
|
||||
var make_delegation_spec = function() {
|
||||
return {
|
||||
name: 'delegation',
|
||||
facets: [
|
||||
{
|
||||
$type: 'search',
|
||||
columns: [ 'aciname' ],
|
||||
pagination: false
|
||||
},
|
||||
{
|
||||
$type: 'details',
|
||||
check_rights: false,
|
||||
sections: [
|
||||
{
|
||||
name: 'general',
|
||||
label: '@i18n:details.general',
|
||||
fields: [
|
||||
'aciname',
|
||||
{
|
||||
$type: 'checkboxes',
|
||||
name: 'permissions',
|
||||
required: true,
|
||||
options: IPA.create_options(['read', 'write'])
|
||||
},
|
||||
{
|
||||
$type: 'entity_select',
|
||||
name: 'group',
|
||||
other_entity: 'group',
|
||||
other_field: 'cn'
|
||||
},
|
||||
{
|
||||
$type: 'entity_select',
|
||||
name: 'memberof',
|
||||
other_entity: 'group',
|
||||
other_field: 'cn'
|
||||
},
|
||||
{
|
||||
$type: 'attributes',
|
||||
name: 'attrs',
|
||||
object_type: 'user'
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
standard_association_facets: false,
|
||||
adder_dialog: {
|
||||
fields: [
|
||||
'aciname',
|
||||
{
|
||||
$type: 'checkboxes',
|
||||
name: 'permissions',
|
||||
options: IPA.create_options(['read', 'write'])
|
||||
},
|
||||
{
|
||||
$type: 'entity_select',
|
||||
name: 'group',
|
||||
other_entity: 'group',
|
||||
other_field: 'cn'
|
||||
},
|
||||
{
|
||||
$type: 'entity_select',
|
||||
name: 'memberof',
|
||||
other_entity: 'group',
|
||||
other_field: 'cn'
|
||||
},
|
||||
{
|
||||
$type: 'attributes',
|
||||
name: 'attrs',
|
||||
object_type: 'user'
|
||||
}
|
||||
]
|
||||
}
|
||||
};};
|
||||
|
||||
aci.attributes_widget = function(spec) {
|
||||
|
||||
spec = spec || {};
|
||||
spec.layout = spec.layout || 'columns attribute_widget';
|
||||
spec.add_dialog_title = spec.add_dialog_title ||
|
||||
"@i18n:objects.permission.add_custom_attr";
|
||||
spec.add_field_label = spec.add_field_label ||
|
||||
'@i18n:objects.permission.attribute';
|
||||
|
||||
spec.set_value_to_lowercase = spec.set_value_to_lowercase === undefined ?
|
||||
true : spec.set_value_to_lowercase;
|
||||
|
||||
var that = IPA.custom_checkboxes_widget(spec);
|
||||
|
||||
that.object_type = spec.object_type;
|
||||
|
||||
that.populate = function() {
|
||||
|
||||
if (!that.object_type || that.object_type === '') return;
|
||||
|
||||
var metadata = metadata_provider.get('@mo:'+that.object_type);
|
||||
if (!metadata) return;
|
||||
|
||||
var aciattrs = metadata.aciattrs;
|
||||
|
||||
that.options = that.prepare_options(aciattrs);
|
||||
};
|
||||
|
||||
return that;
|
||||
};
|
||||
|
||||
/**
|
||||
* @class aci.rights_widget
|
||||
* @extends IPA.checkboxes_widget
|
||||
*/
|
||||
aci.rights_widget = function(spec) {
|
||||
|
||||
var that = IPA.checkboxes_widget(spec);
|
||||
|
||||
that.rights = ['read', 'search', 'compare', 'write', 'add', 'delete', 'all'];
|
||||
for (var i=0; i<that.rights.length; i++) {
|
||||
var right = that.rights[i];
|
||||
that.add_option({label: right, value: right});
|
||||
}
|
||||
|
||||
return that;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Default target to display in `permission_target_widget`
|
||||
* @property {string}
|
||||
*/
|
||||
aci.default_target = 'general';
|
||||
|
||||
/**
|
||||
* @class aci.permission_target_widget
|
||||
* @extends IPA.details_section
|
||||
*/
|
||||
aci.permission_target_widget = function(spec) {
|
||||
|
||||
spec = spec || {};
|
||||
|
||||
var factory = spec.container_factory || IPA.details_section;
|
||||
|
||||
var that = factory(spec);
|
||||
|
||||
that.group_entity = IPA.get_entity(spec.group_entity || 'group');
|
||||
|
||||
that.target = aci.default_target;
|
||||
|
||||
var init = function() {
|
||||
|
||||
var objects = metadata_provider.get('@m:objects');
|
||||
var types = IPA.create_options(['']);
|
||||
for (var o in objects) {
|
||||
if (objects.hasOwnProperty(o)) {
|
||||
var obj = objects[o];
|
||||
if (obj.can_have_permissions) {
|
||||
types.push({
|
||||
label: obj.label_singular,
|
||||
value: o
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
that.type_select = IPA.select_widget({
|
||||
entity: that.entity,
|
||||
name: 'type',
|
||||
visible: false,
|
||||
options: types
|
||||
});
|
||||
that.widgets.add_widget(that.type_select);
|
||||
|
||||
that.ipapermlocation_text = IPA.text_widget({
|
||||
entity: that.entity,
|
||||
name: 'ipapermlocation',
|
||||
visible: false
|
||||
});
|
||||
that.widgets.add_widget(that.ipapermlocation_text);
|
||||
|
||||
that.extratargetfilter_text = IPA.multivalued_widget({
|
||||
entity: that.entity,
|
||||
name: 'extratargetfilter',
|
||||
visible: false
|
||||
});
|
||||
that.widgets.add_widget(that.extratargetfilter_text);
|
||||
|
||||
that.ipapermtarget_text = IPA.text_widget({
|
||||
entity: that.entity,
|
||||
name: 'ipapermtarget',
|
||||
visible: false
|
||||
});
|
||||
that.widgets.add_widget(that.ipapermtarget_text);
|
||||
|
||||
that.memberof_select = IPA.multivalued_widget({
|
||||
name: 'memberof',
|
||||
entity: that.entity,
|
||||
hidden: true,
|
||||
child_spec: {
|
||||
$type: 'entity_select',
|
||||
other_entity: that.group_entity,
|
||||
other_field: 'cn'
|
||||
}
|
||||
});
|
||||
that.widgets.add_widget(that.memberof_select);
|
||||
|
||||
|
||||
that.attribute_table = aci.attributes_widget({
|
||||
entity: that.entity,
|
||||
name: 'attrs',
|
||||
object_type: types[0].name,
|
||||
visible: false
|
||||
});
|
||||
that.widgets.add_widget(that.attribute_table);
|
||||
|
||||
that.attribute_multivalued = IPA.multivalued_widget({
|
||||
entity: that.entity,
|
||||
name: 'attrs_multi',
|
||||
visible: false
|
||||
});
|
||||
that.widgets.add_widget(that.attribute_multivalued);
|
||||
};
|
||||
|
||||
init();
|
||||
|
||||
return that;
|
||||
};
|
||||
|
||||
/**
|
||||
* Permission target policy
|
||||
* @class aci.permission_target_policy
|
||||
* @extends IPA.facet_policy
|
||||
*/
|
||||
aci.permission_target_policy = function (spec) {
|
||||
|
||||
var that = IPA.facet_policy();
|
||||
that.widget_name = spec.widget_name;
|
||||
that.managed = false;
|
||||
|
||||
that.init = function() {
|
||||
|
||||
that.permission_target = that.container.widgets.get_widget(that.widget_name);
|
||||
var type_f = that.container.fields.get_field('type');
|
||||
|
||||
on(type_f, 'value-change', that.apply_type);
|
||||
};
|
||||
|
||||
that.apply_type = function () {
|
||||
|
||||
var widgets = that.permission_target.widgets;
|
||||
var type_select = widgets.get_widget('type');
|
||||
var type = type_select.save()[0];
|
||||
var new_target = type === '' ? 'general' : 'type';
|
||||
if (that.permission_target.target !== new_target) {
|
||||
|
||||
var attr_table = widgets.get_widget('attrs');
|
||||
var attr_multi = widgets.get_widget('attrs_multi');
|
||||
var loc_w = widgets.get_widget('ipapermlocation');
|
||||
var loc_f = that.container.fields.get_field('ipapermlocation');
|
||||
var attrs;
|
||||
that.select_target(new_target);
|
||||
|
||||
if (new_target === 'general') {
|
||||
attrs = attr_table.save();
|
||||
attr_multi.update(attrs);
|
||||
attr_multi.value_changed.notify([], attr_multi);
|
||||
|
||||
// permission plugin resets ipapermlocation to basedn when
|
||||
// type is unset. -> use it as pristine value so undo will
|
||||
// work correctly.
|
||||
loc_f.set_value([IPA.env.basedn], true);
|
||||
} else {
|
||||
attrs = attr_multi.save();
|
||||
attr_table.update(attrs);
|
||||
// notification will be done by `set_attrs_type`
|
||||
}
|
||||
}
|
||||
|
||||
that.set_attrs_type(type, true);
|
||||
};
|
||||
|
||||
that.set_attrs_type = function(type, skip_unmatched) {
|
||||
var attribute_field = that.container.fields.get_field('attrs');
|
||||
var attribute_table = that.permission_target.widgets.get_widget('attrs');
|
||||
var skip_unmatched_org = attribute_table.skip_unmatched;
|
||||
attribute_table.object_type = type;
|
||||
|
||||
// UI doesn't always know what are the possible attributes.
|
||||
// In case of managed permissions, one of the possible lists is in ipapermdefaultattr.
|
||||
var default_attrs = that.container.fields.get_field('ipapermdefaultattr');
|
||||
if (default_attrs && default_attrs.enabled) { // if managed permission
|
||||
attribute_table.custom_options = default_attrs.get_value();
|
||||
} else {
|
||||
attribute_table.custom_options = [];
|
||||
}
|
||||
|
||||
// skip values which don't belong to new type. Bug #2617
|
||||
attribute_table.skip_unmatched = skip_unmatched || skip_unmatched_org;
|
||||
attribute_field.reset();
|
||||
// force value_change to update dirty status if some unmatched values were skipped
|
||||
attribute_table.value_changed.notify([], attribute_table);
|
||||
attribute_table.skip_unmatched = skip_unmatched_org;
|
||||
};
|
||||
|
||||
that.update_attrs = function() {
|
||||
|
||||
var type_select = that.permission_target.widgets.get_widget('type');
|
||||
var type = type_select.save()[0];
|
||||
that.set_attrs_type(type, false);
|
||||
};
|
||||
|
||||
that.post_create = function() {
|
||||
that.select_target(aci.default_target);
|
||||
};
|
||||
|
||||
that.post_load = function(data) {
|
||||
|
||||
var displayed_target = 'general';
|
||||
var permtype = data.result.result.ipapermissiontype;
|
||||
that.managed = permtype && permtype.indexOf("MANAGED") > -1;
|
||||
that.system = permtype && permtype.indexOf("SYSTEM") > -1 && permtype.length === 1;
|
||||
|
||||
for (var target in that.target_mapping) {
|
||||
var property = that.target_mapping[target].property;
|
||||
if (property && data.result.result[property]) {
|
||||
displayed_target = target;
|
||||
} else {
|
||||
that.set_target_visible(target, false);
|
||||
}
|
||||
}
|
||||
|
||||
if (displayed_target) {
|
||||
that.permission_target.target = displayed_target;
|
||||
that.set_target_visible(displayed_target, true);
|
||||
}
|
||||
};
|
||||
|
||||
that.select_target = function(target) {
|
||||
that.set_target_visible(that.permission_target.target, false);
|
||||
that.permission_target.target = target;
|
||||
that.set_target_visible(that.permission_target.target, true);
|
||||
};
|
||||
|
||||
that.set_target_visible = function(target, visible) {
|
||||
|
||||
var target_info = that.target_mapping[target];
|
||||
|
||||
for (var i=0,l=target_info.fields.length; i<l; i++) {
|
||||
var info = target_info.fields[i];
|
||||
that.set_target_row_visible(info, visible);
|
||||
}
|
||||
|
||||
if (visible && target_info.action) target_info.action();
|
||||
};
|
||||
|
||||
that.set_target_row_visible = function(target_info, visible) {
|
||||
var widget = that.permission_target.widgets.get_widget(target_info.name);
|
||||
var field = that.container.fields.get_field(target_info.name);
|
||||
that.permission_target.set_row_visible(target_info.name, visible);
|
||||
field.set_enabled(visible);
|
||||
field.set_required(visible && target_info.required);
|
||||
widget.set_visible(visible);
|
||||
};
|
||||
|
||||
that.target_mapping = {
|
||||
general: {
|
||||
fields: [
|
||||
{
|
||||
name: 'extratargetfilter'
|
||||
},
|
||||
{
|
||||
name: 'ipapermlocation',
|
||||
required: true
|
||||
},
|
||||
{
|
||||
name: 'ipapermtarget'
|
||||
},
|
||||
{
|
||||
name: 'type'
|
||||
},
|
||||
{
|
||||
name: 'memberof'
|
||||
},
|
||||
{
|
||||
name: 'attrs_multi'
|
||||
}
|
||||
]
|
||||
},
|
||||
type: {
|
||||
property: 'type',
|
||||
fields: [
|
||||
{
|
||||
name: 'extratargetfilter'
|
||||
},
|
||||
{
|
||||
name: 'memberof'
|
||||
},
|
||||
{
|
||||
name: 'type'
|
||||
},
|
||||
{
|
||||
name: 'attrs'
|
||||
},
|
||||
{
|
||||
name: 'ipapermtarget'
|
||||
}
|
||||
],
|
||||
action: function() {
|
||||
that.update_attrs();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
return that;
|
||||
};
|
||||
|
||||
/**
|
||||
* Facet policy which shows and hides managed section based on presence
|
||||
* "MANAGED" in ippapermissiontype attribute
|
||||
* @class aci.permission_managed_policy
|
||||
* @extends IPA.facet_policy
|
||||
*/
|
||||
aci.permission_managed_policy = function (spec) {
|
||||
|
||||
var that = IPA.facet_policy();
|
||||
|
||||
that.post_load = function(data) {
|
||||
|
||||
var result = data.result.result;
|
||||
var permtype = result.ipapermissiontype;
|
||||
var managed = permtype && permtype.indexOf("MANAGED") > -1;
|
||||
var system = permtype && permtype.indexOf("SYSTEM") > -1 && permtype.length === 1;
|
||||
var m_section = that.container.widgets.get_widget("managed");
|
||||
m_section.set_visible(managed);
|
||||
|
||||
var fields = that.container.fields.get_fields();
|
||||
for (var i=0, l=fields.length; i<l; i++) {
|
||||
var field = fields[i];
|
||||
if (field.read_only) continue;
|
||||
var managed_f = aci.managed_fields.indexOf(field.name) > -1;
|
||||
field.set_writable(!system && !(managed_f && managed) && field.writable);
|
||||
}
|
||||
|
||||
// Bind rule type cannot be changed if permission is in a privilege
|
||||
var privileges = result.member_privilege;
|
||||
if (privileges && privileges.length > 0) {
|
||||
var f = that.container.fields.get_field('ipapermbindruletype');
|
||||
f.set_writable(false);
|
||||
}
|
||||
};
|
||||
|
||||
return that;
|
||||
};
|
||||
|
||||
/**
|
||||
* Permission entity spec
|
||||
* @member aci
|
||||
*/
|
||||
aci.permission_entity_spec = make_permission_spec();
|
||||
|
||||
/**
|
||||
* Privilege entity spec
|
||||
* @member aci
|
||||
*/
|
||||
aci.privilege_entity_spec = make_privilege_spec();
|
||||
|
||||
/**
|
||||
* Role entity spec
|
||||
* @member aci
|
||||
*/
|
||||
aci.role_entity_spec = make_role_spec();
|
||||
|
||||
/**
|
||||
* Self-service entity spec
|
||||
* @member aci
|
||||
*/
|
||||
aci.selfservice_entity_spec = make_selfservice_spec();
|
||||
|
||||
/**
|
||||
* Delegation entity spec
|
||||
* @member aci
|
||||
*/
|
||||
aci.delegation_entity_spec = make_delegation_spec();
|
||||
|
||||
/**
|
||||
* Register entities, widgets and fields to global registers.
|
||||
* @member aci
|
||||
*/
|
||||
aci.register = function() {
|
||||
var e = reg.entity;
|
||||
var w = reg.widget;
|
||||
var f = reg.field;
|
||||
|
||||
e.register({ type: 'permission', spec: aci.permission_entity_spec });
|
||||
e.register({ type: 'privilege', spec: aci.privilege_entity_spec });
|
||||
e.register({ type: 'role', spec: aci.role_entity_spec });
|
||||
e.register({ type: 'selfservice', spec: aci.selfservice_entity_spec });
|
||||
e.register({ type: 'delegation', spec: aci.delegation_entity_spec });
|
||||
|
||||
w.register('attributes', aci.attributes_widget);
|
||||
f.register('attributes', IPA.field);
|
||||
w.register('rights', aci.rights_widget);
|
||||
f.register('rights', IPA.field);
|
||||
w.register('permission_target', aci.permission_target_widget);
|
||||
};
|
||||
|
||||
phases.on('registration', aci.register);
|
||||
|
||||
return aci;
|
||||
});
|
||||
270
install/ui/src/freeipa/add.js
Normal file
@@ -0,0 +1,270 @@
|
||||
/* Authors:
|
||||
* Pavel Zuna <pzuna@redhat.com>
|
||||
* Endi Sukma Dewata <edewata@redhat.com>
|
||||
*
|
||||
* 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
define(['./ipa', './jquery', './navigation', './rpc', './text', './field', './widget', './dialog'],
|
||||
function(IPA, $, navigation, rpc, text, field_mod, widget_mod) {
|
||||
|
||||
/**
|
||||
* Entity adder dialog
|
||||
* @class
|
||||
* @extends IPA.dialog
|
||||
* @mixins IPA.confirm_mixin
|
||||
*/
|
||||
IPA.entity_adder_dialog = function(spec) {
|
||||
|
||||
spec = spec || {};
|
||||
|
||||
spec.name = spec.name || 'entity_adder_dialog';
|
||||
|
||||
var that = IPA.dialog(spec);
|
||||
|
||||
that.on_cancel = that.close;
|
||||
|
||||
IPA.confirm_mixin().apply(that);
|
||||
|
||||
/** @property {string} method="add" API method for add command */
|
||||
that.method = spec.method || 'add';
|
||||
/** @property {Function} on_error Custom add error handler */
|
||||
that.on_error = spec.on_error ;
|
||||
/** @property {boolean} retry=true Allow retry on error (same as in rpc.command)*/
|
||||
that.retry = typeof spec.retry !== 'undefined' ? spec.retry : true;
|
||||
/**
|
||||
* Add command
|
||||
* @property {rpc.command}
|
||||
* @protected
|
||||
*/
|
||||
that.command = null;
|
||||
/** @property {IPA.observer} added Added event */
|
||||
that.added = IPA.observer();
|
||||
/** @property {string} subject Name of added subject (usually entity label) */
|
||||
that.subject = spec.subject || that.entity.metadata.label_singular;
|
||||
/**
|
||||
* Pkeys of containing entities to use in add command when adding nested entity
|
||||
* @property {string[]}
|
||||
*/
|
||||
that.pkey_prefix = spec.pkey_prefix || [];
|
||||
|
||||
/**
|
||||
* Custom logic for navigation to edit page in case of 'Add and Edit'
|
||||
* @property {Function}
|
||||
* @param {entity.entity} entity
|
||||
* @param {Object} result
|
||||
*/
|
||||
that.show_edit_page = spec.show_edit_page || show_edit_page;
|
||||
|
||||
var init = function() {
|
||||
that.create_button({
|
||||
name: 'add',
|
||||
label: '@i18n:buttons.add',
|
||||
click: function() {
|
||||
that.on_add();
|
||||
}
|
||||
});
|
||||
|
||||
that.create_button({
|
||||
name: 'add_and_add_another',
|
||||
label: '@i18n:buttons.add_and_add_another',
|
||||
click: function() {
|
||||
that.hide_message();
|
||||
that.add(
|
||||
function(data, text_status, xhr) {
|
||||
that.added.notify([data, 'add_and_add_another'], that);
|
||||
that.show_message(that.get_success_message(data), 'success');
|
||||
that.reset();
|
||||
that.focus_first_element();
|
||||
},
|
||||
that.on_error);
|
||||
}
|
||||
});
|
||||
|
||||
that.create_button({
|
||||
name: 'add_and_edit',
|
||||
label: '@i18n:buttons.add_and_edit',
|
||||
click: function() {
|
||||
that.hide_message();
|
||||
that.add(
|
||||
function(data, text_status, xhr) {
|
||||
that.added.notify([data, 'add_and_edit'], that);
|
||||
that.close();
|
||||
var result = data.result.result;
|
||||
that.show_edit_page(that.entity, result);
|
||||
that.notify_success(data);
|
||||
},
|
||||
that.on_error);
|
||||
}
|
||||
});
|
||||
|
||||
that.create_button({
|
||||
name: 'cancel',
|
||||
label: '@i18n:buttons.cancel',
|
||||
click: function() {
|
||||
that.hide_message();
|
||||
that.close();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Invokes simple add
|
||||
* @protected
|
||||
*/
|
||||
that.on_add = function() {
|
||||
|
||||
that.hide_message();
|
||||
that.add(
|
||||
function(data, text_status, xhr) {
|
||||
that.added.notify([data, 'add'], that);
|
||||
that.close();
|
||||
that.notify_success(data);
|
||||
},
|
||||
that.on_error);
|
||||
};
|
||||
|
||||
/**
|
||||
* Confirm handler
|
||||
* @protected
|
||||
*/
|
||||
that.on_confirm = function() {
|
||||
that.on_add();
|
||||
};
|
||||
|
||||
/**
|
||||
* Get success notification message text
|
||||
* @protected
|
||||
* @param {Object} data Add command result
|
||||
*/
|
||||
that.get_success_message = function(data) {
|
||||
var message = text.get('@i18n:dialogs.add_confirmation');
|
||||
return message.replace('${entity}', that.subject);
|
||||
};
|
||||
|
||||
/**
|
||||
* Show success notification
|
||||
* @protected
|
||||
* @param {Object} data Add command result
|
||||
*/
|
||||
that.notify_success = function(data) {
|
||||
IPA.notify_success(that.get_success_message(data));
|
||||
};
|
||||
|
||||
function show_edit_page(entity,result) {
|
||||
var pkey_name = entity.metadata.primary_key;
|
||||
var pkey = result[pkey_name];
|
||||
if (!(pkey instanceof Array)) {
|
||||
pkey = [pkey];
|
||||
}
|
||||
rpc.extract_objects(pkey);
|
||||
|
||||
var pkeys = that.pkey_prefix.slice(0);
|
||||
pkeys.push(pkey[0]);
|
||||
navigation.show_entity(that.entity.name, 'default', pkeys);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create add command
|
||||
* @protected
|
||||
* @param {Object} record Saved data
|
||||
*/
|
||||
that.create_add_command = function(record) {
|
||||
|
||||
var pkey_name = that.entity.metadata.primary_key;
|
||||
|
||||
var command = rpc.command({
|
||||
entity: that.entity.name,
|
||||
method: that.method,
|
||||
retry: that.retry
|
||||
});
|
||||
|
||||
command.add_args(that.pkey_prefix.slice(0));
|
||||
|
||||
var fields = that.fields.get_fields();
|
||||
for (var j=0; j<fields.length; j++) {
|
||||
var field = fields[j];
|
||||
|
||||
var values = record[field.param];
|
||||
if (!values || values.length === 0 || !field.enabled) continue;
|
||||
if (field.flags.indexOf('no_command') > -1) continue;
|
||||
|
||||
if (field.param === pkey_name) {
|
||||
command.add_arg(values[0]);
|
||||
} else if (values.length === 1) {
|
||||
command.set_option(field.param, values[0]);
|
||||
} else {
|
||||
command.set_option(field.param, values);
|
||||
}
|
||||
}
|
||||
|
||||
return command;
|
||||
};
|
||||
|
||||
/**
|
||||
* Execute add command
|
||||
* @param {Function} on_success
|
||||
* @param {Function} on_error
|
||||
*/
|
||||
that.add = function(on_success, on_error) {
|
||||
|
||||
if (!that.validate()) {
|
||||
widget_mod.focus_invalid(that);
|
||||
return;
|
||||
}
|
||||
|
||||
var record = {};
|
||||
that.save(record);
|
||||
|
||||
that.command = that.create_add_command(record);
|
||||
that.command.on_success = on_success;
|
||||
that.command.on_error = on_error;
|
||||
|
||||
that.command.execute();
|
||||
};
|
||||
|
||||
/** @inheritDoc */
|
||||
that.create_content = function() {
|
||||
that.dialog_create_content();
|
||||
|
||||
var div = $('<div/>', {
|
||||
}).appendTo(that.container);
|
||||
|
||||
$('<span/>', {
|
||||
'class': 'required-indicator',
|
||||
text: IPA.required_indicator
|
||||
}).appendTo(div);
|
||||
|
||||
div.append(' ');
|
||||
|
||||
$('<span/>', {
|
||||
text: text.get('@i18n:widget.validation.required')
|
||||
}).appendTo(div);
|
||||
};
|
||||
|
||||
// methods that should be invoked by subclasses
|
||||
that.entity_adder_dialog_create_content = that.create_content;
|
||||
that.entity_adder_dialog_create_add_command = that.create_add_command;
|
||||
that.entity_adder_dialog_get_success_message = that.get_success_message;
|
||||
|
||||
init();
|
||||
|
||||
return that;
|
||||
};
|
||||
|
||||
return IPA.entity_adder_dialog;
|
||||
});
|
||||
63
install/ui/src/freeipa/app.js
Normal file
@@ -0,0 +1,63 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2012 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
define([
|
||||
// core
|
||||
'./app_container',
|
||||
'./plugins/sync_otp',
|
||||
'./plugins/login',
|
||||
'./plugins/login_process',
|
||||
'./plugins/api_browser',
|
||||
// entities
|
||||
'./aci',
|
||||
'./automember',
|
||||
'./automount',
|
||||
'./plugins/ca',
|
||||
'./plugins/caacl',
|
||||
'./plugins/certprofile',
|
||||
'./plugins/certmap',
|
||||
'./plugins/certmapmatch',
|
||||
'./dns',
|
||||
'./group',
|
||||
'./hbac',
|
||||
'./hbactest',
|
||||
'./hostgroup',
|
||||
'./host',
|
||||
'./idrange',
|
||||
'./idviews',
|
||||
'./netgroup',
|
||||
'./otptoken',
|
||||
'./policy',
|
||||
'./radiusproxy',
|
||||
'./realmdomains',
|
||||
'./rule',
|
||||
'./selinux',
|
||||
'./serverconfig',
|
||||
'./service',
|
||||
'./stageuser',
|
||||
'./sudo',
|
||||
'./trust',
|
||||
'./topology',
|
||||
'./user',
|
||||
'./vault',
|
||||
'dojo/domReady!'
|
||||
],function(app_container) {
|
||||
return app_container;
|
||||
});
|
||||
163
install/ui/src/freeipa/app_container.js
Normal file
@@ -0,0 +1,163 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2012 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
define([
|
||||
'dojo/_base/lang',
|
||||
'dojo/Deferred',
|
||||
'dojo/on',
|
||||
'dojo/when',
|
||||
'./plugin_loader',
|
||||
'./phases',
|
||||
'./reg',
|
||||
'./Application_controller',
|
||||
'exports'
|
||||
],function(lang, Deferred, on, when, plugin_loader, phases, reg, Application_controller, app) {
|
||||
|
||||
/**
|
||||
* Application wrapper
|
||||
*
|
||||
* Prepares application controller and registers phases.
|
||||
*
|
||||
* @class app
|
||||
* @singleton
|
||||
*/
|
||||
lang.mixin(app, {
|
||||
|
||||
/**
|
||||
* Application instance
|
||||
*/
|
||||
app: null,
|
||||
|
||||
/**
|
||||
* Application class
|
||||
*/
|
||||
App_class: Application_controller,
|
||||
|
||||
/**
|
||||
* Phases registration
|
||||
*/
|
||||
register_phases: function() {
|
||||
|
||||
phases.on('init', function() {
|
||||
var app = this.app = new this.App_class();
|
||||
app.init();
|
||||
return app;
|
||||
}.bind(this));
|
||||
|
||||
phases.on('init', function() {
|
||||
var deferred = new Deferred();
|
||||
|
||||
function reject(item) {
|
||||
var msg = "Web UI requires " + item + " enabled. " +
|
||||
"Possible cause: too strict browser " +
|
||||
"configuration.";
|
||||
deferred.reject({ message: msg });
|
||||
return deferred.promise;
|
||||
}
|
||||
|
||||
function testStorage(storage) {
|
||||
try {
|
||||
if (!window[storage]) return false;
|
||||
} catch(e) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!window.navigator.cookieEnabled) return reject('cookies');
|
||||
if (!testStorage('sessionStorage')) return reject('sessionStorage');
|
||||
if (!testStorage('localStorage')) return reject('localStorage');
|
||||
|
||||
if (window.sessionStorage.getItem('logout')) {
|
||||
window.sessionStorage.removeItem('logout');
|
||||
var login_facet = reg.facet.get('login');
|
||||
this.app.show_facet(login_facet);
|
||||
on.once(login_facet, "logged_in", function() {
|
||||
deferred.resolve();
|
||||
});
|
||||
} else {
|
||||
deferred.resolve();
|
||||
}
|
||||
return deferred.promise;
|
||||
}.bind(this));
|
||||
|
||||
phases.on('metadata', function() {
|
||||
var deferred = new Deferred();
|
||||
|
||||
this.app.get_configuration(function(success) {
|
||||
deferred.resolve(success);
|
||||
}, function(error) {
|
||||
deferred.reject(error);
|
||||
});
|
||||
|
||||
return deferred.promise;
|
||||
}.bind(this));
|
||||
|
||||
phases.on('profile', function() {
|
||||
this.app.choose_profile();
|
||||
}.bind(this));
|
||||
|
||||
phases.on('runtime', function() {
|
||||
return this.app.start_runtime();
|
||||
}.bind(this));
|
||||
|
||||
phases.on('shutdown', function() {
|
||||
return this.app.start_logout();
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
simple_mode_phases: function() {
|
||||
|
||||
phases.on('init', function() {
|
||||
var app = this.app = new this.App_class();
|
||||
app.init();
|
||||
return app;
|
||||
}.bind(this));
|
||||
|
||||
phases.on('runtime', function() {
|
||||
var d = new Deferred();
|
||||
var facet = reg.facet.get(this.target_facet);
|
||||
if (!facet) {
|
||||
window.console.error('Target facet not found: '+this.target_facet);
|
||||
} else {
|
||||
this.app.show_facet(facet);
|
||||
}
|
||||
return d.promise;
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
run: function() {
|
||||
when(plugin_loader.load_plugins(), function() {
|
||||
this.register_phases();
|
||||
phases.controller.run();
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
run_simple: function(facet) {
|
||||
this.target_facet = facet;
|
||||
when(plugin_loader.load_plugins(), function() {
|
||||
this.simple_mode_phases();
|
||||
phases.controller.run();
|
||||
}.bind(this));
|
||||
}
|
||||
});
|
||||
|
||||
return app;
|
||||
});
|
||||
1716
install/ui/src/freeipa/association.js
Normal file
252
install/ui/src/freeipa/auth.js
Normal file
@@ -0,0 +1,252 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2014 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
define([
|
||||
'dojo/_base/declare',
|
||||
'dojo/_base/lang',
|
||||
'dojo/Deferred',
|
||||
'dojo/Evented',
|
||||
'dojo/Stateful',
|
||||
'dojo/topic',
|
||||
'dojo/when'
|
||||
],
|
||||
function(declare, lang, Deferred, Evented, Stateful, topic, when) {
|
||||
|
||||
/**
|
||||
* Authentication module
|
||||
* @class auth
|
||||
* @singleton
|
||||
*/
|
||||
var auth = {
|
||||
/**
|
||||
* Current authentication state
|
||||
* @property {auth.Auth}
|
||||
*/
|
||||
current: null
|
||||
};
|
||||
|
||||
/**
|
||||
* Authentication interface and state.
|
||||
*
|
||||
* Can be used for checking whether user is authenticated, by what method or
|
||||
* what methods can be used for authentication. Actual authentication is
|
||||
* done by separate object - authentication provider.
|
||||
*
|
||||
* Communication with authentication providers is done through global messages
|
||||
* (`dojo/topic`).
|
||||
*
|
||||
* Some component can initiate the authentication process by calling:
|
||||
*
|
||||
* var auth_promise = auth.current.authenticate();
|
||||
*
|
||||
* `auth_promise` is a promise which is resolve on auth success and rejected
|
||||
* on auth failure.
|
||||
*
|
||||
* Logout works in similar fashion:
|
||||
*
|
||||
* var logout_promise = auth.current.logout();
|
||||
*
|
||||
* The communication with authentication providers works as follows:
|
||||
*
|
||||
* 1. `auth.current.authenticate();` publishes `authenticate` topic
|
||||
* 2. provider starts the authentication process
|
||||
* 3. if it finishes with a success provider publishes `auth-successful`, if not
|
||||
* it publishes `auth-failed`
|
||||
* 4. the promise is resolved or rejected
|
||||
*
|
||||
* Logout works in similar fashion, only the topic names are `log-out`,
|
||||
* `logout-successful` and `logout-failed`.
|
||||
*
|
||||
* New `authenticate` or `log-out` topics are not published if there is
|
||||
* already authentication or logout in progress. The promises from subsequent
|
||||
* `authenticate()` or `logout()` calls are resolved as expected.
|
||||
*
|
||||
* `login`, `principal`, `whoami`, `fullname` properties are supposed to be
|
||||
* set by authentication providers.
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
auth.Auth = declare([Stateful, Evented], {
|
||||
/**
|
||||
* Raw User information
|
||||
*
|
||||
* @property {Object}
|
||||
*/
|
||||
whoami: {},
|
||||
|
||||
/**
|
||||
* User is authenticated
|
||||
*
|
||||
* Use `set_authenticated(state, method)` for setting it.
|
||||
*
|
||||
* @property {boolean}
|
||||
* @readonly
|
||||
*/
|
||||
authenticated: false,
|
||||
|
||||
/**
|
||||
* Method used for authentication
|
||||
* @property {string}
|
||||
*/
|
||||
authenticated_by: "",
|
||||
|
||||
/**
|
||||
* Enabled auth methods
|
||||
* @property {string[]}
|
||||
*/
|
||||
auth_methods: ['kerberos', 'password', 'certificate'],
|
||||
|
||||
/**
|
||||
* Authenticated user's Kerberos principal
|
||||
* @property {string}
|
||||
*/
|
||||
principal: "",
|
||||
|
||||
/**
|
||||
* Authenticated user's login
|
||||
* @property {string}
|
||||
*/
|
||||
login: "",
|
||||
|
||||
/**
|
||||
* Authenticated user's fullname
|
||||
* @property {string}
|
||||
*/
|
||||
fullname: "",
|
||||
|
||||
/**
|
||||
* Authentication is in progress
|
||||
* @property {boolean}
|
||||
*/
|
||||
authenticating: false,
|
||||
|
||||
/**
|
||||
* Logging out is in progress
|
||||
* @property {boolean}
|
||||
*/
|
||||
logging_out: false,
|
||||
|
||||
/**
|
||||
* Indicates whether user was previously authenticated
|
||||
* @property {boolean}
|
||||
*/
|
||||
expired: false,
|
||||
|
||||
/**
|
||||
* Update authenticated state
|
||||
* @param {boolean} state User is authenticated
|
||||
* @param {string} method used for authentication
|
||||
*/
|
||||
set_authenticated: function(state, method) {
|
||||
|
||||
if (this.authenticated && !state) {
|
||||
this.set('expired', true);
|
||||
}
|
||||
|
||||
this.set('authenticated', state);
|
||||
this.set('authenticated_by', method);
|
||||
|
||||
if (this.authenticated) {
|
||||
this.set('expired', false);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Initiate authentication process (if not already initiated)
|
||||
*
|
||||
* Returns promise which is fulfilled when user is authenticated. It's
|
||||
* rejected when authentication is canceled.
|
||||
* @returns {Promise}
|
||||
*/
|
||||
authenticate: function() {
|
||||
var authenticated = new Deferred();
|
||||
var ok_handler = topic.subscribe('auth-successful', function(info) {
|
||||
authenticated.resolve(true);
|
||||
ok_handler.remove();
|
||||
fail_handler.remove();
|
||||
});
|
||||
var fail_handler = topic.subscribe('auth-failed', function(info) {
|
||||
authenticated.reject();
|
||||
ok_handler.remove();
|
||||
fail_handler.remove();
|
||||
});
|
||||
if (!this.authenticating) {
|
||||
topic.publish('authenticate', this);
|
||||
}
|
||||
return authenticated.promise;
|
||||
},
|
||||
|
||||
/**
|
||||
* Initiate logout process (if not already initiated)
|
||||
*
|
||||
* Returns promise which is fulfilled when user is logged-out. It's
|
||||
* rejected when logout failed.
|
||||
* @returns {Promise}
|
||||
*/
|
||||
logout: function() {
|
||||
var loggedout = new Deferred();
|
||||
var ok_handler = topic.subscribe('logout-successful', function(info) {
|
||||
loggedout.resolve(true);
|
||||
ok_handler.remove();
|
||||
fail_handler.remove();
|
||||
});
|
||||
var fail_handler = topic.subscribe('logout-failed', function(info) {
|
||||
loggedout.reject();
|
||||
ok_handler.remove();
|
||||
fail_handler.remove();
|
||||
});
|
||||
if (!this.logging_out) {
|
||||
topic.publish('log-out', this);
|
||||
}
|
||||
return loggedout.promise;
|
||||
},
|
||||
|
||||
/**
|
||||
* Initializes instance
|
||||
*
|
||||
* @private
|
||||
*/
|
||||
postscript: function() {
|
||||
var self = this;
|
||||
var auth_true = function() {
|
||||
self.set('authenticating', true);
|
||||
};
|
||||
var auth_false = function() {
|
||||
self.set('authenticating', false);
|
||||
};
|
||||
var out_true = function() {
|
||||
self.set('logging_out', true);
|
||||
};
|
||||
var out_false = function() {
|
||||
self.set('logging_out', false);
|
||||
};
|
||||
|
||||
topic.subscribe('auth-successful', auth_false);
|
||||
topic.subscribe('auth-failed', auth_false);
|
||||
topic.subscribe('authenticate', auth_true);
|
||||
topic.subscribe('logout-successful', out_true);
|
||||
topic.subscribe('logout-failed', out_true);
|
||||
topic.subscribe('log-out', out_false);
|
||||
}
|
||||
});
|
||||
|
||||
auth.current = new auth.Auth();
|
||||
return auth;
|
||||
});
|
||||
781
install/ui/src/freeipa/automember.js
Normal file
@@ -0,0 +1,781 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2012 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
define([
|
||||
'dojo/_base/declare',
|
||||
'./field',
|
||||
'./metadata',
|
||||
'./ipa',
|
||||
'./jquery',
|
||||
'./navigation',
|
||||
'./phases',
|
||||
'./reg',
|
||||
'./rpc',
|
||||
'./text',
|
||||
'./details',
|
||||
'./search',
|
||||
'./association',
|
||||
'./entity'],
|
||||
function(declare, field_mod, metadata_provider, IPA, $, navigation,
|
||||
phases, reg, rpc, text) {
|
||||
|
||||
var exp = IPA.automember = {};
|
||||
|
||||
var make_spec = function() {
|
||||
return {
|
||||
|
||||
name: 'automember',
|
||||
|
||||
policies:[
|
||||
{
|
||||
$factory: IPA.facet_update_policy,
|
||||
source_facet: 'usergrouprule',
|
||||
dest_facet: 'searchgroup'
|
||||
},
|
||||
{
|
||||
$factory: IPA.facet_update_policy,
|
||||
source_facet: 'hostgrouprule',
|
||||
dest_facet: 'searchhostgroup'
|
||||
}
|
||||
],
|
||||
facets: [
|
||||
{
|
||||
$factory: IPA.automember.rule_search_facet,
|
||||
$type: 'search',
|
||||
name: 'searchgroup',
|
||||
group_type: 'group',
|
||||
label: '@i18n:objects.automember.usergrouprules',
|
||||
details_facet: 'usergrouprule',
|
||||
pagination: false,
|
||||
columns: [
|
||||
'cn',
|
||||
'description'
|
||||
]
|
||||
},
|
||||
{
|
||||
$factory: IPA.automember.rule_search_facet,
|
||||
$type: 'search',
|
||||
name: 'searchhostgroup',
|
||||
group_type: 'hostgroup',
|
||||
label: '@i18n:objects.automember.hostgrouprules',
|
||||
details_facet: 'hostgrouprule',
|
||||
pagination: false,
|
||||
columns: [
|
||||
'cn',
|
||||
'description'
|
||||
]
|
||||
},
|
||||
{
|
||||
$factory: IPA.automember.rule_details_facet,
|
||||
$type: 'details',
|
||||
name: 'usergrouprule',
|
||||
group_type: 'group',
|
||||
label: '@i18n:objects.automember.usergrouprule',
|
||||
disable_facet_tabs: true,
|
||||
check_rights: false,
|
||||
redirect_info: { facet: 'searchgroup' }
|
||||
},
|
||||
{
|
||||
$factory: IPA.automember.rule_details_facet,
|
||||
$type: 'details',
|
||||
name: 'hostgrouprule',
|
||||
group_type: 'hostgroup',
|
||||
label: '@i18n:objects.automember.hostgrouprule',
|
||||
disable_facet_tabs: true,
|
||||
check_rights: false,
|
||||
redirect_info: { facet: 'searchhostgroup' }
|
||||
}
|
||||
],
|
||||
adder_dialog: {
|
||||
$factory: IPA.automember.rule_adder_dialog,
|
||||
title: '@i18n:objects.automember.add_rule',
|
||||
fields: [
|
||||
{
|
||||
$type: 'entity_select',
|
||||
name: 'cn',
|
||||
other_entity: 'group',
|
||||
other_field: 'cn'
|
||||
}
|
||||
],
|
||||
height: '300'
|
||||
},
|
||||
deleter_dialog: {
|
||||
$factory: IPA.automember.rule_deleter_dialog
|
||||
}
|
||||
};};
|
||||
|
||||
exp.metadata_extension_pre_op = function(spec, context) {
|
||||
//HACK: Automember takes_params is missing a cn attribute. This hack
|
||||
//copies cn from mod command. Also it is set as pkey.
|
||||
var metadata = metadata_provider.source;
|
||||
var pkey_attr = metadata.commands.automember_mod.takes_args[0];
|
||||
pkey_attr.primary_key = true;
|
||||
metadata.objects.automember.takes_params.push(pkey_attr);
|
||||
metadata.objects.automember.primary_key = pkey_attr.name;
|
||||
return spec;
|
||||
};
|
||||
|
||||
IPA.automember.rule_search_facet = function(spec) {
|
||||
|
||||
spec = spec || {};
|
||||
|
||||
var that = IPA.search_facet(spec);
|
||||
|
||||
that.group_type = spec.group_type;
|
||||
|
||||
var init = function() {
|
||||
|
||||
that.default_group_widget = IPA.automember.default_group_widget({
|
||||
entity: that.entity,
|
||||
group_type: that.group_type
|
||||
});
|
||||
};
|
||||
|
||||
that.refresh = function() {
|
||||
|
||||
that.search_facet_refresh();
|
||||
that.default_group_widget.refresh();
|
||||
};
|
||||
|
||||
|
||||
that.get_records_command_name = function() {
|
||||
return that.managed_entity.name + that.group_type+'_get_records';
|
||||
};
|
||||
|
||||
that.get_search_command_name = function() {
|
||||
var name = that.managed_entity.name + that.group_type + '_find';
|
||||
if (that.pagination && !that.search_all_entries) {
|
||||
name += '_pkeys';
|
||||
}
|
||||
return name;
|
||||
};
|
||||
|
||||
that.create_get_records_command = function(records, pkeys, on_success, on_error) {
|
||||
|
||||
var batch = that.table_facet_create_get_records_command(records, pkeys,
|
||||
on_success, on_error);
|
||||
|
||||
for (var i=0; i<batch.commands.length; i++) {
|
||||
var command = batch.commands[i];
|
||||
command.set_option('type', that.group_type);
|
||||
}
|
||||
|
||||
return batch;
|
||||
};
|
||||
|
||||
that.create_refresh_command = function() {
|
||||
|
||||
var command = that.search_facet_create_refresh_command();
|
||||
|
||||
command.set_option('type', that.group_type);
|
||||
|
||||
return command;
|
||||
};
|
||||
|
||||
that.create_content = function(container) {
|
||||
|
||||
var header = $('<div/>', {
|
||||
'class': 'automember-header'
|
||||
}).appendTo(container);
|
||||
|
||||
var content = $('<div/>', {
|
||||
'class': 'automember-content'
|
||||
}).appendTo(container);
|
||||
|
||||
that.default_group_widget.create(header);
|
||||
that.table.create(content);
|
||||
};
|
||||
|
||||
that.show_add_dialog = function() {
|
||||
var dialog = that.managed_entity.get_dialog('add');
|
||||
if (!that.adder_dialog) {
|
||||
that.adder_dialog = dialog;
|
||||
dialog.added.attach(function() {
|
||||
that.refresh();
|
||||
});
|
||||
}
|
||||
dialog.pkey_prefix = that.managed_entity_pkey_prefix();
|
||||
dialog.group_type = that.group_type;
|
||||
dialog.open();
|
||||
};
|
||||
|
||||
that.create_remove_dialog = function() {
|
||||
var dialog = that.search_facet_create_remove_dialog();
|
||||
dialog.group_type = that.group_type;
|
||||
return dialog;
|
||||
};
|
||||
|
||||
init();
|
||||
|
||||
return that;
|
||||
};
|
||||
|
||||
IPA.automember.rule_details_facet = function(spec) {
|
||||
|
||||
spec = spec || {};
|
||||
|
||||
spec.fields = [
|
||||
{
|
||||
name: 'cn',
|
||||
widget: 'general.cn'
|
||||
},
|
||||
{
|
||||
$type: 'textarea',
|
||||
name: 'description',
|
||||
widget: 'general.description'
|
||||
},
|
||||
{
|
||||
$type: 'automember_condition',
|
||||
name: 'automemberinclusiveregex',
|
||||
widget: 'inclusive.automemberinclusiveregex'
|
||||
},
|
||||
{
|
||||
$type: 'automember_condition',
|
||||
name: 'automemberexclusiveregex',
|
||||
widget: 'exclusive.automemberexclusiveregex'
|
||||
}
|
||||
];
|
||||
|
||||
spec.widgets = [
|
||||
{
|
||||
$type: 'details_section',
|
||||
name: 'general',
|
||||
label: '@i18n:details.general',
|
||||
widgets: [
|
||||
{
|
||||
name: 'cn'
|
||||
},
|
||||
{
|
||||
$type: 'textarea',
|
||||
name: 'description'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
$factory: IPA.section,
|
||||
name: 'inclusive',
|
||||
label: '@i18n:objects.automember.inclusive',
|
||||
widgets: [
|
||||
{
|
||||
$type: 'automember_condition',
|
||||
name: 'automemberinclusiveregex',
|
||||
group_type: spec.group_type,
|
||||
add_command: 'add_condition',
|
||||
remove_command: 'remove_condition',
|
||||
adder_dialog: {
|
||||
title: '@i18n:objects.automember.add_condition',
|
||||
fields: [
|
||||
{
|
||||
name: 'key',
|
||||
$type: 'select',
|
||||
options: IPA.automember.get_condition_attributes(spec.group_type),
|
||||
label: '@i18n:objects.automember.attribute'
|
||||
},
|
||||
{
|
||||
name: 'automemberinclusiveregex',
|
||||
label: '@i18n:objects.automember.expression',
|
||||
required: true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
$factory: IPA.section,
|
||||
name: 'exclusive',
|
||||
label: '@i18n:objects.automember.exclusive',
|
||||
widgets: [
|
||||
{
|
||||
$type: 'automember_condition',
|
||||
name: 'automemberexclusiveregex',
|
||||
group_type: spec.group_type,
|
||||
add_command: 'add_condition',
|
||||
remove_command: 'remove_condition',
|
||||
adder_dialog: {
|
||||
title: '@i18n:objects.automember.add_condition',
|
||||
fields: [
|
||||
{
|
||||
name: 'key',
|
||||
$type: 'select',
|
||||
options: IPA.automember.get_condition_attributes(spec.group_type),
|
||||
label: '@i18n:objects.automember.attribute'
|
||||
},
|
||||
{
|
||||
name: 'automemberexclusiveregex',
|
||||
label: '@i18n:objects.automember.expression',
|
||||
required: true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
var that = IPA.details_facet(spec);
|
||||
|
||||
that.group_type = spec.group_type;
|
||||
|
||||
that.get_refresh_command_name = function() {
|
||||
return that.entity.name+that.group_type+'_show';
|
||||
};
|
||||
|
||||
that.create_refresh_command = function() {
|
||||
|
||||
var command = that.details_facet_create_refresh_command();
|
||||
command.set_option('type', that.group_type);
|
||||
|
||||
return command;
|
||||
};
|
||||
|
||||
that.create_update_command = function() {
|
||||
|
||||
var command = that.details_facet_create_update_command();
|
||||
command.set_option('type', that.group_type);
|
||||
|
||||
return command;
|
||||
};
|
||||
|
||||
return that;
|
||||
};
|
||||
|
||||
IPA.automember.rule_adder_dialog = function(spec) {
|
||||
|
||||
spec = spec || {};
|
||||
|
||||
var that = IPA.entity_adder_dialog(spec);
|
||||
that.group_type = spec.group_type || '';
|
||||
|
||||
that.show_edit_page = function (entity,result) {
|
||||
var pkey_name = entity.metadata.primary_key;
|
||||
var pkey = result[pkey_name];
|
||||
if (pkey instanceof Array) {
|
||||
pkey = pkey[0];
|
||||
}
|
||||
|
||||
var facetname = that.group_type === 'group' ? 'usergrouprule' :
|
||||
'hostgrouprule';
|
||||
|
||||
navigation.show_entity(that.entity.name, facetname, [pkey]);
|
||||
};
|
||||
|
||||
that.reset = function() {
|
||||
|
||||
var field = that.fields.get_field('cn');
|
||||
|
||||
field.widget.other_entity = IPA.get_entity(that.group_type);
|
||||
|
||||
that.dialog_reset();
|
||||
};
|
||||
|
||||
that.create_add_command = function(record) {
|
||||
|
||||
var command = that.entity_adder_dialog_create_add_command(record);
|
||||
command.name = that.entity.name+that.group_type+'_show';
|
||||
command.set_option('type', that.group_type);
|
||||
|
||||
return command;
|
||||
};
|
||||
|
||||
|
||||
return that;
|
||||
};
|
||||
|
||||
IPA.automember.rule_deleter_dialog = function(spec) {
|
||||
|
||||
spec = spec || {};
|
||||
|
||||
var that = IPA.search_deleter_dialog(spec);
|
||||
that.group_type = spec.group_type || '';
|
||||
|
||||
that.create_command = function() {
|
||||
|
||||
var batch = that.search_deleter_dialog_create_command();
|
||||
|
||||
for (var i=0; i<batch.commands.length; i++) {
|
||||
var command = batch.commands[i];
|
||||
command.set_option('type', that.group_type);
|
||||
}
|
||||
|
||||
return batch;
|
||||
};
|
||||
|
||||
return that;
|
||||
};
|
||||
|
||||
IPA.automember.get_condition_attributes = function(type) {
|
||||
var options = [];
|
||||
|
||||
if (type === 'group') {
|
||||
options = metadata_provider.get('@mo:user.aciattrs');
|
||||
} else if (type === 'hostgroup') {
|
||||
options = metadata_provider.get('@mo:host.aciattrs');
|
||||
}
|
||||
|
||||
var list_options = IPA.create_options(options);
|
||||
return list_options;
|
||||
};
|
||||
|
||||
IPA.automember.parse_condition_regex = function(regex) {
|
||||
|
||||
var delimeter_index = regex.indexOf('=');
|
||||
var condition = {
|
||||
condition: regex,
|
||||
attribute: regex.substring(0, delimeter_index),
|
||||
expression: regex.substring(delimeter_index+1)
|
||||
};
|
||||
|
||||
return condition;
|
||||
};
|
||||
|
||||
IPA.automember.condition_field = function(spec) {
|
||||
|
||||
spec = spec || {};
|
||||
spec.adapter = spec.adapter || IPA.automember.condition_adapter;
|
||||
var that = IPA.field(spec);
|
||||
return that;
|
||||
};
|
||||
|
||||
IPA.automember.condition_adapter = declare([field_mod.Adapter], {
|
||||
|
||||
load: function(data) {
|
||||
var regexes = this.inherited(arguments);
|
||||
var values = [];
|
||||
if (regexes) {
|
||||
for (var i=0, j=0; i<regexes.length; i++) {
|
||||
if (regexes[i] === '') continue;
|
||||
var condition = IPA.automember.parse_condition_regex(regexes[i]);
|
||||
values.push(condition);
|
||||
}
|
||||
}
|
||||
return values;
|
||||
}
|
||||
});
|
||||
|
||||
IPA.automember.condition_widget = function(spec) {
|
||||
|
||||
spec = spec || {};
|
||||
spec.footer = spec.footer === undefined ? false : spec.footer;
|
||||
|
||||
spec.columns = $.merge(spec.columns || [], [
|
||||
{
|
||||
name: 'attribute',
|
||||
label: '@i18n:objects.automember.attribute'
|
||||
},
|
||||
{
|
||||
name: 'expression',
|
||||
label: '@i18n:objects.automember.expression'
|
||||
}
|
||||
]);
|
||||
|
||||
spec.value_attribute = 'condition';
|
||||
|
||||
var that = IPA.attribute_table_widget(spec);
|
||||
|
||||
that.group_type = spec.group_type;
|
||||
|
||||
that.get_additional_options = function() {
|
||||
return [
|
||||
{
|
||||
name: 'type',
|
||||
value: that.group_type
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
that.on_add = function(data) {
|
||||
|
||||
if (data.result.completed === 0) {
|
||||
that.refresh_facet();
|
||||
} else {
|
||||
that.reload_facet(data);
|
||||
}
|
||||
};
|
||||
|
||||
that.on_remove = function(data) {
|
||||
|
||||
var results = data.result.results;
|
||||
|
||||
var i = results.length - 1;
|
||||
while (i >= 0) {
|
||||
if (results[i].completed === 1){
|
||||
that.reload_facet({ error: results[i].error, id: null,
|
||||
result: results[i] });
|
||||
return;
|
||||
}
|
||||
i--;
|
||||
}
|
||||
|
||||
that.refresh_facet();
|
||||
};
|
||||
|
||||
that.create_remove_command = function(values, on_success, on_error) {
|
||||
|
||||
var batch = rpc.batch_command({
|
||||
name: 'automember_remove_condition',
|
||||
on_success: on_success,
|
||||
on_error: on_error
|
||||
});
|
||||
|
||||
var pkeys = that.get_pkeys();
|
||||
|
||||
for (var i=0; i<values.length; i++) {
|
||||
var condition = IPA.automember.parse_condition_regex(values[i]);
|
||||
|
||||
var command = that.attribute_table_create_remove_command([]);
|
||||
command.set_option('key', condition.attribute);
|
||||
command.set_option(that.attribute_name, condition.expression);
|
||||
|
||||
batch.add_command(command);
|
||||
}
|
||||
|
||||
return batch;
|
||||
};
|
||||
|
||||
return that;
|
||||
};
|
||||
|
||||
IPA.automember.default_group_widget = function(spec) {
|
||||
|
||||
spec = spec || {};
|
||||
|
||||
var that = IPA.widget(spec);
|
||||
that.group_type = spec.group_type;
|
||||
that.group = '';
|
||||
|
||||
var init = function() {
|
||||
|
||||
that.group_select = IPA.entity_select_widget({
|
||||
name: 'automemberdefaultgroup',
|
||||
other_entity: that.group_type,
|
||||
other_field: 'cn',
|
||||
show_undo: false
|
||||
});
|
||||
|
||||
that.group_select.value_changed.attach(that.group_changed);
|
||||
};
|
||||
|
||||
that.get_group = function() {
|
||||
|
||||
var group = that.group_select.save();
|
||||
group = group.length === 0 ? '' : group[0];
|
||||
return group;
|
||||
};
|
||||
|
||||
that.set_group = function(group) {
|
||||
|
||||
if (group === that.group) return;
|
||||
|
||||
that.group = group;
|
||||
that.group_select.update([group]);
|
||||
};
|
||||
|
||||
that.group_changed = function() {
|
||||
|
||||
var group = that.get_group();
|
||||
|
||||
if (group === that.group) return;
|
||||
|
||||
if (group === '') {
|
||||
that.remove_default_group();
|
||||
} else {
|
||||
that.set_default_group(group);
|
||||
}
|
||||
};
|
||||
|
||||
that.load = function(data) {
|
||||
|
||||
var group = data.result.result.automemberdefaultgroup;
|
||||
|
||||
if (group) group = group[0];
|
||||
|
||||
if (!group || group.indexOf('cn=') === -1) {
|
||||
group = '';
|
||||
} else {
|
||||
//extract from dn
|
||||
var i1 = group.indexOf('=');
|
||||
var i2 = group.indexOf(',');
|
||||
if (i1 > -1 && i2 > -1) {
|
||||
group = group.substring(i1 + 1,i2);
|
||||
}
|
||||
}
|
||||
|
||||
that.update(group);
|
||||
that.set_visible(true);
|
||||
};
|
||||
|
||||
that.update = function(group) {
|
||||
|
||||
group = group || '';
|
||||
|
||||
that.set_group(group);
|
||||
};
|
||||
|
||||
that.create_command = function(method) {
|
||||
|
||||
method = 'default_group_' + method;
|
||||
var command_name = that.entity.name + that.group_type + '_' + method;
|
||||
|
||||
var command = rpc.command({
|
||||
name: command_name,
|
||||
entity: that.entity.name,
|
||||
method: method,
|
||||
options: {
|
||||
type: that.group_type
|
||||
}
|
||||
});
|
||||
|
||||
return command;
|
||||
};
|
||||
|
||||
that.refresh = function() {
|
||||
|
||||
var command = that.create_command('show');
|
||||
command.retry = false;
|
||||
command.on_success = that.load;
|
||||
command.on_error = function() {
|
||||
that.set_visible(false);
|
||||
};
|
||||
|
||||
command.execute();
|
||||
};
|
||||
|
||||
that.remove_default_group = function() {
|
||||
|
||||
var command = that.create_command('remove');
|
||||
|
||||
command.on_success = function() {
|
||||
that.update('');
|
||||
};
|
||||
command.on_error = that.refresh;
|
||||
|
||||
command.execute();
|
||||
};
|
||||
|
||||
that.set_default_group = function(group) {
|
||||
|
||||
var command = that.create_command('set');
|
||||
command.on_success = that.load;
|
||||
command.on_error = that.refresh;
|
||||
command.set_option('automemberdefaultgroup', group);
|
||||
|
||||
command.execute();
|
||||
};
|
||||
|
||||
|
||||
that.create = function(container) {
|
||||
|
||||
var title = that.get_title();
|
||||
that.container = container;
|
||||
|
||||
that.header = $('<div/>', {
|
||||
'class': 'automember-header-label',
|
||||
name: 'header',
|
||||
text: title,
|
||||
title: title
|
||||
}).appendTo(container);
|
||||
|
||||
that.group_select_node = $('<div/>', { 'class': 'automember-header-control' });
|
||||
that.group_select.create(that.group_select_node);
|
||||
that.group_select_node.appendTo(container);
|
||||
that.group_select.update([]); // preload groups
|
||||
that.set_visible(false);
|
||||
};
|
||||
|
||||
that.get_title = function() {
|
||||
if (that.group_type === 'group') {
|
||||
return text.get('@i18n:objects.automember.default_user_group');
|
||||
} else {
|
||||
return text.get('@i18n:objects.automember.default_host_group');
|
||||
}
|
||||
};
|
||||
|
||||
init();
|
||||
|
||||
return that;
|
||||
};
|
||||
|
||||
IPA.automember.rebuild_action = function(spec) {
|
||||
|
||||
spec = spec || {};
|
||||
spec.name = spec.name || 'automember_rebuild';
|
||||
spec.label = spec.label || '@i18n:actions.automember_rebuild';
|
||||
spec.needs_confirm = spec.needs_confirm !== undefined ? spec.needs_confirm : true;
|
||||
spec.confirm_msg = spec.confirm_msg || '@i18n:actions.automember_rebuild_confirm';
|
||||
|
||||
var that = IPA.action(spec);
|
||||
|
||||
that.execute_action = function(facet) {
|
||||
var entity = facet.entity.name;
|
||||
if (facet.name == 'search') {
|
||||
var entries = facet.get_selected_values();
|
||||
} else {
|
||||
entries = facet.get_pkeys();
|
||||
}
|
||||
|
||||
var options = {};
|
||||
if (entries.length > 0) {
|
||||
options[entity + 's'] = entries;
|
||||
} else if (entity == 'user') {
|
||||
options['type'] = 'group';
|
||||
} else {
|
||||
options['type'] = 'hostgroup';
|
||||
}
|
||||
|
||||
var command = rpc.command({
|
||||
entity: 'automember',
|
||||
method: 'rebuild',
|
||||
options: options,
|
||||
on_success: function() {
|
||||
IPA.notify_success('@i18n:actions.automember_rebuild_success');
|
||||
},
|
||||
on_error: function() {
|
||||
}
|
||||
});
|
||||
|
||||
command.execute();
|
||||
};
|
||||
|
||||
return that;
|
||||
};
|
||||
|
||||
exp.entity_spec = make_spec();
|
||||
|
||||
exp.register = function() {
|
||||
var e = reg.entity;
|
||||
var w = reg.widget;
|
||||
var f = reg.field;
|
||||
var a = reg.action;
|
||||
|
||||
e.register({
|
||||
type: 'automember',
|
||||
spec: exp.entity_spec,
|
||||
pre_ops: [ exp.metadata_extension_pre_op ]
|
||||
});
|
||||
w.register('automember_condition', IPA.automember.condition_widget);
|
||||
f.register('automember_condition', IPA.automember.condition_field);
|
||||
a.register('automember_rebuild', exp.rebuild_action);
|
||||
};
|
||||
|
||||
phases.on('registration', exp.register);
|
||||
|
||||
return exp;
|
||||
});
|
||||
376
install/ui/src/freeipa/automount.js
Normal file
@@ -0,0 +1,376 @@
|
||||
/* Authors:
|
||||
* Adam Young <ayoung@redhat.com>
|
||||
*
|
||||
* 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
define([
|
||||
'./ipa',
|
||||
'./jquery',
|
||||
'./navigation',
|
||||
'./phases',
|
||||
'./reg',
|
||||
'./details',
|
||||
'./search',
|
||||
'./association',
|
||||
'./entity'],
|
||||
function(IPA, $, navigation, phases, reg) {
|
||||
|
||||
var exp = IPA.automount = {};
|
||||
|
||||
var make_location_spec = function() {
|
||||
return {
|
||||
name: 'automountlocation',
|
||||
facet_groups: [ 'automountmap', 'settings' ],
|
||||
facets: [
|
||||
{
|
||||
$type: 'search',
|
||||
title: '@mo:automountlocation.label',
|
||||
columns:['cn']
|
||||
},
|
||||
{
|
||||
$type: 'nested_search',
|
||||
facet_group: 'automountmap',
|
||||
nested_entity: 'automountmap',
|
||||
label: '@mo:automountmap.label',
|
||||
tab_label: '@mo:automountmap.label',
|
||||
name: 'maps',
|
||||
columns: [ 'automountmapname' ]
|
||||
},
|
||||
{
|
||||
$type: 'details',
|
||||
sections:[
|
||||
{
|
||||
name: 'identity',
|
||||
label: '@i18n:details.identity',
|
||||
fields: [ 'cn' ]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
adder_dialog: {
|
||||
fields: [ 'cn' ]
|
||||
}
|
||||
};};
|
||||
|
||||
var make_map_spec = function() {
|
||||
return {
|
||||
name: 'automountmap',
|
||||
containing_entity: 'automountlocation',
|
||||
facet_groups: [ 'automountkey', 'settings' ],
|
||||
facets: [
|
||||
{
|
||||
$type: 'nested_search',
|
||||
$factory: IPA.automount.key_search_facet,
|
||||
facet_group: 'automountkey',
|
||||
nested_entity: 'automountkey',
|
||||
search_all_entries: true,
|
||||
label: '@mo:automountkey.label',
|
||||
tab_label: '@mo:automountkey.label',
|
||||
name: 'keys',
|
||||
columns: [
|
||||
{
|
||||
$factory: IPA.automount_key_column,
|
||||
name: 'automountkey',
|
||||
label: '@mo-param:automountkey:automountkey:label'
|
||||
},
|
||||
'automountinformation'
|
||||
]
|
||||
},
|
||||
{
|
||||
$type: 'details',
|
||||
sections: [
|
||||
{
|
||||
name: 'identity',
|
||||
label: '@i18n:details.identity',
|
||||
fields: [
|
||||
'automountmapname',
|
||||
{
|
||||
$type: 'textarea',
|
||||
name: 'description'
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
adder_dialog: {
|
||||
$factory: IPA.automountmap_adder_dialog,
|
||||
sections: [
|
||||
{
|
||||
name: 'general',
|
||||
fields: [
|
||||
{
|
||||
$type: 'radio',
|
||||
name: 'method',
|
||||
flags: ['no_command'],
|
||||
label: '@i18n:objects.automountmap.map_type',
|
||||
options: [
|
||||
{
|
||||
value: 'add',
|
||||
label: '@i18n:objects.automountmap.direct'
|
||||
},
|
||||
{
|
||||
value: 'add_indirect',
|
||||
label: '@i18n:objects.automountmap.indirect'
|
||||
}
|
||||
]
|
||||
},
|
||||
'automountmapname',
|
||||
{
|
||||
$type: 'textarea',
|
||||
name: 'description'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'indirect',
|
||||
fields: [
|
||||
{
|
||||
name: 'key',
|
||||
label: '@mc-opt:automountmap_add_indirect:key:label'
|
||||
},
|
||||
{
|
||||
name: 'parentmap',
|
||||
label: '@mc-opt:automountmap_add_indirect:parentmap:label'
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
};};
|
||||
|
||||
var make_key_spec = function() {
|
||||
return {
|
||||
name: 'automountkey',
|
||||
policies:[
|
||||
{
|
||||
$factory: IPA.facet_update_policy,
|
||||
source_facet: 'details',
|
||||
dest_entity: 'automountmap',
|
||||
dest_facet: 'keys'
|
||||
}
|
||||
],
|
||||
containing_entity: 'automountmap',
|
||||
facets: [
|
||||
{
|
||||
$type: 'details',
|
||||
$factory: IPA.automount.key_details_facet,
|
||||
sections: [
|
||||
{
|
||||
name:'identity',
|
||||
label: '@i18n:details.identity',
|
||||
fields: [
|
||||
{
|
||||
name: 'automountkey',
|
||||
read_only: true
|
||||
},
|
||||
'automountinformation'
|
||||
]
|
||||
}
|
||||
],
|
||||
disable_breadcrumb: false
|
||||
}
|
||||
],
|
||||
adder_dialog: {
|
||||
show_edit_page : function(entity, result){
|
||||
var key = result.automountkey[0];
|
||||
var info = result.automountinformation[0];
|
||||
var pkeys = this.pkey_prefix.slice(0);
|
||||
pkeys.push(key);
|
||||
|
||||
var args = {
|
||||
info: info,
|
||||
key: key
|
||||
};
|
||||
|
||||
navigation.show_entity(entity.name, 'details', pkeys, args);
|
||||
return false;
|
||||
},
|
||||
fields:['automountkey','automountinformation']
|
||||
}
|
||||
};};
|
||||
|
||||
IPA.automount.key_details_facet = function(spec) {
|
||||
|
||||
var that = IPA.details_facet(spec);
|
||||
|
||||
that.create_update_command = function() {
|
||||
|
||||
var command = that.details_facet_create_update_command();
|
||||
|
||||
command.args.pop();
|
||||
|
||||
var key = that.state.key;
|
||||
var info = that.state.info;
|
||||
|
||||
command.options.newautomountinformation = command.options.automountinformation;
|
||||
command.options.automountkey = key;
|
||||
command.options.automountinformation = info;
|
||||
|
||||
return command;
|
||||
};
|
||||
|
||||
that.create_refresh_command = function() {
|
||||
|
||||
var command = that.details_facet_create_refresh_command();
|
||||
|
||||
command.args.pop();
|
||||
|
||||
var key = that.state.key;
|
||||
var info = that.state.info;
|
||||
|
||||
command.options.automountkey = key;
|
||||
command.options.automountinformation = info;
|
||||
|
||||
return command;
|
||||
};
|
||||
|
||||
return that;
|
||||
};
|
||||
|
||||
IPA.automount_key_column = function(spec) {
|
||||
|
||||
var that = IPA.column(spec);
|
||||
|
||||
that.setup = function(container, record) {
|
||||
|
||||
container.empty();
|
||||
|
||||
var key = record.automountkey;
|
||||
if (key instanceof Array) key = key[0];
|
||||
var info = record.automountinformation;
|
||||
if (info instanceof Array) info = info[0];
|
||||
|
||||
$('<a/>', {
|
||||
href: '#'+key,
|
||||
text: key,
|
||||
click: function() {
|
||||
|
||||
var pkeys = that.facet.get_pkeys();
|
||||
pkeys.push(key);
|
||||
|
||||
var args = {
|
||||
info: info,
|
||||
key: key
|
||||
};
|
||||
|
||||
navigation.show_entity(that.entity.name, 'details', pkeys, args);
|
||||
return false;
|
||||
}
|
||||
}).appendTo(container);
|
||||
|
||||
};
|
||||
|
||||
return that;
|
||||
};
|
||||
|
||||
IPA.automountmap_adder_dialog = function(spec) {
|
||||
|
||||
var that = IPA.entity_adder_dialog(spec);
|
||||
|
||||
that.create_content = function() {
|
||||
that.entity_adder_dialog_create_content();
|
||||
|
||||
var method_widget = that.widgets.get_widget('general.method');
|
||||
var indirect_section = that.widgets.get_widget('indirect');
|
||||
var key_field = that.fields.get_field('key');
|
||||
var parentmap_field = that.fields.get_field('parentmap');
|
||||
|
||||
var direct_input = $('input[value="add"]', method_widget.container);
|
||||
direct_input.change(function() {
|
||||
that.method = 'add';
|
||||
|
||||
key_field.set_enabled(false);
|
||||
parentmap_field.set_enabled(false);
|
||||
|
||||
key_field.set_required(false);
|
||||
indirect_section.set_visible(false);
|
||||
});
|
||||
|
||||
var indirect_input = $('input[value="add_indirect"]', method_widget.container);
|
||||
indirect_input.change(function() {
|
||||
that.method = 'add_indirect';
|
||||
|
||||
key_field.set_enabled(true);
|
||||
parentmap_field.set_enabled(true);
|
||||
|
||||
key_field.set_required(true);
|
||||
indirect_section.set_visible(true);
|
||||
});
|
||||
|
||||
direct_input.prop('checked', true);
|
||||
direct_input.trigger('change');
|
||||
};
|
||||
|
||||
that.reset = function() {
|
||||
that.dialog_reset();
|
||||
|
||||
var method_widget = that.widgets.get_widget('general.method');
|
||||
|
||||
var direct_input = $('input[value="add"]', method_widget.container);
|
||||
direct_input.prop('checked', true);
|
||||
direct_input.trigger('change');
|
||||
};
|
||||
|
||||
return that;
|
||||
};
|
||||
|
||||
IPA.automount.key_search_facet = function(spec) {
|
||||
|
||||
var that = IPA.nested_search_facet(spec);
|
||||
|
||||
that.get_selected_values = function() {
|
||||
|
||||
var values = [];
|
||||
var keys = that.table.get_selected_values();
|
||||
var records = that.table.records;
|
||||
|
||||
if (keys.length === 0 || !records) return values;
|
||||
|
||||
for (var i=0,l=records.length; i<l; i++) {
|
||||
var record = records[i];
|
||||
if (keys.indexOf(record.description[0]) > -1) {
|
||||
values.push({
|
||||
automountkey: record.automountkey[0],
|
||||
automountinformation: record.automountinformation[0]
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return values;
|
||||
};
|
||||
|
||||
return that;
|
||||
};
|
||||
|
||||
exp.location_spec = make_location_spec();
|
||||
exp.map_spec = make_map_spec();
|
||||
exp.key_spec = make_key_spec();
|
||||
|
||||
exp.register = function() {
|
||||
var e = reg.entity;
|
||||
|
||||
e.register({type: 'automountlocation', spec: exp.location_spec});
|
||||
e.register({type: 'automountmap', spec: exp.map_spec});
|
||||
e.register({type: 'automountkey', spec: exp.key_spec});
|
||||
};
|
||||
|
||||
phases.on('registration', exp.register);
|
||||
|
||||
return exp;
|
||||
});
|
||||
82
install/ui/src/freeipa/builder.js
Normal file
@@ -0,0 +1,82 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2013 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
define(['dojo/_base/declare',
|
||||
'dojo/_base/array',
|
||||
'dojo/_base/lang',
|
||||
'./_base/Builder',
|
||||
'./_base/Singleton_registry'
|
||||
], function(declare, array, lang, Builder, Singleton_registry) {
|
||||
|
||||
var builder_registry = new Singleton_registry();
|
||||
builder_registry.builder.ctor = Builder;
|
||||
|
||||
/**
|
||||
* Global builder interface.
|
||||
*
|
||||
* Contains a map of builders for a specific object type.
|
||||
*
|
||||
* @class builder
|
||||
* @singleton
|
||||
*/
|
||||
var exp = {
|
||||
/**
|
||||
* Registry of builders
|
||||
* @property {_base.Singleton_registry}
|
||||
*/
|
||||
builders: builder_registry,
|
||||
|
||||
/**
|
||||
* Get builder for object type
|
||||
*
|
||||
* @param {string} object type
|
||||
*/
|
||||
get: function(obj_type) {
|
||||
return this.builders.get(obj_type);
|
||||
},
|
||||
|
||||
/**
|
||||
* Set builder for object type.
|
||||
*
|
||||
* @param {string} object type
|
||||
* @param {_base.Builder} builder
|
||||
*/
|
||||
set: function(obj_type, builder) {
|
||||
this.builders.set(obj_type, builder);
|
||||
},
|
||||
|
||||
/**
|
||||
* Build object by builder for given object type.
|
||||
*
|
||||
* @param {string} object type. Uses generic builder if empty string.
|
||||
* @param {string|Object|Function} spec
|
||||
* @param {Object|null} context
|
||||
* @param {Object|null} build overrides
|
||||
*/
|
||||
build: function(obj_type, spec, context, overrides) {
|
||||
|
||||
obj_type = obj_type || 'generic';
|
||||
var builder = this.builders.get(obj_type);
|
||||
return builder.build(spec, context, overrides);
|
||||
}
|
||||
};
|
||||
|
||||
return exp;
|
||||
});
|
||||
1954
install/ui/src/freeipa/certificate.js
Executable file
128
install/ui/src/freeipa/config.js
Normal file
@@ -0,0 +1,128 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2012 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
define([
|
||||
'dojo/_base/declare',
|
||||
'dojo/topic'
|
||||
],
|
||||
function(declare, topic) {
|
||||
|
||||
/**
|
||||
* Application configuration
|
||||
* @class config
|
||||
* @singleton
|
||||
*/
|
||||
var config = declare([], {
|
||||
|
||||
/**
|
||||
* Selector for application container node
|
||||
*/
|
||||
app_container: 'body',
|
||||
|
||||
/**
|
||||
* Live server path
|
||||
*/
|
||||
url: '/ipa/ui/',
|
||||
|
||||
/**
|
||||
* RPC url
|
||||
*/
|
||||
json_url: '/ipa/session/json',
|
||||
|
||||
/**
|
||||
* Kerberos authentication url
|
||||
*/
|
||||
krb_login_url: '/ipa/session/login_kerberos',
|
||||
|
||||
/**
|
||||
* Forms based login url
|
||||
*/
|
||||
frms_login_url: '/ipa/session/login_password',
|
||||
|
||||
//logout_url: '/ipa/session/json',
|
||||
|
||||
/**
|
||||
* Password reset url
|
||||
*/
|
||||
reset_psw_url: '/ipa/session/change_password',
|
||||
|
||||
/**
|
||||
* Ajax options for RPC commands
|
||||
*/
|
||||
ajax_options: {
|
||||
type: 'POST',
|
||||
contentType: 'application/json',
|
||||
dataType: 'json',
|
||||
async: true,
|
||||
processData: false
|
||||
},
|
||||
|
||||
/**
|
||||
* Hide read-only widgets without value
|
||||
* @property {boolean}
|
||||
*/
|
||||
hide_empty_widgets: false,
|
||||
|
||||
/**
|
||||
* Hide sections without any visible widget
|
||||
* @property {boolean}
|
||||
*/
|
||||
hide_empty_sections: true,
|
||||
|
||||
/**
|
||||
* Number of lines in table on table_facets
|
||||
* @property {Integer}
|
||||
*/
|
||||
table_page_size: 20,
|
||||
|
||||
/**
|
||||
* Genereal setter for config values.
|
||||
* @param item_name {string}
|
||||
* @param value
|
||||
* @param store {Boolean} sets whether the value will be stored into
|
||||
* local storage
|
||||
*/
|
||||
set: function(item_name, value, store) {
|
||||
if (!item_name) return;
|
||||
this[item_name] = value;
|
||||
|
||||
if (store) {
|
||||
window.localStorage.setItem(item_name, value);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Genereal setter for config values.
|
||||
* @param item_name {string}
|
||||
*/
|
||||
get: function(item_name) {
|
||||
return this[item_name];
|
||||
},
|
||||
|
||||
constructor: function() {
|
||||
var user_limit = window.localStorage.getItem('table_page_size');
|
||||
if (user_limit) this.table_page_size = user_limit;
|
||||
}
|
||||
});
|
||||
|
||||
return new config();
|
||||
});
|
||||
27
install/ui/src/freeipa/core.js
Normal file
@@ -0,0 +1,27 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2012 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
define([
|
||||
'./app_container',
|
||||
'./plugins/sync_otp',
|
||||
'./plugins/login'
|
||||
],function(app_container) {
|
||||
return app_container;
|
||||
});
|
||||
217
install/ui/src/freeipa/datetime.js
Normal file
@@ -0,0 +1,217 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2014 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
define([
|
||||
'dojo/string'
|
||||
], function(string) {
|
||||
|
||||
var templates = {
|
||||
human: '${YYYY}-${MM}-${DD} ${HH}:${mm}:${ss}Z',
|
||||
generalized: '${YYYY}${MM}${DD}${HH}${mm}${ss}Z'
|
||||
};
|
||||
|
||||
var dates = [
|
||||
['YYYY-MM-DD', /^(\d{4})-(\d{2})-(\d{2})$/],
|
||||
['YYYYMMDD',/^(\d{4})(\d{2})(\d{2})$/]
|
||||
];
|
||||
|
||||
var times = [
|
||||
['HH:mm:ss', /^(\d\d):(\d\d):(\d\d)$/],
|
||||
['HH:mm', /^(\d\d):(\d\d)$/]
|
||||
];
|
||||
|
||||
var generalized_regex = /^(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})Z$/;
|
||||
var datetime_regex = /^((?:\d{8})|(?:\d{4}-\d{2}-\d{2}))(?:(T| )(\d\d:\d\d(?::\d\d)?)(Z?))?$/;
|
||||
|
||||
function parse(value) {
|
||||
|
||||
var Y=0, M=0, D=0, H=0, m=0, s=0;
|
||||
var i, l, dateStr, timeStr, utc;
|
||||
|
||||
var dt_match = datetime_regex.exec(value);
|
||||
var gt_match = generalized_regex.exec(value);
|
||||
if (dt_match) {
|
||||
dateStr = dt_match[1];
|
||||
timeStr = dt_match[3];
|
||||
utc = dt_match[4] || !timeStr;
|
||||
|
||||
// error out if local time not supported
|
||||
if (!this.allow_local && !utc) return null;
|
||||
|
||||
for (i = 0, l = dates.length; i < l; i++) {
|
||||
var dm = dates[i][1].exec(dateStr);
|
||||
if (dm) {
|
||||
Y = dm[1];
|
||||
M = dm[2];
|
||||
D = dm[3];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (timeStr) {
|
||||
for (i = 0, l = times.length; i < l; i++) {
|
||||
var tm = times[i][1].exec(timeStr);
|
||||
if (tm) {
|
||||
H = tm[1];
|
||||
m = tm[2] || 0;
|
||||
s = tm[3] || 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (gt_match) {
|
||||
Y = gt_match[1];
|
||||
M = gt_match[2];
|
||||
D = gt_match[3];
|
||||
H = gt_match[4];
|
||||
m = gt_match[5];
|
||||
s = gt_match[6];
|
||||
utc = true;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
||||
var date = new Date();
|
||||
|
||||
if (utc || !timeStr) {
|
||||
date.setUTCFullYear(Y, M-1, D);
|
||||
date.setUTCHours(H, m, s, 0);
|
||||
} else {
|
||||
date.setFullYear(Y, M-1, D);
|
||||
date.setHours(H, m, s, 0);
|
||||
}
|
||||
return date;
|
||||
}
|
||||
|
||||
function formatDate(date, format, local) {
|
||||
|
||||
var fmt = format || templates.human;
|
||||
var str;
|
||||
|
||||
function pad(value) {
|
||||
return string.pad(value, 2, '0');
|
||||
}
|
||||
|
||||
if (local) {
|
||||
str = string.substitute(fmt, {
|
||||
YYYY: date.getFullYear(),
|
||||
MM: pad(date.getMonth()+1),
|
||||
DD: pad(date.getDate()),
|
||||
HH: pad(date.getHours()),
|
||||
mm: pad(date.getMinutes()),
|
||||
ss: pad(date.getSeconds())
|
||||
});
|
||||
} else {
|
||||
str = string.substitute(fmt, {
|
||||
YYYY: date.getUTCFullYear(),
|
||||
MM: pad(date.getUTCMonth()+1),
|
||||
DD: pad(date.getUTCDate()),
|
||||
HH: pad(date.getUTCHours()),
|
||||
mm: pad(date.getUTCMinutes()),
|
||||
ss: pad(date.getUTCSeconds())
|
||||
});
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
/**
|
||||
* Utility module to parse strings in ISO 8601-ish format into Date object
|
||||
* and vice versa
|
||||
*
|
||||
* @class datetime
|
||||
* @singleton
|
||||
*/
|
||||
var datetime = {
|
||||
/**
|
||||
* Parse string, return date or null on error.
|
||||
*
|
||||
* Supported date formats:
|
||||
*
|
||||
* - `YYYY-MM-DD`
|
||||
* - `YYYYMMDD`
|
||||
*
|
||||
* Supported time formats:
|
||||
*
|
||||
* - `HH:mm:ss`
|
||||
* - `HH:mm`
|
||||
*
|
||||
* Supported formats:
|
||||
*
|
||||
* - `$dateT$timeZ`
|
||||
* - `$date $timeZ`
|
||||
* - `$date`
|
||||
* - `YYYYMMDDHHmmssZ`
|
||||
*
|
||||
* Where Z indicates UTC date. Parsing of local dates is by default
|
||||
* disabled. It can be enabled by setting `datetime.allow_local` to
|
||||
* `true`.
|
||||
*
|
||||
* @param {string} value
|
||||
* @returns {Date|null} parsed date
|
||||
*/
|
||||
parse: parse,
|
||||
|
||||
/**
|
||||
* Convert date to string
|
||||
*
|
||||
* - `${YYYY}` - year
|
||||
* - `${MM}` - month
|
||||
* - `${DD}` - day
|
||||
* - `${HH}` - hours
|
||||
* - `${mm}` - minutes
|
||||
* - `${ss}` - seconds
|
||||
*
|
||||
* Default format string: `${YYYY}-${MM}-${DD} ${HH}:${mm}:${ss}`
|
||||
*
|
||||
* @param {Date} date
|
||||
* @param {string} [format] format string
|
||||
* @param {boolean} [local] use local time
|
||||
*/
|
||||
format: formatDate,
|
||||
|
||||
/**
|
||||
* Local time input method support
|
||||
* @property {boolean}
|
||||
*/
|
||||
allow_local: false,
|
||||
|
||||
/**
|
||||
* Convert date value to generalized time string
|
||||
* @param {Date} date
|
||||
* @returns {string}
|
||||
*/
|
||||
to_generalized_time: function(date) {
|
||||
return this.format(date, templates.generalized);
|
||||
},
|
||||
|
||||
/**
|
||||
* Dictionary of common format strings
|
||||
*
|
||||
* - `human` - default format string of `format` method
|
||||
* - `generalized` - generalized time (LDAP) format
|
||||
*
|
||||
* @property {Object}
|
||||
*/
|
||||
templates: templates
|
||||
};
|
||||
|
||||
return datetime;
|
||||
});
|
||||
2114
install/ui/src/freeipa/details.js
Normal file
51
install/ui/src/freeipa/develop.js
Normal file
@@ -0,0 +1,51 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2012 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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
define(['./ipa'], function(IPA) {
|
||||
|
||||
//polute global namespace - easy usage in browser console
|
||||
window.IPA = IPA;
|
||||
var console = window.console; // avoid jsl error
|
||||
|
||||
var tools = window.ipadev = IPA.dev = {
|
||||
|
||||
// map of loaded modules
|
||||
modules: {},
|
||||
|
||||
get: function (mid,name) {
|
||||
/* loads module into ipa dev modules property */
|
||||
|
||||
var self = this;
|
||||
var mid_parts = mid.split('/');
|
||||
name = name || mid_parts[mid_parts.length-1];
|
||||
|
||||
require([mid], function(module) {
|
||||
self.modules[name] = module;
|
||||
console.log('Module '+mid+' loaded.');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
console.log('Dev tools loaded.');
|
||||
|
||||
return tools;
|
||||
|
||||
}); //define
|
||||
1942
install/ui/src/freeipa/dialog.js
Normal file
147
install/ui/src/freeipa/dialogs/password.js
Normal file
@@ -0,0 +1,147 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2013 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
define([
|
||||
'dojo/_base/lang',
|
||||
'../builder',
|
||||
'../ipa',
|
||||
'../phases',
|
||||
'../reg',
|
||||
'../rpc',
|
||||
'../text',
|
||||
'../dialog'],
|
||||
function(lang, builder, IPA, phases, reg, rpc, text, dialogs) {
|
||||
|
||||
/**
|
||||
* Password dialog module
|
||||
* @class
|
||||
* @singleton
|
||||
*/
|
||||
dialogs.password = {};
|
||||
var DP = dialogs.password;
|
||||
|
||||
/**
|
||||
* Dialog's pre_ops
|
||||
*/
|
||||
dialogs.password.default_fields_pre_op = function(spec) {
|
||||
|
||||
var name = spec.password_name || 'password1';
|
||||
var label = spec.password_label || '@i18n:password.new_password';
|
||||
var verify_label = spec.verify_label ||'@i18n:password.verify_password';
|
||||
|
||||
spec.title = spec.title || '@i18n:password.reset_password';
|
||||
spec.width = spec.width || 400;
|
||||
spec.success_message = spec.success_message || '@i18n:password.password_change_complete';
|
||||
spec.confirm_button_label = spec.confirm_button_label || '@i18n:password.reset_password';
|
||||
spec.sections = spec.sections || [
|
||||
{
|
||||
name: 'general',
|
||||
fields: [
|
||||
{
|
||||
name: name,
|
||||
label: label,
|
||||
$type: 'password',
|
||||
required: true
|
||||
},
|
||||
{
|
||||
name: 'password2',
|
||||
label: verify_label,
|
||||
$type: 'password',
|
||||
required: true,
|
||||
flags: ['no_command'],
|
||||
validators: [{
|
||||
$type: 'same_password',
|
||||
other_field: name
|
||||
}]
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
return spec;
|
||||
};
|
||||
|
||||
/**
|
||||
* Action to open a password dialog
|
||||
* @class
|
||||
* @extends facet.action
|
||||
*/
|
||||
dialogs.password.action = function(spec) {
|
||||
|
||||
spec = spec || {};
|
||||
spec.name = spec.name || 'password';
|
||||
spec.label = spec.label || '@i18n:password.reset_password';
|
||||
|
||||
var that = IPA.action(spec);
|
||||
|
||||
/**
|
||||
* Dialog spec
|
||||
* @property {Object}
|
||||
*/
|
||||
that.dialog = spec.dialog || {};
|
||||
|
||||
/**
|
||||
* Refresh facet after successful password reset
|
||||
* @property {boolean} refresh=true
|
||||
*/
|
||||
that.refresh = spec.refresh !== undefined ? spec.refresh : true;
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
that.execute_action = function(facet) {
|
||||
|
||||
var ds = lang.clone(that.dialog);
|
||||
ds.entity = ds.entity || facet.entity;
|
||||
if (!ds.$type && !ds.$factory && !ds.$ctor) {
|
||||
ds.$type = 'password';
|
||||
}
|
||||
var dialog = builder.build('dialog', ds);
|
||||
dialog.args = facet.get_pkeys();
|
||||
dialog.succeeded.attach(function() {
|
||||
if (that.refresh) facet.refresh();
|
||||
});
|
||||
dialog.open();
|
||||
};
|
||||
return that;
|
||||
};
|
||||
|
||||
/**
|
||||
* Register dialog
|
||||
* @member dialogs.password
|
||||
*/
|
||||
dialogs.password.register = function() {
|
||||
|
||||
var d = reg.dialog;
|
||||
var a = reg.action;
|
||||
|
||||
d.register({
|
||||
type: 'password',
|
||||
factory: dialogs.command_dialog,
|
||||
pre_ops: [DP.default_fields_pre_op],
|
||||
post_ops: [dialogs.command_dialog_post_op]
|
||||
});
|
||||
|
||||
a.register('password', DP.action);
|
||||
};
|
||||
|
||||
phases.on('registration', DP.register);
|
||||
|
||||
return DP;
|
||||
});
|
||||
2695
install/ui/src/freeipa/dns.js
Normal file
1107
install/ui/src/freeipa/entity.js
Normal file
60
install/ui/src/freeipa/extend.js
Normal file
@@ -0,0 +1,60 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2014 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
define([
|
||||
'dojo/_base/lang',
|
||||
'./jquery',
|
||||
'./phases',
|
||||
'./app_container',
|
||||
'exports'
|
||||
],function(lang, $, phases, app, extend) {
|
||||
|
||||
/**
|
||||
* Extension interface
|
||||
*
|
||||
* This class provides interface for plugins and tries to hide underlying functionality
|
||||
*
|
||||
* @class extend
|
||||
* @singleton
|
||||
*/
|
||||
lang.mixin(extend, {
|
||||
/**
|
||||
* Adds element to utility section
|
||||
*
|
||||
* This method doesn't do any correction. Expended root node type to add is
|
||||
* by default `<li>`.
|
||||
*
|
||||
* Preferred phase: any after `init`
|
||||
*
|
||||
* @param {HTMLElement|jQuery} element Element to add to utility section
|
||||
* @return {HTMLElement} Utility node
|
||||
*/
|
||||
add_menu_utility: function(element) {
|
||||
|
||||
// Should we check if we are in good stage or atleast report that app doesn't exist yet?
|
||||
|
||||
var $utility = $(app.app.app_widget.nav_util_tool_node);
|
||||
$utility.prepend(element);
|
||||
return $utility.eq(0);
|
||||
}
|
||||
});
|
||||
|
||||
return extend;
|
||||
});
|
||||
3733
install/ui/src/freeipa/facet.js
Normal file
49
install/ui/src/freeipa/facets/ActionMixin.js
Normal file
@@ -0,0 +1,49 @@
|
||||
//
|
||||
// Copyright (C) 2015 FreeIPA Contributors see COPYING for license
|
||||
//
|
||||
|
||||
define(['dojo/_base/declare',
|
||||
'../builder',
|
||||
'../facet'
|
||||
],
|
||||
function(declare, builder, mod_facet) {
|
||||
|
||||
|
||||
/**
|
||||
* Header Mixin
|
||||
*
|
||||
* Extension of facet - actions
|
||||
*
|
||||
* @class facets.ActionMixin
|
||||
*/
|
||||
var ActionMixin = declare([], {
|
||||
|
||||
/**
|
||||
* State object for actions
|
||||
* @property {facet.state}
|
||||
*/
|
||||
action_state: null,
|
||||
|
||||
/**
|
||||
* Collection of facet actions
|
||||
* @property {facet.action_holder}
|
||||
*/
|
||||
actions: null,
|
||||
|
||||
show: function() {
|
||||
this.inherited(arguments);
|
||||
this.actions.on_load();
|
||||
},
|
||||
|
||||
/** Constructor */
|
||||
constructor: function(spec) {
|
||||
|
||||
this.action_state = builder.build('', spec.state || {}, {}, { $factory: mod_facet.state });
|
||||
this.actions = builder.build('', { actions: spec.actions }, {}, { $factory: mod_facet.action_holder } );
|
||||
this.action_state.init(this);
|
||||
this.actions.init(this);
|
||||
}
|
||||
});
|
||||
|
||||
return ActionMixin;
|
||||
});
|
||||
357
install/ui/src/freeipa/facets/Facet.js
Normal file
@@ -0,0 +1,357 @@
|
||||
/* Authors:
|
||||
* Petr Vobornik <pvoborni@redhat.com>
|
||||
*
|
||||
* Copyright (C) 2013 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
define(['dojo/_base/declare',
|
||||
'dojo/_base/lang',
|
||||
'dojo/Evented',
|
||||
'dojo/dom-construct',
|
||||
'dojo/dom-class',
|
||||
'dojo/on',
|
||||
'../builder',
|
||||
'../facet',
|
||||
'../ipa', // for util functions
|
||||
'../jquery',
|
||||
'../text',
|
||||
'../widgets/ContainerMixin'
|
||||
],
|
||||
function(declare, lang, Evented, construct, dom_class,
|
||||
on, builder, mod_facet, IPA, $, text, ContainerMixin) {
|
||||
|
||||
/**
|
||||
* Base class of Facet
|
||||
*
|
||||
* A future replacement/base class for `facet.facet`
|
||||
*
|
||||
* @class facets.Facet
|
||||
* @mixins widgets.ContainerMixin
|
||||
*/
|
||||
var Facet = declare([Evented, ContainerMixin], {
|
||||
|
||||
/**
|
||||
* Name of preferred facet container
|
||||
*
|
||||
* Leave unset to use default container.
|
||||
* @property {string}
|
||||
*/
|
||||
preferred_container: null,
|
||||
|
||||
/**
|
||||
* Facet name
|
||||
* @property {string}
|
||||
*/
|
||||
name: null,
|
||||
|
||||
/**
|
||||
* Facet label
|
||||
* @property {string}
|
||||
*/
|
||||
label: null,
|
||||
|
||||
/**
|
||||
* Facet title
|
||||
* @property {string}
|
||||
*/
|
||||
title: null,
|
||||
|
||||
/**
|
||||
* Facet tab label
|
||||
* @property {string}
|
||||
*/
|
||||
tab_label: null,
|
||||
|
||||
/**
|
||||
* Facet element's CSS class
|
||||
* @property {string}
|
||||
*/
|
||||
'class': null,
|
||||
|
||||
/**
|
||||
* Class which tells that the facet should be visible
|
||||
* @property {string}
|
||||
*/
|
||||
active_class: 'active',
|
||||
|
||||
/**
|
||||
* dom_node of container
|
||||
* Suppose to contain dom_node of this and other facets.
|
||||
* @property {jQuery}
|
||||
*/
|
||||
container_node: null,
|
||||
|
||||
/**
|
||||
* dom_node which contains all content of this Facet.
|
||||
* @property {HTMLElement}
|
||||
* @readonly
|
||||
*/
|
||||
dom_node: null,
|
||||
|
||||
/**
|
||||
* DOM node which serves as container for child widgets
|
||||
* @property {HTMLElement}
|
||||
*/
|
||||
children_node: null,
|
||||
|
||||
/**
|
||||
* Redirection target information.
|
||||
*
|
||||
* Can be facet and/or entity name.
|
||||
* @property {Object}
|
||||
* @param {string} entity entity name
|
||||
* @param {string} facet facet name
|
||||
*/
|
||||
redirect_info: null,
|
||||
|
||||
/**
|
||||
* Facet requires authenticated user
|
||||
* @type {Boolean}
|
||||
*/
|
||||
requires_auth: true,
|
||||
|
||||
/**
|
||||
* Public state
|
||||
* @property {facet.FacetState}
|
||||
* @protected
|
||||
*/
|
||||
state: null,
|
||||
|
||||
get_full_name: function() {
|
||||
return this.name;
|
||||
},
|
||||
|
||||
/**
|
||||
* Checks if two objects has the same properties with equal values.
|
||||
*
|
||||
* @param {Object} a
|
||||
* @param {Object} b
|
||||
* @return {boolean} `a` and `b` are value-equal
|
||||
* @protected
|
||||
*/
|
||||
state_diff: function(a, b) {
|
||||
var diff = false;
|
||||
var checked = {};
|
||||
|
||||
var check_diff = function(a, b, skip) {
|
||||
|
||||
var same = true;
|
||||
skip = skip || {};
|
||||
|
||||
for (var key in a) {
|
||||
if (a.hasOwnProperty(key) && !(key in skip)) {
|
||||
var va = a[key];
|
||||
var vb = b[key];
|
||||
if (lang.isArray(va)) {
|
||||
if (IPA.array_diff(va,vb)) {
|
||||
same = false;
|
||||
skip[a] = true;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
if (va != vb) {
|
||||
same = false;
|
||||
skip[a] = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return !same;
|
||||
};
|
||||
|
||||
diff = check_diff(a,b, checked);
|
||||
diff = diff || check_diff(b,a, checked);
|
||||
return diff;
|
||||
},
|
||||
|
||||
/**
|
||||
* Reset facet state to supplied
|
||||
*
|
||||
* @param {Object} state state to set
|
||||
*/
|
||||
reset_state: function(state) {
|
||||
this.state.reset(state);
|
||||
},
|
||||
|
||||
/**
|
||||
* Get copy of current state
|
||||
*
|
||||
* @return {Object} state
|
||||
*/
|
||||
get_state: function() {
|
||||
return this.state.clone();
|
||||
},
|
||||
|
||||
/**
|
||||
* Merges state into current and notifies it.
|
||||
*
|
||||
* @param {Object} state object to merge into current state
|
||||
*/
|
||||
set_state: function(state) {
|
||||
this.state.set(state);
|
||||
},
|
||||
|
||||
/**
|
||||
* Handle state set
|
||||
* @param {Object} old_state
|
||||
* @param {Object} state
|
||||
* @protected
|
||||
*/
|
||||
on_state_set: function(old_state, state) {
|
||||
this.on_state_change(state);
|
||||
},
|
||||
|
||||
/**
|
||||
* Handle state change
|
||||
* @param {Object} state
|
||||
* @protected
|
||||
*/
|
||||
on_state_change: function(state) {
|
||||
|
||||
this._notify_state_change(state);
|
||||
},
|
||||
|
||||
/**
|
||||
* Fires `facet-state-change` event with given state as event parameter.
|
||||
*
|
||||
* @fires facet-state-change
|
||||
* @protected
|
||||
* @param {Object} state
|
||||
*/
|
||||
_notify_state_change: function(state) {
|
||||
this.emit('facet-state-change', {
|
||||
facet: this,
|
||||
state: state
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* Create facet's HTML representation
|
||||
* NOTE: may be renamed to render
|
||||
*/
|
||||
create: function() {
|
||||
|
||||
if (this.dom_node) {
|
||||
construct.empty(this.dom_node);
|
||||
} else {
|
||||
this.dom_node = construct.create('div', {
|
||||
'class': 'facet',
|
||||
name: this.name,
|
||||
'data-name': this.name
|
||||
});
|
||||
}
|
||||
if (this['class']) {
|
||||
dom_class.add(this.dom_node, this['class']);
|
||||
}
|
||||
if (this.container_node) {
|
||||
construct.place(this.dom_node, this.container_node);
|
||||
}
|
||||
this.children_node = this.dom_node;
|
||||
return this.dom_node;
|
||||
},
|
||||
|
||||
/**
|
||||
* Render child widgets
|
||||
*/
|
||||
render_children: function() {
|
||||
var widgets = this.get_widgets();
|
||||
|
||||
for (var i=0;i<widgets.length; i++) {
|
||||
var widget = widgets[i];
|
||||
var modern = typeof widget.render === 'function';
|
||||
|
||||
if (modern) {
|
||||
widget.container_node = this.children_node;
|
||||
widget.render();
|
||||
} else {
|
||||
var container = $('<div/>').appendTo(this.children_node);
|
||||
widget.create(container);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Show facet
|
||||
*
|
||||
* - mark itself as active facet
|
||||
*/
|
||||
show: function() {
|
||||
|
||||
if (!this.dom_node) {
|
||||
this.create();
|
||||
this.render_children();
|
||||
} else if (!this.dom_node.parentElement) {
|
||||
construct.place(this.dom_node, this.container_node);
|
||||
}
|
||||
|
||||
dom_class.add(this.dom_node, 'active-facet');
|
||||
this.emit('show', { source: this });
|
||||
},
|
||||
|
||||
/**
|
||||
* Un-mark itself as active facet
|
||||
*/
|
||||
hide: function() {
|
||||
if (this.dom_node.parentElement) {
|
||||
this.container_node.removeChild(this.dom_node);
|
||||
}
|
||||
dom_class.remove(this.dom_node, 'active-facet');
|
||||
this.emit('hide', { source: this });
|
||||
},
|
||||
|
||||
/**
|
||||
* Initializes facet
|
||||
*
|
||||
* Facet builder should run this method after instantiation.
|
||||
* @param {Object} spec
|
||||
*/
|
||||
init: function(spec) {
|
||||
|
||||
this.add_widgets(spec.widgets || []);
|
||||
},
|
||||
|
||||
can_leave: function() {
|
||||
return true;
|
||||
},
|
||||
|
||||
show_leave_dialog: function(callback) {
|
||||
window.console.warning('Unimplemented');
|
||||
},
|
||||
|
||||
/** Constructor */
|
||||
constructor: function(spec) {
|
||||
|
||||
this.preferred_container = spec.preferred_container;
|
||||
this.name = spec.name;
|
||||
this.label = text.get(spec.label);
|
||||
this.tab_label = text.get(spec.tab_label || spec.label);
|
||||
this.title = text.get(spec.title || spec.label);
|
||||
this['class'] = spec['class'];
|
||||
this.container_node = spec.container_node;
|
||||
this.dom_node = spec.dom_node;
|
||||
this.redirect_info = spec.redirect_info;
|
||||
if (spec.requires_auth !== undefined) {
|
||||
this.requires_auth = spec.requires_auth;
|
||||
}
|
||||
this.state = new mod_facet.FacetState();
|
||||
on(this.state, 'set', this.on_state_set.bind(this));
|
||||
}
|
||||
});
|
||||
|
||||
return Facet;
|
||||
});
|
||||
260
install/ui/src/freeipa/facets/HeaderMixin.js
Normal file
@@ -0,0 +1,260 @@
|
||||
//
|
||||
// Copyright (C) 2015 FreeIPA Contributors see COPYING for license
|
||||
//
|
||||
|
||||
define(['dojo/_base/declare',
|
||||
'dojo/_base/lang',
|
||||
'dojo/on',
|
||||
'dojo/dom-construct',
|
||||
'dojo/dom-class',
|
||||
'../builder',
|
||||
'../facet',
|
||||
'../text',
|
||||
'../widgets/ActionDropdownWidget'
|
||||
],
|
||||
function(declare, lang, on, construct, dom_class,
|
||||
builder, mod_facet, text, ActionDropdownWidget) {
|
||||
|
||||
|
||||
/**
|
||||
* Header Mixin
|
||||
*
|
||||
* Extension of facet - header with title and facet groups. Requires
|
||||
* facets.ActionMixin.
|
||||
*
|
||||
* @class facets.HeaderMixin
|
||||
*/
|
||||
var HeaderMixin = declare([], {
|
||||
|
||||
/**
|
||||
* Facet header
|
||||
* @property {facet.facet_header}
|
||||
*/
|
||||
header: null,
|
||||
|
||||
/**
|
||||
* Facet tabs are not displayed when set.
|
||||
* @property {boolean}
|
||||
*/
|
||||
disable_facet_tabs: false,
|
||||
|
||||
/**
|
||||
* Facet tabs in sidebar
|
||||
*
|
||||
* There is and effort (#4625) to move all facet tabs into sidebar but it
|
||||
* was not user tested, therefore they remain on the old place for the
|
||||
* time being.
|
||||
*
|
||||
* This option should be changed when ^^ is removed.
|
||||
* @property {boolean}
|
||||
*/
|
||||
tabs_in_sidebar: true,
|
||||
|
||||
/**
|
||||
* Array of actions which are displayed in facet header
|
||||
* @property {Array.<string>}
|
||||
*/
|
||||
header_actions: null,
|
||||
|
||||
/**
|
||||
* Facet groups
|
||||
*
|
||||
* @property {IPA.facet_group[]}
|
||||
*/
|
||||
facet_groups: null,
|
||||
|
||||
/**
|
||||
* Facet group name
|
||||
* @property {string}
|
||||
*/
|
||||
facet_group: null,
|
||||
|
||||
|
||||
/**
|
||||
* Create facet's HTML representation
|
||||
* NOTE: may be renamed to render
|
||||
*/
|
||||
create: function() {
|
||||
|
||||
// this create method is Facet.create extended by header/sidebar logic
|
||||
|
||||
if (this.dom_node) {
|
||||
construct.empty(this.dom_node);
|
||||
} else {
|
||||
this.dom_node = construct.create('div', {
|
||||
'class': 'facet',
|
||||
name: this.name,
|
||||
'data-name': this.name
|
||||
});
|
||||
}
|
||||
if (this['class']) {
|
||||
dom_class.add(this.dom_node, this['class']);
|
||||
}
|
||||
if (this.container_node) {
|
||||
construct.place(this.dom_node, this.container_node);
|
||||
}
|
||||
|
||||
var row = $('<div/>', {
|
||||
'class': 'row'
|
||||
}).appendTo(this.dom_node);
|
||||
var content_cont = row;
|
||||
|
||||
this.sidebar_content_el = $('<div/>', {
|
||||
'class': mod_facet.sidebar_content_width
|
||||
}).appendTo(row);
|
||||
content_cont = $('<div/>', {
|
||||
'class': 'row'
|
||||
}).appendTo(this.sidebar_content_el);
|
||||
|
||||
this.sidebar_el = $('<div/>', {
|
||||
'class': mod_facet.sidebar_class + mod_facet.sidebar_width
|
||||
}).appendTo(row);
|
||||
|
||||
this.header_container = $('<div/>', {
|
||||
'class': 'facet-header col-sm-12'
|
||||
}).appendTo(content_cont);
|
||||
this.create_header(this.header_container);
|
||||
|
||||
this.content = $('<div/>', {
|
||||
'class': 'facet-content col-sm-12'
|
||||
}).appendTo(content_cont);
|
||||
|
||||
|
||||
this.children_node = this.content[0];
|
||||
return this.dom_node;
|
||||
},
|
||||
|
||||
/**
|
||||
* Create control buttons
|
||||
*
|
||||
* @param {jQuery} container
|
||||
* @protected
|
||||
*/
|
||||
create_header: function(container) {
|
||||
|
||||
this.header.create(container);
|
||||
|
||||
this.controls = $('<div/>', {
|
||||
'class': 'facet-controls clearfix'
|
||||
}).appendTo(container);
|
||||
|
||||
this.controls_left = $('<div/>', {
|
||||
'class': 'facet-controls-left'
|
||||
}).appendTo(this.controls);
|
||||
|
||||
this.controls_right = $('<div/>', {
|
||||
'class': 'facet-controls-right'
|
||||
}).appendTo(this.controls);
|
||||
|
||||
this.create_controls();
|
||||
},
|
||||
|
||||
/**
|
||||
* Create header controls
|
||||
*
|
||||
* - ie control buttons orActionDropDown
|
||||
*/
|
||||
create_controls: function() {
|
||||
|
||||
this.create_control_buttons(this.controls_left);
|
||||
this.create_action_dropdown(this.controls_left);
|
||||
},
|
||||
|
||||
/**
|
||||
* Create control buttons
|
||||
*
|
||||
* @param {jQuery} container
|
||||
* @protected
|
||||
*/
|
||||
create_control_buttons: function(container) {
|
||||
|
||||
if (this.control_buttons) {
|
||||
this.control_buttons.create(container);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Create action dropdown widget in supplied container
|
||||
*
|
||||
* @param {jQuery} container
|
||||
* @protected
|
||||
*/
|
||||
create_action_dropdown: function(container) {
|
||||
if (this.action_dropdown && this.header_actions && this.header_actions.length > 0) {
|
||||
var dropdown = this.action_dropdown.render();
|
||||
container.append(dropdown);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Display or hide facet tabs - either in sidebar or facet header
|
||||
* @param {boolean} visible
|
||||
*/
|
||||
set_tabs_visible: function(visible) {
|
||||
|
||||
if (this.disable_facet_tabs) return;
|
||||
if (this.tabs_in_sidebar && this.sidebar_el) {
|
||||
var a = visible ? mod_facet.sidebar_content_width : mod_facet.sidebar_content_full_width;
|
||||
var r = visible ? mod_facet.sidebar_content_full_width : mod_facet.sidebar_content_width;
|
||||
this.sidebar_content_el.removeClass(r);
|
||||
this.sidebar_content_el.addClass(a);
|
||||
this.sidebar_el.css('display', visible ? '' : 'none');
|
||||
}
|
||||
this.header.set_tabs_visible(visible);
|
||||
},
|
||||
|
||||
/**
|
||||
* Overrides parent's object(usually facet.Facet) show method. To select a
|
||||
* tab.
|
||||
*/
|
||||
show: function() {
|
||||
this.inherited(arguments);
|
||||
this.header.select_tab();
|
||||
},
|
||||
|
||||
/** Constructor */
|
||||
constructor: function(spec) {
|
||||
|
||||
this.facet_groups = builder.build('', spec.facet_groups, {}, {
|
||||
$factory: mod_facet.facet_group
|
||||
});
|
||||
this.facet_group = spec.facet_group;
|
||||
|
||||
this.header = builder.build(
|
||||
'',
|
||||
spec.header || { init_group_names: true},
|
||||
{},
|
||||
{
|
||||
$pre_ops: [{ facet: this }],
|
||||
$factory: mod_facet.simple_facet_header
|
||||
}
|
||||
);
|
||||
this.header.init();
|
||||
this.header_actions = spec.header_actions || [];
|
||||
|
||||
var buttons_spec = {
|
||||
$factory: mod_facet.control_buttons_widget,
|
||||
name: 'control-buttons',
|
||||
css_class: 'control-buttons',
|
||||
buttons: spec.control_buttons
|
||||
};
|
||||
|
||||
this.control_buttons = builder.build(null, buttons_spec);
|
||||
this.control_buttons.init(this);
|
||||
|
||||
this.action_dropdown = builder.build(null, {
|
||||
$ctor: ActionDropdownWidget,
|
||||
action_names: this.header_actions,
|
||||
name: 'facet_actions',
|
||||
'class': 'dropdown facet-actions',
|
||||
right_aligned: true,
|
||||
toggle_text: text.get('@i18n:actions.title') + ' ',
|
||||
toggle_class: 'btn btn-default',
|
||||
toggle_icon: 'fa fa-angle-down'
|
||||
});
|
||||
this.action_dropdown.init(this);
|
||||
}
|
||||
});
|
||||
|
||||
return HeaderMixin;
|
||||
});
|
||||