diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml new file mode 100644 index 0000000..53c207a --- /dev/null +++ b/.github/workflows/claude.yml @@ -0,0 +1,48 @@ +name: Claude PR Assistant + +on: + issue_comment: + types: [created] + pull_request_review_comment: + types: [created] + issues: + types: [opened, assigned] + pull_request_review: + types: [submitted] + +jobs: + claude-code-action: + if: | + (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) || + (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) || + (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) || + (github.event_name == 'issues' && contains(github.event.issue.body, '@claude')) + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: read + issues: read + id-token: write + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 1 + + - name: Run Claude PR Action + uses: anthropics/claude-code-action@beta + with: + anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} + # Or use OAuth token instead: + # claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} + timeout_minutes: "60" + # mode: tag # Default: responds to @claude mentions + # Optional: Restrict network access to specific domains only + # experimental_allowed_domains: | + # .anthropic.com + # .github.com + # api.github.com + # .githubusercontent.com + # bun.sh + # registry.npmjs.org + # .blob.core.windows.net diff --git a/README-zh-CN.md b/README-zh-CN.md deleted file mode 100644 index 54ff4bf..0000000 --- a/README-zh-CN.md +++ /dev/null @@ -1,6 +0,0 @@ -# NextUI Vue -[English](README.md) | 中文 - -[@vue-nextui/button](packages/components/button/README.md) 现已可用 - -> 这是一个正在进行中的项目.... diff --git a/README.md b/README.md index 31499d5..5b2339f 100644 --- a/README.md +++ b/README.md @@ -5,25 +5,6 @@

-[![Publish npm package](https://github.com/nextui-vue/nextui-vue/actions/workflows/publish-npm.yml/badge.svg?event=public)](https://github.com/nextui-vue/nextui-vue/actions/workflows/publish-npm.yml) +A Vue3 Component Library. -English | [中文(outdate)](README-zh-CN.md) - -A Vue Component Library. - -[HeroUI](https://www.heroui.com/)(formerly NextUI) theme, implemented with Vue. - -## Components - -### Available - -- [button](packages/components/button/README.md) -- [alert](packages/components/alert/README.md): experimental - -### Working - -- [Avatar](https://www.heroui.com/docs/components/avatar) - -# Contributing - -See [contributing docs](README-contributing.md)(Chinese language only) +[HeroUI](https://www.heroui.com/) theme, implemented with Vue. diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 8bb538e..07aad01 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -3,7 +3,7 @@ import { groupIconMdPlugin, groupIconVitePlugin, } from "vitepress-plugin-group-icons"; -import { componentViewMarkdownPlugin } from "vitepress-plugin-vue-component-view"; +import { componentViewMarkdownPlugin } from "vitepress-plugin-component"; import { tabsMarkdownPlugin } from "vitepress-plugin-tabs"; import { npmCommandsMarkdownPlugin } from "vitepress-plugin-npm-commands"; import tailwindcss from "@tailwindcss/vite"; @@ -38,6 +38,10 @@ export default defineConfig({ nav: [ { text: "Guide", link: "/en/guide/introduction" }, { text: "Components", link: "/en/components/button" }, + { + text: "Playground[WIP]", + link: "https://github.com/nextui-vue/nextui-vue/pull/156", + }, { text: "HeroUI", link: "https://heroui.com/" }, ], sidebar: [ @@ -62,14 +66,18 @@ export default defineConfig({ }, zh: { label: "简体中文", + lang: "zh", link: "/zh/", - lang: "zh-CN", title: "NextUI Vue", description: "基于HeroUI Theme构建的Vue3组件库", themeConfig: { nav: [ { text: "指南", link: "/zh/guide/introduction" }, { text: "组件", link: "/zh/components/button" }, + { + text: "演练场[开发中]", + link: "https://github.com/nextui-vue/nextui-vue/pull/156", + }, { text: "HeroUI", link: "https://heroui.com/" }, ], sidebar: [ diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts index c0c1f7b..1d78fb9 100644 --- a/docs/.vitepress/theme/index.ts +++ b/docs/.vitepress/theme/index.ts @@ -2,7 +2,7 @@ import DefaultTheme from "vitepress/theme"; import type { Theme } from "vitepress"; import "./styles.css"; import "virtual:group-icons.css"; -import { enhanceAppWithComponentView } from "vitepress-plugin-vue-component-view/client"; +import { enhanceAppWithComponentView } from "vitepress-plugin-component/client"; import { enhanceAppWithTabs } from "vitepress-plugin-tabs/client"; export default { diff --git a/docs/en/components/button.md b/docs/en/components/button.md index 20a6e50..d45f36a 100644 --- a/docs/en/components/button.md +++ b/docs/en/components/button.md @@ -36,76 +36,45 @@ import { Button } from 'nextui-vue' ## Usage +::: component-view - -::: code-group -```vue [Example] - - - -``` ::: ### Disabled Button will be unclickable +::: component-view - -::: code-group -```vue [Example] - -``` ::: ### Sizes Display buttons in different sizes +::: component-view
- -::: code-group -```vue [Example] -
- - - -
-``` ::: ### Radius Display buttons with different border radius -
+::: component-view +
- -::: code-group -```vue [Example] -
- - - - - -
-``` ::: ### Colors Display buttons in different colors +::: component-view
@@ -114,50 +83,13 @@ Display buttons in different colors
- -::: code-group -```vue [Example] -
- - - - - - -
-``` ::: ### Variants Display different types of buttons -
- - - - - - - -
- -::: code-group -```vue [Example] -
+::: component-view +
@@ -180,7 +112,6 @@ Display different types of buttons Shadow
-``` ::: ### Loading @@ -192,7 +123,8 @@ Work in progress You can also customize the loading spinner by passing a custom component to the `spinner` slot. -