{
"pages": [
{
"name": "home",
"title": "Saltcorn plugin and pack store",
"layout": {
"above": [
{
"type": "container",
"bgType": "None",
"hAlign": "left",
"vAlign": "top",
"bgColor": "#ffffff",
"contents": {
"type": "blank",
"block": true,
"contents": "Saltcorn plugins and packs",
"textStyle": "h1"
},
"imageSize": "contain",
"textColor": "#ffffff",
"borderStyle": "solid"
},
{
"type": "line_break"
},
{
"type": "container",
"bgType": "Color",
"hAlign": "left",
"vAlign": "top",
"bgColor": "#dcdcdc",
"contents": {
"above": [
{
"type": "blank",
"contents": "Plugins",
"textStyle": "h4"
},
{
"type": "line_break"
},
{
"type": "blank",
"block": true,
"contents": "These plugins can be activated once you have installed Saltcorn. Plugins give you new data types, new views and themes."
},
{
"type": "line_break"
}
]
},
"imageSize": "contain",
"textColor": "#ffffff",
"borderStyle": "solid"
},
{
"name": "87c1be",
"type": "view",
"view": "PluginFeed",
"state": "shared"
},
{
"type": "line_break"
},
{
"type": "line_break"
},
{
"type": "line_break"
},
{
"type": "container",
"bgType": "Color",
"hAlign": "left",
"vAlign": "top",
"bgColor": "#dcdcdc",
"contents": {
"above": [
{
"type": "blank",
"block": true,
"contents": "Packs",
"textStyle": "h4"
},
{
"type": "blank",
"block": true,
"contents": "Packs are pre-built tables, views and pages you can install for instant functionality."
},
{
"type": "line_break"
}
]
},
"imageSize": "contain",
"textColor": "#ffffff",
"borderStyle": "solid"
},
{
"name": "7c2cf",
"type": "view",
"view": "PackFeed",
"state": "shared"
}
]
},
"min_role": 10,
"menu_label": "Packs",
"description": "",
"fixed_states": {},
"root_page_for_roles": [
"user",
"public"
]
}
],
"views": [
{
"name": "editexts",
"table": "extensions",
"min_role": 8,
"on_root_page": false,
"viewtemplate": "Edit",
"configuration": {
"fixed": {
"downloads": 0
},
"columns": [
{
"type": "Field",
"fieldview": "edit",
"field_name": "name",
"static_type": "Section header"
},
{
"type": "Field",
"fieldview": "edit",
"field_name": "description",
"static_type": "Section header"
},
{
"type": "Field",
"fieldview": "edit",
"field_name": "source",
"static_type": "Section header"
},
{
"type": "Field",
"fieldview": "edit",
"field_name": "location",
"static_type": "Section header"
}
],
"viewname": "editexts",
"view_when_done": "Extensions"
}
},
{
"name": "EditPack",
"table": "packs",
"min_role": 8,
"on_root_page": false,
"viewtemplate": "Edit",
"configuration": {
"columns": [
{
"type": "Field",
"fieldview": "edit",
"field_name": "name",
"static_type": "Section header"
},
{
"type": "Field",
"fieldview": "edit",
"field_name": "pack",
"static_type": "Section header"
},
{
"type": "Field",
"fieldview": "edit",
"field_name": "description",
"static_type": "Section header"
}
],
"viewname": "EditPack",
"view_when_done": "Packs"
}
},
{
"name": "Packs",
"table": "packs",
"min_role": 10,
"menu_label": "Packs",
"on_root_page": false,
"viewtemplate": "List",
"configuration": {
"columns": [
{
"stat": "Count",
"type": "Field",
"view": "Own:EditPack",
"fieldview": "as_text",
"field_name": "name",
"join_field": "",
"view_label": "",
"action_name": "Delete",
"agg_relation": ""
},
{
"stat": "Count",
"type": "ViewLink",
"view": "Own:EditPack",
"fieldview": "as_text",
"field_name": "name",
"join_field": "",
"view_label": "",
"action_name": "Delete",
"agg_relation": ""
},
{
"stat": "Count",
"type": "Field",
"view": "Own:EditPack",
"fieldview": "as_text",
"field_name": "description",
"join_field": "",
"view_label": "",
"action_name": "Delete",
"agg_relation": ""
}
],
"viewname": "Packs",
"view_to_create": "EditPack",
"create_view_display": "Link"
}
},
{
"name": "ShowPlugin",
"table": "extensions",
"min_role": 10,
"on_root_page": false,
"viewtemplate": "Show",
"configuration": {
"layout": {
"above": [
{
"type": "line_break"
},
{
"type": "field",
"fieldview": "as_text",
"textStyle": "h3",
"field_name": "name"
},
{
"type": "line_break"
},
{
"type": "blank",
"contents": "npm: "
},
{
"type": "field",
"fieldview": "as_text",
"field_name": "location"
},
{
"type": "line_break"
},
{
"type": "field",
"fieldview": "as_text",
"field_name": "description"
},
{
"type": "line_break"
},
{
"type": "line_break"
}
]
},
"columns": [
{
"type": "Field",
"fieldview": "as_text",
"field_name": "name"
},
{
"type": "Field",
"fieldview": "as_text",
"field_name": "location"
},
{
"type": "Field",
"fieldview": "as_text",
"field_name": "description"
}
],
"viewname": "ShowPlugin"
}
},
{
"name": "Extensions",
"table": "extensions",
"min_role": 10,
"menu_label": "Plugins",
"on_root_page": false,
"viewtemplate": "List",
"configuration": {
"columns": [
{
"stat": "Count",
"type": "Field",
"view": "Own:editexts",
"fieldview": "as_text",
"field_name": "name",
"join_field": "",
"view_label": "",
"action_name": "Delete",
"agg_relation": ""
},
{
"stat": "Count",
"type": "Field",
"view": "Own:editexts",
"fieldview": "as_text",
"field_name": "source",
"join_field": "",
"view_label": "",
"action_name": "Delete",
"agg_relation": ""
},
{
"stat": "Count",
"type": "Field",
"view": "Own:editexts",
"fieldview": "as_text",
"field_name": "location",
"join_field": "",
"view_label": "",
"action_name": "Delete",
"agg_relation": ""
},
{
"stat": "Count",
"type": "ViewLink",
"view": "Own:editexts",
"fieldview": "as_text",
"field_name": "name",
"join_field": "",
"view_label": "",
"action_name": "Delete",
"agg_relation": ""
},
{
"stat": "Count",
"type": "Field",
"view": "Own:editexts",
"fieldview": "as_text",
"field_name": "description",
"join_field": "",
"view_label": "",
"action_name": "Delete",
"agg_relation": ""
}
],
"viewname": "Extensions",
"view_to_create": "editexts",
"create_view_display": "Link"
}
},
{
"name": "PluginFeed",
"table": "extensions",
"min_role": 10,
"on_root_page": false,
"viewtemplate": "Feed",
"configuration": {
"cols_lg": 3,
"cols_md": 3,
"cols_sm": 1,
"cols_xl": 3,
"in_card": true,
"viewname": "PluginFeed",
"show_view": "ShowPlugin",
"descending": false,
"order_field": "name",
"view_to_create": "",
"create_view_display": "Link"
}
},
{
"name": "PackFeed",
"table": "packs",
"min_role": 10,
"on_root_page": false,
"viewtemplate": "Feed",
"configuration": {
"cols_lg": 3,
"cols_md": 3,
"cols_sm": 1,
"cols_xl": 3,
"in_card": true,
"viewname": "PackFeed",
"show_view": "ShowPack",
"descending": false,
"order_field": "name",
"view_to_create": "",
"create_view_display": "Link"
}
},
{
"name": "ShowPack",
"table": "packs",
"min_role": 10,
"on_root_page": false,
"viewtemplate": "Show",
"configuration": {
"layout": {
"above": [
{
"type": "line_break"
},
{
"type": "field",
"fieldview": "as_text",
"textStyle": "h3",
"field_name": "name"
},
{
"type": "line_break"
},
{
"type": "field",
"fieldview": "as_text",
"field_name": "description"
},
{
"type": "line_break"
},
{
"type": "view_link",
"view": "Own:ShowFullPack",
"minRole": 10,
"view_label": "Show full pack"
},
{
"type": "line_break"
},
{
"type": "line_break"
}
]
},
"columns": [
{
"type": "Field",
"fieldview": "as_text",
"field_name": "name"
},
{
"type": "Field",
"fieldview": "as_text",
"field_name": "description"
},
{
"type": "ViewLink",
"view": "Own:ShowFullPack",
"minRole": 10
}
],
"viewname": "ShowPack"
}
},
{
"name": "ShowFullPack",
"table": "packs",
"min_role": 10,
"on_root_page": false,
"viewtemplate": "Show",
"configuration": {
"layout": {
"above": [
{
"widths": [
2,
10
],
"besides": [
{
"above": [
null,
{
"type": "blank",
"contents": "Name"
}
]
},
{
"above": [
null,
{
"type": "field",
"fieldview": "as_text",
"field_name": "name"
}
]
}
]
},
{
"type": "line_break"
},
{
"widths": [
2,
10
],
"besides": [
{
"above": [
null,
{
"type": "blank",
"contents": "Description"
}
]
},
{
"above": [
null,
{
"type": "field",
"fieldview": "as_text",
"field_name": "description"
}
]
}
]
},
{
"type": "line_break"
},
{
"widths": [
2,
10
],
"besides": [
{
"above": [
null,
{
"type": "blank",
"contents": "Pack"
}
]
},
{
"above": [
null,
{
"type": "field",
"fieldview": "pretty",
"field_name": "pack"
}
]
}
]
},
{
"type": "line_break"
}
]
},
"columns": [
{
"type": "Field",
"fieldview": "as_text",
"field_name": "name"
},
{
"type": "Field",
"fieldview": "as_text",
"field_name": "description"
},
{
"type": "Field",
"fieldview": "pretty",
"field_name": "pack"
}
],
"viewname": "ShowFullPack"
}
}
],
"tables": [
{
"name": "extensions",
"fields": [
{
"name": "name",
"type": "String",
"label": "Name",
"stored": false,
"required": true,
"is_unique": false,
"attributes": {
"match": "",
"options": ""
},
"calculated": false,
"expression": null
},
{
"name": "source",
"type": "String",
"label": "Source",
"stored": false,
"required": true,
"is_unique": false,
"attributes": {
"match": "",
"options": "npm,github"
},
"calculated": false,
"expression": null
},
{
"name": "location",
"type": "String",
"label": "Location",
"stored": false,
"required": true,
"is_unique": false,
"attributes": {
"match": "",
"options": ""
},
"calculated": false,
"expression": null
},
{
"name": "downloads",
"type": "Integer",
"label": "Downloads",
"stored": false,
"required": true,
"is_unique": false,
"attributes": {
"max": null,
"min": 0
},
"calculated": false,
"expression": null
},
{
"name": "description",
"type": "String",
"label": "Description",
"stored": false,
"required": false,
"is_unique": false,
"attributes": {
"match": "",
"options": ""
},
"calculated": false,
"expression": null
},
{
"name": "has_theme",
"type": "Bool",
"label": "has_theme",
"stored": false,
"required": true,
"is_unique": false,
"attributes": {
"default": false
},
"calculated": false,
"expression": null
},
{
"name": "documentation_link",
"type": "String",
"label": "Documentation Link",
"stored": false,
"required": false,
"is_unique": false,
"attributes": {
"options": ""
},
"calculated": false,
"expression": null
}
],
"versioned": false,
"min_role_read": 10,
"min_role_write": 1
},
{
"name": "packs",
"fields": [
{
"name": "name",
"type": "String",
"label": "Name",
"stored": false,
"required": true,
"is_unique": false,
"attributes": {
"match": "",
"options": ""
},
"calculated": false,
"expression": null
},
{
"name": "pack",
"type": "JSON",
"label": "Pack",
"stored": false,
"required": true,
"is_unique": false,
"attributes": {},
"calculated": false,
"expression": null
},
{
"name": "description",
"type": "String",
"label": "Description",
"stored": false,
"required": false,
"is_unique": false,
"attributes": {
"match": "",
"options": ""
},
"calculated": false,
"expression": null
}
],
"versioned": false,
"min_role_read": 10,
"min_role_write": 1
}
],
"plugins": [
{
"name": "@saltcorn/json",
"source": "github",
"location": "saltcorn/json"
},
{
"name": "@saltcorn/markdown",
"source": "github",
"location": "saltcorn/markdown"
},
{
"name": "any-bootstrap-theme",
"source": "npm",
"location": "@saltcorn/any-bootstrap-theme"
}
]
}