feat: SnapCAD Studio'yu YakHub deposuna taşı
Build and Push Docker Images / build (push) Canceled after 0s
CI / Typecheck and unit tests (push) Canceled after 0s

- DWG/DXF içe aktarma ve .skf yeniden açma düzeltmeleri

- YakNet Bulut eşitlemede boş/eski kopya koruması ve yerel-only proje bildirimi

- Panelden içe aktarma duyuruları ve erişilebilir Türkçe hata mesajları

- AGPL-3.0 lisansı, README ve YakHub bağlantıları
This commit is contained in:
Enes Yakıştır
2026-10-25 18:20:21 +03:00
parent e9cb8e8681
commit 33b0940012
149 changed files with 46978 additions and 1273 deletions
+43
View File
@@ -0,0 +1,43 @@
import { cpSync, existsSync, readdirSync, rmSync } from "node:fs";
import { dirname, join } from "node:path";
import { fileURLToPath } from "node:url";
const repoRoot = dirname(dirname(fileURLToPath(import.meta.url)));
const exportDir = join(repoRoot, "apps", "web", ".next-export");
const htaccessSrc = join(repoRoot, "apps", "web", "public", ".htaccess");
// Sunucu tarafı PHP dosyaları depo kökünde tutulur ve statik dışa aktarma
// tarafından asla ezilmemelidir. .env de aynı şekilde korunur.
const protectedEntries = new Set([
".env",
".env.local",
".env.production",
".htaccess",
"snap-config.php",
"cloud-api.php",
"callback.php",
"login.php",
"logout.php",
]);
if (!existsSync(exportDir)) {
console.error(`[sync-laragon-static] Static export directory not found: ${exportDir}`);
process.exit(1);
}
const entries = readdirSync(exportDir).filter((entry) => !protectedEntries.has(entry));
for (const entry of entries) {
const srcPath = join(exportDir, entry);
const destPath = join(repoRoot, entry);
if (existsSync(destPath)) {
rmSync(destPath, { recursive: true, force: true });
}
cpSync(srcPath, destPath, { recursive: true });
}
if (existsSync(htaccessSrc)) {
cpSync(htaccessSrc, join(repoRoot, ".htaccess"));
cpSync(htaccessSrc, join(exportDir, ".htaccess"));
}
console.log(`[sync-laragon-static] Synced ${entries.length} static items + .htaccess to ${repoRoot}`);