
Product
Introducing GitHub Actions Scanning Support
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
@axelspringer/mango-pagemanager
Advanced tools
requires a
nodeversion >= 6 and annpmversion >= 3.x.x
we do provide a
helpcommand to display all possible arguments
# Install the base package and the plugin (could also be global -g)
npm i @axelspringer/mango-pagemanager
Create a pagemanager.ts file with the following content.
import Vue from 'vue'
import IFrame from '../components/post'
import MangoPageManager from '@axelspringer/mango-pagemanager'
// use pagemanager
Vue.use(PageManager)
export default new PageManager({
blocks: [
{
pageBlock: 'inline_frame',
component: iFrame
}
]
})
This configures the Page Manager to map a page block to a component.
import { Vue, Component } from 'vue-property-decorator'
import HOME_QUERY from '../../graphql/home.graphql'
@Component
export default class Home extends Vue {
/**
*
*/
public blocks = []
/**
* Render function
*
* @param h
*/
public render() {
return (
<main class='start'>
<pagemanager-renderer blocks={this.blocks || []} />
</main>
)
}
}
The pagemanager exposes $pageblock on the component with the page block data to render. You have to add a name property. This is the property on which the Page Manager data and blocks are matched.
import { Vue, Component } from 'vue-property-decorator'
export function renderInnerHtml(h, atts) {
return atts.map(att => h('iframe', { attrs: att.value }))
}
@Component({
name: 'iFrame'
})
export default class iFrame extends Vue {
public render(h) {
if (!this.$pageblock) return null
return (<div>{renderInnerHtml(h, this.$pageblock)}</div>)
}
}
FAQs
Mango Page Manager
We found that @axelspringer/mango-pagemanager demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers 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.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.

Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.

Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.