[{"data":1,"prerenderedAt":469},["ShallowReactive",2],{"quirekit-doc:\u002Fclassic\u002Flicense":3,"quirekit-source:recipes\u002Flicense.ts":187,"mdc-35cpog-key":188},{"id":4,"title":5,"body":6,"description":176,"extension":177,"keywords":178,"locale":179,"meta":180,"navigation":181,"order":171,"path":182,"section":183,"seo":184,"stem":185,"__hash__":186},"docs\u002Fclassic\u002Flicense.zh-CN.md","授权码与部署",{"type":7,"value":8,"toc":169},"minimark",[9,24,28,36,40,63,66,134,149,152,155,162],[10,11,12,13,18,19,23],"p",{},"先根据",[14,15,17],"a",{"href":16},"\u002Fclassic\u002Ffree","免费评估与社区授权","或",[14,20,22],{"href":21},"\u002Fclassic\u002Fcommercial","付费使用","确认使用范围。授权码设置不等于取得所有包，也不能替代授权协议。",[25,26,27],"h2",{"id":27},"设置与检查",[10,29,30,31,35],{},"在浏览器创建 Classic 前，通过 ",[32,33,34],"code",{},"@quirekit\u002Flicense"," 设置应用取得的授权码。同一页面的商业组件共享该状态；替换授权码后已挂载的许可提示会重新检查。",[37,38],"docs-recipe",{"name":39},"recipes\u002Flicense",[10,41,42,43,46,47,50,51,54,55,58,59,62],{},"此例检查 ",[32,44,45],{},"classic"," 标准产品线。启用专业版或导出时，按需检查 ",[32,48,49],{},"classic-pro","、",[32,52,53],{},"export","；签发的覆盖关系由许可运行时处理。接入页提供的 ",[32,56,57],{},"licenseKey"," 是宿主示例属性，不是 ",[32,60,61],{},"createClassicEditor()"," 的顶层配置。",[25,64,65],{"id":65},"结果含义",[67,68,69,87],"table",{},[70,71,72],"thead",{},[73,74,75,81,84],"tr",{},[76,77,78],"th",{},[32,79,80],{},"status",[76,82,83],{},"含义",[76,85,86],{},"宿主处理",[88,89,90,104,117],"tbody",{},[73,91,92,98,101],{},[93,94,95],"td",{},[32,96,97],{},"licensed",[93,99,100],{},"当前环境下校验通过",[93,102,103],{},"继续使用已安装的产品能力",[73,105,106,111,114],{},[93,107,108],{},[32,109,110],{},"evaluation",[93,112,113],{},"未设置授权码",[93,115,116],{},"产品组件按规则显示评估提示",[73,118,119,124,127],{},[93,120,121],{},[32,122,123],{},"invalid",[93,125,126],{},"授权码不适用或校验失败",[93,128,129,130,133],{},"查看 ",[32,131,132],{},"reason","，核对产品、域名和版本",[10,135,136,137,140,141,144,145,148],{},"常见原因包括 ",[32,138,139],{},"product","（产品线不覆盖）、",[32,142,143],{},"domain","（域名不符）、",[32,146,147],{},"updates-expired","（运行版本超出升级范围），以及签名、格式或吊销检查。校验失败会恢复评估提示，不删除正文或阻断编辑；使用权仍须符合实际许可。",[25,150,151],{"id":151},"部署环境",[10,153,154],{},"授权码离线验签，不需要联网激活。应用使用签发的授权码，签发私钥不进入客户端。",[10,156,157,158,161],{},"当前本地开发豁免仅适用于带显式端口的 HTTP(S) 本地主机或开发域名。本站 ",[32,159,160],{},"127.0.0.1:3220"," 不显示评估提示，不能据此证明生产授权已配置。桌面、移动端打包应用与无界面的生产任务不能通过开发域名替代生产授权。",[10,163,164,165,168],{},"上线前，在实际域名核对已安装的产品线、授权码覆盖范围与版本；同时验证编辑、只读、JSON 保存和所需文件导出。本站 Nuxt 宿主通过 ",[32,166,167],{},"NUXT_PUBLIC_QUIREKIT_LICENSE_KEY"," 提供授权码；普通 Vue 工程使用相同的公开 SDK，无需 Nuxt。",{"title":170,"searchDepth":171,"depth":171,"links":172},"",2,[173,174,175],{"id":27,"depth":171,"text":27},{"id":65,"depth":171,"text":65},{"id":151,"depth":171,"text":151},"在创建产品前设置授权码，按产品线和实际部署环境检查结果。","md",null,"zh-CN",{},true,"\u002Fclassic\u002Flicense","使用与授权",{"title":5,"description":176},"classic\u002Flicense.zh-CN","-4F7L7ZCmtW4OHRVyj8lPD0dQFW2_wuLRZud_CTWYHE","import { checkQuireKitLicense, setQuireKitLicense, type QuireKitLicenseCheck } from \"@quirekit\u002Flicense\";\n\n\u002F**\n * Configures the page's issued key before creating Classic and checks its Standard product line.\n * @param key - Key supplied by the deployment, or null for evaluation.\n * @returns The public check result for host feedback; product components own their notices.\n *\u002F\nexport async function configureClassicLicense(key: string | null): Promise\u003CQuireKitLicenseCheck> {\n  setQuireKitLicense(key);\n  return checkQuireKitLicense(\"classic\");\n}\n",{"data":189,"body":190},{},{"type":191,"children":192},"root",[193,463],{"type":194,"tag":195,"props":196,"children":200},"element","pre",{"className":197,"code":198,"language":199,"meta":170,"style":170},"language-ts shiki shiki-themes github-light github-light github-dark","import { checkQuireKitLicense, setQuireKitLicense, type QuireKitLicenseCheck } from \"@quirekit\u002Flicense\";\n\n\u002F**\n * Configures the page's issued key before creating Classic and checks its Standard product line.\n * @param key - Key supplied by the deployment, or null for evaluation.\n * @returns The public check result for host feedback; product components own their notices.\n *\u002F\nexport async function configureClassicLicense(key: string | null): Promise\u003CQuireKitLicenseCheck> {\n  setQuireKitLicense(key);\n  return checkQuireKitLicense(\"classic\");\n}\n\n","ts",[201],{"type":194,"tag":32,"props":202,"children":203},{"__ignoreMap":170},[204,249,257,267,276,300,318,327,412,426,454],{"type":194,"tag":205,"props":206,"children":209},"span",{"class":207,"line":208},"line",1,[210,217,223,228,233,238,244],{"type":194,"tag":205,"props":211,"children":213},{"style":212},"--shiki-default:#D73A49;--shiki-light:#D73A49;--shiki-dark:#F97583",[214],{"type":215,"value":216},"text","import",{"type":194,"tag":205,"props":218,"children":220},{"style":219},"--shiki-default:#24292E;--shiki-light:#24292E;--shiki-dark:#E1E4E8",[221],{"type":215,"value":222}," { checkQuireKitLicense, setQuireKitLicense, ",{"type":194,"tag":205,"props":224,"children":225},{"style":212},[226],{"type":215,"value":227},"type",{"type":194,"tag":205,"props":229,"children":230},{"style":219},[231],{"type":215,"value":232}," QuireKitLicenseCheck } ",{"type":194,"tag":205,"props":234,"children":235},{"style":212},[236],{"type":215,"value":237},"from",{"type":194,"tag":205,"props":239,"children":241},{"style":240},"--shiki-default:#032F62;--shiki-light:#032F62;--shiki-dark:#9ECBFF",[242],{"type":215,"value":243}," \"@quirekit\u002Flicense\"",{"type":194,"tag":205,"props":245,"children":246},{"style":219},[247],{"type":215,"value":248},";\n",{"type":194,"tag":205,"props":250,"children":251},{"class":207,"line":171},[252],{"type":194,"tag":205,"props":253,"children":254},{"emptyLinePlaceholder":181},[255],{"type":215,"value":256},"\n",{"type":194,"tag":205,"props":258,"children":260},{"class":207,"line":259},3,[261],{"type":194,"tag":205,"props":262,"children":264},{"style":263},"--shiki-default:#6A737D;--shiki-light:#6A737D;--shiki-dark:#6A737D",[265],{"type":215,"value":266},"\u002F**\n",{"type":194,"tag":205,"props":268,"children":270},{"class":207,"line":269},4,[271],{"type":194,"tag":205,"props":272,"children":273},{"style":263},[274],{"type":215,"value":275}," * Configures the page's issued key before creating Classic and checks its Standard product line.\n",{"type":194,"tag":205,"props":277,"children":279},{"class":207,"line":278},5,[280,285,290,295],{"type":194,"tag":205,"props":281,"children":282},{"style":263},[283],{"type":215,"value":284}," * ",{"type":194,"tag":205,"props":286,"children":287},{"style":212},[288],{"type":215,"value":289},"@param",{"type":194,"tag":205,"props":291,"children":292},{"style":219},[293],{"type":215,"value":294}," key",{"type":194,"tag":205,"props":296,"children":297},{"style":263},[298],{"type":215,"value":299}," - Key supplied by the deployment, or null for evaluation.\n",{"type":194,"tag":205,"props":301,"children":303},{"class":207,"line":302},6,[304,308,313],{"type":194,"tag":205,"props":305,"children":306},{"style":263},[307],{"type":215,"value":284},{"type":194,"tag":205,"props":309,"children":310},{"style":212},[311],{"type":215,"value":312},"@returns",{"type":194,"tag":205,"props":314,"children":315},{"style":263},[316],{"type":215,"value":317}," The public check result for host feedback; product components own their notices.\n",{"type":194,"tag":205,"props":319,"children":321},{"class":207,"line":320},7,[322],{"type":194,"tag":205,"props":323,"children":324},{"style":263},[325],{"type":215,"value":326}," *\u002F\n",{"type":194,"tag":205,"props":328,"children":330},{"class":207,"line":329},8,[331,335,340,345,351,356,362,367,373,378,383,388,392,397,402,407],{"type":194,"tag":205,"props":332,"children":333},{"style":212},[334],{"type":215,"value":53},{"type":194,"tag":205,"props":336,"children":337},{"style":212},[338],{"type":215,"value":339}," async",{"type":194,"tag":205,"props":341,"children":342},{"style":212},[343],{"type":215,"value":344}," function",{"type":194,"tag":205,"props":346,"children":348},{"style":347},"--shiki-default:#6F42C1;--shiki-light:#6F42C1;--shiki-dark:#B392F0",[349],{"type":215,"value":350}," configureClassicLicense",{"type":194,"tag":205,"props":352,"children":353},{"style":219},[354],{"type":215,"value":355},"(",{"type":194,"tag":205,"props":357,"children":359},{"style":358},"--shiki-default:#E36209;--shiki-light:#E36209;--shiki-dark:#FFAB70",[360],{"type":215,"value":361},"key",{"type":194,"tag":205,"props":363,"children":364},{"style":212},[365],{"type":215,"value":366},":",{"type":194,"tag":205,"props":368,"children":370},{"style":369},"--shiki-default:#005CC5;--shiki-light:#005CC5;--shiki-dark:#79B8FF",[371],{"type":215,"value":372}," string",{"type":194,"tag":205,"props":374,"children":375},{"style":212},[376],{"type":215,"value":377}," |",{"type":194,"tag":205,"props":379,"children":380},{"style":369},[381],{"type":215,"value":382}," null",{"type":194,"tag":205,"props":384,"children":385},{"style":219},[386],{"type":215,"value":387},")",{"type":194,"tag":205,"props":389,"children":390},{"style":212},[391],{"type":215,"value":366},{"type":194,"tag":205,"props":393,"children":394},{"style":347},[395],{"type":215,"value":396}," Promise",{"type":194,"tag":205,"props":398,"children":399},{"style":219},[400],{"type":215,"value":401},"\u003C",{"type":194,"tag":205,"props":403,"children":404},{"style":347},[405],{"type":215,"value":406},"QuireKitLicenseCheck",{"type":194,"tag":205,"props":408,"children":409},{"style":219},[410],{"type":215,"value":411},"> {\n",{"type":194,"tag":205,"props":413,"children":415},{"class":207,"line":414},9,[416,421],{"type":194,"tag":205,"props":417,"children":418},{"style":347},[419],{"type":215,"value":420},"  setQuireKitLicense",{"type":194,"tag":205,"props":422,"children":423},{"style":219},[424],{"type":215,"value":425},"(key);\n",{"type":194,"tag":205,"props":427,"children":429},{"class":207,"line":428},10,[430,435,440,444,449],{"type":194,"tag":205,"props":431,"children":432},{"style":212},[433],{"type":215,"value":434},"  return",{"type":194,"tag":205,"props":436,"children":437},{"style":347},[438],{"type":215,"value":439}," checkQuireKitLicense",{"type":194,"tag":205,"props":441,"children":442},{"style":219},[443],{"type":215,"value":355},{"type":194,"tag":205,"props":445,"children":446},{"style":240},[447],{"type":215,"value":448},"\"classic\"",{"type":194,"tag":205,"props":450,"children":451},{"style":219},[452],{"type":215,"value":453},");\n",{"type":194,"tag":205,"props":455,"children":457},{"class":207,"line":456},11,[458],{"type":194,"tag":205,"props":459,"children":460},{"style":219},[461],{"type":215,"value":462},"}\n",{"type":194,"tag":464,"props":465,"children":466},"style",{},[467],{"type":215,"value":468},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",1793045224391]