1.0.41 • Published 9 years ago

dfxio v1.0.41

Weekly downloads
6
License
ISC
Repository
github
Last release
9 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

9 years ago

1.0.40

9 years ago

1.0.39

9 years ago

1.0.38

9 years ago

1.0.37

9 years ago

1.0.36

9 years ago

1.0.35

9 years ago

1.0.34

9 years ago

1.0.33

9 years ago

1.0.32

9 years ago

1.0.31

9 years ago

1.0.30

9 years ago

1.0.29

9 years ago

1.0.28

9 years ago

1.0.27

9 years ago

1.0.26

9 years ago

1.0.25

9 years ago

1.0.24

9 years ago

1.0.23

9 years ago

1.0.22

9 years ago

1.0.21

9 years ago

1.0.20

10 years ago

1.0.19

10 years ago

1.0.18

10 years ago

1.0.17

10 years ago

1.0.16

10 years ago

1.0.15

10 years ago

1.0.14

10 years ago

1.0.13

10 years ago

1.0.12

10 years ago

1.0.11

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago