This commit is contained in:
Fatih Kadir Akın 2025-06-18 16:30:39 +03:00
parent 38d0b26a09
commit c60d434a43
3 changed files with 42 additions and 2 deletions

View File

@ -598,6 +598,26 @@ tsconfig.json`;
document.getElementById('designer-max').checked = true; document.getElementById('designer-max').checked = true;
document.getElementById('designer-show-filetree').checked = true; document.getElementById('designer-show-filetree').checked = true;
// Set height and colors for coding example
const heightSlider = document.getElementById('designer-height');
const heightValue = document.getElementById('height-value');
if (heightSlider) {
heightSlider.value = '500';
if (heightValue) {
heightValue.textContent = '500';
}
}
// Set developer-friendly color scheme (purple/violet)
document.getElementById('designer-light-color').value = '#8b5cf6';
document.getElementById('designer-light-color-text').value = '#8b5cf6';
document.getElementById('designer-dark-color').value = '#a78bfa';
document.getElementById('designer-dark-color-text').value = '#a78bfa';
// Set dark theme mode for coding
this.config.themeMode = 'dark';
this.updateThemeModeButtons();
// Update config from form // Update config from form
this.updateConfigFromForm(); this.updateConfigFromForm();
@ -621,6 +641,26 @@ Can you suggest a menu with appetizers, main course, and dessert that would work
document.getElementById('designer-max').checked = false; document.getElementById('designer-max').checked = false;
document.getElementById('designer-show-filetree').checked = false; document.getElementById('designer-show-filetree').checked = false;
// Set height and colors for chat example
const heightSlider = document.getElementById('designer-height');
const heightValue = document.getElementById('height-value');
if (heightSlider) {
heightSlider.value = '350';
if (heightValue) {
heightValue.textContent = '350';
}
}
// Set friendly color scheme (green)
document.getElementById('designer-light-color').value = '#10b981';
document.getElementById('designer-light-color-text').value = '#10b981';
document.getElementById('designer-dark-color').value = '#34d399';
document.getElementById('designer-dark-color-text').value = '#34d399';
// Set light theme mode for chat
this.config.themeMode = 'light';
this.updateThemeModeButtons();
// Update config from form // Update config from form
this.updateConfigFromForm(); this.updateConfigFromForm();

View File

@ -165,7 +165,7 @@ document.addEventListener("DOMContentLoaded", () => {
}) })
.catch((error) => { .catch((error) => {
console.error("Error fetching star count:", error); console.error("Error fetching star count:", error);
document.getElementById("starCount").textContent = "122k+"; document.getElementById("starCount").textContent = "129k+";
}); });
// Create prompt cards // Create prompt cards

View File

@ -235,7 +235,7 @@ async function fetchGitHubStars() {
console.error("Error fetching star count:", error); console.error("Error fetching star count:", error);
const starCount = document.getElementById("starCount"); const starCount = document.getElementById("starCount");
if (starCount) { if (starCount) {
starCount.textContent = "122k+"; starCount.textContent = "129k+";
} }
} }
} }