How to use fluxible-plugin-fetchr - 7 common examples

To help you get started, we’ve selected a few fluxible-plugin-fetchr examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dockunit / platform / app.js View on Github external
import ProjectsStore from './stores/ProjectsStore';
import PostsStore from './stores/PostsStore';

// create new fluxible instance
let app = new Fluxible({
    component: Application,
    stores: [
		ApplicationStore,
		UserStore,
		ProjectsStore,
		RouteStore,
		PostsStore
	]
});

app.plug(fetchrPlugin({
	xhrPath: '/api',
	xhrTimeout: 15000
}));

export default app;
github ali1k / ld-r / app.js View on Github external
ApplicationStore,
        DatasetsStore,
        DatasetStore,
        UserStore,
        ResourceStore,
        IndividualObjectStore,
        DBpediaStore,
        DBpediaGMapStore,
        FacetedBrowserStore,
        DatasetAnnotationStore,
        QueryImportStore,
        ImportStore
    ]
});

app.plug(fetchrPlugin({
    xhrPath: '/api' // Path for XHR to be served from
}));
app.plug(authPlugin({}));

export default app;
github slidewiki / slidewiki-platform / app.js View on Github external
ServiceErrorStore,
        PermissionsStore,
        ContentLikeStore,
        DeckFamilyStore,
        UserReviewStore,
        MediaStore,
        EditRightsStore,
        DeckCollectionStore,
        SSOStore,
        UserRecommendationsStore,
        LoginModalStore,
    ]
});

// register plugins
app.plug(fetchrPlugin({
    xhrPath: '/api' // Path for XHR to be served from
}));
app.plug(userStoragePlugin({}));

module.exports = app;
github gpbl / isomorphic500 / src / app.js View on Github external
import { RouteStore } from "fluxible-router";

import routes from "./routes";

import Root from "./containers/Root";

import FeaturedStore from "./stores/FeaturedStore";
import HtmlHeadStore from "./stores/HtmlHeadStore";
import IntlStore from "./stores/IntlStore";
import PhotoStore from "./stores/PhotoStore";

// Create the fluxible app using Root as root component
const app = new Fluxible({ component: Root });

// Make fetchr services respond to /api endpoint
app.plug(fetchrPlugin({ xhrPath: "/api" }));

// Register a fluxible RouteStore
const AppRouteStore = RouteStore.withStaticRoutes(routes);
app.registerStore(AppRouteStore);

// Register app-specific stores
app.registerStore(FeaturedStore);
app.registerStore(HtmlHeadStore);
app.registerStore(IntlStore);
app.registerStore(PhotoStore);

export default app;
github localnerve / react-pwa-reference / src / application / app.js View on Github external
import Application from './components/Application';
import BackgroundStore from './stores/BackgroundStore';
import ContentStore from './stores/ContentStore';
import ContactStore from './stores/ContactStore';
import RouteStore from './stores/RouteStore';
import ModalStore from './stores/ModalStore';

const debug = debugLib('app');

debug('Creating FluxibleApp');
const app = new FluxibleApp({
  component: Application
});

debug('Adding Plugins');
app.plug(fetchrPlugin({ xhrPath: '/_api' }));

debug('Registering Stores');
app.registerStore(BackgroundStore);
app.registerStore(ContentStore);
app.registerStore(ContactStore);
app.registerStore(RouteStore);
app.registerStore(ModalStore);

export default app;
github yahoo / fluxible / site / app.js View on Github external
if (payload.err.statusCode === 404) {
                debug('component 404 error', payload.err);
            }
            else {
                debug('component exception', payload.err);
            }

            return;
        }

        done();
    }
});

app.plug(queryPlugin());
app.plug(fetchrPlugin({ xhrPath: '/_api' }));
app.plug(devToolsPlugin());

app.registerStore(DocStore);
app.registerStore(MyRouteStore);
app.registerStore(SearchStore);

export default app;

fluxible-plugin-fetchr

A plugin for Fluxible applications to provide an isomorphic interface for RESTful services

Unrecognized
Latest version published 3 years ago

Package Health Score

64 / 100
Full package analysis

Popular fluxible-plugin-fetchr functions