Giter Club home page Giter Club logo

vue-frisbee's Introduction

vue-frisbee

A small wrapper for integrating Frisbee to Vuejs

How to install:

CommonJS:

$ yarn add frisbee vue-frisbee

And in your entry file:

import Vue from 'vue';
import frisbee from 'frisbee';
import VueFrisbee from 'vue-frisbee';

Vue.use(VueFrisbee, frisbee);

Script:

Just add 3 scripts in order: vue, frisbee and vue-frisbee to your document.

Usage:

This wrapper will bind frisbee to Vue or this if you're using single file component.

You can frisbee like this:

Vue.frisbee.get('/').then(res => {
  console.log(res.body);
});

this.frisbee.get('/').then(res => {
  console.log(res.body);
});

this.$http.get('/').then(res => {
  console.log(res.body);
});

vue-frisbee's People

Contributors

imcvampire avatar omgimalexis avatar renovate-bot avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

vue-frisbee's Issues

Dependency deprecation warning: gulp-uglifyjs (npm)

On registry https://registry.npmjs.org/, the "latest" version (v0.6.2) of dependency gulp-uglifyjs has the following deprecation notice:

Since gulp-sourcemaps now works, use gulp-uglify instead

Marking the latest version of an npm package as deprecated results in the entire package being considered deprecated, so contact the package author you think this is a mistake.

Affected package file(s): package.json

If you don't care about this, you can close this issue and not be warned about gulp-uglifyjs's deprecation again. If you would like to completely disable all future deprecation warnings then add the following to your config:

"suppressNotifications": ["deprecationWarningIssues"]

Dependency deprecation warning: babel-preset-es2015 (npm)

On registry https://registry.npmjs.org/, the "latest" version (v6.24.1) of dependency babel-preset-es2015 has the following deprecation notice:

๐Ÿ™Œ Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!

Marking the latest version of an npm package as deprecated results in the entire package being considered deprecated, so contact the package author you think this is a mistake.

Affected package file(s): package.json

If you don't care about this, you can close this issue and not be warned about babel-preset-es2015's deprecation again. If you would like to completely disable all future deprecation warnings then add the following to your config:

"suppressNotifications": ["deprecationWarningIssues"]

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.