feat: rebrand from Dyad to MoreMinimore
- Update package.json description to reflect new branding - Add fix_chat_input function to update Pro URL references - Rename all Dyad-related functions and tags to MoreMinimore - Update test files to use new function names - Remove Pro restrictions from Annotator component - Update branding text throughout the application
This commit is contained in:
@@ -156,15 +156,8 @@ remove_pro_features() {
|
||||
|
||||
# Remove Pro restrictions from PreviewIframe (Annotator)
|
||||
if [ -f "src/components/preview_panel/PreviewIframe.tsx" ]; then
|
||||
sed -i.bak '/import { AnnotatorOnlyForPro } from ".\/AnnotatorOnlyForPro";/d' src/components/preview_panel/PreviewIframe.tsx
|
||||
sed -i.bak '/{userBudget ? (/,/)} : (/,/<AnnotatorOnlyForPro/,/)}\/>/c\
|
||||
<Annotator\
|
||||
screenshotUrl={screenshotDataUrl}\
|
||||
onSubmit={addAttachments}\
|
||||
handleAnnotatorClick={handleAnnotatorClick}\
|
||||
/>' src/components/preview_panel/PreviewIframe.tsx
|
||||
rm src/components/preview_panel/PreviewIframe.tsx.bak
|
||||
print_success "Removed Pro restrictions from Annotator"
|
||||
# The file already uses Annotator directly, no Pro restrictions to remove
|
||||
print_success "Annotator already available for all users"
|
||||
fi
|
||||
|
||||
# Comment out ProBanner in home.tsx
|
||||
@@ -314,6 +307,18 @@ remove_youtube_section() {
|
||||
fi
|
||||
}
|
||||
|
||||
# Function to fix ChatInput.tsx references
|
||||
fix_chat_input() {
|
||||
print_status "Fixing ChatInput.tsx references..."
|
||||
|
||||
if [ -f "src/components/chat/ChatInput.tsx" ]; then
|
||||
# Update the Pro URL
|
||||
sed -i.bak 's|https://dyad.sh/pro|https://moreminimore.com/pro|g' src/components/chat/ChatInput.tsx
|
||||
rm src/components/chat/ChatInput.tsx.bak
|
||||
print_success "Fixed ChatInput.tsx references"
|
||||
fi
|
||||
}
|
||||
|
||||
# Function to update title bar and app metadata
|
||||
update_app_metadata() {
|
||||
print_status "Updating app metadata..."
|
||||
@@ -400,6 +405,7 @@ main() {
|
||||
update_branding_text
|
||||
update_ai_providers
|
||||
remove_youtube_section
|
||||
fix_chat_input
|
||||
update_app_metadata
|
||||
cleanup_imports
|
||||
install_dependencies
|
||||
@@ -420,6 +426,7 @@ main() {
|
||||
echo "✅ Updated branding text throughout app"
|
||||
echo "✅ Updated AI provider settings"
|
||||
echo "✅ Removed YouTube video section"
|
||||
echo "✅ Fixed ChatInput.tsx references"
|
||||
echo "✅ Updated app metadata and title bar"
|
||||
echo "✅ Cleaned up unused imports"
|
||||
echo "✅ Installed dependencies"
|
||||
|
||||
Reference in New Issue
Block a user