PageSourceSearch

https://cdn.nocobase.com/2.4.0-alpha.9.20260930161833/assets/2555-d9b0ecc1.js

js nocobase.com collected 2026-10-02 09:55:32 UTC 1,336 bytes, 26 lines download raw bytes

1"use strict";(globalThis.webpackChunknocobase=globalThis.webpackChunknocobase||[]).push([["2555"],{53494(e,t,r){r.r(t),r.d(t,{default:()=>c});let c={contexts:[r(79271).JSBlockRunJSContext],prefix:"sn-jsb-info-card",label:"Render record info card",description:"Display current record information in an Ant Design card",locales:{"zh-CN":{label:"渲染记录信息卡片",description:"使用 Ant Design 卡片显示当前记录的关键信息"}},content:`
2const { Card, Descriptions, Tag } = ctx.libs.antd;
3
4if (!ctx.record) {
5  ctx.render('<div style="padding:16px;color:#999;">' + ctx.t('No record data') + '</div>');
6  return;
7}
8
9const record = ctx.record;
10
11ctx.render(
12  <Card title={ctx.t('Record Details')} bordered style={{ margin: 0 }}>
13    <Descriptions column={2} size="small">
14      <Descriptions.Item label={ctx.t('ID')}>{record.id || '-'}</Descriptions.Item>
15      <Descriptions.Item label={ctx.t('Status')}>
16        <Tag color={record.status === 'active' ? 'green' : 'default'}>{record.status || '-'}</Tag>
17      </Descriptions.Item>
18      <Descriptions.Item label={ctx.t('Title')}>{record.title || '-'}</Descriptions.Item>
19      <Descriptions.Item label={ctx.t('Created At')}>
20        {record.createdAt ? new Date(record.createdAt).toLocaleString() : '-'}
21      </Descriptions.Item>
22    </Descriptions>
23  </Card>
24);
25
26`}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.