Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/* @flow */
/* eslint fp/no-class:0 */
import React from 'react';
import Relay from 'react-relay';
import FilePage from '@ncigdc/containers/FilePage';
import { prepareNodeParams } from '@ncigdc/utils/routes';
import { nodeQuery } from './queries';
class FileRoute extends Relay.Route {
static routeName = 'FilePageRoute';
static queries = nodeQuery;
static prepareParams = prepareNodeParams('RepositoryFile');
}
export default (props: mixed) => (
);
/* @flow */
/* eslint fp/no-class:0 */
import React from 'react';
import Relay from 'react-relay';
import AnnotationPage from '@ncigdc/containers/legacy/AnnotationPage';
import { prepareNodeParams } from '@ncigdc/utils/routes';
import { nodeQuery } from './queries';
class AnnotationRoute extends Relay.Route {
static routeName = 'LegacyAnnotationPageRoute';
static queries = nodeQuery;
static prepareParams = prepareNodeParams('Annotation');
}
export default (props: mixed) => (
);
import Relay from 'react-relay';
export default class HomeRoute extends Relay.Route {
static routeName = 'HomeRoute';
static queries = {
};
}
import * as Relay from "react-relay"
export default class ArtistQueryConfig extends Relay.Route {
public static queries = {
artist: (component, params) => Relay.QL`
query {
artist(id: $artistID) {
${component.getFragment("artist", params)}
}
}
`,
}
public static paramDefinitions = {
artistID: { required: true },
}
public static routeName = "ArtistQueryConfig"
}
import * as Relay from "react-relay"
export default class CurrentUserRoute extends Relay.Route {
public static queries = {
user: (container, params) => Relay.QL`
query {
me {
${container.getFragment("user")}
}
}
`,
}
public static routeName = "CurrentUserRoute"
}
import Relay from "react-relay"
export default class ArtworkQueryConfig extends Relay.Route {
public static queries = {
artwork: (component, params) => Relay.QL`
query {
artwork(id: $artworkID) {
${component.getFragment("artwork", params)}
}
}
`,
}
public static paramDefinitions = {
artworkID: { required: true },
}
public static routeName = "ArtworkQueryConfig"
}
/**
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
import Relay from 'react-relay';
export default class extends Relay.Route {
static queries = {
factions: () => Relay.QL`query { factions(names: $factionNames) }`,
};
static routeName = 'StarWarsAppHomeRoute';
}
import * as Relay from "react-relay"
export class FilterArtworksQueryConfig extends Relay.Route {
public static queries = {
filter_artworks: (component, params) => Relay.QL`
query {
viewer {
${component.getFragment('filter_artworks')}
}
}
`,
}
public static routeName = "FilterArtworksQueryConfig"
}
export class ArtworkQueryConfig extends Relay.Route {
public static queries = {
artwork: (component, params) => Relay.QL`
import Relay from 'react-relay';
export default class extends Relay.Route {
static paramDefinitions = { nodeId: { required: true } };
static queries = { node: () => Relay.QL`query { node(id: $nodeId) }` };
static routeName = 'NodeRoute';
}