mirror of
https://github.com/fleetdm/fleet
synced 2026-05-06 14:58:33 +00:00
Closes #25655 Changes: - Created a new component: `<docs-nav-and-search>`, a component that displays links to documentation pages and a search bar. - Added the `<docs-nav-and-search>` component to documentation pages, query pages, policy pages, vitals pages, app library pages, and osquery schema documentation pages. - Updated the documentation template page to match the latest wireframes. - Updated the osquery schema documentation pages to match the latest wireframes. --------- Co-authored-by: Mike Thomas <[email protected]>
36 lines
727 B
JavaScript
Vendored
36 lines
727 B
JavaScript
Vendored
module.exports = {
|
|
|
|
|
|
friendlyName: 'View app library',
|
|
|
|
|
|
description: 'Display "App library" page.',
|
|
|
|
|
|
exits: {
|
|
|
|
success: {
|
|
viewTemplatePath: 'pages/app-library'
|
|
},
|
|
badConfig: { responseType: 'badConfig' },
|
|
},
|
|
|
|
|
|
fn: async function () {
|
|
|
|
if (!_.isObject(sails.config.builtStaticContent) || !_.isArray(sails.config.builtStaticContent.appLibrary) || !sails.config.builtStaticContent.appLibrary) {
|
|
throw {badConfig: 'builtStaticContent.appLibrary'};
|
|
}
|
|
|
|
let allApps = sails.config.builtStaticContent.appLibrary;
|
|
allApps = _.sortBy(allApps, 'name');
|
|
// Respond with view.
|
|
return {
|
|
allApps,
|
|
algoliaPublicKey: sails.config.custom.algoliaPublicKey,
|
|
};
|
|
|
|
}
|
|
|
|
|
|
};
|