webcake-landing-mcp 1.0.28 → 1.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/changelog.json +7 -7
- package/dist/og.png +0 -0
- package/dist/web-guide.js +14 -3
- package/package.json +3 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 vuluu2k
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/changelog.json
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "1.0.29",
|
|
4
|
+
"d": "08/06/2026",
|
|
5
|
+
"type": "Fixed",
|
|
6
|
+
"en": "The GET / guide page now takes full control of scroll restoration across reloads: native browser scroll restoration is disabled in the <head> script…",
|
|
7
|
+
"vi": "Trang hướng dẫn GET / nay kiểm soát hoàn toàn việc khôi phục vị trí cuộn sau reload: tính năng scroll restoration tự nhiên của trình duyệt bị tắt…"
|
|
8
|
+
},
|
|
2
9
|
{
|
|
3
10
|
"v": "1.0.28",
|
|
4
11
|
"d": "08/06/2026",
|
|
@@ -33,12 +40,5 @@
|
|
|
33
40
|
"type": "Changed",
|
|
34
41
|
"en": "The numbered installation steps on the GET / guide page now display a faint vertical connector line between step numbers, giving the list a clear…",
|
|
35
42
|
"vi": "Các bước cài đặt được đánh số trên trang hướng dẫn GET / nay hiển thị đường kết nối dọc mờ giữa các số thứ tự, tạo giao diện stepper rõ ràng."
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"v": "1.0.23",
|
|
39
|
-
"d": "07/06/2026",
|
|
40
|
-
"type": "Added",
|
|
41
|
-
"en": "The GET / guide page now includes a dark/light theme toggle button in the header; the preference is saved in localStorage and applied before the…",
|
|
42
|
-
"vi": "Trang hướng dẫn GET / nay có nút chuyển chế độ sáng/tối trong header; lựa chọn được lưu vào localStorage và áp dụng trước khi trang hiển thị để…"
|
|
43
43
|
}
|
|
44
44
|
]
|
package/dist/og.png
CHANGED
|
Binary file
|
package/dist/web-guide.js
CHANGED
|
@@ -381,7 +381,7 @@ export function guideHtml(origin, lang = "vi") {
|
|
|
381
381
|
<html lang="${L}"><head>
|
|
382
382
|
<meta charset="utf-8">
|
|
383
383
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
384
|
-
<script>(function(){try{var t=localStorage.getItem('wc-theme');if(t==='dark'||t==='light')document.documentElement.setAttribute('data-theme',t);}catch(e){}})();</script>
|
|
384
|
+
<script>(function(){try{var t=localStorage.getItem('wc-theme');if(t==='dark'||t==='light')document.documentElement.setAttribute('data-theme',t);}catch(e){}try{if('scrollRestoration' in history)history.scrollRestoration='manual';}catch(e){}})();</script>
|
|
385
385
|
<title>${m.title}</title>
|
|
386
386
|
<meta name="description" content="${m.desc}">
|
|
387
387
|
<meta name="keywords" content="${m.keywords}">
|
|
@@ -757,6 +757,17 @@ export function guideHtml(origin, lang = "vi") {
|
|
|
757
757
|
paint();
|
|
758
758
|
if(tBtn)tBtn.addEventListener('click',function(){var next=effective()==='dark'?'light':'dark';html.setAttribute('data-theme',next);try{localStorage.setItem('wc-theme',next);}catch(e){}paint();});
|
|
759
759
|
|
|
760
|
+
// Restore scroll position exactly across reloads. Native scroll restoration is
|
|
761
|
+
// disabled (see head script); the browser's own restore drifts a little each
|
|
762
|
+
// reload as the reveal/hero animations settle. We persist the exact offset per
|
|
763
|
+
// URL and re-apply it now (DOM is fully parsed — this script is at body end, the
|
|
764
|
+
// page has no async images, so layout height is already final → no drift).
|
|
765
|
+
var SKEY='wc-scroll:'+location.pathname+location.search;
|
|
766
|
+
try{var y=sessionStorage.getItem(SKEY);if(y!==null)window.scrollTo(0,parseFloat(y)||0);}catch(e){}
|
|
767
|
+
function saveScroll(){try{sessionStorage.setItem(SKEY,String(window.scrollY));}catch(e){}}
|
|
768
|
+
window.addEventListener('beforeunload',saveScroll);
|
|
769
|
+
window.addEventListener('pagehide',saveScroll);
|
|
770
|
+
|
|
760
771
|
// Enable smooth scrolling only after the browser has restored scroll position
|
|
761
772
|
// on (re)load — applying it globally animates that restore into a jerky scroll.
|
|
762
773
|
window.addEventListener('load',function(){requestAnimationFrame(function(){html.classList.add('smooth');});});
|
|
@@ -794,8 +805,8 @@ export function ogImageSvg() {
|
|
|
794
805
|
<text x="90" y="400" fill="#ffffff" font-size="64" font-weight="800" letter-spacing="-2">pages from <tspan fill="#1DB954">one sentence</tspan>.</text>
|
|
795
806
|
<text x="90" y="478" fill="#9fb1a8" font-size="30" font-weight="500">No drag-and-drop · No JSON · Saves straight to your Webcake account</text>
|
|
796
807
|
<g transform="translate(90 520)">
|
|
797
|
-
<rect width="
|
|
798
|
-
<text x="
|
|
808
|
+
<rect width="470" height="56" rx="12" fill="#1DB954"/>
|
|
809
|
+
<text x="235" y="36" fill="#ffffff" font-size="24" font-weight="700" text-anchor="middle">npx -y webcake-landing-mcp install</text>
|
|
799
810
|
</g>
|
|
800
811
|
<text x="1110" y="560" fill="#5b6b63" font-size="24" font-weight="600" text-anchor="end">github.com/vuluu2k/webcake-landing-mcp</text>
|
|
801
812
|
</svg>`;
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webcake-landing-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.29",
|
|
4
4
|
"description": "MCP server exposing Webcake landing-page element schemas + AI usage hints, and persisting LLM-generated page sources to a Webcake backend.",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
6
7
|
"bin": {
|
|
7
8
|
"webcake-landing-mcp": "dist/index.js"
|
|
8
9
|
},
|
|
@@ -20,6 +21,7 @@
|
|
|
20
21
|
"build": "node scripts/gen-changelog.mjs && tsc && node scripts/copy-assets.mjs",
|
|
21
22
|
"start": "node dist/index.js",
|
|
22
23
|
"dev": "tsc --watch",
|
|
24
|
+
"dev:guide": "node scripts/preview-guide.mjs",
|
|
23
25
|
"smoke": "node dist/smoke.js",
|
|
24
26
|
"prepare": "npm run build",
|
|
25
27
|
"prepublishOnly": "npm run build && npm run smoke",
|