Skip to content

draadnl/openstad-event-planner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

355 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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-managerReact component to manage events in the openstad frontend ("voor aanbieders")
  • 🎉 event-overviewReact component to view events in the openstad frontend ("activiteiten overzicht")
  • 🌍 openstad-event-planner-widgetsApostrophe 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

About

Openstad.org React module for event planning

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 79.0%
  • HTML 11.4%
  • JavaScript 7.3%
  • CSS 2.3%