Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# CodeSnip — Next-Generation Code & Prompt Manager
<p align="center">
<img src="https://img.shields.io/badge/Version-26Q3.1-00adb5?style=for-the-badge" alt="Version">
<img src="https://img.shields.io/badge/Version-26Q3.5-00adb5?style=for-the-badge" alt="Version">
<img src="https://img.shields.io/badge/Built%20With-Electron-47848F?style=for-the-badge" alt="Built With">
<img src="https://img.shields.io/badge/License-MIT-green?style=for-the-badge" alt="MIT License">
</p>
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions README_tr.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# CodeSnip — Yeni Nesil Kod ve İstemi Yöneticisi

<p align="center">
<img src="https://img.shields.io/badge/Version-26Q3.1-00adb5?style=for-the-badge" alt="Version">
<img src="https://img.shields.io/badge/Version-26Q3.5-00adb5?style=for-the-badge" alt="Version">
<img src="https://img.shields.io/badge/Built%20With-Electron-47848F?style=for-the-badge" alt="Electron">
<img src="https://img.shields.io/badge/License-MIT-green?style=for-the-badge" alt="MIT License">
</p>
Expand Down Expand Up @@ -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
Expand Down
11 changes: 6 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,16 @@
<span>HTML / CSS</span> <span class="badge" id="badge-web">0</span>
</button>
<button class="nav-item" onclick="filterCategory('ai', this)" id="nav-ai">
<span>AI Promptları</span> <span class="badge" id="badge-ai">0</span>
<span class="lang-txt" data-tr="AI Promptları" data-en="AI Prompts">AI Promptları</span> <span class="badge" id="badge-ai">0</span>
</button>
<button class="nav-item" onclick="filterCategory('minecraft', this)" id="nav-minecraft">
<span>Minecraft</span> <span class="badge" id="badge-minecraft">0</span>
<span class="lang-txt" data-tr="Minecraft" data-en="Minecraft">Minecraft</span> <span class="badge" id="badge-minecraft">0</span>
</button>
<button class="nav-item" onclick="filterCategory('unix', this)" id="nav-unix">
<span>Unix</span> <span class="badge" id="badge-unix">0</span>
<span class="lang-txt" data-tr="Unix" data-en="Unix">Unix</span> <span class="badge" id="badge-unix">0</span>
</button>
<button class="nav-item" onclick="filterCategory('windows_terminal', this)" id="nav-windows_terminal">
<span>Windows Terminal</span> <span class="badge" id="badge-windows_terminal">0</span>
<span class="lang-txt" data-tr="Windows Terminal" data-en="Windows Terminal">Windows Terminal</span> <span class="badge" id="badge-windows_terminal">0</span>
</button>
</nav>

Expand Down Expand Up @@ -204,7 +204,8 @@ <h4 class="lang-txt" data-tr="Akıllı Özellikler" data-en="Smart Features">Ak
</div>
<select id="setting-lang" onchange="applySettings()">
<option value="tr">Türkçe (TR)</option>
<option value="en">English (EN)</option>
<option value="en">English (EN)</option>
<option value="es">Español (ES)</option>
</select>
</div>

Expand Down
148 changes: 73 additions & 75 deletions main.js
Original file line number Diff line number Diff line change
@@ -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();
});
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();
});
20 changes: 20 additions & 0 deletions mobile/README.md
Original file line number Diff line number Diff line change
@@ -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.
21 changes: 18 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
}
}
Loading
Loading