diff --git a/.woodpecker/ci.yml b/.woodpecker/ci.yml index 1ecd750..4690927 100644 --- a/.woodpecker/ci.yml +++ b/.woodpecker/ci.yml @@ -68,7 +68,6 @@ steps: when: - status: [failure] - - name: Build image: node:22-alpine commands: diff --git a/eslint.config.js b/eslint.config.js index cd5232d..61909ef 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -9,12 +9,12 @@ export default [ globals: { window: 'readonly', document: 'readonly', - dataLayer: 'writable', - }, + dataLayer: 'writable' + } }, rules: { - 'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }], - }, + 'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }] + } }, - prettierConfig, + prettierConfig ] diff --git a/scripts/build.js b/scripts/build.js index 0965945..60cc30b 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -2,7 +2,14 @@ * Build script: copy src → dist, minify JS/CSS, inline critical CSS (Critters). * Run with: pnpm build */ -import { rmSync, mkdirSync, readFileSync, writeFileSync, cpSync, readdirSync } from 'fs' +import { + rmSync, + mkdirSync, + readFileSync, + writeFileSync, + cpSync, + readdirSync +} from 'fs' import { join, dirname, extname } from 'path' import { fileURLToPath } from 'url' import Critters from 'critters' @@ -53,7 +60,7 @@ async function main() { const critters = new Critters({ path: distDir, preload: 'default', - logLevel: 'warn', + logLevel: 'warn' }) const indexPath = join(distDir, 'index.html') const html = readFileSync(indexPath, 'utf8') diff --git a/src/assets/js/ga-init.js b/src/assets/js/ga-init.js index 5c27172..a91fae8 100644 --- a/src/assets/js/ga-init.js +++ b/src/assets/js/ga-init.js @@ -1,11 +1,11 @@ -(function () { - var script = document.currentScript; - var id = script && script.getAttribute('data-ga-id'); - if (!id) return; - window.dataLayer = window.dataLayer || []; - function gtag() { - window.dataLayer.push(arguments); - } - gtag('js', new Date()); - gtag('config', id, { anonymize_ip: true }); -})(); +;(function () { + var script = document.currentScript + var id = script && script.getAttribute('data-ga-id') + if (!id) return + window.dataLayer = window.dataLayer || [] + function gtag() { + window.dataLayer.push(arguments) + } + gtag('js', new Date()) + gtag('config', id, { anonymize_ip: true }) +})() diff --git a/src/index.html b/src/index.html index 9e4a8cd..8405136 100644 --- a/src/index.html +++ b/src/index.html @@ -2,14 +2,24 @@ - - + + mifi.holdings - + @@ -18,7 +28,11 @@ - +
diff --git a/stylelint.config.js b/stylelint.config.js index bfff201..8709456 100644 --- a/stylelint.config.js +++ b/stylelint.config.js @@ -2,7 +2,7 @@ export default { extends: ['stylelint-config-standard'], overrides: [ { - files: ['src/**/*.css'], - }, - ], + files: ['src/**/*.css'] + } + ] }