@stacksjs/defaults 0.75.254 → 0.75.256
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/ai/skills/stacks-browse/scripts/browse.ts +3 -1
- package/ai/skills/stacks-native/CAPABILITIES.md +18 -0
- package/ai/skills/stacks-native/CATALOG.md +9 -9
- package/functions/api.ts +54 -5
- package/ide/vscode/package.json +1 -1
- package/package.json +3 -2
- package/resources/components/Dashboard/Content/BlogPostEditorDialog.stx +9 -5
- package/resources/components/Dashboard/Content/PostEditorDialog.stx +8 -4
- package/resources/functions/dashboard/data.ts +92 -105
- package/resources/functions/dashboard/sidebar.ts +31 -5
- package/resources/plugins/preloader.ts +4 -4
- package/scaffold/README.md +36 -0
- package/scaffold/config/analytics.ts +16 -0
- package/scaffold/config/app.ts +49 -0
- package/scaffold/config/blog.ts +79 -0
- package/scaffold/config/buddy-bot.ts +50 -0
- package/scaffold/config/cloud.ts +103 -0
- package/scaffold/config/dns.ts +16 -0
- package/scaffold/config/docs.ts +57 -0
- package/scaffold/config/email.ts +27 -0
- package/scaffold/config/library.ts +64 -0
- package/scaffold/config/lint.ts +42 -0
- package/scaffold/config/mobile.ts +27 -0
- package/scaffold/config/team.ts +6 -0
- package/scaffold/resources/views/index.stx +65 -0
- package/views/dashboard/.discovered-models.json +0 -893
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<script server>
|
|
2
|
+
/**
|
|
3
|
+
* The starter page `buddy new` gives every app, at `/`.
|
|
4
|
+
*
|
|
5
|
+
* Everything that names the site comes from the app's own config: the title
|
|
6
|
+
* from APP_NAME and the canonical URL from APP_URL (via config/app.ts), so a
|
|
7
|
+
* deploy of an untouched app describes itself rather than anyone else.
|
|
8
|
+
* Replace this file with your own homepage.
|
|
9
|
+
*/
|
|
10
|
+
import { config } from '@stacksjs/config'
|
|
11
|
+
|
|
12
|
+
const appName = config.app.name || 'My App'
|
|
13
|
+
|
|
14
|
+
// APP_URL is often a bare host (`my-app.localhost`), which is not a valid
|
|
15
|
+
// canonical href on its own.
|
|
16
|
+
const rawUrl = String(config.app.url || '').replace(/\/+$/, '')
|
|
17
|
+
const siteUrl = rawUrl && !/^https?:\/\//.test(rawUrl) ? `https://${rawUrl}` : rawUrl
|
|
18
|
+
const canonicalUrl = siteUrl ? `${siteUrl}/` : ''
|
|
19
|
+
|
|
20
|
+
const pageDescription = `${appName} is up and running.`
|
|
21
|
+
|
|
22
|
+
const nextSteps = [
|
|
23
|
+
{ icon: 'i-hugeicons-file-edit', title: 'Edit this page', path: 'resources/views/index.stx' },
|
|
24
|
+
{ icon: 'i-hugeicons-database-01', title: 'Define a model', path: 'app/Models' },
|
|
25
|
+
{ icon: 'i-hugeicons-route-01', title: 'Add an API route', path: 'routes/api.ts' },
|
|
26
|
+
{ icon: 'i-hugeicons-settings-02', title: 'Configure the app', path: 'config/app.ts' },
|
|
27
|
+
]
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
@nolayout
|
|
31
|
+
<!DOCTYPE html>
|
|
32
|
+
<html lang="en">
|
|
33
|
+
<head>
|
|
34
|
+
<meta charset="utf-8">
|
|
35
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
36
|
+
<title>{{ appName }}</title>
|
|
37
|
+
<meta name="description" content="{{ pageDescription }}">
|
|
38
|
+
@if(canonicalUrl)
|
|
39
|
+
<link rel="canonical" href="{{ canonicalUrl }}">
|
|
40
|
+
@endif
|
|
41
|
+
</head>
|
|
42
|
+
<body class="min-h-screen antialiased text-neutral-900 dark:text-neutral-100 bg-neutral-50 dark:bg-neutral-950">
|
|
43
|
+
<main class="flex flex-col justify-center mx-auto px-6 py-16 max-w-2xl min-h-screen">
|
|
44
|
+
<p class="font-medium text-neutral-500 text-sm dark:text-neutral-400">Your app is running</p>
|
|
45
|
+
<h1 class="mt-2 font-semibold text-4xl tracking-tight">{{ appName }}</h1>
|
|
46
|
+
<p class="mt-4 text-neutral-600 dark:text-neutral-300">
|
|
47
|
+
Start with <code class="px-1.5 py-0.5 text-sm bg-neutral-200 dark:bg-neutral-800 rounded">./buddy dev</code>, then make it yours.
|
|
48
|
+
</p>
|
|
49
|
+
|
|
50
|
+
<ul class="mt-10 border-neutral-200 border-y divide-neutral-200 divide-y dark:border-neutral-800 dark:divide-neutral-800">
|
|
51
|
+
@foreach(nextSteps as step)
|
|
52
|
+
<li class="flex gap-4 items-center py-4">
|
|
53
|
+
<span class="{{ step.icon }} size-5 text-neutral-500 dark:text-neutral-400" aria-hidden="true"></span>
|
|
54
|
+
<span class="font-medium">{{ step.title }}</span>
|
|
55
|
+
<code class="ml-auto text-neutral-500 text-sm dark:text-neutral-400">{{ step.path }}</code>
|
|
56
|
+
</li>
|
|
57
|
+
@endforeach
|
|
58
|
+
</ul>
|
|
59
|
+
|
|
60
|
+
<p class="mt-10 text-neutral-500 text-sm dark:text-neutral-400">
|
|
61
|
+
<a class="underline underline-offset-4 hover:text-neutral-900 dark:hover:text-neutral-100" href="https://stacksjs.com/docs">Read the Stacks docs</a>
|
|
62
|
+
</p>
|
|
63
|
+
</main>
|
|
64
|
+
</body>
|
|
65
|
+
</html>
|