smart-admin-web 10.26.0 → 10.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/index.d.ts +163 -0
- package/dist/api/index.js +195 -108
- package/dist/api/index.js.map +1 -1
- package/dist/api/schema.d.ts +1465 -109
- package/dist/assets/icons/ph-subset.json.js +1 -1
- package/dist/components/FilePathUpload/index.vue.d.ts +35 -0
- package/dist/components/FilePathUpload/index.vue.js +47 -0
- package/dist/components/FilePathUpload/index.vue.js.map +1 -0
- package/dist/components/FilePathUpload/index2.vue.js +5 -0
- package/dist/components/FilePathUpload/index2.vue.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +302 -294
- package/dist/index.js.map +1 -1
- package/dist/lib/runtime.js +1 -1
- package/dist/locales/en-US.d.ts +141 -0
- package/dist/locales/en-US.js +136 -0
- package/dist/locales/en-US.js.map +1 -1
- package/dist/locales/kernelMenuTitles.js +10 -0
- package/dist/locales/kernelMenuTitles.js.map +1 -1
- package/dist/locales/zh-CN.d.ts +141 -0
- package/dist/locales/zh-CN.js +136 -0
- package/dist/locales/zh-CN.js.map +1 -1
- package/dist/router/viewRegistry.js +8 -8
- package/dist/router/viewRegistry.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/error.js +22 -18
- package/dist/utils/error.js.map +1 -1
- package/dist/utils/filePathUpload.d.ts +14 -0
- package/dist/utils/filePathUpload.js +84 -0
- package/dist/utils/filePathUpload.js.map +1 -0
- package/dist/views/system/file-path/access.d.ts +15 -0
- package/dist/views/system/file-path/access.js +49 -0
- package/dist/views/system/file-path/access.js.map +1 -0
- package/dist/views/system/file-path/components/PathForm.vue.d.ts +18 -0
- package/dist/views/system/file-path/components/PathForm.vue.js +8 -0
- package/dist/views/system/file-path/components/PathForm.vue.js.map +1 -0
- package/dist/views/system/file-path/components/PathForm2.vue.js +529 -0
- package/dist/views/system/file-path/components/PathForm2.vue.js.map +1 -0
- package/dist/views/system/file-path/components/PathTab.vue.d.ts +3 -0
- package/dist/views/system/file-path/components/PathTab.vue.js +8 -0
- package/dist/views/system/file-path/components/PathTab.vue.js.map +1 -0
- package/dist/views/system/file-path/components/PathTab2.vue.js +226 -0
- package/dist/views/system/file-path/components/PathTab2.vue.js.map +1 -0
- package/dist/views/system/file-path/components/ServerForm.vue.d.ts +20 -0
- package/dist/views/system/file-path/components/ServerForm.vue.js +8 -0
- package/dist/views/system/file-path/components/ServerForm.vue.js.map +1 -0
- package/dist/views/system/file-path/components/ServerForm2.vue.js +328 -0
- package/dist/views/system/file-path/components/ServerForm2.vue.js.map +1 -0
- package/dist/views/system/file-path/components/ServerTab.vue.d.ts +7 -0
- package/dist/views/system/file-path/components/ServerTab.vue.js +8 -0
- package/dist/views/system/file-path/components/ServerTab.vue.js.map +1 -0
- package/dist/views/system/file-path/components/ServerTab2.vue.js +181 -0
- package/dist/views/system/file-path/components/ServerTab2.vue.js.map +1 -0
- package/dist/views/system/file-path/index.vue.d.ts +3 -0
- package/dist/views/system/file-path/index.vue.js +8 -0
- package/dist/views/system/file-path/index.vue.js.map +1 -0
- package/dist/views/system/file-path/index2.vue.js +61 -0
- package/dist/views/system/file-path/index2.vue.js.map +1 -0
- package/dist/views/system/file-path/rules.d.ts +61 -0
- package/dist/views/system/file-path/rules.js +53 -0
- package/dist/views/system/file-path/rules.js.map +1 -0
- package/package.json +1 -1
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/lib/runtime.js
CHANGED
package/dist/locales/en-US.d.ts
CHANGED
|
@@ -351,6 +351,7 @@ declare const _default: {
|
|
|
351
351
|
exceptionLog: string;
|
|
352
352
|
session: string;
|
|
353
353
|
file: string;
|
|
354
|
+
filePath: string;
|
|
354
355
|
aiModel: string;
|
|
355
356
|
aiUsage: string;
|
|
356
357
|
};
|
|
@@ -441,6 +442,15 @@ declare const _default: {
|
|
|
441
442
|
fileUpload: string;
|
|
442
443
|
fileDelete: string;
|
|
443
444
|
fileDownload: string;
|
|
445
|
+
filePathQuery: string;
|
|
446
|
+
filePathCreate: string;
|
|
447
|
+
filePathUpdate: string;
|
|
448
|
+
filePathDelete: string;
|
|
449
|
+
filePathTest: string;
|
|
450
|
+
fileServerQuery: string;
|
|
451
|
+
fileServerCreate: string;
|
|
452
|
+
fileServerUpdate: string;
|
|
453
|
+
fileServerDelete: string;
|
|
444
454
|
aiProviderQuery: string;
|
|
445
455
|
aiProviderCreate: string;
|
|
446
456
|
aiProviderUpdate: string;
|
|
@@ -1942,6 +1952,48 @@ declare const _default: {
|
|
|
1942
1952
|
multimodalSystemUnsupported: string;
|
|
1943
1953
|
structuredOutputUnsupported: string;
|
|
1944
1954
|
};
|
|
1955
|
+
filePath: {
|
|
1956
|
+
notFound: string;
|
|
1957
|
+
codeExists: string;
|
|
1958
|
+
codeInvalid: string;
|
|
1959
|
+
ruleIncomplete: string;
|
|
1960
|
+
extensionsInvalid: string;
|
|
1961
|
+
readOnly: string;
|
|
1962
|
+
uploadDenied: string;
|
|
1963
|
+
downloadDenied: string;
|
|
1964
|
+
extNotAllowed: string;
|
|
1965
|
+
tooLarge: string;
|
|
1966
|
+
fileExists: string;
|
|
1967
|
+
invalidPath: string;
|
|
1968
|
+
fileNotFound: string;
|
|
1969
|
+
folderUnavailable: string;
|
|
1970
|
+
chunkMissing: string;
|
|
1971
|
+
chunkHashMismatch: string;
|
|
1972
|
+
uploadSessionInvalid: string;
|
|
1973
|
+
};
|
|
1974
|
+
fileServer: {
|
|
1975
|
+
notFound: string;
|
|
1976
|
+
nameExists: string;
|
|
1977
|
+
rootNotAllowed: string;
|
|
1978
|
+
shareRequired: string;
|
|
1979
|
+
accountConflict: string;
|
|
1980
|
+
inUse: string;
|
|
1981
|
+
dataProtectionKeyMissing: string;
|
|
1982
|
+
passwordRequired: string;
|
|
1983
|
+
rootProtected: string;
|
|
1984
|
+
};
|
|
1985
|
+
reason: {
|
|
1986
|
+
accessDenied: string;
|
|
1987
|
+
networkPathNotFound: string;
|
|
1988
|
+
shareNotFound: string;
|
|
1989
|
+
badCredentials: string;
|
|
1990
|
+
accountLocked: string;
|
|
1991
|
+
credentialConflict: string;
|
|
1992
|
+
timeout: string;
|
|
1993
|
+
folderMissing: string;
|
|
1994
|
+
busy: string;
|
|
1995
|
+
unknown: string;
|
|
1996
|
+
};
|
|
1945
1997
|
recycle: {
|
|
1946
1998
|
notFound: string;
|
|
1947
1999
|
uniqueConflict: string;
|
|
@@ -1954,6 +2006,95 @@ declare const _default: {
|
|
|
1954
2006
|
internal: string;
|
|
1955
2007
|
};
|
|
1956
2008
|
};
|
|
2009
|
+
filePath: {
|
|
2010
|
+
tabs: {
|
|
2011
|
+
path: string;
|
|
2012
|
+
server: string;
|
|
2013
|
+
};
|
|
2014
|
+
saved: string;
|
|
2015
|
+
deleted: string;
|
|
2016
|
+
remark: string;
|
|
2017
|
+
status: {
|
|
2018
|
+
column: string;
|
|
2019
|
+
checking: string;
|
|
2020
|
+
online: string;
|
|
2021
|
+
offline: string;
|
|
2022
|
+
unknown: string;
|
|
2023
|
+
};
|
|
2024
|
+
test: {
|
|
2025
|
+
action: string;
|
|
2026
|
+
ok: string;
|
|
2027
|
+
failed: string;
|
|
2028
|
+
};
|
|
2029
|
+
namingRule: {
|
|
2030
|
+
yearMonthOriginal: string;
|
|
2031
|
+
businessPath: string;
|
|
2032
|
+
dateGuid: string;
|
|
2033
|
+
};
|
|
2034
|
+
onConflict: {
|
|
2035
|
+
reject: string;
|
|
2036
|
+
overwrite: string;
|
|
2037
|
+
};
|
|
2038
|
+
path: {
|
|
2039
|
+
keyword: string;
|
|
2040
|
+
code: string;
|
|
2041
|
+
name: string;
|
|
2042
|
+
server: string;
|
|
2043
|
+
folder: string;
|
|
2044
|
+
namingRule: string;
|
|
2045
|
+
extensions: string;
|
|
2046
|
+
maxSize: string;
|
|
2047
|
+
uploadRoles: string;
|
|
2048
|
+
downloadRoles: string;
|
|
2049
|
+
readOnly: string;
|
|
2050
|
+
onConflict: string;
|
|
2051
|
+
allLoggedIn: string;
|
|
2052
|
+
roleSeparator: string;
|
|
2053
|
+
unknownRule: string;
|
|
2054
|
+
addTitle: string;
|
|
2055
|
+
editTitle: string;
|
|
2056
|
+
deleteConfirm: string;
|
|
2057
|
+
moveTip: string;
|
|
2058
|
+
codePlaceholder: string;
|
|
2059
|
+
codeImmutableHint: string;
|
|
2060
|
+
codeInvalid: string;
|
|
2061
|
+
nameRequired: string;
|
|
2062
|
+
serverRequired: string;
|
|
2063
|
+
serverPlaceholder: string;
|
|
2064
|
+
folderPlaceholder: string;
|
|
2065
|
+
fullFolder: string;
|
|
2066
|
+
example: string;
|
|
2067
|
+
overwriteRisk: string;
|
|
2068
|
+
readOnlyHint: string;
|
|
2069
|
+
extensionsPlaceholder: string;
|
|
2070
|
+
extensionsHint: string;
|
|
2071
|
+
extensionsInvalid: string;
|
|
2072
|
+
extensionsRequired: string;
|
|
2073
|
+
maxSizeRequired: string;
|
|
2074
|
+
rolesPlaceholder: string;
|
|
2075
|
+
};
|
|
2076
|
+
server: {
|
|
2077
|
+
keyword: string;
|
|
2078
|
+
name: string;
|
|
2079
|
+
rootPath: string;
|
|
2080
|
+
userName: string;
|
|
2081
|
+
password: string;
|
|
2082
|
+
passwordSet: string;
|
|
2083
|
+
addTitle: string;
|
|
2084
|
+
editTitle: string;
|
|
2085
|
+
deleteConfirm: string;
|
|
2086
|
+
nameRequired: string;
|
|
2087
|
+
rootPathRequired: string;
|
|
2088
|
+
rootPathPlaceholder: string;
|
|
2089
|
+
userNamePlaceholder: string;
|
|
2090
|
+
passwordPlaceholder: string;
|
|
2091
|
+
passwordHint: string;
|
|
2092
|
+
passwordReentry: string;
|
|
2093
|
+
cascadeChange: string;
|
|
2094
|
+
cascadeClear: string;
|
|
2095
|
+
credentialsUnsupported: string;
|
|
2096
|
+
};
|
|
2097
|
+
};
|
|
1957
2098
|
recycle: {
|
|
1958
2099
|
title: string;
|
|
1959
2100
|
name: string;
|
package/dist/locales/en-US.js
CHANGED
|
@@ -354,6 +354,7 @@ const e = {
|
|
|
354
354
|
exceptionLog: "Exception Logs",
|
|
355
355
|
session: "Online Sessions",
|
|
356
356
|
file: "Files",
|
|
357
|
+
filePath: "File Paths",
|
|
357
358
|
aiModel: "AI Models",
|
|
358
359
|
aiUsage: "AI Usage"
|
|
359
360
|
},
|
|
@@ -444,6 +445,15 @@ const e = {
|
|
|
444
445
|
fileUpload: "File - Upload",
|
|
445
446
|
fileDelete: "File - Delete",
|
|
446
447
|
fileDownload: "File - Download",
|
|
448
|
+
filePathQuery: "File Path - Query",
|
|
449
|
+
filePathCreate: "File Path - Create",
|
|
450
|
+
filePathUpdate: "File Path - Update",
|
|
451
|
+
filePathDelete: "File Path - Delete",
|
|
452
|
+
filePathTest: "File Path - Test Connection",
|
|
453
|
+
fileServerQuery: "File Server - Query",
|
|
454
|
+
fileServerCreate: "File Server - Create",
|
|
455
|
+
fileServerUpdate: "File Server - Update",
|
|
456
|
+
fileServerDelete: "File Server - Delete",
|
|
447
457
|
aiProviderQuery: "AI Provider - Query",
|
|
448
458
|
aiProviderCreate: "AI Provider - Create",
|
|
449
459
|
aiProviderUpdate: "AI Provider - Update",
|
|
@@ -1940,6 +1950,48 @@ const e = {
|
|
|
1940
1950
|
multimodalSystemUnsupported: "System messages do not support multi-part content such as images",
|
|
1941
1951
|
structuredOutputUnsupported: "This provider does not support structured output (json_schema) constraints"
|
|
1942
1952
|
},
|
|
1953
|
+
filePath: {
|
|
1954
|
+
notFound: "File path not found or disabled",
|
|
1955
|
+
codeExists: "File path code already exists",
|
|
1956
|
+
codeInvalid: "Code may only contain letters, digits, dots, underscores and hyphens, up to 64 characters",
|
|
1957
|
+
ruleIncomplete: "A writable file path needs allowed extensions and a size limit",
|
|
1958
|
+
extensionsInvalid: "Invalid extensions: each must start with a dot and have up to 15 letters or digits, separated by commas",
|
|
1959
|
+
readOnly: "This file path is read-only and does not accept uploads",
|
|
1960
|
+
uploadDenied: "You are not allowed to upload to this file path",
|
|
1961
|
+
downloadDenied: "You are not allowed to download from this file path",
|
|
1962
|
+
extNotAllowed: "File type {ext} is not allowed",
|
|
1963
|
+
tooLarge: "File too large (limit {maxSizeMb} MB)",
|
|
1964
|
+
fileExists: "A file with the same name already exists",
|
|
1965
|
+
invalidPath: "Invalid path",
|
|
1966
|
+
fileNotFound: "File not found",
|
|
1967
|
+
folderUnavailable: "The folder is not accessible: {reason}",
|
|
1968
|
+
chunkMissing: "Missing chunk {index}, please retry upload",
|
|
1969
|
+
chunkHashMismatch: "File integrity check failed, please re-upload",
|
|
1970
|
+
uploadSessionInvalid: "The upload session is invalid or has expired, please upload again"
|
|
1971
|
+
},
|
|
1972
|
+
fileServer: {
|
|
1973
|
+
notFound: "File server not found or disabled",
|
|
1974
|
+
nameExists: "File server name already exists",
|
|
1975
|
+
rootNotAllowed: "The root path is not allowed; ask your administrator to add it to SmartAdmin:FilePath:AllowedRoots",
|
|
1976
|
+
shareRequired: "With an account set, the root path must be a share path like \\\\host\\share",
|
|
1977
|
+
accountConflict: "Host {host} already uses another account; one host can only use one account. To change it, edit an existing file server on that host",
|
|
1978
|
+
inUse: "This file server is still used by file paths and cannot be deleted",
|
|
1979
|
+
dataProtectionKeyMissing: "The data protection key is unavailable, cannot save the password",
|
|
1980
|
+
passwordRequired: "The host or account changed, the password must be entered again",
|
|
1981
|
+
rootProtected: "The root path must be absolute and must not be, contain, or sit inside the application directory or the chunk staging directory"
|
|
1982
|
+
},
|
|
1983
|
+
reason: {
|
|
1984
|
+
accessDenied: "Access denied",
|
|
1985
|
+
networkPathNotFound: "Network path not found",
|
|
1986
|
+
shareNotFound: "Share does not exist",
|
|
1987
|
+
badCredentials: "Wrong account or password",
|
|
1988
|
+
accountLocked: "Account is locked or disabled",
|
|
1989
|
+
credentialConflict: "Credential conflict",
|
|
1990
|
+
timeout: "Timed out",
|
|
1991
|
+
folderMissing: "Folder does not exist",
|
|
1992
|
+
busy: "File server busy",
|
|
1993
|
+
unknown: "Unknown error"
|
|
1994
|
+
},
|
|
1943
1995
|
recycle: {
|
|
1944
1996
|
notFound: "Deleted record not found",
|
|
1945
1997
|
uniqueConflict: "Restore failed: code/account already taken by another record",
|
|
@@ -1950,6 +2002,90 @@ const e = {
|
|
|
1950
2002
|
},
|
|
1951
2003
|
system: { internal: "Internal server error" }
|
|
1952
2004
|
},
|
|
2005
|
+
// File path settings page (File paths and File servers tabs)
|
|
2006
|
+
filePath: {
|
|
2007
|
+
tabs: { path: "File paths", server: "File servers" },
|
|
2008
|
+
saved: "Saved",
|
|
2009
|
+
deleted: "Deleted",
|
|
2010
|
+
remark: "Remark",
|
|
2011
|
+
status: {
|
|
2012
|
+
column: "Online",
|
|
2013
|
+
checking: "Checking…",
|
|
2014
|
+
online: "Online",
|
|
2015
|
+
offline: "Offline",
|
|
2016
|
+
unknown: "Unknown"
|
|
2017
|
+
},
|
|
2018
|
+
test: {
|
|
2019
|
+
action: "Test connection",
|
|
2020
|
+
ok: "Connected in {ms} ms",
|
|
2021
|
+
failed: "Connection failed: {reason}"
|
|
2022
|
+
},
|
|
2023
|
+
namingRule: {
|
|
2024
|
+
yearMonthOriginal: "Year/Month/Name_ShortId",
|
|
2025
|
+
businessPath: "Business-specified path",
|
|
2026
|
+
dateGuid: "Date/GUID"
|
|
2027
|
+
},
|
|
2028
|
+
onConflict: { reject: "Reject", overwrite: "Overwrite" },
|
|
2029
|
+
path: {
|
|
2030
|
+
keyword: "Code / Name",
|
|
2031
|
+
code: "Code",
|
|
2032
|
+
name: "Name",
|
|
2033
|
+
server: "File server",
|
|
2034
|
+
folder: "Subfolder",
|
|
2035
|
+
namingRule: "Naming rule",
|
|
2036
|
+
extensions: "Extensions",
|
|
2037
|
+
maxSize: "Max size",
|
|
2038
|
+
uploadRoles: "Upload roles",
|
|
2039
|
+
downloadRoles: "Download roles",
|
|
2040
|
+
readOnly: "Read-only",
|
|
2041
|
+
onConflict: "On name clash",
|
|
2042
|
+
allLoggedIn: "All signed-in users",
|
|
2043
|
+
roleSeparator: ", ",
|
|
2044
|
+
unknownRule: "Unknown rule",
|
|
2045
|
+
addTitle: "Add file path",
|
|
2046
|
+
editTitle: "Edit file path",
|
|
2047
|
+
deleteConfirm: 'Delete file path "{name}"?',
|
|
2048
|
+
moveTip: "Changing the file server or subfolder does not move files already uploaded. They can no longer be found at the new location, so move them yourself first.",
|
|
2049
|
+
codePlaceholder: "Referenced by business code, e.g. Order.Attachment",
|
|
2050
|
+
codeImmutableHint: "The code cannot be changed after creation",
|
|
2051
|
+
codeInvalid: "Code may only contain letters, digits, dots, underscores and hyphens, up to 64 characters",
|
|
2052
|
+
nameRequired: "Enter a name",
|
|
2053
|
+
serverRequired: "Select a file server",
|
|
2054
|
+
serverPlaceholder: "Select a file server",
|
|
2055
|
+
folderPlaceholder: "Optional, e.g. Order/Attachment",
|
|
2056
|
+
fullFolder: "Full folder:",
|
|
2057
|
+
example: "Example file (relative to the folder):",
|
|
2058
|
+
overwriteRisk: "Overwrite is on and no upload role is set: any signed-in user can overwrite files in this path. Limit the upload roles.",
|
|
2059
|
+
readOnlyHint: "A read-only path can only be downloaded from. It has no upload, extension list or size limit.",
|
|
2060
|
+
extensionsPlaceholder: ".pdf,.png",
|
|
2061
|
+
extensionsHint: "Separate with commas, each starting with a dot. Only listed types can be uploaded.",
|
|
2062
|
+
extensionsInvalid: "Invalid extension: each must start with a dot, up to 15 letters or digits, separated by commas",
|
|
2063
|
+
extensionsRequired: "A writable file path needs allowed extensions",
|
|
2064
|
+
maxSizeRequired: "A writable file path needs a size limit",
|
|
2065
|
+
rolesPlaceholder: "Empty means all signed-in users"
|
|
2066
|
+
},
|
|
2067
|
+
server: {
|
|
2068
|
+
keyword: "Name / Root path",
|
|
2069
|
+
name: "Name",
|
|
2070
|
+
rootPath: "Root path",
|
|
2071
|
+
userName: "Account",
|
|
2072
|
+
password: "Password",
|
|
2073
|
+
passwordSet: "Set",
|
|
2074
|
+
addTitle: "Add file server",
|
|
2075
|
+
editTitle: "Edit file server",
|
|
2076
|
+
deleteConfirm: 'Delete file server "{name}"?',
|
|
2077
|
+
nameRequired: "Enter a name",
|
|
2078
|
+
rootPathRequired: "Enter a root path",
|
|
2079
|
+
rootPathPlaceholder: "\\\\nas01\\files or /mnt/nas01",
|
|
2080
|
+
userNamePlaceholder: "Optional, e.g. svc-files",
|
|
2081
|
+
passwordPlaceholder: "Password",
|
|
2082
|
+
passwordHint: "Leave empty to keep it. Enter it again when the host or account changes",
|
|
2083
|
+
passwordReentry: "The host or account changed, enter the password again",
|
|
2084
|
+
cascadeChange: "Other file servers on the same host will switch to this account and password too",
|
|
2085
|
+
cascadeClear: "All file servers on the same host will be accessed as the identity the backend runs as",
|
|
2086
|
+
credentialsUnsupported: "This system does not connect to shares with an account. The host provides the credentials when it mounts the share."
|
|
2087
|
+
}
|
|
2088
|
+
},
|
|
1953
2089
|
// Recycle bin
|
|
1954
2090
|
recycle: {
|
|
1955
2091
|
title: "Recycle Bin",
|