8 Star 68 Fork 15

袋鼠云/molecule

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT
<div align="center"> <img src="./website/static/img/logo@3x.png" width="20%" height="20%" alt="watchman-logo" /> <h1>Molecule</h1> <h3>A lightweight Web IDE UI Framework</h3> [![CI][ci-image]][ci-url] [![Codecov][codecov-image]][codecov-url] [![NPM downloads][download-img]][download-url] [![NPM version][npm-version]][npm-version-url] [![Chat][online-chat-img]][online-chat-url] </div> [ci-image]: https://github.com/DTStack/molecule/actions/workflows/main.yml/badge.svg [ci-url]: https://github.com/DTStack/molecule/actions/workflows/main.yml [codecov-image]: https://codecov.io/gh/DTStack/molecule/branch/main/graph/badge.svg?token=PDjbCBo6qz [codecov-url]: https://codecov.io/gh/DTStack/molecule [download-img]: https://img.shields.io/npm/dm/@dtinsight/molecule.svg?style=flat [download-url]: https://www.npmjs.com/package/@dtinsight/molecule [npm-version]: https://img.shields.io/npm/v/@dtinsight/molecule.svg?style=flat-square [npm-version-url]: https://www.npmjs.com/package/@dtinsight/molecule [online-chat-img]: https://img.shields.io/discord/920616811261743104?logo=Molecule [online-chat-url]: https://discord.com/invite/b62gpHwNA7 [中文](./README-zhCN.md) | [English](./README.md) | [한국어](./README-koKR.md) The **Molecule** is a lightweight **Web IDE UI** framework which is built with React.js and inspired by the VSCode. We have designed the Extension APIs similar to the VSCode, to help developers extend the Workbench in an easier way. It's convenient to integrate the Molecule with React.js applications. It has been applied to many products in [DTStack](https://www.dtstack.com/) [Online Preview](https://dtstack.github.io/molecule-examples/#/) ## Features - Built-in the Visual Studio Code **Workbench** UI - Compatible with the Visual Studio Code **ColorTheme** - Customize the Workbench via **React Component** easily - Built-in Monaco-Editor **Command Palette, Keybinding** features - Support the **i18n**, built-in Simplified Chinese, Korean and English - Built-in **Settings**, support to edit and extend via the Extension - Built-in basic **Explorer, Search** components, and support extending via the Extension - **Typescript** Ready ## Installation ```bash npm install @dtinsight/molecule # Or yarn add @dtinsight/molecule ``` ## Basic Usage ```javascript import React from 'react'; import ReactDOM from 'react-dom'; import { MoleculeProvider, Workbench } from '@dtinsight/molecule'; import '@dtinsight/molecule/esm/style/mo.css'; const App = () => ( <MoleculeProvider extensions={[]}> <Workbench /> </MoleculeProvider> ); ReactDOM.render(<App />, document.getElementById('root')); ``` The `extension` is the Extension applications entry, more details about Extension, please read the [Quick Start](https://dtstack.github.io/molecule/docs/quick-start). ## Document - [Introduction](https://dtstack.github.io/molecule/docs/introduction) - [Quick Start](https://dtstack.github.io/molecule/docs/quick-start) - [API](https://dtstack.github.io/molecule/docs/api) - [Extend Workbench](https://dtstack.github.io/molecule/docs/guides/extend-workbench) - [Examples](https://github.com/DTStack/molecule-examples) ## Development ```bash git clone git@github.com:DTStack/molecule.git ``` Clone the source code into your local **Development Mode** ```bash yarn # Install dependencies yarn dev # Start dev mode ``` The Molecule using the **Storybook** to manage and develop the React components, the default visiting address is `http://localhost:6006/`. **Test** ```bash yarn test -u ``` **Build & Preview** ```bash yarn build # Compile to ESM yarn web # Web Preview Mode ``` We compile the source code into the ES6 modules and output to the **`esm`** folder. Besides the Storybook development mode, there also builtin a **Web Preview** mode using the ESM modules. ## Contributing Refer to the [CONTRIBUTING](./CONTRIBUTING.md). ## License Copyright © DTStack. All rights reserved. Licensed under the MIT license.

简介

Molecule 是一款受 VSCode 启发,使用 React.js 构建的 Web IDE UI 框架。我们设计了类似 VSCode 的扩展(Extension)机制,可以帮助我们使用 React 组件快速完成对 Workbench 的自定义。Molecule 与 React 项目集成非常方便,我们已经在 DTStack 多个产品、项目中使用。 展开 收起
JavaScript 等 4 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/dtstack_dev_0/molecule.git
git@gitee.com:dtstack_dev_0/molecule.git
dtstack_dev_0
molecule
molecule
main

搜索帮助