Loading data/template/default/cookie.html +3 −3 Changes for data/template/default/cookie.html: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -6,11 +6,11 @@ <meta name="robots" content="all" > <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=0.3" > <link rel="stylesheet" href="${prefix}/theme/public/reset.css"> <link rel="stylesheet" href="${prefix}/theme/public/style.css"> <link rel="stylesheet" href="${PREFIX}/theme/public/reset.css"> <link rel="stylesheet" href="${PREFIX}/theme/public/style.css"> </head> <body> <img alt="test" src="${prefix}/theme/public/header.webp" > <img alt="test" src="${PREFIX}/theme/public/header.webp" > <div id="cookiebanner"> <div id="cookieoverlay"> </div> Loading data/template/default/editor.html +214 −49 Changes for data/template/default/editor.html: 214 added lines, 49 removed lines. Original line number Diff line number Diff line <!DOCTYPE html> <html lang=""> <html lang="en"> <head> <meta charset="utf-8"> <link rel="stylesheet" href="${prefix}/theme/public/reset.css"> <link rel="stylesheet" href="${prefix}/theme/public/editor.css"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Webeditor</title> <!-- Load Tailwind CSS --> <script src="${PREFIX}/theme/public/tailwindcss.js"></script> <style> /* Custom styles for the layout */ body { font-family: 'Inter', sans-serif; overflow: hidden; } /* Use Grid for the main content area */ #maincontent { display: grid; grid-template-columns: 280px 1fr; /* Toolbar fixed width, Preview fluid */ height: calc(100vh - 64px); /* Full viewport height minus header height */ } #preview { display: flex; justify-content: center; align-items: center; padding: 2rem; background-color: #e5e7eb; /* Light gray background for preview area */ } #rendering { /* Iframe base styles */ border: 1px solid #ccc; height: 100%; transition: all 0.4s ease-in-out; } /* Mobile view simulation styles */ .mobile-frame { width: 400px !important; box-shadow: 0 0 30px rgba(0,0,0,0.2); border-radius: 20px; } /* Desktop view simulation styles */ .desktop-frame { width: 100% !important; box-shadow: none; border-radius: 0; } </style> </head> <body> <header> <div> <ul class="headertitle"> <li>Webeditor</li> <body class="bg-gray-100"> <header class="bg-white shadow-lg h-16 flex items-center px-6"> <div class="flex justify-between items-center w-full"> <ul class="flex items-center space-x-4"> <li class="text-2xl font-bold text-gray-800">Webeditor</li> </ul> <ul class="headertools"> <li> <button id="mobile_view" >Mobile</button> </li> <li> <button id="desktop_view" >Desktop</button> </li> <li> <button type="button">Make Public</button> </li> <ul class="flex space-x-3"> <li><button id="mobile_view" class="px-4 py-2 text-sm rounded-lg bg-gray-200 text-gray-700 hover:bg-gray-300 transition duration-150">Mobile</button></li> <li><button id="desktop_view" class="px-4 py-2 text-sm rounded-lg bg-blue-600 text-white hover:bg-blue-700 transition duration-150">Desktop</button></li> <li><button type="button" class="px-4 py-2 text-sm rounded-lg bg-green-600 text-white hover:bg-green-700 transition duration-150">Make Public</button></li> </ul> </div> </header> <main> <table id="maincontent"> <tr> <td id="toolbar" > <div> <form> <select class="title" > <option >Tools</option> <option >Revesions</option> <div id="maincontent"> <!-- Toolbar/Sidebar --> <div id="toolbar" class="bg-gray-800 text-white p-4 flex flex-col h-full overflow-y-auto"> <!-- Toolbar Header/Tools Select --> <div class="mb-6"> <select id="tools_select" class="w-full p-2 rounded-lg bg-gray-700 text-white focus:ring-blue-500 focus:border-blue-500 border-none"> <option>Element Tree</option> <option>Revisions</option> <option>Settings</option> </select> </form> </div> <div id="toolbar_tree"> <ul> <li>Content</li> </ul> <!-- Element Tree/Properties Display Area --> <div id="toolbar_tree" class="flex-grow overflow-y-auto mb-6 p-3 bg-gray-700 rounded-lg shadow-inner"> <p class="text-sm font-semibold mb-3 text-yellow-400 border-b border-gray-600 pb-1">Selected Element Properties</p> <div id="element_properties" class="text-xs space-y-2 text-gray-300"> <p class="text-yellow-400">Click an element in the preview area to fetch its properties via the JSON API.</p> <!-- Properties will be dynamically inserted here --> </div> </div> <!-- Actions --> <div> <ul class="toolbar_actions" > <li><button>Add</button></li> <li><button>Edit</button></li> <li><button>Delete</button></li> <ul class="flex space-x-2"> <li><button id="add_element" class="px-3 py-2 text-sm rounded-lg bg-blue-600 text-white hover:bg-blue-700 w-full transition shadow-md">Add</button></li> <li><button id="edit_element" class="px-3 py-2 text-sm rounded-lg bg-yellow-600 text-white hover:bg-yellow-700 w-full transition shadow-md">Edit</button></li> <li><button id="delete_element" class="px-3 py-2 text-sm rounded-lg bg-red-600 text-white hover:bg-red-700 w-full transition shadow-md">Delete</button></li> </ul> </div> </td> <td id="preview"> <div> <iframe id="rendering" rel="nofollow" src="${prefix}/render?mobile=true"></iframe> </div> </td> </tr> </table> <!-- Preview Area --> <div id="preview"> <iframe id="rendering" src="${prefix}/render?mobile=true" class="bg-white transition-all duration-500 mobile-frame" title="Live Preview" style="max-width: 100%; height: 100%;"></iframe> </div> </div> </main> <footer></footer> <script> document.getElementById('mobile_view').addEventListener("click", (e) => { document.getElementById('rendering').src='${prefix}/render?mobile=true' document.getElementById('rendering').style.width='400px'; const PREFIX = "${prefix}"; const API_ENDPOINT = `${PREFIX}/api`; const AUTH_COOKIE_NAME = 'authid'; const renderingIframe = document.getElementById('rendering'); const elementPropertiesDiv = document.getElementById('element_properties'); const mobileViewBtn = document.getElementById('mobile_view'); const desktopViewBtn = document.getElementById('desktop_view'); /** * Parses a specific cookie value from the browser's document.cookie string. * @param {string} name The name of the cookie to retrieve. * @returns {string | null} The cookie value or null if not found. */ function getCookie(name) { const nameEQ = name + "="; const ca = document.cookie.split(';'); for(let i = 0; i < ca.length; i++) { let c = ca[i]; while (c.charAt(0) === ' ') c = c.substring(1, c.length); if (c.indexOf(nameEQ) === 0) { return c.substring(nameEQ.length, c.length); } } return null; } /** * Makes a JSON API call to fetch properties for a given element ID (UUID). * @param {string} elementId The UUID of the element to fetch properties for. */ async function fetchElementProperties(elementId) { // Display loading state elementPropertiesDiv.innerHTML = '<p class="text-blue-300">Loading properties for ' + elementId + '...</p>'; const authId = getCookie(AUTH_COOKIE_NAME); const requestArray = []; // 1. Authentication command if (authId) { requestArray.push({ "auth": authId }); } else { console.warn("AuthID cookie not found. Sending request without specific authentication."); } // 2. Request the element properties using the UUID requestArray.push({ "get_element_properties": { "element_uuid": elementId } }); const payload = JSON.stringify(requestArray); try { const response = await fetch(API_ENDPOINT, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: payload }); const result = await response.json(); // Assuming the result of 'get_element_properties' is the last item const elementData = result[result.length - 1]; if (elementData && elementData.element_properties) { let html = `<p class="text-sm font-bold text-white mb-2 break-all">UUID: ${elementId}</p>`; // Display properties in a readable way for (const [key, value] of Object.entries(elementData.element_properties)) { // Truncate long values for display readability let displayValue = JSON.stringify(value); if (displayValue.length > 50) { displayValue = displayValue.substring(0, 47) + '...'; } html += `<p class="text-xs"><strong class="text-gray-400">${key}:</strong> <span class="text-yellow-400">${displayValue}</span></p>`; } elementPropertiesDiv.innerHTML = html; } else { elementPropertiesDiv.innerHTML = `<p class="text-red-400">Error fetching properties or not found. Check Console.</p>`; console.error("API Response Error:", result); } } catch (error) { elementPropertiesDiv.innerHTML = `<p class="text-red-400">Network error: ${error.message}</p>`; console.error("Fetch API Error:", error); } } // --- Event Listeners and Handlers --- // 1. Iframe View Handlers mobileViewBtn.addEventListener("click", () => { renderingIframe.src = `${PREFIX}/render?mobile=true&roolel=main`; renderingIframe.classList.remove('desktop-frame'); renderingIframe.classList.add('mobile-frame'); mobileViewBtn.classList.remove('bg-gray-200', 'text-gray-700'); mobileViewBtn.classList.add('bg-blue-600', 'text-white'); desktopViewBtn.classList.remove('bg-blue-600', 'text-white'); desktopViewBtn.classList.add('bg-gray-200', 'text-gray-700'); }); document.getElementById('desktop_view').addEventListener("click", (e) => { document.getElementById('rendering').src='${prefix}/render' document.getElementById('rendering').style.width='100%'; desktopViewBtn.addEventListener("click", () => { renderingIframe.src = `${PREFIX}/render?rootel=main`; renderingIframe.classList.remove('mobile-frame'); renderingIframe.classList.add('desktop-frame'); desktopViewBtn.classList.remove('bg-gray-200', 'text-gray-700'); desktopViewBtn.classList.add('bg-blue-600', 'text-white'); mobileViewBtn.classList.remove('bg-blue-600', 'text-white'); mobileViewBtn.classList.add('bg-gray-200', 'text-gray-700'); }); // 2. PostMessage Listener (to receive element clicks from the iframe content) window.addEventListener('message', (event) => { // WARNING: In a production environment, you must verify event.origin for security. const data = event.data; if (data && data.type === 'elementClicked' && data.elementId) { console.log('Element Clicked in Iframe. UUID:', data.elementId); fetchElementProperties(data.elementId); } }); // Initial setup for the view selector buttons window.onload = () => { // Set initial button state (mobile is default in the src) mobileViewBtn.classList.add('bg-blue-600', 'text-white'); desktopViewBtn.classList.add('bg-gray-200', 'text-gray-700'); }; </script> </body> </html> data/template/default/index.html +3 −3 Changes for data/template/default/index.html: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -6,13 +6,13 @@ <meta name="robots" content="all" > <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=0.3" > <link rel="stylesheet" href="${prefix}/theme/public/reset.css"> <link rel="stylesheet" href="${prefix}/theme/public/style.css"> <link rel="stylesheet" href="${PREFIX}/theme/public/reset.css"> <link rel="stylesheet" href="${PREFIX}/theme/public/style.css"> </head> <body> <div id="header"> <!-- header image --> <img alt="headerimage" id="banner" src="${prefix}/theme/public/header.webp" > <img alt="headerimage" id="banner" src="${PREFIX}/theme/public/header.webp" > <!-- Navbar--> <div id="headnav" > </div> Loading data/template/default/mobile.html +3 −3 Changes for data/template/default/mobile.html: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -6,9 +6,9 @@ <meta name="robots" content="all" /> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="stylesheet" href="${prefix}/theme/public/reset.css"> <link rel="stylesheet" href="${prefix}/theme/public/mstyle.css"> <link rel="icon" type="image/x-icon" href="${prefix}/theme/public/favicon.ico"> <link rel="stylesheet" href="${PREFIX}/theme/public/reset.css"> <link rel="stylesheet" href="${PREFIX}/theme/public/mstyle.css"> <link rel="icon" type="image/x-icon" href="${PREFIX}/theme/public/favicon.ico"> </head> <body> <div id="header"> Loading data/template/default/public/tailwindcss.js 0 → 100644 +83 −0 File added.Preview size limit exceeded, changes collapsed. Show changes Loading
data/template/default/cookie.html +3 −3 Changes for data/template/default/cookie.html: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -6,11 +6,11 @@ <meta name="robots" content="all" > <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=0.3" > <link rel="stylesheet" href="${prefix}/theme/public/reset.css"> <link rel="stylesheet" href="${prefix}/theme/public/style.css"> <link rel="stylesheet" href="${PREFIX}/theme/public/reset.css"> <link rel="stylesheet" href="${PREFIX}/theme/public/style.css"> </head> <body> <img alt="test" src="${prefix}/theme/public/header.webp" > <img alt="test" src="${PREFIX}/theme/public/header.webp" > <div id="cookiebanner"> <div id="cookieoverlay"> </div> Loading
data/template/default/editor.html +214 −49 Changes for data/template/default/editor.html: 214 added lines, 49 removed lines. Original line number Diff line number Diff line <!DOCTYPE html> <html lang=""> <html lang="en"> <head> <meta charset="utf-8"> <link rel="stylesheet" href="${prefix}/theme/public/reset.css"> <link rel="stylesheet" href="${prefix}/theme/public/editor.css"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Webeditor</title> <!-- Load Tailwind CSS --> <script src="${PREFIX}/theme/public/tailwindcss.js"></script> <style> /* Custom styles for the layout */ body { font-family: 'Inter', sans-serif; overflow: hidden; } /* Use Grid for the main content area */ #maincontent { display: grid; grid-template-columns: 280px 1fr; /* Toolbar fixed width, Preview fluid */ height: calc(100vh - 64px); /* Full viewport height minus header height */ } #preview { display: flex; justify-content: center; align-items: center; padding: 2rem; background-color: #e5e7eb; /* Light gray background for preview area */ } #rendering { /* Iframe base styles */ border: 1px solid #ccc; height: 100%; transition: all 0.4s ease-in-out; } /* Mobile view simulation styles */ .mobile-frame { width: 400px !important; box-shadow: 0 0 30px rgba(0,0,0,0.2); border-radius: 20px; } /* Desktop view simulation styles */ .desktop-frame { width: 100% !important; box-shadow: none; border-radius: 0; } </style> </head> <body> <header> <div> <ul class="headertitle"> <li>Webeditor</li> <body class="bg-gray-100"> <header class="bg-white shadow-lg h-16 flex items-center px-6"> <div class="flex justify-between items-center w-full"> <ul class="flex items-center space-x-4"> <li class="text-2xl font-bold text-gray-800">Webeditor</li> </ul> <ul class="headertools"> <li> <button id="mobile_view" >Mobile</button> </li> <li> <button id="desktop_view" >Desktop</button> </li> <li> <button type="button">Make Public</button> </li> <ul class="flex space-x-3"> <li><button id="mobile_view" class="px-4 py-2 text-sm rounded-lg bg-gray-200 text-gray-700 hover:bg-gray-300 transition duration-150">Mobile</button></li> <li><button id="desktop_view" class="px-4 py-2 text-sm rounded-lg bg-blue-600 text-white hover:bg-blue-700 transition duration-150">Desktop</button></li> <li><button type="button" class="px-4 py-2 text-sm rounded-lg bg-green-600 text-white hover:bg-green-700 transition duration-150">Make Public</button></li> </ul> </div> </header> <main> <table id="maincontent"> <tr> <td id="toolbar" > <div> <form> <select class="title" > <option >Tools</option> <option >Revesions</option> <div id="maincontent"> <!-- Toolbar/Sidebar --> <div id="toolbar" class="bg-gray-800 text-white p-4 flex flex-col h-full overflow-y-auto"> <!-- Toolbar Header/Tools Select --> <div class="mb-6"> <select id="tools_select" class="w-full p-2 rounded-lg bg-gray-700 text-white focus:ring-blue-500 focus:border-blue-500 border-none"> <option>Element Tree</option> <option>Revisions</option> <option>Settings</option> </select> </form> </div> <div id="toolbar_tree"> <ul> <li>Content</li> </ul> <!-- Element Tree/Properties Display Area --> <div id="toolbar_tree" class="flex-grow overflow-y-auto mb-6 p-3 bg-gray-700 rounded-lg shadow-inner"> <p class="text-sm font-semibold mb-3 text-yellow-400 border-b border-gray-600 pb-1">Selected Element Properties</p> <div id="element_properties" class="text-xs space-y-2 text-gray-300"> <p class="text-yellow-400">Click an element in the preview area to fetch its properties via the JSON API.</p> <!-- Properties will be dynamically inserted here --> </div> </div> <!-- Actions --> <div> <ul class="toolbar_actions" > <li><button>Add</button></li> <li><button>Edit</button></li> <li><button>Delete</button></li> <ul class="flex space-x-2"> <li><button id="add_element" class="px-3 py-2 text-sm rounded-lg bg-blue-600 text-white hover:bg-blue-700 w-full transition shadow-md">Add</button></li> <li><button id="edit_element" class="px-3 py-2 text-sm rounded-lg bg-yellow-600 text-white hover:bg-yellow-700 w-full transition shadow-md">Edit</button></li> <li><button id="delete_element" class="px-3 py-2 text-sm rounded-lg bg-red-600 text-white hover:bg-red-700 w-full transition shadow-md">Delete</button></li> </ul> </div> </td> <td id="preview"> <div> <iframe id="rendering" rel="nofollow" src="${prefix}/render?mobile=true"></iframe> </div> </td> </tr> </table> <!-- Preview Area --> <div id="preview"> <iframe id="rendering" src="${prefix}/render?mobile=true" class="bg-white transition-all duration-500 mobile-frame" title="Live Preview" style="max-width: 100%; height: 100%;"></iframe> </div> </div> </main> <footer></footer> <script> document.getElementById('mobile_view').addEventListener("click", (e) => { document.getElementById('rendering').src='${prefix}/render?mobile=true' document.getElementById('rendering').style.width='400px'; const PREFIX = "${prefix}"; const API_ENDPOINT = `${PREFIX}/api`; const AUTH_COOKIE_NAME = 'authid'; const renderingIframe = document.getElementById('rendering'); const elementPropertiesDiv = document.getElementById('element_properties'); const mobileViewBtn = document.getElementById('mobile_view'); const desktopViewBtn = document.getElementById('desktop_view'); /** * Parses a specific cookie value from the browser's document.cookie string. * @param {string} name The name of the cookie to retrieve. * @returns {string | null} The cookie value or null if not found. */ function getCookie(name) { const nameEQ = name + "="; const ca = document.cookie.split(';'); for(let i = 0; i < ca.length; i++) { let c = ca[i]; while (c.charAt(0) === ' ') c = c.substring(1, c.length); if (c.indexOf(nameEQ) === 0) { return c.substring(nameEQ.length, c.length); } } return null; } /** * Makes a JSON API call to fetch properties for a given element ID (UUID). * @param {string} elementId The UUID of the element to fetch properties for. */ async function fetchElementProperties(elementId) { // Display loading state elementPropertiesDiv.innerHTML = '<p class="text-blue-300">Loading properties for ' + elementId + '...</p>'; const authId = getCookie(AUTH_COOKIE_NAME); const requestArray = []; // 1. Authentication command if (authId) { requestArray.push({ "auth": authId }); } else { console.warn("AuthID cookie not found. Sending request without specific authentication."); } // 2. Request the element properties using the UUID requestArray.push({ "get_element_properties": { "element_uuid": elementId } }); const payload = JSON.stringify(requestArray); try { const response = await fetch(API_ENDPOINT, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: payload }); const result = await response.json(); // Assuming the result of 'get_element_properties' is the last item const elementData = result[result.length - 1]; if (elementData && elementData.element_properties) { let html = `<p class="text-sm font-bold text-white mb-2 break-all">UUID: ${elementId}</p>`; // Display properties in a readable way for (const [key, value] of Object.entries(elementData.element_properties)) { // Truncate long values for display readability let displayValue = JSON.stringify(value); if (displayValue.length > 50) { displayValue = displayValue.substring(0, 47) + '...'; } html += `<p class="text-xs"><strong class="text-gray-400">${key}:</strong> <span class="text-yellow-400">${displayValue}</span></p>`; } elementPropertiesDiv.innerHTML = html; } else { elementPropertiesDiv.innerHTML = `<p class="text-red-400">Error fetching properties or not found. Check Console.</p>`; console.error("API Response Error:", result); } } catch (error) { elementPropertiesDiv.innerHTML = `<p class="text-red-400">Network error: ${error.message}</p>`; console.error("Fetch API Error:", error); } } // --- Event Listeners and Handlers --- // 1. Iframe View Handlers mobileViewBtn.addEventListener("click", () => { renderingIframe.src = `${PREFIX}/render?mobile=true&roolel=main`; renderingIframe.classList.remove('desktop-frame'); renderingIframe.classList.add('mobile-frame'); mobileViewBtn.classList.remove('bg-gray-200', 'text-gray-700'); mobileViewBtn.classList.add('bg-blue-600', 'text-white'); desktopViewBtn.classList.remove('bg-blue-600', 'text-white'); desktopViewBtn.classList.add('bg-gray-200', 'text-gray-700'); }); document.getElementById('desktop_view').addEventListener("click", (e) => { document.getElementById('rendering').src='${prefix}/render' document.getElementById('rendering').style.width='100%'; desktopViewBtn.addEventListener("click", () => { renderingIframe.src = `${PREFIX}/render?rootel=main`; renderingIframe.classList.remove('mobile-frame'); renderingIframe.classList.add('desktop-frame'); desktopViewBtn.classList.remove('bg-gray-200', 'text-gray-700'); desktopViewBtn.classList.add('bg-blue-600', 'text-white'); mobileViewBtn.classList.remove('bg-blue-600', 'text-white'); mobileViewBtn.classList.add('bg-gray-200', 'text-gray-700'); }); // 2. PostMessage Listener (to receive element clicks from the iframe content) window.addEventListener('message', (event) => { // WARNING: In a production environment, you must verify event.origin for security. const data = event.data; if (data && data.type === 'elementClicked' && data.elementId) { console.log('Element Clicked in Iframe. UUID:', data.elementId); fetchElementProperties(data.elementId); } }); // Initial setup for the view selector buttons window.onload = () => { // Set initial button state (mobile is default in the src) mobileViewBtn.classList.add('bg-blue-600', 'text-white'); desktopViewBtn.classList.add('bg-gray-200', 'text-gray-700'); }; </script> </body> </html>
data/template/default/index.html +3 −3 Changes for data/template/default/index.html: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -6,13 +6,13 @@ <meta name="robots" content="all" > <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=0.3" > <link rel="stylesheet" href="${prefix}/theme/public/reset.css"> <link rel="stylesheet" href="${prefix}/theme/public/style.css"> <link rel="stylesheet" href="${PREFIX}/theme/public/reset.css"> <link rel="stylesheet" href="${PREFIX}/theme/public/style.css"> </head> <body> <div id="header"> <!-- header image --> <img alt="headerimage" id="banner" src="${prefix}/theme/public/header.webp" > <img alt="headerimage" id="banner" src="${PREFIX}/theme/public/header.webp" > <!-- Navbar--> <div id="headnav" > </div> Loading
data/template/default/mobile.html +3 −3 Changes for data/template/default/mobile.html: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -6,9 +6,9 @@ <meta name="robots" content="all" /> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="stylesheet" href="${prefix}/theme/public/reset.css"> <link rel="stylesheet" href="${prefix}/theme/public/mstyle.css"> <link rel="icon" type="image/x-icon" href="${prefix}/theme/public/favicon.ico"> <link rel="stylesheet" href="${PREFIX}/theme/public/reset.css"> <link rel="stylesheet" href="${PREFIX}/theme/public/mstyle.css"> <link rel="icon" type="image/x-icon" href="${PREFIX}/theme/public/favicon.ico"> </head> <body> <div id="header"> Loading
data/template/default/public/tailwindcss.js 0 → 100644 +83 −0 File added.Preview size limit exceeded, changes collapsed. Show changes