Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(language-service): process references data at runtime to reduce bundle size #5054

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
935 changes: 17 additions & 918 deletions packages/language-service/data/language-blocks/cs.json

Large diffs are not rendered by default.

935 changes: 17 additions & 918 deletions packages/language-service/data/language-blocks/en.json

Large diffs are not rendered by default.

935 changes: 17 additions & 918 deletions packages/language-service/data/language-blocks/fr.json

Large diffs are not rendered by default.

935 changes: 17 additions & 918 deletions packages/language-service/data/language-blocks/it.json

Large diffs are not rendered by default.

935 changes: 17 additions & 918 deletions packages/language-service/data/language-blocks/ja.json

Large diffs are not rendered by default.

935 changes: 17 additions & 918 deletions packages/language-service/data/language-blocks/ko.json

Large diffs are not rendered by default.

935 changes: 17 additions & 918 deletions packages/language-service/data/language-blocks/pt.json

Large diffs are not rendered by default.

935 changes: 17 additions & 918 deletions packages/language-service/data/language-blocks/ru.json

Large diffs are not rendered by default.

935 changes: 17 additions & 918 deletions packages/language-service/data/language-blocks/zh-cn.json

Large diffs are not rendered by default.

935 changes: 17 additions & 918 deletions packages/language-service/data/language-blocks/zh-hk.json

Large diffs are not rendered by default.

54 changes: 54 additions & 0 deletions packages/language-service/data/locale.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
[
{
"name": "en",
"url": "https://vuejs.org/"
},
{
"name": "zh-cn",
"url": "https://cn.vuejs.org/"
},
{
"name": "zh-hk",
"url": "https://zh-hk.vuejs.org/"
},
{
"name": "ja",
"url": "https://ja.vuejs.org/"
},
{
"name": "ua",
"url": "https://ua.vuejs.org/"
},
{
"name": "fr",
"url": "https://fr.vuejs.org/"
},
{
"name": "ko",
"url": "https://ko.vuejs.org/"
},
{
"name": "pt",
"url": "https://pt.vuejs.org/"
},
{
"name": "bn",
"url": "https://bn.vuejs.org/"
},
{
"name": "it",
"url": "https://it.vuejs.org/"
},
{
"name": "cs",
"url": "https://cs.vuejs.org/"
},
{
"name": "ru",
"url": "https://ru.vuejs.org/"
},
{
"name": "fa",
"url": "https://fa.vuejs.org/"
}
]
167 changes: 4 additions & 163 deletions packages/language-service/data/model-modifiers/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,184 +5,25 @@
"name": "lazy",
"description": {
"kind": "markdown",
"value": "Ve výchozím nastavení `v-model` synchronizuje vstup s daty po každé události `input` (s&nbsp;výjimkou IME kompozice, jak je [uvedeno výše](#vmodel-ime-tip)). Místo toho můžete přidat modifikátor`lazy` k synchronizaci po události `change`:\n\n```html\n<!-- synchronizuje se po „change“ místo „input“ -->\n<input v-model.lazy=\"msg\" />\n```"
"value": "Ve výchozím nastavení `v-model` synchronizuje vstup s daty po každé události `input` (s&nbsp;výjimkou IME kompozice, jak je [uvedeno výše](#vmodel-ime-tip)). Místo toho můžete přidat modifikátor `lazy` k synchronizaci po události `change`:\n\n```html\n<!-- synchronizuje se po „change“ místo „input“ -->\n<input v-model.lazy=\"msg\" />\n```"
},
"references": [
{
"name": "en",
"url": "https://vuejs.org/guide/essentials/forms.html#lazy"
},
{
"name": "zh-cn",
"url": "https://cn.vuejs.org/guide/essentials/forms.html#lazy"
},
{
"name": "zh-hk",
"url": "https://zh-hk.vuejs.org/guide/essentials/forms.html#lazy"
},
{
"name": "ja",
"url": "https://ja.vuejs.org/guide/essentials/forms.html#lazy"
},
{
"name": "ua",
"url": "https://ua.vuejs.org/guide/essentials/forms.html#lazy"
},
{
"name": "fr",
"url": "https://fr.vuejs.org/guide/essentials/forms.html#lazy"
},
{
"name": "ko",
"url": "https://ko.vuejs.org/guide/essentials/forms.html#lazy"
},
{
"name": "pt",
"url": "https://pt.vuejs.org/guide/essentials/forms.html#lazy"
},
{
"name": "bn",
"url": "https://bn.vuejs.org/guide/essentials/forms.html#lazy"
},
{
"name": "it",
"url": "https://it.vuejs.org/guide/essentials/forms.html#lazy"
},
{
"name": "cs",
"url": "https://cs.vuejs.org/guide/essentials/forms.html#lazy"
},
{
"name": "ru",
"url": "https://ru.vuejs.org/guide/essentials/forms.html#lazy"
},
{
"name": "fa",
"url": "https://fa.vuejs.org/guide/essentials/forms.html#lazy"
}
]
"reference": "guide/essentials/forms.html#lazy"
},
{
"name": "number",
"description": {
"kind": "markdown",
"value": "Pokud chcete, aby byl uživatelský vstup automaticky přetypován jako číslo, můžete do vašich vstupů spravovaných přes `v-model` přidat modifikátor `number`:\n\n```html\n<input v-model.number=\"age\" />\n```\n\nPokud hodnotu nelze přetypovat pomocí `parseFloat()`, bude místo toho použita původní hodnota (string). V případě, že je vstup prázdný (například poté, co uživatel pole vyčistí), bude vrácen prázdný string. Toto chování se liší od [vlastnosti DOM `valueAsNumber`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement#valueasnumber). \n\nModifikátor `number` se aplikuje automaticky, pokud má vstupní pole atribut `type=\"number\"`."
},
"references": [
{
"name": "en",
"url": "https://vuejs.org/guide/essentials/forms.html#number"
},
{
"name": "zh-cn",
"url": "https://cn.vuejs.org/guide/essentials/forms.html#number"
},
{
"name": "zh-hk",
"url": "https://zh-hk.vuejs.org/guide/essentials/forms.html#number"
},
{
"name": "ja",
"url": "https://ja.vuejs.org/guide/essentials/forms.html#number"
},
{
"name": "ua",
"url": "https://ua.vuejs.org/guide/essentials/forms.html#number"
},
{
"name": "fr",
"url": "https://fr.vuejs.org/guide/essentials/forms.html#number"
},
{
"name": "ko",
"url": "https://ko.vuejs.org/guide/essentials/forms.html#number"
},
{
"name": "pt",
"url": "https://pt.vuejs.org/guide/essentials/forms.html#number"
},
{
"name": "bn",
"url": "https://bn.vuejs.org/guide/essentials/forms.html#number"
},
{
"name": "it",
"url": "https://it.vuejs.org/guide/essentials/forms.html#number"
},
{
"name": "cs",
"url": "https://cs.vuejs.org/guide/essentials/forms.html#number"
},
{
"name": "ru",
"url": "https://ru.vuejs.org/guide/essentials/forms.html#number"
},
{
"name": "fa",
"url": "https://fa.vuejs.org/guide/essentials/forms.html#number"
}
]
"reference": "guide/essentials/forms.html#number"
},
{
"name": "trim",
"description": {
"kind": "markdown",
"value": "Pokud chcete z uživatelského vstupu automaticky odstranit bílé znaky (whitespace), můžete do vašich vstupů spravovaných přes `v-model` přidat modifikátor `trim`:\n\n```html\n<input v-model.trim=\"msg\" />\n```"
},
"references": [
{
"name": "en",
"url": "https://vuejs.org/guide/essentials/forms.html#trim"
},
{
"name": "zh-cn",
"url": "https://cn.vuejs.org/guide/essentials/forms.html#trim"
},
{
"name": "zh-hk",
"url": "https://zh-hk.vuejs.org/guide/essentials/forms.html#trim"
},
{
"name": "ja",
"url": "https://ja.vuejs.org/guide/essentials/forms.html#trim"
},
{
"name": "ua",
"url": "https://ua.vuejs.org/guide/essentials/forms.html#trim"
},
{
"name": "fr",
"url": "https://fr.vuejs.org/guide/essentials/forms.html#trim"
},
{
"name": "ko",
"url": "https://ko.vuejs.org/guide/essentials/forms.html#trim"
},
{
"name": "pt",
"url": "https://pt.vuejs.org/guide/essentials/forms.html#trim"
},
{
"name": "bn",
"url": "https://bn.vuejs.org/guide/essentials/forms.html#trim"
},
{
"name": "it",
"url": "https://it.vuejs.org/guide/essentials/forms.html#trim"
},
{
"name": "cs",
"url": "https://cs.vuejs.org/guide/essentials/forms.html#trim"
},
{
"name": "ru",
"url": "https://ru.vuejs.org/guide/essentials/forms.html#trim"
},
{
"name": "fa",
"url": "https://fa.vuejs.org/guide/essentials/forms.html#trim"
}
]
"reference": "guide/essentials/forms.html#trim"
}
]
}
Loading