@stacksjs/defaults 0.70.163 → 0.70.164
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/app/Actions/README.md +1 -1
- package/app/Commands/README.md +1 -1
- package/app/Jobs/README.md +1 -1
- package/app/Listeners/README.md +1 -1
- package/app/Middleware/README.md +1 -1
- package/app/Models/README.md +1 -1
- package/app/Notifications/README.md +1 -1
- package/app/README.md +1 -1
- package/package.json +1 -1
- package/resources/assets/styles/README.md +1 -1
- package/resources/emails/subscription-confirmation.stx +1 -1
- package/resources/functions/README.md +1 -1
- package/resources/plugins/preloader.ts +23 -0
- package/resources/views/index.stx +4 -4
package/app/Actions/README.md
CHANGED
|
@@ -52,7 +52,7 @@ For help, discussion about best practices, or any other conversation that would
|
|
|
52
52
|
|
|
53
53
|
For casual chit-chat with others using this package:
|
|
54
54
|
|
|
55
|
-
[Join the Stacks Discord Server](https://
|
|
55
|
+
[Join the Stacks Discord Server](https://stacksjs.com/discord)
|
|
56
56
|
|
|
57
57
|
## 📄 License
|
|
58
58
|
|
package/app/Commands/README.md
CHANGED
|
@@ -75,7 +75,7 @@ For help, discussion about best practices, or any other conversation that would
|
|
|
75
75
|
|
|
76
76
|
For casual chit-chat with others using this package:
|
|
77
77
|
|
|
78
|
-
[Join the Stacks Discord Server](https://
|
|
78
|
+
[Join the Stacks Discord Server](https://stacksjs.com/discord)
|
|
79
79
|
|
|
80
80
|
## 📄 License
|
|
81
81
|
|
package/app/Jobs/README.md
CHANGED
|
@@ -70,7 +70,7 @@ For help, discussion about best practices, or any other conversation that would
|
|
|
70
70
|
|
|
71
71
|
For casual chit-chat with others using this package:
|
|
72
72
|
|
|
73
|
-
[Join the Stacks Discord Server](https://
|
|
73
|
+
[Join the Stacks Discord Server](https://stacksjs.com/discord)
|
|
74
74
|
|
|
75
75
|
## 📄 License
|
|
76
76
|
|
package/app/Listeners/README.md
CHANGED
|
@@ -38,7 +38,7 @@ For help, discussion about best practices, or any other conversation that would
|
|
|
38
38
|
|
|
39
39
|
For casual chit-chat with others using this package:
|
|
40
40
|
|
|
41
|
-
[Join the Stacks Discord Server](https://
|
|
41
|
+
[Join the Stacks Discord Server](https://stacksjs.com/discord)
|
|
42
42
|
|
|
43
43
|
## 📄 License
|
|
44
44
|
|
package/app/Middleware/README.md
CHANGED
|
@@ -39,7 +39,7 @@ For help, discussion about best practices, or any other conversation that would
|
|
|
39
39
|
|
|
40
40
|
For casual chit-chat with others using this package:
|
|
41
41
|
|
|
42
|
-
[Join the Stacks Discord Server](https://
|
|
42
|
+
[Join the Stacks Discord Server](https://stacksjs.com/discord)
|
|
43
43
|
|
|
44
44
|
## 📄 License
|
|
45
45
|
|
package/app/Models/README.md
CHANGED
|
@@ -22,7 +22,7 @@ For help, discussion about best practices, or any other conversation that would
|
|
|
22
22
|
|
|
23
23
|
For casual chit-chat with others using this package:
|
|
24
24
|
|
|
25
|
-
[Join the Stacks Discord Server](https://
|
|
25
|
+
[Join the Stacks Discord Server](https://stacksjs.com/discord)
|
|
26
26
|
|
|
27
27
|
## 📄 License
|
|
28
28
|
|
|
@@ -22,7 +22,7 @@ For help, discussion about best practices, or any other conversation that would
|
|
|
22
22
|
|
|
23
23
|
For casual chit-chat with others using this package:
|
|
24
24
|
|
|
25
|
-
[Join the Stacks Discord Server](https://
|
|
25
|
+
[Join the Stacks Discord Server](https://stacksjs.com/discord)
|
|
26
26
|
|
|
27
27
|
## 📄 License
|
|
28
28
|
|
package/app/README.md
CHANGED
|
@@ -14,7 +14,7 @@ For help, discussion about best practices, or any other conversation that would
|
|
|
14
14
|
|
|
15
15
|
For casual chit-chat with others using this package:
|
|
16
16
|
|
|
17
|
-
[Join the Stacks Discord Server](https://
|
|
17
|
+
[Join the Stacks Discord Server](https://stacksjs.com/discord)
|
|
18
18
|
|
|
19
19
|
## 📄 License
|
|
20
20
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/defaults",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.70.
|
|
5
|
+
"version": "0.70.164",
|
|
6
6
|
"description": "Default Stacks scaffold resources (views, layouts, components, preloader) — shipped so apps consuming the framework from node_modules get the same fallback resources a vendored checkout provides. Source of truth: storage/framework/defaults.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -10,7 +10,7 @@ For help, discussion about best practices, or any other conversation that would
|
|
|
10
10
|
|
|
11
11
|
For casual chit-chat with others using this package:
|
|
12
12
|
|
|
13
|
-
[Join the Stacks Discord Server](https://
|
|
13
|
+
[Join the Stacks Discord Server](https://stacksjs.com/discord)
|
|
14
14
|
|
|
15
15
|
## 📄 License
|
|
16
16
|
|
|
@@ -68,7 +68,7 @@ const year = props.year || new Date().getFullYear()
|
|
|
68
68
|
·
|
|
69
69
|
<a href="https://github.com/stacksjs/stacks" style="color: #888; text-decoration: none;">GitHub</a>
|
|
70
70
|
·
|
|
71
|
-
<a href="https://
|
|
71
|
+
<a href="https://stacksjs.com/discord" style="color: #888; text-decoration: none;">Discord</a>
|
|
72
72
|
</td>
|
|
73
73
|
</tr>
|
|
74
74
|
</table>
|
|
@@ -19,7 +19,7 @@ For help, discussion about best practices, or any other conversation that would
|
|
|
19
19
|
|
|
20
20
|
For casual chit-chat with others using this package:
|
|
21
21
|
|
|
22
|
-
[Join the Stacks Discord Server](https://
|
|
22
|
+
[Join the Stacks Discord Server](https://stacksjs.com/discord)
|
|
23
23
|
|
|
24
24
|
## 📄 License
|
|
25
25
|
|
|
@@ -96,6 +96,29 @@ if (!isRepl && !isPostinstall) {
|
|
|
96
96
|
// overrides while applying environment-specific file precedence. quiet: true
|
|
97
97
|
// prevents duplicate logging across multiple processes.
|
|
98
98
|
autoLoadEnv({ quiet: true, env: process.env.APP_ENV })
|
|
99
|
+
|
|
100
|
+
// Tell stx and ts-cloud where their state lives before anything imports them.
|
|
101
|
+
// Both keep it under `storage/` in a Stacks app rather than in a dot-directory
|
|
102
|
+
// at the project root, both take the location from their own config, and both
|
|
103
|
+
// read an environment variable ahead of that config — which is also what
|
|
104
|
+
// carries the answer into every process a command spawns. Setting it here
|
|
105
|
+
// means no boot order can leave a library writing to `.stx` / `.ts-cloud`.
|
|
106
|
+
//
|
|
107
|
+
// Guarded because this preload runs before ANY command: an app resolving
|
|
108
|
+
// `@stacksjs/path` from npm can legitimately be on a published version that
|
|
109
|
+
// predates this helper, and a bare call there throws
|
|
110
|
+
// `applyRuntimeDirectoryEnv is not a function` out of a bunfig preload,
|
|
111
|
+
// which takes down every `buddy` invocation including the `install` and
|
|
112
|
+
// `upgrade` that would fix it. Falling through leaves stx and ts-cloud on
|
|
113
|
+
// their own defaults, which is degraded but recoverable.
|
|
114
|
+
const pathPkg = '@stacksjs/' + 'path'
|
|
115
|
+
const { applyRuntimeDirectoryEnv } = await import('../../../core/path/src/index.ts')
|
|
116
|
+
.catch(() => import(pathPkg))
|
|
117
|
+
|
|
118
|
+
if (typeof applyRuntimeDirectoryEnv === 'function')
|
|
119
|
+
applyRuntimeDirectoryEnv()
|
|
120
|
+
else
|
|
121
|
+
console.warn('[stacks] installed @stacksjs/path has no applyRuntimeDirectoryEnv; stx and ts-cloud will use their default state directories. Run `buddy upgrade` to refresh the framework packages.')
|
|
99
122
|
}
|
|
100
123
|
|
|
101
124
|
// stx template engine plugin
|
|
@@ -325,7 +325,7 @@
|
|
|
325
325
|
data-icon-id="discord"
|
|
326
326
|
data-icon-type="link"
|
|
327
327
|
data-icon-section=""
|
|
328
|
-
data-icon-url="https://
|
|
328
|
+
data-icon-url="https://stacksjs.com/discord"
|
|
329
329
|
style="left: 620px; top: 260px;"
|
|
330
330
|
>
|
|
331
331
|
<div class="desktop-icon-image">💬</div>
|
|
@@ -1768,7 +1768,7 @@ export default {
|
|
|
1768
1768
|
|
|
1769
1769
|
<div style="background: #e0f2ff; border: 2px solid #0284c7; padding: 12px; border-radius: 4px; font-size: 11px;">
|
|
1770
1770
|
<strong>💡 Quick Links:</strong> For general inquiries, email us at <a href="mailto:hello@stacksjs.com" style="color: #0831d9;">hello@stacksjs.com</a>
|
|
1771
|
-
<br>For support questions, visit our <a href="https://
|
|
1771
|
+
<br>For support questions, visit our <a href="https://stacksjs.com/discord" target="_blank" style="color: #0831d9;">Discord community</a>
|
|
1772
1772
|
</div>
|
|
1773
1773
|
</div>
|
|
1774
1774
|
</div>
|
|
@@ -2607,7 +2607,7 @@ export default {
|
|
|
2607
2607
|
<div class="start-menu-item-icon">💖</div>
|
|
2608
2608
|
<div>Sponsor</div>
|
|
2609
2609
|
</button>
|
|
2610
|
-
<button class="start-menu-item" onclick="window.open('https://
|
|
2610
|
+
<button class="start-menu-item" onclick="window.open('https://stacksjs.com/discord', '_blank')">
|
|
2611
2611
|
<div class="start-menu-item-icon">💬</div>
|
|
2612
2612
|
<div>Discord</div>
|
|
2613
2613
|
</button>
|
|
@@ -2651,7 +2651,7 @@ export default {
|
|
|
2651
2651
|
<path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/>
|
|
2652
2652
|
</svg>
|
|
2653
2653
|
</a>
|
|
2654
|
-
<a href="https://
|
|
2654
|
+
<a href="https://stacksjs.com/discord" target="_blank" class="quick-launch-icon" title="Discord">
|
|
2655
2655
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
|
|
2656
2656
|
<path d="M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515a.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0a12.64 12.64 0 0 0-.617-1.25a.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057a19.9 19.9 0 0 0 5.993 3.03a.078.078 0 0 0 .084-.028a14.09 14.09 0 0 0 1.226-1.994a.076.076 0 0 0-.041-.106a13.107 13.107 0 0 1-1.872-.892a.077.077 0 0 1-.008-.128a10.2 10.2 0 0 0 .372-.292a.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127a12.299 12.299 0 0 1-1.873.892a.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028a19.839 19.839 0 0 0 6.002-3.03a.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419c0-1.333.956-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419c0-1.333.955-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.946 2.418-2.157 2.418z"/>
|
|
2657
2657
|
</svg>
|