Updated backstop reference files
|
Before Width: | Height: | Size: 262 KiB After Width: | Height: | Size: 341 KiB |
|
Before Width: | Height: | Size: 109 KiB After Width: | Height: | Size: 89 KiB |
|
Before Width: | Height: | Size: 383 KiB After Width: | Height: | Size: 358 KiB |
|
Before Width: | Height: | Size: 245 KiB After Width: | Height: | Size: 224 KiB |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 552 KiB After Width: | Height: | Size: 532 KiB |
|
Before Width: | Height: | Size: 374 KiB After Width: | Height: | Size: 352 KiB |
|
Before Width: | Height: | Size: 951 KiB After Width: | Height: | Size: 935 KiB |
|
Before Width: | Height: | Size: 194 KiB After Width: | Height: | Size: 173 KiB |
|
Before Width: | Height: | Size: 194 KiB After Width: | Height: | Size: 173 KiB |
|
Before Width: | Height: | Size: 249 KiB After Width: | Height: | Size: 157 KiB |
|
Before Width: | Height: | Size: 496 KiB After Width: | Height: | Size: 472 KiB |
|
Before Width: | Height: | Size: 201 KiB After Width: | Height: | Size: 180 KiB |
|
Before Width: | Height: | Size: 255 KiB After Width: | Height: | Size: 235 KiB |
|
After Width: | Height: | Size: 300 KiB |
|
Before Width: | Height: | Size: 402 KiB After Width: | Height: | Size: 379 KiB |
|
Before Width: | Height: | Size: 488 KiB After Width: | Height: | Size: 466 KiB |
|
Before Width: | Height: | Size: 279 KiB After Width: | Height: | Size: 261 KiB |
|
Before Width: | Height: | Size: 130 KiB After Width: | Height: | Size: 110 KiB |
|
Before Width: | Height: | Size: 182 KiB After Width: | Height: | Size: 167 KiB |
|
Before Width: | Height: | Size: 332 KiB After Width: | Height: | Size: 313 KiB |
|
Before Width: | Height: | Size: 472 KiB After Width: | Height: | Size: 451 KiB |
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}`;
|
||||
|
||||