🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more
Socket
Book a DemoInstallSign in
Socket

@axelspringer/mango-plugin-pagemanager

Package Overview
Dependencies
Maintainers
9
Versions
250
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@axelspringer/mango-plugin-pagemanager

Mango API plugin for the Page Manager

latest
npmnpm
Version
1.0.0-beta.121
Version published
Weekly downloads
5.3K
948.9%
Maintainers
9
Weekly downloads
 
Created
Source

:smiley_cat: Mango Page Manager Plugin


Taylor Swift Volkswagen TypeScript MIT license

Getting Started

requires a node version >= 6 and an npm version >= 3.x.x

we do provide a help command to display all possible arguments

# Install the base package and the plugin (could also be global -g)
npm i @axelspringer/mango-api @axelspringer/mango-plugin-pagemanager

Installation

Try to install this package before rendering.

npm i @axelspringer/mango-api @axelspringer/mango-plugin-pagemanager

In you app, use the plugin and configure it. Use an extra file pagemanager.ts for it.

import Vue from 'vue'
import PageManager from '@axelspringer/mango-plugin-pagemanager'
import { SelectedArticles } from '../components/selectedArticles'

// inject mango
Vue.use(PageManager)

export default new PageManager({
  blocks: [
    {
      pageBlock: 'selected_articles',
      component: SelectedArticles
    }
  ]
})

Then install it in your vue app options.

import Vue from 'vue'
import pagemanager 
// create function
export default function () {
  // constructing app
  const app = new Vue({
    pagemanager,
    render: (h) => h(App)
  })

  return { app }
}

Usage in Components

There are some components available with in the plugin.

Renderer

To use the Page Manager Render <pagemanager-render> you have to provide data to the blocks property.

import Vue from 'vue'
import Component from 'vue-class-component'

@Component
export class Demo extends Vue {
  public render(h) {
    return (
      <div>
        <pagemanager-renderer blocks={example} />
      </div>
    )
  }
}

License

MIT

FAQs

Package last updated on 26 Sep 2018

Did you know?

Socket

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.

Install

Related posts