mirror of
https://github.com/Moe-Sakura/frontend.git
synced 2026-05-20 21:45:46 +08:00
fix: 更新 API 地址与依赖项版本
* 将 API 地址从 `https://cfapi.searchgal.homes` 更新为 `https://cf.api.searchgal.homes`,确保一致性。 * 更新 `package.json` 中的依赖项版本,包括 `@eslint/js`、`@tailwindcss/vite`、`@types/node`、`@typescript-eslint`、`vite`、`vue` 等,提升项目稳定性和性能。 * 替换 `lazysizes` 为 `lozad.js` 以优化图片懒加载,提升用户体验。 * 更新文档,确保 API 地址和使用示例的一致性。
This commit is contained in:
@@ -48,5 +48,16 @@
|
||||
img[loading="lazy"] {
|
||||
transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
/* Lozad.js 懒加载样式 */
|
||||
.lozad {
|
||||
opacity: 0;
|
||||
transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.lozad-loaded,
|
||||
.lozad[data-loaded="true"] {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user