diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..e94b30d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,41 @@ +name: Build + +on: + push: + branches: [main] + pull_request: + branches: [main] + # 允许手动触发工作流 + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x] + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: dist + path: build/dist + retention-days: 7 diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 5b0b093..0000000 --- a/README.en.md +++ /dev/null @@ -1,43 +0,0 @@ -[简体中文](./README.md) | [English](#) | [繁體中文](./README.zh-Hant.md) | [日本語](./README.ja.md) | [Русский](./README.ru.md) - -# pro-api-sdk - -JLCEDA & EasyEDA Pro Extension API Development Kit - -GitHub Repo Stars GitHub Issues GitHub Repo Size GitHub License NPM Version NPM Downloads - -> [!NOTE] -> -> For more information on the development of EasyEDA Pro Extension, please visit:[https://prodocs.easyeda.com/en/api/guide/](https://prodocs.easyeda.com/en/api/guide/) - -## Enter Development - -This development tool set contains all the environments and tools for developing the [EasyEDA Pro Edition](https://pro.easyeda.com/) extension package, and has built-in recommended rules for Prettier and ESLint. - -1. Clone the [pro-api-sdk](https://github.com/easyeda/pro-api-sdk) project repository to your local computer - - ```shell - git clone --depth=1 https://github.com/easyeda/pro-api-sdk.git - ``` - -2. Initializing the development environment (installing dependencies) - - ```shell - npm install - ``` - -3. Make your changes ... - -4. Compile the extension package - - ```shell - npm run build - ``` - -5. Install the extension package generated under `./build/dist/` in EasyEDA Pro Edition - -## Open-source License - -GitHub License - -This development tool uses the [Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/) open source license agreement. You can only use the **嘉立创EDA** and **EasyEDA** trademark information for the **function description part** and **open source release title part** of the extension package developed based on this tool. diff --git a/README.ja.md b/README.ja.md deleted file mode 100644 index 18ffe97..0000000 --- a/README.ja.md +++ /dev/null @@ -1,43 +0,0 @@ -[简体中文](./README.md) | [English](./README.en.md) | [繁體中文](./README.zh-Hant.md) | [日本語](#) | [Русский](./README.ru.md) - -# pro-api-sdk - -嘉立创EDA & EasyEDA Pro Edition は API 開発ツールを拡張します - -GitHub Repo Stars GitHub Issues GitHub Repo Size GitHub License NPM Version NPM Downloads - -> [!NOTE] -> -> 詳細な開発ドキュメントについては、以下をご覧ください:[https://prodocs.easyeda.com/en/api/guide/](https://prodocs.easyeda.com/en/api/guide/) - -## 開発に入る - -この開発ツールセットには、[EasyEDA Pro Edition](https://pro.easyeda.com/) 拡張パッケージを開発するためのすべての環境とツールが含まれており、Prettier と ESLint の推奨ルールが組み込まれています。 - -1. プロジェクト [pro-api-sdk](https://github.com/easyeda/pro-api-sdk) リポジトリをローカル コンピューターにクローンします - - ```shell - git clone --depth=1 https://github.com/easyeda/pro-api-sdk.git - ``` - -2. 開発環境の初期化 (依存関係のインストール) - - ```shell - npm install - ``` - -3. いくつかの変更を加えます... - -4. 拡張機能パッケージをコンパイルする - - ```shell - npm run build - ``` - -5. EasyEDA Pro Edition の `./build/dist/` の下に生成された拡張パッケージをインストールします - -## オープンソースライセンス - -GitHub License - -この開発ツールグループは、[Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/) オープンソースライセンス契約を使用しており、このツールグループに基づいて開発された拡張パッケージの **機能説明部分** および **オープンソースリリースタイトル部分** の **嘉立创EDA**、**EasyEDA** 商標情報のみを使用することができます。 diff --git a/README.md b/README.md index a0fe143..a50c86e 100644 --- a/README.md +++ b/README.md @@ -1,51 +1,22 @@ -[简体中文](#) | [English](./README.en.md) | [繁體中文](./README.zh-Hant.md) | [日本語](./README.ja.md) | [Русский](./README.ru.md) +# LCEDA_Assisted_Computing_Plugin -# pro-api-sdk +嘉立创EDA 辅助计算插件 -嘉立创EDA & EasyEDA 专业版扩展 API 开发工具 +## ![](https://socialify.git.ci/xiaowine/LCEDA_Assisted_Computing_Plugin/image?description=1&descriptionEditable=%e5%98%89%e7%ab%8b%e5%88%9bEDA+%e8%be%85%e5%8a%a9%e8%ae%a1%e7%ae%97%e6%8f%92%e4%bb%b6&language=1&name=1&owner=1&theme=Auto) -GitHub Repo Stars GitHub Issues GitHub Repo Size GitHub License NPM Version NPM Downloads +--- -> [!NOTE] -> -> 详细开发文档请访问:[https://prodocs.lceda.cn/cn/api/guide/](https://prodocs.lceda.cn/cn/api/guide/) +![Release Download](https://img.shields.io/github/downloads/xiaowine/LCEDA_Assisted_Computing_Plugin/total?style=flat-square) +![Release Download](https://img.shields.io/github/downloads/xiaowine/LCEDA_Assisted_Computing_Plugin/total?style=flat-square) +[![Release Version](https://img.shields.io/github/v/release/xiaowine/LCEDA_Assisted_Computing_Plugin?style=flat-square)](https://github.com/xiaowine/LCEDA_Assisted_Computing_Plugin/releases/latest) +[![GitHub license](https://img.shields.io/github/license/xiaowine/LCEDA_Assisted_Computing_Plugin?style=flat-square)](https://github.com/xiaowine/LCEDA_Assisted_Computing_Plugin/LICENSE) +[![GitHub Star](https://img.shields.io/github/stars/xiaowine/LCEDA_Assisted_Computing_Plugin?style=flat-square)](https://github.com/xiaowine/LCEDA_Assisted_Computing_Plugin/stargazers) +[![GitHub Fork](https://img.shields.io/github/forks/xiaowine/LCEDA_Assisted_Computing_Plugin?style=flat-square)](https://github.com/xiaowine/LCEDA_Assisted_Computing_Plugin/network/members) +![GitHub Repo size](https://img.shields.io/github/repo-size/xiaowine/LCEDA_Assisted_Computing_Plugin?style=flat-square&color=3cb371) +[![GitHub Repo Languages](https://img.shields.io/github/languages/top/xiaowine/LCEDA_Assisted_Computing_Plugin?style=flat-square)](https://github.com/xiaowine/LCEDA_Assisted_Computing_Plugin/search?l=koltin) +[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2F577fkj%2FStatusBarLyric%2Fbadge%3Fref%3Dmain&style=flat)](https://actions-badge.atrox.dev/xiaowine/LCEDA_Assisted_Computing_Plugin/goto?ref=main) +![GitHub Star](https://img.shields.io/github/stars/xiaowine/LCEDA_Assisted_Computing_Plugin.svg?style=social) -## 进入开发 +## Star History -本开发工具组包含了用于开发 [嘉立创EDA专业版](https://pro.lceda.cn/) 扩展包的所有环境和工具,并内置了 Prettier 和 ESLint 的推荐规则。 - -1. 克隆 [pro-api-sdk](https://github.com/easyeda/pro-api-sdk) 项目仓库到本地 - - Gitee: - - ```shell - git clone --depth=1 https://gitee.com/jlceda/pro-api-sdk.git - ``` - - GitHub: - - ```shell - git clone --depth=1 https://github.com/easyeda/pro-api-sdk.git - ``` - -2. 初始化开发环境(安装依赖) - - ```shell - npm install - ``` - -3. 进行些许变更 ... - -4. 编译扩展包 - - ```shell - npm run build - ``` - -5. 在 嘉立创EDA专业版 中安装生成在 `./build/dist/` 下的扩展包 - -## 开源许可 - -GitHub License - -本开发工具组使用 [Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/) 开源许可协议,你仅可以将 **嘉立创EDA**、**EasyEDA** 商标信息用于依托于本工具组开发的扩展包的 **功能描述部分** 和 **开源发布的标题部分**。 +[![Star History Chart](https://api.star-history.com/svg?repos=xiaowine/LCEDA_Assisted_Computing_Plugin&type=Timeline)](https://star-history.com/#xiaowine/LCEDA_Assisted_Computing_Plugin&Timeline) diff --git a/README.ru.md b/README.ru.md deleted file mode 100644 index 064604e..0000000 --- a/README.ru.md +++ /dev/null @@ -1,43 +0,0 @@ -[简体中文](./README.md) | [English](./README.en.md) | [繁體中文](./README.zh-Hant.md) | [日本語](./README.ja.md) | [Русский](#) - -# pro-api-sdk - -嘉立创EDA & EasyEDA Pro Edition Расширьте возможности инструментов разработки API - -GitHub Repo Stars GitHub Issues GitHub Repo Size GitHub License NPM Version NPM Downloads - -> [!NOTE] -> -> Для получения подробной документации по разработке, пожалуйста, посетите: [https://prodocs.easyeda.com/en/api/guide/](https://prodocs.easyeda.com/en/api/guide/) - -## Войти в разработку - -Этот набор инструментов разработки содержит все среды и инструменты для разработки пакета расширений [EasyEDA Pro Edition](https://pro.easyeda.com/), а также имеет встроенные рекомендуемые правила для Prettier и ESLint. - -1. Клонируйте репозиторий проекта [pro-api-sdk](https://github.com/easyeda/pro-api-sdk) на свой локальный компьютер - - ```shell - git clone --depth=1 https://github.com/easyeda/pro-api-sdk.git - ``` - -2. Инициализация среды разработки (установка зависимостей) - - ```shell - npm install - ``` - -3. Внесите несколько изменений... - -4. Компиляция пакета расширения - - ```shell - npm run build - ``` - -5. Установите пакет расширения, сгенерированный в разделе `./build/dist/` в EasyEDA Pro Edition - -## Лицензия с открытым исходным кодом - -GitHub License - -Эта группа инструментов разработки использует лицензионное соглашение с открытым исходным кодом [Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/), и вы можете использовать только информацию о товарном знаке **嘉立创EDA**, **EasyEDA** для **части описания функции** и **части названия выпуска с открытым исходным кодом** пакета расширений, разработанного на основе этой группы инструментов. diff --git a/README.zh-Hant.md b/README.zh-Hant.md deleted file mode 100644 index 80b83b0..0000000 --- a/README.zh-Hant.md +++ /dev/null @@ -1,43 +0,0 @@ -[简体中文](./README.md) | [English](./README.en.md) | [繁體中文](#) | [日本語](./README.ja.md) | [Русский](./README.ru.md) - -# pro-api-sdk - -嘉立創EDA & EasyEDA 專業版擴展 API 開發工具 - -GitHub Repo Stars GitHub Issues GitHub Repo Size GitHub License NPM Version NPM Downloads - -> [!NOTE] -> -> 有關 嘉立創EDA專業版 擴展程式開發的更多資訊,請訪問:[https://prodocs.easyeda.com/cn/api/guide/](https://prodocs.easyeda.com/cn/api/guide/) - -## 進入開發 - -本開發工具組包含了用於開發 [嘉立創EDA專業版](https://pro.easyeda.com/) 擴展程式的所有環境和工具,並內置了 Prettier 和 ESLint 的推薦規則。 - -1. 克隆 [pro-api-sdk](https://github.com/easyeda/pro-api-sdk) 項目倉庫到本地 - - ```shell - git clone --depth=1 https://github.com/easyeda/pro-api-sdk.git - ``` - -2. 初始化開發環境(安裝依賴) - - ```shell - npm install - ``` - -3. 進行些許變更 ... - -4. 編譯擴展程式 - - ```shell - npm run build - ``` - -5. 在 嘉立創EDA專業版 中安裝生成在 `./build/dist/` 下的擴展程式 - -## 開源許可 - -GitHub License - -本開發工具組使用 [Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/) 開源許可協定,你僅可以將 **嘉立创EDA**、**嘉立創EDA**、**EasyEDA** 商標資訊用於依託於本工具組開發的擴展程式的 **功能描述部分** 和 **開源發佈的標題部分**。 diff --git a/locales/zh-Hans.json b/locales/zh-Hans.json index 1d1bcbf..eca4794 100644 --- a/locales/zh-Hans.json +++ b/locales/zh-Hans.json @@ -1,5 +1,5 @@ { "About": "关于", "LineWidthCalculation": "线宽计算", - "AboutDescription": "插件版本 v${1}\n该计算器依据 IPC-2221 标准下计算, 由此求得的结果是估算值,实际结果会随应用条件而发生变化\n作者:xiao_wine" + "AboutDescription": "插件版本 v${1}\n\n该计算器依据 IPC-2221 标准下计算, 由此求得的结果是估算值,实际结果会随应用条件而发生变化\n\n作者:xiao_wine\n开源链接:https://github.com/xiaowine/LCEDA_Assisted_Computing_Plugin" }