@cloudsigma/cs-partner-matrixorigin

中文文档
1.14.8发布于 2026/10/12ISCCommonJS近 30 天下载 4462

Dependencies

原始使用文档
文档目录11 节
  1. Initiate
  2. Dependencies
  3. Build/Watch
  4. Checks
  5. CloudSigma session integration
  6. Tests
  7. Package
  8. CSS
  9. Image Integration
  10. Icons
  11. Localisation

Initiate

Dependencies

Install dependencies

npm i

Build/Watch

Opens browser tab containing CloudSigma layout and custom component

npm run serve

Component will open at http://local.cloudsigma.com:3000, if you can not access it add this line to your hosts files.

127.0.0.1 local.cloudsigma.com

Checks

CloudSigma session integration

CloudSigma owns SSO refresh and pushes the current token through config.accessToken. The component reads both replaced configs and in-place token updates; the optional getAccessToken callback remains supported as a host-owned current-token source. OmniFabric does not read CloudSigma cookies or call CloudSigma/Keycloak refresh endpoints.

Before sending a request, a JWT within five seconds of expiry waits up to ten seconds for a usable replacement. A gateway 401 (without X-Request-Id) waits for a different token and replays the request once, including POST bodies. Cluster requests retain the separate MO token in Access-Token and the CS token in Authorization. Opaque tokens continue to be validated by the server.

A timeout or rejected replacement displays the session error card. A subsequent usable host token automatically resets failed reads and restores polling while preserving OmniFabric activation and credentials. Recovery does not replay mutations.

Regression checks:

rtk npm run test:unit
rtk proxy npx playwright test tests/e2e/session-recovery.spec.ts --project=chromium

The browser regressions simulate token rotation and delayed delivery; acceptance testing in JHB should also cover real computer sleep beyond the 15-minute token lifetime.

Tests

For tests Playwright is used. You can find tests in tests/e2e folder, to run tests manually execute the following command:

npm test

Package

Checks if package can be build

npm run build

CSS

Styling components can be made only with using inline CSS. For example:

function ComponentWithInlineCss() {
  return (
    <div
      style={{
        width: '10px',
        height: '10px',
        backgroundColor: '#000',
      }}
    >
      Inline CSS
    </div>
  );
}

By following these guidelines, you maintain a clean and isolated styling approach within your components,preventing unintended style conflicts when using external css.

Image Integration

In your component file, use the import statement to bring in the image:

import logo from '../../assets/logo.svg';

Place the imported image in your component's JSX:

 <img src={logo} alt="Logo" />

Organize your images within the project structure. For example:

project-root/
|-- src/
|   |-- component/
|       |-- assets/
|           |-- logo.svg
|-- ...

Icons

For Icons we use Font Awesome version 4.7, you can find icons it provides here

Localisation

You can add custom translations in src/component/locales - [language].js files.

To add translation to component, useTranslation must be imported from react-i18next. For example:

import { useTranslation } from 'react-i18next';

...

function ComponentWithTranslation() {
  const {t} = useTranslation();

  return (
    <h2>
      {t('Translation Key')}
    </h2>
  );
}

You can test different locales by chaning lng: 'en' key in static src/config.jsx file to match desired locale.

i18next Documentation

版本与发布记录

@cloudsigma/cs-partner-matrixorigin 共发布 25 个版本,首次发布于 2024/05/27;过去 12 个月发布了 14 个版本。

版本发布日期距今
1.14.8latest2026/10/1228 天前
1.14.72026/10/1228 天前
1.14.62026/09/281 个月前
1.14.52026/07/233 个月前
1.14.42026/07/233 个月前
1.14.32026/07/233 个月前

关于 @cloudsigma/cs-partner-matrixorigin 的常见问题

@cloudsigma/cs-partner-matrixorigin 是什么?

Dependencies

如何安装 @cloudsigma/cs-partner-matrixorigin?

在项目目录运行 npm install @cloudsigma/cs-partner-matrixorigin,或使用 pnpm add / yarn add / bun add。

@cloudsigma/cs-partner-matrixorigin 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/cloudsigma__cs-partner-matrixorigin 是否存在。

@cloudsigma/cs-partner-matrixorigin 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@cloudsigma/cs-partner-matrixorigin 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@cloudsigma/cs-partner-matrixorigin 可以商用吗?

@cloudsigma/cs-partner-matrixorigin 使用 ISC 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@cloudsigma/cs-partner-matrixorigin 的下载量有多少?

根据 npm 官方下载统计,@cloudsigma/cs-partner-matrixorigin 在 2026/10/10 – 2026/11/08 这 30 天内被下载 4,462 次,日均约 149 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@cloudsigma/cs-partner-matrixorigin 还在维护吗?

最新版本 1.14.8 发布于 2026/10/12(28 天前);至今共发布 25 个版本,其中过去 12 个月发布了 14 个;首次发布于 2024/05/27。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。