本次提交删除了大量冗余的平台配置文件、示例项目构建产物、测试资源文件以及第三方插件的无关代码,包括: 1. 移除了fluttertoast、liquid_glass_easy等插件的全量示例项目文件 2. 删除了本地依赖的ohos模块缓存和构建配置 3. 清理了各种平台的图标、资源文件和gitignore配置 4. 调整了主项目安卓最小SDK版本配置 5. 添加了macos运行需要的权限配置
74 lines
3.0 KiB
HTML
74 lines
3.0 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<!--
|
|
If you are serving your web app in a path other than the root, change the
|
|
href value below to reflect the base path you are serving from.
|
|
|
|
The path provided below has to start and end with a slash "/" in order for
|
|
it to work correctly.
|
|
|
|
For more details:
|
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
|
|
|
|
This is a placeholder for base href that will be replaced by the value of
|
|
the `--base-href` argument provided to `flutter build`.
|
|
-->
|
|
<base href="$FLUTTER_BASE_HREF">
|
|
|
|
<meta charset="UTF-8">
|
|
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
|
|
<meta name="description" content="闲言 — 文字阅读更纯粹。句子阅读 + 壁纸制作 APP">
|
|
|
|
<!-- 浏览器最低版本要求: Chrome 100+ / Safari 16+ / Firefox 100+ / Edge 100+ -->
|
|
<!-- 原因: WebGL 2.0 完整支持 + WebRTC + Fragment Shader + CSS backdrop-filter -->
|
|
|
|
<!-- iOS meta tags & icons -->
|
|
<meta name="mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
<meta name="apple-mobile-web-app-title" content="闲言">
|
|
<link rel="apple-touch-icon" href="icons/Icon-192.png">
|
|
|
|
<!-- Favicon -->
|
|
<link rel="icon" type="image/png" href="favicon.png"/>
|
|
|
|
<title>闲言</title>
|
|
<link rel="manifest" href="manifest.json">
|
|
|
|
<script>
|
|
// 浏览器版本检测 — 低于最低版本时显示提示
|
|
(function() {
|
|
var minVersions = { chrome: 100, safari: 16, firefox: 100, edge: 100 };
|
|
var ua = navigator.userAgent;
|
|
var browser = null, version = 0;
|
|
|
|
if (ua.indexOf('Chrome/') > -1 && ua.indexOf('Edg/') === -1) {
|
|
browser = 'chrome'; version = parseInt(ua.match(/Chrome\/(\d+)/)[1], 10);
|
|
} else if (ua.indexOf('Edg/') > -1) {
|
|
browser = 'edge'; version = parseInt(ua.match(/Edg\/(\d+)/)[1], 10);
|
|
} else if (ua.indexOf('Firefox/') > -1) {
|
|
browser = 'firefox'; version = parseInt(ua.match(/Firefox\/(\d+)/)[1], 10);
|
|
} else if (ua.indexOf('Safari/') > -1 && ua.indexOf('Chrome/') === -1) {
|
|
browser = 'safari'; version = parseInt(ua.match(/Version\/(\d+)/)[1], 10);
|
|
}
|
|
|
|
if (browser && minVersions[browser] && version < minVersions[browser]) {
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
document.body.innerHTML =
|
|
'<div style="display:flex;align-items:center;justify-content:center;height:100vh;' +
|
|
'font-family:system-ui,sans-serif;text-align:center;padding:32px;color:#333;">' +
|
|
'<div><h2>浏览器版本过低</h2>' +
|
|
'<p>闲言需要以下浏览器版本才能正常运行:</p>' +
|
|
'<ul style="text-align:left;display:inline-block;line-height:2;">' +
|
|
'<li>Chrome 100+</li><li>Safari 16+</li><li>Firefox 100+</li><li>Edge 100+</li>' +
|
|
'</ul><p>请升级您的浏览器后重试。</p></div></div>';
|
|
});
|
|
}
|
|
})();
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<script src="flutter_bootstrap.js" async></script>
|
|
</body>
|
|
</html>
|