Commit bc34a8da authored by Sven Franck's avatar Sven Franck

data: removed old files

parent 2de0f8ac
{
"portal_type_source": "Software Release",
"portal_type_title": "release",
"portal_type_fields": "release_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,16]},
"form": true,
"property_dict": {
"initial_query_url_identifier": "release_reference_id",
"dynamic_children": [5],
"wrap_gadget": 2,
"check": true,
"radio": null,
"global_check": true,
"sortable": true,
"mergeable": true,
"link": true,
"link_identifier": null,
"link_external": null,
"link_source": null,
"editable": null,
"action_menu": true,
"caption": {
"slot": 1,
"text": "Created Servers",
"text_i18n": "portal_type_dict.computer_dict.text_dict.created_servers"
},
"no_items": {
"message":"No Software installed.",
"message_i18n":"portal_type_dict.software_dict.text_dict.no_software",
"children": [
{
"href": "#software::new",
"text": "Add Software",
"text_i18n": "portal_type_dict.software_dict.text_dict.add_software",
"class_list": "translate ui-btn-slapos-black"
}
]
},
"pagination": {
"slot": 2,
"option_list": [
{"text":8, "text_i18n":"portal_type_dict.computer_dict.text_dict.8"},
{"text":16, "text_i18n":"portal_type_dict.computer_dict.text_dict.16"},
{"text":32, "text_i18n":"portal_type_dict.computer_dict.text_dict.32"},
{"text":64, "text_i18n":"portal_type_dict.computer_dict.text_dict.64"}
]
},
"search": {
"text": "Search available servers",
"text_i18n": "portal_type_dict.computer_dict.text_dict.search",
"info_list": ["records", "filter", "sorted", "selected"]
}
},
"scheme": {
"header": [
[
{"column": "release_title", "show": true, "priority": 1, "sort":true},
{"column": "release_version", "show": true, "priority": 1, "sort":true},
{"column": "release_description", "show": true, "priority": 5, "sort":true},
{"custom": true, "text": "Download", "text_i18n": "global_dict.export_dict.download", "show": true, "priority": 6, "sort": false}
]
],
"body": [
{"column": "release_title", "show": true, "priority": 1, "sort":true},
{"column": "release_version", "show": true, "priority": 1, "sort":true},
{"column": "release_description", "show": true, "priority": 5, "sort":true},
{"custom": "true", "show": true, "priority": 6, "action_list": [{"text": "Download", "class_list": "responsive", "text_i18n": "global_dict.export_dict.download", "action": "pdf", "icon": "file-alt"}]}
],
"footer": []
},
"children": [{
"generate": "widget",
"type": "controlbar",
"class_list": "responsive",
"children": [
{"type": "input", "direct": {"id":"search_release_list", "className": "translate"}, "attributes": {"data-action":"search", "data-enhanced":"true", "data-i18n": "[placeholder]page_dict.release.search","placeholder":"Search available releases", "data-icon":"search", "data-action-btn":"true", "data-type":"search", "type":"search"}, "logic":{"clear":"true", "action":"search"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"records"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"selected"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"filter"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"sorted"}}
]
},{
"generate": "widget",
"type": "controlbar",
"property_dict": {"slot": 1},
"children": [{"type": "a", "direct": {"className": "toggle_global_popup ui-btn ui-btn-icon-left ui-icon-sitemap ui-shadow ui-corner-all","href":"#global_popup"},"attributes": {"data-reference":"group_search","data-type":"invoices", "data-rel":"popup","data-transition":"pop","data-position-to":"window"},"logic": {"text":"Group"}}]
},{
"generate": "widget",
"type": "controlbar",
"property_dict": {"slot": 2},
"children": [{"type": "a", "direct": {"className": "toggle_global_popup ui-btn ui-btn-icon-left ui-icon-filter ui-shadow ui-corner-all","href":"#global_popup"},"attributes": {"data-reference":"detail_search","data-type":"invoices", "data-rel":"popup","data-transition":"pop","data-position-to":"window"},"logic": {"text":"Detail Search"}}]
},{
"generate": "widget",
"type": "controlbar",
"property_dict": {"slot": 3},
"children": [{"type": "a","direct": {"className": "toggle_local_popup ui-btn ui-btn-icon-left ui-icon-cogs ui-shadow ui-corner-all","href":"#global_popup"},"attributes": {"data-reference":"configure_search","data-type":"invoices", "data-rel":"popup","data-transition":"pop","data-position-to":"window"},"logic": {"text":"Configuration"}}]
}, {
"generate": "widget",
"type": "table",
"class_list": "table-stroke ui-responsive",
"property_dict": {
"filter": "true",
"input": "#search_release_list",
"mode": "columntoggle",
"toggle_popup": false,
"wrap": "both",
"top_grid": 3,
"bottom_grid": 1,
"sorting": "true"
},
"children": []
}]
}
{
"portal_type_source": "Software Product",
"portal_type_title": "software",
"portal_type_fields": "software_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,8]},
"form": true,
"property_dict": {
"link": true,
"link_identifier": "id",
"link_external": null,
"link_source": "item_url",
"ribbon": null,
"radio": null,
"check": null,
"dynamic_children": [0]
},
"scheme": [
{
"position": "left",
"fieldlist": [
{"field": "image_url", "type": "image"},
{"field": "title", "type": "alt"},
{"field": "some_translation_pointer", "type": "alt_i18n"},
{"custom": true, "type": "icon", "value": "baz"}
]
},
{
"position": "center",
"fieldlist": [
{"field": "title", "type": "h1"},
{"field": "description", "type": "p"},
{"field": "price", "type": "p", "aside": true},
{"field": "some_url", "type":"count"}
],
},
{
"position": "right",
"fieldlist": [
{"custom": true, "type": "icon", "value": "bar"},
{"field": "some_url", "type": "url", "external": true, "action": "baz", "title": null, "title_i18n": null}
]
}
],
"children": [{
"generate":"widget",
"type": "listview",
"class_list": "",
"theme": "slapos-white",
"property_dict": {
"alt_icon": null,
"numbered": false,
"inset": true,
"reveal": true,
"filter": true,
"input": "#foo",
"placeholder": null,
"filter_theme": null,
"divider_theme": "slapos-white",
"autodividers": true,
"count_theme": "slapos-white"
},
"children": []
}]
}
\ No newline at end of file
"login_dict": {
"application_dict": {},
"third_party": {
"provider": "hellojs",
"initializer_dict": {
"google" : "1028374738607-pg2qqcopjpoc09shlpul3mehu2dv76ln.apps.googleusercontent.com"
},
"verification_dict": {
"google": "https://www.googleapis.com/oauth2/v1/tokeninfo?access_token="
},
"signout_dict": {
"google": "https://accounts.google.com/Logout?continue=REDIRECT_URL",
"facebook": "https://www.facebook.com/logout.php?next=REDIRECT_URL&access_token=ACCESS_TOKEN"
},
"modernizr": ["localStorage"],
"redirect": {"redirect_uri":"http://localhost/sven/slapos-ui/index.html"}
},
"no_auth": {
"text":"Requires authorization.",
"text_i18n":"validation_dict.requires_auth",
"children": [
{
"href": "#global-popup",
"class_list": "translate action",
"action": "login",
"rel": "popup",
"text": "Login",
"text_i18n": "global_dict.common_dict.login",
"icon": "lock"
},
{
"href":"#person::new",
"class_list": "translate ui-btn-slapos-black",
"text":"Register",
"text_i18n": "global_dict.common_dict.register",
"icon": "edit"
}
]
}
},
Don't forget button...
{"type":"a", "direct": {"href": "#global-popup", "className":"responsive action"}, "attributes": {"data-depend":"login_state", "data-rel":"popup", "data-action":"login", "data-icon":"user", "data-i18n":"global_dict.common_dict.login"}, "logic": {"text":"Login"}}
\ No newline at end of file
{
"generate":"gadget",
"type": "setStorage",
"property_dict": {
"force_field_definitions": true,
"skip_total_records": true,
"storage_type": "JIO",
"modernizr": ["blobconstructor", "filereader"]
},
"children": [{
"generate": "gadget",
"type": "makeStorage",
"property_dict": {
"definition": {
"type": "local",
"username": "slapos",
"application_name": "settings"
}
}
}, {
"generate": "gadget",
"type": "makeStorage",
"property_dict": {
"definition": {
"type":"local",
"username":"slapos",
"application_name": "items"
}
}
}]
}
\ No newline at end of file
This diff is collapsed.
{
"_id": {
"type": "StringField",
"widget": {
"id": "_id",
"title_i18n": "portal_type_dict.category_dict.field_dict._id.title",
"description_i18n": "portal_type_dict.category_dict.field_dict._id.description",
"alternate_name": "_id",
"default_value": null,
"css_class": null,
"hidden": false,
"display_width": 30,
"maximum_input": null,
"extra": {}
},
"properties": {
"enabled": true,
"editable": false,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"messages": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input is required but no input given.",
"i18n": "validation_dict.required"
},
"too_long": {
"message":"Too much input given.",
"i18n": "validation_dict.too_much_input"
}
}
},
"title": {
"type": "StringField",
"widget": {
"id": "title",
"title_i18n": "portal_type_dict.category_dict.field_dict.title.title",
"description_i18n": "portal_type_dict.category_dict.field_dict.title.description",
"alternate_name": "title",
"default_value": null,
"css_class": null,
"hidden": false,
"display_width": 30,
"maximum_input": null,
"extra": {}
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"messages": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input is required but no input given.",
"i18n": "validation_dict.required"
},
"too_long": {
"message":"Too much input given.",
"i18n": "validation_dict.too_much_input"
}
}
},
"title_i18n": {
"type": "StringField",
"widget": {
"id": "title_i18n",
"title_i18n": "portal_type_dict.category_dict.field_dict.translation.title",
"description_i18n": "portal_type_dict.category_dict.field_dict.translation.description",
"alternate_name": "title_i18n",
"default_value": null,
"css_class": null,
"hidden": false,
"display_width": 30,
"maximum_input": null,
"extra": {}
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"messages": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input is required but no input given.",
"i18n": "validation_dict.required"
},
"too_long": {
"message":"Too much input given.",
"i18n": "validation_dict.too_much_input"
}
}
},
"reference": {
"type": "StringField",
"widget": {
"id": "reference",
"title_i18n": "portal_type_dict.category_dict.field_dict.reference.title",
"description_i18n": "portal_type_dict.category_dict.field_dict.reference.description",
"alternate_name": "reference",
"default_value": null,
"css_class": null,
"hidden": false,
"display_width": 30,
"maximum_input": null,
"extra": {}
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"messages": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input is required but no input given.",
"i18n": "validation_dict.required"
},
"too_long": {
"message":"Too much input given.",
"i18n": "validation_dict.too_much_input"
}
}
},
"reference_category": {
"type": "StringField",
"widget": {
"id": "reference_category",
"title_i18n": "portal_type_dict.category_dict.field_dict.reference_category.title",
"description_i18n": "portal_type_dict.category_dict.field_dict.reference_category.description",
"alternate_name": "reference_category",
"default_value": null,
"css_class": null,
"hidden": false,
"display_width": 30,
"maximum_input": null,
"extra": {}
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"messages": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input is required but no input given.",
"i18n": "validation_dict.required"
},
"too_long": {
"message":"Too much input given.",
"i18n": "validation_dict.too_much_input"
}
}
}
}
\ No newline at end of file
This diff is collapsed.
......@@ -47,13 +47,7 @@
"property_dict": {
"fixed": true,
"theme": "slapos-black",
"class_list": "override_header ",
"add_content": 0,
"section_list": ["last"],
"image": {
"src": "img/weinparis.png",
"alt": "WEINPARIS"
}
"title_i18n": "global_dict.hello"
},
"children": [{
"generate": "widget",
......@@ -63,48 +57,6 @@
},
"children": [
{"type":"a", "direct": {"href": "#global-user", "className":"responsive translate action"}, "attributes": {"data-rel":"panel", "data-action":"set_login", "data-icon":"heart", "data-i18n":"global_dict.login"}},
{"type":"a", "direct": {"href": "#basket", "className": "responsive translate"}, "attributes": {"data-i18n": "global_dict.basket", "data-icon": "shopping-cart"}}
]
}, {
"generate": "widget",
"type": "controlbar",
"property_dict": {
"class_list": "responsive ui-subheader"
},
"children": [
{
"generate": "widget",
"type": "form",
"property_dict": {
"class_list": "responsive",
"editable": true,
"secure": "default",
"secret_hash": "foo",
"public_key": "6Ldpb-oSAAAAAGwriKpk4ol1n4yjN_as6M4xv0zA"
},
"children": [{"type": "input", "direct": {"id": "product_search", "className": "translate"}, "attributes": {"type": "text", "data-theme": "slapos-white", "data-i18n": "[placeholder]global_dict.search_items", "data-action": "custom_search"}, "logic": {"clear": true, "action": {"action":"search", "icon": "search", "text_i18n": "global_dict.search_items"}, "add_label": false}},
{
"generate": "widget",
"type": "controlgroup",
"property_dict": {
"direction": "horizontal"
},
"children":[
{"type":"a", "direct": {"href": "#global-search", "className":"action translate"}, "attributes": {"data-iconpos":"notext", "data-rel":"panel", "data-action":"set_search", "data-href": "ui_panel_detail_search", "data-icon":"search-plus", "data-i18n":"global_dict.detail_search"}}
]
}, {
"generate": "widget",
"type": "controlgroup",
"property_dict": {
"direction": "horizontal"
},
"children":[
{"type":"a", "direct": {"href": "#global-search", "className":"action translate"}, "attributes": {"data-rel": "panel", "data-iconpos":"notext", "data-action":"set_filter", "data-icon":"filter", "data-i18n":"global_dict.filter"}},
{"type":"a", "direct": {"href": "#global-search", "className":"action translate"}, "attributes": {"data-rel": "panel", "data-iconpos":"notext", "data-action":"set_sorting", "data-icon":"sort", "data-i18n":"global_dict.sort"}}
]
}
]
}
]
}]
}, {
......@@ -132,7 +84,7 @@
"theme": "slapos-black",
"add_content": 0,
"section_list":["last"],
"title_i18n": "global_dict.account"
"title_i18n": "global_dict.hello"
},
"children":[{
"type": "a",
......@@ -146,73 +98,6 @@
}
}]
}]
}, {
"generate":"widget",
"type": "footer",
"property_dict": {
"theme": "slapos-black"
},
"children": [{
"generate": "widget",
"type": "controlbar",
"property_dict": {
"class_list": "span_2"
},
"children": [{
"generate": "widget",
"type": "form",
"property_dict": {
"class_list": "responsive custom_footer_form",
"editable": true,
"secure": "default",
"secret_hash": "foo",
"public_key": "6Ldpb-oSAAAAAGwriKpk4ol1n4yjN_as6M4xv0zA"
},
"children": [
{"type": "input", "direct": {"className": "required translate custom_sizing"}, "attributes": {"type": "text", "data-i18n": "[placeholder]global_dict.newsletter" }, "logic": {"clear": true, "action": {"action":"subscribe", "icon": "edit", "text_i18n": "global_dict.subscribe"}, "add_label": false, "wrap": true}},
{
"generate": "widget",
"type": "controlgroup",
"property_dict": {
"direction": "horizontal",
"class_list": "center"
},
"children": [
{"type": "a", "direct": {"href": "#", "className": "ui-icon-facebook ui-btn-icon-notext"}, "attributes": {"data-action": "like", "data-value": "facebook"}, "logic": {"text": "Facebook"}},
{"type": "a", "direct": {"href": "#", "className": "ui-icon-twitter ui-btn-icon-notext"}, "attributes": {"data-action": "like", "data-value": "twitter"}, "logic": {"text": "Twitter"}},
{"type": "a", "direct": {"href": "#", "className": "ui-icon-google-plus ui-btn-icon-notext"}, "attributes": {"data-action": "like", "data-value": "google-plus"}, "logic": {"text": "Google+"}}
]
}]
}]
}, {
"generate": "widget",
"type": "controlbar",
"property_dict": {
"class_list": "span_2"
},
"children": [{
"generate": "widget",
"type": "form",
"property_dict": {
"class_list": "responsive custom_footer_form_language",
"editable": true,
"secure": "default",
"secret_hash": "foo",
"public_key": "6Ldpb-oSAAAAAGwriKpk4ol1n4yjN_as6M4xv0zA"
},
"children": [{
"type": "select", "direct": {"id": "switch_language", "className": "action translate"}, "attributes": {"data-action":"translate", "data-icon": "flag-en"}, "logic": {"wrap": true, "wrapper_class_list": "flag", "label_i18n": "global_dict.language", "options": [{"value": "en-EN", "text_i18n":"global_dict.english", "selected": true}, {"value": "fr-FR", "text_i18n":"global_dict.french"}]}
}]
}]
}, {
"generate": "widget",
"type": "navbar",
"children": [
{"type": "a", "direct": {"href": "#", "className": "translate"}, "attributes": {"data-i18n": "global_dict.contact"}},
{"type": "a", "direct": {"href": "#", "className": "translate"}, "attributes": {"data-i18n": "global_dict.legal"}},
{"type": "a", "direct": {"href": "#", "className": "translate ui-btn ui-btn-icon-right ui-icon-angle-double-up"}, "attributes": {"data-i18n": "global_dict.scrollup"}}
]
}]
}]
}
]
......
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"property_dict": {
"theme": "slapos-white"
},
"title_i18n": "global_dict.hello",
"theme": "slapos-white",
"view_dict": {
"default": [
{
"generate": "widget",
"type": "controlbar",
"property_dict": {
"wrap": "section",
"class_list": "span_1"
},
"children": [{
"portal_type_source": "Portal Category",
"portal_type_title": "category",
"initial_query": {"query": "reference: 'product_group'", "include_docs": true, "select_list": ["title", "title_i18n", "_id"]},
"property_dict": {
"link": true,
"link_identifier": "_id",
"link_core": "product_module&query:group="
},
"scheme": [
{
"position": "center",
"field_list": [
{"field": "title"}
]
}
],
"children": [{
"generate": "widget",
"type": "controlgroup",
"property_dict": {
"dynamic": true,
"class_list": "center",
"direction": "horizontal",
"map_children": "listItem"
},
"children": []
}]
}]
},
{
"type": "h3",
"direct": {"className": "translate ui-content-header responsive"},
"attributes": {"data-i18n":"global_dict.bestseller"}
}, {
"portal_type_source": "Product",
"portal_type_title": "product",
"skip_total_records": true,
"initial_query": {"query": "subject: 'best'", "include_docs": true, "limit": [0,4], "select_list": ["currency", "_id", "brand", "description_short", "price", "default_image_path"]},
"property_dict": {
"link": true,
"link_identifier": "_id",
"link_core": "product_module"
},
"scheme": [
{
"position": "left",
"field_list": [
{"field": "default_image_path", "type":"image"}
]
}, {
"position": "center",
"field_list": [
{"field": "brand", "type": "h3", "mergeText": "description_short"},
{"field": "price", "type": "p", "format": {"type": "integer", "digits": 2}, "mergeText": "currency"}
]
}
],
"children": [{
"generate": "widget",
"type": "listview",
"property_dict": {
"class_list": "responsive",
"filter": "true",
"input": "#product_search",
"theme": "slapos-white",
"map_children": "listItem",
"dynamic": true
},
"children":[]
}]
}, {
"type": "h3",
"direct": {"className": "translate ui-content-header responsive"},
"attributes": {"data-i18n":"global_dict.newest"}
}, {
"portal_type_source": "Product",
"portal_type_title": "product",
"skip_total_records": true,
"initial_query": {"include_docs": true, "limit": [0,8], "sort_on": [["date_created", "descending"]], "select_list": ["currency", "_id", "brand", "description_short", "price", "default_image_path"]},
"property_dict": {
"link": true,
"link_identifier": "_id",
"link_core": "product_module",
"pagination": {
"class_list": "center",
"option_list": [
{"value": "8", "text": "8", "text_i18n":"global_dict.8"},
{"value": "16", "text": "16", "text_i18n":"global_dict.16"},
{"value": "32", "text": "32", "text_i18n":"global_dict.32"},
{"value": "64", "text": "64", "text_i18n":"global_dict.64"}
]
}
},
"scheme": [
{
"position": "left",
"field_list": [
{"field": "default_image_path", "type":"image"}
]
}, {
"position": "center",
"field_list": [
{"field": "brand", "type": "h3", "mergeText": "description_short"},
{"field": "price", "type": "p", "format": {"type": "integer", "digits": 2}, "mergeText": "currency"}
]
}
],
"children": [{
"generate": "widget",
"type": "listview",
"property_dict": {
"class_list": "responsive",
"filter": "true",
"input": "#product_search",
"theme": "slapos-white",
"map_children": "listItem",
"dynamic": true
},
"children":[]
}]
}
]
"default": []
}
}
]
}
\ No newline at end of file
}
{
"property_dict": {},
"children": [
{
"type": "div",
"direct": {"className": "logo_wrap"},
"children": [
{
"type": "img",
"direct": {"src": "img/slapos.png", "alt": "SlapOS logo", "className": "translate"},
"attributes": {"data-i18n": "[alt]global_dict.slapos_logo"}
}
]
}, {
"type": "br"
}, {
"type": "p",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "global_dict.sign_in"}
}, {
"generate": "widget",
"type": "controlgroup",
"property_dict": {},
"children": [
{"type": "a", "direct":{"className":"signin_google", "href":"//slapos.vifib.com/intent/login/google"}, "attributes":{"rel": "external", "data-icon":"google-plus-sign", "data-iconpos":"left", "data-reference": "google"}, "logic": {"text":"Google", "setParam": ["callback_url", "location"]}},
{"type": "a", "direct":{"className":"signin_fb", "href":"//slapos.vifib.com/intent/login/facebook"}, "attributes":{"rel":"external", "data-icon":"facebook-sign", "data-iconpos":"left", "data-reference": "facebook"}, "logic": {"text":"Facebook", "setParam": ["callback_url", "location"]}}
]
}, {
"type": "p",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "global_dict.classic_login"}
}, {
"type": "a",
"direct": {"className": "translate ui-btn ui-icon-lock ui-btn-icon-left ui-shadow ui-corner-all", "href": "//slapos.vifib.com/traditional_login_form"},
"attributes": {"data-i18n": "global_dict.classic_slapos"}
}
]
}
......@@ -5,30 +5,43 @@
"generate": "widget",
"type": "page",
"property_dict": {
"title_i18n": "portal_type_dict.product_dict.text_dict.products",
"title": "Test Page Module",
"title_i18n": "portal_type_dict.test_page_dict.text_dict.title",
"theme": "slapos-white"
},
"view_dict": {
"default": [
{"href": "product_overview"}
]
"default": [{
"href": "test_page_overview"
}, {
"generate": "widget",
"type": "panel",
"property_dict": {
"id": "test_page_detail_search",
"theme": "slapos-white",
"close": true
},
"children": []
}
],
"new": [{
"href": "test_page_new"
}]
}
},
{
}, {
"generate": "widget",
"type": "page",
"property_dict": {
"title_i18n": "portal_type_dict.product_dict.text_dict.products",
"title": "Test Page",
"title_i18n": "portal_type_dict.test_page_dict.text_dict.page",
"theme": "slapos-white"
},
"view_dict": {
"default": [
{"href": "product_carousel"},
{"href": "product_view"},
{"href": "product_variations"},
{"href": "product_sizes"}
]
"default": [{
"generate": "gadget",
"type":"fieldlist",
"href": "test_page_view"
}]
}
}
]
}
\ No newline at end of file
}
{
"portal_type_source": "Product Individual Variation",
"portal_type_title": "product_individual_variation",
"skip_total_records": true,
"initial_query": {"include_docs": true},
"property_dict": {
"initial_query_url_identifier": "reference",
"spawn_on": "image_list",
"wrap_gadget": 2
},
"scheme": [{
"position": "content",
"field_list": [{"field": "image_list", "type": "image"}]
}],
"children": [{
"generate": "widget",
"type": "carousel",
"property_dict": {
"corners": true,
"class_list": "custom_preview",
"handles": true,
"captions": true,
"captiontheme": "slapos-white",
"captionpos": "bottom",
"map_children": "listItem",
"dynamic": true
},
"children": []
}]
}
\ No newline at end of file
This diff is collapsed.
{
"_id": {
"type": "StringField",
"widget": {
"id": "_id",
"title_i18n": "portal_type_dict.product_individual_variation.field_dict._id.title",
"description_i18n": "portal_type_dict.product_individual_variation.field_dict._id.description",
"alternate_name": "_id",
"default_value": null,
"css_class": null,
"hidden": false,
"display_width": 30,
"maximum_input": null,
"extra": {}
},
"properties": {
"enabled": true,
"editable": false,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"messages": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input is required but no input given.",
"i18n": "validation_dict.required"
},
"too_long": {
"message":"Too much input given.",
"i18n": "validation_dict.too_much_input"
}
}
},
"title": {
"type": "StringField",
"widget": {
"id": "title",
"title_i18n": "portal_type_dict.product_individual_variation.field_dict.title.title",
"description_i18n": "portal_type_dict.product_individual_variation.field_dict.title.description",
"alternate_name": "title",
"default_value": null,
"css_class": null,
"hidden": false,
"display_width": 30,
"maximum_input": null,
"extra": {}
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"messages": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input is required but no input given.",
"i18n": "validation_dict.required"
},
"too_long": {
"message":"Too much input given.",
"i18n": "validation_dict.too_much_input"
}
}
},
"title_i18n": {
"type": "StringField",
"widget": {
"id": "title_i18n",
"title_i18n": "portal_type_dict.product_individual_variation.field_dict.title_i18n.title",
"description_i18n": "portal_type_dict.product_individual_variation.field_dict.title_i18n.description",
"alternate_name": "title_i18n",
"default_value": null,
"css_class": null,
"hidden": false,
"display_width": 30,
"maximum_input": null,
"extra": {}
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"messages": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input is required but no input given.",
"i18n": "validation_dict.required"
},
"too_long": {
"message":"Too much input given.",
"i18n": "validation_dict.too_much_input"
}
}
},
"reference": {
"type": "StringField",
"widget": {
"id": "reference",
"title_i18n": "portal_type_dict.product_individual_variation.field_dict.reference.title",
"description_i18n": "portal_type_dict.product_individual_variation.field_dict.reference.description",
"alternate_name": "reference",
"default_value": null,
"css_class": null,
"hidden": false,
"display_width": 30,
"maximum_input": null,
"extra": {}
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"messages": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input is required but no input given.",
"i18n": "validation_dict.required"
},
"too_long": {
"message":"Too much input given.",
"i18n": "validation_dict.too_much_input"
}
}
},
"variation_name": {
"type": "StringField",
"widget": {
"id": "variation_name",
"title_i18n": "portal_type_dict.product_individual_variation.field_dict.variation_name.title",
"description_i18n": "portal_type_dict.product_individual_variation.field_dict.variation_name.description",
"alternate_name": "variation_name",
"default_value": null,
"css_class": null,
"hidden": false,
"display_width": 30,
"maximum_input": null,
"extra": {}
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"messages": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input is required but no input given.",
"i18n": "validation_dict.required"
},
"too_long": {
"message":"Too much input given.",
"i18n": "validation_dict.too_much_input"
}
}
},
"image_list": {
"type":"MultiListField",
"widget": {
"id": "image_list",
"title_i18n": "portal_type_dict.person_dict.field_dict.image_list.title",
"description_i18n": "portal_type_dict.person_dict.field_dict.image_list.description",
"alternate_name": "image_list",
"default_value": null,
"css_class": null,
"hidden": null,
"items": null,
"size": null,
"view_separator": null,
"extra": null,
"extra_per_item": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": null,
"unicode": null
},
"message": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input required but not found.",
"i18n": "validation_dict.required"
},
"unknown_selection": {
"message": "You selected an item that was not in the list.",
"i18n": "validation_dict.unknown_selection"
}
}
}
}
\ No newline at end of file
This diff is collapsed.
{
"property_dict":{},
"children": []
}
\ No newline at end of file
{
"portal_type_source": "Product",
"portal_type_title": "product",
"skip_total_records": true,
"initial_query": {"include_docs": true, "limit": [0,16], "select_list": ["currency", "_id", "brand", "description_short", "price", "default_image_path"]},
"property_dict": {
"link": true,
"link_identifier": "_id",
"link_core": "product_module",
"pagination": {
"class_list": "center",
"option_list": [
{"value": "8", "text": "8", "text_i18n":"global_dict.8"},
{"value": "16", "text": "16", "text_i18n":"global_dict.16"},
{"value": "32", "text": "32", "text_i18n":"global_dict.32"},
{"value": "64", "text": "64", "text_i18n":"global_dict.64"}
]
}
},
"scheme": [
{
"position": "left",
"field_list": [
{"field": "default_image_path", "type":"image"}
]
}, {
"position": "center",
"field_list": [
{"field": "brand", "type": "h3", "mergeText": "description_short"},
{"field": "price", "type": "p", "format": {"type": "integer", "digits": 2}, "mergeText": "currency"}
]
}
],
"children": [{
"generate": "widget",
"type": "listview",
"property_dict": {
"class_list": "responsive",
"theme": "slapos-white",
"map_children": "listItem",
"dynamic": true
},
"children":[]
}]
}
\ No newline at end of file
This diff is collapsed.
{
"portal_type_source": "Product",
"portal_type_title": "product",
"skip_total_records": true,
"initial_query": {"include_docs": true},
"property_dict": {
"initial_query_url_identifier": "_id",
"spawn_on": "size_list",
"wrap_gadget": 2
},
"scheme":[{
"position": "center",
"field_list":[
{"field": "size_list", "type": "span"}
]
}, {
"position": "right",
"field_list": [
{"field": "_id", "setKey": "id", "type": "radio"}
]
}],
"children": [{
"type": "h3",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "global_dict.choose_size"}
}, {
"generate": "widget",
"type": "listview",
"property_dict": {
"inset": "true",
"class_list": "custom_force_position",
"map_children": "listItem",
"dynamic": true
},
"children":[]
}]
}
\ No newline at end of file
{
"portal_type_source": "Product Individual Variation",
"portal_type_title": "product_individual_variation",
"skip_total_records": true,
"initial_query": {"include_docs": true},
"property_dict": {
"initial_query_url_identifier": "reference",
"wrap_gadget": 2
},
"scheme":[{
"position": "center",
"field_list":[
{"field": "title", "type": "h3"}
]
}, {
"position": "right",
"field_list": [
{"field": "_id", "setKey": "id", "type": "radio"}
]
}],
"children": [{
"type": "h3",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "global_dict.choose_color"}
}, {
"generate": "widget",
"type": "listview",
"property_dict": {
"inset": "true",
"class_list": "custom_force_position",
"map_children": "listItem",
"dynamic": true
},
"children":[]
}]
}
\ No newline at end of file
{
"portal_type_source": "Product",
"portal_type_title": "product",
"skip_total_records": true,
"initial_query": {"include_docs": true, "limit": [0,1]},
"property_dict": {
"initial_query_url_indentifier": "_id",
"direct_map": true,
"wrap_gadget": 2
},
"children": [{
"generate": "widget",
"type": "controlbar",
"property_dict": {
"dynamic": true
},
"children": [
{
"type": "h3",
"direct": {"className": "product_headline"},
"logic": {"setParam": [["text", "brand"]]}
},
{
"type": "p",
"direct": {"className": "product_headline_short"},
"logic": {"setParam": [["text", "description_short"]]}
},
{
"type": "p",
"direct": {"className": "product_headline_price ui-li-aside"},
"logic": {"setParam": [["text", "price"], ["text", "currency"]]}
},
{
"type": "hr",
"direct": {"className": "ui-hr"}
},
{
"type": "p",
"direct": {"className": "product_desc ui-content-element"},
"logic": {"setParam": [["text", "description_long"]]}
},
{
"type": "hr",
"direct": {"className": "ui-hr"}
}
]
}]
}
\ No newline at end of file
{
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "header",
"property_dict": {
"id": "search-header-detail",
"theme": "slapos-black",
"add_content": 0,
"section_list":["last"],
"title_i18n": "global_dict.detail_search"
},
"children":[{
"type": "a",
"direct": {
"href": "#",
"className": "ui-panel-close ui-icon-remove ui-btn ui-btn-icon-notext ui-shadow ui-corner-all"
}
}]
}, {
"generate": "widget",
"type": "collapsible",
"property_dict": {
"text_i18n": "global_dict.brands",
"title_i18n": "global_dict.click_brands",
"collapsed_icon": "caret-down",
"expanded_icon": "caret-up"
},
"children": [{
"generate": "widget",
"type": "form",
"property_dict": {
"class_list": "responsive",
"editable": true,
"secure": "default",
"secret_hash": "foo",
"public_key": "6Ldpb-oSAAAAAGwriKpk4ol1n4yjN_as6M4xv0zA"
},
"children": [{
"type": "input",
"direct": {"className": "action translate"},
"attributes": {"type": "submit", "data-column": "brand_id", "data-i18n": "[value]global_dict.search_brands", "data-action": "custom_checkbox_search"},
"logic": {"wrapper_class_list": " skim_button ui-btn-icon-right ui-icon-search "}
}, {
"portal_type_source": "Portal Category",
"portal_type_title": "category",
"initial_query": {"query": "reference: 'sub_websection'", "include_docs": true, "select_list": ["_id", "title", "title_i18n"]},
"property_dict": {
"search": {
"no_wrap": true,
"text_i18n": "global_dict.filter"
}
},
"scheme": [
{
"position": "center",
"field_list": [
{"field": "title"}
]
}, {
"position": "right",
"field_list": [
{"field": "_id", "setKey": "id", "type": "check"}
]
}
],
"children": [{
"generate": "widget",
"type": "listview",
"property_dict": {
"theme": "slapos-white",
"map_children": "listItem",
"dynamic": true
},
"children": []
}]
}]
}]
}, {
"generate": "widget",
"type": "collapsible",
"property_dict": {
"text_i18n": "global_dict.categories",
"title_i18n": "global_dict.click_categories",
"collapsed_icon": "caret-down",
"expanded_icon": "caret-up"
},
"children": [{
"type": "input",
"direct": {"className": "action translate"},
"attributes": {"type": "submit", "data-column": "category", "data-i18n": "[value]global_dict.search_categories", "data-action": "custom_checkbox_search"},
"logic": {"wrapper_class_list": " skim_button ui-btn-icon-right ui-icon-search "}
}, {
"portal_type_source": "Portal Category",
"portal_type_title": "category",
"initial_query": {"query": "reference: 'product_category'", "include_docs": true, "select_list": ["_id", "title", "title_i18n"]},
"property_dict": {
"search": {
"no_wrap": true,
"text_i18n": "global_dict.filter"
}
},
"scheme": [
{
"position": "center",
"field_list": [
{"field": "title"}
]
}, {
"position": "right",
"field_list": [
{"field": "_id", "setKey": "id", "type": "check"}
]
}
],
"children": [{
"generate": "widget",
"type": "listview",
"property_dict": {
"theme": "slapos-white",
"map_children": "listItem",
"dynamic": true
},
"children": []
}]
}
]
}
]
}
\ No newline at end of file
{
"children":[
{
"generate": "widget",
"type": "header",
"property_dict": {
"id": "search-header-groups",
"theme": "slapos-black",
"add_content": 0,
"section_list":["last"],
"title_i18n": "global_dict.categories"
},
"children":[{
"type": "a",
"direct": {
"href": "#",
"className": "ui-panel-close ui-icon-remove ui-btn ui-btn-icon-notext ui-shadow ui-corner-all"
}
}]
},
{
"portal_type_source": "Portal Category",
"portal_type_title": "category",
"initial_query": {"query": "reference: 'product_group'", "include_docs": true, "select_list": ["_id", "title", "title_i18n"]},
"property_dict": {},
"scheme": [
{
"position": "center",
"field_list": [
{"field": "title"}
]
}, {
"position": "right",
"field_list": [
{"field": "_id", "setKey": "id", "type": "check"}
]
}
],
"children": [{
"generate": "widget",
"type": "form",
"property_dict": {
"editable": true,
"secure": "default",
"secret_hash": "foo",
"public_key": "6Ldpb-oSAAAAAGwriKpk4ol1n4yjN_as6M4xv0zA"
},
"children": [{
"type": "input",
"direct": {"className": "action translate"},
"attributes": {"type": "submit", "data-column": "group", "data-i18n": "[value]global_dict.search_categories", "data-action": "custom_checkbox_search"},
"logic": {"wrapper_class_list": " skim_button ui-btn-icon-right ui-icon-search "}
}]
},{
"generate":"widget",
"type": "listview",
"property_dict": {
"theme": "slapos-white",
"map_children": "listItem",
"dynamic": true
},
"children": []
}]
}
]
}
\ No newline at end of file
{
"property_dict": {},
"children":[{
"generate": "widget",
"type": "header",
"property_dict": {
"id": "search-header-sort",
"theme": "slapos-black",
"add_content": 0,
"section_list":["last"],
"title_i18n": "global_dict.sort"
},
"children":[{
"type": "a",
"direct": {
"href": "#",
"className": "ui-panel-close ui-icon-remove ui-btn ui-btn-icon-notext ui-shadow ui-corner-all"
},
"attributes": {
"data-enhanced": true,
"data-rel": "close"
}
}]
}, {
"generate": "widget",
"type": "listview",
"property_dict": {
"theme": "slapos-white",
"map_children": "listItem"
},
"children": [
{"type": "item", "href": "#product_module&sort:date_created=descending", "center": [{"type": "h1", "text_i18n":"global_dict.latest"}]},
{"type": "item", "href": "#product_module&sort:price=descending", "center": [{"type": "h1","text_i18n":"global_dict.lowest"}]},
{"type": "item", "href": "#product_module&sort:price=ascending", "center": [{"type": "h1","text_i18n":"global_dict.highest"}]}
]
}
]
}
\ No newline at end of file
This diff is collapsed.
==============================================================================
Draft API
==============================================================================
------------------------------------------------------------------------------
sections:
------------------------------------------------------------------------------
> Info:
> A section defines a section of content
> Syntax:
=============================================================
type Type of element (fieldlist, tabs, listbox, ...)
span "Columns" to span - 1/2/more
gadget Id of gadget to load
=============================================================
> Notes:
> Types must have a construct[Type] method to build the type of element
> The gadget configuration defines the "instance" of the type
> To add own types add construct[Type] method
> Example JSON:
[
{"type": "fieldlist", "span": 2, "gadget": "bar"},
{"type": "fieldlist", "span": 1, "gadget": "baz"},
{"type": "fieldlist", "span": 1, "gadget": "bam"},
{"type": "tabs", "span": 2, "gadget": "foo"},
{"type": "listbox": "span": 2, "gadget": "zzz"}
]
> Example HTML:
<div class="span_2">
<div class="gadget" data-gadget-type="fieldlist" data-gadget-id="bar"></div>
</div>
<div class="span_1">
<div class="gadget" data-gadget-type="fieldlist" data-gadget-id="baz"></div>
</div>
<div class="span_1">
<div class="gadget" data-gadget-type="fieldlist" data-gadget-id="bam"></div>
</div>
<div class="span_2">
<div class="gadget" data-gadget-type="tabs" data-gadget-id="foo"></div>
</div>
<div class="span_2">
<div class="gadget" data-gadget-type="listbox" data-gadget-id="zzz"></div>
</div>
------------------------------------------------------------------------------
Pages:
------------------------------------------------------------------------------
> Info:
> A module can have one ore more layouts corresponding to pages
> Every hierarchy level needs a layout (one for Persons, on for Person, etc)
> A page must have at least one "default" section
>
> Syntax:
=============================================================
[page_name] link parameter(s) to determine page (?container=a&palette=x)
title Page title to set
title_i18n Client-side translation lookup value
theme Page theme (handles all JQM CSS)
fixed Fix header/footer for this page (default to true)
sections See "sections"
=============================================================
> Example JSON (container > palette > box > items > item = 5 hierarchies)
{
"default": {
"title": "Container",
"theme": "erp5_blue",
"fixed": true,
"title_i18n": null,
"sections": [{"type": "listbox", "span": 2, "gadget": "container_a"}]
},
"palettes": {
"title": "Palette",
"title_i18n": null,
"sections": [{"type": "listbox", "span": 2, "gadget": "palette_content_x"}]
},
"boxes": {
"title": "Box",
"title_i18n": null,
"sections": [{"type": "listbox", "span": 2, "gadget": "box_content_x"}]
},
"items": {
"title": "Items",
"title_i18n": null,
"sections": [{"type": "listbox", "span": 2, "gadget": "box_items_x"}]
},
"item": {
"title": "Item",
"title_i18n": null,
"sections": [
{"type": "fieldlist", "span": 1, "gadget": "item_foo"},
{"type": "fieldlist", "span": 1, "gadget": "item_foo_seller"},
{"type": "listbox", "span": 2, "gadget": "item_ingredients"}
]
}
}
LIST:
"generate": "gadget",
"type": "listview",
"class_list": "",
"theme": "slapos-black",
"property_dict": {
"inset": true,
"filter": true,
"reveal": true,
"input": "#bar",
"divider-theme": "slapos-white",
"autodividers": true,
"count-theme": "slapos-white",
},
"id": null,
"children": [
// sample item with all options
{
"type": "item",
"external": true,
"href": "index.html",
"left": {
"icon": "foo",
"img": "http://www.xyz.com/img/foo.png"
},
"center": {
"count": 3689,
"aside": [
{"type":"p", "text":"foo", "text_i18n":null}
],
"text": [
{"type":"h1", "text":"Persons to Validate", "text_i18n":""}
]
},
"right": {
"icon": "foo/false",
"radio": true,
"checkbox": true,
"action": "foo",
"href": "http://www.foo.com",
"external": true
}
]
POPUP:
{
"generate": "widget",
"type":"Popup",
"class_list": "",
"theme": "",
"id": null,
"property_dict": {
"overlay-theme": null,
"transition": "fade",
"position-to": "window",
"tolerance": "30,30,30,30",
"shadow": true
},
"element": null,
"children": []
}
HEADER:
{
"generate": "widget",
"type": "Header",
"class_list": "",
"theme": "",
"id": null,
"property_dict": {
"title": "",
"title_i18n":"",
"fixed": true
},
"children": [
<<examples>>
{
"type":"img",
"direct": {
"src": "http://www.foo.com/bar.jpg",
"alt": "foo",
"alt_i18n": "bar"
}
}, {
"generate": "widget",
"type": "controlgroup",
"class_list": null,
"id": null,
"form": null,
"theme": null,
"children": [
{"type": "a", "direct": {}, "attributes": {}, "logic": {}}
]
}
]
}
CONTROLGROUP:
{
"generate": "controlgroup",
"id": null,
"class_list": null,
"theme": null,
"property_dict": {
"direction": "horizontal"
},
"children": [
{"type":a, "direct": {}, "attributes": {}, "logic": {}}
]
}
FOOTER:
{
"generate":"widget",
"type": "footer",
"class_list": null,
"id": "null",
"theme": "slapos-white",
"property_dict": {
"fixed": true
},
"children": []
}
NAVBAR:
{
"generate": "widget",
"type": "navbar",
"class_list": null,
"id": null,
"theme": "slapos-white",
"property_dict": {},
"children":[]
}
PANEL:
{
"generate": "widget",
"type": "panel",
"class_list": "",
"id": "global_panel",
"theme": "slapos-black",
"property_dict": {
"close": true
},
"children": []
}
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