vvvfs 0.2.4 → 0.2.6
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/Media.ts +880 -880
- package/README.md +12 -0
- package/dist/vvvfs.min.js +5 -5
- package/index.ts +34 -26
- package/package.json +1 -1
- package/types/index.d.ts +6 -0
package/README.md
CHANGED
|
@@ -154,6 +154,12 @@ document.body.appendChild(img);
|
|
|
154
154
|
|
|
155
155
|
## 更新日志
|
|
156
156
|
|
|
157
|
+
### 0.2.6
|
|
158
|
+
- 新增 `vvvfs.MFT` 只读属性,返回主文件表(文件系统中所有文件/目录的记录),类似 NTFS 的主文件表(MFT)
|
|
159
|
+
|
|
160
|
+
### 0.2.5
|
|
161
|
+
- 优化代码
|
|
162
|
+
|
|
157
163
|
### 0.2.4
|
|
158
164
|
- `<fs-img>` / `<fs-audio>` / `<fs-video>` 的 `src` 支持 `http(s)` 云端地址:文件缓存到 `/home/.cache/cloud/<hostname>/<pathname>` 后显示 / 播放
|
|
159
165
|
- 云端文件改为**缓存优先**:先展示已有缓存,再发送 HEAD 校验远端文件大小;大小不一致、HEAD 未返回 Content-Type 或缓存不可显示时自动重新下载并刷新
|
|
@@ -426,6 +432,12 @@ Rendering happens inside a Shadow DOM: the media element is exposed as `part="im
|
|
|
426
432
|
|
|
427
433
|
## Changelog
|
|
428
434
|
|
|
435
|
+
### 0.2.6
|
|
436
|
+
- Added the read-only `vvvfs.MFT` property, returning the master file table (all file/directory records in the file system), similar to NTFS's MFT
|
|
437
|
+
|
|
438
|
+
### 0.2.5
|
|
439
|
+
- Optimized code
|
|
440
|
+
|
|
429
441
|
### 0.2.4
|
|
430
442
|
- The `src` attribute of `<fs-img>` / `<fs-audio>` / `<fs-video>` now accepts `http(s)` URLs: the file is cached into `/home/.cache/cloud/<hostname>/<pathname>` and then displayed / played
|
|
431
443
|
- Cloud files are now **cache-first**: the existing cache is shown immediately, then a HEAD request validates the remote file size; a size mismatch, a missing Content-Type, or an undisplayable cache triggers a fresh download and refresh
|