vitepress-plugin-filelist 0.4.0 → 0.5.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/README.md +13 -2
- package/dist/client/browser/index.d.ts +26 -0
- package/dist/client/browser/index.js +948 -233
- package/dist/client/ssr/index.d.ts +26 -0
- package/dist/client/ssr/index.js +378 -74
- package/dist/client/style.css +310 -25
- package/package.json +1 -1
|
@@ -70,6 +70,26 @@ interface FileListLabels {
|
|
|
70
70
|
previewTooLarge: string;
|
|
71
71
|
/** Preview dialog: only the first `{size}` of a text file is shown. */
|
|
72
72
|
textTruncated: string;
|
|
73
|
+
/** Refresh button while refreshing. */
|
|
74
|
+
refreshing: string;
|
|
75
|
+
/** Refresh failed; the old rows stay. `{message}` */
|
|
76
|
+
refreshFailed: string;
|
|
77
|
+
cancel: string;
|
|
78
|
+
/** Placeholder / accessible name of a folder's password input. `{name}` */
|
|
79
|
+
passwordFor: string;
|
|
80
|
+
/** OpenList cannot tell a wrong password from missing permission. */
|
|
81
|
+
passwordWrong: string;
|
|
82
|
+
/** A password remembered in this tab no longer works. */
|
|
83
|
+
passwordStale: string;
|
|
84
|
+
/** The key toggle next to a password input. */
|
|
85
|
+
rememberPassword: string;
|
|
86
|
+
/** Tag on a folder whose password is remembered. */
|
|
87
|
+
remembered: string;
|
|
88
|
+
forgetPassword: string;
|
|
89
|
+
/** Lock button on a folder that needs a password. `{name}` */
|
|
90
|
+
unlockFolder: string;
|
|
91
|
+
/** Appended to failure toasts for browser network errors (usually CORS). */
|
|
92
|
+
networkHint: string;
|
|
73
93
|
}
|
|
74
94
|
interface FileListSource {
|
|
75
95
|
/** OpenList path, directory or single file. */
|
|
@@ -96,6 +116,11 @@ interface FileListProps {
|
|
|
96
116
|
password?: string;
|
|
97
117
|
/** Toolbar title. Falls back to `site_title` from `/api/public/settings`. */
|
|
98
118
|
title?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Offer to remember folder passwords in this browser tab (sessionStorage,
|
|
121
|
+
* cleared when the tab closes). Defaults to `true`; `false` hides the option.
|
|
122
|
+
*/
|
|
123
|
+
rememberPassword?: boolean;
|
|
99
124
|
/** Built-in locale. Defaults to `zh-CN`. */
|
|
100
125
|
locale?: FileListLocale;
|
|
101
126
|
/** Per-key label overrides on top of the locale preset. */
|
|
@@ -120,6 +145,7 @@ declare const _default: import("vue").DefineComponent<FileListProps, {}, {}, {},
|
|
|
120
145
|
token: string;
|
|
121
146
|
password: string;
|
|
122
147
|
title: string;
|
|
148
|
+
rememberPassword: boolean;
|
|
123
149
|
locale: FileListLocale;
|
|
124
150
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
125
151
|
declare global {
|