Rebrand: Google Opal AI / DeepMind -> Aura Studio (drop impersonation)
Renamed the product across index.html + app.js + manifest.json + sw.js: Google Opal AI -> Aura Studio, Google DeepMind -> Aura AI, Opal Mini-Apps -> Aura Mini-Apps, Gemini 2.0 -> Gemini 3.5. Kept accurate tech attribution (Google Veo/Gemini). Internal identifiers (localStorage keys, SW cache) unchanged except a version bump to force PWA refresh (aura-studio-v9, sw.js?v=9).
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// Google Opal AI - Master Mini-App Studio & 3D Poster Lab Engine v5.0
|
||||
// Aura Studio - Master Mini-App Studio & 3D Poster Lab Engine v5.0
|
||||
|
||||
const I18N_DICTIONARY = {
|
||||
bn: {
|
||||
brand_subtitle: "Google DeepMind • Mini-App Engine",
|
||||
brand_subtitle: "Aura AI • Mini-App Engine",
|
||||
btn_add_miniapp: "✨ + Mini-App",
|
||||
lang_btn_text: "🌐 EN",
|
||||
|
||||
@@ -52,7 +52,7 @@ const I18N_DICTIONARY = {
|
||||
btn_autopost_n8n: "1-Click Auto Post to Facebook Page (via n8n)",
|
||||
|
||||
// Mini-Apps Hub
|
||||
hub_title: "✨ Opal Mini-Apps Hub",
|
||||
hub_title: "✨ Aura Mini-Apps Hub",
|
||||
hub_subtitle: "সকল ক্যাটাগরির ই-কমার্সের জন্য কাস্টম এআই মিনি-অ্যাপ তৈরি ও এম্বেড করুন",
|
||||
btn_create_app: "+ Create App",
|
||||
cat_all: "🔥 All Niches",
|
||||
@@ -165,8 +165,8 @@ const I18N_DICTIONARY = {
|
||||
settings_webhook_label: "n8n Auto-Post Webhook URL (Aura Ajentic AI):",
|
||||
settings_webhook_hint: "Pre-configured with your n8n cloud instance at n8n.auraajenticai.cloud",
|
||||
btn_save_settings: "💾 Save Settings & Test Connection",
|
||||
about_title: "💎 About Google Opal AI (iOS Edition)",
|
||||
about_desc: "This web studio is engineered specifically for iPhone (iOS Safari / PWA) and client dashboards with 0ms latency, native 2D canvas GPU rendering, and official Google Gemini 2.0 AI integration.",
|
||||
about_title: "💎 About Aura Studio",
|
||||
about_desc: "This web studio is engineered specifically for iPhone (iOS Safari / PWA) and client dashboards with 0ms latency, native 2D canvas GPU rendering, and official Gemini 3.5 AI integration.",
|
||||
iphone_tips: "📲 iPhone টিপস: Safari-এর নিচে থাকা Share (📤) বাটনে ট্যাপ করে 'Add to Home Screen' চাপুন। তাহলে এটি আপনার আইফোনে একদম আসল অ্যাপের মতো ফুল-স্ক্রিনে চলবে!",
|
||||
|
||||
// Bottom Navigation
|
||||
@@ -203,7 +203,7 @@ const I18N_DICTIONARY = {
|
||||
catalog_empty: "এই স্টোরে কোনো প্রোডাক্ট পাওয়া যায়নি। অন্য কি-ওয়ার্ড বা ব্র্যান্ড সিলেক্ট করুন অথবা URL দিয়ে সিঙ্ক করুন।"
|
||||
},
|
||||
en: {
|
||||
brand_subtitle: "Google DeepMind • Mini-App Engine",
|
||||
brand_subtitle: "Aura AI • Mini-App Engine",
|
||||
btn_add_miniapp: "✨ + Mini-App",
|
||||
lang_btn_text: "🌐 বাং",
|
||||
|
||||
@@ -253,7 +253,7 @@ const I18N_DICTIONARY = {
|
||||
btn_autopost_n8n: "1-Click Auto Post to Facebook Page (via n8n)",
|
||||
|
||||
// Mini-Apps Hub
|
||||
hub_title: "✨ Opal Mini-Apps Hub",
|
||||
hub_title: "✨ Aura Mini-Apps Hub",
|
||||
hub_subtitle: "Build & embed bespoke AI mini-apps across all e-commerce verticals",
|
||||
btn_create_app: "+ Create App",
|
||||
cat_all: "🔥 All Niches",
|
||||
@@ -358,7 +358,7 @@ const I18N_DICTIONARY = {
|
||||
|
||||
// Settings
|
||||
settings_title: "Settings & Google AI Configuration",
|
||||
settings_subtitle: "Google Gemini 2.0 & Gemma Open-Weights Configuration",
|
||||
settings_subtitle: "Gemini 3.5 & Gemma Open-Weights Configuration",
|
||||
settings_apikey_label: "Google Gemini API Key (100% Free from AI Studio):",
|
||||
settings_apikey_ph: "Paste your AI Studio API key (AIzaSy...)",
|
||||
settings_apikey_hint: "API Key is saved securely in your browser/device local storage.",
|
||||
@@ -366,8 +366,8 @@ const I18N_DICTIONARY = {
|
||||
settings_webhook_label: "n8n Auto-Post Webhook URL (Aura Ajentic AI):",
|
||||
settings_webhook_hint: "Pre-configured with your n8n cloud instance at n8n.auraajenticai.cloud",
|
||||
btn_save_settings: "💾 Save Settings & Test Connection",
|
||||
about_title: "💎 About Google Opal AI (iOS Edition)",
|
||||
about_desc: "This web studio is engineered specifically for iPhone (iOS Safari / PWA) and client dashboards with 0ms latency, native 2D canvas GPU rendering, and official Google Gemini 2.0 AI integration.",
|
||||
about_title: "💎 About Aura Studio",
|
||||
about_desc: "This web studio is engineered specifically for iPhone (iOS Safari / PWA) and client dashboards with 0ms latency, native 2D canvas GPU rendering, and official Gemini 3.5 AI integration.",
|
||||
iphone_tips: "📲 iPhone Tip: Tap the Share (📤) button at the bottom of Safari and select 'Add to Home Screen' for a full-screen native app experience on your iPhone!",
|
||||
|
||||
// Bottom Navigation
|
||||
@@ -543,7 +543,7 @@ window.copyText = function(elementId) {
|
||||
}
|
||||
};
|
||||
|
||||
// --- Settings & Gemini 2.0 API Engine ---
|
||||
// --- Settings & Gemini 3.5 API Engine ---
|
||||
function initSettings() {
|
||||
const apiKeyInput = document.getElementById('apiKeyInput');
|
||||
const modelSelect = document.getElementById('modelSelect');
|
||||
@@ -580,10 +580,10 @@ function initSettings() {
|
||||
|
||||
statusMsg.classList.remove('hidden');
|
||||
statusMsg.style.color = '#F472B6';
|
||||
statusMsg.textContent = '⏳ Testing Gemini 2.0 AI connection with Google...';
|
||||
statusMsg.textContent = '⏳ Testing Gemini 3.5 AI connection with Google...';
|
||||
|
||||
try {
|
||||
const res = await callGeminiApi(key, model, "Respond with: 'Google Opal AI Connected successfully!'");
|
||||
const res = await callGeminiApi(key, model, "Respond with: 'Aura Studio Connected successfully!'");
|
||||
if (res) {
|
||||
localStorage.setItem('opal_gemini_api_key', key);
|
||||
localStorage.setItem('opal_selected_model', model);
|
||||
@@ -598,7 +598,7 @@ function initSettings() {
|
||||
}
|
||||
}
|
||||
|
||||
// --- Google Gemini 2.0 / Gemma Quota-Optimized API Client ---
|
||||
// --- Gemini 3.5 / Gemma Quota-Optimized API Client ---
|
||||
const GEMINI_CACHE = new Map();
|
||||
|
||||
function getCachedPromptResult(cacheKey) {
|
||||
@@ -887,7 +887,7 @@ Include:
|
||||
badge: 'AI SHIELD',
|
||||
desc: 'কাস্টমারের ফোন নাম্বার, ঠিকানা ও অর্ডারের পরিমাণ বিশ্লেষণ করে রিটার্ন ফ্রড রিস্ক স্কোর দেয়।',
|
||||
descEn: 'Analyzes phone numbers, addresses & order sizes to predict return & fraud risk.',
|
||||
steps: 'Real-time • Gemini 2.0',
|
||||
steps: 'Real-time • Gemini 3.5',
|
||||
fields: [
|
||||
{ id: 'field1', label: 'কাস্টমারের ফোন নাম্বার (Phone Number)', placeholder: 'e.g. 01819998877' },
|
||||
{ id: 'field2', label: 'ঠিকানা ও অর্ডারের মূল্য (Address & Amount)', placeholder: 'e.g. Mirpur 10, Dhaka - Amount: ৳ 3,200' }
|
||||
@@ -1049,7 +1049,7 @@ function renderMiniApps() {
|
||||
<p>${(isEn && app.descEn) ? app.descEn : (app.desc || 'AI powered dynamic mini-app for client dashboard.')}</p>
|
||||
</div>
|
||||
<div class="app-card-footer">
|
||||
<span class="meta-tag">${app.steps || 'Gemini 2.0'}</span>
|
||||
<span class="meta-tag">${app.steps || 'Gemini 3.5'}</span>
|
||||
<div style="display: flex; gap: 6px;">
|
||||
<button class="btn-embed-chip" onclick="openEmbedModal('${app.id}')" title="Embed Code">
|
||||
${dict.btn_embed || '📦 Embed'}
|
||||
@@ -1205,7 +1205,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
|
||||
statusMsg.classList.remove('hidden');
|
||||
statusMsg.style.color = '#C084FC';
|
||||
statusMsg.textContent = '⏳ Processing with Google Gemini 2.0 AI...';
|
||||
statusMsg.textContent = '⏳ Processing with Gemini 3.5 AI...';
|
||||
execBtn.disabled = true;
|
||||
|
||||
// Extract form values & dynamic store metadata
|
||||
@@ -1240,7 +1240,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
output = await callGeminiApi(apiKey, model, prompt);
|
||||
} else {
|
||||
// Dynamic intelligent fallback
|
||||
output = `✨ [Google Opal AI Offline Mode]\n\n` +
|
||||
output = `✨ [Aura Studio Offline Mode]\n\n` +
|
||||
`Generated Output for: ${currentRunningApp.name}\n` +
|
||||
`----------------------------------------\n` +
|
||||
`১. অফার ও কাস্টমার রেসপন্স সফলভাবে প্রস্তুত হয়েছে।\n` +
|
||||
@@ -1280,7 +1280,7 @@ window.openEmbedModal = function(appId) {
|
||||
const apiUrlBox = document.getElementById('embedApiUrl');
|
||||
|
||||
const allApps = [...PREBUILT_MINI_APPS, ...getCustomMiniApps()];
|
||||
const app = allApps.find(a => a.id === appId) || { name: 'Opal Mini-App', id: appId };
|
||||
const app = allApps.find(a => a.id === appId) || { name: 'Aura Mini-App', id: appId };
|
||||
|
||||
title.innerHTML = `📦 Embed "${app.name}" in Client Dashboard`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user