vitepress-plugin-filelist 0.5.1 → 0.6.1
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/README.md +20 -2
- package/dist/client/browser/index.d.ts +41 -0
- package/dist/client/browser/index.js +553 -169
- package/dist/client/ssr/index.d.ts +41 -0
- package/dist/client/ssr/index.js +393 -100
- package/dist/client/style.css +153 -0
- package/package.json +2 -2
|
@@ -92,6 +92,31 @@ interface FileListLabels {
|
|
|
92
92
|
unlockFolder: string;
|
|
93
93
|
/** @deprecated Network failures now append `corsHint`. */
|
|
94
94
|
networkHint: string;
|
|
95
|
+
/** Single file handed to the browser's download manager. `{name}` */
|
|
96
|
+
downloadStarted: string;
|
|
97
|
+
/** Batch progress detail. `{done}` `{total}` sizes, `{files}` `{count}` file counts */
|
|
98
|
+
batchProgress: string;
|
|
99
|
+
/** Batch finished. `{name}` `{count}` `{size}` */
|
|
100
|
+
batchDone: string;
|
|
101
|
+
batchCanceled: string;
|
|
102
|
+
/** In-memory ZIP over `zipWarnSize`. `{size}` */
|
|
103
|
+
zipWarnTitle: string;
|
|
104
|
+
/** `{limit}` */
|
|
105
|
+
zipWarnText: string;
|
|
106
|
+
/** Desktop browsers that cannot stream: point to one that can. */
|
|
107
|
+
zipStreamTip: string;
|
|
108
|
+
zipContinue: string;
|
|
109
|
+
/** In-memory ZIP over `zipMaxSize`. `{size}` */
|
|
110
|
+
zipBlockTitle: string;
|
|
111
|
+
/** `{limit}` */
|
|
112
|
+
zipBlockText: string;
|
|
113
|
+
gotIt: string;
|
|
114
|
+
/** Last row of a long folder. `{count}` */
|
|
115
|
+
moreRemaining: string;
|
|
116
|
+
showMore: string;
|
|
117
|
+
showAll: string;
|
|
118
|
+
/** Fewer than a page left. `{count}` */
|
|
119
|
+
showRest: string;
|
|
95
120
|
}
|
|
96
121
|
interface FileListSource {
|
|
97
122
|
/** OpenList path, directory or single file. */
|
|
@@ -123,6 +148,21 @@ interface FileListProps {
|
|
|
123
148
|
* cleared when the tab closes). Defaults to `true`; `false` hides the option.
|
|
124
149
|
*/
|
|
125
150
|
rememberPassword?: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* Rows shown per folder before “Show more”. Defaults to `200`; `0` shows
|
|
153
|
+
* everything. Data is still loaded in full; only rendering is limited.
|
|
154
|
+
*/
|
|
155
|
+
pageSize?: number;
|
|
156
|
+
/**
|
|
157
|
+
* Browsers that must build the ZIP in memory (Firefox, Safari) ask first above
|
|
158
|
+
* this many MB. Defaults to 500 (200 on touch devices); `0` never asks.
|
|
159
|
+
*/
|
|
160
|
+
zipWarnSize?: number;
|
|
161
|
+
/**
|
|
162
|
+
* …and refuse above this many MB. Defaults to 2048 (1024 on touch devices);
|
|
163
|
+
* `0` means no limit. Chrome and Edge stream to disk and skip both checks.
|
|
164
|
+
*/
|
|
165
|
+
zipMaxSize?: number;
|
|
126
166
|
/** Built-in locale. Defaults to `zh-CN`. */
|
|
127
167
|
locale?: FileListLocale;
|
|
128
168
|
/** Per-key label overrides on top of the locale preset. */
|
|
@@ -148,6 +188,7 @@ declare const _default: import("vue").DefineComponent<FileListProps, {}, {}, {},
|
|
|
148
188
|
password: string;
|
|
149
189
|
title: string;
|
|
150
190
|
rememberPassword: boolean;
|
|
191
|
+
pageSize: number;
|
|
151
192
|
locale: FileListLocale;
|
|
152
193
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
153
194
|
declare global {
|