Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Icestark is a JavaScript library for multiple react projects, Ice workbench solution.
Icestark is a JavaScript library for multiple react projects, Ice workbench solution.
npm install icestark --save
Run child:
cd demo/child
npm install
npm start
Run child2
cd demo/child2
npm install
npm start
Run layout:
cd demo/layout
npm install
npm start
Open up http://localhost:3333 in a web browser
class Layout extends React.Component {
render() {
return (
<div>
<Header />
<AppLoader
env="local"
apps={apps}
getBundleUrl={({ repo, version, localPort, localIp, env, type }) => {
if (env === 'local') {
return `//${localIp}:${localPort}/${type}/index.${type}`;
}
const cdnHost = env === 'production' ? 'production.com' : 'daily.com';
return `//${cdnHost}/${repo}/${version}/${type}/index.${type}`;
}}
NotFoundComponent={NotFound}
onRouteChange={this.onRouteChange}
/>
<Footer />
</div>
);
}
}
Property | Description | Type | Default |
---|---|---|---|
env | bundle environment, can be set to local daily prepub production | string | production |
apps | app configuration includes localPort , basePath , title and so on | array | [] |
getBundleUrl | transform current app configuration to bundleUrl | function | noop |
onRouteChange | callback executed when route changed | function | noop |
NotFoundComponent | render when the route changed error | function/ReactNode | |
BundleErrorComponent | render when the bundle pulls an error | function/ReactNode | |
BundleLoadingComponent | render when Bundle is Loading | function/ReactNode | |
shadowRoot | whether to use shadowRoot | bool | true |
FAQs
Icestark is a JavaScript library for multiple react projects, Ice workbench solution.
The npm package icestark receives a total of 12 weekly downloads. As such, icestark popularity was classified as not popular.
We found that icestark 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
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.