@caweb/template 1.0.17 → 1.0.19

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 (2) hide show
  1. package/package.json +20 -19
  2. package/patterns/404.html +60 -29
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caweb/template",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "author": "CAWebPublishing",
5
5
  "description": "CAWebPublishing Template",
6
6
  "license": "ISC",
@@ -23,7 +23,7 @@
23
23
  "template"
24
24
  ],
25
25
  "bugs": {
26
- "url": "https://github.com/CAWebPublishing/webpack/issues"
26
+ "url": "https://github.com/CAWebPublishing/template/issues"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public"
@@ -31,26 +31,27 @@
31
31
  "scripts": {
32
32
  "webpack": "webpack",
33
33
  "test": "echo \"Error: run tests from root\" && exit 0",
34
- "serve": "webpack serve --config ./node_modules/@caweb/webpack/webpack.config.js ./node_modules/@caweb/webpack/tests/webpack.tests.js --merge",
35
- "serve:blank": "set NODE_OPTIONS='--template ./patterns/blank.html' && npm run serve",
36
- "serve:delta": "set NODE_OPTIONS='--template ./patterns/default.html --scheme delta' && npm run serve",
37
- "serve:eureka": "set NODE_OPTIONS='--template ./patterns/default.html --scheme eureka' && npm run serve",
38
- "serve:mono": "set NODE_OPTIONS='--template ./patterns/default.html --scheme mono' && npm run serve",
39
- "serve:oceanside": "set NODE_OPTIONS='--template ./patterns/default.html --scheme oceanside' && npm run serve",
40
- "serve:orangecounty": "set NODE_OPTIONS='--template ./patterns/default.html --scheme orangecounty' && npm run serve",
41
- "serve:pasorobles": "set NODE_OPTIONS='--template ./patterns/default.html --scheme pasorobles' && npm run serve",
42
- "serve:sacramento": "set NODE_OPTIONS='--template ./patterns/default.html --scheme sacramento' && npm run serve",
43
- "serve:santabarbara": "set NODE_OPTIONS='--template ./patterns/default.html --scheme santabarbara' && npm run serve",
44
- "serve:santacruz": "set NODE_OPTIONS='--template ./patterns/default.html --scheme santacruz' && npm run serve",
45
- "serve:shasta": "set NODE_OPTIONS='--template ./patterns/default.html --scheme shasta' && npm run serve",
46
- "serve:sierra": "set NODE_OPTIONS='--template ./patterns/default.html --scheme sierra' && npm run serve",
47
- "serve:trinity": "set NODE_OPTIONS='--template ./patterns/default.html --scheme trinity' && npm run serve"
34
+ "serve": "node -e \"if (!process.env.CAWEB_NODE_OPTIONS) { console.error('\\x1b[31mDont run serve directly, use one of the serve:* scripts\\x1b[0m');process.exit(1);}\" && webpack serve --config ./node_modules/@caweb/webpack/webpack.config.js ./node_modules/@caweb/webpack/tests/webpack.tests.js --merge",
35
+ "serve:blank": "cross-env CAWEB_NODE_OPTIONS='--template ./patterns/blank.html' npm run serve",
36
+ "serve:delta": "cross-env CAWEB_NODE_OPTIONS='--template ./patterns/default.html --scheme delta' npm run serve",
37
+ "serve:eureka": "cross-env CAWEB_NODE_OPTIONS='--template ./patterns/default.html --scheme eureka' npm run serve",
38
+ "serve:mono": "cross-env CAWEB_NODE_OPTIONS='--template ./patterns/default.html --scheme mono' npm run serve",
39
+ "serve:oceanside": "cross-env CAWEB_NODE_OPTIONS='--template ./patterns/default.html --scheme oceanside' npm run serve",
40
+ "serve:orangecounty": "cross-env CAWEB_NODE_OPTIONS='--template ./patterns/default.html --scheme orangecounty' npm run serve",
41
+ "serve:pasorobles": "cross-env CAWEB_NODE_OPTIONS='--template ./patterns/default.html --scheme pasorobles' npm run serve",
42
+ "serve:sacramento": "cross-env CAWEB_NODE_OPTIONS='--template ./patterns/default.html --scheme sacramento' npm run serve",
43
+ "serve:santabarbara": "cross-env CAWEB_NODE_OPTIONS='--template ./patterns/default.html --scheme santabarbara' npm run serve",
44
+ "serve:santacruz": "cross-env CAWEB_NODE_OPTIONS='--template ./patterns/default.html --scheme santacruz' npm run serve",
45
+ "serve:shasta": "cross-env CAWEB_NODE_OPTIONS='--template ./patterns/default.html --scheme shasta' npm run serve",
46
+ "serve:sierra": "cross-env CAWEB_NODE_OPTIONS='--template ./patterns/default.html --scheme sierra' npm run serve",
47
+ "serve:trinity": "cross-env CAWEB_NODE_OPTIONS='--template ./patterns/default.html --scheme trinity' npm run serve"
48
48
  },
49
49
  "devDependencies": {
50
- "@caweb/framework": "^1.9.9",
51
- "@caweb/icon-library": "^1.1.7"
50
+ "@caweb/framework": "^1.9.10",
51
+ "@caweb/icon-library": "^1.1.7",
52
+ "cross-env": "^10.1.0"
52
53
  },
53
54
  "dependencies": {
54
- "@caweb/webpack": "^1.6.8"
55
+ "@caweb/webpack": "^2.0.0"
55
56
  }
56
57
  }
package/patterns/404.html CHANGED
@@ -1,32 +1,63 @@
1
- <div class="container">
2
- <div class="row">
3
- <div class="col">
4
- <h1>We're sorry, that link didn't work.</h1>
5
1
 
6
- <p class="lead">To find what you need, you can:</p>
2
+ <!DOCTYPE html>
3
+ <html lang="en">
4
+ <head>
5
+ <title>{{ title }}</title>
6
+ {{> head }}
7
+ </head>
8
+
9
+ <body>
7
10
 
11
+ {{> header }}
8
12
 
9
- <ul>
10
- <li>
11
- Browse our
12
- <a href="index.html">homepage</a>
13
- </li>
14
- <li>Double check the link</li>
15
- <li>
16
- Use our
17
- <a href="serp.html?q=">search</a>
18
- </li>
19
- </ul>
20
- <p>
21
- Did you get here from a link on our website?
22
- <a href="contact.html">Let us know</a>
23
- so we can fix it.
24
- </p>
25
-
26
- <p class="fs-7">Error: Page not found (404)</p>
27
- </div>
28
- </div>
29
- </main>
30
- </div>
31
- </div>
32
-
13
+ <div id="page-container" class="page-container">
14
+ <div id="main-content" class="main-content" tabindex="-1">
15
+ <main class="main-primary">
16
+ <div class="container">
17
+ <div class="row">
18
+ <div class="col">
19
+ <h1>We're sorry, that link didn't work.</h1>
20
+
21
+ <p class="lead">To find what you need, you can:</p>
22
+
23
+
24
+ <ul>
25
+ <li>
26
+ Browse our
27
+ <a href="index.html">homepage</a>
28
+ </li>
29
+ <li>Double check the link</li>
30
+ <li>
31
+ Use our
32
+ <a href="serp.html?q=">search</a>
33
+ </li>
34
+ </ul>
35
+ <p>
36
+ Did you get here from a link on our website?
37
+ <a href="contact.html">Let us know</a>
38
+ so we can fix it.
39
+ </p>
40
+
41
+ <p class="fs-7">Error: Page not found (404)</p>
42
+ </div>
43
+ </div>
44
+ </main>
45
+ </div>
46
+ </div>
47
+ </main>
48
+ </div>
49
+ </div>
50
+ {{> footer }}
51
+ {{#if scheme }}
52
+ <script src="/node_modules/@caweb/framework/build/{{ scheme }}.js"></script>
53
+ {{/if}}
54
+ {{#if assets }}
55
+ {{#each assets }}
56
+ {{#if (endsWith this ".js") }}
57
+ <script src="{{ this }}"></script>
58
+ {{/if}}
59
+ {{/each}}
60
+ {{/if}}
61
+ </body>
62
+ </html>
63
+