1.0.41 • Published 8 years ago

dfxio v1.0.41

Weekly downloads
6
License
ISC
Repository
github
Last release
8 years ago

DFXIO

DFXIO is a module for injecting angular components created in Dreamface.

Installation

To install dfxio simple type in the command line:

npm install dfxio

This includes all the components required for a dreamface component to function. Including:

  • angular material
  • ng-knob
  • ng-quill
  • d3
  • nv.d3
  • angular-nvd3
  • angular-route
  • angular-animate
  • angular-aria
  • angular-material
  • angular-material-icons
  • angular-messages
  • angular-sanitize
  • ...

Usage

Use dfxio as you would any other express middleware:

var express = require('express'); 
var app = express(); 

var dfxio = require('dfxio');

app.use(dfxio);

Create a directory dfxio_components at the root level of your project directory. Make sure you add each component's javascript file to a json file called components.json like this:

["hello_world_component/hello_world_component.js", "other_component/other_component.js"]

For your Angular application, ng-app and initial ng-controller needs to be at the level of the body elemnt at least, so <body ng-app="appName" ng-controller="ctrlName">....

Make sure to statically serve the directory for dfxio components:

app.use(express.static(path.join(__dirname, '../dfxio_components')));

Add this to your index.html (or any page you wish to load dfx components on):

<script src="/example/angular.js"></script>
<!-- this should be after the angular script tag -->
<script src="/dfxio/inject.js"></script>
<!-- should be before your own javascript files -->

Contributors:

  • Michael Bae @ Cedrus
  • Linda Kung @ Cedrus
  • Colin Meret @ Cedrus
  • Olivier Poupeney @ Cedrus & Interactive Clouds
1.0.41

8 years ago

1.0.40

8 years ago

1.0.39

8 years ago

1.0.38

8 years ago

1.0.37

8 years ago

1.0.36

8 years ago

1.0.35

8 years ago

1.0.34

8 years ago

1.0.33

8 years ago

1.0.32

8 years ago

1.0.31

8 years ago

1.0.30

8 years ago

1.0.29

8 years ago

1.0.28

8 years ago

1.0.27

8 years ago

1.0.26

8 years ago

1.0.25

8 years ago

1.0.24

8 years ago

1.0.23

8 years ago

1.0.22

8 years ago

1.0.21

8 years ago

1.0.20

8 years ago

1.0.19

8 years ago

1.0.18

8 years ago

1.0.17

8 years ago

1.0.16

8 years ago

1.0.15

8 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago