Skip to content

Commit 1ddabe2

Browse files
committed
Merge remote-tracking branch 'origin/main' into 4959-accessibility-page-components
2 parents 0b8a16b + 86ab0ab commit 1ddabe2

86 files changed

Lines changed: 1719 additions & 912 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eleventy.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ function renderDocsAlertBox(content, tone = 'note', title = '') {
3636
}
3737

3838
// Skip slow optimizations when developing i.e. serve/watch or Netlify deploy preview
39-
const DEV_MODE = process.env.ELEVENTY_RUN_MODE !== "build" || process.env.CONTEXT === "deploy-preview" || process.env.SKIP_IMAGES === 'true'
39+
const DEV_MODE = process.env.ELEVENTY_RUN_MODE !== "build" || process.env.CONTEXT === "deploy-preview"
40+
// Image processing is skipped in dev mode or when explicitly requested via SKIP_IMAGES.
41+
// Kept separate from DEV_MODE so build-time image flags never affect analytics/consent script inclusion.
42+
const SKIP_IMAGES = DEV_MODE || process.env.SKIP_IMAGES === 'true'
4043
const DEPLOY_PREVIEW = process.env.CONTEXT === "deploy-preview";
4144
const IMAGE_BUILD_PROFILE = process.env.IMAGE_BUILD_PROFILE || "full";
4245

@@ -1062,7 +1065,7 @@ module.exports = function(eleventyConfig) {
10621065

10631066
// Eleventy Image shortcode
10641067
// https://www.11ty.dev/docs/plugins/image/
1065-
if (DEV_MODE) {
1068+
if (SKIP_IMAGES) {
10661069
console.info(`[11ty] Image pipeline is enabled in dev mode, copying images without any conversion or resizing`)
10671070
} else {
10681071
console.info(`[11ty] Image pipeline is enabled in prod mode, expect a wait for first build while images are converted and resized`)
@@ -1072,7 +1075,7 @@ module.exports = function(eleventyConfig) {
10721075
const title = null
10731076
const currentWorkingFilePath = this.page.inputPath
10741077

1075-
return await imageHandler(src, alt, title, widths, sizes, currentWorkingFilePath, eleventyConfig, async=true, DEV_MODE)
1078+
return await imageHandler(src, alt, title, widths, sizes, currentWorkingFilePath, eleventyConfig, async=true, SKIP_IMAGES)
10761079
});
10771080

10781081
eleventyConfig.addAsyncShortcode("tileImage", async function(item, image, defaultImage, defaultDescription, imageSize, title = null, priority = false) {
@@ -1094,7 +1097,7 @@ module.exports = function(eleventyConfig) {
10941097

10951098
const currentWorkingFilePath = this.page.inputPath;
10961099

1097-
return await imageHandler(imageSrc, imageDescription, title, [imageSize], null, currentWorkingFilePath, eleventyConfig, async=true, DEV_MODE, priority);
1100+
return await imageHandler(imageSrc, imageDescription, title, [imageSize], null, currentWorkingFilePath, eleventyConfig, async=true, SKIP_IMAGES, priority);
10981101
});
10991102

11001103
// Create a collection for sidebar navigation
@@ -1393,7 +1396,7 @@ module.exports = function(eleventyConfig) {
13931396
const async = false // cannot run async inside markdown
13941397

13951398
try {
1396-
let imageHtml = imageHandler(imgSrc, imgAlt, imgTitle, widths, htmlSizes, folderPath, eleventyConfig, async, DEV_MODE)
1399+
let imageHtml = imageHandler(imgSrc, imgAlt, imgTitle, widths, htmlSizes, folderPath, eleventyConfig, async, SKIP_IMAGES)
13971400

13981401
// Add the additional attributes to the image
13991402
for (let attr in attributes) {

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "weekly"
7+
cooldown:
8+
default-days: 1

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
path: 'flowfuse'
2525
- name: Generate a token
2626
id: generate_token
27-
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
27+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
2828
with:
2929
client-id: ${{ secrets.GH_BOT_APP_ID }}
3030
private-key: ${{ secrets.GH_BOT_APP_KEY }}

.github/workflows/sast-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ concurrency:
1616
jobs:
1717
scan:
1818
name: SAST Scan
19-
uses : flowfuse/github-actions-workflows/.github/workflows/sast_scan.yaml@v0.76.0
19+
uses: flowfuse/github-actions-workflows/.github/workflows/sast_scan.yaml@sast_scan/v1

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
steps:
99
- name: Generate a token
1010
id: generate_token
11-
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
11+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
1212
with:
1313
client-id: ${{ secrets.GH_CI_READONLY_APP_ID }}
1414
private-key: ${{ secrets.GH_CI_READONLY_APP_KEY }}

nuxt/components/AppFooter.vue

Lines changed: 102 additions & 0 deletions
Large diffs are not rendered by default.

nuxt/components/AppHeader.vue

Lines changed: 203 additions & 0 deletions
Large diffs are not rendered by default.

nuxt/layouts/default.vue

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<template>
2+
<div class="font-sans ff-website leading-normal tracking-normal gradient text-gray-500 min-h-screen flex flex-col">
3+
<a href="#main-content" class="skip-to-main">Skip to main content</a>
4+
<div class="flex-grow base">
5+
<div class="w-full">
6+
<AppHeader />
7+
<main id="main-content" class="flex flex-col mx-auto items-center justify-center gradient-bg">
8+
<slot />
9+
</main>
10+
</div>
11+
</div>
12+
<AppFooter />
13+
</div>
14+
</template>

nuxt/nuxt.config.ts

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,34 @@
11
// https://nuxt.com/docs/api/configuration/nuxt-config
2-
const isDev = process.env.NODE_ENV !== 'production'
3-
42
export default defineNuxtConfig({
53
devtools: { enabled: true },
64

5+
app: {
6+
head: {
7+
link: [
8+
{ rel: 'stylesheet', href: '/css/style.css' },
9+
{ rel: 'preconnect', href: 'https://fonts.googleapis.com' },
10+
{ rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: '' },
11+
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Heebo:wght@100..900&display=swap' },
12+
{ rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' },
13+
{ rel: 'icon', type: 'image/png', sizes: '32x32', href: '/favicon-32x32.png' },
14+
{ rel: 'icon', type: 'image/png', sizes: '16x16', href: '/favicon-16x16.png' },
15+
{ rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: '#aa4444' },
16+
],
17+
meta: [
18+
{ name: 'msapplication-TileColor', content: '#00aba9' },
19+
{ name: 'theme-color', content: '#ffffff' },
20+
]
21+
}
22+
},
23+
724
nitro: {
825
preset: 'static',
926
prerender: {
10-
routes: [],
11-
crawlLinks: false // remove when Nuxt pages exist; enables auto-discovery of routes
27+
routes: ['/terms'],
28+
crawlLinks: false
1229
}
1330
},
1431

15-
routeRules: isDev ? {
16-
// In development, proxy all routes to the legacy 11ty dev server
17-
'/**': { proxy: 'http://localhost:8080/**' }
18-
} : {}
32+
// Dev proxying to 11ty is handled by server/middleware/legacy.ts
33+
// to allow per-route exclusions as pages are migrated.
1934
})

0 commit comments

Comments
 (0)