Commit 7aeea5c1 authored by Sven Franck's avatar Sven Franck

global: add global configuration JSON

parent dc679ffe
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
}, },
"scheme": [{ "scheme": [{
"property_dict": { "property_dict": {
"use_browser_language": true,
"lng": "en-EN", "lng": "en-EN",
"load": "current", "load": "current",
"fallbackLng": "en-EN", "fallbackLng": "en-EN",
...@@ -19,13 +20,6 @@ ...@@ -19,13 +20,6 @@
}], }],
"children": [] "children": []
}, },
{
"type": "status_dict",
"property_dict": {
"loader": true,
"loader_theme": "slapos-black"
}
},
{ {
"type": "path_dict", "type": "path_dict",
"property_dict": { "property_dict": {
...@@ -44,87 +38,54 @@ ...@@ -44,87 +38,54 @@
"generate": "widget", "generate": "widget",
"type": "panel", "type": "panel",
"property_dict": { "property_dict": {
"id": "global-search",
"theme": "slapos-black", "theme": "slapos-black",
"close": true "position": "left"
}, },
"children": [{ "children": [{
"generate": "widget", "generate": "widget",
"type": "listview", "type": "listview",
"property_dict": { "property_dict": {
"class_list": null, "theme": "slapos-white",
"theme": "slapos-black",
"filter":"true",
"input": "#global-search",
"map_children": "listItem" "map_children": "listItem"
}, },
"children": [ "children": [
{"type": "item", "href": "#dashboard", "left": {"icon": "home"}, "center": {"text": [{"type": "h1", "text": "Home", "text_i18n": "global_dict.home"}, {"type": "p", "text": "Your Dashboard", "text_i18n": "global_dict.dashboard"}]}}, {"type": "item", "href": "#suits", "center": {"text": [{"type": "h1", "text": "Jumpsuits", "text_i18n": "global_dict.suits"}]}},
{"type": "item", "href": "#person_module", "left": {"icon":"user"}, "center": {"text": [{"type": "h1", "text": "My Account", "text_i18n": "global_dict.person"}, {"type": "p", "text": "Administration of your personal info", "text_i18n": "global_dict.person_subtitle"}]}}, {"type": "item", "href": "#sets", "center": {"text": [{"type":"h1", "text": "Sets", "text_i18n": "global_dict.set"}]}},
{"type": "item", "href": "#invoice_module", "left": {"icon":"file-text"}, "center": {"text": [{"type":"h1", "text": "My Invoices", "text_i18n": "global_dict.invoices"}, {"type": "p", "text": "Administration of your invoices", "text_i18n":"global_dict.invoices_subtitle"}]}}, {"type": "item", "href": "#swimsuits", "center": {"text": [{"type":"h1", "text": "Swimsuits", "text_i18n": "global_dict.swimsuit"}]}},
{"type": "item", "href": "#computer_module", "left": {"icon":"hdd-o"}, "center": {"text": [{"type":"h1", "text": "My Servers", "text_i18n": "global_dict.servers"}, {"type":"p", "text": "Administration of your Servers", "text_i18n": "global_dict.servers_subtitle"}]}}, {"type": "item", "href": "#dresses", "center": {"text": [{"type": "h1","text": "Dresses", "text_i18n":"global_dict.dress"}]}},
{"type": "item", "href": "#service_module", "left": {"icon":"cogs"}, "center": {"text": [{"type": "h1","text": "My Services", "text_i18n":"global_dict.services"},{"type": "p", "text": "Administration of your Services", "text_i18n":"global_dict.services_subtitle"}]}}, {"type": "item", "href": "#jackets", "center": {"text": [{"type": "h1","text": "Jackets/Coats", "text_i18n":"global_dict.jacket_coat"}]}},
{"type": "item", "href": "#network_module", "left": {"icon":"sitemap"}, "center": {"text":[{"type": "h1", "text": "My Networks", "text_i18n": "global_dict.networks"},{"type": "p", "text":"Administration of your networks", "text_i18n":"global_dict.networks_subtitle"}]}}, {"type": "item", "href": "#knitwear", "center": {"text":[{"type": "h1", "text": "Knitwear", "text_i18n": "global_dict.knitwear"}]}},
{"type": "item", "href": "#monitoring", "left": {"icon":"bar-chart-o"}, "center": {"text":[{"type":"h1", "text": "Monitoring", "text_i18n":"global_dict.monitoring"},{"type":"p", "text": "Server Status Reports", "text_i18n": "global_dict.monitoring_subtitle"}]}}, {"type": "item", "href": "#shirts", "center": {"text":[{"type":"h1", "text": "Shirts", "text_i18n":"global_dict.shirt"}]}},
{"type": "item", "href": "#ticket_module", "left": {"icon":"question"}, "center": {"text": [{"type": "h1", "text": "Help", "text_i18n": "global_dict.help"},{"type": "p", "text": "Contact Customer Support", "text_i18n": "global_dict.help_subtitle"}]}}, {"type": "item", "href": "#skirts", "center": {"text": [{"type": "h1", "text": "Skirts", "text_i18n": "global_dict.skirt"}]}},
{"type": "item", "href": "#about", "left": {"icon": "book"}, "center": {"text": [{"type": "h1", "text": "About", "text_i18n": "global_dict.about"}, {"type": "p", "text": "Request further information", "text_i18n": "global_dict.about_subtitle"}]}} {"type": "item", "href": "#tops", "center": {"text": [{"type":"h1", "text": "Tops", "text_i18n": "global_dict.top"}]}},
{"type": "item", "href": "#trousers", "center": {"text": [{"type":"h1", "text": "Trousers", "text_i18n": "global_dict.trouser"}]}},
{"type": "item", "href": "#tshirt", "center": {"text": [{"type": "h1","text": "T-Shirts", "text_i18n":"global_dict.tshirt"}]}},
{"type": "item", "href": "#belts", "center": {"text":[{"type": "h1", "text": "Belts", "text_i18n": "global_dict.belt"}]}},
{"type": "item", "href": "#scarves", "center": {"text":[{"type":"h1", "text": "Scarves", "text_i18n":"global_dict.scarf"}]}},
{"type": "item", "href": "#wallets", "center": {"text": [{"type": "h1","text": "Wallets", "text_i18n":"global_dict.wallet"}]}},
{"type": "item", "href": "#hangbags", "center": {"text":[{"type": "h1", "text": "Handbags", "text_i18n": "global_dict.sac"}]}},
{"type": "item", "href": "#jewellry", "center": {"text":[{"type":"h1", "text": "Jewellry", "text_i18n":"global_dict.jewels"}]}}
] ]
}, {
"generate": "widget",
"type": "listview",
"property_dict": {
"class_list": null,
"theme": "slapos-black",
"map_children": "listItem"
},
"children": [
{"type": "divider", "center": {"text": [{"type": "h1", "text": "Development", "text_i18n":"global_dict.dev"}]}}
]
}, {
"generate": "widget",
"type": "collapsible",
"property_dict": {
"theme": "slapos-black",
"content_theme": "slapos-black",
"text": "Test",
"text_i18n": "global_dict.test",
"inset": false,
"collapsed_icon": "dashboard"
},
"children": [{
"generate": "widget",
"type": "listview",
"property_dict": {
"class_list": null,
"theme": "slapos-black",
"map_children": "listItem"
},
"children": [
{"type": "item", "href": "#test_page_module", "left": {"icon": "file-o"}, "center": {"text": [{"type": "h1", "text": "Pages", "text_i18n": "global_dict.pages"}, {"type": "p", "text": "Create and run test pages locally", "text_i18n": "global_dict.test_pages"}]}}
]
}]
}, {
"type": "a",
"direct": {"className": "unenhanced ui-btn", "href":"http://nexedi.com", "external": true },
"attributes": {"data-i18n": "global_dict.nexedi"},
"logic": {"text": "Nexedi 2013"}
}] }]
}, { }, {
"generate": "widget", "generate": "widget",
"type": "popup", "type": "panel",
"property_dict":{ "property_dict": {
"class_list": "popup single ui-content", "id": "global-user",
"theme": "slapos-white", "theme": "slapos-black",
"shadow": true, "position": "right"
"overlay_theme": "slapos-black" },
} "children": []
}, { }, {
"generate": "widget", "generate": "widget",
"type": "header", "type": "header",
"property_dict": { "property_dict": {
"theme": "slapos-white", "theme": "slapos-white",
"fixed": true, "image": {
"title": "", "src": "http://www.weinparis.com/weinparis_image/logo.jpg",
"title_i18n": "global_dict.slapos" "alt": "WEINPARIS"
}
}, },
"children": [{ "children": [{
"generate": "widget", "generate": "widget",
...@@ -133,7 +94,7 @@ ...@@ -133,7 +94,7 @@
"direction": "horizontal" "direction": "horizontal"
}, },
"children": [ "children": [
{"type":"a", "direct": {"href": "#global-panel", "className":"responsive translate"}, "attributes": {"data-rel":"panel", "data-icon":"bars", "data-i18n":"global_dict.menu"},"logic": {"text":"Menu"}} {"type":"a", "direct": {"href": "#global-search", "className":"responsive translate"}, "attributes": {"data-rel":"panel", "data-icon":"bars", "data-i18n":"global_dict.search"},"logic": {"text":"Search"}}
] ]
},{ },{
"generate": "widget", "generate": "widget",
...@@ -142,7 +103,91 @@ ...@@ -142,7 +103,91 @@
"direction": "horizontal" "direction": "horizontal"
}, },
"children": [ "children": [
{"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.login"}, "logic": {"text":"Login"}} {"type":"a", "direct": {"href": "#global-user", "className": "responsive action translate flag"}, "attributes": {"data-rel": "panel", "data-icon":"flag-fr", "data-action":"set_translation", "data-value":"en-EN", "data-i18n": "global_dict.english"}, "logic": {"text": "English"}},
{"type":"a", "direct": {"href": "#global-user", "className":"responsive action translate"}, "attributes": {"data-rel":"panel", "data-action":"set_login", "data-icon":"user", "data-i18n":"global_dict.login"}, "logic": {"text":"Login"}},
{"type":"a", "direct": {"href": "#basket", "className": "responsive translate"}, "attributes": {"data-i18n": "global_dict.basket", "data-icon": "basket"}, "logic": {"text": "Basket"}}
]
}, {
"generate": "widget",
"type": "controlbar",
"property_dict": {
"class_list": "responsive"
},
"children": [
{
"generate": "widget",
"type": "controlgroup",
"property_dict": {
"direction": "horizontal",
"class_list": "responsive"
},
"children": [
{"type": "a", "direct": {"href": "#brands", "className": "translate"}, "attributes": {"data-i18n": "global_dict.brands"}, "logic": {"text": "Brands"}},
{"type": "a", "direct": {"href": "#new", "className": "translate"}, "attributes": {"data-i18n": "global_dict.new"}, "logic": {"text": "New Arrivals"}},
{"type": "a", "direct": {"href": "#sales", "className": "translate"}, "attributes": {"data-i18n": "global_dict.sales"}, "logic": {"text": "Sales"}}
]
},
{
"generate": "widget",
"type": "controlgroup",
"property_dict": {
"direction": "horizontal",
"class_list": "responsive"
},
"children": [
{"type": "a", "direct": {"href": "#apparal", "className": "translate"}, "attributes": {"data-i18n":"global_dict.apparal"}, "logic": {"text": "Apparel"}},
{"type": "a", "direct": {"href": "#accessoris", "className": "translate"}, "attributes": {"data-i18n":"global_dict.acccessories"}, "logic": {"text": "Accessories"}},
{"type": "a", "direct": {"href": "#shoes", "className": "translate"}, "attributes": {"data-i18n":"global_dict.shoes"}, "logic": {"text":"shoes"}}
]
}
]
}]
}, {
"generate":"widget",
"type": "footer",
"property_dict": {
"fixed": false,
"theme": "slapos-black"
},
"children": [{
"generate": "widget",
"type": "controlbar",
"property_dict": {
"class_list": "responsive"
},
"children": [{
"generate": "widget",
"type": "form",
"property_dict": {
"class_list": "responsive",
"map_children": "formItem",
"editable": true,
"secure": "default",
"secret_hash": "foo",
"public_key": "6Ldpb-oSAAAAAGwriKpk4ol1n4yjN_as6M4xv0zA"
},
"children": [
{"type": "input", "direct": {"className": "required translate"}, "attributes": {"type": "text", "data-i18n": "[placeholder]global_dict.newsletter" }, "logic": {"clear": true, "action": {"action":"subscribe", "icon": "edit", "text": "Subscribe", "text_i18n": "global_dict.subscribe"}}, "wrap": true}
]
}, {
"generate": "widget",
"type": "controlgroup",
"property_dict": {
"direction": "horizontal"
},
"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": "navbar",
"children": [
{"type": "a", "direct": {"href": "#contact", "className": "translate"}, "attributes": {"data-i18n": "global_dict.contact"}, "logic": {"text":"Contact"}},
{"type": "a", "direct": {"href": "#legal", "className": "translate"}, "attributes": {"data-i18n": "global_dict.legal"}, "logic": {"text": "Legal"}},
{"type": "a", "direct": {"href": "#", "className": "ui-icon-caret-u translate"}, "attributes": {"data-i18n":"global_dict.top", "data-action": "scroll_top"}, "logic": {"text":"Top"}}
] ]
}] }]
}] }]
......
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