Giter VIP home page Giter VIP logo

open-sdg-config-form's Introduction

Open SDG Config Form

This repository holds the code for the configuration forms used in Open SDG. It also hosts the built JavaScript files which are used by Open SDG.

These forms use the excellent JSONForms open-source library.

Dependencies

  • Node.js

Development

To build the project:

npm install
npm run build

Usage

Include the built JavaScript files on your page. Open SDG uses the Github-hosted files like so:

<script src="https://open-sdg.org/open-sdg-config-form/bundle.js"></script>

This code expects a certain JavaScript object to exist. Here is a rundown of what it is expecting:

var opensdg = opensdg || {};
opensdg.configForm = {
  schema: null,          // The JSONSchema for the form
  uiSchema: null,        // The UI Schema according to JSONForms
  initialData: null,     // Existing data to populate the form
  configFilename: null,  // The name of file that will be generated by the form
  configFolder: null,    // The path to the folder in a target repository that the file will be uploaded to
  githubClientId: null,  // ClientID if using a direct connection to Github
  githubProxyUrl: null,  // Proxy URL if using a direct connection to Github
  githubRepo: null,      // The name of the Github repo that the file will be uploaded to
  githubOwner: null,     // The owner (organization) of the Github repo that the file will be uploaded to
  repositoryLink: null,  // The full link to the repository that the file will be uploaded to
};

open-sdg-config-form's People

Contributors

brockfanning avatar

Watchers

 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.