gramlot-examples 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gramlot_examples-0.2.2/.gitignore +12 -0
- gramlot_examples-0.2.2/LICENSE +176 -0
- gramlot_examples-0.2.2/NOTICE +8 -0
- gramlot_examples-0.2.2/PKG-INFO +63 -0
- gramlot_examples-0.2.2/README.md +49 -0
- gramlot_examples-0.2.2/package.json +52 -0
- gramlot_examples-0.2.2/pyproject.toml +36 -0
- gramlot_examples-0.2.2/scripts/build-browser.mjs +38 -0
- gramlot_examples-0.2.2/src/gramlot_examples/__init__.py +86 -0
- gramlot_examples-0.2.2/src/gramlot_examples/catalog.json +253 -0
- gramlot_examples-0.2.2/src/gramlot_examples/gallery/browser/code-highlight.js +33 -0
- gramlot_examples-0.2.2/src/gramlot_examples/gallery/browser/entry.js +11 -0
- gramlot_examples-0.2.2/src/gramlot_examples/gallery/browser/frame-entry.js +9 -0
- gramlot_examples-0.2.2/src/gramlot_examples/gallery/browser/frame-theme.js +15 -0
- gramlot_examples-0.2.2/src/gramlot_examples/gallery/browser/gallery.js +160 -0
- gramlot_examples-0.2.2/src/gramlot_examples/gallery/browser/markdown.js +10 -0
- gramlot_examples-0.2.2/src/gramlot_examples/gallery/browser/theme-messages.js +4 -0
- gramlot_examples-0.2.2/src/gramlot_examples/gallery/dist/LICENSE +176 -0
- gramlot_examples-0.2.2/src/gramlot_examples/gallery/dist/NOTICE +8 -0
- gramlot_examples-0.2.2/src/gramlot_examples/gallery/dist/frame.js +28 -0
- gramlot_examples-0.2.2/src/gramlot_examples/gallery/dist/gallery.js +21239 -0
- gramlot_examples-0.2.2/src/gramlot_examples/gallery/dist/notices.json +38 -0
- gramlot_examples-0.2.2/src/gramlot_examples/gallery/gallery-page.js +97 -0
- gramlot_examples-0.2.2/src/gramlot_examples/gallery/gallery.css +110 -0
- gramlot_examples-0.2.2/src/gramlot_examples/gallery/page.js +26 -0
- gramlot_examples-0.2.2/src/gramlot_examples/gallery/page.py +106 -0
- gramlot_examples-0.2.2/src/gramlot_examples/index.js +79 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/README.md +21 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/01_pointers.js +35 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/01_pointers.md +14 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/01_pointers.py +34 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/02_variable_datapath.js +33 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/02_variable_datapath.md +9 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/02_variable_datapath.py +31 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/03_setters_and_defaults.js +42 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/03_setters_and_defaults.md +10 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/03_setters_and_defaults.py +40 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/04_native_editing.js +53 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/04_native_editing.md +11 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/04_native_editing.py +51 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/05_checkbox_radio.js +41 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/05_checkbox_radio.md +9 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/05_checkbox_radio.py +37 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/06_style_and_visibility.js +51 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/06_style_and_visibility.md +11 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/06_style_and_visibility.py +48 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/07_bound_svg.js +33 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/07_bound_svg.md +7 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/07_bound_svg.py +32 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/08_freeze.css +1 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/08_freeze.js +26 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/08_freeze.md +11 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/08_freeze.py +25 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/08_freeze_aux.js +26 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/09_forms.css +8 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/09_forms.js +79 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/09_forms.md +12 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/09_forms.py +77 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/10_svg_shapes.js +42 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/10_svg_shapes.md +9 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/10_svg_shapes.py +40 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/11_complete_page.css +5 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/11_complete_page.js +127 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/11_complete_page.md +12 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/11_complete_page.py +115 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/binding/README.md +9 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/01_formula.js +34 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/01_formula.md +12 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/01_formula.py +31 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/02_controller.js +44 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/02_controller.md +10 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/02_controller.py +44 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/03_named_logic.js +28 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/03_named_logic.md +12 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/03_named_logic.py +26 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/03_named_logic_aux.js +19 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/04_inline_expressions.js +38 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/04_inline_expressions.md +12 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/04_inline_expressions.py +36 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/05_node_methods.css +1 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/05_node_methods.js +39 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/05_node_methods.md +11 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/05_node_methods.py +38 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/06_button_controller.js +36 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/06_button_controller.md +11 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/06_button_controller.py +34 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/07_events.js +38 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/07_events.md +10 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/07_events.py +37 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/08_remote_source.js +34 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/08_remote_source.md +10 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/08_remote_source.py +34 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/08_remote_source_aux.js +8 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/09_end_to_end.css +1 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/09_end_to_end.js +67 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/09_end_to_end.md +14 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/09_end_to_end.py +65 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/09_end_to_end_aux.js +35 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/controllers/README.md +11 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/01_hello_world.js +12 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/01_hello_world.md +9 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/01_hello_world.py +11 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/02_text_and_links.js +28 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/02_text_and_links.md +9 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/02_text_and_links.py +27 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/03_lists.js +29 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/03_lists.md +9 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/03_lists.py +30 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/04_semantic_page.js +25 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/04_semantic_page.md +9 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/04_semantic_page.py +24 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/05_tables.js +27 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/05_tables.md +9 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/05_tables.py +29 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/06_forms.css +5 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/06_forms.js +63 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/06_forms.md +9 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/06_forms.py +62 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/07_native_disclosure.js +27 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/07_native_disclosure.md +9 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/07_native_disclosure.py +25 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/08_svg_shapes.js +23 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/08_svg_shapes.md +9 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/08_svg_shapes.py +22 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/09_svg_composition.js +42 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/09_svg_composition.md +9 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/09_svg_composition.py +44 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/10_cards_with_icons.css +6 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/10_cards_with_icons.js +40 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/10_cards_with_icons.md +20 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/10_cards_with_icons.py +38 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/11_static_report.css +3 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/11_static_report.js +68 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/11_static_report.md +9 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/11_static_report.py +61 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/12_complete_page.css +5 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/12_complete_page.js +120 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/12_complete_page.md +9 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/12_complete_page.py +109 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/13_live_source.css +3 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/13_live_source.js +64 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/13_live_source.md +18 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/13_live_source.py +62 -0
- gramlot_examples-0.2.2/src/gramlot_examples/pages/html_svg/README.md +10 -0
- gramlot_examples-0.2.2/src/gramlot_examples/py.typed +0 -0
- gramlot_examples-0.2.2/tests/build-gallery.test.js +74 -0
- gramlot_examples-0.2.2/tests/examples.test.js +364 -0
- gramlot_examples-0.2.2/tests/fixtures/environment/catalog.json +18 -0
- gramlot_examples-0.2.2/tests/fixtures/environment/pages/test_family/01_demo.css +1 -0
- gramlot_examples-0.2.2/tests/fixtures/environment/pages/test_family/01_demo.js +9 -0
- gramlot_examples-0.2.2/tests/fixtures/environment/pages/test_family/01_demo.md +3 -0
- gramlot_examples-0.2.2/tests/fixtures/environment/pages/test_family/01_demo.py +8 -0
- gramlot_examples-0.2.2/tests/fixtures/environment/pages/test_family/01_demo_aux.js +1 -0
- gramlot_examples-0.2.2/tests/fixtures/environment/pages/test_family/README.md +3 -0
- gramlot_examples-0.2.2/tests/gallery.test.js +241 -0
- gramlot_examples-0.2.2/tests/test_build_gallery.py +78 -0
- gramlot_examples-0.2.2/tests/test_pages.py +26 -0
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Gramlot examples
|
|
2
|
+
Copyright 2025-2026 Softwell S.r.l.
|
|
3
|
+
|
|
4
|
+
This product includes software developed at Softwell S.r.l.
|
|
5
|
+
(https://www.softwell.it/), originally in Genro Pages and Genro DOM JS.
|
|
6
|
+
The original Genro DOM JS notice states: Copyright 2025 Softwell S.r.l.
|
|
7
|
+
|
|
8
|
+
Licensed under the Apache License, Version 2.0.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: gramlot-examples
|
|
3
|
+
Version: 0.2.2
|
|
4
|
+
Summary: Gramlot example pages, the gallery page and its catalogue.
|
|
5
|
+
Project-URL: Homepage, https://github.com/gramlot-org/gramlot-examples
|
|
6
|
+
Project-URL: Repository, https://github.com/gramlot-org/gramlot-examples
|
|
7
|
+
Project-URL: Issues, https://github.com/gramlot-org/gramlot-examples/issues
|
|
8
|
+
License-Expression: Apache-2.0
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
License-File: NOTICE
|
|
11
|
+
Requires-Python: >=3.11
|
|
12
|
+
Requires-Dist: gramlot>=0.2.2
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
|
|
15
|
+
# gramlot-examples
|
|
16
|
+
|
|
17
|
+
The common example pages of [Gramlot](https://github.com/gramlot-org/gramlot), the
|
|
18
|
+
gallery page that presents them, and its catalogue. Published as a package that
|
|
19
|
+
depends only on the Gramlot core:
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
pip install gramlot-examples
|
|
23
|
+
npm install @gramlot/gramlot-examples
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
The repositories of the family are described in
|
|
27
|
+
[The Gramlot family](https://github.com/gramlot-org/gramlot/blob/main/docs/public/055-family.md)
|
|
28
|
+
(GC-055).
|
|
29
|
+
|
|
30
|
+
## Pages
|
|
31
|
+
|
|
32
|
+
[`src/gramlot_examples/pages/`](src/gramlot_examples/pages/README.md) holds three
|
|
33
|
+
families. Each example is a Python page and its JavaScript equivalent, with a
|
|
34
|
+
same-name README:
|
|
35
|
+
|
|
36
|
+
- `html_svg/`: thirteen HTML and SVG pages, without binding (`e01`–`e13`);
|
|
37
|
+
- `binding/`: eleven pages whose DOM follows the Data (`b01`–`b11`);
|
|
38
|
+
- `controllers/`: nine pages with formulas, controllers, logic companions, events and
|
|
39
|
+
remote Source (`c01`–`c09`).
|
|
40
|
+
|
|
41
|
+
## Gallery
|
|
42
|
+
|
|
43
|
+
The gallery page lists the families and opens each example beside its README and
|
|
44
|
+
source. `build_gallery` (Python) and `buildGallery` (JavaScript) return its routes and
|
|
45
|
+
static assets; each environment (`gramlot-py-server`, `gramlot-js-server`) serves the
|
|
46
|
+
gallery with its own host and can add its own catalogue. Guide:
|
|
47
|
+
[GE-010](docs/010-gallery.md).
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
npm install --no-package-lock
|
|
51
|
+
npm run build
|
|
52
|
+
npm test
|
|
53
|
+
python -m unittest discover -s tests
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Applications
|
|
57
|
+
|
|
58
|
+
[Hello World](apps/hello-world/README.md) stays here until its launchers move to the
|
|
59
|
+
adapters as their quick-start examples. Its JavaScript launchers use
|
|
60
|
+
`@gramlot/gramlot-js-server`; its Python launchers wait for `gramlot-py-server`.
|
|
61
|
+
Database profiles remain placeholders.
|
|
62
|
+
|
|
63
|
+
[Repository map](docs/005-repository-map.md) (GE-005).
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# gramlot-examples
|
|
2
|
+
|
|
3
|
+
The common example pages of [Gramlot](https://github.com/gramlot-org/gramlot), the
|
|
4
|
+
gallery page that presents them, and its catalogue. Published as a package that
|
|
5
|
+
depends only on the Gramlot core:
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
pip install gramlot-examples
|
|
9
|
+
npm install @gramlot/gramlot-examples
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
The repositories of the family are described in
|
|
13
|
+
[The Gramlot family](https://github.com/gramlot-org/gramlot/blob/main/docs/public/055-family.md)
|
|
14
|
+
(GC-055).
|
|
15
|
+
|
|
16
|
+
## Pages
|
|
17
|
+
|
|
18
|
+
[`src/gramlot_examples/pages/`](src/gramlot_examples/pages/README.md) holds three
|
|
19
|
+
families. Each example is a Python page and its JavaScript equivalent, with a
|
|
20
|
+
same-name README:
|
|
21
|
+
|
|
22
|
+
- `html_svg/`: thirteen HTML and SVG pages, without binding (`e01`–`e13`);
|
|
23
|
+
- `binding/`: eleven pages whose DOM follows the Data (`b01`–`b11`);
|
|
24
|
+
- `controllers/`: nine pages with formulas, controllers, logic companions, events and
|
|
25
|
+
remote Source (`c01`–`c09`).
|
|
26
|
+
|
|
27
|
+
## Gallery
|
|
28
|
+
|
|
29
|
+
The gallery page lists the families and opens each example beside its README and
|
|
30
|
+
source. `build_gallery` (Python) and `buildGallery` (JavaScript) return its routes and
|
|
31
|
+
static assets; each environment (`gramlot-py-server`, `gramlot-js-server`) serves the
|
|
32
|
+
gallery with its own host and can add its own catalogue. Guide:
|
|
33
|
+
[GE-010](docs/010-gallery.md).
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
npm install --no-package-lock
|
|
37
|
+
npm run build
|
|
38
|
+
npm test
|
|
39
|
+
python -m unittest discover -s tests
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Applications
|
|
43
|
+
|
|
44
|
+
[Hello World](apps/hello-world/README.md) stays here until its launchers move to the
|
|
45
|
+
adapters as their quick-start examples. Its JavaScript launchers use
|
|
46
|
+
`@gramlot/gramlot-js-server`; its Python launchers wait for `gramlot-py-server`.
|
|
47
|
+
Database profiles remain placeholders.
|
|
48
|
+
|
|
49
|
+
[Repository map](docs/005-repository-map.md) (GE-005).
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@gramlot/gramlot-examples",
|
|
3
|
+
"version": "0.2.2",
|
|
4
|
+
"description": "Gramlot example pages, the gallery page and its catalogue.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/gramlot-org/gramlot-examples.git"
|
|
9
|
+
},
|
|
10
|
+
"type": "module",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "node scripts/build-browser.mjs",
|
|
13
|
+
"test": "node --test tests/*.test.js",
|
|
14
|
+
"prepack": "node scripts/build-browser.mjs"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@gramlot/gramlot": ">=0.2.2"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@genrojs/bag": ">=0.10.1",
|
|
21
|
+
"dompurify": "3.4.16",
|
|
22
|
+
"esbuild": "0.28.2",
|
|
23
|
+
"highlight.js": "^11.11.1",
|
|
24
|
+
"jsdom": "27.0.1",
|
|
25
|
+
"marked": "^18.0.14"
|
|
26
|
+
},
|
|
27
|
+
"exports": {
|
|
28
|
+
".": "./src/gramlot_examples/index.js",
|
|
29
|
+
"./catalog.json": "./src/gramlot_examples/catalog.json",
|
|
30
|
+
"./pages/*": "./src/gramlot_examples/pages/*",
|
|
31
|
+
"./gallery/*": "./src/gramlot_examples/gallery/*"
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"LICENSE",
|
|
35
|
+
"NOTICE",
|
|
36
|
+
"src/gramlot_examples/index.js",
|
|
37
|
+
"src/gramlot_examples/catalog.json",
|
|
38
|
+
"src/gramlot_examples/pages/**/*.js",
|
|
39
|
+
"src/gramlot_examples/pages/**/*.md",
|
|
40
|
+
"src/gramlot_examples/pages/**/*.css",
|
|
41
|
+
"src/gramlot_examples/gallery/page.js",
|
|
42
|
+
"src/gramlot_examples/gallery/gallery-page.js",
|
|
43
|
+
"src/gramlot_examples/gallery/gallery.css",
|
|
44
|
+
"src/gramlot_examples/gallery/dist"
|
|
45
|
+
],
|
|
46
|
+
"engines": {
|
|
47
|
+
"node": ">=22"
|
|
48
|
+
},
|
|
49
|
+
"publishConfig": {
|
|
50
|
+
"access": "public"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "gramlot-examples"
|
|
7
|
+
version = "0.2.2"
|
|
8
|
+
description = "Gramlot example pages, the gallery page and its catalogue."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "Apache-2.0"
|
|
11
|
+
requires-python = ">=3.11"
|
|
12
|
+
dependencies = ["gramlot>=0.2.2"]
|
|
13
|
+
|
|
14
|
+
[project.urls]
|
|
15
|
+
Homepage = "https://github.com/gramlot-org/gramlot-examples"
|
|
16
|
+
Repository = "https://github.com/gramlot-org/gramlot-examples"
|
|
17
|
+
Issues = "https://github.com/gramlot-org/gramlot-examples/issues"
|
|
18
|
+
|
|
19
|
+
[tool.hatch.build]
|
|
20
|
+
# The gallery bundle is built by `npm run build` and is not tracked.
|
|
21
|
+
artifacts = ["src/gramlot_examples/gallery/dist/*"]
|
|
22
|
+
|
|
23
|
+
[tool.hatch.build.targets.wheel]
|
|
24
|
+
packages = ["src/gramlot_examples"]
|
|
25
|
+
# The wheel carries the Python pages; the JavaScript pages and gallery sources stay in npm.
|
|
26
|
+
exclude = [
|
|
27
|
+
"src/gramlot_examples/pages/**/*.js",
|
|
28
|
+
"!src/gramlot_examples/pages/**/*_aux.js",
|
|
29
|
+
"src/gramlot_examples/index.js",
|
|
30
|
+
"src/gramlot_examples/gallery/browser",
|
|
31
|
+
"src/gramlot_examples/gallery/page.js",
|
|
32
|
+
"src/gramlot_examples/gallery/gallery-page.js",
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
[tool.hatch.build.targets.sdist]
|
|
36
|
+
include = ["/src", "/tests", "/scripts", "/README.md", "/LICENSE", "/NOTICE", "/package.json", "/pyproject.toml"]
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/** Build the provisional gallery's scripts separately from Gramlot's runtime. */
|
|
2
|
+
import {build} from 'esbuild';
|
|
3
|
+
import {copyFile, mkdir, readFile, readdir, writeFile} from 'node:fs/promises';
|
|
4
|
+
import {fileURLToPath} from 'node:url';
|
|
5
|
+
import {resolve} from 'node:path';
|
|
6
|
+
|
|
7
|
+
const directory = new URL('../src/gramlot_examples/gallery/', import.meta.url);
|
|
8
|
+
const output = new URL('dist/', directory);
|
|
9
|
+
await mkdir(output, {recursive: true});
|
|
10
|
+
const result = await build({
|
|
11
|
+
entryPoints: {
|
|
12
|
+
gallery: fileURLToPath(new URL('browser/entry.js', directory)),
|
|
13
|
+
frame: fileURLToPath(new URL('browser/frame-entry.js', directory)),
|
|
14
|
+
},
|
|
15
|
+
outdir: fileURLToPath(output), bundle: true, format: 'iife',
|
|
16
|
+
platform: 'browser', target: 'es2022', legalComments: 'inline', metafile: true,
|
|
17
|
+
});
|
|
18
|
+
// Keep notices for every bundled dependency, including transitive Bag dependencies.
|
|
19
|
+
const packages = new Set();
|
|
20
|
+
for (const input of Object.keys(result.metafile.inputs)) {
|
|
21
|
+
const matches = [...input.matchAll(/(?:^|\/)node_modules\/((?:@[^/]+\/)?[^/]+)/g)];
|
|
22
|
+
if (!matches.length) continue; // Our own gallery files use the root LICENSE/NOTICE.
|
|
23
|
+
const match = matches.at(-1);
|
|
24
|
+
packages.add(resolve(input.slice(0, match.index + match[0].length)));
|
|
25
|
+
}
|
|
26
|
+
const notices = [];
|
|
27
|
+
for (const directory of [...packages].sort()) {
|
|
28
|
+
const metadata = JSON.parse(await readFile(resolve(directory, 'package.json'), 'utf8'));
|
|
29
|
+
const files = (await readdir(directory)).filter(name => /^(licen[cs]e|notice|copying)([.-].*)?$/i.test(name));
|
|
30
|
+
if (!files.length) throw new Error(`Missing bundled license for ${metadata.name}`);
|
|
31
|
+
const text = (await Promise.all(files.sort().map(name => readFile(resolve(directory, name), 'utf8')))).join('\n\n');
|
|
32
|
+
notices.push({name: metadata.name, text});
|
|
33
|
+
}
|
|
34
|
+
await writeFile(new URL('notices.json', output), JSON.stringify(notices, null, 2) + '\n');
|
|
35
|
+
for (const name of ['LICENSE', 'NOTICE']) {
|
|
36
|
+
await copyFile(new URL(`../${name}`, import.meta.url), new URL(name, output));
|
|
37
|
+
}
|
|
38
|
+
console.log('Gallery browser scripts built.');
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"""Gramlot example pages, the gallery page and its catalogue."""
|
|
2
|
+
|
|
3
|
+
import json
|
|
4
|
+
import re
|
|
5
|
+
from importlib.resources import files
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
|
|
8
|
+
PACKAGE = Path(__file__).resolve().parent
|
|
9
|
+
MEDIA_TYPES = {".css": "text/css", ".svg": "image/svg+xml", ".json": "application/json"}
|
|
10
|
+
SUFFIXES = (".py", ".js", ".css", ".md", "_aux.js")
|
|
11
|
+
DIST = ("gallery.js", "frame.js", "notices.json", "LICENSE", "NOTICE")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def media_type(path, script=False):
|
|
15
|
+
"""Media type of a gallery asset; only the built gallery scripts are served as JavaScript."""
|
|
16
|
+
if script:
|
|
17
|
+
return "application/javascript"
|
|
18
|
+
return MEDIA_TYPES.get(path.suffix, "text/plain")
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def read_catalog(catalog, pages, common):
|
|
22
|
+
"""Load one ``catalog.json`` and check its ``environment`` against the key rule."""
|
|
23
|
+
data = json.loads(Path(catalog).read_text())
|
|
24
|
+
environment = data.get("environment")
|
|
25
|
+
if common and environment is not None:
|
|
26
|
+
raise ValueError(f"The common catalogue declares an environment: {catalog}")
|
|
27
|
+
if not common and not environment:
|
|
28
|
+
raise ValueError(f"An environment catalogue has no environment: {catalog}")
|
|
29
|
+
pattern = None if common else re.compile(rf"{re.escape(environment)}-\d{{2}}")
|
|
30
|
+
families = []
|
|
31
|
+
for family in data["families"]:
|
|
32
|
+
for example in family["examples"]:
|
|
33
|
+
if pattern is not None and not pattern.fullmatch(example["key"]):
|
|
34
|
+
raise ValueError(f"Example key {example['key']!r} does not match {environment}-NN: {catalog}")
|
|
35
|
+
families.append({**family, "path": Path(pages) / family["key"]})
|
|
36
|
+
return families
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def build_gallery(catalogs=()):
|
|
40
|
+
"""Return the families, routes and static assets of the common gallery plus ``catalogs``.
|
|
41
|
+
|
|
42
|
+
Each item of ``catalogs`` is a pair ``(catalog.json, pages folder)`` of one environment.
|
|
43
|
+
``routes`` maps each key to its Python page and same-name companions; ``assets`` maps
|
|
44
|
+
each URL to its file and media type. Nothing is written or served here.
|
|
45
|
+
"""
|
|
46
|
+
families = read_catalog(PACKAGE / "catalog.json", PACKAGE / "pages", common=True)
|
|
47
|
+
for catalog, pages in catalogs:
|
|
48
|
+
families.extend(read_catalog(catalog, pages, common=False))
|
|
49
|
+
keys = ["index"] + [key for family in families
|
|
50
|
+
for key in (family["key"], *(example["key"] for example in family["examples"]))]
|
|
51
|
+
duplicates = sorted({key for key in keys if keys.count(key) > 1})
|
|
52
|
+
if duplicates:
|
|
53
|
+
raise ValueError(f"Duplicate gallery keys: {', '.join(duplicates)}")
|
|
54
|
+
|
|
55
|
+
gallery = PACKAGE / "gallery"
|
|
56
|
+
resources = Path(files("gramlot")) / "resources"
|
|
57
|
+
routes = {"index": {"page": gallery / "page.py", "stylesheet": None, "logic": None}}
|
|
58
|
+
files_by_url = [
|
|
59
|
+
("/themes/gramlot-base/theme.css", resources / "themes" / "gramlot-base" / "theme.css"),
|
|
60
|
+
("/assets/branding/gramlot-logo-dark.svg", resources / "assets" / "branding" / "gramlot-logo-dark.svg"),
|
|
61
|
+
("/gallery/gallery.css", gallery / "gallery.css"),
|
|
62
|
+
*((f"/gallery/{name}", gallery / name) for name in ("page.py", "page.js") if (gallery / name).is_file()),
|
|
63
|
+
]
|
|
64
|
+
assets = {url: {"file": path, "type": media_type(path)} for url, path in files_by_url}
|
|
65
|
+
for name in DIST:
|
|
66
|
+
path = gallery / "dist" / name
|
|
67
|
+
assets[f"/gallery/dist/{name}"] = {"file": path, "type": media_type(path, path.suffix == ".js")}
|
|
68
|
+
for family in families:
|
|
69
|
+
folder = family["path"]
|
|
70
|
+
for example in family["examples"]:
|
|
71
|
+
page = folder / f"{example['folder']}.py"
|
|
72
|
+
if not page.is_file():
|
|
73
|
+
raise FileNotFoundError(f"Missing page: {page}")
|
|
74
|
+
stylesheet = folder / f"{example['folder']}.css"
|
|
75
|
+
logic = folder / f"{example['folder']}_aux.js"
|
|
76
|
+
routes[example["key"]] = {"page": page,
|
|
77
|
+
"stylesheet": stylesheet if stylesheet.is_file() else None,
|
|
78
|
+
"logic": logic if logic.is_file() else None}
|
|
79
|
+
for suffix in SUFFIXES:
|
|
80
|
+
source = folder / f"{example['folder']}{suffix}"
|
|
81
|
+
if source.is_file():
|
|
82
|
+
assets[f"/pages/{family['key']}/{source.name}"] = {"file": source, "type": media_type(source)}
|
|
83
|
+
return {"families": families, "routes": routes, "assets": assets}
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
__all__ = ["build_gallery"]
|