@topogram/starter-hello-web 0.1.7

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.
package/README.md ADDED
@@ -0,0 +1,27 @@
1
+ # Topogram Starter: Hello Web
2
+
3
+ Package-backed vanilla HTML/CSS/JS starter for `topogram new`.
4
+
5
+ ```bash
6
+ topogram new ./hello-web --template @topogram/starter-hello-web
7
+ ```
8
+
9
+ ## Contract
10
+
11
+ - Catalog id: `hello-web`
12
+ - Surfaces: `web`
13
+ - Generator: `@topogram/generator-vanilla-web`
14
+ - Runtime stack: vanilla HTML/CSS/JS
15
+ - Executable implementation: no
16
+ - Purpose: smallest generated web starter with two pages and one workflow.
17
+
18
+ ## First Run
19
+
20
+ ```bash
21
+ topogram new ./hello-web --template hello-web
22
+ cd ./hello-web
23
+ npm install
24
+ npm run doctor
25
+ npm run check
26
+ npm run generate
27
+ ```
package/package.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "@topogram/starter-hello-web",
3
+ "version": "0.1.7",
4
+ "description": "Vanilla HTML/CSS/JS Topogram starter with two pages and one workflow.",
5
+ "license": "UNLICENSED",
6
+ "private": false,
7
+ "type": "module",
8
+ "files": [
9
+ "topogram-template.json",
10
+ "topogram",
11
+ "topogram.project.json",
12
+ "README.md"
13
+ ],
14
+ "devDependencies": {
15
+ "@topogram/generator-vanilla-web": "0.1.2"
16
+ },
17
+ "publishConfig": {
18
+ "registry": "https://registry.npmjs.org",
19
+ "access": "public"
20
+ }
21
+ }
@@ -0,0 +1,6 @@
1
+ actor actor_visitor {
2
+ name "Visitor"
3
+ description "Person viewing the generated hello web starter"
4
+
5
+ status active
6
+ }
@@ -0,0 +1,9 @@
1
+ capability cap_view_hello {
2
+ name "View Hello"
3
+ description "Views the hello starter pages"
4
+
5
+ actors [actor_visitor]
6
+ output [shape_output_hello]
7
+
8
+ status active
9
+ }
@@ -0,0 +1,18 @@
1
+ ---
2
+ id: workflow_hello
3
+ kind: workflow
4
+ title: Hello Workflow
5
+ status: canonical
6
+ source_of_truth: topogram
7
+ confidence: high
8
+ review_required: false
9
+ related_capabilities:
10
+ - cap_view_hello
11
+ related_projections:
12
+ - proj_ui_web
13
+ tags:
14
+ - starter
15
+ - workflow
16
+ ---
17
+
18
+ The visitor opens the hello web starter, reviews the home page, and follows the workflow page to confirm that Topogram can model more than one generated screen.
@@ -0,0 +1,30 @@
1
+ projection proj_ui_shared {
2
+ name "Hello Shared UI"
3
+ description "Platform-neutral UI semantics for the hello web starter"
4
+ platform ui_shared
5
+
6
+ realizes [cap_view_hello]
7
+ outputs [ui_contract]
8
+
9
+ ui_app_shell {
10
+ brand "Topogram Hello"
11
+ shell topbar
12
+ global_search false
13
+ notifications false
14
+ account_menu false
15
+ footer none
16
+ }
17
+
18
+ ui_screens {
19
+ screen hello_home kind detail title "Hello Web" load cap_view_hello view_shape shape_output_hello loading_state none
20
+ screen hello_workflow kind detail title "Hello Workflow" load cap_view_hello view_shape shape_output_hello loading_state none
21
+ }
22
+
23
+ ui_navigation {
24
+ group hello label "Hello" placement primary pattern primary
25
+ screen hello_home group hello label "Home" order 10 visible true default true sitemap include pattern primary
26
+ screen hello_workflow group hello label "Workflow" order 20 visible true sitemap include pattern primary
27
+ }
28
+
29
+ status active
30
+ }
@@ -0,0 +1,27 @@
1
+ projection proj_ui_web {
2
+ name "Hello Vanilla Web"
3
+ description "Vanilla HTML/CSS/JS realization for the hello web starter"
4
+ platform ui_web
5
+
6
+ realizes [proj_ui_shared, cap_view_hello]
7
+ outputs [ui_contract, web_app]
8
+
9
+ ui_routes {
10
+ screen hello_home path /
11
+ screen hello_workflow path /workflow
12
+ }
13
+
14
+ ui_web {
15
+ screen hello_home shell topbar
16
+ screen hello_home layout detail_page
17
+ screen hello_workflow layout detail_page
18
+ }
19
+
20
+ generator_defaults {
21
+ profile vanilla
22
+ language javascript
23
+ styling css
24
+ }
25
+
26
+ status active
27
+ }
@@ -0,0 +1,11 @@
1
+ shape shape_output_hello {
2
+ name "Hello Output"
3
+ description "Small content shape for the hello web starter"
4
+
5
+ fields {
6
+ title text required
7
+ message text required
8
+ }
9
+
10
+ status active
11
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "id": "@topogram/starter-hello-web",
3
+ "version": "0.1.7",
4
+ "kind": "starter",
5
+ "description": "Vanilla HTML/CSS/JS starter with two pages and one workflow.",
6
+ "topogramVersion": "0.1",
7
+ "includesExecutableImplementation": false
8
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "version": "0.1",
3
+ "outputs": {
4
+ "app": {
5
+ "path": "./app",
6
+ "ownership": "generated"
7
+ }
8
+ },
9
+ "topology": {
10
+ "components": [
11
+ {
12
+ "id": "app_web",
13
+ "type": "web",
14
+ "projection": "proj_ui_web",
15
+ "generator": {
16
+ "id": "@topogram/generator-vanilla-web",
17
+ "version": "1",
18
+ "package": "@topogram/generator-vanilla-web"
19
+ },
20
+ "port": 5173
21
+ }
22
+ ]
23
+ }
24
+ }