merge: 合并 soy 1.3.8

This commit is contained in:
xlsea
2024-11-04 11:33:21 +08:00
39 changed files with 1634 additions and 1267 deletions

7
src/utils/agent.ts Normal file
View File

@ -0,0 +1,7 @@
export function isPC() {
const agents = ['Android', 'iPhone', 'webOS', 'BlackBerry', 'SymbianOS', 'Windows Phone', 'iPad', 'iPod'];
const isMobile = agents.some(agent => window.navigator.userAgent.includes(agent));
return !isMobile;
}