mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 22:40:31 -04:00
Updated backstop reference files
This commit is contained in:
93
urls.js
93
urls.js
@@ -1,52 +1,51 @@
|
||||
const baseUrl = 'http://localhost:6012';
|
||||
const baseUrl = process.env.BACKSTOP_BASE_URL || 'http://localhost:6012';
|
||||
|
||||
// List of routes with paths and labels
|
||||
// List of routes organized by section
|
||||
const routes = {
|
||||
// Main pages
|
||||
main: [
|
||||
{ label: 'Homepage', path: '/' },
|
||||
{ label: 'Add Service', path: '/add-service' },
|
||||
{ label: 'Support', path: '/support' },
|
||||
{ label: 'Notify.gov Service Ending', path: '/notify-service-ending' },
|
||||
{ label: 'Notify.gov Sign In', path: '/sign-in' },
|
||||
],
|
||||
|
||||
// Using Notify section
|
||||
usingNotify: [
|
||||
{ label: 'Get Started', path: '/using-notify/get-started' },
|
||||
{ label: 'Trial Mode', path: '/using-notify/trial-mode' },
|
||||
{ label: 'Pricing', path: '/using-notify/pricing' },
|
||||
{ label: 'Delivery Status', path: '/using-notify/delivery-status' },
|
||||
{ label: 'How To', path: '/using-notify/how-to' },
|
||||
{ label: 'Best Practices', path: '/using-notify/best-practices' },
|
||||
],
|
||||
|
||||
// Best Practices subsection
|
||||
bestPractices: [
|
||||
{ label: 'Clear Goals', path: '/using-notify/best-practices/clear-goals' },
|
||||
{ label: 'Rules And Regulations', path: '/using-notify/best-practices/rules-and-regulations' },
|
||||
{ label: 'Establish Trust', path: '/using-notify/best-practices/establish-trust' },
|
||||
{ label: 'Write For Action', path: '/using-notify/best-practices/write-for-action' },
|
||||
{ label: 'Multiple Languages', path: '/using-notify/best-practices/multiple-languages' },
|
||||
{ label: 'Benchmark Performance', path: '/using-notify/best-practices/benchmark-performance' },
|
||||
],
|
||||
|
||||
// About section
|
||||
about: [
|
||||
{ label: 'About', path: '/about' },
|
||||
{ label: 'Why Text Messaging', path: '/about/why-text-messaging' },
|
||||
{ label: 'Security', path: '/about/security' },
|
||||
],
|
||||
};
|
||||
|
||||
// Flatten all routes into a single array
|
||||
const sublinks = [
|
||||
{ label: 'Homepage', path: '/' },
|
||||
{ label: 'Add Service', path: '/add-service' },
|
||||
{ label: 'Get Started', path: '/using-notify/get-started' },
|
||||
{ label: 'Trial Mode', path: '/using-notify/trial-mode' },
|
||||
{ label: 'Pricing', path: '/using-notify/pricing' },
|
||||
{ label: 'Delivery Status', path: '/using-notify/delivery-status' },
|
||||
{ label: 'How To', path: '/using-notify/how-to' },
|
||||
{ label: 'Support', path: '/support' },
|
||||
{ label: 'Best Practices', path: '/using-notify/best-practices' },
|
||||
{ label: 'Clear Goals', path: '/using-notify/best-practices/clear-goals' },
|
||||
{
|
||||
label: 'Rules And Regulations',
|
||||
path: '/using-notify/best-practices//rules-and-regulations',
|
||||
},
|
||||
{ label: 'Establish Trust', path: '/using-notify/best-practices//establish-trust' },
|
||||
{
|
||||
label: 'Write For Action',
|
||||
path: '/using-notify/best-practices//write-for-action',
|
||||
},
|
||||
{
|
||||
label: 'Multiple Languages',
|
||||
path: '/using-notify/best-practices//multiple-languages',
|
||||
},
|
||||
{
|
||||
label: 'Benchmark Performance',
|
||||
path: '/using-notify/best-practices//benchmark-performance',
|
||||
},
|
||||
{
|
||||
label: 'About',
|
||||
path: '/about',
|
||||
},
|
||||
{
|
||||
label: 'Why Text Messaging',
|
||||
path: '/about/why-text-messaging',
|
||||
},
|
||||
{
|
||||
label: 'Security',
|
||||
path: '/about/security',
|
||||
},
|
||||
{
|
||||
label: 'Notify.gov Service Ending',
|
||||
path: '/notify-service-ending',
|
||||
},
|
||||
|
||||
// Add more links here as needed
|
||||
...routes.main,
|
||||
...routes.usingNotify,
|
||||
...routes.bestPractices,
|
||||
...routes.about,
|
||||
// Add more sections here as needed
|
||||
];
|
||||
|
||||
const createFullUrl = (base, path) => `${base}${path}`;
|
||||
|
||||
Reference in New Issue
Block a user