Giter Site home page Giter Site logo

configtool's Introduction

RepRapFirmware Configuration Tool

licensed under the terms of the GPLv3

Description

This is the new official config tool for RepRapFirmware. It is entirely built with

  • VueJS
  • Bootstrap-Vue
  • EJS
  • JSZip

Summary

The main entry point is src/main.js. This file initialises the app and makes sure that the Start page is loaded using Vue Router via src/Router.js. The contents of each page can be found in src/views. Reusable components can be found in src/components, custom directives in src/directives and machine presets in src/machines. Standard values of the boards and the main outline of the JSON template file can be found in src/defaults.

To generate macro files EJS is used. To the render funtion of each EJS file the board and template objects are passed, which are also accessible from every component via this in this project. In addition helper methods can be passed as part of the util object. The invocation of the EJS render function takes place in src/Compiler.js, which is only used from src/App.vue at this time.

The main goal of this project compared to the first version is the DRY (don't repeat yourself) concept in order to keep everything as flexible as possible. If new options are supposed to be added, the v-preset directive can be used to indicate a title and the constraints of an input field as a Bootstrap tooltip and the default value of preset. If the v-model directive of an input field does not point to template, the target preset can be explicitly specified via v-preset="<object>".

Please note that Vuex could not be used in this project due to the missing support for two-way bindings. Instead of this, src/mixins/Store.js populates the same board, preset and template instances among certain methods to every component that is used anywhere in this project.

Build Setup

To get going you need a working NodeJS setup.

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run serve

# build for production with minification
npm run build

Contributions

If you wish to enhance this tool, please feel free to do so - generally this is appreciated. However, pull requests will be only accepted if they are clean and match the used coding/markup style.

configtool's People

Contributors

chrishamm avatar wilriker 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.