mirror of
https://github.com/fleetdm/fleet
synced 2026-05-06 06:48:54 +00:00
Closes: https://github.com/fleetdm/confidential/issues/10867 Changes: - Updated the route for the /app-library page and app details pages to be at `/software-catalog` and added redirects. - Updated places where we mentioned the app library to say "software catalog" instead. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Updated all references and navigation paths from "app library" to "software catalog" across the website. * Updated internal links, breadcrumbs, and share URLs to use the new "/software-catalog" path. * Added redirects from old "app-library" URLs to the new "software-catalog" URLs for seamless navigation. * **Style** * Updated descriptive text and metadata to reflect the new "software catalog" terminology throughout the site. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
61 lines
1.2 KiB
JavaScript
Vendored
61 lines
1.2 KiB
JavaScript
Vendored
module.exports = {
|
|
|
|
|
|
friendlyName: 'View app details',
|
|
|
|
|
|
description: 'Display "App details" page.',
|
|
|
|
|
|
inputs: {
|
|
appIdentifier: {
|
|
type: 'string',
|
|
required: true,
|
|
description: 'the identifier of an app in Fleet\'s maintained software catalog.',
|
|
example: '1password'
|
|
},
|
|
},
|
|
|
|
exits: {
|
|
|
|
success: {
|
|
viewTemplatePath: 'pages/app-details'
|
|
},
|
|
|
|
badConfig: {
|
|
responseType: 'badConfig'
|
|
},
|
|
|
|
notFound: {
|
|
responseType: 'notFound'
|
|
},
|
|
|
|
},
|
|
|
|
|
|
fn: async function ({appIdentifier}) {
|
|
|
|
if (!_.isObject(sails.config.builtStaticContent) || !_.isArray(sails.config.builtStaticContent.appLibrary) || !sails.config.builtStaticContent.appLibrary) {
|
|
throw {badConfig: 'builtStaticContent.appLibrary'};
|
|
}
|
|
|
|
let thisApp = _.find(sails.config.builtStaticContent.appLibrary, { identifier: appIdentifier });
|
|
if (!thisApp) {
|
|
throw 'notFound';
|
|
}
|
|
// FUTURE: make these better.
|
|
let pageTitleForMeta = thisApp.name + ' | Fleet software catalog';
|
|
// let pageDescriptionForMeta = 'TODO'
|
|
|
|
// Respond with view.
|
|
return {
|
|
thisApp,
|
|
// pageDescriptionForMeta,
|
|
pageTitleForMeta,
|
|
algoliaPublicKey: sails.config.custom.algoliaPublicKey,
|
|
};
|
|
|
|
}
|
|
|
|
|
|
};
|