feat: playwright scraper
This commit is contained in:
@@ -6,6 +6,6 @@ NEXT_PUBLIC_USE_MOCK_BACKEND_LOOP_START=false
|
|||||||
NEXT_PUBLIC_EXPORT_STATIC=false
|
NEXT_PUBLIC_EXPORT_STATIC=false
|
||||||
NEXT_PUBLIC_USE_CGI=false
|
NEXT_PUBLIC_USE_CGI=false
|
||||||
# App-Versionsnummer
|
# App-Versionsnummer
|
||||||
NEXT_PUBLIC_APP_VERSION=1.6.735
|
NEXT_PUBLIC_APP_VERSION=1.6.736
|
||||||
NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter)
|
NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter)
|
||||||
|
|
||||||
|
|||||||
@@ -5,5 +5,5 @@ NEXT_PUBLIC_CPL_API_PATH=/CPL
|
|||||||
NEXT_PUBLIC_EXPORT_STATIC=true
|
NEXT_PUBLIC_EXPORT_STATIC=true
|
||||||
NEXT_PUBLIC_USE_CGI=true
|
NEXT_PUBLIC_USE_CGI=true
|
||||||
# App-Versionsnummer
|
# App-Versionsnummer
|
||||||
NEXT_PUBLIC_APP_VERSION=1.6.735
|
NEXT_PUBLIC_APP_VERSION=1.6.736
|
||||||
NEXT_PUBLIC_CPL_MODE=production
|
NEXT_PUBLIC_CPL_MODE=production
|
||||||
@@ -1,3 +1,8 @@
|
|||||||
|
## [1.6.736] – 2025-08-18
|
||||||
|
|
||||||
|
- fix: window.location.pathname statt gestes Wert
|
||||||
|
|
||||||
|
---
|
||||||
## [1.6.735] – 2025-08-18
|
## [1.6.735] – 2025-08-18
|
||||||
|
|
||||||
- fix: Kabelüberwachung Konfiguration sichern und zurücksetzen
|
- fix: Kabelüberwachung Konfiguration sichern und zurücksetzen
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "cpl-v4",
|
"name": "cpl-v4",
|
||||||
"version": "1.6.735",
|
"version": "1.6.736",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "cpl-v4",
|
"name": "cpl-v4",
|
||||||
"version": "1.6.735",
|
"version": "1.6.736",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fontsource/roboto": "^5.1.0",
|
"@fontsource/roboto": "^5.1.0",
|
||||||
"@headlessui/react": "^2.2.4",
|
"@headlessui/react": "^2.2.4",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "cpl-v4",
|
"name": "cpl-v4",
|
||||||
"version": "1.6.735",
|
"version": "1.6.736",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
|
|||||||
7767
playwright/scraper/pages/dashboard-ipadpro.html
Normal file
7767
playwright/scraper/pages/dashboard-ipadpro.html
Normal file
File diff suppressed because one or more lines are too long
BIN
playwright/scraper/pages/dashboard-ipadpro.png
Normal file
BIN
playwright/scraper/pages/dashboard-ipadpro.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 285 KiB |
25
playwright/scraper/scrape-dashboard.mjs
Normal file
25
playwright/scraper/scrape-dashboard.mjs
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
// playwright/scraper/scrape-dashboard.js
|
||||||
|
import { chromium, devices } from "playwright";
|
||||||
|
import { writeFileSync } from "fs";
|
||||||
|
|
||||||
|
const browser = await chromium.launch();
|
||||||
|
const context = await browser.newContext({
|
||||||
|
...devices["iPad Pro 11 landscape"],
|
||||||
|
});
|
||||||
|
const page = await context.newPage();
|
||||||
|
await page.goto("http://localhost:3000/dashboard", {
|
||||||
|
waitUntil: "networkidle",
|
||||||
|
});
|
||||||
|
|
||||||
|
// HTML speichern
|
||||||
|
const html = await page.content();
|
||||||
|
writeFileSync("playwright/scraper/pages/dashboard-ipadpro.html", html);
|
||||||
|
|
||||||
|
// Screenshot speichern
|
||||||
|
await page.screenshot({
|
||||||
|
path: "playwright/scraper/pages/dashboard-ipadpro.png",
|
||||||
|
fullPage: true,
|
||||||
|
});
|
||||||
|
|
||||||
|
await browser.close();
|
||||||
|
// node playwright/scraper/scrape-dashboard.js
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
/** @type {import('tailwindcss').Config} */
|
/** @type {import('tailwindcss').Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
darkMode: 'class',
|
||||||
content: [
|
content: [
|
||||||
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
|
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
|
||||||
"./components/**/*.{js,ts,jsx,tsx,mdx}",
|
"./components/**/*.{js,ts,jsx,tsx,mdx}",
|
||||||
@@ -20,6 +21,7 @@ module.exports = {
|
|||||||
lg: "1024px",
|
lg: "1024px",
|
||||||
xl: "1280px",
|
xl: "1280px",
|
||||||
laptop: "1350px",
|
laptop: "1350px",
|
||||||
|
"ipad-pro": "1024px",
|
||||||
"2xl": "1600px",
|
"2xl": "1600px",
|
||||||
"3xl": "1920px",
|
"3xl": "1920px",
|
||||||
qhd: "2560px",
|
qhd: "2560px",
|
||||||
|
|||||||
Reference in New Issue
Block a user