@cimplify/cli 0.13.2 → 0.13.4
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/README.md +11 -8
- package/dist/{add-F7GKDXAD.mjs → add-542NLKYG.mjs} +4 -5
- package/dist/{assets-Y4JE6MSG.mjs → assets-OEY6FHHZ.mjs} +4 -5
- package/dist/{auth-step-up-EHL5PM2L.mjs → auth-step-up-ALEUQUCE.mjs} +5 -6
- package/dist/{cancel-QSZE2XC2.mjs → cancel-FD66LTTS.mjs} +4 -5
- package/dist/chunk-4O4G2CDE.mjs +162 -0
- package/dist/{chunk-C4M3DXKC.mjs → chunk-5KYR6WJB.mjs} +10 -2
- package/dist/{chunk-4YIFBYBV.mjs → chunk-5ZQURRIM.mjs} +1 -2
- package/dist/{chunk-QA36VSLX.mjs → chunk-6CHBU7O4.mjs} +1 -1
- package/dist/{chunk-QKRGKFHE.mjs → chunk-7NUSJVN3.mjs} +3 -2
- package/dist/{chunk-D7DVYTVI.mjs → chunk-HJQ6PF5N.mjs} +6 -6
- package/dist/{chunk-UP7N53C4.mjs → chunk-IK6NQHTG.mjs} +1 -1
- package/dist/{chunk-OVHZV57L.mjs → chunk-MLVBE5V2.mjs} +1 -1
- package/dist/{chunk-RR4NOZGY.mjs → chunk-OE7YRDLH.mjs} +5 -6
- package/dist/{chunk-VJJDGHZC.mjs → chunk-PDGKBATF.mjs} +1 -2
- package/dist/{chunk-5U5OXOPN.mjs → chunk-RU53TQLZ.mjs} +1 -1
- package/dist/{chunk-JPXK5BLA.mjs → chunk-TOQGLBWF.mjs} +1 -1
- package/dist/{chunk-SVJPU4K7.mjs → chunk-VCDGYXFU.mjs} +51 -43
- package/dist/{deploy-UTAYLZOM.mjs → deploy-SLRFPGTH.mjs} +8 -9
- package/dist/{dev-3U6WW5D7.mjs → dev-L3W6UXYN.mjs} +19 -26
- package/dist/dispatcher.mjs +41 -33
- package/dist/{doctor-6NYHQ7YE.mjs → doctor-E6JH4VSN.mjs} +8 -9
- package/dist/{domains-OS3DXSDN.mjs → domains-7D7WJAMC.mjs} +5 -6
- package/dist/{env-UVO4OIEO.mjs → env-PAENNABF.mjs} +6 -7
- package/dist/{explain-O363MCQ2.mjs → explain-SZPLL5MP.mjs} +3 -4
- package/dist/{inspect-ULWQHT7J.mjs → inspect-MGVG4Z44.mjs} +3 -4
- package/dist/introspect-SDHD3PVX.mjs +8 -0
- package/dist/{link-VQN2WPZO.mjs → link-KGNQWCSZ.mjs} +4 -5
- package/dist/lint-NM3APP7L.mjs +1327 -0
- package/dist/{list-DZTPWNU3.mjs → list-W5JABY7B.mjs} +3 -4
- package/dist/{login-UZ5Y7GIO.mjs → login-NCO4P5G5.mjs} +5 -6
- package/dist/{logout-XYWZR6QJ.mjs → logout-MF6SOLPE.mjs} +2 -3
- package/dist/{logs-YNXDXAF7.mjs → logs-76TCJBIQ.mjs} +4 -5
- package/dist/{mock-HFVAAYK2.mjs → mock-CAWNXSGC.mjs} +2 -3
- package/dist/{projects-RJ44DJKZ.mjs → projects-U75DOOR7.mjs} +4 -5
- package/dist/repo-IE5IOLR5.mjs +8 -0
- package/dist/{rollback-Z2PRL7FS.mjs → rollback-ZL3V7SYH.mjs} +5 -6
- package/dist/{status-RR3GGTVU.mjs → status-52HG63FE.mjs} +4 -5
- package/dist/{unlink-JBVZYOA3.mjs → unlink-TCG3NBAR.mjs} +2 -3
- package/dist/{update-QA5WJ6YL.mjs → update-447FR363.mjs} +4 -5
- package/dist/{whoami-5G32NNEP.mjs → whoami-B5Y5KSOZ.mjs} +3 -4
- package/package.json +3 -2
- package/templates/storefront-auto/app/categories/[slug]/page.tsx +1 -0
- package/templates/storefront-auto/app/collections/[slug]/page.tsx +1 -0
- package/templates/storefront-auto/app/page.tsx +4 -1
- package/templates/storefront-auto/app/products/[slug]/page.tsx +1 -0
- package/templates/storefront-auto/components/auth-error-toast.tsx +2 -2
- package/templates/storefront-auto/package.json +1 -1
- package/templates/storefront-bakery/app/categories/[slug]/page.tsx +1 -0
- package/templates/storefront-bakery/app/collections/[slug]/page.tsx +1 -0
- package/templates/storefront-bakery/app/page.tsx +1 -1
- package/templates/storefront-bakery/components/auth-error-toast.tsx +2 -2
- package/templates/storefront-bakery/package.json +1 -1
- package/templates/storefront-fashion/app/categories/[slug]/page.tsx +1 -0
- package/templates/storefront-fashion/app/collections/[slug]/page.tsx +1 -0
- package/templates/storefront-fashion/app/page.tsx +1 -1
- package/templates/storefront-fashion/app/products/[slug]/page.tsx +1 -0
- package/templates/storefront-fashion/components/auth-error-toast.tsx +2 -2
- package/templates/storefront-fashion/package.json +1 -1
- package/templates/storefront-grocery/app/categories/[slug]/page.tsx +1 -0
- package/templates/storefront-grocery/app/collections/[slug]/page.tsx +1 -0
- package/templates/storefront-grocery/app/page.tsx +1 -1
- package/templates/storefront-grocery/components/auth-error-toast.tsx +2 -2
- package/templates/storefront-grocery/package.json +1 -1
- package/templates/storefront-pharmacy/app/categories/[slug]/page.tsx +1 -0
- package/templates/storefront-pharmacy/app/collections/[slug]/page.tsx +1 -0
- package/templates/storefront-pharmacy/app/globals.css +11 -3
- package/templates/storefront-pharmacy/app/page.tsx +4 -1
- package/templates/storefront-pharmacy/app/products/[slug]/page.tsx +1 -0
- package/templates/storefront-pharmacy/components/auth-error-toast.tsx +2 -2
- package/templates/storefront-pharmacy/components/pharmacy-hero.tsx +10 -3
- package/templates/storefront-pharmacy/components/urgent-ctas.tsx +30 -5
- package/templates/storefront-pharmacy/package.json +1 -1
- package/templates/storefront-restaurant/app/categories/[slug]/page.tsx +1 -0
- package/templates/storefront-restaurant/app/collections/[slug]/page.tsx +1 -0
- package/templates/storefront-restaurant/app/page.tsx +1 -1
- package/templates/storefront-restaurant/components/auth-error-toast.tsx +2 -2
- package/templates/storefront-restaurant/package.json +1 -1
- package/templates/storefront-retail/app/categories/[slug]/page.tsx +1 -0
- package/templates/storefront-retail/app/collections/[slug]/page.tsx +1 -0
- package/templates/storefront-retail/app/page.tsx +1 -1
- package/templates/storefront-retail/app/products/[slug]/page.tsx +1 -0
- package/templates/storefront-retail/components/auth-error-toast.tsx +2 -2
- package/templates/storefront-retail/package.json +1 -1
- package/templates/storefront-services/app/book/book-client.tsx +3 -5
- package/templates/storefront-services/app/categories/[slug]/page.tsx +1 -0
- package/templates/storefront-services/app/collections/[slug]/page.tsx +1 -0
- package/templates/storefront-services/app/page.tsx +1 -1
- package/templates/storefront-services/components/auth-error-toast.tsx +2 -2
- package/templates/storefront-services/package.json +1 -1
- package/dist/agent-24IISIOQ.mjs +0 -25
- package/dist/chunk-YPC4VU65.mjs +0 -76
- package/dist/chunk-YTZ233XM.mjs +0 -2046
- package/dist/chunk-ZPVN6UXL.mjs +0 -74
- package/dist/introspect-UKSR3JBF.mjs +0 -9
- package/dist/repo-OK6CVG3G.mjs +0 -9
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { REGISTRY_INDEX } from './chunk-
|
|
3
|
-
import { parseArgs, flagBool } from './chunk-
|
|
4
|
-
import { CliError, CLI_ERROR_CODE } from './chunk-
|
|
5
|
-
import { info, bold, dim, green, result } from './chunk-ZPVN6UXL.mjs';
|
|
2
|
+
import { REGISTRY_INDEX } from './chunk-VCDGYXFU.mjs';
|
|
3
|
+
import { parseArgs, flagBool } from './chunk-5KYR6WJB.mjs';
|
|
4
|
+
import { CliError, CLI_ERROR_CODE, info, bold, dim, green, result } from './chunk-4O4G2CDE.mjs';
|
|
6
5
|
|
|
7
6
|
// src/commands/list.ts
|
|
8
7
|
async function run(argv) {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { generatePkcePair, openBrowser } from './chunk-
|
|
3
|
-
import { parseArgs, flagString, flagBool } from './chunk-
|
|
4
|
-
import { resolveBaseUrl, ApiClient } from './chunk-
|
|
5
|
-
import { writeAuth } from './chunk-
|
|
6
|
-
import { CliError, CLI_ERROR_CODE } from './chunk-
|
|
7
|
-
import { success, result, isJsonMode, step, info, dim } from './chunk-ZPVN6UXL.mjs';
|
|
2
|
+
import { generatePkcePair, openBrowser } from './chunk-IK6NQHTG.mjs';
|
|
3
|
+
import { parseArgs, flagString, flagBool } from './chunk-5KYR6WJB.mjs';
|
|
4
|
+
import { resolveBaseUrl, ApiClient } from './chunk-TOQGLBWF.mjs';
|
|
5
|
+
import { writeAuth } from './chunk-6CHBU7O4.mjs';
|
|
6
|
+
import { CliError, CLI_ERROR_CODE, success, result, isJsonMode, step, info, dim } from './chunk-4O4G2CDE.mjs';
|
|
8
7
|
import os from 'os';
|
|
9
8
|
|
|
10
9
|
var FLAG_API_KEY = "api-key";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { clearAuth } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import { success, info, result } from './chunk-ZPVN6UXL.mjs';
|
|
2
|
+
import { clearAuth } from './chunk-6CHBU7O4.mjs';
|
|
3
|
+
import { success, info, result } from './chunk-4O4G2CDE.mjs';
|
|
5
4
|
|
|
6
5
|
// src/commands/logout.ts
|
|
7
6
|
async function run(_argv) {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { TERMINAL_DEPLOYMENT_STATUSES } from './chunk-MXYUAJEW.mjs';
|
|
3
|
-
import { parseArgs, flagString, flagBool } from './chunk-
|
|
4
|
-
import { ApiClient } from './chunk-
|
|
5
|
-
import { readAuth, readProjectLink, readProjectState } from './chunk-
|
|
6
|
-
import { CliError, CLI_ERROR_CODE } from './chunk-
|
|
7
|
-
import { isJsonMode, failure, result, red } from './chunk-ZPVN6UXL.mjs';
|
|
3
|
+
import { parseArgs, flagString, flagBool } from './chunk-5KYR6WJB.mjs';
|
|
4
|
+
import { ApiClient } from './chunk-TOQGLBWF.mjs';
|
|
5
|
+
import { readAuth, readProjectLink, readProjectState } from './chunk-6CHBU7O4.mjs';
|
|
6
|
+
import { CliError, CLI_ERROR_CODE, isJsonMode, failure, result, red } from './chunk-4O4G2CDE.mjs';
|
|
8
7
|
|
|
9
8
|
// src/commands/logs.ts
|
|
10
9
|
var FLAG_DEPLOYMENT = "deployment";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { parseArgs, flagString, flagBool } from './chunk-
|
|
3
|
-
import { CliError, CLI_ERROR_CODE } from './chunk-
|
|
4
|
-
import { info, dim } from './chunk-ZPVN6UXL.mjs';
|
|
2
|
+
import { parseArgs, flagString, flagBool } from './chunk-5KYR6WJB.mjs';
|
|
3
|
+
import { CliError, CLI_ERROR_CODE, info, dim } from './chunk-4O4G2CDE.mjs';
|
|
5
4
|
import { spawn } from 'child_process';
|
|
6
5
|
import { existsSync, writeFileSync } from 'fs';
|
|
7
6
|
import path from 'path';
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { REPO_PROVIDER } from './chunk-MXYUAJEW.mjs';
|
|
3
|
-
import { parseArgs, flagString, flagBool } from './chunk-
|
|
4
|
-
import { ApiClient } from './chunk-
|
|
5
|
-
import { readAuth } from './chunk-
|
|
6
|
-
import { CliError, CLI_ERROR_CODE } from './chunk-
|
|
7
|
-
import { info, dim, result, bold, success } from './chunk-ZPVN6UXL.mjs';
|
|
3
|
+
import { parseArgs, flagString, flagBool } from './chunk-5KYR6WJB.mjs';
|
|
4
|
+
import { ApiClient } from './chunk-TOQGLBWF.mjs';
|
|
5
|
+
import { readAuth } from './chunk-6CHBU7O4.mjs';
|
|
6
|
+
import { CliError, CLI_ERROR_CODE, info, dim, result, bold, success } from './chunk-4O4G2CDE.mjs';
|
|
8
7
|
|
|
9
8
|
// src/commands/projects.ts
|
|
10
9
|
var SUB_LS = "ls";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
export { run as default, fetchCloneToken, fetchRepoRecord } from './chunk-OE7YRDLH.mjs';
|
|
3
|
+
import './chunk-5ZQURRIM.mjs';
|
|
4
|
+
import './chunk-MXYUAJEW.mjs';
|
|
5
|
+
import './chunk-5KYR6WJB.mjs';
|
|
6
|
+
import './chunk-TOQGLBWF.mjs';
|
|
7
|
+
import './chunk-6CHBU7O4.mjs';
|
|
8
|
+
import './chunk-4O4G2CDE.mjs';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { pollDeployment } from './chunk-
|
|
2
|
+
import { pollDeployment } from './chunk-PDGKBATF.mjs';
|
|
3
3
|
import { DEPLOYMENT_STATUS, DEPLOY_TRIGGER } from './chunk-MXYUAJEW.mjs';
|
|
4
|
-
import { parseArgs, flagBool } from './chunk-
|
|
5
|
-
import { ApiClient } from './chunk-
|
|
6
|
-
import { readAuth, readProjectLink, writeProjectState } from './chunk-
|
|
7
|
-
import { CliError, CLI_ERROR_CODE, EXIT_CODE } from './chunk-
|
|
8
|
-
import { step, success, info, dim, result } from './chunk-ZPVN6UXL.mjs';
|
|
4
|
+
import { parseArgs, flagBool } from './chunk-5KYR6WJB.mjs';
|
|
5
|
+
import { ApiClient } from './chunk-TOQGLBWF.mjs';
|
|
6
|
+
import { readAuth, readProjectLink, writeProjectState } from './chunk-6CHBU7O4.mjs';
|
|
7
|
+
import { CliError, CLI_ERROR_CODE, step, success, info, dim, result, EXIT_CODE } from './chunk-4O4G2CDE.mjs';
|
|
9
8
|
|
|
10
9
|
// src/commands/rollback.ts
|
|
11
10
|
var FLAG_NO_POLL = "no-poll";
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { DEPLOYMENT_STATUS } from './chunk-MXYUAJEW.mjs';
|
|
3
|
-
import { parseArgs } from './chunk-
|
|
4
|
-
import { ApiClient } from './chunk-
|
|
5
|
-
import { readAuth, readProjectLink, readProjectState } from './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import { bold, dim, info, result } from './chunk-ZPVN6UXL.mjs';
|
|
3
|
+
import { parseArgs } from './chunk-5KYR6WJB.mjs';
|
|
4
|
+
import { ApiClient } from './chunk-TOQGLBWF.mjs';
|
|
5
|
+
import { readAuth, readProjectLink, readProjectState } from './chunk-6CHBU7O4.mjs';
|
|
6
|
+
import { bold, dim, info, result } from './chunk-4O4G2CDE.mjs';
|
|
8
7
|
|
|
9
8
|
// src/commands/status.ts
|
|
10
9
|
var QUERY_LIMIT = "limit";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { clearProjectLink } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import { success, info, result } from './chunk-ZPVN6UXL.mjs';
|
|
2
|
+
import { clearProjectLink } from './chunk-6CHBU7O4.mjs';
|
|
3
|
+
import { success, info, result } from './chunk-4O4G2CDE.mjs';
|
|
5
4
|
|
|
6
5
|
// src/commands/unlink.ts
|
|
7
6
|
async function run(_argv) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { package_default } from './chunk-
|
|
3
|
-
import { promptYesNo } from './chunk-
|
|
4
|
-
import { parseArgs, flagBool, flagString } from './chunk-
|
|
5
|
-
import { CliError, CLI_ERROR_CODE } from './chunk-
|
|
6
|
-
import { success, bold, info, dim, result, failure, step, isJsonMode } from './chunk-ZPVN6UXL.mjs';
|
|
2
|
+
import { package_default } from './chunk-7NUSJVN3.mjs';
|
|
3
|
+
import { promptYesNo } from './chunk-5ZQURRIM.mjs';
|
|
4
|
+
import { parseArgs, flagBool, flagString } from './chunk-5KYR6WJB.mjs';
|
|
5
|
+
import { success, bold, info, dim, result, failure, CliError, CLI_ERROR_CODE, step, isJsonMode } from './chunk-4O4G2CDE.mjs';
|
|
7
6
|
import { spawn } from 'child_process';
|
|
8
7
|
import { basename, dirname } from 'path';
|
|
9
8
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { ApiClient } from './chunk-
|
|
3
|
-
import { readAuth } from './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import { info, bold, dim, result } from './chunk-ZPVN6UXL.mjs';
|
|
2
|
+
import { ApiClient } from './chunk-TOQGLBWF.mjs';
|
|
3
|
+
import { readAuth } from './chunk-6CHBU7O4.mjs';
|
|
4
|
+
import { info, bold, dim, result } from './chunk-4O4G2CDE.mjs';
|
|
6
5
|
|
|
7
6
|
// src/commands/whoami.ts
|
|
8
7
|
var ENDPOINT_AUTH_ME = "/v1/auth/me";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cimplify/cli",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.4",
|
|
4
4
|
"description": "Cimplify CLI — deploy, manage env vars, link projects, and scaffold storefronts",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cimplify",
|
|
@@ -41,7 +41,8 @@
|
|
|
41
41
|
"@babel/parser": "^8.0.4",
|
|
42
42
|
"@babel/traverse": "^8.0.4",
|
|
43
43
|
"@babel/types": "^8.0.4",
|
|
44
|
-
"@cimplify/sdk": "^0.
|
|
44
|
+
"@cimplify/sdk": "^0.100.4",
|
|
45
|
+
"re2js": "^1.4.0"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
48
|
"@aws-sdk/client-s3": "^3.1070.0",
|
|
@@ -19,7 +19,10 @@ export const revalidate = 3600;
|
|
|
19
19
|
|
|
20
20
|
async function getHomeData() {
|
|
21
21
|
const client = getServerClient();
|
|
22
|
-
const productsRes = await client.catalogue.getProducts(
|
|
22
|
+
const productsRes = await client.catalogue.getProducts(
|
|
23
|
+
{ limit: 12 },
|
|
24
|
+
{ cacheOptions: { revalidate: 3600, tags: [tags.products()] } },
|
|
25
|
+
);
|
|
23
26
|
const allProducts: Product[] = productsRes.ok ? productsRes.value.items : [];
|
|
24
27
|
|
|
25
28
|
return {
|
|
@@ -30,14 +30,14 @@ export function AuthErrorToast() {
|
|
|
30
30
|
<div
|
|
31
31
|
role="status"
|
|
32
32
|
aria-live="polite"
|
|
33
|
-
className="fixed bottom-4 left-1/2 -translate-x-1/2 z-50 max-w-sm rounded-lg bg-
|
|
33
|
+
className="fixed bottom-4 left-1/2 -translate-x-1/2 z-50 max-w-sm rounded-lg bg-foreground text-background px-4 py-3 text-sm shadow-lg flex items-center gap-3"
|
|
34
34
|
>
|
|
35
35
|
<span>{message}</span>
|
|
36
36
|
<button
|
|
37
37
|
type="button"
|
|
38
38
|
onClick={() => setMessage(null)}
|
|
39
39
|
aria-label="Dismiss"
|
|
40
|
-
className="text-
|
|
40
|
+
className="text-background/60 hover:text-background transition-colors text-base leading-none"
|
|
41
41
|
>
|
|
42
42
|
×
|
|
43
43
|
</button>
|
|
@@ -30,14 +30,14 @@ export function AuthErrorToast() {
|
|
|
30
30
|
<div
|
|
31
31
|
role="status"
|
|
32
32
|
aria-live="polite"
|
|
33
|
-
className="fixed bottom-4 left-1/2 -translate-x-1/2 z-50 max-w-sm rounded-lg bg-
|
|
33
|
+
className="fixed bottom-4 left-1/2 -translate-x-1/2 z-50 max-w-sm rounded-lg bg-foreground text-background px-4 py-3 text-sm shadow-lg flex items-center gap-3"
|
|
34
34
|
>
|
|
35
35
|
<span>{message}</span>
|
|
36
36
|
<button
|
|
37
37
|
type="button"
|
|
38
38
|
onClick={() => setMessage(null)}
|
|
39
39
|
aria-label="Dismiss"
|
|
40
|
-
className="text-
|
|
40
|
+
className="text-background/60 hover:text-background transition-colors text-base leading-none"
|
|
41
41
|
>
|
|
42
42
|
×
|
|
43
43
|
</button>
|
|
@@ -30,14 +30,14 @@ export function AuthErrorToast() {
|
|
|
30
30
|
<div
|
|
31
31
|
role="status"
|
|
32
32
|
aria-live="polite"
|
|
33
|
-
className="fixed bottom-4 left-1/2 -translate-x-1/2 z-50 max-w-sm rounded-lg bg-
|
|
33
|
+
className="fixed bottom-4 left-1/2 -translate-x-1/2 z-50 max-w-sm rounded-lg bg-foreground text-background px-4 py-3 text-sm shadow-lg flex items-center gap-3"
|
|
34
34
|
>
|
|
35
35
|
<span>{message}</span>
|
|
36
36
|
<button
|
|
37
37
|
type="button"
|
|
38
38
|
onClick={() => setMessage(null)}
|
|
39
39
|
aria-label="Dismiss"
|
|
40
|
-
className="text-
|
|
40
|
+
className="text-background/60 hover:text-background transition-colors text-base leading-none"
|
|
41
41
|
>
|
|
42
42
|
×
|
|
43
43
|
</button>
|
|
@@ -30,14 +30,14 @@ export function AuthErrorToast() {
|
|
|
30
30
|
<div
|
|
31
31
|
role="status"
|
|
32
32
|
aria-live="polite"
|
|
33
|
-
className="fixed bottom-4 left-1/2 -translate-x-1/2 z-50 max-w-sm rounded-lg bg-
|
|
33
|
+
className="fixed bottom-4 left-1/2 -translate-x-1/2 z-50 max-w-sm rounded-lg bg-foreground text-background px-4 py-3 text-sm shadow-lg flex items-center gap-3"
|
|
34
34
|
>
|
|
35
35
|
<span>{message}</span>
|
|
36
36
|
<button
|
|
37
37
|
type="button"
|
|
38
38
|
onClick={() => setMessage(null)}
|
|
39
39
|
aria-label="Dismiss"
|
|
40
|
-
className="text-
|
|
40
|
+
className="text-background/60 hover:text-background transition-colors text-base leading-none"
|
|
41
41
|
>
|
|
42
42
|
×
|
|
43
43
|
</button>
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
--color-accent-foreground: oklch(0.28 0.1 195);
|
|
24
24
|
--color-destructive: oklch(0.58 0.24 27);
|
|
25
25
|
--color-destructive-foreground: oklch(0.99 0 0);
|
|
26
|
+
--color-success: oklch(0.72 0.18 150);
|
|
26
27
|
--color-border: oklch(0.92 0.01 180);
|
|
27
28
|
--color-input: oklch(0.94 0.01 180);
|
|
28
29
|
--color-ring: oklch(0.58 0.12 195);
|
|
@@ -30,7 +31,8 @@
|
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
@layer base {
|
|
33
|
-
html,
|
|
34
|
+
html,
|
|
35
|
+
body {
|
|
34
36
|
margin: 0;
|
|
35
37
|
padding: 0;
|
|
36
38
|
background: var(--color-background);
|
|
@@ -38,8 +40,14 @@
|
|
|
38
40
|
-webkit-font-smoothing: antialiased;
|
|
39
41
|
-moz-osx-font-smoothing: grayscale;
|
|
40
42
|
}
|
|
41
|
-
a {
|
|
42
|
-
|
|
43
|
+
a {
|
|
44
|
+
color: inherit;
|
|
45
|
+
text-decoration: none;
|
|
46
|
+
}
|
|
47
|
+
h1,
|
|
48
|
+
h2,
|
|
49
|
+
h3,
|
|
50
|
+
h4 {
|
|
43
51
|
font-family: var(--font-sans);
|
|
44
52
|
letter-spacing: -0.02em;
|
|
45
53
|
font-weight: 600;
|
|
@@ -20,7 +20,10 @@ export const revalidate = 3600;
|
|
|
20
20
|
|
|
21
21
|
async function getHomeData() {
|
|
22
22
|
const client = getServerClient();
|
|
23
|
-
const productsRes = await client.catalogue.getProducts(
|
|
23
|
+
const productsRes = await client.catalogue.getProducts(
|
|
24
|
+
{ limit: 12 },
|
|
25
|
+
{ cacheOptions: { revalidate: 3600, tags: [tags.products()] } },
|
|
26
|
+
);
|
|
24
27
|
const allProducts: Product[] = productsRes.ok ? productsRes.value.items : [];
|
|
25
28
|
|
|
26
29
|
return {
|
|
@@ -30,14 +30,14 @@ export function AuthErrorToast() {
|
|
|
30
30
|
<div
|
|
31
31
|
role="status"
|
|
32
32
|
aria-live="polite"
|
|
33
|
-
className="fixed bottom-4 left-1/2 -translate-x-1/2 z-50 max-w-sm rounded-lg bg-
|
|
33
|
+
className="fixed bottom-4 left-1/2 -translate-x-1/2 z-50 max-w-sm rounded-lg bg-foreground text-background px-4 py-3 text-sm shadow-lg flex items-center gap-3"
|
|
34
34
|
>
|
|
35
35
|
<span>{message}</span>
|
|
36
36
|
<button
|
|
37
37
|
type="button"
|
|
38
38
|
onClick={() => setMessage(null)}
|
|
39
39
|
aria-label="Dismiss"
|
|
40
|
-
className="text-
|
|
40
|
+
className="text-background/60 hover:text-background transition-colors text-base leading-none"
|
|
41
41
|
>
|
|
42
42
|
×
|
|
43
43
|
</button>
|
|
@@ -18,7 +18,7 @@ export function PharmacyHero() {
|
|
|
18
18
|
<div className="grid grid-cols-1 lg:grid-cols-[1.4fr_1fr] gap-10 lg:gap-14 items-end">
|
|
19
19
|
<div>
|
|
20
20
|
<span className="inline-flex items-center gap-2 mb-6 px-3 py-1.5 rounded-full bg-background/10 text-background/90 text-[11px] font-mono uppercase tracking-[0.18em]">
|
|
21
|
-
<span className="grid place-items-center w-1.5 h-1.5 rounded-full bg-
|
|
21
|
+
<span className="grid place-items-center w-1.5 h-1.5 rounded-full bg-success animate-pulse" />
|
|
22
22
|
{brand.hero.badge}
|
|
23
23
|
</span>
|
|
24
24
|
<h1 className="text-[clamp(2.5rem,6.4vw,5.25rem)] font-bold m-0 -tracking-[0.04em] leading-[0.98]">
|
|
@@ -76,7 +76,7 @@ function InfoChip({ eyebrow, value, live }: InfoChipProps) {
|
|
|
76
76
|
{eyebrow}
|
|
77
77
|
</span>
|
|
78
78
|
{live && (
|
|
79
|
-
<span className="grid place-items-center w-1.5 h-1.5 rounded-full bg-
|
|
79
|
+
<span className="grid place-items-center w-1.5 h-1.5 rounded-full bg-success animate-pulse" />
|
|
80
80
|
)}
|
|
81
81
|
</div>
|
|
82
82
|
<p className="text-sm font-semibold text-background -tracking-[0.01em] leading-snug">
|
|
@@ -88,7 +88,14 @@ function InfoChip({ eyebrow, value, live }: InfoChipProps) {
|
|
|
88
88
|
|
|
89
89
|
function ArrowIcon() {
|
|
90
90
|
return (
|
|
91
|
-
<svg
|
|
91
|
+
<svg
|
|
92
|
+
viewBox="0 0 24 24"
|
|
93
|
+
fill="none"
|
|
94
|
+
stroke="currentColor"
|
|
95
|
+
strokeWidth="2"
|
|
96
|
+
className="w-3.5 h-3.5"
|
|
97
|
+
aria-hidden
|
|
98
|
+
>
|
|
92
99
|
<path d="M5 12h14M13 6l6 6-6 6" strokeLinecap="round" strokeLinejoin="round" />
|
|
93
100
|
</svg>
|
|
94
101
|
);
|
|
@@ -46,7 +46,7 @@ export function UrgentCtas() {
|
|
|
46
46
|
{consult.eyebrow}
|
|
47
47
|
</span>
|
|
48
48
|
<span className="inline-flex items-center gap-2 px-2 py-0.5 rounded-full bg-background/10 text-background/85 text-[10px] font-mono uppercase tracking-[0.14em]">
|
|
49
|
-
<span className="grid place-items-center w-1.5 h-1.5 rounded-full bg-
|
|
49
|
+
<span className="grid place-items-center w-1.5 h-1.5 rounded-full bg-success animate-pulse" />
|
|
50
50
|
{consult.hoursLabel}
|
|
51
51
|
</span>
|
|
52
52
|
</div>
|
|
@@ -88,10 +88,21 @@ function UploadIllustration() {
|
|
|
88
88
|
return (
|
|
89
89
|
<div className="relative h-24 sm:h-28 rounded-xl border border-dashed border-primary/40 bg-primary/[0.04] grid place-items-center overflow-hidden">
|
|
90
90
|
<div className="flex flex-col items-center gap-1.5 text-primary/80">
|
|
91
|
-
<svg
|
|
91
|
+
<svg
|
|
92
|
+
viewBox="0 0 24 24"
|
|
93
|
+
fill="none"
|
|
94
|
+
stroke="currentColor"
|
|
95
|
+
strokeWidth="1.5"
|
|
96
|
+
className="w-7 h-7"
|
|
97
|
+
aria-hidden
|
|
98
|
+
>
|
|
92
99
|
<path d="M12 3v12" strokeLinecap="round" />
|
|
93
100
|
<path d="M7 8l5-5 5 5" strokeLinecap="round" strokeLinejoin="round" />
|
|
94
|
-
<path
|
|
101
|
+
<path
|
|
102
|
+
d="M5 17v3a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-3"
|
|
103
|
+
strokeLinecap="round"
|
|
104
|
+
strokeLinejoin="round"
|
|
105
|
+
/>
|
|
95
106
|
</svg>
|
|
96
107
|
<span className="text-[11px] font-mono uppercase tracking-[0.16em]">Drag · JPG · PDF</span>
|
|
97
108
|
</div>
|
|
@@ -101,7 +112,14 @@ function UploadIllustration() {
|
|
|
101
112
|
|
|
102
113
|
function LockIcon() {
|
|
103
114
|
return (
|
|
104
|
-
<svg
|
|
115
|
+
<svg
|
|
116
|
+
viewBox="0 0 24 24"
|
|
117
|
+
fill="none"
|
|
118
|
+
stroke="currentColor"
|
|
119
|
+
strokeWidth="1.5"
|
|
120
|
+
className="w-3 h-3"
|
|
121
|
+
aria-hidden
|
|
122
|
+
>
|
|
105
123
|
<rect x="5" y="11" width="14" height="9" rx="2" />
|
|
106
124
|
<path d="M8 11V8a4 4 0 0 1 8 0v3" />
|
|
107
125
|
</svg>
|
|
@@ -110,7 +128,14 @@ function LockIcon() {
|
|
|
110
128
|
|
|
111
129
|
function ArrowIcon() {
|
|
112
130
|
return (
|
|
113
|
-
<svg
|
|
131
|
+
<svg
|
|
132
|
+
viewBox="0 0 24 24"
|
|
133
|
+
fill="none"
|
|
134
|
+
stroke="currentColor"
|
|
135
|
+
strokeWidth="2"
|
|
136
|
+
className="w-3.5 h-3.5"
|
|
137
|
+
aria-hidden
|
|
138
|
+
>
|
|
114
139
|
<path d="M5 12h14M13 6l6 6-6 6" strokeLinecap="round" strokeLinejoin="round" />
|
|
115
140
|
</svg>
|
|
116
141
|
);
|