@camox/cli 0.9.0 → 0.10.0
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/dist/index.mjs
CHANGED
|
@@ -9,6 +9,7 @@ import fs from "node:fs";
|
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import { fileURLToPath } from "node:url";
|
|
11
11
|
import * as p from "@clack/prompts";
|
|
12
|
+
import { log } from "@clack/prompts";
|
|
12
13
|
import { command, constant } from "@optique/core/primitives";
|
|
13
14
|
import slugify from "slugify";
|
|
14
15
|
import http from "node:http";
|
|
@@ -375,6 +376,7 @@ count.txt
|
|
|
375
376
|
.tanstack
|
|
376
377
|
.output
|
|
377
378
|
.vinxi
|
|
379
|
+
node_modules
|
|
378
380
|
|
|
379
381
|
# Auto generated by Camox
|
|
380
382
|
src/camox/app.ts
|
|
@@ -456,13 +458,14 @@ var logout_exports = /* @__PURE__ */ __exportAll({
|
|
|
456
458
|
const parser = command("logout", object({ command: constant("logout") }));
|
|
457
459
|
const handler = logout;
|
|
458
460
|
function logout() {
|
|
461
|
+
p.intro("camox logout");
|
|
459
462
|
const token = readAuthToken();
|
|
460
463
|
if (!token) {
|
|
461
|
-
|
|
464
|
+
log.error("Not logged in.");
|
|
462
465
|
return;
|
|
463
466
|
}
|
|
464
467
|
removeAuthToken();
|
|
465
|
-
|
|
468
|
+
p.log.success(`Logged out from ${token.name}.`);
|
|
466
469
|
}
|
|
467
470
|
//#endregion
|
|
468
471
|
//#region src/index.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camox/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"bin": {
|
|
5
5
|
"camox": "./dist/index.mjs"
|
|
6
6
|
},
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@typescript/native-preview": "7.0.0-dev.20260412.1",
|
|
27
27
|
"oxlint": "^0.15.0",
|
|
28
28
|
"tsdown": "^0.21.8",
|
|
29
|
-
"@camox/api-contract": "0.
|
|
29
|
+
"@camox/api-contract": "0.10.0"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "tsdown",
|
|
@@ -9,8 +9,11 @@ const defaultLayout = createLayout({
|
|
|
9
9
|
id: "default",
|
|
10
10
|
title: "Default",
|
|
11
11
|
description: "Default page layout with a navbar and footer",
|
|
12
|
-
blocks: {
|
|
13
|
-
|
|
12
|
+
blocks: {
|
|
13
|
+
before: [navbarBlock],
|
|
14
|
+
after: [footerBlock],
|
|
15
|
+
initial: [heroBlock, statisticsBlock],
|
|
16
|
+
},
|
|
14
17
|
component: DefaultLayout,
|
|
15
18
|
buildMetaTitle: ({ pageMetaTitle, projectName }) => `${pageMetaTitle} | ${projectName}`,
|
|
16
19
|
buildOgImage: ({ title, description, projectName }) => (
|
|
@@ -75,9 +78,9 @@ const defaultLayout = createLayout({
|
|
|
75
78
|
function DefaultLayout({ children }: { children: React.ReactNode }) {
|
|
76
79
|
return (
|
|
77
80
|
<main className="flex min-h-screen flex-col">
|
|
78
|
-
<defaultLayout.
|
|
81
|
+
<defaultLayout.BeforeBlocks />
|
|
79
82
|
<div className="flex-1">{children}</div>
|
|
80
|
-
<defaultLayout.
|
|
83
|
+
<defaultLayout.AfterBlocks />
|
|
81
84
|
</main>
|
|
82
85
|
);
|
|
83
86
|
}
|