Coder Social home page Coder Social logo

bee-to-topol's Introduction

BEE to Topol templates convertor

Supported BEE modules

Module Support
mailup-bee-newsletter-modules-text
mailup-bee-newsletter-modules-heading
mailup-bee-newsletter-modules-button
mailup-bee-newsletter-modules-video
mailup-bee-newsletter-modules-divider
mailup-bee-newsletter-modules-image
mailup-bee-newsletter-modules-spacer
mailup-bee-newsletter-modules-html
mailup-bee-newsletter-modules-social
mailup-bee-newsletter-modules-addon
mailup-bee-newsletter-modules-menu ❌   see - custom convertor
mailup-bee-newsletter-modules-icons ❌   see - custom convertor

🛠️ Currently WIP

  • Roles and permissions

How to run the tool

Prerequisites

  • Node 16+

Installation

npm run install

Create folder bee-templates add all your templates to the folder (currently doesn't support folder nesting PR welcomed).

Now run

npm run convert

Templates are converted and added to folder topol-templates.

Custom Module Convertors

When working with not supported modules, you can add your own convertor.

Example:

const {template, warnings} = convert(template, {
        convertors: [{
            key: "mailup-bee-newsletter-modules-icons",
            convert: (block, columnWidth, uuid ) => {
                
                return {
                    tagName: "mj-raw",
                    "attributes": {
                        "containerWidth": columnWidth
                    },
                    // Some custom HTML conversion here
                    content: block.customIdentifierUsedHere,
                    uid: uuid
                }
            }
        }]
});

Known issues

Nothing at the moment.

Development

Run tests: mostly snapshot tests, and simple unit tests

npm run test

Test coverage

npm run coverage

bee-to-topol's People

Contributors

tomsq avatar ermirbeqiraj avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.