@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 +27 -0
- package/package.json +21 -0
- package/topogram/actors/actor-visitor.tg +6 -0
- package/topogram/capabilities/cap-view-hello.tg +9 -0
- package/topogram/docs/workflows/workflow-hello.md +18 -0
- package/topogram/projections/proj-ui-shared.tg +30 -0
- package/topogram/projections/proj-ui-web.tg +27 -0
- package/topogram/shapes/shape-output-hello.tg +11 -0
- package/topogram-template.json +8 -0
- package/topogram.project.json +24 -0
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,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,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
|
+
}
|