Versiyon güncellemelerinde otomatik ChangeLog yönlendirildi.
This commit is contained in:
parent
43a9459691
commit
fcd6547dcb
7 changed files with 51 additions and 35 deletions
|
|
@ -82,7 +82,7 @@ define(['./workbox-54d0af47'], (function (workbox) { 'use strict';
|
||||||
"revision": "3ca0b8505b4bec776b69afdba2768812"
|
"revision": "3ca0b8505b4bec776b69afdba2768812"
|
||||||
}, {
|
}, {
|
||||||
"url": "/index.html",
|
"url": "/index.html",
|
||||||
"revision": "0.gs76v890q3g"
|
"revision": "0.l905521idmg"
|
||||||
}], {});
|
}], {});
|
||||||
workbox.cleanupOutdatedCaches();
|
workbox.cleanupOutdatedCaches();
|
||||||
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("/index.html"), {
|
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("/index.html"), {
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,8 @@ 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 UiVersion = useStoreState((state) => state.locale.currentUiVersion)
|
||||||
const { setUiVersion } = useStoreActions((a) => a.locale)
|
const { setUiVersion } = useStoreActions((a) => a.locale)
|
||||||
|
|
||||||
const tenantName = useStoreState((state) => state.locale.currentTenantName)
|
const tenantName = useStoreState((state) => state.locale.currentTenantName)
|
||||||
|
|
@ -201,11 +203,11 @@ const Login = () => {
|
||||||
|
|
||||||
const findUiVersion = async () => {
|
const findUiVersion = async () => {
|
||||||
try {
|
try {
|
||||||
const res = await fetch('/version.json?ts=' + Date.now())
|
const res = await fetch(`/version.json?ts=${Date.now()}`)
|
||||||
const data = await res.json()
|
const latest = (await res.json())?.releases?.[0]?.version
|
||||||
const latest = data?.releases?.[0]?.version
|
if (latest && UiVersion !== latest) {
|
||||||
if (latest) {
|
|
||||||
setUiVersion(latest)
|
setUiVersion(latest)
|
||||||
|
navigate(ROUTES_ENUM.protected.admin.changeLog)
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.warn('Versiyon okunamadı', e)
|
console.warn('Versiyon okunamadı', e)
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ const FormDevExpress = (props: {
|
||||||
const { listFormCode, isSubForm, mode, refForm, formData, formItems, setFormData } = props
|
const { listFormCode, isSubForm, mode, refForm, formData, formItems, setFormData } = props
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<form className={`${DX_CLASSNAMES} py-2`}>
|
<form className={`${DX_CLASSNAMES} py-2 px-2`}>
|
||||||
<FormDx
|
<FormDx
|
||||||
ref={refForm}
|
ref={refForm}
|
||||||
formData={formData}
|
formData={formData}
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,9 @@ const FormEdit = (
|
||||||
defaultTitle="Sözsoft Kurs Platform"
|
defaultTitle="Sözsoft Kurs Platform"
|
||||||
></Helmet>
|
></Helmet>
|
||||||
)}
|
)}
|
||||||
<div className={`flex items-center mb-2 ${isSubForm ? 'justify-center' : 'justify-between'}`}>
|
<div
|
||||||
|
className={`flex items-center pb-2 px-2 ${isSubForm ? 'justify-end' : 'justify-between'}`}
|
||||||
|
>
|
||||||
{!isSubForm && <h3>{translate('::' + gridDto?.gridOptions.title)}</h3>}
|
{!isSubForm && <h3>{translate('::' + gridDto?.gridOptions.title)}</h3>}
|
||||||
{permissionResults && (
|
{permissionResults && (
|
||||||
<FormButtons
|
<FormButtons
|
||||||
|
|
@ -88,6 +90,7 @@ const FormEdit = (
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
<div className="px-2">
|
||||||
<FormDevExpress
|
<FormDevExpress
|
||||||
mode={mode}
|
mode={mode}
|
||||||
refForm={refForm}
|
refForm={refForm}
|
||||||
|
|
@ -96,6 +99,7 @@ const FormEdit = (
|
||||||
setFormData={setFormData}
|
setFormData={setFormData}
|
||||||
listFormCode={listFormCode}
|
listFormCode={listFormCode}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
<SubForms gridDto={gridDto!} formData={formData} level={level ?? 0} />
|
<SubForms gridDto={gridDto!} formData={formData} level={level ?? 0} />
|
||||||
</Container>
|
</Container>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -152,7 +152,9 @@ const FormNew = (
|
||||||
defaultTitle="Sözsoft Kurs Platform"
|
defaultTitle="Sözsoft Kurs Platform"
|
||||||
></Helmet>
|
></Helmet>
|
||||||
)}
|
)}
|
||||||
<div className={`flex items-center mb-2 ${isSubForm ? 'justify-center' : 'justify-between'}`}>
|
<div
|
||||||
|
className={`flex items-center pb-2 px-2 ${isSubForm ? 'justify-end' : 'justify-between'}`}
|
||||||
|
>
|
||||||
{!isSubForm && <h3>{translate('::' + gridDto?.gridOptions.title)}</h3>}
|
{!isSubForm && <h3>{translate('::' + gridDto?.gridOptions.title)}</h3>}
|
||||||
{permissionResults && (
|
{permissionResults && (
|
||||||
<FormButtons
|
<FormButtons
|
||||||
|
|
@ -173,6 +175,7 @@ const FormNew = (
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
<div className="px-2">
|
||||||
<FormDevExpress
|
<FormDevExpress
|
||||||
mode={mode}
|
mode={mode}
|
||||||
refForm={refForm}
|
refForm={refForm}
|
||||||
|
|
@ -181,6 +184,7 @@ const FormNew = (
|
||||||
setFormData={setFormData}
|
setFormData={setFormData}
|
||||||
listFormCode={listFormCode}
|
listFormCode={listFormCode}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
</Container>
|
</Container>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,9 @@ const FormView = (
|
||||||
defaultTitle="Sözsoft Kurs Platform"
|
defaultTitle="Sözsoft Kurs Platform"
|
||||||
></Helmet>
|
></Helmet>
|
||||||
)}
|
)}
|
||||||
<div className={`flex items-center mb-2 ${isSubForm ? 'justify-center' : 'justify-between'}`}>
|
<div
|
||||||
|
className={`flex items-center pb-2 px-2 ${isSubForm ? 'justify-end' : 'justify-between'}`}
|
||||||
|
>
|
||||||
{!isSubForm && <h3>{translate('::' + gridDto?.gridOptions.title)}</h3>}
|
{!isSubForm && <h3>{translate('::' + gridDto?.gridOptions.title)}</h3>}
|
||||||
{permissionResults && (
|
{permissionResults && (
|
||||||
<FormButtons
|
<FormButtons
|
||||||
|
|
@ -82,6 +84,7 @@ const FormView = (
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
<div className="px-2">
|
||||||
<FormDevExpress
|
<FormDevExpress
|
||||||
mode={mode}
|
mode={mode}
|
||||||
refForm={refForm}
|
refForm={refForm}
|
||||||
|
|
@ -90,6 +93,7 @@ const FormView = (
|
||||||
setFormData={() => {}}
|
setFormData={() => {}}
|
||||||
listFormCode={listFormCode}
|
listFormCode={listFormCode}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
<SubForms gridDto={gridDto!} formData={formData} level={level ?? 0} refreshData={fetchData} />
|
<SubForms gridDto={gridDto!} formData={formData} level={level ?? 0} refreshData={fetchData} />
|
||||||
</Container>
|
</Container>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -149,8 +149,10 @@ const CardItem = ({
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="bg-white dark:bg-neutral-800 border dark:border-neutral-700 flex flex-col groupp p-2">
|
<div className="bg-white dark:bg-neutral-800 border dark:border-neutral-700 flex flex-col">
|
||||||
<div className={`flex items-center ${isSubForm ? 'justify-end' : 'justify-between'}`}>
|
<div
|
||||||
|
className={`flex items-center pt-2 px-2 ${isSubForm ? 'justify-end' : 'justify-between'}`}
|
||||||
|
>
|
||||||
{!isSubForm && <h3>{translate('::' + gridDto?.gridOptions.title)}</h3>}
|
{!isSubForm && <h3>{translate('::' + gridDto?.gridOptions.title)}</h3>}
|
||||||
{permissionResults && (
|
{permissionResults && (
|
||||||
<FormButtons
|
<FormButtons
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue