Commit f5724a8a authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Drop unused files

parent 7c46ca2f
......@@ -108,7 +108,7 @@
<value> <string encoding="cdata"><![CDATA[
CACHE MANIFEST\n
# generated on Tue, 12 July 2016 12:00:00 GMT\n
# generated on Tue, 24 Jun 2016 16:00:00 GMT\n
# XXX + fonts\n
# images/ajax-loader.gif\n
CACHE:\n
......@@ -167,7 +167,6 @@ gadget_erp5_header.html\n
gadget_erp5_header.js\n
gadget_erp5_jio.html\n
gadget_erp5_jio.js\n
gadget_erp5_latest.css\n
gadget_erp5_page_action.html\n
gadget_erp5_page_action.js\n
gadget_erp5_page_form.html\n
......@@ -192,7 +191,6 @@ gadget_erp5_page_worklist.html\n
gadget_erp5_page_worklist.js\n
gadget_erp5_panel.html\n
gadget_erp5_panel.js\n
gadget_erp5_panel_configuration.html\n
gadget_erp5_pt_form_dialog.html\n
gadget_erp5_pt_form_dialog.js\n
gadget_erp5_pt_form_list.html\n
......@@ -205,8 +203,6 @@ gadget_erp5_pt_report_view.html\n
gadget_erp5_pt_report_view.js\n
gadget_erp5_router.html\n
gadget_erp5_router.js\n
gadget_erp5_relation_input.html\n
gadget_erp5_relation_input.js\n
gadget_erp5_search_editor.html\n
gadget_erp5_search_editor.js\n
gadget_erp5_searchfield.html\n
......@@ -223,9 +219,6 @@ gadget_translation_data.js\n
handlebars.js\n
i18next.js\n
jiodev.js\n
jquery.js\n
jquerymobile.css\n
jquerymobile.js\n
renderjs.js\n
rsvp.js\n
NETWORK:\n
......@@ -360,7 +353,7 @@ NETWORK:\n
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>952.33120.45206.6075</string> </value>
<value> <string>952.10055.10367.33638</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -378,7 +371,7 @@ NETWORK:\n
</tuple>
<state>
<tuple>
<float>1468331792.72</float>
<float>1467035673.56</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -136,6 +136,12 @@
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item>
<item>
<key> <string>processing_status_workflow</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent>
</value>
</item>
</dictionary>
</value>
</item>
......@@ -157,7 +163,7 @@
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
<value> <string>romain</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
......@@ -179,8 +185,8 @@
</tuple>
<state>
<tuple>
<float>1465381402.54</float>
<string>UTC</string>
<float>1406898405.9</float>
<string>GMT</string>
</tuple>
</state>
</object>
......@@ -224,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>952.4548.25239.8192</string> </value>
<value> <string>951.35286.47701.22630</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -242,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1466779724.5</float>
<float>1466520882.85</float>
<string>UTC</string>
</tuple>
</state>
......@@ -254,4 +260,61 @@
</tuple>
</pickle>
</record>
<record id="5" aka="AAAAAAAAAAU=">
<pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key> <string>action</string> </key>
<value> <string>detect_converted_file</string> </value>
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>romain</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>error_message</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_processing_state</string> </key>
<value> <string>converted</string> </value>
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>0.0.0.0</string> </value>
</item>
<item>
<key> <string>time</string> </key>
<value>
<object>
<klass>
<global name="DateTime" module="DateTime.DateTime"/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>1405427673.27</float>
<string>GMT</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no" />
<title>ERP5 Panel Domain Tree</title>
<!-- renderjs -->
<script src="rsvp.js" type="text/javascript"></script>
<script src="renderjs.js" type="text/javascript"></script>
<script src="handlebars.js" type="text/javascript"></script>
<script src="gadget_global.js" type="text/javascript"></script>
<!-- panel -->
<script id="panel-category-list-header" type="text/x-handlbars-template">
<div data-role="header" class="ui-header ui-bar-inherit" role="banner">
<div class="ui-controlgroup ui-controlgroup-horizontal ui-btn-left">
<div class="ui-controlgroup-controls"></div>
</div>
<h1 class="ui-title" data-i18n="{{i18n}}">Categories</h1>
<div class="ui-controlgroup ui-controlgroup-horizontal ui-btn-right">
<div class="ui-controlgroup-controls">
<form action="#">
<input type="submit" value="[value]{{close_i18n}}" data-icon="delete" data-iconpos="notext" />
</form>
</div>
</div>
</div>
<div class="ui-content">
<form class="update_search_form" action="#">
<div class="ui-navbar ui-subheader ui-grid-container ui-body-inherit" role="navigation">
<ul class="ui-grid-a">
<li class="ui-block-a">
<button name='clear_category_list' data-i18n="{{clear_i18n}}" type='submit' class='responsive ui-btn ui-bar-inherit ui-btn-inherit ui-btn-icon-left ui-icon-trash-o ui-btn ui-first-child'>Delete</button>
</li>
<li class="ui-block-b">
<button name='update_category_list' data-i18n="{{update_i18n}}" type='submit' class='responsive ui-btn ui-bar-inherit ui-btn-inherit ui-btn-icon-left ui-icon-share-square-o ui-btn ui-last-child'>Update</button>
</li>
</ul>
</div>
</form>
{{#if tag_list}}
<div class="ui-controlgroup">
<div class="ui-controlgroup-controls">
{{#each taglist}}
<form class="update_search_from" action="#">
<button type="submit" name='update_category_list' data-i18n={{type_i18n}}={{value_i18n}} class="{{@first}}: {{ui-first-child }} {{@last}}: {{ui-last-child }} ui-btn ui-bar-inherit ui-btn-inherit ui-btn-icon-right ui-icon-delete">{{type_i18n}}={{value_i18n}}</button>
</form>
{{/each}}
</div>
</div>
{{/if}}
</div>
</script>
<!--
{{#if tag_list}}
<div class="ui-controlgroup">
<div class="ui-controlgroup-controls">
{{#each taglist}}
<form class="update_search_from" action="#">
<button type="submit" name='update_category_list' data-i18n={{type_i18n}}={{value_i18n}} class="{{@first}}: {{ui-first-child }} {{@last}}: {{ui-last-child }} ui-btn ui-bar-inherit ui-btn-inherit ui-btn-icon-right ui-icon-delete">{{type_i18n}}={{value_i18n}}</button>
</form>
{{/each}}
</div>
</div>
{{/if}}
{{#if tree}}
<ul class="ui-listview" data-enhanced="true">
{{> category-taglist-partial}}
</ul>
{{/if}}
</div>
-->
<!--
<script id="category-taglist-partial" type="text/x-handlebars-tempalte">
{{#each tree}}
{{#if tree}}
<li data-role="collapsible" data-enhanced="true" data-collapsed="true" data-collapsed-icon="plus" class="ui-li-has-checkbox ui-collapsible ui-collapsible-collapsed ui-li-static ui-body-inherit">
<h4 class="ui-collapsible-heading ui-collapsible-heading-collapsed ui-li-divider ui-li-has-icon">
<a class="ui-collapsible-heading-toggle ui-icon-plus ui-btn-icon-left ui-btn-inherit ui-link" href="#" data-i18n="[last]{{i18n}}">
<span data-i18n="gen.hint" class="ui-collapsible-heading-status"></span>
</a>
<div class="ui-checkbox">
<label class="ui-btn ui-corner-all ui-btn-inherit ui-btn-icon-notext ui-checkbox-on">{{search}}</label>
<input type="checkbox" data-iconpos="notext" name="{{this.search}}" data-cacheval="false">
</div>
</h4>
<div class="ui-collapsible-content ui-collapsible-content-collapsed" aria-hidden="true">
<ul data-role="listview" class="ui-listview" data-enhanced="true">
{{> category-taglist-partial}} {{! Recursively render the partial }}
</ul>
</div>
</li>
{{else}}
{{#if multiple}}
<li class="ui-li-has-checkboxradio ui-li-static ui-body-inherit" data-i18n="[node]{{i18n}}">
{{i18n}}
<div class="ui-checkbox">
<label class="ui-btn ui-corner-all ui-btn-inherit ui-btn-icon-notext ui-checkbox-on">&nbsp;</label>
<input type="checkbox" data-iconpos="notext" name="{{search}}" data-cacheval="false">
</div>
</li>
{{else}}
<li class="ui-li-has-checkboxradio ui-li-static ui-body-inherit" data-i18n="[node]{{i18n}}">
{{i18n}}
<div class="ui-checkbox">
<label class="ui-btn ui-corner-all ui-btn-inherit ui-btn-icon-notext ui-checkbox-on">&nbsp;</label>
<input type="checkbox" data-iconpos="notext" name="{{search}}" data-cacheval="false">
</div>
</li>
{{/if}}
{{/if}}
{{/each}}
</script>
-->
<!-- custom script -->
<script src="gadget_erp5_panel_configuration.js" type="text/javascript"></script>
</head>
<body>
<div class="jqm-configuration-panel"></div>
</body>
</html>
\ No newline at end of file
/*jslint nomen: true, indent: 2, maxerr: 3 */
/*global window, rJS, Handlebars, RSVP, loopEventListener */
(function (window, rJS, Handlebars, RSVP, loopEventListener) {
"use strict";
/////////////////////////////////////////////////////////////////
// TEMPLATE API
/////////////////////////////////////////////////////////////////
// panel_category_list_header
// {
// "close_i18n": [SET],
// "i18n": [title],
// "clear_i18n": [SET],
// "update_i18n": [SET]
// "tag_list": [{
// "type_i18n": [type of filter|create|...],
// "value_i18n": [value to create or filter for, eg. region:foo]
// }]
// panel_category_list_partial
// {
// "i18n": [category title],
// "tree": [{
// "multiple": [true to make checkbox],
// "search": [search term, like "filter:region=France"],
// "i18n":" [text to display]
// }]
// }]
// }
/////////////////////////////////////////////////////////////////
// some methods
/////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////
// Handlebars
/////////////////////////////////////////////////////////////////
var gadget_klass = rJS(window),
templater = gadget_klass.__template_element,
// pre-compile
panel_category_list_header = Handlebars.compile(
templater.getElementById("panel-category-list-header").innerHTML
)
/*
,panel_category_list_partial = Handlebars.registerPartial(
"category-taglist-partial",
templater.getElementById("category-taglist-partial").innerHTML
)*/;
gadget_klass
/////////////////////////////////////////////////////////////////
// ready
/////////////////////////////////////////////////////////////////
.ready(function (my_gadget) {
my_gadget.property_dict = {};
})
.ready(function (my_gadget) {
return my_gadget.getElement()
.push(function (my_element) {
my_gadget.property_dict.element = my_element;
my_gadget.property_dict.defer = new RSVP.defer();
my_gadget.property_dict.panel_element =
my_element.querySelector(".jqm-configuration-panel");
});
})
/////////////////////////////////////////////////////////////////
// acquired methods
/////////////////////////////////////////////////////////////////
.declareAcquiredMethod("translateHtml", "translateHtml")
.declareAcquiredMethod("changeLanguage", "changeLanguage")
.declareAcquiredMethod("getLanguageList", "getLanguageList")
.declareAcquiredMethod(
"whoWantToDisplayThisFrontPage",
"whoWantToDisplayThisFrontPage"
)
/////////////////////////////////////////////////////////////////
// declared methods
/////////////////////////////////////////////////////////////////
.declareMethod('setPanelHeader', function (my_option_dict) {
var gadget = this,
panel_element = gadget.property_dict.panel_element;
return new RSVP.Queue()
.push(function () {
return gadget.translateHtml(
panel_category_list_header(my_option_dict)
);
})
.push(function (my_panel_header) {
panel_element.innerHTML = my_panel_header;
return gadget;
})
.push(function () {
return gadget.property_dict.defer.resolve();
});
})
.declareMethod('setPanelContent', function (my_option_dict) {
/*
so Romain requested to have a gadget depending on use case of this
panel. In our case it should be a domain tree and it should load a
certain amount or type of domains/categories
Alternatively we can load something else. Question is whether this
should be a domain tree per ... app or if every domaintree can be
different depending on a parameter passed into intialization.
Also, we must make clear that the content can be dumped to make space
for new content!
Do this.
*/
return;
})
.declareMethod('togglePanel', function () {
var gadget = this;
$(gadget.property_dict.panel_element).panel("toggle");
})
.declareMethod('render', function (my_option_dict) {
var gadget = this,
panel_element = gadget.property_dict.panel_element;
return new RSVP.Queue()
.push(function () {
$(panel_element).panel({
display: "overlay",
position: "right",
theme: "c"
});
});
})
/////////////////////////////////////////////////////////////////
// declared services
/////////////////////////////////////////////////////////////////
.declareService(function () {
var gadget = this,
$panel_element = $(gadget.property_dict.panel_element);
function formSubmit() {
return gadget.togglePanel();
}
return new RSVP.Queue()
.push(function () {
return gadget.property_dict.defer.promise;
})
.push(function () {
$panel_element.enhanceWithin();
var form_list = gadget.property_dict.element.querySelectorAll('form'),
event_list = [],
i,
len;
for (i = 0, len = form_list.length; i < len; i += 1) {
event_list[i] = loopEventListener(
form_list[i],
'submit',
false,
formSubmit
);
}
return RSVP.all(event_list);
})
});
}(window, rJS, Handlebars, RSVP, loopEventListener));
\ No newline at end of file
......@@ -62,7 +62,6 @@
'gadget_erp5_header.js',
'gadget_erp5_jio.html',
'gadget_erp5_jio.js',
'gadget_erp5_latest.css',
'gadget_erp5_page_action.html',
'gadget_erp5_page_action.js',
'gadget_erp5_page_form.html',
......@@ -87,7 +86,6 @@
'gadget_erp5_page_worklist.js',
'gadget_erp5_panel.html',
'gadget_erp5_panel.js',
'gadget_erp5_panel_configuration.html',
'gadget_erp5_pt_form_dialog.html',
'gadget_erp5_pt_form_dialog.js',
'gadget_erp5_pt_form_list.html',
......@@ -118,9 +116,6 @@
'handlebars.js',
'i18next.js',
'jiodev.js',
'jquery.js',
'jquerymobile.css',
'jquerymobile.js',
'renderjs.js',
'rsvp.js'
];
......@@ -191,4 +186,4 @@
}(self, caches, fetch));
\ No newline at end of file
}(self, caches, fetch));
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>952.33133.9116.24098</string> </value>
<value> <string>952.5891.40125.8465</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1468419919.07</float>
<float>1467035757.8</float>
<string>UTC</string>
</tuple>
</state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment