codaxy/cxjs
소개
CxJS는 관리자 및 대시보드 애플리케이션을 위한 고급 JavaScript UI 프레임워크로, 바로 사용할 수 있는 그리드, 폼, 차트 컴포넌트를 제공합니다.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
CxJS is a TypeScript UI framework with 50+ widgets, data tables, charts, routing, and state management designed for building data-intensive web applications such as portals, dashboards and admin apps. Built on top of React, it provides everything needed to build complex front-ends out of the box.
Learn more at cxjs.io/docs.
Quick Start
Install the core packages:
npm install cx cx-react
Add a theme:
npm install cx-theme-variables
Configure TypeScript for CxJS JSX:
{
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "cx"
}
}
Set up the entry point:
import { startAppLoop } from "cx/ui";
import { Store } from "cx/data";
import "cx-theme-variables/dist/widgets.css";
import { renderThemeVariables, defaultPreset } from "cx-theme-variables";
renderThemeVariables(defaultPreset);
const store = new Store();
startAppLoop(
document.getElementById("app"),
store,
<div>
<h1>Welcome to CxJS</h1>
</div>,
);
A simple form with two-way data binding:
import { createModel } from "cx/ui";
import { Button, LabelsTopLayout, MsgBox, TextField } from "cx/widgets";
interface PageModel {
name: string;
}
const m = createModel<PageModel>();
export default (
<LabelsTopLayout vertical>
<TextField value={m.name} label="Name" />
<Button
text="Greet"
onClick={(event, { store }) => {
let name = store.get(m.name);
MsgBox.alert(`Hello, ${name}!`);
}}
/>
</LabelsTopLayout>
);
For a complete project setup, use the CLI or one of the application templates:
npx cx-cli create my-app
Repository Structure
This is a monorepo managed with Yarn (v4) workspaces.
packages/
cx/ Core framework (widgets, charts, data binding, state management)
cx-react/ React adapter
cx-build-tools/ Rollup-based build tooling
cx-theme-*/ Visual themes
babel-plugin-*/ Babel plugins for CxJS JSX and import optimization
swc-plugin-*/ SWC equivalents of the Babel plugins
cx-cli, create-cx-app/ CLI tools for scaffolding projects
cx-immer/ Immer integration for immutable store updates
homedocs/ Documentation site (cxjs.io), built with Astro
litmus/ Testing environment for bug reproduction and feature development
legacy/ Previous-generation docs, gallery, and fiddle apps (being phased out)
Development
yarn install # Install dependencies
yarn build # Build cx-react and cx
yarn build:themes # Build all themes
yarn test # Run tests
Running Apps
cd homedocs && yarn dev # Documentation site
yarn litmus # Litmus testing environment
License
CxJS is available under the MIT License.
관련 프로젝트 살펴보기
불러오는 중…