Yeni versiyon bilgileri Login de alınıyor
This commit is contained in:
parent
08799590e2
commit
a8dbf4c3c5
5 changed files with 19 additions and 132 deletions
|
|
@ -82,7 +82,7 @@ define(['./workbox-54d0af47'], (function (workbox) { 'use strict';
|
||||||
"revision": "3ca0b8505b4bec776b69afdba2768812"
|
"revision": "3ca0b8505b4bec776b69afdba2768812"
|
||||||
}, {
|
}, {
|
||||||
"url": "/index.html",
|
"url": "/index.html",
|
||||||
"revision": "0.0b2biv3ob58"
|
"revision": "0.gs76v890q3g"
|
||||||
}], {});
|
}], {});
|
||||||
workbox.cleanupOutdatedCaches();
|
workbox.cleanupOutdatedCaches();
|
||||||
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("/index.html"), {
|
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("/index.html"), {
|
||||||
|
|
|
||||||
|
|
@ -1,112 +0,0 @@
|
||||||
{
|
|
||||||
"releases": [
|
|
||||||
{
|
|
||||||
"version": "1.0.14",
|
|
||||||
"buildDate": "2025-09-22",
|
|
||||||
"commit": "1c4ab4f8232b4cd2a39fa66f8101664840113ce5",
|
|
||||||
"changeLog": [
|
|
||||||
"Yeni versiyon çıktı uyarı gelecek şekilde düzenlendi.",
|
|
||||||
"Sağ alt kısımda mesaj çıkacak ve yenile butonu ile uygulama yeni versiyona geçecektir."
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "1.0.13",
|
|
||||||
"buildDate": "2025-09-22",
|
|
||||||
"commit": "c5f3a65304bc3c04d89ddf2f01d02563c656b911",
|
|
||||||
"changeLog": [
|
|
||||||
"nginx ayarları ve versiyon yenileme hakkında düzeltme"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "1.0.12",
|
|
||||||
"buildDate": "2025-09-22",
|
|
||||||
"commit": "f55b777a171ec2072999e204b8e1e818fd91d8a3",
|
|
||||||
"changeLog": [
|
|
||||||
"Versiyon yenileme sistemi güncellemesi"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "1.0.11",
|
|
||||||
"buildDate": "2025-09-22",
|
|
||||||
"commit": "b2e489d7051ca47a82561cbf2674ec49dc30ed92",
|
|
||||||
"changeLog": [
|
|
||||||
"Liste formlarda Layout görünümü düzenlemesi"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "1.0.10",
|
|
||||||
"buildDate": "2025-09-22",
|
|
||||||
"commit": "b75158bc018b4d5076e0208796d68f16975e77d8",
|
|
||||||
"changeLog": [
|
|
||||||
"EditorOptions içerisine DataSource özelliği eklendi"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "1.0.9",
|
|
||||||
"buildDate": "2025-09-21",
|
|
||||||
"commit": "e14d6930c21d2b1c108f16ce675dd05474a95d9e",
|
|
||||||
"changeLog": [
|
|
||||||
"Form komponentinin SelectBox -> lookup bilgisi varsa verileri dolduruyor"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "1.0.8",
|
|
||||||
"buildDate": "2025-09-21",
|
|
||||||
"commit": "3f69cc54e94cf40db87fb23ba4cf7b311cc1f77c",
|
|
||||||
"changeLog": [
|
|
||||||
"Listelere Grid ve Card görünümleri eklendi."
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "1.0.7",
|
|
||||||
"buildDate": "2025-09-20",
|
|
||||||
"commit": "8754fc65c1a855b9b625db93a4f8d39f92fa5ab8",
|
|
||||||
"changeLog": [
|
|
||||||
"Versiyon güncellemesi için geçiş uyarı sistemi"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "1.0.6",
|
|
||||||
"buildDate": "2025-09-19",
|
|
||||||
"commit": "9e85780623d940f43155474b66f2820d997abe3a",
|
|
||||||
"changeLog": [
|
|
||||||
"Versiyon güncelleme sistemi",
|
|
||||||
"Vite.Config dosyasında hızlandırma adına güncellemeler"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "1.0.5",
|
|
||||||
"buildDate": "2025-09-19",
|
|
||||||
"commit": "c947fb2a1c0979df3d7fd4dab47af7a2d370f622",
|
|
||||||
"changeLog": [
|
|
||||||
"Form ekranındaki Butonlar güncellemeleri yapıldı",
|
|
||||||
"Edit Form ekranındaki Info butonu eklendi.",
|
|
||||||
"New Form ekranındaki Geri butonu eklendi."
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "1.0.4",
|
|
||||||
"buildDate": "2025-09-19",
|
|
||||||
"commit": "6766d1129d345e165282fc3ec198a168f188ab00",
|
|
||||||
"changeLog": [
|
|
||||||
"Subformlar üzerinde extra filters ve Widget çalışmaları yapıldı."
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "1.0.3",
|
|
||||||
"buildDate": "2025-09-19",
|
|
||||||
"commit": "656d1626179733f8da56aa2268b852a79efe26d8",
|
|
||||||
"changeLog": [
|
|
||||||
"Manage Grid üzerinde Extra filtre tanımlaması yapıldı."
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "1.0.2",
|
|
||||||
"buildDate": "2025-09-16",
|
|
||||||
"commit": "c6d2fbf30acae9c96502dfdd3846cbfbaf8af614",
|
|
||||||
"changeLog": [
|
|
||||||
"Genel Static olan Url bilgileri kaldırıldı."
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
@ -11,24 +11,6 @@ import 'devextreme-react/html-editor'
|
||||||
// // Lisansı uygulama başlamadan önce kaydediyoruz
|
// // Lisansı uygulama başlamadan önce kaydediyoruz
|
||||||
// config({ licenseKey })
|
// config({ licenseKey })
|
||||||
|
|
||||||
import { store } from '@/store'
|
|
||||||
|
|
||||||
async function initVersion() {
|
|
||||||
try {
|
|
||||||
const res = await fetch('/version.json?ts=' + Date.now())
|
|
||||||
const data = await res.json()
|
|
||||||
const latest = data?.releases?.[0]?.version
|
|
||||||
if (latest) {
|
|
||||||
store.getActions().locale.setUiVersion(latest)
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
console.warn('Versiyon okunamadı', e)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// uygulama başlamadan bir defa çağır
|
|
||||||
initVersion()
|
|
||||||
|
|
||||||
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(<App />)
|
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(<App />)
|
||||||
|
|
||||||
UiEvalService.Init()
|
UiEvalService.Init()
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,7 @@ const Login = () => {
|
||||||
const navigate = useNavigate()
|
const navigate = useNavigate()
|
||||||
const isMultiTenant = useStoreState((a) => a.abpConfig.config?.multiTenancy.isEnabled)
|
const isMultiTenant = useStoreState((a) => a.abpConfig.config?.multiTenancy.isEnabled)
|
||||||
const { setTenant } = useStoreActions((a) => a.auth.tenant)
|
const { setTenant } = useStoreActions((a) => a.auth.tenant)
|
||||||
|
const { setUiVersion } = useStoreActions((a) => a.locale)
|
||||||
|
|
||||||
const tenantName = useStoreState((state) => state.locale.currentTenantName)
|
const tenantName = useStoreState((state) => state.locale.currentTenantName)
|
||||||
const { setTenantName } = useStoreActions((actions) => actions.locale)
|
const { setTenantName } = useStoreActions((actions) => actions.locale)
|
||||||
|
|
@ -155,6 +156,9 @@ const Login = () => {
|
||||||
|
|
||||||
//Tenant belirlenmişse
|
//Tenant belirlenmişse
|
||||||
fetchDataByName(tenantName || '')
|
fetchDataByName(tenantName || '')
|
||||||
|
|
||||||
|
// Versiyon kontrolü
|
||||||
|
findUiVersion()
|
||||||
}
|
}
|
||||||
|
|
||||||
setSubmitting(false)
|
setSubmitting(false)
|
||||||
|
|
@ -195,6 +199,19 @@ const Login = () => {
|
||||||
}
|
}
|
||||||
: undefined
|
: undefined
|
||||||
|
|
||||||
|
const findUiVersion = async () => {
|
||||||
|
try {
|
||||||
|
const res = await fetch('/version.json?ts=' + Date.now())
|
||||||
|
const data = await res.json()
|
||||||
|
const latest = data?.releases?.[0]?.version
|
||||||
|
if (latest) {
|
||||||
|
setUiVersion(latest)
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
console.warn('Versiyon okunamadı', e)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Helmet
|
<Helmet
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ export const registerServiceWorker = () => {
|
||||||
registerSW({
|
registerSW({
|
||||||
immediate: true,
|
immediate: true,
|
||||||
onNeedRefresh() {
|
onNeedRefresh() {
|
||||||
console.log('🔔 New content available, please refresh.')
|
console.log('🔔 New version available, please refresh.')
|
||||||
window.location.reload()
|
window.location.reload()
|
||||||
},
|
},
|
||||||
onOfflineReady() {
|
onOfflineReady() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue