@lukoweb/apitogo 0.1.83 → 0.1.85
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/cli/cli.js +32 -4
- package/package.json +1 -1
package/dist/cli/cli.js
CHANGED
|
@@ -5633,7 +5633,7 @@ import {
|
|
|
5633
5633
|
// package.json
|
|
5634
5634
|
var package_default = {
|
|
5635
5635
|
name: "@lukoweb/apitogo",
|
|
5636
|
-
version: "0.1.
|
|
5636
|
+
version: "0.1.85",
|
|
5637
5637
|
type: "module",
|
|
5638
5638
|
sideEffects: [
|
|
5639
5639
|
"**/*.css",
|
|
@@ -10574,7 +10574,7 @@ function createDefaultApitogoJsonConfig(options) {
|
|
|
10574
10574
|
site: {
|
|
10575
10575
|
title: options.title,
|
|
10576
10576
|
logo: {
|
|
10577
|
-
src: { light: "/logo-light.
|
|
10577
|
+
src: { light: "/logo-light.svg", dark: "/logo-dark.svg" },
|
|
10578
10578
|
alt: "API ToGo",
|
|
10579
10579
|
width: "130px"
|
|
10580
10580
|
}
|
|
@@ -10586,7 +10586,7 @@ function createDefaultApitogoJsonConfig(options) {
|
|
|
10586
10586
|
redirectToAfterSignUp: "/account/dashboard"
|
|
10587
10587
|
},
|
|
10588
10588
|
metadata: {
|
|
10589
|
-
favicon: "/
|
|
10589
|
+
favicon: "/logo-light.svg"
|
|
10590
10590
|
},
|
|
10591
10591
|
theme: {
|
|
10592
10592
|
fonts: {
|
|
@@ -11038,7 +11038,7 @@ function printPaidPlanPlatformWarning() {
|
|
|
11038
11038
|
}
|
|
11039
11039
|
function printInteractiveWrapUp(hasPaidPlans) {
|
|
11040
11040
|
printDiagnosticsToConsole("");
|
|
11041
|
-
printDiagnosticsToConsole("Configuration
|
|
11041
|
+
printDiagnosticsToConsole("Configuration is done. Next steps:");
|
|
11042
11042
|
printDiagnosticsToConsole("- Preview locally: npm run dev");
|
|
11043
11043
|
if (hasPaidPlans) {
|
|
11044
11044
|
printPaidPlanPlatformWarning();
|
|
@@ -11281,6 +11281,22 @@ import { constants } from "node:fs";
|
|
|
11281
11281
|
import { access as access2, mkdir as mkdir6, readFile as readFile4, writeFile as writeFile6 } from "node:fs/promises";
|
|
11282
11282
|
import path35 from "node:path";
|
|
11283
11283
|
import { glob as glob4 } from "glob";
|
|
11284
|
+
|
|
11285
|
+
// src/cli/make-config/branding-assets.ts
|
|
11286
|
+
var BRANDING_ASSETS = [
|
|
11287
|
+
{
|
|
11288
|
+
name: "logo-light.svg",
|
|
11289
|
+
content: `<svg xmlns="http://www.w3.org/2000/svg" width="120" height="24" fill="none" viewBox="0 0 120 24"><g fill="#000"><path fill-rule="evenodd" d="M19.064 1.116A1.754 1.754 0 0 1 20.7 0h6.018c2.372 0 4.063 2.3 3.356 4.564l-1.939 6.203A1.758 1.758 0 0 1 26.459 12H18c-1.243 0-1.875 1.125-2.25 2.25-.291.873-2.39 6.265-3.314 8.634A1.754 1.754 0 0 1 10.8 24H4.782c-2.372 0-4.063-2.3-3.356-4.564l1.939-6.203A1.758 1.758 0 0 1 5.042 12H13.5c1.243 0 1.875-1.125 2.25-2.25.291-.873 2.39-6.265 3.314-8.634Z" clip-rule="evenodd"/><path d="M20.05 13.875c-.782 0-1.481.485-1.756 1.217l-2.747 7.325A1.172 1.172 0 0 0 16.645 24h7.06a4.688 4.688 0 0 0 4.39-3.042l1.171-3.125c.718-1.915-.697-3.958-2.743-3.958H20.05ZM8.17 0a4.688 4.688 0 0 0-4.389 3.042L2.61 6.167c-.718 1.915.698 3.958 2.743 3.958h6.473c.782 0 1.482-.485 1.756-1.217l2.747-7.325A1.172 1.172 0 0 0 15.231 0H8.17ZM37.2 18.436v-3.03l5.793-6.518-.027-.027c-.536.054-.59.054-1.153.054h-4.506V5.83h10.058v3.03l-5.82 6.518.027.026c.536-.053.616-.053 1.18-.053h4.666v3.084H37.2ZM55.222 18.731c-3.863-.027-5.981-2.44-5.981-5.847V5.831h3.7v6.785c0 1.77.779 2.87 2.28 2.897 1.637.027 2.334-1.073 2.334-2.87V5.83h3.701v7.08c0 3.245-2.494 5.847-6.034 5.82ZM85.19 18.731c-3.997 0-6.813-2.843-6.813-6.598s2.816-6.597 6.812-6.597c3.996 0 6.813 2.842 6.813 6.597 0 3.755-2.817 6.598-6.813 6.598Zm0-3.192c1.85 0 3.164-1.394 3.164-3.406 0-2.011-1.314-3.406-3.165-3.406-1.85 0-3.165 1.395-3.165 3.406 0 2.012 1.315 3.407 3.165 3.407ZM101.626 18.436l-4.292-6.92v6.92h-3.7V.145h3.7v10.54l4.023-4.854h4.292l-4.533 5.203 4.801 7.402h-4.291ZM113.02 18.731c-3.862-.027-5.981-2.44-5.981-5.847V5.831h3.702v6.785c0 1.77.777 2.87 2.279 2.897 1.636.027 2.334-1.073 2.334-2.87V5.83h3.701v7.08c0 3.245-2.494 5.847-6.035 5.82Z"/><path fill-rule="evenodd" d="M76.74.12h-3.922v5.975a7.44 7.44 0 0 0-2.891-.56c-3.996 0-6.813 2.843-6.813 6.598s2.817 6.598 6.813 6.598c3.958 0 6.759-2.79 6.811-6.492h.001V.12Zm-3.648 12.013c0 2.012-1.314 3.407-3.165 3.407-1.85 0-3.165-1.395-3.165-3.407 0-2.011 1.314-3.406 3.165-3.406 1.85 0 3.165 1.395 3.165 3.406Z" clip-rule="evenodd"/></g></svg>
|
|
11290
|
+
`
|
|
11291
|
+
},
|
|
11292
|
+
{
|
|
11293
|
+
name: "logo-dark.svg",
|
|
11294
|
+
content: `<svg xmlns="http://www.w3.org/2000/svg" width="120" height="24" fill="none" viewBox="0 0 120 24"><g fill="#fff"><path fill-rule="evenodd" d="M19.064 1.116A1.754 1.754 0 0 1 20.7 0h6.018c2.372 0 4.063 2.3 3.356 4.564l-1.939 6.203A1.758 1.758 0 0 1 26.459 12H18c-1.243 0-1.875 1.125-2.25 2.25-.291.873-2.39 6.265-3.314 8.634A1.754 1.754 0 0 1 10.8 24H4.782c-2.372 0-4.063-2.3-3.356-4.564l1.939-6.203A1.758 1.758 0 0 1 5.042 12H13.5c1.243 0 1.875-1.125 2.25-2.25.291-.873 2.39-6.265 3.314-8.634Z" clip-rule="evenodd"/><path d="M20.05 13.875c-.782 0-1.481.485-1.756 1.217l-2.747 7.325A1.172 1.172 0 0 0 16.645 24h7.06a4.688 4.688 0 0 0 4.39-3.042l1.171-3.125c.718-1.915-.697-3.958-2.743-3.958H20.05ZM8.17 0a4.688 4.688 0 0 0-4.389 3.042L2.61 6.167c-.718 1.915.698 3.958 2.743 3.958h6.473c.782 0 1.482-.485 1.756-1.217l2.747-7.325A1.172 1.172 0 0 0 15.231 0H8.17ZM37.2 18.436v-3.03l5.793-6.518-.027-.027c-.536.054-.59.054-1.153.054h-4.506V5.83h10.058v3.03l-5.82 6.518.027.026c.536-.053.616-.053 1.18-.053h4.666v3.084H37.2ZM55.222 18.731c-3.863-.027-5.981-2.44-5.981-5.847V5.831h3.7v6.785c0 1.77.779 2.87 2.28 2.897 1.637.027 2.334-1.073 2.334-2.87V5.83h3.701v7.08c0 3.245-2.494 5.847-6.034 5.82ZM85.19 18.731c-3.997 0-6.813-2.843-6.813-6.598s2.816-6.597 6.812-6.597c3.996 0 6.813 2.842 6.813 6.597 0 3.755-2.817 6.598-6.813 6.598Zm0-3.192c1.85 0 3.164-1.394 3.164-3.406 0-2.011-1.314-3.406-3.165-3.406-1.85 0-3.165 1.395-3.165 3.406 0 2.012 1.315 3.407 3.165 3.407ZM101.626 18.436l-4.292-6.92v6.92h-3.7V.145h3.7v10.54l4.023-4.854h4.292l-4.533 5.203 4.801 7.402h-4.291ZM113.02 18.731c-3.862-.027-5.981-2.44-5.981-5.847V5.831h3.702v6.785c0 1.77.777 2.87 2.279 2.897 1.636.027 2.334-1.073 2.334-2.87V5.83h3.701v7.08c0 3.245-2.494 5.847-6.035 5.82Z"/><path fill-rule="evenodd" d="M76.74.12h-3.922v5.975a7.44 7.44 0 0 0-2.891-.56c-3.996 0-6.813 2.843-6.813 6.598s2.817 6.598 6.813 6.598c3.958 0 6.759-2.79 6.811-6.492h.001V.12Zm-3.648 12.013c0 2.012-1.314 3.407-3.165 3.407-1.85 0-3.165-1.395-3.165-3.407 0-2.011 1.314-3.406 3.165-3.406 1.85 0 3.165 1.395 3.165 3.406Z" clip-rule="evenodd"/></g></svg>
|
|
11295
|
+
`
|
|
11296
|
+
}
|
|
11297
|
+
];
|
|
11298
|
+
|
|
11299
|
+
// src/cli/make-config/scaffold-project.ts
|
|
11284
11300
|
var OPENAPI_GLOBS = [
|
|
11285
11301
|
"apis/openapi.json",
|
|
11286
11302
|
"apis/openapi.yaml",
|
|
@@ -11483,6 +11499,18 @@ async function ensurePortalStubFiles(dir) {
|
|
|
11483
11499
|
await mkdir6(path35.join(dir, "user-panel"), { recursive: true });
|
|
11484
11500
|
await writeFile6(plansPath, ACCOUNT_PLANS_PAGE_SOURCE, "utf8");
|
|
11485
11501
|
}
|
|
11502
|
+
await ensurePublicBrandingFiles(dir);
|
|
11503
|
+
}
|
|
11504
|
+
async function ensurePublicBrandingFiles(dir) {
|
|
11505
|
+
const destDir = path35.join(dir, "public");
|
|
11506
|
+
await mkdir6(destDir, { recursive: true });
|
|
11507
|
+
for (const { name, content } of BRANDING_ASSETS) {
|
|
11508
|
+
const dest = path35.join(destDir, name);
|
|
11509
|
+
if (await fileExists2(dest)) {
|
|
11510
|
+
continue;
|
|
11511
|
+
}
|
|
11512
|
+
await writeFile6(dest, content, "utf8");
|
|
11513
|
+
}
|
|
11486
11514
|
}
|
|
11487
11515
|
async function ensureThinConfigTsx(dir) {
|
|
11488
11516
|
const tsxPath = path35.join(dir, "apitogo.config.tsx");
|