mirror of
https://github.com/haiwen/seahub.git
synced 2025-05-06 23:17:25 +00:00
optimize
This commit is contained in:
parent
a3df5ddd0e
commit
d988c3f0cb
frontend/src/components/dialog
seahub
@ -17,7 +17,7 @@ import { useMetadataStatus } from '../../hooks';
|
|||||||
|
|
||||||
import '../../css/lib-settings.css';
|
import '../../css/lib-settings.css';
|
||||||
|
|
||||||
const { enableSeafileAI, enableOCR: enableSeafileOCR } = window.app.config;
|
const { enableSeafileAI, enableSeafileOCR } = window.app.config;
|
||||||
|
|
||||||
const propTypes = {
|
const propTypes = {
|
||||||
toggleDialog: PropTypes.func.isRequired,
|
toggleDialog: PropTypes.func.isRequired,
|
||||||
|
@ -26,7 +26,7 @@ from seahub.settings import SEAFILE_VERSION, SITE_DESCRIPTION, \
|
|||||||
CUSTOM_LOGIN_BG_PATH, ENABLE_SHARE_LINK_REPORT_ABUSE, \
|
CUSTOM_LOGIN_BG_PATH, ENABLE_SHARE_LINK_REPORT_ABUSE, \
|
||||||
PRIVACY_POLICY_LINK, TERMS_OF_SERVICE_LINK, ENABLE_SEADOC, THUMBNAIL_SIZE_FOR_GRID, \
|
PRIVACY_POLICY_LINK, TERMS_OF_SERVICE_LINK, ENABLE_SEADOC, THUMBNAIL_SIZE_FOR_GRID, \
|
||||||
FILE_SERVER_ROOT, ENABLE_WHITEBOARD, ENABLE_SEAFILE_AI, ENABLE_EXCALIDRAW, \
|
FILE_SERVER_ROOT, ENABLE_WHITEBOARD, ENABLE_SEAFILE_AI, ENABLE_EXCALIDRAW, \
|
||||||
NOTIFICATION_SERVER_URL, ENABLE_OCR
|
NOTIFICATION_SERVER_URL, ENABLE_SEAFILE_OCR
|
||||||
|
|
||||||
from seahub.organizations.models import OrgAdminSettings
|
from seahub.organizations.models import OrgAdminSettings
|
||||||
from seahub.organizations.settings import ORG_ENABLE_ADMIN_CUSTOM_LOGO
|
from seahub.organizations.settings import ORG_ENABLE_ADMIN_CUSTOM_LOGO
|
||||||
@ -184,7 +184,7 @@ def base(request):
|
|||||||
'enable_whiteboard': ENABLE_WHITEBOARD,
|
'enable_whiteboard': ENABLE_WHITEBOARD,
|
||||||
'enable_excalidraw': ENABLE_EXCALIDRAW,
|
'enable_excalidraw': ENABLE_EXCALIDRAW,
|
||||||
'notification_server_url': NOTIFICATION_SERVER_URL,
|
'notification_server_url': NOTIFICATION_SERVER_URL,
|
||||||
'enable_ocr': ENABLE_OCR,
|
'enable_seafile_ocr': ENABLE_SEAFILE_OCR,
|
||||||
}
|
}
|
||||||
|
|
||||||
if request.user.is_staff:
|
if request.user.is_staff:
|
||||||
|
@ -1070,7 +1070,7 @@ SEAFILE_AI_SERVER_URL = ''
|
|||||||
SEAFILE_AI_SECRET_KEY = ''
|
SEAFILE_AI_SECRET_KEY = ''
|
||||||
|
|
||||||
ENABLE_SEAFILE_AI = False
|
ENABLE_SEAFILE_AI = False
|
||||||
ENABLE_OCR = False
|
ENABLE_SEAFILE_OCR = False
|
||||||
|
|
||||||
d = os.path.dirname
|
d = os.path.dirname
|
||||||
EVENTS_CONFIG_FILE = os.environ.get(
|
EVENTS_CONFIG_FILE = os.environ.get(
|
||||||
|
@ -58,7 +58,7 @@
|
|||||||
cloudMode: {% if cloud_mode %} true {% else %} false {% endif %},
|
cloudMode: {% if cloud_mode %} true {% else %} false {% endif %},
|
||||||
isOrgContext: {% if org is not None %} true {% else %} false {% endif %},
|
isOrgContext: {% if org is not None %} true {% else %} false {% endif %},
|
||||||
enableSeafileAI: {% if enable_seafile_ai %} true {% else %} false {% endif %},
|
enableSeafileAI: {% if enable_seafile_ai %} true {% else %} false {% endif %},
|
||||||
enableOCR: {% if enable_ocr %} true {% else %} false {% endif %},
|
enableSeafileOCR: {% if enable_seafile_ocr %} true {% else %} false {% endif %},
|
||||||
notificationServerUrl: '{{ notification_server_url }}'
|
notificationServerUrl: '{{ notification_server_url }}'
|
||||||
},
|
},
|
||||||
pageOptions: {
|
pageOptions: {
|
||||||
|
Loading…
Reference in New Issue
Block a user