mosaic-headless 1.37.0 → 1.38.0
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/README.ja.md +88 -253
- package/README.ko.md +85 -244
- package/README.md +86 -319
- package/README.zh-TW.md +86 -265
- package/SKILL.md +6 -6
- package/assets/templates/platforms/claude-ai.json +1 -1
- package/assets/templates/platforms/claude-code.json +1 -1
- package/assets/templates/platforms/codex-cli.json +1 -1
- package/assets/templates/platforms/copilot.json +1 -1
- package/assets/templates/platforms/gemini-cli.json +1 -1
- package/data/custom-fields-verification.csv +11 -11
- package/data/design-audit.csv +26 -26
- package/data/dynamic-variables.csv +3 -2
- package/data/menu-verification.csv +1 -1
- package/data/pending.csv +4 -2
- package/data/pluggables.csv +20 -0
- package/data/rwd-verification.csv +733 -733
- package/data/terms-zh.csv +62 -60
- package/package.json +1 -1
- package/references/data-files.md +2 -2
- package/references/upgrading.md +45 -0
- package/tools/check_numbers.py +80 -17
- package/tools/extract_node_types.py +3 -1
- package/tools/test_mosaic.py +53 -1
package/README.zh-TW.md
CHANGED
|
@@ -1,302 +1,123 @@
|
|
|
1
1
|
# mosaic-headless
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
直接寫入資料模型來建置和修改 Mosaic Pro(Nextend)WordPress 網站:不開視覺編輯器、不操作 DOM,每個查詢都用正式網站上的實測結果回答。
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
每一項宣稱都在真實站台上量過。
|
|
5
|
+
[](https://www.npmjs.com/package/mosaic-headless)
|
|
6
|
+
[](LICENSE)
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
[English](README.md) · [日本語](README.ja.md) · [한국어](README.ko.md)
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
> 這是非官方的社群專案,不是 Mosaic Pro 的開發商 Nextend 製作或背書,也和 Nextend 沒有關係。Mosaic Pro 是需授權的第三方軟體,本專案不包含它。
|
|
12
11
|
|
|
13
|
-
##
|
|
12
|
+
## 功能
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
npx mosaic-headless # 互動式:選平台
|
|
17
|
-
npx mosaic-headless claude-code --global # Claude Code,裝到 ~/.claude/skills/
|
|
18
|
-
npx mosaic-headless cursor --to ./my-project
|
|
19
|
-
npx mosaic-headless --list # 全部八個平台
|
|
20
|
-
```
|
|
14
|
+
Mosaic 把頁面存在自己的資料表裡,一個元素一列,不在 `post_content`。這個 skill 是那套資料模型的實測地圖,加上透過它寫入的工具。
|
|
21
15
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
| GitHub Copilot | 完整技能,外加一段附到 `copilot-instructions.md` | `./.github/` |
|
|
28
|
-
| Cursor | 一個內嵌 references 的 `.mdc` 規則檔 | `~/.cursor/rules/` |
|
|
29
|
-
| Windsurf | 一個內嵌 references 的規則檔 | `./.devin/` |
|
|
30
|
-
| Continue | 一個內嵌 references 的規則檔 | `~/.continue/` |
|
|
31
|
-
| Claude.ai | 一個 zip,上傳為專案技能 | 你存的地方 |
|
|
16
|
+
- **查了再寫,不用猜**:`tools/mo.py` 回答 node type、屬性、樣式鍵、狀態叫什麼、值要寫成什麼形狀、能放在哪裡、安不安全。資料涵蓋 134 種 node type、120 個 node 屬性、101 個樣式屬性、60 個樣式狀態,從 Mosaic Pro 1.0.13 抽出,並在正式網站上逐一實測。
|
|
17
|
+
- **中文和口語也查得到**:`mo.py css 內距` 會找到 padding;用語以 Mosaic 自己的正體中文介面為準。
|
|
18
|
+
- **建頁面和整站**:`build_page.py`、`build_site.py` 透過 Mosaic 的 REST 寫入流程提交頁面規格,實測會弄壞頁面的寫法直接拒絕。
|
|
19
|
+
- **檢查實際送出的頁面**:驗證器用 Chromium 讀公開頁面(RWD 規則、計算後樣式、選單、彈出視窗、輪播、表單),不只相信提交成功。
|
|
20
|
+
- **搬移與轉換**:匯出匯入整個佈景、執行 Mosaic 的資料升級、把 Elementor 頁面轉成 Mosaic。
|
|
32
21
|
|
|
33
|
-
|
|
34
|
-
平台拿到的是知識,沒有工具。
|
|
22
|
+
## 適用情境
|
|
35
23
|
|
|
36
|
-
|
|
37
|
-
`--force`(不加的話它會拒絕覆蓋你可能改過的 SKILL.md):
|
|
24
|
+
網站用的是 Mosaic Pro,想不開編輯器就建立或修改頁面、範本、元件、設計變數、彈出視窗、選單或互動,或想確切知道某個 Mosaic 設定的效果時使用。
|
|
38
25
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
26
|
+
其他頁面建構器不適用:Elementor 頁面交給 `elementor-headless`,區塊編輯器頁面交給 `gutenberg-headless`,SEO 文章交給 `rankmath-seo-wp`。不處理 WordPress 網站健康檢查、外掛更新或資安。
|
|
27
|
+
|
|
28
|
+
## 安裝
|
|
42
29
|
|
|
30
|
+
Claude plugin(Claude Code;上架 Claude 官方目錄後也可以從目錄安裝):
|
|
43
31
|
|
|
44
|
-
|
|
32
|
+
```
|
|
33
|
+
/plugin install mosaic-headless --marketplace Moksa1123/mosaic-headless
|
|
34
|
+
```
|
|
45
35
|
|
|
46
|
-
|
|
47
|
-
`SKILL.md` 就是它唯一的技能。上架到 Claude 目錄之後可以直接從目錄安裝;在那之前,Claude
|
|
48
|
-
Code 可以直接載入 clone 下來的資料夾:
|
|
36
|
+
npx,適用 Claude Code 和其他 AI 開發工具(Cursor、Codex CLI、Gemini CLI、Copilot、Continue、Windsurf、Claude.ai 上傳用的 zip):
|
|
49
37
|
|
|
50
38
|
```bash
|
|
51
|
-
|
|
52
|
-
|
|
39
|
+
npx mosaic-headless@latest claude-code --global --force
|
|
40
|
+
npx mosaic-headless --list
|
|
53
41
|
```
|
|
54
42
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
`SKILL.md` 執行、而且你核准指令時才會跑:
|
|
61
|
-
|
|
62
|
-
- **`tools/mo.py`**:讀 `data/` 裡的 CSV 表並印出答案,不寫入任何東西,也不連線。
|
|
63
|
-
- **`tools/*.php`**:透過 `wp eval-file` 在你自己的 WordPress 裡執行,讀寫該網站上 Mosaic
|
|
64
|
-
自己的資料表和主題資料。
|
|
65
|
-
- **`tools/mint_session.php`**:替*你自己網站*上的帳號建立登入 session 和對應的 REST
|
|
66
|
-
nonce。你把它們放進本機的設定檔(`--config sweep.json`);它們只印在你的終端機,不會送到別處。
|
|
67
|
-
- **`tools/build_site.py`、`data_upgrade.py`、`theme_zip.py`、`probe_accordion.py` 和 `sweep_*.py`**:用那份
|
|
68
|
-
session 呼叫設定檔裡那個網站的 Mosaic REST 路由,讀寫頁面、元件和主題。只連到那個網站。
|
|
69
|
-
- **`tools/verify_*.py`**:用 Playwright(Chromium)或 `urllib` 開同一個網站的頁面,比對實際
|
|
70
|
-
輸出和寫入的內容。
|
|
71
|
-
- **`sites/`**:工作範例(作者自己的網站)的資料。它的設計有載入 Google Fonts,所以用它建出來的
|
|
72
|
-
頁面,訪客的瀏覽器會向 Google 抓字型,跟任何使用 Google Fonts 的網頁一樣。
|
|
73
|
-
|
|
74
|
-
工具需要 Python 3 和 Playwright。安裝時不會下載任何東西,也不會把資料送給作者或第三方。
|
|
75
|
-
|
|
76
|
-
## 這是什麼
|
|
77
|
-
|
|
78
|
-
Mosaic 把一個頁面放在 **23 張自訂資料表**裡,不在 `post_content`,也不在 `postmeta`。
|
|
79
|
-
一個元素一列,樹狀結構靠 `parentID` 欄位,同層順序是一個 fractional-index 字串。
|
|
80
|
-
編輯器只是這個模型的其中一個客戶端。它不是格式本身,而且你不需要它。
|
|
81
|
-
|
|
82
|
-
這個技能就是那個模型的地圖——對照真實站台量出來的,不是讀原始碼讀出來的——外加一組
|
|
83
|
-
工具:透過模型寫入、檢查寫出來的東西、把 Elementor 的頁面搬進來。
|
|
84
|
-
|
|
85
|
-
## 各部分怎麼接起來
|
|
86
|
-
|
|
87
|
-
```mermaid
|
|
88
|
-
flowchart LR
|
|
89
|
-
subgraph measure["量一次,對著真實站台"]
|
|
90
|
-
SRC[外掛原始碼] -->|extract_*.py| D[(data/*.csv)]
|
|
91
|
-
SW[sweep_*.py / probe_*.py] -->|寫入、渲染、斷言| D
|
|
92
|
-
end
|
|
93
|
-
|
|
94
|
-
subgraph write["你建的每一頁"]
|
|
95
|
-
Q[mo.py] -->|一個答案,量測結論在前| SPEC[頁面 spec]
|
|
96
|
-
EL[Elementor _elementor_data] -->|from_elementor.py| SPEC
|
|
97
|
-
SPEC -->|build_page.py 拒絕量到會壞的| REST[Mosaic REST:checkout、check、commit]
|
|
98
|
-
REST --> DB[(23 張表)]
|
|
99
|
-
DB --> PAGE[送出的頁面]
|
|
100
|
-
end
|
|
101
|
-
|
|
102
|
-
subgraph verify["永遠不信任 commit"]
|
|
103
|
-
PAGE --> V1[verify_rwd.py]
|
|
104
|
-
PAGE --> V2[verify_browser.py + 設計稽核]
|
|
105
|
-
PAGE --> V3[verify_intro.py / verify_loop.py]
|
|
106
|
-
PAGE --> V4[verify_conversion.py]
|
|
107
|
-
V1 & V2 & V3 & V4 --> CSV[(驗證表)]
|
|
108
|
-
CSV --> GATE[check-release.mjs]
|
|
109
|
-
end
|
|
110
|
-
|
|
111
|
-
D --> Q
|
|
112
|
-
D --> SPEC
|
|
43
|
+
手動複製:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
git clone https://github.com/Moksa1123/mosaic-headless.git
|
|
47
|
+
cp -r mosaic-headless ~/.claude/skills/mosaic-headless
|
|
113
48
|
```
|
|
114
49
|
|
|
115
|
-
|
|
116
|
-
|
|
50
|
+
系統需求:Python 3(查詢、建頁、自我測試只用標準函式庫);瀏覽器驗證器需要 Playwright(見 `requirements.txt`);`.php` 工具要在伺服器上有 WP-CLI;Node.js 只有 npx 安裝程式需要。Windows、macOS、Linux 都能用。npm 出新版後,要用 `--force` 重跑安裝程式才會更新。
|
|
51
|
+
|
|
52
|
+
## 快速開始
|
|
117
53
|
|
|
118
|
-
|
|
54
|
+
可以這樣跟 Claude 說:
|
|
119
55
|
|
|
120
|
-
|
|
56
|
+
- 「在我的 Mosaic 網站做一個首屏區塊:一個 H1、一段文字、一個連到 /contact/ 的按鈕。」
|
|
57
|
+
- 「Mosaic 的 accordion-content 可以直接放在 div 裡嗎?」
|
|
58
|
+
- 「加一個三步驟的浮動框導覽,每一步關閉時進到下一步。」
|
|
121
59
|
|
|
122
|
-
|
|
123
|
-
`accordion-content`,它確認這個型別存在;掃描表則說 BROKE_PAGE——放一個下去,整個公開頁面
|
|
124
|
-
會變成一段 54 bytes 的錯誤字串。兩個都是真的,也都是錯的答案:列旁邊的註記說那段字串
|
|
125
|
-
指名的是「缺少父層」,而照 `accordion > accordion-item` 嵌套後它能寫入、能渲染,還免費送你
|
|
126
|
-
一個鍵盤可操作的展開元件。`mo.py type` 一次把三者都給你。
|
|
60
|
+
或自己查資料:
|
|
127
61
|
|
|
128
62
|
```bash
|
|
129
|
-
python tools/mo.py
|
|
130
|
-
python tools/mo.py check div text button # 遇到不安全或不存在的型別就以 1 退出
|
|
131
|
-
python tools/mo.py params text # 一個型別上所有能設的東西
|
|
132
|
-
python tools/mo.py style --grouped # 單獨設定就無效的那 20 個
|
|
133
|
-
python tools/mo.py states --verified # 實測會編譯的狀態
|
|
134
|
-
python tools/mo.py css grid-column # 哪個 Mosaic 鍵驅動這條 CSS
|
|
63
|
+
python tools/mo.py check div text accordion-content
|
|
135
64
|
```
|
|
136
65
|
|
|
137
|
-
然後去看頁面。Mosaic 有**八種**失敗模式,只有三種會改變 HTTP 狀態碼:
|
|
138
|
-
|
|
139
66
|
```
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
變成 54 bytes 的錯誤字串
|
|
144
|
-
值的「形狀」錯了 HTTP 200、存進去了,CSS 規則就是不出現
|
|
145
|
-
規則對、結果錯 HTTP 200、樣式表裡有、寫得對,瀏覽器算出另一個值
|
|
146
|
-
該網址沒有模板 HTTP 406,未登入者拿到空白內文
|
|
147
|
-
內容造成渲染時 fatal HTTP 500——commit 通過了,Mosaic 解析頁面時死掉。`code` 節點
|
|
148
|
-
的內容是模板:壓縮 CSS 慣用的 `@media(` 會被讀成函式呼叫。
|
|
149
|
-
`@media (` 就正常。build_page 會拒絕前者。
|
|
150
|
-
外掛升級改了頁面輸出 HTTP 200、頁面完好、資料列都遷移了——但你針對輸出 class 寫的 CSS
|
|
151
|
-
再也對不上。1.0.8 把 `M_EL4 M_EL_Div` 改成 `m-div _e`、狀態 class
|
|
152
|
-
跟著改、`customStyles` 改成 `customDeclarations`。範例站的點擊放大
|
|
153
|
-
就此打不開,是 verify_loop.py 說出來的。
|
|
67
|
+
type outcome why
|
|
68
|
+
----------------- ---------- -----------------------------------------------
|
|
69
|
+
accordion-content BROKE_PAGE AccordionItemElementMResource instance required
|
|
154
70
|
```
|
|
155
71
|
|
|
156
|
-
|
|
157
|
-
而且把 5xx 當成空頁面,因為 WordPress 的「嚴重錯誤」畫面有 2,697 bytes,比任何天真的
|
|
158
|
-
「健康頁面」門檻都大。
|
|
159
|
-
|
|
160
|
-
## 驗證了什麼,怎麼驗的
|
|
161
|
-
|
|
162
|
-
全部在真實站台上跑——WordPress 7.1、WooCommerce 11.1、Mosaic Pro 1.0.10,**未授權**:
|
|
163
|
-
授權鎖的是主題庫和更新,不是節點工廠,所以 Pro 型別照樣註冊、照樣渲染。
|
|
164
|
-
|
|
165
|
-
| 項目 | 結果 |
|
|
166
|
-
|---|---|
|
|
167
|
-
| **節點型別** | 129 / 129 逐一放進獨立文件,寫入 → 渲染 → 斷言 → 刪除:77 RENDERED、25 COMMITTED、15 COMMIT_5xx、12 BROKE_PAGE。在 1.0.8 上重掃:五個以前默默寫入的型別,沒放對父節點現在會直接弄死頁面。未渲染的當中有三個是「沒給父層」的掃描方法產物,註記就在列旁 |
|
|
168
|
-
| **樣式屬性** | 101 / 101 寫進真實頁面、對照編譯出的 CSS:61 COMPILED、18 ABSENT、21 SKIPPED |
|
|
169
|
-
| **節點屬性** | 191 / 191 用各自驗證鏈推出的值重新探測:39 APPLIED、45 NO_EFFECT、55 NO_HOST、48 SKIPPED |
|
|
170
|
-
| **響應式** | 兩個站共 733 條 `_t`/`_m` 宣告,對照網站實際送出的樣式表逐條斷言——全數通過 |
|
|
171
|
-
| **瀏覽器** | 在 Chromium 三個視窗寬度上對兩個交付頁面做 4,132 次計算樣式讀取:2,929 條比對相符、912 條標為無法比對、**0 條被覆蓋** |
|
|
172
|
-
| **設計稽核** | 對比度、字體回退、CJK 字距、水平溢出、文字裁切、每行字數——在瀏覽器裡跑,**26 項發現,每一項都有書面裁定**——沒寫理由的 acknowledge 會被發布閘門拒絕 |
|
|
173
|
-
| **元件** | 元件系統從頭驅動到尾,**8 之 8**:在分類下建立、文件自癒、透過可寫實例填入樹、唯讀實例拒絕同一筆寫入作為負控制、頁面上兩個實例渲染同一個定義 |
|
|
174
|
-
| **樣式狀態** | 53 個狀態中的 52 個寫進真實頁面,對照表格承諾的選擇器:**36 個完全吻合**、13 NO_HOST、3 SKIPPED、0 BROKE_PAGE。偽類是大寫輸出的(`.M_EL9:HOVER`) |
|
|
175
|
-
| **互動** | JS 動畫路徑以負控制探測並讀回資料列:`propertyMetas` **會**被接受並儲存;屬性值仍然綁不上,但邊界現在是精確的 |
|
|
176
|
-
| **accordion** | `accordion-item` 與 `accordion-content` 在掃描表裡是 BROKE_PAGE;照工廠要求嵌套後能寫入、能渲染,**7 之 7** |
|
|
177
|
-
| **入口動畫** | 以單調時鐘在十五個時間點取樣、做八項斷言。相較於完全沒有動畫的同一頁只多掉一幀,因為它會等文件第一次排版做完才開始 |
|
|
178
|
-
| **永續動畫** | 右下角一塊不斷自我印刷、點了會放大的版子,**28 項檢查**:暫停時間軸逐格比對證明週期性、五個寬度、二十五個捲動停點量文字*與*控制項的遮擋、以「永遠讀不到」為失敗條件、指標和 Enter 都能打開、reduced motion 下靜止 |
|
|
179
|
-
| **Elementor 轉換** | 一個正式站的全部 Elementor 頁面——19 頁、3,292 個元素——轉換、建置、對照來源檢查:**19 之 19**,3,281 個元素搬過去、11 個書面宣告。再把轉出的頁面跑過響應式、瀏覽器和稽核,每一項發現都分類為「繼承」或「引入」:**引入 0 個** |
|
|
180
|
-
| **主題匯出/匯入** | 兩條路徑,都來回驗證過。`theme_export.php` 用 WP-CLI 把資料列搬成 JSON、ID 不變。`theme_zip.py` 驅動 Mosaic **自己**的 ZIP 匯出匯入——匯入預設進 test mode,要 `--activate` 才上線,因為它的預設是直接切換 live 站——**22 項檢查**逐表、逐樹比對副本與來源 |
|
|
181
|
-
| **技能本身** | `claude plugin eval .`——五個使用者真的會問的問題,各跑三次,有載技能和沒載各一臂,每次三個 LLM 裁判。**有:五題全 1.00。沒有:五題全 0.00。** 基準線最好的回答是拒答 |
|
|
182
|
-
| **線上量測** | 115 條 REST 路由、156 個 variant、59 個條件主體、23 張表 / 210 個欄位 |
|
|
183
|
-
| **1.0.9 新功能** | modal(`<dialog>`)、OpenStreetMap、exit-intent 與 scroll-depth 觸發、run rules、memory action 與 modal shorthand,全部建在真實頁面上並用瀏覽器實際操作:19 之 19。「離開意圖彈窗、每個 session 只出現一次」只需要一個物件,不用接線 |
|
|
184
|
-
| **1.0.10 新功能** | popover——Mosaic 第一個不阻擋頁面的浮動層——在實驗頁上做了八種,用 Chromium 實際操作:37 / 37。頁面載入時出現的通知不擋捲動也不擋點擊、錨定選單與資訊卡、螢幕九宮格、keepInView 翻面與它的樣式狀態、用 `afterClose` 串起來的三步導覽。另外是 modal 改用 Popover API:進入 top layer、改用 `requestClose()`、host 上寫 `display` 不再讓它關不起來 |
|
|
185
|
-
| **slider** | 整組照工廠要求嵌套後在瀏覽器裡實際操作,19 之 19:會自己按宣告的間隔前進、箭頭與圓點與鍵盤都能驅動、`prefers-reduced-motion` 下會自己停。圓點其實是樣板,依 slide 數複製,每個複製品 id 相同 |
|
|
186
|
-
| **真正的網站** | 19 個轉換頁組成一個站:真實選單、每頁一個彈窗。導覽 46 之 46、彈窗 19 之 19,六種不同的觸發/規則/記憶/關閉設定 |
|
|
187
|
-
| **自訂欄位** | ACF 與 Meta Box,一頁四十個欄位,透過 `@VAR` / `@LOOP` 從送達的 HTML 讀回:62 個裡 59 個解析正確、3 個空值有解釋;多值欄位的迴圈剛好渲染出欄位的列數。`tools/list_fields.php` 列出 Mosaic 真正註冊的名字 |
|
|
188
|
-
| **線上升級** | 1.0.7 → 1.0.8 走外掛自己的 milestone 路由、在 wp-admin 之外驅動:6 個 milestone、四張表改名、每個輸出 class 名稱都變、每個 `customStyles` 都重寫——然後上面每一項掃描在結果上重跑 |
|
|
189
|
-
|
|
190
|
-
`SKIPPED`、`NO_HOST`、`INCONCLUSIVE` 從不折算進通過率。把自己的盲點算成成功的掃描,
|
|
191
|
-
正是這個技能反對的東西。
|
|
192
|
-
|
|
193
|
-
## 查一次要花多少
|
|
194
|
-
|
|
195
|
-
agent 要知道一個 Mosaic 節點型別或樣式鍵到底吃什麼,有三條路。同樣六個任務,用 tiktoken
|
|
196
|
-
算(`tools/benchmark_tokens.py`,可以自己跑):
|
|
197
|
-
|
|
198
|
-
| 任務 | 讀原始碼 | 整包表格載入 | `mo.py` 查詢 |
|
|
199
|
-
|---|---:|---:|---:|
|
|
200
|
-
| 放一個標題、一段文字、一顆帶連結的按鈕 | 10,005 | 259,539 | **961** |
|
|
201
|
-
| 設定 padding、邊框、圓角,含響應式 | 3,490 | 259,539 | **396** |
|
|
202
|
-
| 判斷 accordion 能不能用、怎麼嵌套 | 15,615 | 259,539 | **397** |
|
|
203
|
-
| 找出哪些 hover/focus 狀態真的會編譯 | 3,619 | 259,539 | **1,054** |
|
|
204
|
-
| 找出哪個 Mosaic 鍵驅動某條 CSS | 1,862 | 259,539 | **51** |
|
|
205
|
-
| commit 之前知道什麼不安全 | 63,172 | 259,539 | **288** |
|
|
206
|
-
|
|
207
|
-
**比讀原始碼省 71–99.5% 的 token,比整包載入省 99.6% 以上**——而且六題裡有四題原始碼根本
|
|
208
|
-
答不了:「有宣告」和「會編譯」是兩個問題,只有掃描問了第二個。表格總共 259,539 tokens;
|
|
209
|
-
永遠不要整包載入,`mo.py` 才是查詢。
|
|
210
|
-
|
|
211
|
-
### 動手前值得知道的結果
|
|
212
|
-
|
|
213
|
-
**屬於某個 `group` 的屬性單獨設定時無效。** 兩個方向都精確:78 個未分組屬性給出 58 COMPILED、
|
|
214
|
-
0 ABSENT;20 個分組屬性全部 0 COMPILED。所以 `borderLeftWidth`、`outlineColor`、`gridColumnStart`
|
|
215
|
-
是同一條規則的三個實例。用分組形狀——`border` 吃 `{width, style, color}`——或 `customDeclarations`。
|
|
216
|
-
|
|
217
|
-
**斷點覆寫可以「改」一個屬性,永遠不能「拿掉」一個。** 窄螢幕的 `customDeclarations` 只是不提邊框,
|
|
218
|
-
寬螢幕的邊框就繼續站在那裡。把 `border-left:0` 說出口。
|
|
219
|
-
|
|
220
|
-
**只有四個型別吃 `url`**:`button`、`menu-link`、`wysiwyg-link`、`dropdown-toggle`。放在 `text`
|
|
221
|
-
或 `image` 上會被接受、被存下、然後不產生任何錨點。改用 `menu-link` 包起來——它接受任意子節點,
|
|
222
|
-
一有 `url` 就變成真正的 `<a href>`。
|
|
223
|
-
|
|
224
|
-
**圖片的 attachment protocol 路徑是相對 uploads 目錄的。**
|
|
225
|
-
`wp-attachment://image/<id>/full/2026/09/pic.png` 能解析,還會帶出附件的寬高。給它完整的
|
|
226
|
-
`wp-content/uploads/...` 路徑——最直覺的猜法——Mosaic 會把 uploads 前綴再接一次,而且不報錯。
|
|
227
|
-
|
|
228
|
-
## Elementor → Mosaic
|
|
72
|
+
它會以 exit code 1 結束:這個 type 單獨放進去,提交會成功,但整個公開頁面會變成一行錯誤字串。`python tools/mo.py type accordion-content` 會告訴你它該放在哪裡。
|
|
229
73
|
|
|
230
|
-
|
|
231
|
-
wp post meta get 2360 _elementor_data > page.json
|
|
232
|
-
python tools/from_elementor.py --data page.json --out spec.json --report conv.csv \
|
|
233
|
-
--uploads-base https://site/wp-content/uploads --slug works --post 208
|
|
234
|
-
python tools/build_site.py --config c.json --site spec.json
|
|
235
|
-
python tools/verify_conversion.py --data page.json --url https://site/works/ --report conv.csv
|
|
236
|
-
```
|
|
74
|
+
## 觸發詞
|
|
237
75
|
|
|
238
|
-
|
|
239
|
-
button / html / icon-list / divider / image 佔了全部元素的 99.6%。長尾——loop grid、表單、倒數、
|
|
240
|
-
第三方 addon——是動態的,沒有節點可以變成;每一個都按名稱和原因列進報告、絕不默默丟掉,
|
|
241
|
-
`--strict` 則拒絕產出有損的 spec。
|
|
242
|
-
|
|
243
|
-
版面、字體、顏色、邊框、連結、圖片都會過去,三個斷點都帶(`_tablet`/`_mobile` → `_t`/`_m`)。
|
|
244
|
-
不會過去的:進場動畫(Mosaic 的互動綁定未解)、shape divider、漸層疊加。驗證器接著拿建好的
|
|
245
|
-
頁面對照來源——每個字串、圖片、連結、標題層級——它馬上就證明了自己的價值:抓到轉換器把
|
|
246
|
-
`url` 寫在不理它的節點上,漏了 21 個連結中的 19 個。
|
|
247
|
-
|
|
248
|
-
## 工具
|
|
249
|
-
|
|
250
|
-
| 工具 | 用途 |
|
|
251
|
-
|---|---|
|
|
252
|
-
| `mo.py` | 查詢量測過的表面——**正門** |
|
|
253
|
-
| `build_page.py` / `build_site.py` | 透過有守門的寫入路徑 commit 一份 spec;量到會壞的一律拒絕 |
|
|
254
|
-
| `from_elementor.py` / `verify_conversion.py` | Elementor → Mosaic,以及內容確實到達的證明 |
|
|
255
|
-
| `verify_browser.py` | 瀏覽器算出來的是不是樣式表承諾的,以及有沒有通過設計稽核 |
|
|
256
|
-
| `verify_rwd.py` | 每條 `_t`/`_m` 宣告有沒有進到送出的樣式表 |
|
|
257
|
-
| `verify_intro.py` / `verify_loop.py` | 會「結束」的載入動畫;會循環、不遮東西、能打開的永續動畫 |
|
|
258
|
-
| `theme_export.php` / `theme_import.php` | 整個主題以 JSON 資料列透過 WP-CLI 搬移,ID 不變 |
|
|
259
|
-
| `theme_zip.py` / `theme_zip_compare.php` / `theme_delete.php` | 在編輯器外驅動 Mosaic 自己的 ZIP 匯出匯入、副本對來源逐樹比對、以及拒絕刪 live 主題的乾淨刪除 |
|
|
260
|
-
| `list_fields.php` | 一篇文章的自訂欄位註冊了哪些 `@VAR` / `@LOOP` 名字,連值一起列出 |
|
|
261
|
-
| `verify_dialog.py` | 在瀏覽器裡實際操作 1.0.9 的 modal、觸發、run rules 與 memory |
|
|
262
|
-
| `verify_popovers.py` | 在瀏覽器裡實際操作 1.0.10 的 popover:位置、是否阻擋、closedby、翻面、串接 |
|
|
263
|
-
| `verify_slider.py` / `verify_navigation.py` | slider 真的會動嗎;選單每一項是不是真連結、每頁是不是都到得了 |
|
|
264
|
-
| `data_upgrade.py` | 外掛更新後,走 Mosaic 自己的 milestone 路由跑資料遷移——沒跑完之前編輯器 API 是不存在的 |
|
|
265
|
-
| `sweep_*.py` / `probe_*.py` | 那些表格是用這些儀器量出來的 |
|
|
266
|
-
| `bootstrap_probe_theme.php` / `mint_session.php` | 免授權的實驗主題,以及從 WP-CLI 鑄出 REST session |
|
|
267
|
-
|
|
268
|
-
## 工作範例
|
|
269
|
-
|
|
270
|
-
`sites/_moksa.py` 只透過資料表建出一個真實的工作室網站,隨套件出貨作為參考:1,286 個節點的
|
|
271
|
-
首頁,用具名 view timeline 做捲動追蹤的條款索引;一段一次印一塊版、把浮世繪印出來的入口動畫;
|
|
272
|
-
一塊在角落永遠印下去、點了會放大的版子;還有一個 WooCommerce My Account 頁,它的 UI 全部透過
|
|
273
|
-
一個跑 shortcode 的 `code` 節點進來。全程沒有自己寫任何 JavaScript。`data/` 裡每一張驗證表
|
|
274
|
-
都是對著它量出來的。
|
|
275
|
-
|
|
276
|
-
## 從哪裡開始
|
|
277
|
-
|
|
278
|
-
1. `references/data-model.md`——頁面實際住在哪裡。
|
|
279
|
-
2. `references/write-protocol.md`——checkout / check / commit。
|
|
280
|
-
3. `references/failure-modes.md`——Mosaic 怎麼失敗,量測版。**動手前先讀。**
|
|
281
|
-
4. `references/responsive.md`——狀態/斷點/屬性三軸。
|
|
282
|
-
5. `references/styling.md`——樣式值怎麼變成 CSS。
|
|
283
|
-
6. `references/design-system.md`——variant(element class)與設計 token。
|
|
284
|
-
|
|
285
|
-
## 發版
|
|
76
|
+
English: Mosaic Pro, Nextend, build a Mosaic page without the editor, Mosaic padding / hover / breakpoint, Mosaic popup, popover, modal, Mosaic interaction, move a Mosaic theme, Mosaic upgrade, Elementor to Mosaic.
|
|
286
77
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
78
|
+
中文:Mosaic、Nextend、不開編輯器做頁面、內距、外距、圓角、懸停、斷點、RWD、彈出視窗、浮動框、摺疊面板、頁籤、輪播、互動、動畫、搬佈景、Mosaic 升級、Elementor 轉 Mosaic。
|
|
79
|
+
|
|
80
|
+
## 會執行與連線的內容
|
|
81
|
+
|
|
82
|
+
- **不會自己執行任何東西。** 沒有 hook、沒有 MCP server、沒有背景程序。只有 Claude 依照 `SKILL.md` 提出指令、你同意之後才會執行。
|
|
83
|
+
- **只在本機、不連網**:`tools/mo.py` 讀 `data/` 裡的 CSV 並印出答案;`tools/test_mosaic.py`、`tools/check_numbers.py` 讀這個 repo。都不寫入、不連線。
|
|
84
|
+
- **透過 REST API 連你的 WordPress 網站**:`build_page.py`、`build_site.py`、`data_upgrade.py`、`theme_zip.py`,以及 `sweep_*.py`、`probe*.py`,會呼叫你設定的那一個網站的 Mosaic REST 路由,讀寫頁面、元件、範本和佈景。只連那個網站。
|
|
85
|
+
- **透過 WP-CLI 在你的網站上執行**:`tools/*.php` 用 `wp eval-file` 在伺服器上(通常是你自己的 SSH)跑在你的 WordPress 裡,讀寫該網站的 Mosaic 資料表和佈景資料。`theme_delete.php`、`prune_unbound.php` 會刪資料,沒加 `--apply` 時只做試跑。
|
|
86
|
+
- **讀你的公開頁面**:`tools/verify_*.py`、`audit_mobile.py` 用 Playwright(Chromium)或 `urllib` 開同一個網站的頁面,比對送出的結果和寫入的內容。
|
|
87
|
+
- **帳密**:網站網址、WordPress 登入 cookie 和對應的 `wp_rest` nonce,必須是你自己網站的管理員。`tools/mint_session.php` 在伺服器上印出這三個值。以 plugin 安裝時,Claude Code 會用 `userConfig` 詢問;cookie 和 nonce 標為敏感資料,存在系統的憑證儲存區。也可以用環境變數(`MOSAIC_SITE_URL`、`MOSAIC_REST_COOKIE`、`MOSAIC_REST_NONCE`),或用 `--config` 傳入你自己的 JSON 檔。**任何工具都不會在你的電腦上找帳密。**
|
|
88
|
+
- **第三方**:`sites/` 裡的示範範例會載入 Google Fonts,所以用它建出來的頁面,訪客的瀏覽器會向 Google 取字型。
|
|
89
|
+
- 安裝時不下載任何東西,也不會把資料傳給作者或任何人。
|
|
291
90
|
|
|
292
|
-
|
|
293
|
-
`files` 的每個 glob 都對到東西、每張驗證表的列數仍然等於 SKILL.md 和四份 README 引用的數字、
|
|
294
|
-
沒有未裁定的設計稽核發現、eval 套件在場,以及**直接檢查 tarball 本身**——npm 的 `files` 白名單
|
|
295
|
-
會蓋過 `.gitignore`,曾經把一個真實客戶的網站放進即將發布的套件裡。
|
|
91
|
+
## 驗證方式
|
|
296
92
|
|
|
297
|
-
|
|
298
|
-
|
|
93
|
+
- node type、node 屬性、樣式屬性、樣式狀態從外掛原始碼抽出(`tools/check_tables.py` 會重新抽取並比對),再逐一寫進正式網站,檢查實際送出的 HTML 和編譯後的 CSS。
|
|
94
|
+
- 示範頁面用 Chromium 重讀:733 條 RWD 宣告對照網站實際送出的樣式表,4,132 筆三種寬度的計算後樣式。細節見 [verification-record.md](references/verification-record.md)。
|
|
95
|
+
- 自我測試:`python tools/test_mosaic.py`,42 項離線測試(查詢、中文用語、建頁產出的結構與拒收規則、對外的建頁介面、本 repo 的數字與隱私)。
|
|
96
|
+
- evals:16 題 Mosaic 1.0.10 到 1.0.12 的行為題;有 skill 16/16,沒有 skill 0/16。結果見 [evals/RESULTS.md](evals/RESULTS.md)。
|
|
97
|
+
- `SKILL.md` 和這幾份 README 裡的數字,都由 `tools/check_numbers.py` 對照資料核對。
|
|
98
|
+
|
|
99
|
+
## 限制
|
|
100
|
+
|
|
101
|
+
- 實測到 Mosaic Pro 1.0.13。只存在於 1.0.13 編輯器裡的功能(新的樣式變數類型、List 的 class、pageLoad 延遲等)還沒實測,工具也不會寫。
|
|
102
|
+
- 用 headless 方式寫入格線子項位置的屬性不會有輸出;部分互動形狀還沒實測。
|
|
103
|
+
- 瀏覽器驗證器需要 Playwright 和一個可以寫入的網站,不在離線自我測試裡。
|
|
104
|
+
- 待補問題:[data/pending.csv](data/pending.csv)。完整說明(失敗模式、token 成本、Elementor 轉換器、示範範例):[docs/guide.md](docs/guide.md)(英文)。
|
|
105
|
+
|
|
106
|
+
## 目錄結構
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
SKILL.md Claude 載入的內容:資料出處、路由、任務、驗證
|
|
110
|
+
data/ 實測資料表(CSV)、中文用語、待補清單
|
|
111
|
+
references/ 主題說明:資料模型、樣式、彈出視窗、升級⋯
|
|
112
|
+
tools/ mo.py、建頁與驗證工具、WP-CLI 腳本、自我測試
|
|
113
|
+
sites/ 示範範例(可讀的 Python 模組)
|
|
114
|
+
evals/ 評分題目與結果
|
|
115
|
+
scripts/ 安裝程式與發版檢查
|
|
116
|
+
assets/ 各平台的安裝範本
|
|
117
|
+
docs/ 完整說明
|
|
118
|
+
.claude-plugin/ plugin 與 marketplace 設定
|
|
119
|
+
```
|
|
299
120
|
|
|
300
|
-
##
|
|
121
|
+
## 授權與作者
|
|
301
122
|
|
|
302
|
-
MIT
|
|
123
|
+
MIT License。作者 Moksa([moksaweb.com](https://moksaweb.com))。問題回報:[GitHub](https://github.com/Moksa1123/mosaic-headless/issues)。
|
package/SKILL.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "mosaic-headless"
|
|
3
3
|
description: |
|
|
4
|
-
Build and modify Mosaic Pro (Nextend) WordPress sites by writing the data model directly - no visual editor, no DOM. Query the real surface with `mo.py` (134 node types, 120 node properties, 101 style properties, 60 style states, 157 variants,
|
|
4
|
+
Build and modify Mosaic Pro (Nextend) WordPress sites by writing the data model directly - no visual editor, no DOM. Query the real surface with `mo.py` (134 node types, 120 node properties, 101 style properties, 60 style states, 157 variants, 76 dynamic variables, 16 interaction triggers, 115 REST routes) where every lookup leads with the measured verdict, not the declaration: each node type placed on a live site one at a time, each style and node property swept against compiled CSS and markup, the delivered pages re-read in Chromium at three viewports. Measured on Mosaic Pro 1.0.10: the popover (anchored or screen-placed, the flip state, afterClose-chained tours), the modal on the Popover API, OpenStreetMap, exit-intent and scroll-depth triggers, run rules and memory. Drives theme export/import and the 1.0.7 -> 1.0.10 data upgrades from outside wp-admin; re-extracted and re-verified on 1.0.11 and 1.0.12 (the buildable Select). 中文觸發:Mosaic、Nextend、不開編輯器做頁面、做一頁、整站、母版、範本、元件、變體、內距、外距、圓角、懸停、斷點、RWD、手機版、彈出視窗、浮動框、彈窗、摺疊面板、頁籤、輪播、表單、互動、動畫、深色模式、搬佈景、匯出匯入佈景、Mosaic 升級、Elementor 轉 Mosaic、自訂欄位。
|
|
5
5
|
license: "MIT"
|
|
6
6
|
user-invocable: true
|
|
7
7
|
metadata:
|
|
8
8
|
author: "moksa (https://moksaweb.com)"
|
|
9
|
-
version: "1.
|
|
9
|
+
version: "1.38.0"
|
|
10
10
|
homepage: "https://github.com/Moksa1123/mosaic-headless"
|
|
11
11
|
---
|
|
12
12
|
|
|
@@ -22,13 +22,13 @@ health, not plugin audits.
|
|
|
22
22
|
|
|
23
23
|
| | |
|
|
24
24
|
|---|---|
|
|
25
|
-
| Surface | Extracted from the Mosaic Pro plugin source
|
|
25
|
+
| Surface | Extracted from the Mosaic Pro plugin source, last re-extracted on **Mosaic Pro 1.0.13** (unlicensed: the licence gates the theme library, not the node factories). `tools/check_tables.py` re-extracts every source table and diffs it against `data/`. 1.0.13's editor-side features are not measured yet: [upgrading.md](references/upgrading.md) |
|
|
26
26
|
| Measured on | A live WordPress 7.1 + WooCommerce 11.1 install, upgraded in place from 1.0.7 to 1.0.12. Node sweep: 133 of 134 types on 1.0.11 / 1.0.12 (`document` excluded: its probe wrecks the master). Older rows say which version they ran on. Detail: [verification-record.md](references/verification-record.md) |
|
|
27
|
-
| Size | 134 node types, 120 node property names declared in 201 rows (one row per owning data class), 191 node-property probe rows covering 118 of those names (`ariaLive` and `positioning` not yet probed), 101 style properties, 60 style states, 157 variants,
|
|
27
|
+
| Size | 134 node types, 120 node property names declared in 201 rows (one row per owning data class), 191 node-property probe rows covering 118 of those names (`ariaLive` and `positioning` not yet probed), 101 style properties, 60 style states, 157 variants, 76 dynamic variables, 16 interaction triggers, 115 REST routes, 23 tables. Current counts: `python tools/mo.py stats` - do not quote numbers from memory |
|
|
28
28
|
| Provenance | Each table says where it came from: **source** (read out of the plugin code), **live** (captured from the running site), **swept / probed / driven** (written to a page and asserted on the delivered HTML, CSS or browser). Per-file list: [data-files.md](references/data-files.md) |
|
|
29
29
|
| Chinese terms | `data/terms-zh.csv`: every row has `source` + `trust` |
|
|
30
|
-
| Trust levels | `measured` (swept, probed, driven) > `documented` (plugin source, Mosaic's shipped zh_TW strings, Mosaic's docs) > `inferred` / `house-style` (
|
|
31
|
-
| Last checked | 2026-11-
|
|
30
|
+
| Trust levels | `measured` (swept, probed, driven) > `documented` (plugin source, Mosaic's shipped zh_TW strings, Mosaic's docs) > `inferred` / `house-style` (colloquial words, site conventions). Never present the last two as Mosaic's own |
|
|
31
|
+
| Last checked | 2026-11-17: offline self-test and SKILL.md number check pass; open gaps in `data/pending.csv` |
|
|
32
32
|
|
|
33
33
|
## Usage
|
|
34
34
|
|
|
@@ -11,21 +11,21 @@ ACF,wysiwyg,@VAR_RAW('post/meta_acf_wys'),Rich text,Rich text,PASS
|
|
|
11
11
|
ACF,select (return value),@VAR('post/meta_acf_select'),b,b,PASS
|
|
12
12
|
ACF,select (return value) __label,@VAR('post/meta_acf_select__label'),,,EMPTY
|
|
13
13
|
ACF,radio,@VAR('post/meta_acf_radio'),r2,r2,PASS
|
|
14
|
-
ACF,image (return array),@VAR('post/meta_acf_img'),https://
|
|
14
|
+
ACF,image (return array),@VAR('post/meta_acf_img'),https://example.com/wp-content/uploads/woocommerce-placeholder.webp,https://example.com/wp-content/uploads/woocommerce-placeholder.webp,PASS
|
|
15
15
|
ACF,image (return array) __id,@VAR('post/meta_acf_img__id'),5,5,PASS
|
|
16
|
-
ACF,image (return id),@VAR('post/meta_acf_img_id'),https://
|
|
16
|
+
ACF,image (return id),@VAR('post/meta_acf_img_id'),https://example.com/wp-content/uploads/2026/09/richmenu-a.png,https://example.com/wp-content/uploads/2026/09/richmenu-a.png,PASS
|
|
17
17
|
ACF,image (return id) __id,@VAR('post/meta_acf_img_id__id'),37,37,PASS
|
|
18
|
-
ACF,file (return url),@VAR('post/meta_acf_file'),https://
|
|
18
|
+
ACF,file (return url),@VAR('post/meta_acf_file'),https://example.com/wp-content/uploads/woocommerce-placeholder.webp,https://example.com/wp-content/uploads/woocommerce-placeholder.webp,PASS
|
|
19
19
|
ACF,link (return array),@VAR('post/meta_acf_link'),https://example.com/link,https://example.com/link,PASS
|
|
20
20
|
ACF,link __title,@VAR('post/meta_acf_link__title'),Link title,Link title,PASS
|
|
21
21
|
ACF,link __target,@VAR('post/meta_acf_link__target'),_blank,_blank,PASS
|
|
22
|
-
ACF,page_link,@VAR('post/meta_acf_pl'),https://
|
|
22
|
+
ACF,page_link,@VAR('post/meta_acf_pl'),https://example.com/sample-page/,https://example.com/sample-page/,PASS
|
|
23
23
|
ACF,post_object,@VAR('post/meta_acf_po'),6,6,PASS
|
|
24
24
|
ACF,post_object __label,@VAR('post/meta_acf_po__label'),Shop,Shop,PASS
|
|
25
|
-
ACF,post_object __url,@VAR('post/meta_acf_po__url'),https://
|
|
25
|
+
ACF,post_object __url,@VAR('post/meta_acf_po__url'),https://example.com/shop/,https://example.com/shop/,PASS
|
|
26
26
|
ACF,user,@VAR('post/meta_acf_user'),1,1,PASS
|
|
27
27
|
ACF,user __label,@VAR('post/meta_acf_user__label'),Cheng-Chun Chang,Cheng-Chun Chang,PASS
|
|
28
|
-
ACF,user __url,@VAR('post/meta_acf_user__url'),https://
|
|
28
|
+
ACF,user __url,@VAR('post/meta_acf_user__url'),https://example.com/author/moksa/,https://example.com/author/moksa/,PASS
|
|
29
29
|
ACF,oembed in a text node,@VAR_RAW('post/meta_acf_oembed'),,,EMPTY
|
|
30
30
|
Meta Box,text,@VAR('post/meta_mb_text'),MB plain text,MB plain text,PASS
|
|
31
31
|
Meta Box,number,@VAR('post/meta_mb_num'),17,17,PASS
|
|
@@ -36,23 +36,23 @@ Meta Box,date,@VAR('post/meta_mb_date'),2026-09-15,2026-09-15,PASS
|
|
|
36
36
|
Meta Box,color,@VAR('post/meta_mb_color'),#0a84ff,#0a84ff,PASS
|
|
37
37
|
Meta Box,url,@VAR('post/meta_mb_url'),https://example.com/mb,https://example.com/mb,PASS
|
|
38
38
|
Meta Box,wysiwyg,@VAR('post/meta_mb_wys'),MB rich,MB rich,PASS
|
|
39
|
-
Meta Box,single_image,@VAR('post/meta_mb_single'),https://
|
|
39
|
+
Meta Box,single_image,@VAR('post/meta_mb_single'),https://example.com/wp-content/uploads/woocommerce-placeholder.webp,https://example.com/wp-content/uploads/woocommerce-placeholder.webp,PASS
|
|
40
40
|
Meta Box,single_image __id,@VAR('post/meta_mb_single__id'),5,5,PASS
|
|
41
41
|
Meta Box,user,@VAR('post/meta_mb_user'),Cheng-Chun Chang,Cheng-Chun Chang,PASS
|
|
42
42
|
Meta Box,user __id,@VAR('post/meta_mb_user__id'),1,1,PASS
|
|
43
|
-
Meta Box,user __url,@VAR('post/meta_mb_user__url'),https://
|
|
43
|
+
Meta Box,user __url,@VAR('post/meta_mb_user__url'),https://example.com/author/moksa/,https://example.com/author/moksa/,PASS
|
|
44
44
|
Meta Box,oembed in a text node,@VAR_RAW('post/meta_mb_oembed'),,,EMPTY
|
|
45
45
|
Meta Box,oembed __url,@VAR('post/meta_mb_oembed__url'),https://www.youtube.com/watch?v=dQw4w9WgXcQ,https://www.youtube.com/watch?v=dQw4w9WgXcQ,PASS
|
|
46
|
-
ACF,"relationship, one row inline (index 1)","@LOOP('post/loopacf_rel', 1, 'value__url')",https://
|
|
46
|
+
ACF,"relationship, one row inline (index 1)","@LOOP('post/loopacf_rel', 1, 'value__url')",https://example.com/sample-page/,https://example.com/sample-page/,PASS
|
|
47
47
|
ACF,"relationship, every row inline (index 0)","@LOOP('post/loopacf_rel', 0, 'value__label')","Sample Page, Shop","Sample Page, Shop",PASS
|
|
48
48
|
ACF,"group, one row inline","@LOOP('post/loop-acf_group', 1, 'value_ga')",group text,group text,PASS
|
|
49
49
|
ACF,relationship loop row value (= ID),loop post/loopacf_rel -> @VAR('item/value'),2 | 6,2 | 6,PASS
|
|
50
50
|
ACF,relationship loop row __label,loop post/loopacf_rel -> @VAR('item/value__label'),Sample Page | Shop,Sample Page | Shop,PASS
|
|
51
|
-
ACF,relationship loop row __url,loop post/loopacf_rel -> @VAR('item/value__url'),https://
|
|
51
|
+
ACF,relationship loop row __url,loop post/loopacf_rel -> @VAR('item/value__url'),https://example.com/sample-page/ | https://example.com/shop/,https://example.com/sample-page/ | https://example.com/shop/,PASS
|
|
52
52
|
ACF,relationship loop row index,loop post/loopacf_rel -> @VAR('item/index'),1 | 2,1 | 2,PASS
|
|
53
53
|
ACF,checkbox loop row value,loop post/loopacf_check -> @VAR('item/value'),x | z,x | z,PASS
|
|
54
54
|
ACF,taxonomy loop row __label,loop post/loopacf_tax -> @VAR('item/value__label'),Uncategorized,Uncategorized,PASS
|
|
55
|
-
ACF,taxonomy loop row __url,loop post/loopacf_tax -> @VAR('item/value__url'),https://
|
|
55
|
+
ACF,taxonomy loop row __url,loop post/loopacf_tax -> @VAR('item/value__url'),https://example.com/category/uncategorized/,https://example.com/category/uncategorized/,PASS
|
|
56
56
|
ACF,group loop row sub-field,loop post/loop-acf_group -> @VAR('item/value_ga'),group text,group text,PASS
|
|
57
57
|
ACF,group loop row sub-field (number),loop post/loop-acf_group -> @VAR('item/value_gb'),7,7,PASS
|
|
58
58
|
Meta Box,image_advanced loop row __id,loop post/loopmb_img -> @VAR('item/value__id'),5 | 37,5 | 37,PASS
|