
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
jet的php运行时库
目前主流的前端工程化一般都是采用webpack、fis、gulp工具,并基于cmd或amd规范来组织javascript代码,实现了静态依赖分析和资源合并打包。 但是目前已有技术方案无法很好的做到非常理想的资源管理机制,如静态资源合并代码,在一次页面运行时里往往会有多余的模块加载和资源浪费,因此Jet将提供以下解决方案:
安装jet-php 克隆jet-php到php后端工程里
Smarty插件安装
在jet-php下有smarty_plugin目录,该目录下有smarty插件,在php的$smarty实例注册该jet插件目录,以方便在smarty调用jet函数实现页面模块依赖注册
$smarty = new Smarty();
$smarty->addPluginsDir("{jet目录}/smarty_plugin");
在smarty模板里调用函数 以下代码说明:
{%jet_add_dep id="a"%}
{%jet_add_dep id="e"%}
{%jet_get_deps configVar="jet_deps"%}
<script>
var jetOpt = {
map: {%$jet_deps|@json_encode|escape:none|default: null%} || {}
};
<script>
require_once('../jet-php/lib/JetSingleton.class.php');
$opt = array(
"depHost" => "http://127.0.0.1:8111", // 仅仅后端没有ral模块时采用curl才生效,否则走ral配置,请注意
"logid" => LOG_ID,
'jetMapDir' => '/home/work/search/jet/public/jetmap',
);
Jet_Singleton::startPage($opt);
FAQs
jet php
We found that jet-php 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.