Skip to content

Latest commit

Β 

History

History
74 lines (53 loc) Β· 2.22 KB

File metadata and controls

74 lines (53 loc) Β· 2.22 KB

Openstad-event-planner β€” Event planner for Openstad

As seen on Midzomer Mokum

Installation

IMPORTANT This package requires API changes.

Install the package into your openstad-frontend application

$ npm install --save @savvycodes/openstad-event-planner-widgets

Activate the content widget:

// packages/cms/config/contentWidgets.js
const contentWidgets = {
  '@savvycodes/openstad-event-planner': {
    adminOnly: true,
  },
};

Enable the module in openstad-frontend by adding a modules key to index.js and modules.js:

// openstad-frontend/index.js
var apos = openstadCms.site({
  bundles: ['@openstad/cms'],
  // See lib/modules for basic project-level configuration of our modules
  // responsible for serving static assets, managing page templates and
  // configuring user accounts.

  modules: {
+    '@savvycodes/openstad-event-planner-widgets': {},
  },
});

// openstad-frontend/modules.js
module.exports.default = {
  bundles: ['@openstad/cms'],
  // See lib/modules for basic project-level configuration of our modules
  // responsible for serving static assets, managing page templates and
  // configuring user accounts.

  modules: {
+    '@savvycodes/openstad-event-planner-widgets': {},
  },
};

It's important to also add this declaration in modules.js for the apostrophe build system to pick up this module.

Development

NOTE This a work-in-progress

Packages

  • πŸ§‘β€πŸ’Ό event-manager – React component to manage events in the openstad frontend ("voor aanbieders")
  • πŸŽ‰ event-overview – React component to view events in the openstad frontend ("activiteiten overzicht")
  • 🌍 openstad-event-planner-widgets – Apostrophe CMS module that bundles the React components

Publishing

You can use lerna to publish a new version to npm, for now this is done manually

$ npx lerna publish