Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions frontend/applications/iframe-demo/custom-css.do-not-link.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* E2E test fixture for @wippy-fe/vite-plugin's wippyPagePlugin.
*
* Referenced from package.json:
* wippy.configOverrides.customization.customCSS = "file://custom-css.do-not-link.css"
*
* Plugin reads this at build time, inlines content into dist/wippy-meta.json
* and the inline <script data-role="@wippy/package"> in dist/app.html. The
* Wippy proxy injects it as a <style> tag at runtime. Do NOT add a
* <link rel="stylesheet"> for this file in app.html.
*/

body {
background: linear-gradient(135deg, #fef9c3 0%, #fde68a 100%) !important;
}

:root {
--p-primary: #d97706;
--p-primary-color: #d97706;
}

/* Distinctive marker visible in DevTools to prove this file ran */
body::before {
content: "🟡 e2e-custom-css.do-not-link.css applied";
display: block;
position: fixed;
top: 8px;
right: 8px;
padding: 4px 8px;
background: #d97706;
color: white;
font: 12px monospace;
border-radius: 4px;
z-index: 99999;
}
479 changes: 273 additions & 206 deletions frontend/applications/iframe-demo/package-lock.json

Large diffs are not rendered by default.

16 changes: 13 additions & 3 deletions frontend/applications/iframe-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@
"iconifyIcons": true,
"errorCapture": true
}
},
"configOverrides": {
"customization": {
"cssVariables": {
"--p-primary": "#d97706",
"--p-primary-color": "#d97706"
},
"customCSS": "file://custom-css.do-not-link.css"
}
}
},
"scripts": {
Expand All @@ -44,11 +53,12 @@
"lint:fix": "eslint src --ext .ts,.vue --fix"
},
"dependencies": {
"@wippy-fe/theme": "^0.0.26"
"@wippy-fe/theme": "^0.0.32"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.0.0",
"@wippy-fe/types-global-proxy": "^0.0.26",
"@wippy-fe/vite-plugin": "^0.0.32",
"@wippy-fe/types-global-proxy": "^0.0.32",
"autoprefixer": "^10.4.0",
"postcss": "^8.4.0",
"tailwindcss": "3",
Expand All @@ -60,7 +70,7 @@
},
"peerDependencies": {
"@iconify/vue": "^5.0.0",
"@wippy-fe/proxy": "^0.0.26",
"@wippy-fe/proxy": "^0.0.32",
"axios": "^1.0.0",
"vue": "^3.5.0",
"vue-router": "^4.0.0"
Expand Down
2 changes: 2 additions & 0 deletions frontend/applications/iframe-demo/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { resolve } from 'node:path'
import vue from '@vitejs/plugin-vue'
import { wippyPagePlugin } from '@wippy-fe/vite-plugin'
import { defineConfig } from 'vite'

export default defineConfig({
Expand All @@ -11,6 +12,7 @@ export default defineConfig({
},
},
}),
wippyPagePlugin(),
],
base: '',
resolve: {
Expand Down
Loading