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/api/index.d.ts
CHANGED
|
@@ -637,6 +637,169 @@ export declare const fileApi: {
|
|
|
637
637
|
chunkCount: number;
|
|
638
638
|
}) => Promise<FileUploadOutput>;
|
|
639
639
|
};
|
|
640
|
+
export type FileServerView = components['schemas']['FileServerView'];
|
|
641
|
+
export type FileServerSaveInput = components['schemas']['FileServerSaveInput'];
|
|
642
|
+
export type FileServerTestInput = components['schemas']['FileServerTestInput'];
|
|
643
|
+
export type FileServerOption = components['schemas']['FileServerOption'];
|
|
644
|
+
export type FileAccessTestResult = components['schemas']['FileAccessTestResult'];
|
|
645
|
+
export type FileAccessStatus = components['schemas']['FileAccessStatus'];
|
|
646
|
+
export type FilePathView = components['schemas']['FilePathView'];
|
|
647
|
+
export type FilePathAddInput = components['schemas']['FilePathAddInput'];
|
|
648
|
+
export type FilePathUpdateInput = components['schemas']['FilePathUpdateInput'];
|
|
649
|
+
export type FilePathTestInput = components['schemas']['FilePathTestInput'];
|
|
650
|
+
export type FilePathEnvironment = components['schemas']['FilePathEnvironment'];
|
|
651
|
+
export type FilePathUploadOutput = components['schemas']['FilePathUploadOutput'];
|
|
652
|
+
/** 分片初始化出参:契约里 int32 写作 number | string,线上实际是数字,这里收窄成 number 供切片计算。 */
|
|
653
|
+
export interface FilePathChunkInitOutput {
|
|
654
|
+
uploadId: string;
|
|
655
|
+
chunkSize: number;
|
|
656
|
+
chunkCount: number;
|
|
657
|
+
}
|
|
658
|
+
export declare const fileServerApi: {
|
|
659
|
+
/** 文件服务器分页;keyword 模糊匹配名称或根路径。 */
|
|
660
|
+
page: (params: {
|
|
661
|
+
page: number;
|
|
662
|
+
pageSize: number;
|
|
663
|
+
keyword?: string;
|
|
664
|
+
enabled?: boolean;
|
|
665
|
+
}) => Promise<{
|
|
666
|
+
items: {
|
|
667
|
+
id: number | string;
|
|
668
|
+
name: string;
|
|
669
|
+
rootPath: string;
|
|
670
|
+
userName: null | string;
|
|
671
|
+
hasPassword: boolean;
|
|
672
|
+
enabled: boolean;
|
|
673
|
+
remark: null | string;
|
|
674
|
+
}[];
|
|
675
|
+
total: number;
|
|
676
|
+
}>;
|
|
677
|
+
get: (id: number) => Promise<{
|
|
678
|
+
id: number | string;
|
|
679
|
+
name: string;
|
|
680
|
+
rootPath: string;
|
|
681
|
+
userName: null | string;
|
|
682
|
+
hasPassword: boolean;
|
|
683
|
+
enabled: boolean;
|
|
684
|
+
remark: null | string;
|
|
685
|
+
}>;
|
|
686
|
+
add: (body: FileServerSaveInput) => Promise<number>;
|
|
687
|
+
update: (id: number, body: FileServerSaveInput) => Promise<boolean>;
|
|
688
|
+
remove: (id: number) => Promise<boolean>;
|
|
689
|
+
/** 测试连接:用表单里当前填的值,不要求先保存;失败原因在返回体里,不抛异常。 */
|
|
690
|
+
test: (body: FileServerTestInput) => Promise<{
|
|
691
|
+
ok: boolean;
|
|
692
|
+
reason: null | string;
|
|
693
|
+
latencyMs: number | string;
|
|
694
|
+
}>;
|
|
695
|
+
/** 一批文件服务器的在线状态;不缓存,每次现连。 */
|
|
696
|
+
status: (ids: number[]) => Promise<{
|
|
697
|
+
id: number | string;
|
|
698
|
+
online: boolean;
|
|
699
|
+
reason: null | string;
|
|
700
|
+
}[]>;
|
|
701
|
+
/** 下拉选项(配文件路径时选服务器)。 */
|
|
702
|
+
options: () => Promise<{
|
|
703
|
+
id: number | string;
|
|
704
|
+
name: string;
|
|
705
|
+
rootPath: string;
|
|
706
|
+
enabled: boolean;
|
|
707
|
+
}[]>;
|
|
708
|
+
};
|
|
709
|
+
export declare const filePathApi: {
|
|
710
|
+
/** 文件路径分页;keyword 模糊匹配编码或名称。 */
|
|
711
|
+
page: (params: {
|
|
712
|
+
page: number;
|
|
713
|
+
pageSize: number;
|
|
714
|
+
keyword?: string;
|
|
715
|
+
serverId?: number;
|
|
716
|
+
enabled?: boolean;
|
|
717
|
+
}) => Promise<{
|
|
718
|
+
items: {
|
|
719
|
+
id: number | string;
|
|
720
|
+
code: string;
|
|
721
|
+
name: string;
|
|
722
|
+
serverId: number | string;
|
|
723
|
+
serverName: null | string;
|
|
724
|
+
folder: null | string;
|
|
725
|
+
namingRule: components["schemas"]["FilePathNamingRule"];
|
|
726
|
+
onConflict: components["schemas"]["FilePathConflictMode"];
|
|
727
|
+
readOnly: boolean;
|
|
728
|
+
allowedExtensions: null | string;
|
|
729
|
+
maxSizeMb: null | number | string;
|
|
730
|
+
uploadRoleIds: (number | string)[];
|
|
731
|
+
downloadRoleIds: (number | string)[];
|
|
732
|
+
enabled: boolean;
|
|
733
|
+
remark: null | string;
|
|
734
|
+
}[];
|
|
735
|
+
total: number;
|
|
736
|
+
}>;
|
|
737
|
+
get: (id: number) => Promise<{
|
|
738
|
+
id: number | string;
|
|
739
|
+
code: string;
|
|
740
|
+
name: string;
|
|
741
|
+
serverId: number | string;
|
|
742
|
+
serverName: null | string;
|
|
743
|
+
folder: null | string;
|
|
744
|
+
namingRule: components["schemas"]["FilePathNamingRule"];
|
|
745
|
+
onConflict: components["schemas"]["FilePathConflictMode"];
|
|
746
|
+
readOnly: boolean;
|
|
747
|
+
allowedExtensions: null | string;
|
|
748
|
+
maxSizeMb: null | number | string;
|
|
749
|
+
uploadRoleIds: (number | string)[];
|
|
750
|
+
downloadRoleIds: (number | string)[];
|
|
751
|
+
enabled: boolean;
|
|
752
|
+
remark: null | string;
|
|
753
|
+
}>;
|
|
754
|
+
add: (body: FilePathAddInput) => Promise<number>;
|
|
755
|
+
/** 编码是业务引用它的键,保存后不能改,所以更新入参里没有 code。 */
|
|
756
|
+
update: (id: number, body: FilePathUpdateInput) => Promise<boolean>;
|
|
757
|
+
remove: (id: number) => Promise<boolean>;
|
|
758
|
+
/** 测试连接:用弹窗里当前选的服务器、子文件夹和读写方式,不要求先保存。 */
|
|
759
|
+
test: (body: FilePathTestInput) => Promise<{
|
|
760
|
+
ok: boolean;
|
|
761
|
+
reason: null | string;
|
|
762
|
+
latencyMs: number | string;
|
|
763
|
+
}>;
|
|
764
|
+
/** 一批文件路径的在线状态;不缓存,每次现连。 */
|
|
765
|
+
status: (ids: number[]) => Promise<{
|
|
766
|
+
id: number | string;
|
|
767
|
+
online: boolean;
|
|
768
|
+
reason: null | string;
|
|
769
|
+
}[]>;
|
|
770
|
+
/** 配置页的环境信息:白名单根目录,以及当前平台能不能用账号连接共享。 */
|
|
771
|
+
environment: () => Promise<{
|
|
772
|
+
allowedRoots: string[];
|
|
773
|
+
supportsCredentials: boolean;
|
|
774
|
+
}>;
|
|
775
|
+
};
|
|
776
|
+
export declare const filePathFileApi: {
|
|
777
|
+
/** 单文件上传:返回相对文件夹的路径,业务存它、之后凭它下载。subPath 仅「业务指定路径」命名规则用。 */
|
|
778
|
+
upload: (code: string, file: File, subPath?: string, signal?: AbortSignal) => Promise<{
|
|
779
|
+
path: string;
|
|
780
|
+
name: string;
|
|
781
|
+
size: number | string;
|
|
782
|
+
viewUrl?: null | string;
|
|
783
|
+
}>;
|
|
784
|
+
/** 分片初始化:服务端按声明的文件名、大小拦规则,通过才建暂存会话,分片大小与片数以它返回的为准。 */
|
|
785
|
+
chunkInit: (code: string, input: {
|
|
786
|
+
fileName: string;
|
|
787
|
+
size: number;
|
|
788
|
+
sha256: string;
|
|
789
|
+
subPath?: string;
|
|
790
|
+
}, signal?: AbortSignal) => Promise<FilePathChunkInitOutput>;
|
|
791
|
+
/** 上传一个分片(multipart:uploadId + index + chunk),同 upload 用 bodySerializer 建 FormData。 */
|
|
792
|
+
chunk: (code: string, uploadId: string, index: number, blob: Blob, signal?: AbortSignal) => Promise<void>;
|
|
793
|
+
/** 完成:服务端合并、按实际大小和当前规则再校验、核对哈希后写入。 */
|
|
794
|
+
chunkComplete: (code: string, uploadId: string, signal?: AbortSignal) => Promise<{
|
|
795
|
+
path: string;
|
|
796
|
+
name: string;
|
|
797
|
+
size: number | string;
|
|
798
|
+
viewUrl?: null | string;
|
|
799
|
+
}>;
|
|
800
|
+
/** 下载:parseAs blob 取原始字节;业务失败服务端回 200 + 信封,unwrapDownload 会辨出来抛 ApiError。 */
|
|
801
|
+
download: (code: string, path: string, name?: string) => Promise<Blob>;
|
|
802
|
+
};
|
|
640
803
|
export declare const sessionApi: {
|
|
641
804
|
/** 在线会话分页(只读)。后端仅支持按 UserId 过滤,这里不带业务搜索。 */
|
|
642
805
|
online: (params: {
|