@d-zero/scaffold 5.0.0-beta.3 → 5.0.0-beta.5

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.
Files changed (31) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/__assets/_libs/component/c-content-main.css +21 -11
  3. package/__assets/_libs/component/c-nav-breadcrumb.pug +17 -39
  4. package/__assets/_libs/component/c-pagination.css +2 -0
  5. package/__assets/_libs/component/c-title-page.pug +1 -1
  6. package/__assets/_libs/data/breadcrumbs.js +77 -0
  7. package/__assets/_libs/data/titlelist.js +16 -0
  8. package/__assets/_libs/layouts/home.pug +17 -0
  9. package/__assets/_libs/layouts/sub.pug +25 -0
  10. package/__assets/_libs/mixin/meta.pug +25 -21
  11. package/__assets/_libs/style/general/all.css +1 -0
  12. package/__assets/htdocs/__tmpl/000_home.json +4 -0
  13. package/__assets/htdocs/__tmpl/000_home.pug +2 -20
  14. package/__assets/htdocs/__tmpl/100_sub.json +4 -0
  15. package/__assets/htdocs/__tmpl/100_sub.pug +1 -23
  16. package/__assets/htdocs/__tmpl/200_blog_index.json +5 -0
  17. package/__assets/htdocs/__tmpl/200_blog_index.pug +14 -40
  18. package/__assets/htdocs/__tmpl/210_blog_index.json +5 -0
  19. package/__assets/htdocs/__tmpl/210_blog_index.pug +14 -40
  20. package/__assets/htdocs/__tmpl/300_form_input.json +4 -0
  21. package/__assets/htdocs/__tmpl/300_form_input.pug +529 -568
  22. package/__assets/htdocs/__tmpl/301_form_confirm.json +4 -0
  23. package/__assets/htdocs/__tmpl/301_form_confirm.pug +188 -212
  24. package/__assets/htdocs/__tmpl/302_form_complete.json +4 -0
  25. package/__assets/htdocs/__tmpl/302_form_complete.pug +3 -27
  26. package/__assets/htdocs/sample/index.html +15 -0
  27. package/__assets/htdocs/sub-folder.test/index.pug +1 -3
  28. package/burgereditor.config.js +2 -1
  29. package/eleventy.config.mjs +7 -1
  30. package/markuplint.config.js +4 -0
  31. package/package.json +24 -17
@@ -0,0 +1,4 @@
1
+ {
2
+ "layout": "sub.pug",
3
+ "title": "メールフォーム確認ページ"
4
+ }
@@ -1,213 +1,189 @@
1
- html(lang="ja")
2
- head
3
- include /mixin/meta.pug
4
- +meta("__ページタイトル__ | __サイトタイトル__")
5
- body.c-page-sub
6
- .c-page-sub__base
7
- .c-page-sub__header
8
- include /component/c-header.pug
9
- .c-page-sub__nav-global
10
- include /component/c-nav-global.pug
1
+ .c-content-main
2
+ .cc-form-description
3
+ p 以下の内容を送信します。
11
4
 
12
- .c-page-sub__main
13
- main
14
- .c-page-sub__content
15
- .c-page-sub__title-page
16
- include /component/c-title-page.pug
17
- .c-page-sub__nav-breadcrumb
18
- include /component/c-nav-breadcrumb.pug
19
- .c-page-sub__content-main
20
- .c-content-main
21
- .cc-form-description
22
- p 以下の内容を送信します。
23
-
24
- form#MailMessageIndexForm.cc-form(
25
- action="__PATH_TO__"
26
- enctype="multipart/form-data"
27
- method="post"
28
- accept-charset="utf-8"
29
- novalidate)
30
- input(type="hidden" name="_method" value="POST")
31
- input#Token__TOKEN__(type="hidden" name="data[_Token][key]" value="__TOKEN__")
32
- input#MailMessageMode(type="hidden" name="data[MailMessage][mode]")
33
- .cc-form-field-list
34
- .cc-form-fieldset
35
- div
36
- .cc-form-fieldset-heading
37
- span フィールドグループ名
38
- span.required 必須
39
- .cc-form-fieldset-body
40
- .mail-field(data-type="text")
41
- span.mail-before-attachment 前見出し
42
- span.mail-input __入力内容__
43
- span.mail-after-attachment 後見出し
44
- .mail-field(data-type="text")
45
- span.mail-before-attachment
46
- span.mail-input __入力内容__
47
- span.mail-after-attachment 後見出し
48
- .cc-form-fieldset
49
- div
50
- .cc-form-fieldset-heading
51
- span 単体フィールド名
52
- span.required 必須
53
- .cc-form-fieldset-body
54
- .mail-field(data-type="text")
55
- span.mail-before-attachment 前見出し
56
- span.mail-input __入力内容__
57
- span.mail-after-attachment 後見出し
58
- .cc-form-fieldset
59
- div
60
- .cc-form-fieldset-heading
61
- span 氏名
62
- span.required 必須
63
- .cc-form-fieldset-body
64
- .mail-field(data-type="text")
65
- span.mail-before-attachment 姓
66
- span.mail-input __入力内容__
67
- span.mail-after-attachment
68
- .mail-field(data-type="text")
69
- span.mail-before-attachment
70
- span.mail-input __入力内容__
71
- span.mail-after-attachment
72
- .cc-form-fieldset
73
- div
74
- .cc-form-fieldset-heading
75
- span フリガナ
76
- span.optional 任意
77
- .cc-form-fieldset-body
78
- .mail-field(data-type="text")
79
- span.mail-before-attachment セイ
80
- span.mail-input __入力内容__
81
- span.mail-after-attachment
82
- .mail-field(data-type="text")
83
- span.mail-before-attachment メイ
84
- span.mail-input __入力内容__
85
- span.mail-after-attachment
86
- .cc-form-fieldset
87
- div
88
- .cc-form-fieldset-heading
89
- span 住所
90
- span.optional 任意
91
- .cc-form-fieldset-body
92
- .mail-field(data-type="text")
93
- span.mail-before-attachment
94
- span.mail-input __入力内容__
95
- span.mail-after-attachment
96
- .mail-field(data-type="select")
97
- span.mail-before-attachment 都道府県
98
- span.mail-input __入力内容__
99
- span.mail-after-attachment
100
- .mail-field(data-type="text")
101
- span.mail-before-attachment 市区町村
102
- span.mail-input __入力内容__
103
- span.mail-after-attachment
104
- .mail-field(data-type="text")
105
- span.mail-before-attachment 番地
106
- span.mail-input __入力内容__
107
- span.mail-after-attachment
108
- .cc-form-fieldset
109
- div
110
- .cc-form-fieldset-heading
111
- span チェックボックス単体
112
- span.required 必須
113
- .cc-form-fieldset-body
114
- .mail-field(data-type="checkbox")
115
- span.mail-before-attachment チェックボックス前見出し
116
- div
117
- ul
118
- li __選択項目1__
119
- li __選択項目2__
120
- .cc-form-fieldset
121
- div
122
- .cc-form-fieldset-heading
123
- span チェックボックス
124
- span.required 必須
125
- .cc-form-fieldset-body
126
- .mail-field(data-type="checkbox")
127
- div
128
- ul
129
- li __選択項目1__
130
- li __選択項目2__
131
- .mail-field(data-type="text")
132
- span.mail-before-attachment その他
133
- span.mail-input __入力内容__
134
- span.mail-after-attachment
135
- .cc-form-fieldset
136
- div
137
- .cc-form-fieldset-heading
138
- span 電話番号
139
- .cc-form-fieldset-body
140
- .mail-field(data-type="text")
141
- span.mail-before-attachment
142
- span.mail-input __入力内容__
143
- span.mail-after-attachment
144
- .cc-form-fieldset
145
- div
146
- .cc-form-fieldset-heading
147
- span メールアドレス
148
- span.required 必須
149
- .cc-form-fieldset-body
150
- .mail-field(data-type="text")
151
- span.mail-before-attachment
152
- span.mail-input __入力内容__
153
- span.mail-after-attachment
154
- .cc-form-fieldset
155
- div
156
- .cc-form-fieldset-heading
157
- span 生まれ年
158
- span.required 必須
159
- .cc-form-fieldset-body
160
- .mail-field(data-type="select")
161
- span.mail-before-attachment
162
- span.mail-input __入力内容__
163
- span.mail-after-attachment
164
- .cc-form-fieldset
165
- div
166
- .cc-form-fieldset-heading
167
- span 性別
168
- span.optional 任意
169
- .cc-form-fieldset-body
170
- .mail-field(data-type="radio")
171
- span.mail-before-attachment
172
- .mail-radio
173
- span.mail-input __選択項目__
174
- .cc-form-fieldset
175
- div
176
- .cc-form-fieldset-heading
177
- span テキストエリア
178
- span.optional 任意
179
- .cc-form-fieldset-attention
180
- .mail-attention 注意書き
181
- .cc-form-fieldset-body
182
- .mail-field(data-type="textarea")
183
- span.mail-before-attachment
184
- p.mail-input __入力内容__
185
- span.mail-after-attachment
186
- .cc-form-fieldset
187
- div
188
- .cc-form-fieldset-heading
189
- span テキストエリア
190
- span.optional 任意
191
- .cc-form-fieldset-body
192
- .mail-field(data-type="textarea")
193
- span.mail-before-attachment 前見出し
194
- p.mail-input __入力内容__
195
- span.mail-after-attachment 後見出し
196
- .cc-form-fieldset
197
- div
198
- .cc-form-fieldset-heading
199
- span ファイル添付
200
- span.optional 任意
201
- .cc-form-fieldset-body
202
- .mail-field(data-type="file")
203
- span.mail-before-attachment 前見出し
204
- span.mail-input __ファイル名__
205
- span.mail-after-attachment 後見出し
206
- .cc-form-submit
207
- button(type="submit"): span 入力画面に戻る
208
- button(type="submit"): span 送信する
209
-
210
- .c-page-sub__nav-sitemap
211
- include /component/c-nav-sitemap.pug
212
- .c-page-sub__footer
213
- include /component/c-footer.pug
5
+ form#MailMessageIndexForm.cc-form(
6
+ action="__PATH_TO__"
7
+ enctype="multipart/form-data"
8
+ method="post"
9
+ accept-charset="utf-8"
10
+ novalidate)
11
+ input(type="hidden" name="_method" value="POST")
12
+ input#Token__TOKEN__(type="hidden" name="data[_Token][key]" value="__TOKEN__")
13
+ input#MailMessageMode(type="hidden" name="data[MailMessage][mode]")
14
+ .cc-form-field-list
15
+ .cc-form-fieldset
16
+ div
17
+ .cc-form-fieldset-heading
18
+ span フィールドグループ名
19
+ span.required 必須
20
+ .cc-form-fieldset-body
21
+ .mail-field(data-type="text")
22
+ span.mail-before-attachment 前見出し
23
+ span.mail-input __入力内容__
24
+ span.mail-after-attachment 後見出し
25
+ .mail-field(data-type="text")
26
+ span.mail-before-attachment
27
+ span.mail-input __入力内容__
28
+ span.mail-after-attachment 後見出し
29
+ .cc-form-fieldset
30
+ div
31
+ .cc-form-fieldset-heading
32
+ span 単体フィールド名
33
+ span.required 必須
34
+ .cc-form-fieldset-body
35
+ .mail-field(data-type="text")
36
+ span.mail-before-attachment 前見出し
37
+ span.mail-input __入力内容__
38
+ span.mail-after-attachment 後見出し
39
+ .cc-form-fieldset
40
+ div
41
+ .cc-form-fieldset-heading
42
+ span 氏名
43
+ span.required 必須
44
+ .cc-form-fieldset-body
45
+ .mail-field(data-type="text")
46
+ span.mail-before-attachment 姓
47
+ span.mail-input __入力内容__
48
+ span.mail-after-attachment
49
+ .mail-field(data-type="text")
50
+ span.mail-before-attachment
51
+ span.mail-input __入力内容__
52
+ span.mail-after-attachment
53
+ .cc-form-fieldset
54
+ div
55
+ .cc-form-fieldset-heading
56
+ span フリガナ
57
+ span.optional 任意
58
+ .cc-form-fieldset-body
59
+ .mail-field(data-type="text")
60
+ span.mail-before-attachment セイ
61
+ span.mail-input __入力内容__
62
+ span.mail-after-attachment
63
+ .mail-field(data-type="text")
64
+ span.mail-before-attachment メイ
65
+ span.mail-input __入力内容__
66
+ span.mail-after-attachment
67
+ .cc-form-fieldset
68
+ div
69
+ .cc-form-fieldset-heading
70
+ span 住所
71
+ span.optional 任意
72
+ .cc-form-fieldset-body
73
+ .mail-field(data-type="text")
74
+ span.mail-before-attachment
75
+ span.mail-input __入力内容__
76
+ span.mail-after-attachment
77
+ .mail-field(data-type="select")
78
+ span.mail-before-attachment 都道府県
79
+ span.mail-input __入力内容__
80
+ span.mail-after-attachment
81
+ .mail-field(data-type="text")
82
+ span.mail-before-attachment 市区町村
83
+ span.mail-input __入力内容__
84
+ span.mail-after-attachment
85
+ .mail-field(data-type="text")
86
+ span.mail-before-attachment 番地
87
+ span.mail-input __入力内容__
88
+ span.mail-after-attachment
89
+ .cc-form-fieldset
90
+ div
91
+ .cc-form-fieldset-heading
92
+ span チェックボックス単体
93
+ span.required 必須
94
+ .cc-form-fieldset-body
95
+ .mail-field(data-type="checkbox")
96
+ span.mail-before-attachment チェックボックス前見出し
97
+ div
98
+ ul
99
+ li __選択項目1__
100
+ li __選択項目2__
101
+ .cc-form-fieldset
102
+ div
103
+ .cc-form-fieldset-heading
104
+ span チェックボックス
105
+ span.required 必須
106
+ .cc-form-fieldset-body
107
+ .mail-field(data-type="checkbox")
108
+ div
109
+ ul
110
+ li __選択項目1__
111
+ li __選択項目2__
112
+ .mail-field(data-type="text")
113
+ span.mail-before-attachment その他
114
+ span.mail-input __入力内容__
115
+ span.mail-after-attachment
116
+ .cc-form-fieldset
117
+ div
118
+ .cc-form-fieldset-heading
119
+ span 電話番号
120
+ .cc-form-fieldset-body
121
+ .mail-field(data-type="text")
122
+ span.mail-before-attachment
123
+ span.mail-input __入力内容__
124
+ span.mail-after-attachment
125
+ .cc-form-fieldset
126
+ div
127
+ .cc-form-fieldset-heading
128
+ span メールアドレス
129
+ span.required 必須
130
+ .cc-form-fieldset-body
131
+ .mail-field(data-type="text")
132
+ span.mail-before-attachment
133
+ span.mail-input __入力内容__
134
+ span.mail-after-attachment
135
+ .cc-form-fieldset
136
+ div
137
+ .cc-form-fieldset-heading
138
+ span 生まれ年
139
+ span.required 必須
140
+ .cc-form-fieldset-body
141
+ .mail-field(data-type="select")
142
+ span.mail-before-attachment
143
+ span.mail-input __入力内容__
144
+ span.mail-after-attachment
145
+ .cc-form-fieldset
146
+ div
147
+ .cc-form-fieldset-heading
148
+ span 性別
149
+ span.optional 任意
150
+ .cc-form-fieldset-body
151
+ .mail-field(data-type="radio")
152
+ span.mail-before-attachment
153
+ .mail-radio
154
+ span.mail-input __選択項目__
155
+ .cc-form-fieldset
156
+ div
157
+ .cc-form-fieldset-heading
158
+ span テキストエリア
159
+ span.optional 任意
160
+ .cc-form-fieldset-attention
161
+ .mail-attention 注意書き
162
+ .cc-form-fieldset-body
163
+ .mail-field(data-type="textarea")
164
+ span.mail-before-attachment
165
+ p.mail-input __入力内容__
166
+ span.mail-after-attachment
167
+ .cc-form-fieldset
168
+ div
169
+ .cc-form-fieldset-heading
170
+ span テキストエリア
171
+ span.optional 任意
172
+ .cc-form-fieldset-body
173
+ .mail-field(data-type="textarea")
174
+ span.mail-before-attachment 前見出し
175
+ p.mail-input __入力内容__
176
+ span.mail-after-attachment 後見出し
177
+ .cc-form-fieldset
178
+ div
179
+ .cc-form-fieldset-heading
180
+ span ファイル添付
181
+ span.optional 任意
182
+ .cc-form-fieldset-body
183
+ .mail-field(data-type="file")
184
+ span.mail-before-attachment 前見出し
185
+ span.mail-input __ファイル名__
186
+ span.mail-after-attachment 後見出し
187
+ .cc-form-submit
188
+ button(type="submit"): span 入力画面に戻る
189
+ button(type="submit"): span 送信する
@@ -0,0 +1,4 @@
1
+ {
2
+ "layout": "sub.pug",
3
+ "title": "メールフォーム完了ページ"
4
+ }
@@ -1,27 +1,3 @@
1
- html(lang="ja")
2
- head
3
- include /mixin/meta.pug
4
- +meta("__ページタイトル__ | __サイトタイトル__")
5
- body.c-page-sub
6
- .c-page-sub__base
7
- .c-page-sub__header
8
- include /component/c-header.pug
9
- .c-page-sub__nav-global
10
- include /component/c-nav-global.pug
11
-
12
- .c-page-sub__main
13
- main
14
- .c-page-sub__content
15
- .c-page-sub__title-page
16
- include /component/c-title-page.pug
17
- .c-page-sub__nav-breadcrumb
18
- include /component/c-nav-breadcrumb.pug
19
- .c-page-sub__content-main
20
- .c-content-main
21
- .cc-form-description
22
- p 送信ありがとうございました。
23
-
24
- .c-page-sub__nav-sitemap
25
- include /component/c-nav-sitemap.pug
26
- .c-page-sub__footer
27
- include /component/c-footer.pug
1
+ .c-content-main
2
+ .cc-form-description
3
+ p 送信ありがとうございました。
@@ -0,0 +1,15 @@
1
+ ---
2
+ layout: sub.pug
3
+ title: サンプルページ
4
+ description: サンプルページの説明
5
+ ---
6
+
7
+ <div class="c-content-main">
8
+ <div data-bge-container="inline:immutable" data-bge-name="title">
9
+ <div data-bge-container-frame="">
10
+ <div data-bge-item="">
11
+ <div data-bgi="title-h2" data-bgi-ver="0.0.0"><h2 class="bge-title-h2" data-bge="title-h2">サンプルページ</h2></div>
12
+ </div>
13
+ </div>
14
+ </div>
15
+ </div>
@@ -1,8 +1,6 @@
1
- include /mixin/meta.pug
2
-
3
1
  html(lang="ja")
4
2
  head
5
- +meta("__テスト用ファイル__")
3
+ include /mixin/meta.pug
6
4
  body
7
5
  main
8
6
  h1 Hello World!
@@ -8,7 +8,8 @@ config();
8
8
  * @type {import('@burger-editor/local').LocalServerConfig}
9
9
  */
10
10
  export default {
11
- documentRoot: path.join(import.meta.dirname, 'htdocs'),
11
+ documentRoot: path.join(import.meta.dirname, '__assets', 'htdocs'),
12
+ assetsRoot: path.join(import.meta.dirname, 'htdocs'),
12
13
  lang: 'ja',
13
14
  stylesheets: ['/css/style.css'],
14
15
  classList: ['c-content-main'],
@@ -22,9 +22,15 @@ export default function (eleventyConfig) {
22
22
 
23
23
  /**
24
24
  * Prettier options.
25
+ *
26
+ * If `true`, use the prettier config in the project root.
27
+ *
28
+ * If `false`, disable prettier.
29
+ *
30
+ * If `object`, use the options. Merge with the prettier config in the project root.
25
31
  * @see https://prettier.io/docs/en/options
26
32
  */
27
- // prettier: false,
33
+ prettier: true,
28
34
 
29
35
  /**
30
36
  * Minifier options.
@@ -9,6 +9,10 @@ const extended = extendsConfig({
9
9
  */
10
10
  export default {
11
11
  ...extended,
12
+ parserOptions: {
13
+ ...extended.parserOptions,
14
+ ignoreFrontMatter: true,
15
+ },
12
16
  nodeRules: [
13
17
  ...extended.nodeRules,
14
18
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d-zero/scaffold",
3
- "version": "5.0.0-beta.3",
3
+ "version": "5.0.0-beta.5",
4
4
  "description": "Frontend scaffold files of D-ZERO Co., Ltd.",
5
5
  "repository": "https://github.com/d-zero-dev/frontend-env.git",
6
6
  "author": "D-ZERO Co., Ltd.",
@@ -10,8 +10,13 @@
10
10
  },
11
11
  "type": "module",
12
12
  "main": "package.json",
13
+ "production": {
14
+ "host": "https://example.com",
15
+ "siteName": "__サイト名__"
16
+ },
13
17
  "scripts": {
14
- "build": "npx @d-zero/builder",
18
+ "build": "yarn lint && npx @d-zero/builder",
19
+ "build:only": "npx @d-zero/builder",
15
20
  "dev": "npx eleventy --serve --watch",
16
21
  "d": "yarn dev",
17
22
  "lint": "run-s \"lint:*\"",
@@ -38,30 +43,32 @@
38
43
  "last 2 ios_saf version"
39
44
  ],
40
45
  "devDependencies": {
41
- "@burger-editor/local": "4.0.0-alpha.9",
42
- "@d-zero/builder": "5.0.0-beta.3",
43
- "@d-zero/linters": "5.0.0-alpha.65",
44
- "@d-zero/postcss-config": "5.0.0-beta.3",
46
+ "@burger-editor/local": "4.0.0-alpha.20",
47
+ "@d-zero/builder": "5.0.0-beta.5",
48
+ "@d-zero/linters": "5.0.0-alpha.71",
49
+ "@d-zero/postcss-config": "5.0.0-beta.5",
45
50
  "@d-zero/tsconfig": "0.5.0",
46
- "@types/node": "22.16.3",
47
- "cross-env": "7.0.3",
51
+ "@types/node": "24.5.1",
52
+ "cross-env": "10.0.0",
53
+ "dotenv": "17.2.2",
48
54
  "husky": "9.1.7",
55
+ "jsdom": "27.0.0",
49
56
  "npm-run-all2": "8.0.4",
50
- "typescript": "5.8.3",
57
+ "typescript": "5.9.2",
51
58
  "vitest": "3.2.4"
52
59
  },
53
60
  "dependencies": {
54
- "@burger-editor/css": "4.0.0-alpha.9",
55
- "@d-zero/custom-components": "5.0.0-beta.3",
61
+ "@burger-editor/css": "4.0.0-alpha.20",
62
+ "@d-zero/custom-components": "5.0.0-beta.5",
56
63
  "dialog-toggle-events-polyfill": "1.1.4",
57
- "invokers-polyfill": "0.5.5",
58
- "kiso.css": "1.2.1",
64
+ "invokers-polyfill": "0.5.7",
65
+ "kiso.css": "1.2.2",
59
66
  "tslib": "2.8.1"
60
67
  },
61
- "packageManager": "yarn@4.9.2",
68
+ "packageManager": "yarn@4.9.4",
62
69
  "volta": {
63
- "node": "22.17.0",
64
- "yarn": "4.9.2"
70
+ "node": "24.8.0",
71
+ "yarn": "4.9.4"
65
72
  },
66
- "gitHead": "3718c3c21f1ccca8242039452f10226a6b0bd1e2"
73
+ "gitHead": "d1c2f9a70e6d4c4d72e823489b1cc79468b20965"
67
74
  }