8000 GitHub - metaltoad/valence: Data, Authentication and View Transition layers for Angular applications.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

metaltoad/valence

Repository files navigation

Valence

A data management framework for Angular.js

Version 1.2.1


Version 1 Updates

  • The model layer now uses the strategy pattern to move through sequences.
  • Valence now includes access control with identity management.
  • Consistent API across modules.
  • Consolidated route hook system.
  • Stronger auth integration when fetching/persisting data in the cloud.

Version 1.2.0 Updates

  • skipApply option has been added to bypass the apply stage. The primary use case for this is when an endpoint may return some data that isn't in compliance with the intention of the model. In that case you can simply have the data passed back to you without assigning it to scope.
  • Created a valence.utils namespace that houses some helper functions.

Version 1.1.1 Updates

  • Valence now supports custom redirects based on HTTP status codes when a model fails in the cloud layer. For example, say with route: blog/:post_id, blog/1234 would return a valid post object, however blog/12345 would not as well as return 404. Through setting a redirect option in the HTTP action in question, the user will be navigated to the specified page.
  • Strtegy.fail assigns args.data just like strategy.pass does to be more consistent.

Patches

1.2.1

  • Fixed a race condition with the ACL.previous options where the absOldURL was being set to the restrictied URL before the ACL rejected the identity. Causing an infinite loop.

1.1.1

  • Fixed a bug with normalization that didn't assign normalized data to scope but only returned it within the promise object.
  • Fixed a bug with normalization where a global var existed, breaking minification.
  • Reduced the min loader display time to 250.

1.0.2

  • Adding an enabled check to valence.loader.wrapUp to prevent errors from being thrown when the loader is disabled.

1.0.1

  • Updated normalize arguments to be more consistent with Auth and ACL.

Installation

bower install valence

Development

You'll notice that master has no package.json, that is because master is not intended for development and is only meant for bower installations. To work with the code from a clone, please checkout the dev branch.

  1. Clone
  2. git checkout dev
  3. cd valence/cloud-app
  4. npm install
  5. node app.js
  6. cd ../data-app
  7. npm install && bower install
  8. grunt server

Dependencies

For step 3, you will need mongodb installed an running. You will also need to import the valence database found in /db.

Issues

Please report them in the issues tab.

The future

The future will contain lazy-loading and pagination integratations!

And other stuff I haven't thought of yet.

About

Data, Authentication and View Transition layers for Angular applications.

Resources

Stars

Watchers

Forks

Packages

No packages published
0