| .vscode | ||
| public | ||
| src | ||
| tests/e2e | ||
| .gitignore | ||
| AI-CADES-TESTING-GUIDE.md | ||
| CURSOR-CADES-GUIDE.md | ||
| CURSOR-PADES-GUIDE.md | ||
| env.d.ts | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| playwright.config.ts | ||
| postcss.config.js | ||
| README.md | ||
| tailwind.config.js | ||
| TESTING.md | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||
Sample Porject for ONAYLARIM coreAPI
ONAYLARIM coreAPI için örnek istemci (browser) uygulamasıdır.
Başlarken
Sunucu tarafı için Sunucu Projesini indirin.
Koddaki API_URL değişkenlerini sunucu tarafı projesinin URL'sine güncelleyin.
ONAYLARIM e-İmza Aracı, yalnızca onaylanmış URL'lerden gelen istekleri kabul eder. Bu nedenle lütfen bize istemci tarafı uygulamanızın URL'sini gönderin.
e-İmza Aracı getstatus Metodu
Genel Bakış
Uygulama, çeşitli işlemleri ve durumları dört ana bileşenden oluşur:
Log- Güvenli URL işlemleri için detaylı loglarLogSummary- Güvenli URL işlemleri için özet durumLogForVersionControl- Sürüm kontrol işlemleri için detaylı loglarLogForVersionControlSummary- Sürüm kontrol işlemleri için özet durum
Log Türleri ve Kullanımları
1. Güvenli URL Loglaması (Log)
Amaç
Güvenli URL yönetimi ile ilgili detaylı işlemleri takip eder:
- URL listesi indirme işlemleri
- Önbellek işlemleri
- Hata durumları
- Varsayılan URL listesi kullanımı
Yaygın Log Mesajları
- "SafeUrls downloaded from server." (Sunucudan URL'ler indirildi)
- "Cache successfully updated." (Önbellek başarıyla güncellendi)
- "Using cache. Cache date: {date}" (Önbellek kullanılıyor. Tarih: {date})
- "Cache is too old or invalid. Cache date: {date}" (Önbellek çok eski veya geçersiz. Tarih: {date})
- "Using default URL list." (Varsayılan URL listesi kullanılıyor)
- "Decryption failed. Error: {error}" (Şifre çözme başarısız. Hata: {error})
- "Cache file cannot be read. Error: {error}" (Önbellek dosyası okunamıyor. Hata: {error})
2. Güvenli URL Özeti (LogSummary)
Amaç
Güvenli URL işleminin durumunu tek satırda özetler.
Olası Değerler
"DOWNLOADEDFROMSERVER"- URL'ler sunucudan başarıyla indirildiğinde"USINGCACHE.{date}"- Önbellekteki veri kullanıldığında (tarih ile)"CACHEISOLD.{date}"- Önbellek çok eski olduğunda (tarih ile)
3. Sürüm Kontrol Loglaması (LogForVersionControl)
Amaç
Sürüm kontrolü ile ilgili detaylı işlemleri takip eder:
- Sürüm kontrol süreci
- Önbellek işlemleri
- Sunucu iletişimi
- Sürüm karşılaştırmaları
Yaygın Log Mesajları
- "Starting version check process." (Sürüm kontrol süreci başlatılıyor)
- "Successfully downloaded version information from server." (Sunucudan sürüm bilgisi başarıyla indirildi)
- "Version cache successfully updated." (Sürüm önbelleği başarıyla güncellendi)
- "Using cached version data from {timestamp}" (Önbellekteki sürüm verisi kullanılıyor)
- "Local version: {version}" (Yerel sürüm)
- "Server version: {version}" (Sunucu sürümü)
- "New version available." (Yeni sürüm mevcut)
- "Application is up to date." (Uygulama güncel)
4. Sürüm Kontrol Özeti (LogForVersionControlSummary)
Amaç
Sürüm kontrol işleminin durumunu tek satırda özetler.
Olası Değerler
"DOWNLOADEDFROMSERVER"- Sürüm bilgisi sunucudan başarıyla indirildiğinde"USINGCACHE.{timestamp}"- Önbellekteki sürüm verisi kullanıldığında"CACHEISOLD.{timestamp}"- Önbellek çok eski olduğunda
Log Erişimi
Loglar /getstatus endpoint'i üzerinden erişilebilir ve aşağıdaki yapıda bir JSON nesnesi döndürür:
{
"SafeUrlLog": [], // SafeUrlUtil.Log girişlerinin dizisi
"VersionControlLog": [], // SafeUrlUtil.LogForVersionControl girişlerinin dizisi
"LogSummary": "", // SafeUrlUtil.LogSummary değeri
"LogForVersionControlSummary": "" // SafeUrlUtil.LogForVersionControlSummary değeri
}
Recommended IDE Setup
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
Type Support for .vue Imports in TS
TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue types.
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:
- Disable the built-in TypeScript Extension
- Run
Extensions: Show Built-in Extensionsfrom VSCode's command palette - Find
TypeScript and JavaScript Language Features, right click and selectDisable (Workspace)
- Run
- Reload the VSCode window by running
Developer: Reload Windowfrom the command palette.
Customize configuration
See Vite Configuration Reference.
Project Setup
npm install
Compile and Hot-Reload for Development
npm run dev
Type-Check, Compile and Minify for Production
npm run build
https://seneka.com.tr
https://seneka.com.tr/primeapi