Skip to content

fix: import lib and code format#738

Merged
genedna merged 10 commits into
gitmono-dev:mainfrom
besscroft:main
Dec 12, 2024
Merged

fix: import lib and code format#738
genedna merged 10 commits into
gitmono-dev:mainfrom
besscroft:main

Conversation

@besscroft

Copy link
Copy Markdown
Contributor
  • fix(style): mr page style modification.
  • feat: import zustand and a simple example that might be used.
  • import antd lib
  • code format by ECMA specification
  • update README.md

Variables that do not change should be declared using const, and declaring variables using var is not recommended. See: https://javascript.info/var

@vercel

vercel Bot commented Dec 12, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mega ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 11:52am

@besscroft

Copy link
Copy Markdown
Contributor Author

Modified and added configuration to support pnpm and docker builds.

@genedna genedna requested a review from Copilot December 12, 2024 11:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 8 out of 23 changed files in this pull request and generated 1 suggestion.

Files not reviewed (15)
  • docker/mono-ui-dockerfile: Language not supported
  • moon/.dockerignore: Language not supported
  • moon/.gitignore: Language not supported
  • moon/.npmrc: Language not supported
  • moon/package.json: Language not supported
  • moon/README.md: Evaluated as low risk
  • moon/next.config.js: Evaluated as low risk
  • moon/src/app/(dashboard)/application-layout.tsx: Evaluated as low risk
  • moon/src/app/(dashboard)/blob/[...path]/page.tsx: Evaluated as low risk
  • moon/src/app/(dashboard)/issue/[id]/page.tsx: Evaluated as low risk
  • moon/src/app/(dashboard)/issue/page.tsx: Evaluated as low risk
  • moon/src/app/(dashboard)/mr/[id]/page.tsx: Evaluated as low risk
  • moon/src/app/(dashboard)/mr/page.tsx: Evaluated as low risk
  • moon/src/app/(dashboard)/page.tsx: Evaluated as low risk
  • moon/src/app/(dashboard)/tree/[...path]/page.tsx: Evaluated as low risk

const treeStoreContext = useContext(TreeStoreContext)

if (!treeStoreContext) {
throw new Error(`useTreeStore must be use within TreeStoreProvider`)

Copilot AI Dec 12, 2024

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error message should be 'useTreeStore must be used within TreeStoreProvider'.

Suggested change
throw new Error(`useTreeStore must be use within TreeStoreProvider`)
throw new Error(`useTreeStore must be used within TreeStoreProvider`)

Copilot uses AI. Check for mistakes.
@genedna genedna added this pull request to the merge queue Dec 12, 2024
Merged via the queue into gitmono-dev:main with commit ea35ef1 Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants