Skip to content

Commit 9782eab

Browse files
committed
feat(language-service): crawl html data of data-allow-mismatch
1 parent 6056724 commit 9782eab

File tree

7 files changed

+423
-30
lines changed

7 files changed

+423
-30
lines changed

packages/language-service/data/template/cs.json

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,6 +1600,67 @@
16001600
"url": "https://fa.vuejs.org/api/built-in-special-attributes.html#is"
16011601
}
16021602
]
1603+
},
1604+
{
1605+
"name": "data-allow-mismatch",
1606+
"description": {
1607+
"kind": "markdown",
1608+
"value": "Speciální atribut, který lze použít k potlačení varování o [nesouladu hydratace](https://cs.vuejs.org/guide/scaling-up/ssr.html#hydration-mismatch).\n\n- **Příklad**\n\n ```html\n <div data-allow-mismatch=\"text\">{{ data.toLocaleString() }}</div>\n ```\n \n Hodnota může omezit povolený nesoulad na určitý typ. Povolené hodnoty jsou:\n\n - `text`\n - `children` (povoluje nesoulad pouze na přímých potomcích)\n - `class`\n - `style`\n - `attribute`\n\n Pokud není zadána žádná hodnota, jsou povoleny všechny typy nesouladů."
1609+
},
1610+
"references": [
1611+
{
1612+
"name": "en",
1613+
"url": "https://vuejs.org/api/ssr.html#data-allow-mismatch"
1614+
},
1615+
{
1616+
"name": "zh-cn",
1617+
"url": "https://cn.vuejs.org/api/ssr.html#data-allow-mismatch"
1618+
},
1619+
{
1620+
"name": "zh-hk",
1621+
"url": "https://zh-hk.vuejs.org/api/ssr.html#data-allow-mismatch"
1622+
},
1623+
{
1624+
"name": "ja",
1625+
"url": "https://ja.vuejs.org/api/ssr.html#data-allow-mismatch"
1626+
},
1627+
{
1628+
"name": "ua",
1629+
"url": "https://ua.vuejs.org/api/ssr.html#data-allow-mismatch"
1630+
},
1631+
{
1632+
"name": "fr",
1633+
"url": "https://fr.vuejs.org/api/ssr.html#data-allow-mismatch"
1634+
},
1635+
{
1636+
"name": "ko",
1637+
"url": "https://ko.vuejs.org/api/ssr.html#data-allow-mismatch"
1638+
},
1639+
{
1640+
"name": "pt",
1641+
"url": "https://pt.vuejs.org/api/ssr.html#data-allow-mismatch"
1642+
},
1643+
{
1644+
"name": "bn",
1645+
"url": "https://bn.vuejs.org/api/ssr.html#data-allow-mismatch"
1646+
},
1647+
{
1648+
"name": "it",
1649+
"url": "https://it.vuejs.org/api/ssr.html#data-allow-mismatch"
1650+
},
1651+
{
1652+
"name": "cs",
1653+
"url": "https://cs.vuejs.org/api/ssr.html#data-allow-mismatch"
1654+
},
1655+
{
1656+
"name": "ru",
1657+
"url": "https://ru.vuejs.org/api/ssr.html#data-allow-mismatch"
1658+
},
1659+
{
1660+
"name": "fa",
1661+
"url": "https://fa.vuejs.org/api/ssr.html#data-allow-mismatch"
1662+
}
1663+
]
16031664
}
16041665
]
16051666
}

packages/language-service/data/template/en.json

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,6 +1600,67 @@
16001600
"url": "https://fa.vuejs.org/api/built-in-special-attributes.html#is"
16011601
}
16021602
]
1603+
},
1604+
{
1605+
"name": "data-allow-mismatch",
1606+
"description": {
1607+
"kind": "markdown",
1608+
"value": "A special attribute that can be used to suppress [hydration mismatch](https://vuejs.org/guide/scaling-up/ssr.html#hydration-mismatch) warnings.\n\n- **Example**\n\n ```html\n <div data-allow-mismatch=\"text\">{{ data.toLocaleString() }}</div>\n ```\n\n The value can limit the allowed mismatch to a specific type. Allowed values are:\n\n - `text`\n - `children` (only allows mismatch for direct children)\n - `class`\n - `style`\n - `attribute`\n\n If no value is provided, all types of mismatches will be allowed.\n"
1609+
},
1610+
"references": [
1611+
{
1612+
"name": "en",
1613+
"url": "https://vuejs.org/api/ssr.html#data-allow-mismatch"
1614+
},
1615+
{
1616+
"name": "zh-cn",
1617+
"url": "https://cn.vuejs.org/api/ssr.html#data-allow-mismatch"
1618+
},
1619+
{
1620+
"name": "zh-hk",
1621+
"url": "https://zh-hk.vuejs.org/api/ssr.html#data-allow-mismatch"
1622+
},
1623+
{
1624+
"name": "ja",
1625+
"url": "https://ja.vuejs.org/api/ssr.html#data-allow-mismatch"
1626+
},
1627+
{
1628+
"name": "ua",
1629+
"url": "https://ua.vuejs.org/api/ssr.html#data-allow-mismatch"
1630+
},
1631+
{
1632+
"name": "fr",
1633+
"url": "https://fr.vuejs.org/api/ssr.html#data-allow-mismatch"
1634+
},
1635+
{
1636+
"name": "ko",
1637+
"url": "https://ko.vuejs.org/api/ssr.html#data-allow-mismatch"
1638+
},
1639+
{
1640+
"name": "pt",
1641+
"url": "https://pt.vuejs.org/api/ssr.html#data-allow-mismatch"
1642+
},
1643+
{
1644+
"name": "bn",
1645+
"url": "https://bn.vuejs.org/api/ssr.html#data-allow-mismatch"
1646+
},
1647+
{
1648+
"name": "it",
1649+
"url": "https://it.vuejs.org/api/ssr.html#data-allow-mismatch"
1650+
},
1651+
{
1652+
"name": "cs",
1653+
"url": "https://cs.vuejs.org/api/ssr.html#data-allow-mismatch"
1654+
},
1655+
{
1656+
"name": "ru",
1657+
"url": "https://ru.vuejs.org/api/ssr.html#data-allow-mismatch"
1658+
},
1659+
{
1660+
"name": "fa",
1661+
"url": "https://fa.vuejs.org/api/ssr.html#data-allow-mismatch"
1662+
}
1663+
]
16031664
}
16041665
]
16051666
}

packages/language-service/data/template/fr.json

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,6 +1600,67 @@
16001600
"url": "https://fa.vuejs.org/api/built-in-special-attributes.html#is"
16011601
}
16021602
]
1603+
},
1604+
{
1605+
"name": "data-allow-mismatch",
1606+
"description": {
1607+
"kind": "markdown",
1608+
"value": "A special attribute that can be used to suppress [hydration mismatch](https://fr.vuejs.org/guide/scaling-up/ssr.html#hydration-mismatch) warnings.\n\n- **Example**\n\n ```html\n <div data-allow-mismatch=\"text\">{{ data.toLocaleString() }}</div>\n ```\n\n The value can limit the allowed mismatch to a specific type. Allowed values are:\n\n - `text`\n - `children` (only allows mismatch for direct children)\n - `class`\n - `style`\n - `attribute`\n\n If no value is provided, all types of mismatches will be allowed.\n"
1609+
},
1610+
"references": [
1611+
{
1612+
"name": "en",
1613+
"url": "https://vuejs.org/api/ssr.html#data-allow-mismatch"
1614+
},
1615+
{
1616+
"name": "zh-cn",
1617+
"url": "https://cn.vuejs.org/api/ssr.html#data-allow-mismatch"
1618+
},
1619+
{
1620+
"name": "zh-hk",
1621+
"url": "https://zh-hk.vuejs.org/api/ssr.html#data-allow-mismatch"
1622+
},
1623+
{
1624+
"name": "ja",
1625+
"url": "https://ja.vuejs.org/api/ssr.html#data-allow-mismatch"
1626+
},
1627+
{
1628+
"name": "ua",
1629+
"url": "https://ua.vuejs.org/api/ssr.html#data-allow-mismatch"
1630+
},
1631+
{
1632+
"name": "fr",
1633+
"url": "https://fr.vuejs.org/api/ssr.html#data-allow-mismatch"
1634+
},
1635+
{
1636+
"name": "ko",
1637+
"url": "https://ko.vuejs.org/api/ssr.html#data-allow-mismatch"
1638+
},
1639+
{
1640+
"name": "pt",
1641+
"url": "https://pt.vuejs.org/api/ssr.html#data-allow-mismatch"
1642+
},
1643+
{
1644+
"name": "bn",
1645+
"url": "https://bn.vuejs.org/api/ssr.html#data-allow-mismatch"
1646+
},
1647+
{
1648+
"name": "it",
1649+
"url": "https://it.vuejs.org/api/ssr.html#data-allow-mismatch"
1650+
},
1651+
{
1652+
"name": "cs",
1653+
"url": "https://cs.vuejs.org/api/ssr.html#data-allow-mismatch"
1654+
},
1655+
{
1656+
"name": "ru",
1657+
"url": "https://ru.vuejs.org/api/ssr.html#data-allow-mismatch"
1658+
},
1659+
{
1660+
"name": "fa",
1661+
"url": "https://fa.vuejs.org/api/ssr.html#data-allow-mismatch"
1662+
}
1663+
]
16031664
}
16041665
]
16051666
}

packages/language-service/data/template/ja.json

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,6 +1600,67 @@
16001600
"url": "https://fa.vuejs.org/api/built-in-special-attributes.html#is"
16011601
}
16021602
]
1603+
},
1604+
{
1605+
"name": "data-allow-mismatch",
1606+
"description": {
1607+
"kind": "markdown",
1608+
"value": "[ハイドレーション・ミスマッチ](https://ja.vuejs.org/guide/scaling-up/ssr.html#hydration-mismatch) の警告を抑制するために使用できる特別な属性です。\n\n- **例**\n\n ```html\n <div data-allow-mismatch=\"text\">{{ data.toLocaleString() }}</div>\n ```\n\n この値で特定のタイプのミスマッチを許可することができます。指定できる値は以下の通りです:\n\n - `text`\n - `children`(直下の子要素に対してのみミスマッチを許可します)\n - `class`\n - `style`\n - `attribute`\n\n 値を指定しない場合、すべてのタイプのミスマッチが許可されます。\n"
1609+
},
1610+
"references": [
1611+
{
1612+
"name": "en",
1613+
"url": "https://vuejs.org/api/ssr.html#data-allow-mismatch"
1614+
},
1615+
{
1616+
"name": "zh-cn",
1617+
"url": "https://cn.vuejs.org/api/ssr.html#data-allow-mismatch"
1618+
},
1619+
{
1620+
"name": "zh-hk",
1621+
"url": "https://zh-hk.vuejs.org/api/ssr.html#data-allow-mismatch"
1622+
},
1623+
{
1624+
"name": "ja",
1625+
"url": "https://ja.vuejs.org/api/ssr.html#data-allow-mismatch"
1626+
},
1627+
{
1628+
"name": "ua",
1629+
"url": "https://ua.vuejs.org/api/ssr.html#data-allow-mismatch"
1630+
},
1631+
{
1632+
"name": "fr",
1633+
"url": "https://fr.vuejs.org/api/ssr.html#data-allow-mismatch"
1634+
},
1635+
{
1636+
"name": "ko",
1637+
"url": "https://ko.vuejs.org/api/ssr.html#data-allow-mismatch"
1638+
},
1639+
{
1640+
"name": "pt",
1641+
"url": "https://pt.vuejs.org/api/ssr.html#data-allow-mismatch"
1642+
},
1643+
{
1644+
"name": "bn",
1645+
"url": "https://bn.vuejs.org/api/ssr.html#data-allow-mismatch"
1646+
},
1647+
{
1648+
"name": "it",
1649+
"url": "https://it.vuejs.org/api/ssr.html#data-allow-mismatch"
1650+
},
1651+
{
1652+
"name": "cs",
1653+
"url": "https://cs.vuejs.org/api/ssr.html#data-allow-mismatch"
1654+
},
1655+
{
1656+
"name": "ru",
1657+
"url": "https://ru.vuejs.org/api/ssr.html#data-allow-mismatch"
1658+
},
1659+
{
1660+
"name": "fa",
1661+
"url": "https://fa.vuejs.org/api/ssr.html#data-allow-mismatch"
1662+
}
1663+
]
16031664
}
16041665
]
16051666
}

0 commit comments

Comments
 (0)