Skip to content

Commit 031c08a

Browse files
fix some broken pages
1 parent c041ca7 commit 031c08a

File tree

3 files changed

+0
-29
lines changed

3 files changed

+0
-29
lines changed

src/guide/quick-start.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,6 @@ import { VTCodeGroup, VTCodeGroupTab } from '@vue/theme'
154154
</VTCodeGroupTab>
155155
</VTCodeGroup>
156156

157-
</VTCodeGroupTab>
158-
</VTCodeGroup>
159-
160157
بعد تنفيذ هاته الأوامر ستحصل على مشروعك الأول في Vue، ما ستلاحظه هو أن المكونات المولدة مكتوبة باستخدام [الواجهة التركيبية](/guide/introduction#composition-api) و `<script setup>`، بدلاً من [واجهة الخيارات](/guide/introduction#options-api). إليك بعض الإرشادات الإضافية :
161158

162159
- محرر النصوص الموصى به هو [Visual Studio Code](https://code.visualstudio.com/) + [إضافة Volar ](https://marketplace.visualstudio.com/items?itemName=Vue.volar). أما إذا كنت تستخدم محررات أخرى، فاطلع على [قسم دعم المحررات](/guide/scaling-up/tooling#ide-support).

src/guide/scaling-up/testing.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -280,20 +280,6 @@ describe('increment', () => {
280280

281281
#### الاستظهار في الوضع غير الرسومي {#visibility-in-headless-mode}
282282

283-
عند تشغيل الاختبارات الشاملة في الدورات المستمرة للدمج والتسليم، تشغل في المتصفحات بدون واجهة رسومية (أي، لا يُفتح متصفح مرئي للمستخدم لمشاهدته). وهي ميزة هامة لإطارات الاختبارات الشاملة الحديثة هي القدرة على رؤية لقطات و / أو مقاطع فيديو للتطبيق أثناء الاختبار، مما يوفر بعض الإطلاع على سبب حدوث الأخطاء. تاريخيًا، كان من الصعب الحفاظ على عمليات الدمج هذه.
284-
285-
### التوصية {#recommendation-2}
286-
287-
- [cypress](https://www.cypress.io/)
288-
289-
  إجمالا، نعتقد أن Cypress يوفر أفضل حل للاختبارات الشاملة مع ميزات مثل واجهة رسومية ثرية بالمعلومات، وممتازة في التصحيح، والتأكيدات المدمجة والمحاكيات، والقدرة على التحمل، والتوازي، واللقطات. كما ذكرنا أعلاه، فإنه يوفر أيضًا دعمًا ل[اختبار المكونات](https://docs.cypress.io/guides/component-testing/introduction). ومع ذلك، فإنه يدعم فقط المتصفحات المستندة على Chromium و Firefox.
290-
291-
### خيارات أخرى {#other-options-2}
292-
293-
- [Playwright](https://playwright.dev/) هو أيضًا حل ممتاز للاختبارات الشاملة مع نطاق أوسع من دعم المتصفحات (بشكل رئيسي WebKit). انظر [لماذا Playwright](https://playwright.dev/docs/why-playwright) لمزيد من التفاصيل.
294-
295-
- [Nightwatch](https://nightwatchjs.org/) هو حل للاختبارات الشاملة مبني على [Selenium WebDriver](https://www.npmjs.com/package/selenium-webdriver). وهذا يعطيه نطاقًا أوسع في دعم المتصفحات.
296-
297283
When end-to-end (E2E) tests are run in continuous integration/deployment pipelines, they are often run in headless browsers (i.e., no visible browser is opened for the user to watch). A critical feature of modern E2E testing frameworks is the ability to see snapshots and/or videos of the application during testing, providing some insight into why errors are happening. Historically, it was tedious to maintain these integrations.
298284

299285
### Recommendation {#recommendation-2}

src/guide/typescript/composition-api.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,6 @@ const props = defineProps<Props>()
6262

6363
#### Syntax Limitations {#syntax-limitations}
6464

65-
```vue
66-
<script setup lang="ts">
67-
import type { Props } from './foo'
68-
69-
const props = defineProps<Props>()
70-
</script>
71-
```
72-
73-
#### محدوديات الصيغة {#syntax-limitations}
74-
7565
في النسخة 3.2 وأقل، كان الوسيط النوعي لـ `()defineProps` محدودًا بالنوع الحرفي أو مرجع إلى واجهة محلية.
7666

7767
حُل هذا القيد في الإصدار 3.3. تدعم أحدث إصدارات Vue الإشارة إلى الأنواع المستوردة ومجموعة محدودة من الأنواع المعقدة في موضع وسيط النوع. ومع ذلك، لأن تحويل النوع إلى زمن التشغيل لا يزال يعتمد على AST، فإن بعض الأنواع المعقدة التي تتطلب تحليل النوع الفعلي ، على سبيل المثال الأنواع الشرطية، لا تُدعم. يمكنك استخدام الأنواع الشرطية لنوع خاصية واحدة ، ولكن ليس كائن الخاصيات بأكمله.
@@ -418,8 +408,6 @@ To get the right DOM interface you can check pages like [MDN](https://developer.
418408

419409
## تحديد نوع مراجع القالب للمكون {#typing-component-template-refs}
420410

421-
## Typing Component Template Refs {#typing-component-template-refs}
422-
423411
With Vue 3.5 and `@vue/language-tools` 2.1 (powering both the IDE language service and `vue-tsc`), the type of refs created by `useTemplateRef()` in SFCs can be **automatically inferred** for static refs based on what element or component the matching `ref` attribute is used on.
424412

425413
In cases where auto-inference is not possible (e.g. non-SFC usage or dynamic components), you can still cast the template ref to an explicit type via the generic argument.

0 commit comments

Comments
 (0)