Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import config from './config/environment';
import AddonDocsRouter, { docsRoute } from 'ember-cli-addon-docs/router';
const Router = AddonDocsRouter.extend( {
location: config.locationType,
rootURL: config.rootURL,
} );
Router.map( function () {
docsRoute( this, function () { /* Your docs routes go here */
this.route( 'core', function () {
this.route( 'button' );
this.route( 'button-group' );
this.route( 'card' );
this.route( 'icon' );
this.route( 'dialog' );
this.route( 'pop-over' );
this.route( 'panel-stack' );
this.route( 'tag-input' );
this.route( 'db-tree' );
import AddonDocsRouter, { docsRoute } from 'ember-cli-addon-docs/router';
import config from './config/environment';
const Router = AddonDocsRouter.extend({
location: config.locationType,
rootURL: config.rootURL,
});
Router.map(function() {
docsRoute(this, function() {
/* Your docs routes go here */
});
this.route('characters');
this.route('luke');
this.route('anakin');
this.route('new-review');
this.route('not-found', { path: '/*path' });
});
import AddonDocsRouter, { docsRoute } from 'ember-cli-addon-docs/router';
import RouterScroll from 'ember-router-scroll';
import config from './config/environment';
const Router = AddonDocsRouter.extend(RouterScroll, {
location: config.locationType,
rootURL: config.rootURL
});
Router.map(function() {
docsRoute(this, function() {
this.route('quickstart');
this.route('why-yeti-table');
this.route('general');
this.route('sorting');
this.route('filtering');
this.route('pagination');
this.route('async');
this.route('styling');
this.route('configuration');
});
import AddonDocsRouter, { docsRoute } from 'ember-cli-addon-docs/router';
import config from './config/environment';
const Router = AddonDocsRouter.extend({
location: config.locationType,
rootURL: config.rootURL,
});
Router.map(function() {
this.route('interactive');
this.route('visual-test-route');
docsRoute(this, function () {
this.route('how');
this.route('mirage');
this.route('platforms');
this.route('styles');
this.route('tech');
this.route('example');
this.route('not-found', { path: '/*path' });
import AddonDocsRouter, { docsRoute } from 'ember-cli-addon-docs/router';
import config from './config/environment';
const Router = AddonDocsRouter.extend({
location: config.locationType,
rootURL: config.rootURL,
});
Router.map(function() {
docsRoute(this, function() {
this.route('tutorial');
this.route('login-form');
this.route('statecharts');
});
this.route('editor');
});
export default Router;
import AddonDocsRouter, { docsRoute } from 'ember-cli-addon-docs/router';
import config from './config/environment';
const Router = AddonDocsRouter.extend({
location: config.locationType,
rootURL: config.rootURL
});
Router.map(function() {
docsRoute(this, function() {
this.route('getting-started', function() {
this.route('what-is-mirage');
this.route('installation');
this.route('upgrade-guide');
this.route('overview');
});
this.route('route-handlers', function() {
this.route('functions');
this.route('shorthands');
import AddonDocsRouter, { docsRoute } from 'ember-cli-addon-docs/router';
import config from './config/environment';
const Router = AddonDocsRouter.extend({
location: config.locationType,
rootURL: config.rootURL,
});
Router.map(function() {
docsRoute(this, function() {
this.route('usage');
this.route('examples');
this.route('known-issues');
});
this.route('not-found', { path: '/*path' });
});
export default Router;
import AddonDocsRouter, { docsRoute } from 'ember-cli-addon-docs/router';
import config from './config/environment';
const Router = AddonDocsRouter.extend({
location: config.locationType,
rootURL: config.rootURL
});
Router.map(function() {
docsRoute(this, function() {
this.route('demo');
this.route('faq');
this.route('style-variables');
this.route('usage');
this.route('not-found', { path: '/*path' });
});
});
export default Router;
import AddonDocsRouter, { docsRoute, apiRoute } from 'ember-cli-addon-docs/router';
import config from './config/environment';
const Router = AddonDocsRouter.extend({
location: config.locationType,
rootURL: config.rootURL,
});
Router.map(function() {
docsRoute(this, function() {
this.route('usage');
this.route('quickstart');
this.route('patterns');
this.route('build-options');
this.route('deploying');
this.route('components', function() {
this.route('docs-hero');
this.route('docs-logo');
import AddonDocsRouter, { docsRoute } from 'ember-cli-addon-docs/router';
import config from './config/environment';
const Router = AddonDocsRouter.extend({
location: config.locationType,
rootURL: config.rootURL
});
Router.map(function() {
docsRoute(this, function() {
this.route('getting-started', { path: '/' }, function() {
this.route('overview');
this.route('installation');
this.route('quickstart');
});
this.route('guide', function() {
this.route('asynchronously-loading-translations');
this.route('ember-service-api');
this.route('intljs-polyfill');
this.route('missing-translations');