@@ -32,7 +32,7 @@ All data is stored locally on your device, and the application works without req
- Liquid Glass user interface
- Global Spotlight search (`Ctrl + Space`)
- Base64-based sharing system
-- Turkish and English language support
+- Turkish, English, and Spanish language support
- Completely offline operation
- Local data storage
- Built-in category system
@@ -128,7 +128,7 @@ Shortcut ## Keyboard Shortcuts
- [x] 26Q2.5 — JSON Export/Import, Improved Spotlight, and Version Naming Update
- [x] 26Q3 — Linux Support (Debian, Arch, Red Hat), Improved Appearance, Customization, and Category Management
- [x] 26Q3.1 — Critical Hotfixes
- - [ ] 26Q3.5 — Important Hotfixes, New Spanish Language Support, and Light Theme Improvements
+ - [x] 26Q3.5 — Important Hotfixes, New Spanish Language Support, and Light Theme Improvements
- [ ] 26Q4 — Application Optimization, Full macOS and Linux Support (Slackware and Gentoo)
- [ ] 27Q1 — Plugin System and Code Preview
diff --git a/README_tr.md b/README_tr.md
index d4eb566..061cb20 100644
--- a/README_tr.md
+++ b/README_tr.md
@@ -1,7 +1,7 @@
# CodeSnip — Yeni Nesil Kod ve İstemi Yöneticisi
-
+
@@ -38,7 +38,7 @@ Tüm veriler cihazınızda saklanır ve uygulama internet bağlantısı gerektir
- Liquid Glass (Buzlu Cam) kullanıcı arayüzü
- Global Spotlight arama (`Ctrl + Space`)
- Base64 tabanlı paylaşım sistemi
-- Türkçe ve İngilizce dil desteği
+- Türkçe, İngilizce ve İspanyolca dil desteği
- Tamamen çevrimdışı çalışma
- Yerel veri depolama
- Hazır kategori sistemi
diff --git a/index.html b/index.html
index a2aa599..4d01f5e 100644
--- a/index.html
+++ b/index.html
@@ -58,16 +58,16 @@
HTML / CSS0
@@ -204,7 +204,8 @@
Ak
diff --git a/main.js b/main.js
index 2f00555..4219f2e 100644
--- a/main.js
+++ b/main.js
@@ -1,75 +1,73 @@
-const { app, BrowserWindow, globalShortcut, ipcMain } = require('electron');
-const path = require('path');
-
-let mainWindow;
-
-function createWindow() {
- mainWindow = new BrowserWindow({
- width: 1200,
- height: 800,
- icon: path.join(__dirname, 'icon.ico'),
- frame: false, // Custom titlebar için çerçeveyi kaldırdık
- webPreferences: {
- nodeIntegration: true,
- contextIsolation: false
- }
- });
-
- // Menüyü güvenli bir şekilde fonksiyon içinde kaldırıyoruz
- mainWindow.setMenu(null);
- mainWindow.loadFile('index.html');
-
- mainWindow.on('closed', () => {
- mainWindow = null;
- });
-}
-
-// 🎛️ Frontend'den (index.html) gelen Pencere Buton Kontrolleri
-ipcMain.on('window-minimize', () => {
- if (mainWindow) mainWindow.minimize();
-});
-
-ipcMain.on('window-maximize', () => {
- if (mainWindow) {
- if (mainWindow.isMaximized()) {
- mainWindow.unmaximize();
- } else {
- mainWindow.maximize();
- }
- }
-});
-
-ipcMain.on('window-close', () => {
- if (mainWindow) mainWindow.close();
-});
-
-// 🎹 Uygulama hazır olduğunda tetiklenen alan
-app.whenReady().then(() => {
- createWindow();
-
- // Global Kısayol Kaydı (Ctrl + Shift + S)
- globalShortcut.register('CommandOrControl+Shift+S', () => {
- if (mainWindow) {
- if (mainWindow.isMinimized()) mainWindow.restore();
- mainWindow.show();
- mainWindow.focus();
-
- // Frontend sürecine spotlight sinyali gönder
- mainWindow.webContents.send('global-spotlight-trigger');
- }
- });
-
- app.on('activate', () => {
- if (BrowserWindow.getAllWindows().length === 0) createWindow();
- });
-});
-
-// Tüm pencereler kapandığında uygulamayı kapat
-app.on('window-all-closed', () => {
- if (process.platform !== 'darwin') app.quit();
-});
-
-// Uygulama tamamen kapatılırken kısayolları hafızadan temizle
-app.on('will-quit', () => {
- globalShortcut.unregisterAll();
-});
\ No newline at end of file
+const { app, BrowserWindow, globalShortcut, ipcMain } = require('electron');
+const path = require('path');
+
+let mainWindow;
+
+function createWindow() {
+ const isMac = process.platform === 'darwin';
+
+ mainWindow = new BrowserWindow({
+ width: 1200,
+ height: 800,
+ minWidth: 900,
+ minHeight: 600,
+ icon: isMac ? undefined : path.join(__dirname, 'icon.ico'),
+ frame: false,
+ titleBarStyle: isMac ? 'hiddenInset' : 'hidden',
+ trafficLightPosition: isMac ? { x: 12, y: 15 } : undefined,
+ webPreferences: {
+ nodeIntegration: true,
+ contextIsolation: false
+ }
+ });
+
+ mainWindow.setMenu(null);
+ mainWindow.loadFile('index.html');
+
+ mainWindow.on('closed', () => {
+ mainWindow = null;
+ });
+}
+
+ipcMain.on('window-minimize', () => {
+ if (mainWindow) mainWindow.minimize();
+});
+
+ipcMain.on('window-maximize', () => {
+ if (mainWindow) {
+ if (mainWindow.isMaximized()) {
+ mainWindow.unmaximize();
+ } else {
+ mainWindow.maximize();
+ }
+ }
+});
+
+ipcMain.on('window-close', () => {
+ if (mainWindow) mainWindow.close();
+});
+
+app.whenReady().then(() => {
+ createWindow();
+
+ globalShortcut.register('CommandOrControl+Shift+S', () => {
+ if (mainWindow) {
+ if (mainWindow.isMinimized()) mainWindow.restore();
+ mainWindow.show();
+ mainWindow.focus();
+ mainWindow.webContents.send('global-spotlight-trigger');
+ }
+ });
+
+ app.on('activate', () => {
+ if (BrowserWindow.getAllWindows().length === 0) createWindow();
+ });
+});
+
+app.on('window-all-closed', () => {
+ if (process.platform !== 'darwin') app.quit();
+});
+
+app.on('will-quit', () => {
+ globalShortcut.unregisterAll();
+});
diff --git a/mobile/README.md b/mobile/README.md
new file mode 100644
index 0000000..70732a0
--- /dev/null
+++ b/mobile/README.md
@@ -0,0 +1,20 @@
+# CodeSnip Mobile — iOS & iPadOS
+
+CodeSnip 26Q3.5 mobile foundation.
+
+The existing CodeSnip frontend remains in `index.html`, `style.css`, and `renderer.js`. `renderer.js` is intentionally kept as a single script.
+
+## Architecture
+
+The mobile app is designed as a thin native shell around the existing web frontend. The frontend remains the source of truth for CodeSnip's UI and application logic.
+
+## Planned targets
+
+- iOS
+- iPadOS
+
+## Development
+
+A Mac with Xcode is required to build and sign the iOS/iPadOS application. The native shell should load the CodeSnip web assets without moving application logic out of `renderer.js`.
+
+This directory is the 26Q3.5 mobile foundation; native Xcode project files are generated locally with the chosen Capacitor/native wrapper toolchain rather than committed as a partially generated project.
diff --git a/package.json b/package.json
index 9100f1e..5a0f81b 100644
--- a/package.json
+++ b/package.json
@@ -1,12 +1,14 @@
{
"name": "codesnip-app",
- "version": "26Q2.5",
+ "version": "26Q3.5",
"main": "main.js",
"license": "MIT",
"scripts": {
"start": "electron .",
- "dist": "electron-builder --windows",
- "dist:win": "electron-builder --windows"
+ "dist": "electron-builder",
+ "dist:win": "electron-builder --windows",
+ "dist:mac": "electron-builder --mac",
+ "dist:linux": "electron-builder --linux"
},
"devDependencies": {
"electron": "^31.0.0",
@@ -19,8 +21,21 @@
"target": "portable",
"icon": "icon.ico"
},
+ "mac": {
+ "target": "dmg",
+ "category": "public.app-category.developer-tools"
+ },
+ "linux": {
+ "target": ["AppImage", "deb"],
+ "category": "Development"
+ },
"directories": {
"output": "dist"
}
+ },
+ "mobile": {
+ "ios": true,
+ "ipados": true,
+ "entry": "index.html"
}
}
diff --git a/renderer.js b/renderer.js
index eb013f8..6ce74f0 100644
--- a/renderer.js
+++ b/renderer.js
@@ -1,7 +1,24 @@
const { ipcRenderer } = require('electron');
let currentCategory = 'all';
-let currentLang = 'tr';
+let currentLang = 'tr';
+
+const spanishTranslations = {
+ 'Tüm Kodlar':'Todos los snippets','All Snippets':'Todos los snippets','Favoriler':'Favoritos','Favorites':'Favoritos',
+ 'Ayarlar':'Configuración','Settings':'Configuración','Yeni Kod Ekle':'Añadir código','Add New Code':'Añadir código',
+ 'Yeni Kod Kartı Oluştur':'Crear nuevo snippet','Create New Snippet Card':'Crear nuevo snippet','Kod Kartını Düzenle':'Editar snippet','Edit Snippet Card':'Editar snippet',
+ 'Kaydet':'Guardar','Save':'Guardar','Güncelle':'Actualizar','Update':'Actualizar','İptal':'Cancelar','Cancel':'Cancelar',
+ 'Başlık':'Título','Title':'Título','Kod veya prompt ara...':'Buscar código o prompt...','Search code or prompt...':'Buscar código o prompt...',
+ 'Kod bloğunu buraya yapıştır...':'Pega aquí el código...','Paste code block here...':'Pega aquí el código...','Kopyala':'Copiar','Copy':'Copiar',
+ 'Sil':'Eliminar','Delete':'Eliminar','Düzenle':'Editar','Edit':'Editar','Paylaş':'Compartir','Share':'Compartir',
+ 'satır':'líneas','lines':'líneas','karakter':'caracteres','characters':'caracteres',
+ 'Yenile':'Recargar','Reload':'Recargar','Koyu Tema':'Tema oscuro','Dark Theme':'Tema oscuro','Açık Tema':'Tema claro','Light Theme':'Tema claro',
+ 'Liquid Glass Efekti':'Efecto Liquid Glass','Liquid Glass Effect':'Efecto Liquid Glass','Uygulama Dili':'Idioma de la aplicación','Application Language':'Idioma de la aplicación',
+ 'Kopyalama Bildirimi':'Notificación de copia','Copy Notification':'Notificación de copia','Kod Satırlarını Kaydır':'Ajuste de línea','Word Wrap':'Ajuste de línea',
+ 'Tehlike Bölgesi':'Zona de peligro','Danger Zone':'Zona de peligro','Tüm Verileri Sıfırla':'Restablecer todos los datos','Reset All Data':'Restablecer todos los datos',
+ 'Fabrika Ayarları':'Restablecer','Factory Reset':'Restablecer'
+};
+function t(tr,en){return currentLang==='tr'?tr:currentLang==='es'?(spanishTranslations[tr]||spanishTranslations[en]||en):en;}
const defaultInitialSnips = [
{ id: 'snip-1', title: 'HTML Koyu Mod Temeli', category: 'web', code: '\n\n\n