Skip to content

Instantly share code, notes, and snippets.

@MilosRasic
Created August 20, 2018 11:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MilosRasic/237bc43d1153983cdaf6278f1dd36931 to your computer and use it in GitHub Desktop.
Save MilosRasic/237bc43d1153983cdaf6278f1dd36931 to your computer and use it in GitHub Desktop.
GGS app manifest
import { withLoadable } from 'gogo-sphere-shared-components';
export default {
name: 'App One', // Application name
shortName: 'App 1',
mobileName: 'App1',
path: 'app1', // Path that is being used in a router
redirect: 'app1/landing',
noAppHeader: true, // Should application have header with default breadcrumbs
tabNavigationOverride: false, // Tab navigation instead of sidebar,
showPartnerLogo: true, // shows currently selected airline logo
component: withLoadable(() =>
import(/*webpackChunkName: "app1"*/
/*webpackMode: "lazy"*/
'gogo-sphere-app-app1')
),
pages: [
// Defines paged for application
{
sidebar: true, // Should page be shown in menu
name: 'Landing', // Name for the page - used in sidebar
path: 'landing',
icon: 'aircraft', // Icon name from Icons.jsx
component: 'Landing', // Component which is called for this router
permission: {
// Permissions for page based on role
domain: 'app1',
target: 'stuff',
action: 'read',
},
},
{
sidebar: true, // Should page be shown in menu
name: 'Admin', // Name for the application - used in sidebar
path: 'admin',
icon: 'wrench', // Icon name from Icons.jsx
component: 'ManageStuff', // Component which is called for this router
permission: {
// Permissions for page based on role
domain: 'app1',
target: 'stuff',
action: '*',
},
pages: [
{
sidebar: false, // Should page be shown in menu
name: 'Manage Access', // Name for the application - used in sidebar
path: 'manageaccess',
component: 'StuffAccess', // Component which is called for this router
},
],
},
],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment