
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
astros-2ximg
Advanced tools
Astros插件
项目中如果需要针对高清屏设置二倍图时,通常的做法是切两个尺寸的图片。
现在,你只需要准备好一张二倍图。存储图片时,文件名以2x结尾。正常引用1倍图和2倍图即可,例:
图片位置:
root/img/logo2x.png
如何引用:
root/pages/user/login/login.html:
<img src="$res(~/img/logo.png)" srcset="$res(~/img/logo2x.png) 2x" />
root/components/header/header-menu.html:
<img src="$res(~/img/logo.png") srcset="$res(~/img/logo2x.png) 2x" />
root/components/header/header-menu.less:
background:url(~/img/logo.png);
background:url(~/img/logo2x.png);
你没有看错,除了文件名末尾加2x,不需要其他额外的操作。
FAQs
The npm package astros-2ximg receives a total of 2 weekly downloads. As such, astros-2ximg popularity was classified as not popular.
We found that astros-2ximg demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.