Deploy AIOS web (React glide grid + FastAPI slice)
Browse files- RELEASES.json +1 -1
- VERSION +1 -1
- api/app_rules.py +3 -2
- platform/build_tags.json +12 -0
- platform/catalog_templates.json +52 -0
- platform/core/external_tools.py +1 -1
- web/public/AIOS_DEPLOY_RECEIPT +1 -1
RELEASES.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"current": "
|
| 3 |
"releases": []
|
| 4 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"current": "80931f0d4",
|
| 3 |
"releases": []
|
| 4 |
}
|
VERSION
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
80931f0d4
|
api/app_rules.py
CHANGED
|
@@ -106,11 +106,12 @@ def _relative_luminance(colour):
|
|
| 106 |
|
| 107 |
@lru_cache(maxsize=1)
|
| 108 |
def _catalog_templates():
|
| 109 |
-
|
|
|
|
| 110 |
if not path.is_file():
|
| 111 |
# The Space serves api/ beside the platform packages rather than the repo tree.
|
| 112 |
import core
|
| 113 |
-
path = Path(core.__file__).resolve().parent.parent / "
|
| 114 |
with path.open(encoding="utf-8") as handle:
|
| 115 |
return json.load(handle)
|
| 116 |
|
|
|
|
| 106 |
|
| 107 |
@lru_cache(maxsize=1)
|
| 108 |
def _catalog_templates():
|
| 109 |
+
# Root-level platform JSON is in the deploy set; platform/model JSON is not.
|
| 110 |
+
path = Path(__file__).resolve().parents[2] / "platform" / "catalog_templates.json"
|
| 111 |
if not path.is_file():
|
| 112 |
# The Space serves api/ beside the platform packages rather than the repo tree.
|
| 113 |
import core
|
| 114 |
+
path = Path(core.__file__).resolve().parent.parent / "catalog_templates.json"
|
| 115 |
with path.open(encoding="utf-8") as handle:
|
| 116 |
return json.load(handle)
|
| 117 |
|
platform/build_tags.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
"sales",
|
| 3 |
+
"customers",
|
| 4 |
+
"inventory",
|
| 5 |
+
"purchasing",
|
| 6 |
+
"finance",
|
| 7 |
+
"collections",
|
| 8 |
+
"operations",
|
| 9 |
+
"reporting",
|
| 10 |
+
"planning",
|
| 11 |
+
"knowledge"
|
| 12 |
+
]
|
platform/catalog_templates.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"kinds": [
|
| 3 |
+
{
|
| 4 |
+
"kind": "cover",
|
| 5 |
+
"templates": [
|
| 6 |
+
{"id": "cover-stacked", "label": "Classic cover", "slots": ["title", "body", "products"], "design": {"background": "#ffffff", "color": "#1f4e78", "accent": "#c8a24b", "layout": "stacked", "align": "left", "columns": 1, "imageFit": "contain", "fontFamily": "serif"}},
|
| 7 |
+
{"id": "cover-split", "label": "Editorial cover", "slots": ["title", "body", "products"], "design": {"background": "#f7f2e8", "color": "#243241", "accent": "#a96546", "layout": "split", "align": "left", "columns": 1, "imageFit": "cover", "fontFamily": "sans"}},
|
| 8 |
+
{"id": "cover-centered", "label": "Midnight cover", "slots": ["title", "body", "products"], "design": {"background": "#1f4e78", "color": "#ffffff", "accent": "#c8a24b", "layout": "centered", "align": "center", "columns": 1, "imageFit": "contain", "fontFamily": "serif"}}
|
| 9 |
+
]
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"kind": "toc",
|
| 13 |
+
"templates": [
|
| 14 |
+
{"id": "toc-stacked", "label": "Contents list", "slots": ["title", "body"], "design": {"background": "#ffffff", "color": "#1f4e78", "accent": "#c8a24b", "layout": "stacked", "align": "left", "columns": 1, "imageFit": "contain", "fontFamily": "sans"}},
|
| 15 |
+
{"id": "toc-split", "label": "Contents spread", "slots": ["title", "body"], "design": {"background": "#f7f2e8", "color": "#243241", "accent": "#a96546", "layout": "split", "align": "left", "columns": 2, "imageFit": "contain", "fontFamily": "serif"}},
|
| 16 |
+
{"id": "toc-centered", "label": "Contents panel", "slots": ["title", "body"], "design": {"background": "#1f4e78", "color": "#ffffff", "accent": "#c8a24b", "layout": "centered", "align": "center", "columns": 1, "imageFit": "contain", "fontFamily": "sans"}}
|
| 17 |
+
]
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"kind": "product",
|
| 21 |
+
"templates": [
|
| 22 |
+
{"id": "product-stacked", "label": "Product spotlight", "slots": ["title", "body", "products"], "design": {"background": "#ffffff", "color": "#1f4e78", "accent": "#c8a24b", "layout": "stacked", "align": "left", "columns": 1, "imageFit": "contain", "fontFamily": "sans"}},
|
| 23 |
+
{"id": "product-split", "label": "Product story", "slots": ["title", "body", "products"], "design": {"background": "#f7f2e8", "color": "#243241", "accent": "#a96546", "layout": "split", "align": "left", "columns": 1, "imageFit": "cover", "fontFamily": "serif"}},
|
| 24 |
+
{"id": "product-centered", "label": "Product portrait", "slots": ["title", "body", "products"], "design": {"background": "#1f4e78", "color": "#ffffff", "accent": "#c8a24b", "layout": "centered", "align": "center", "columns": 1, "imageFit": "contain", "fontFamily": "sans"}}
|
| 25 |
+
]
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"kind": "grid",
|
| 29 |
+
"templates": [
|
| 30 |
+
{"id": "grid-stacked", "label": "Product collection", "slots": ["title", "body", "products"], "design": {"background": "#ffffff", "color": "#1f4e78", "accent": "#c8a24b", "layout": "stacked", "align": "left", "columns": 3, "imageFit": "contain", "fontFamily": "sans"}},
|
| 31 |
+
{"id": "grid-split", "label": "Editorial collection", "slots": ["title", "body", "products"], "design": {"background": "#f7f2e8", "color": "#243241", "accent": "#a96546", "layout": "split", "align": "left", "columns": 2, "imageFit": "cover", "fontFamily": "serif"}},
|
| 32 |
+
{"id": "grid-centered", "label": "Collection panel", "slots": ["title", "body", "products"], "design": {"background": "#1f4e78", "color": "#ffffff", "accent": "#c8a24b", "layout": "centered", "align": "center", "columns": 4, "imageFit": "contain", "fontFamily": "sans"}}
|
| 33 |
+
]
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"kind": "section",
|
| 37 |
+
"templates": [
|
| 38 |
+
{"id": "section-stacked", "label": "Section introduction", "slots": ["title", "body", "products"], "design": {"background": "#ffffff", "color": "#1f4e78", "accent": "#c8a24b", "layout": "stacked", "align": "left", "columns": 2, "imageFit": "contain", "fontFamily": "serif"}},
|
| 39 |
+
{"id": "section-split", "label": "Section story", "slots": ["title", "body", "products"], "design": {"background": "#f7f2e8", "color": "#243241", "accent": "#a96546", "layout": "split", "align": "left", "columns": 2, "imageFit": "cover", "fontFamily": "sans"}},
|
| 40 |
+
{"id": "section-centered", "label": "Section divider", "slots": ["title", "body", "products"], "design": {"background": "#1f4e78", "color": "#ffffff", "accent": "#c8a24b", "layout": "centered", "align": "center", "columns": 1, "imageFit": "contain", "fontFamily": "serif"}}
|
| 41 |
+
]
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"kind": "closing",
|
| 45 |
+
"templates": [
|
| 46 |
+
{"id": "closing-stacked", "label": "Closing note", "slots": ["title", "body"], "design": {"background": "#ffffff", "color": "#1f4e78", "accent": "#c8a24b", "layout": "stacked", "align": "left", "columns": 1, "imageFit": "contain", "fontFamily": "sans"}},
|
| 47 |
+
{"id": "closing-split", "label": "Contact spread", "slots": ["title", "body"], "design": {"background": "#f7f2e8", "color": "#243241", "accent": "#a96546", "layout": "split", "align": "right", "columns": 1, "imageFit": "contain", "fontFamily": "serif"}},
|
| 48 |
+
{"id": "closing-centered", "label": "Thank you panel", "slots": ["title", "body"], "design": {"background": "#1f4e78", "color": "#ffffff", "accent": "#c8a24b", "layout": "centered", "align": "center", "columns": 1, "imageFit": "contain", "fontFamily": "serif"}}
|
| 49 |
+
]
|
| 50 |
+
}
|
| 51 |
+
]
|
| 52 |
+
}
|
platform/core/external_tools.py
CHANGED
|
@@ -34,7 +34,7 @@ CELL_FIGURE_RULE = (
|
|
| 34 |
)
|
| 35 |
|
| 36 |
BUILD_TAGS = tuple(json.loads(
|
| 37 |
-
(Path(__file__).resolve().parents[1] / "
|
| 38 |
_BUILD_TEXT = r"^(?=.*\S)[^\u0000-\u001f\u007f\u0085\u2013\u2014\u2028\u2029]+(?![\s\S])"
|
| 39 |
ABOUT_SCHEMA = {
|
| 40 |
"type": "object", "additionalProperties": False,
|
|
|
|
| 34 |
)
|
| 35 |
|
| 36 |
BUILD_TAGS = tuple(json.loads(
|
| 37 |
+
(Path(__file__).resolve().parents[1] / "build_tags.json").read_text(encoding="utf-8")))
|
| 38 |
_BUILD_TEXT = r"^(?=.*\S)[^\u0000-\u001f\u007f\u0085\u2013\u2014\u2028\u2029]+(?![\s\S])"
|
| 39 |
ABOUT_SCHEMA = {
|
| 40 |
"type": "object", "additionalProperties": False,
|
web/public/AIOS_DEPLOY_RECEIPT
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
ebf7a6e64946d297c9c4a16ea806ba82ba4b6d199a199be1cf6a0e225cdefdfa
|