Added: incubator/nifi/site/trunk/docs/nifi-docs/images/bgBannerFoot.png
URL:
http://svn.apache.org/viewvc/incubator/nifi/site/trunk/docs/nifi-docs/images/bgBannerFoot.png?rev=1682431&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/nifi/site/trunk/docs/nifi-docs/images/bgBannerFoot.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/nifi/site/trunk/docs/nifi-docs/images/bgHeader.png
URL:
http://svn.apache.org/viewvc/incubator/nifi/site/trunk/docs/nifi-docs/images/bgHeader.png?rev=1682431&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/nifi/site/trunk/docs/nifi-docs/images/bgHeader.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/nifi/site/trunk/docs/nifi-docs/index.html
URL:
http://svn.apache.org/viewvc/incubator/nifi/site/trunk/docs/nifi-docs/index.html?rev=1682431&view=auto
==============================================================================
--- incubator/nifi/site/trunk/docs/nifi-docs/index.html (added)
+++ incubator/nifi/site/trunk/docs/nifi-docs/index.html Fri May 29 11:51:20 2015
@@ -0,0 +1,269 @@
+
+
+
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <link rel="shortcut icon" href="../nifi/images/nifi16.ico"/>
+ <title>NiFi Documentation</title>
+ <script type="text/javascript"
src="../nifi/js/jquery/jquery-2.1.1.min.js"></script>
+ <script type="text/javascript" src="js/application.js"></script>
+ <link href="css/main.css" rel="stylesheet" type="text/css" />
+ <link href="css/component-usage.css" rel="stylesheet" type="text/css"
/>
+ </head>
+ <body id="documentation-body">
+ <div id="banner-header" class="main-banner-header"></div>
+ <div id="banner-footer" class="main-banner-footer"></div>
+ <span id="initial-selection" style="display: none;"></span>
+ <div id="documentation-header" class="documentation-header">
+ <div id="nf-title">NiFi Documentation</div>
+ <div id="nf-version"></div>
+ <div id="selected-component"></div>
+ <div class="clear"></div>
+ </div>
+ <div id="component-listing" class="component-listing">
+ <div class="section">
+ <div class="header">General</div>
+ <div id="general-links" class="component-links">
+ <ul>
+ <li class="component-item"><a class="component-link
overview" href="html/overview.html" target="component-usage">Overview</a></li>
+ <li class="component-item"><a class="component-link
user-guide" href="html/user-guide.html" target="component-usage">User
Guide</a></li>
+ <li class="component-item"><a class="component-link
expression-language-guide" href="html/expression-language-guide.html"
target="component-usage">Expression Language Guide</a></li>
+ <li class="component-item"><a class="component-link
admin-guide" href="html/administration-guide.html"
target="component-usage">Admin Guide</a></li>
+ </ul>
+ <span class="no-matching no-components hidden">No matching
guides</span>
+ </div>
+ </div>
+ <div class="section">
+ <div class="header">Processors</div>
+ <div id="processor-links" class="component-links">
+
+
+ <ul>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.Base64EncodeContent/index.html"
target="component-usage">Base64EncodeContent</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.CompressContent/index.html"
target="component-usage">CompressContent</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.ControlRate/index.html"
target="component-usage">ControlRate</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.ConvertCharacterSet/index.html"
target="component-usage">ConvertCharacterSet</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.kite.ConvertCSVToAvro/index.html"
target="component-usage">ConvertCSVToAvro</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.kite.ConvertJSONToAvro/index.html"
target="component-usage">ConvertJSONToAvro</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.hadoop.CreateHadoopSequenceFile/index.html"
target="component-usage">CreateHadoopSequenceFile</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.DetectDuplicate/index.html"
target="component-usage">DetectDuplicate</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.DistributeLoad/index.html"
target="component-usage">DistributeLoad</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.DuplicateFlowFile/index.html"
target="component-usage">DuplicateFlowFile</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.EncryptContent/index.html"
target="component-usage">EncryptContent</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.EvaluateJsonPath/index.html"
target="component-usage">EvaluateJsonPath</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.EvaluateRegularExpression/index.html"
target="component-usage">EvaluateRegularExpression</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.EvaluateXPath/index.html"
target="component-usage">EvaluateXPath</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.EvaluateXQuery/index.html"
target="component-usage">EvaluateXQuery</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.ExecuteProcess/index.html"
target="component-usage">ExecuteProcess</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.ExecuteStreamCommand/index.html"
target="component-usage">ExecuteStreamCommand</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.hl7.ExtractHL7Attributes/index.html"
target="component-usage">ExtractHL7Attributes</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.ExtractText/index.html"
target="component-usage">ExtractText</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.hadoop.FetchHDFS/index.html"
target="component-usage">FetchHDFS</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.GenerateFlowFile/index.html"
target="component-usage">GenerateFlowFile</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.GeoEnrichIP/index.html"
target="component-usage">GeoEnrichIP</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.GetFile/index.html"
target="component-usage">GetFile</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.GetFTP/index.html"
target="component-usage">GetFTP</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.hadoop.GetHDFS/index.html"
target="component-usage">GetHDFS</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.hadoop.GetHDFSSequenceFile/index.html"
target="component-usage">GetHDFSSequenceFile</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.GetHTTP/index.html"
target="component-usage">GetHTTP</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.GetJMSQueue/index.html"
target="component-usage">GetJMSQueue</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.GetJMSTopic/index.html"
target="component-usage">GetJMSTopic</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.kafka.GetKafka/index.html"
target="component-usage">GetKafka</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.GetSFTP/index.html"
target="component-usage">GetSFTP</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.solr.GetSolr/index.html"
target="component-usage">GetSolr</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.twitter.GetTwitter/index.html"
target="component-usage">GetTwitter</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.HandleHttpRequest/index.html"
target="component-usage">HandleHttpRequest</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.HandleHttpResponse/index.html"
target="component-usage">HandleHttpResponse</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.HashAttribute/index.html"
target="component-usage">HashAttribute</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.HashContent/index.html"
target="component-usage">HashContent</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.IdentifyMimeType/index.html"
target="component-usage">IdentifyMimeType</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.InvokeHTTP/index.html"
target="component-usage">InvokeHTTP</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.ListenHTTP/index.html"
target="component-usage">ListenHTTP</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.ListenUDP/index.html"
target="component-usage">ListenUDP</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.hadoop.ListHDFS/index.html"
target="component-usage">ListHDFS</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.LogAttribute/index.html"
target="component-usage">LogAttribute</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.MergeContent/index.html"
target="component-usage">MergeContent</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.ModifyBytes/index.html"
target="component-usage">ModifyBytes</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.MonitorActivity/index.html"
target="component-usage">MonitorActivity</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.PostHTTP/index.html"
target="component-usage">PostHTTP</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.PutEmail/index.html"
target="component-usage">PutEmail</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.PutFile/index.html"
target="component-usage">PutFile</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.PutFTP/index.html"
target="component-usage">PutFTP</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.hadoop.PutHDFS/index.html"
target="component-usage">PutHDFS</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.PutJMS/index.html"
target="component-usage">PutJMS</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.kafka.PutKafka/index.html"
target="component-usage">PutKafka</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.PutSFTP/index.html"
target="component-usage">PutSFTP</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.solr.PutSolrContentStream/index.html"
target="component-usage">PutSolrContentStream</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.ReplaceText/index.html"
target="component-usage">ReplaceText</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.ReplaceTextWithMapping/index.html"
target="component-usage">ReplaceTextWithMapping</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.hl7.RouteHL7/index.html"
target="component-usage">RouteHL7</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.RouteOnAttribute/index.html"
target="component-usage">RouteOnAttribute</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.RouteOnContent/index.html"
target="component-usage">RouteOnContent</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.ScanAttribute/index.html"
target="component-usage">ScanAttribute</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.ScanContent/index.html"
target="component-usage">ScanContent</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.SegmentContent/index.html"
target="component-usage">SegmentContent</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.SplitContent/index.html"
target="component-usage">SplitContent</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.SplitJson/index.html"
target="component-usage">SplitJson</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.SplitText/index.html"
target="component-usage">SplitText</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.SplitXml/index.html"
target="component-usage">SplitXml</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.kite.StoreInKiteDataset/index.html"
target="component-usage">StoreInKiteDataset</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.TransformXml/index.html"
target="component-usage">TransformXml</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.UnpackContent/index.html"
target="component-usage">UnpackContent</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.attributes.UpdateAttribute/index.html"
target="component-usage">UpdateAttribute</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.standard.ValidateXml/index.html"
target="component-usage">ValidateXml</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.processors.yandex.YandexTranslate/index.html"
target="component-usage">YandexTranslate</a></li>
+
+ </ul>
+ <span class="no-matching no-components hidden">No
matching processors</span>
+
+
+
+ </div>
+ </div>
+ <div class="section">
+ <div class="header">Controller Services</div>
+ <div id="controller-service-links" class="component-links">
+
+
+ <ul>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.distributed.cache.client.DistributedMapCacheClientService/index.html"
target="component-usage">DistributedMapCacheClientService</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.distributed.cache.server.map.DistributedMapCacheServer/index.html"
target="component-usage">DistributedMapCacheServer</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.distributed.cache.client.DistributedSetCacheClientService/index.html"
target="component-usage">DistributedSetCacheClientService</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.distributed.cache.server.DistributedSetCacheServer/index.html"
target="component-usage">DistributedSetCacheServer</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.http.StandardHttpContextMap/index.html"
target="component-usage">StandardHttpContextMap</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.ssl.StandardSSLContextService/index.html"
target="component-usage">StandardSSLContextService</a></li>
+
+ </ul>
+ <span class="no-matching no-components hidden">No
matching controller services</span>
+
+
+
+ </div>
+ </div>
+ <div class="section">
+ <div class="header">Reporting Tasks</div>
+ <div id="reporting-task-links" class="component-links">
+
+
+ <ul>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.controller.ControllerStatusReportingTask/index.html"
target="component-usage">ControllerStatusReportingTask</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.controller.MonitorDiskUsage/index.html"
target="component-usage">MonitorDiskUsage</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.controller.MonitorMemory/index.html"
target="component-usage">MonitorMemory</a></li>
+
+ <li class="component-item"><a
class="component-link"
href="components/org.apache.nifi.reporting.ganglia.StandardGangliaReporter/index.html"
target="component-usage">StandardGangliaReporter</a></li>
+
+ </ul>
+ <span class="no-matching no-components hidden">No
matching reporting tasks</span>
+
+
+
+ </div>
+ </div>
+ <div class="section">
+ <div class="header">Developer</div>
+ <div id="developer-links" class="component-links">
+ <ul>
+ <li class="component-item"><a class="component-link
rest-api" href="rest-api/index.html" target="component-usage">Rest Api</a></li>
+ <li class="component-item"><a class="component-link
developer-guide" href="html/developer-guide.html"
target="component-usage">Developer Guide</a></li>
+ </ul>
+ <span class="no-matching no-components hidden">No matching
developer guides</span>
+ </div>
+ </div>
+ </div>
+ <div id="component-filter-controls">
+ <div id="component-filter-container">
+ <input type="text" id="component-filter"/>
+ </div>
+ <div id="component-filter-stats">
+ Displaying <span
id="displayed-components">89</span> of 89
+ </div>
+ </div>
+ <div id="component-usage-container">
+ <iframe id="component-usage" name="component-usage"
frameborder="0" class="component-usage"></iframe>
+ </div>
+ </body>
+</html>
Added: incubator/nifi/site/trunk/docs/nifi-docs/js/application.js
URL:
http://svn.apache.org/viewvc/incubator/nifi/site/trunk/docs/nifi-docs/js/application.js?rev=1682431&view=auto
==============================================================================
--- incubator/nifi/site/trunk/docs/nifi-docs/js/application.js (added)
+++ incubator/nifi/site/trunk/docs/nifi-docs/js/application.js Fri May 29
11:51:20 2015
@@ -0,0 +1,285 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+
+/* global top */
+
+$(document).ready(function () {
+
+ var isUndefined = function (obj) {
+ return typeof obj === 'undefined';
+ };
+
+ var isNull = function (obj) {
+ return obj === null;
+ };
+
+ var isDefinedAndNotNull = function (obj) {
+ return !isUndefined(obj) && !isNull(obj);
+ };
+
+ /**
+ * Get the filter text.
+ *
+ * @returns {unresolved}
+ */
+ var getFilterText = function () {
+ var filter = '';
+ var ruleFilter = $('#component-filter');
+ if (!ruleFilter.hasClass('component-filter-list')) {
+ filter = ruleFilter.val();
+ }
+ return filter;
+ };
+
+ var applyComponentFilter = function (componentContainer) {
+ var matchingComponents = 0;
+ var componentLinks = $(componentContainer).find('a.component-link');
+
+ if (componentLinks.length === 0) {
+ return matchingComponents;
+ }
+
+ // get the filter text
+ var filter = getFilterText();
+ if (filter !== '') {
+ var filterExp = new RegExp(filter, 'i');
+
+ // update the displayed rule count
+ $.each(componentLinks, function (_, componentLink) {
+ var a = $(componentLink);
+ var li = a.closest('li.component-item');
+
+ // get the rule text for matching
+ var componentName = a.text();
+
+ // see if any of the text from this rule matches
+ var componentMatches = componentName.search(filterExp) >= 0;
+
+ // handle whether the rule matches
+ if (componentMatches === true) {
+ li.show();
+ matchingComponents++;
+ } else {
+ // hide the rule
+ li.hide();
+ }
+ });
+ } else {
+ // ensure every rule is visible
+ componentLinks.closest('li.component-item').show();
+
+ // set the number of displayed rules
+ matchingComponents = componentLinks.length;
+ }
+
+ // show whether there are status if appropriate
+ var noMatching = componentContainer.find('span.no-matching');
+ if (matchingComponents === 0) {
+ noMatching.show();
+ } else {
+ noMatching.hide();
+ }
+
+ return matchingComponents;
+ };
+
+ var applyFilter = function () {
+ var matchingGeneral = applyComponentFilter($('#general-links'));
+ var matchingProcessors = applyComponentFilter($('#processor-links'));
+ var matchingControllerServices =
applyComponentFilter($('#controller-service-links'));
+ var matchingReportingTasks =
applyComponentFilter($('#reporting-task-links'));
+ var matchingDeveloper = applyComponentFilter($('#developer-links'));
+
+ // update the rule count
+ $('#displayed-components').text(matchingGeneral + matchingProcessors +
matchingControllerServices + matchingReportingTasks + matchingDeveloper);
+ };
+
+ var selectComponent = function (componentName) {
+ var componentLinks = $('a.component-link');
+
+ // consider each link
+ $.each(componentLinks, function () {
+ var componentLink = $(this);
+ if (componentName === componentLink.text()) {
+ // remove all selected styles
+ $('li.component-item').removeClass('selected');
+
+ // select this links item
+
componentLink.closest('li.component-item').addClass('selected');
+
+ // set the header
+ $('#selected-component').text(componentLink.text());
+
+ // stop iteration
+ return false;
+ }
+ });
+ };
+
+ // get the banners if we're not in the shell
+ var banners = $.Deferred(function (deferred) {
+ if (top === window) {
+ $.ajax({
+ type: 'GET',
+ url: '../nifi-api/controller/banners',
+ dataType: 'json'
+ }).then(function (response) {
+ // ensure the banners response is specified
+ if (isDefinedAndNotNull(response.banners)) {
+ if (isDefinedAndNotNull(response.banners.headerText) &&
response.banners.headerText !== '') {
+ // update the header text
+ var bannerHeader =
$('#banner-header').text(response.banners.headerText).show();
+
+ // show the banner
+ var updateTop = function (elementId) {
+ var element = $('#' + elementId);
+ element.css('top',
(parseInt(bannerHeader.css('height')) + parseInt(element.css('top'))) + 'px');
+ };
+
+ // update the position of elements affected by top
banners
+ updateTop('documentation-header');
+ updateTop('component-listing');
+ updateTop('component-usage-container');
+ }
+
+ if (isDefinedAndNotNull(response.banners.footerText) &&
response.banners.footerText !== '') {
+ // update the footer text and show it
+ var bannerFooter =
$('#banner-footer').text(response.banners.footerText).show();
+
+ var updateBottom = function (elementId) {
+ var element = $('#' + elementId);
+ element.css('bottom',
parseInt(bannerFooter.css('height')) + parseInt(element.css('bottom')) + 'px');
+ };
+
+ // update the position of elements affected by bottom
banners
+ updateBottom('component-filter-controls');
+ updateBottom('component-listing');
+ updateBottom('component-usage-container');
+ }
+ }
+
+ deferred.resolve();
+ }, function () {
+ deferred.reject();
+ });
+ } else {
+ deferred.resolve();
+ }
+ }).promise();
+
+ // get the about details
+ var about = $.ajax({
+ type: 'GET',
+ url: '../nifi-api/controller/about',
+ dataType: 'json'
+ }).done(function (response) {
+ var aboutDetails = response.about;
+
+ // set the document title and the about title
+ $('#nf-version').text(aboutDetails.version);
+ });
+
+ // once the banners have loaded, function with remainder of the page
+ $.when(banners, about).always(function () {
+ // define the function for filtering the list
+ $('#component-filter').keyup(function () {
+ applyFilter();
+ }).focus(function () {
+ if ($(this).hasClass('component-filter-list')) {
+ $(this).removeClass('component-filter-list').val('');
+ }
+ }).blur(function () {
+ if ($(this).val() === '') {
+ $(this).addClass('component-filter-list').val('Filter');
+ }
+ }).addClass('component-filter-list').val('Filter');
+
+ // get the component usage container to install the window listener
+ var componentUsageContainer = $('#component-usage-container');
+
+ // size the iframe accordingly
+ var componentUsage = $('#component-usage').css({
+ width: componentUsageContainer.width(),
+ height: componentUsageContainer.height()
+ });
+
+ // add a window resize listener
+ $(window).resize(function () {
+ componentUsage.css({
+ width: componentUsageContainer.width(),
+ height: componentUsageContainer.height()
+ });
+ });
+
+ // listen for loading of the iframe to update the title
+ $('#component-usage').on('load', function () {
+ var componentName = '';
+ var href = $(this).contents().get(0).location.href;
+
+ // see if the href ends in index.htm[l]
+ var indexOfIndexHtml = href.indexOf('index.htm');
+ if (indexOfIndexHtml >= 0) {
+ href = href.substring(0, indexOfIndexHtml);
+ }
+
+ // remove the trailing separator
+ if (href.length > 0) {
+ var indexOfSeparator = href.lastIndexOf('/');
+ if (indexOfSeparator === href.length - 1) {
+ href = href.substring(0, indexOfSeparator);
+ }
+ }
+
+ // extract the simple name
+ if (href.length > 0) {
+ var indexOfLastDot = href.lastIndexOf('.');
+ if (indexOfLastDot >= 0) {
+ var indexAfterStrToFind = indexOfLastDot + 1;
+ if (indexAfterStrToFind < href.length) {
+ componentName = href.substr(indexAfterStrToFind);
+ }
+ }
+ }
+
+ // if we could figure out the name
+ if (componentName !== '') {
+ selectComponent(componentName);
+ }
+ });
+
+ // listen for on the rest api and user guide and developer guide and
admin guide and overview
+ $('a.rest-api, a.user-guide, a.developer-guide, a.admin-guide,
a.overview, a.expression-language-guide').on('click', function() {
+ selectComponent($(this).text());
+ });
+
+ // get the initial selection
+ var initialComponentLink = $('a.component-link:first');
+ var initialSelection = $('#initial-selection').text();
+ if (initialSelection !== '') {
+ $('a.component-link').each(function () {
+ var componentLink = $(this);
+ if (componentLink.text() === initialSelection) {
+ initialComponentLink = componentLink;
+ return false;
+ }
+ });
+ }
+
+ // click the first link
+ initialComponentLink[0].click();
+ });
+});
Added: incubator/nifi/site/trunk/docs/nifi-docs/rest-api/images/bgNifiLogo.png
URL:
http://svn.apache.org/viewvc/incubator/nifi/site/trunk/docs/nifi-docs/rest-api/images/bgNifiLogo.png?rev=1682431&view=auto
==============================================================================
Binary file - no diff available.
Propchange:
incubator/nifi/site/trunk/docs/nifi-docs/rest-api/images/bgNifiLogo.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/nifi/site/trunk/docs/nifi-docs/rest-api/images/nifi16.ico
URL:
http://svn.apache.org/viewvc/incubator/nifi/site/trunk/docs/nifi-docs/rest-api/images/nifi16.ico?rev=1682431&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/nifi/site/trunk/docs/nifi-docs/rest-api/images/nifi16.ico
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream