@crombolo/cli 0.13.1 → 0.14.1
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/bin/crombolo.ts +289 -22
- package/package.json +7 -7
- package/src/operations/commands.ts +108 -4
- package/templates/basic/bundle/package.json +1 -1
- package/templates/demo/harbourstone/bundle/content/bundle.json +11 -4
- package/templates/demo/harbourstone/bundle/content/nodes/40107d59-f3e9-4592-aee8-5b03d4586cbd.json +7 -0
- package/templates/demo/harbourstone/bundle/content/nodes/6ad8f0f3-9334-47f1-b805-80c4b4b4fa88.json +7 -0
- package/templates/demo/harbourstone/bundle/content/nodes/9468d1b4-f521-48ef-b044-2ab07b461b96.json +42 -0
- package/templates/demo/harbourstone/bundle/content/nodes/a562f0a2-cb6e-4ead-a1ce-4d180632419f.json +7 -0
- package/templates/demo/harbourstone/bundle/content/nodes/cd681b4b-9c4e-4624-9c13-450aa6a9c135.json +7 -0
- package/templates/demo/harbourstone/bundle/package.json +1 -1
- package/templates/demo/harbourstone/files/components/pages/searchPage.tsx +76 -0
- package/templates/demo/harbourstone/files/components/shared/site-header.tsx +13 -1
- package/templates/demo/harbourstone/files/css/site.css +113 -0
- package/templates/demo/harbourstone/files/schema/content-types/contact-page.toml +2 -0
- package/templates/demo/harbourstone/files/schema/content-types/content-page.toml +2 -0
- package/templates/demo/harbourstone/files/schema/content-types/expression.toml +8 -0
- package/templates/demo/harbourstone/files/schema/content-types/home-page.toml +5 -1
- package/templates/demo/harbourstone/files/schema/content-types/search-page.toml +33 -0
- package/templates/demo/harbourstone/files/schema/content-types/whisky-list.toml +2 -0
- package/templates/starter/bundle/content/bundle.json +12 -5
- package/templates/starter/bundle/content/nodes/c720ef2a-b5c8-48ec-a504-065e8188d4aa.json +28 -0
- package/templates/starter/bundle/package.json +1 -1
- package/templates/starter/files/components/pages/searchPage.tsx +57 -0
- package/templates/starter/files/components/shared/site-header.tsx +11 -2
- package/templates/starter/files/css/site.css +66 -0
- package/templates/starter/files/schema/content-types/content-page.toml +4 -1
- package/templates/starter/files/schema/content-types/search-page.toml +21 -0
|
@@ -75,6 +75,72 @@ main {
|
|
|
75
75
|
font-weight: 600;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
.site-search input,
|
|
79
|
+
.search-form input {
|
|
80
|
+
font: inherit;
|
|
81
|
+
padding: 0.4rem 0.75rem;
|
|
82
|
+
border: 1px solid var(--border);
|
|
83
|
+
border-radius: 0.375rem;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.search-form {
|
|
87
|
+
display: flex;
|
|
88
|
+
gap: 0.5rem;
|
|
89
|
+
margin-bottom: 1.5rem;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.search-form input {
|
|
93
|
+
flex: 1;
|
|
94
|
+
max-width: 32rem;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.search-form button {
|
|
98
|
+
font: inherit;
|
|
99
|
+
padding: 0.4rem 1rem;
|
|
100
|
+
border: 0;
|
|
101
|
+
border-radius: 0.375rem;
|
|
102
|
+
background: var(--accent);
|
|
103
|
+
color: #fff;
|
|
104
|
+
cursor: pointer;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.search-summary {
|
|
108
|
+
color: var(--muted);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.search-results {
|
|
112
|
+
list-style: none;
|
|
113
|
+
padding: 0;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.search-results li {
|
|
117
|
+
padding: 1rem 0;
|
|
118
|
+
border-bottom: 1px solid var(--border);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.search-results li > a {
|
|
122
|
+
font-weight: 600;
|
|
123
|
+
font-size: 1.1rem;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.search-results p {
|
|
127
|
+
margin: 0.25rem 0 0;
|
|
128
|
+
color: var(--muted);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.search-results mark {
|
|
132
|
+
background: none;
|
|
133
|
+
color: var(--text);
|
|
134
|
+
font-weight: 600;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.search-pages {
|
|
138
|
+
display: flex;
|
|
139
|
+
gap: 1.5rem;
|
|
140
|
+
align-items: center;
|
|
141
|
+
margin-top: 1.5rem;
|
|
142
|
+
}
|
|
143
|
+
|
|
78
144
|
h1 {
|
|
79
145
|
font-size: 2.25rem;
|
|
80
146
|
line-height: 1.2;
|
|
@@ -5,7 +5,7 @@ name = "Content Page"
|
|
|
5
5
|
description = "A page with a main column and a sidebar"
|
|
6
6
|
icon = "icon-document"
|
|
7
7
|
allow-at-root = true
|
|
8
|
-
allow-children = ["contentPage"]
|
|
8
|
+
allow-children = ["contentPage", "searchPage"]
|
|
9
9
|
compositions = ["seoFields"]
|
|
10
10
|
components = ["pages/contentPage"]
|
|
11
11
|
default-component = "pages/contentPage"
|
|
@@ -20,6 +20,7 @@ name = "Title"
|
|
|
20
20
|
description = "Shown as the page heading"
|
|
21
21
|
type = "textstring"
|
|
22
22
|
mandatory = true
|
|
23
|
+
site-search = "high"
|
|
23
24
|
|
|
24
25
|
[[tab.property]]
|
|
25
26
|
key = "7028eeb8-9739-4cc9-b3e1-8b424dd1e929"
|
|
@@ -42,6 +43,7 @@ key = "d049eba5-ae38-4fe9-9b05-64d1fa50b35e"
|
|
|
42
43
|
alias = "sidebarHeading"
|
|
43
44
|
name = "Heading"
|
|
44
45
|
type = "textstring"
|
|
46
|
+
site-search = "low"
|
|
45
47
|
|
|
46
48
|
[[tab.property]]
|
|
47
49
|
key = "fff4d170-e192-419a-9490-59affd2f6148"
|
|
@@ -49,3 +51,4 @@ alias = "sidebarText"
|
|
|
49
51
|
name = "Text"
|
|
50
52
|
description = "Leave empty for a single-column page"
|
|
51
53
|
type = "richtext"
|
|
54
|
+
site-search = "low"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[content-type]
|
|
2
|
+
key = "938c7f88-8df2-45d2-a4a2-49ecb3e68db7"
|
|
3
|
+
alias = "searchPage"
|
|
4
|
+
name = "Search Page"
|
|
5
|
+
description = "Lists the pages matching what a visitor searched for"
|
|
6
|
+
icon = "icon-search"
|
|
7
|
+
compositions = ["seoFields"]
|
|
8
|
+
components = ["pages/searchPage"]
|
|
9
|
+
default-component = "pages/searchPage"
|
|
10
|
+
site-search = false
|
|
11
|
+
|
|
12
|
+
[[tab]]
|
|
13
|
+
name = "Content"
|
|
14
|
+
|
|
15
|
+
[[tab.property]]
|
|
16
|
+
key = "324e2bbc-2c0e-4984-a5d0-37032a5bec74"
|
|
17
|
+
alias = "title"
|
|
18
|
+
name = "Title"
|
|
19
|
+
description = "Shown as the page heading"
|
|
20
|
+
type = "textstring"
|
|
21
|
+
mandatory = true
|