prepare public symlink
This commit is contained in:
@@ -130,12 +130,7 @@ export async function fetchVersion() {
|
||||
}
|
||||
|
||||
export async function fetchPing() {
|
||||
const response = await fetch('/ping', {
|
||||
headers: {
|
||||
Accept: 'application/json',
|
||||
},
|
||||
})
|
||||
return parseResponse(response)
|
||||
return apiFetch('/ping')
|
||||
}
|
||||
|
||||
export async function fetchVersionCheck() {
|
||||
|
||||
@@ -563,6 +563,14 @@ function Acp({ isAdmin }) {
|
||||
current: '—',
|
||||
status: systemStatus.storage_writable ? 'ok' : 'bad',
|
||||
},
|
||||
{
|
||||
id: 'storage_link',
|
||||
label: t('system.storage_linked'),
|
||||
path: 'public/storage -> storage/app/public',
|
||||
min: '—',
|
||||
current: '—',
|
||||
status: systemStatus.storage_public_linked ? 'ok' : 'bad',
|
||||
},
|
||||
{
|
||||
id: 'updates',
|
||||
label: t('system.updates_writable'),
|
||||
@@ -576,9 +584,9 @@ function Acp({ isAdmin }) {
|
||||
|
||||
const visibleSystemChecks = useMemo(() => {
|
||||
const visibilityBySection = {
|
||||
insite: ['php', 'proc', 'storage', 'updates'],
|
||||
cli: ['php', 'composer', 'node', 'npm', 'proc', 'storage', 'updates'],
|
||||
ci: ['php', 'composer', 'node', 'npm', 'tar', 'rsync', 'proc', 'storage', 'updates'],
|
||||
insite: ['php', 'proc', 'storage', 'storage_link', 'updates'],
|
||||
cli: ['php', 'composer', 'node', 'npm', 'proc', 'storage', 'storage_link'],
|
||||
ci: ['php', 'composer', 'node', 'npm', 'tar', 'rsync', 'proc', 'storage', 'storage_link', 'updates'],
|
||||
info: [],
|
||||
}
|
||||
const allowed = new Set(visibilityBySection[systemSection] || [])
|
||||
@@ -3861,14 +3869,15 @@ function Acp({ isAdmin }) {
|
||||
<p className="bb-muted mb-0 mt-1">
|
||||
CLI default php: {systemStatus?.php_default || '—'} (
|
||||
{systemStatus?.php_default_version || 'unknown'}){' '}
|
||||
{cliDefaultPhpIsSufficient ? (
|
||||
{phpSelectedIsSufficient ? (
|
||||
<i className="bi bi-check-circle-fill text-success" aria-hidden="true" />
|
||||
) : (
|
||||
<OverlayTrigger
|
||||
placement="top"
|
||||
overlay={
|
||||
<Tooltip id="cli-default-php-warning" data-bs-theme="light">
|
||||
You must select a custom PHP interpreter, as the system default is not sufficient.
|
||||
The selected PHP interpreter is not sufficient for the required
|
||||
composer.json PHP version.
|
||||
</Tooltip>
|
||||
}
|
||||
>
|
||||
@@ -3916,7 +3925,7 @@ function Acp({ isAdmin }) {
|
||||
<Form.Text className="bb-muted">
|
||||
Minimum required PHP (from composer.json):{' '}
|
||||
{systemStatus?.min_versions?.php || 'unknown'}. Use a custom binary
|
||||
on like php84. On KeyHelp setups use e.g. `keyhelp-php84`.
|
||||
like php84. On KeyHelp setups use e.g. `keyhelp-php84`.
|
||||
</Form.Text>
|
||||
</Form.Group>
|
||||
<Button type="submit" variant="dark" disabled={systemCliSaving}>
|
||||
|
||||
@@ -204,6 +204,7 @@
|
||||
"system.none": "Keine",
|
||||
"system.not_found": "Nicht gefunden",
|
||||
"system.storage_writable": "Storage beschreibbar",
|
||||
"system.storage_linked": "Storage Public-Link",
|
||||
"system.updates_writable": "Updates beschreibbar",
|
||||
"system.ok": "OK",
|
||||
"system.not_ok": "Nicht OK",
|
||||
|
||||
@@ -194,6 +194,7 @@
|
||||
"system.none": "None",
|
||||
"system.not_found": "Not found",
|
||||
"system.storage_writable": "Storage writable",
|
||||
"system.storage_linked": "Storage public link",
|
||||
"system.updates_writable": "Updates writable",
|
||||
"system.ok": "OK",
|
||||
"system.not_ok": "Not OK",
|
||||
|
||||
Reference in New Issue
Block a user