Commit 73b23ec0 authored by Vincent Bechu's avatar Vincent Bechu Committed by Eteri

[erp5_officejs] Add App Store to export site

parent 384197ad
......@@ -60,6 +60,10 @@
</tuple>
</value>
</item>
<item>
<key> <string>content_md5</string> </key>
<value> <string>1dc35d25e61d819a9c357074014867ab</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>font/truetype</string> </value>
......@@ -68,14 +72,36 @@
<key> <string>default_reference</string> </key>
<value> <string>css/fontawesome/font/fontawesome-webfont.ttf</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>filename</string> </key>
<value> <string>font-awesome-webfont.ttf</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>gadget_officejs_appstore_css_fontawesome_font_fontawesome-webfont_ttf</string> </value>
</item>
<item>
<key> <string>language</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>File</string> </value>
</item>
<item>
<key> <string>short_title</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>fontawesome-webfont.ttf</string> </value>
......@@ -193,7 +219,9 @@
</item>
<item>
<key> <string>comment</string> </key>
<value> <string></string> </value>
<value>
<none/>
</value>
</item>
<item>
<key> <string>error_message</string> </key>
......@@ -201,7 +229,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>0.0.0.0</string> </value>
<value> <string>960.25484.60987.38638</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -219,7 +247,7 @@
</tuple>
<state>
<tuple>
<float>1497861288.79</float>
<float>1504006367.99</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -60,10 +60,9 @@
"generate":"widget",
"type": "controlbar",
"class_list": "responsive",
"children": [
{
"children": [{
"type": "a",
"attributes": {"href":"www.miitbeian.gov.cn"},
"attributes": {"href":"http://www.miitbeian.gov.cn", "style": "padding-top: 1em;" },
"logic": {"text": "沪ICP备14008524号"}
}]
}]
......
......@@ -62,7 +62,7 @@
</item>
<item>
<key> <string>content_md5</string> </key>
<value> <string>5d593f5b74d90f39e5e2271a02c8f1c8</string> </value>
<value> <string>4ca965d37df12a63e0d95aa5d41e9de9</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
......@@ -207,7 +207,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>961.47837.55773.26948</string> </value>
<value> <string>961.47915.18273.45448</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -225,7 +225,7 @@
</tuple>
<state>
<tuple>
<float>1503999280.62</float>
<float>1504003979.23</float>
<string>UTC</string>
</tuple>
</state>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Image" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Access_contents_information_Permission</string> </key>
<value>
<tuple>
<string>Anonymous</string>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Add_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Change_local_roles_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_View_Permission</string> </key>
<value>
<tuple>
<string>Anonymous</string>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>_count</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_mt_index</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>_tree</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item>
<item>
<key> <string>content_md5</string> </key>
<value> <string>d7c639084f684d66a1bc66855d193ed8</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>image/svg+xml</string> </value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>css/fontawesome/font/fontawesome-webfont.svg</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>filename</string> </key>
<value> <string>font-awesome-webfont.svg</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>-1</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>gadget_officejs_store_css_fontawesome_font_fontawesome_webfont_svg</string> </value>
</item>
<item>
<key> <string>language</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Image</string> </value>
</item>
<item>
<key> <string>short_title</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>fontawesome svg</string> </value>
</item>
<item>
<key> <string>version</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>-1</int> </value>
</item>
<item>
<key> <string>workflow_history</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="Length" module="BTrees.Length"/>
</pickle>
<pickle> <int>0</int> </pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<global name="OOBTree" module="BTrees.OOBTree"/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<global name="OOBTree" module="BTrees.OOBTree"/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record id="5" aka="AAAAAAAAAAU=">
<pickle>
<global name="PersistentMapping" module="Persistence.mapping"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary>
<item>
<key> <string>document_publication_workflow</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent>
</value>
</item>
<item>
<key> <string>edit_workflow</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="6" aka="AAAAAAAAAAY=">
<pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key> <string>action</string> </key>
<value> <string>publish</string> </value>
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</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>time</string> </key>
<value>
<object>
<klass>
<global name="DateTime" module="DateTime.DateTime"/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>1504006389.4</float>
<string>UTC</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key> <string>validation_state</string> </key>
<value> <string>published</string> </value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record id="7" aka="AAAAAAAAAAc=">
<pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key> <string>action</string> </key>
<value> <string>edit</string> </value>
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>error_message</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>961.47974.64716.58077</string> </value>
</item>
<item>
<key> <string>state</string> </key>
<value> <string>current</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>1504007463.97</float>
<string>UTC</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
......@@ -205,7 +205,9 @@
</item>
<item>
<key> <string>comment</string> </key>
<value> <string></string> </value>
<value>
<none/>
</value>
</item>
<item>
<key> <string>error_message</string> </key>
......@@ -213,7 +215,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>0.0.0.0</string> </value>
<value> <string>960.25484.60987.38638</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -231,7 +233,7 @@
</tuple>
<state>
<tuple>
<float>1497861288.69</float>
<float>1504004940.82</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -68,7 +68,7 @@
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/plain</string> </value>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>default_reference</string> </key>
......@@ -233,7 +233,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>960.12729.13699.34218</string> </value>
<value> <string>960.25484.60987.38638</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -251,7 +251,7 @@
</tuple>
<state>
<tuple>
<float>1498046962.65</float>
<float>1503994049.51</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -16,6 +16,7 @@
this._prefix = spec.prefix || "";
this._documents = {};
// Harcoded here, find a better way.
if (this._take_installer) {
this._relative_url_list = [
this._prefix + "/",
this._prefix + "gadget_officejs_bootloader.js",
......@@ -26,6 +27,9 @@
this._prefix + "gadget_erp5_nojqm.css",
this._prefix + "jio_appcachestorage.js"
];
} else {
this._relative_url_list = [this._prefix + "/"];
}
if (this._take_installer) {
this._version = 'app/';
}
......
......@@ -239,7 +239,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>961.17737.55306.1348</string> </value>
<value> <string>961.47863.39660.12714</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -257,7 +257,7 @@
</tuple>
<state>
<tuple>
<float>1502193583.56</float>
<float>1504000868.4</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -46,6 +46,7 @@
<option>Image Editor</option>
<option>Awesome Free Software Publisher List</option>
<option>Todomvc</option>
<option>App Store</option>
</select>
</div>
</div>
......
......@@ -231,7 +231,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>960.25484.60987.38638</string> </value>
<value> <string>961.47852.14013.52787</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -249,7 +249,7 @@
</tuple>
<state>
<tuple>
<float>1499259242.52</float>
<float>1504000114.75</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -75,7 +75,7 @@
"no_installer": true,
"sub_gadget": ["connection"]
},
"Appstore": {
"App Store": {
"url": "officejsoldv1/",
"cache": "officejs_store.appcache",
"no_installer": true,
......@@ -141,8 +141,7 @@
i = 0,
form_result = {},
len = event.target.length,
app,
take_installer;
app;
for (j = 0; j < len; j += 1) {
form_result[event.target[j].name] = event.target[j].value;
......@@ -157,6 +156,7 @@
return gadget.fillZip(
application_dict[sub_app].cache,
origin_url + app.url,
application_dict[sub_app].no_installer,
zip_file,
sub_app + "/"
)
......@@ -168,7 +168,7 @@
return zip_file;
}
return gadget.fillZip(app.cache, origin_url + app.url)
return gadget.fillZip(app.cache, origin_url + app.url, app.no_installer)
.push(function (zip_file) {
return fill(zip_file);
})
......@@ -196,8 +196,8 @@
g.props.element = element;
});
})
.declareMethod("fillZip", function (cache_file, site_url, zip_file,
prefix) {
.declareMethod("fillZip", function (cache_file, site_url, no_installer,
zip_file, prefix) {
var gadget = this,
file_storage = jIO.createJIO({
type: "replicate",
......@@ -213,7 +213,7 @@
document: site_url,
sub_storage: {
type: "appcache",
take_installer: true,
take_installer: no_installer === undefined,
manifest: cache_file,
origin_url: site_url,
prefix: prefix || ""
......
......@@ -227,7 +227,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>961.17739.7403.25139</string> </value>
<value> <string>961.47860.26994.26982</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -245,7 +245,7 @@
</tuple>
<state>
<tuple>
<float>1502193354.69</float>
<float>1504000609.36</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