Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[refactor] Move Success, Info Dialog to Interrupt Category #76

Merged

Conversation

kimeodml
Copy link
Collaborator

@kimeodml kimeodml commented Jan 10, 2025

What is this PR? 🔍

Changes 📝

  • move success, info dialog to interrupt cateogory
  • add recursive func to find Base.tsx file

ScreenShot 📷

image

Precaution

@kimeodml kimeodml self-assigned this Jan 10, 2025
@kimeodml kimeodml linked an issue Jan 10, 2025 that may be closed by this pull request
1 task
Copy link

vercel bot commented Jan 10, 2025

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

Name Status Preview Comments Updated (UTC)
shadcn-dialog-snippet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 20, 2025 10:15am

// }
// };

const findFilesRecursively = async (dir: string, ext = "Base.tsx") => {
Copy link
Owner

Choose a reason for hiding this comment

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

what ext means?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It means file 'ext'ension... Do you think it needs to change the naming?

console.log(`Generated: ${outputFilePath}`);
}
// Remove files in the output directory
await fs.remove(outputDir);
Copy link
Owner

Choose a reason for hiding this comment

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

If don't remove the file, is error occurred?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Unnecessary(ex. CheckBoxFormBaseString, RadioBoxRowFormBaseString) files still remained in the folder 'generated', so before running the conversion of tsx files to strings, I added this code to remove all files.

@@ -1,32 +1,82 @@
import path from "node:path";
import fs from "fs-extra";

// const convertTsxToString = async () => {
Copy link
Owner

Choose a reason for hiding this comment

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

I think we need to look at why the function execution depends on the local.

@kimeodml kimeodml added the refactor✍️ just refactoring label Jan 20, 2025
@kimeodml kimeodml merged commit 62b5efa into develop Jan 20, 2025
3 checks passed
@kimeodml kimeodml deleted the 75-refactor-move-success-info-dialog-to-interrupt-category branch January 20, 2025 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor✍️ just refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[refactor] Move Success, Info Dialog to Interrupt Category
2 participants