|
@@ -22,16 +22,27 @@ from django.utils.translation import ugettext as _
|
|
|
<%namespace name="assist" file="/assist.mako" />
|
|
<%namespace name="assist" file="/assist.mako" />
|
|
|
<%namespace name="comps" file="beeswax_components.mako" />
|
|
<%namespace name="comps" file="beeswax_components.mako" />
|
|
|
<%namespace name="layout" file="layout.mako" />
|
|
<%namespace name="layout" file="layout.mako" />
|
|
|
-<%namespace name="require" file="/require.mako" />
|
|
|
|
|
|
|
|
|
|
${ commonheader(_('Create table from file'), 'metastore', user) | n,unicode }
|
|
${ commonheader(_('Create table from file'), 'metastore', user) | n,unicode }
|
|
|
${ layout.metastore_menubar() }
|
|
${ layout.metastore_menubar() }
|
|
|
|
|
|
|
|
-${ require.config() }
|
|
|
|
|
-
|
|
|
|
|
-${ assist.assistPanel() }
|
|
|
|
|
-
|
|
|
|
|
|
|
+<script src="${ static('desktop/ext/js/jquery/plugins/jquery-ui-1.10.4.custom.min.js') }"></script>
|
|
|
|
|
+<script src="${ static('desktop/js/jquery.huedatatable.js') }"></script>
|
|
|
<script src="${ static('desktop/ext/js/d3.v3.js') }" type="text/javascript" charset="utf-8"></script>
|
|
<script src="${ static('desktop/ext/js/d3.v3.js') }" type="text/javascript" charset="utf-8"></script>
|
|
|
|
|
+<script src="${ static('desktop/ext/js/knockout.min.js') }"></script>
|
|
|
|
|
+<script src="${ static('desktop/ext/js/selectize.min.js') }"></script>
|
|
|
|
|
+<script src="${ static('desktop/js/apiHelper.js') }"></script>
|
|
|
|
|
+<script src="${ static('metastore/js/metastore.ko.js') }"></script>
|
|
|
|
|
+<script src="${ static('desktop/js/ko.charts.js') }"></script>
|
|
|
|
|
+<script src="${ static('desktop/ext/js/knockout-mapping.min.js') }"></script>
|
|
|
|
|
+<script src="${ static('desktop/ext/js/knockout-sortable.min.js') }"></script>
|
|
|
|
|
+<script src="${ static('desktop/js/ko.editable.js') }"></script>
|
|
|
|
|
+<script src="${ static('desktop/js/ko.hue-bindings.js') }"></script>
|
|
|
|
|
+<script src="${ static('desktop/js/assist/assistDbEntry.js') }"></script>
|
|
|
|
|
+<script src="${ static('desktop/js/assist/assistDbSource.js') }"></script>
|
|
|
|
|
+<script src="${ static('desktop/js/assist/assistHdfsEntry.js') }"></script>
|
|
|
|
|
+<script src="${ static('desktop/js/fileBrowser/hueDocument.js') }"></script>
|
|
|
|
|
+<script src="${ static('desktop/js/fileBrowser/hueFileEntry.js') }"></script>
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="${ static('metastore/css/metastore.css') }" type="text/css">
|
|
<link rel="stylesheet" href="${ static('metastore/css/metastore.css') }" type="text/css">
|
|
|
<link rel="stylesheet" href="${ static('notebook/css/notebook.css') }">
|
|
<link rel="stylesheet" href="${ static('notebook/css/notebook.css') }">
|
|
@@ -46,12 +57,12 @@ ${ assist.assistPanel() }
|
|
|
% endif
|
|
% endif
|
|
|
</style>
|
|
</style>
|
|
|
|
|
|
|
|
|
|
+${ assist.assistPanel() }
|
|
|
|
|
|
|
|
<a title="${_('Toggle Assist')}" class="pointer show-assist" data-bind="visible: !$root.isLeftPanelVisible() && $root.assistAvailable(), click: function() { $root.isLeftPanelVisible(true); }">
|
|
<a title="${_('Toggle Assist')}" class="pointer show-assist" data-bind="visible: !$root.isLeftPanelVisible() && $root.assistAvailable(), click: function() { $root.isLeftPanelVisible(true); }">
|
|
|
<i class="fa fa-chevron-right"></i>
|
|
<i class="fa fa-chevron-right"></i>
|
|
|
</a>
|
|
</a>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
<div class="main-content">
|
|
<div class="main-content">
|
|
|
<div class="vertical-full container-fluid" data-bind="style: { 'padding-left' : $root.isLeftPanelVisible() ? '0' : '20px' }">
|
|
<div class="vertical-full container-fluid" data-bind="style: { 'padding-left' : $root.isLeftPanelVisible() ? '0' : '20px' }">
|
|
|
<div class="vertical-full">
|
|
<div class="vertical-full">
|
|
@@ -205,18 +216,7 @@ ${ assist.assistPanel() }
|
|
|
</style>
|
|
</style>
|
|
|
|
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
-
|
|
|
|
|
- require([
|
|
|
|
|
- "knockout",
|
|
|
|
|
- "ko.charts",
|
|
|
|
|
- "desktop/js/apiHelper",
|
|
|
|
|
- "assistPanel",
|
|
|
|
|
- "knockout-mapping",
|
|
|
|
|
- "knockout-sortable",
|
|
|
|
|
- "ko.editable",
|
|
|
|
|
- "ko.hue-bindings"
|
|
|
|
|
- ], function (ko, charts, ApiHelper) {
|
|
|
|
|
-
|
|
|
|
|
|
|
+ (function () {
|
|
|
ko.options.deferUpdates = true;
|
|
ko.options.deferUpdates = true;
|
|
|
|
|
|
|
|
function MetastoreViewModel(options) {
|
|
function MetastoreViewModel(options) {
|
|
@@ -302,9 +302,8 @@ ${ assist.assistPanel() }
|
|
|
$("input[name='submit_file']").click();
|
|
$("input[name='submit_file']").click();
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
});
|
|
});
|
|
|
- });
|
|
|
|
|
|
|
+ })();
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
${ commonfooter(request, messages) | n,unicode }
|
|
${ commonfooter(request, messages) | n,unicode }
|