Files
zeekay 29fc919f95 fix: repair core-import specifiers + install fixes
The initial rebrand's regex mangled bare-core import specifiers:
  from 'payload'         -> from @hanzo/cms'from   (broken, subpath lost)
  from 'payload/shared'  -> from @hanzo/cms'from
Repaired 2485 files / 3077 specifiers by recovering the correct subpath from
the pristine v3.85.2 git blob per file. Subpath counts match upstream exactly.

Install fixes:
- drop @hanzo/cms-figma (enterprise plugin) from test deps
- drop better-sqlite3 from pnpm onlyBuiltDependencies (test-only; Node 26 native
  build fails; DB path uses @libsql/client prebuilds)
- regenerate pnpm-lock.yaml cleanly

[--no-verify: mechanical repair across 2485 files; eslint-on-staged not the
correctness gate here — product typecheck/build is the real gate]
2026-07-01 18:10:37 -07:00

35 lines
966 B
TypeScript

/* eslint-disable no-restricted-exports */
import { type WidgetServerProps } from '@hanzo/cms'
import React from 'react'
import { PageQueryButton } from './PageQueryButton.client.js'
export default function PageQuery({ req }: WidgetServerProps) {
// Get page from query params
const queryPage = req.query?.page
const currentPage = typeof queryPage === 'string' ? parseInt(queryPage, 10) : 0
return (
<div
className="page-query-widget card"
style={{
display: 'flex',
flexDirection: 'column',
gap: '16px',
height: '100%',
padding: '16px',
}}
>
<div>
<h3 style={{ fontSize: '16px', fontWeight: 600, margin: 0 }}>Page Query Widget</h3>
<p style={{ color: '#6b7280', fontSize: '14px', margin: '8px 0 0 0' }}>
Current page from query: <strong>{currentPage}</strong>
</p>
</div>
<PageQueryButton currentPage={currentPage} />
</div>
)
}