You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/v2/guide/class-and-style.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ order: 6
17
17
<divv-bind:class="{ active: isActive }"></div>
18
18
```
19
19
20
-
الصيغة بالأعلى تعني ان الفئة `active` سوف يتم تحديدها طبقاً لحقيقة القيمة [truthiness](https://developer.mozilla.org/en-US/docs/Glossary/Truthy) الموجودة في خاصية البينات`isActive`.
20
+
الصيغة بالأعلى تعني ان الفئة `active` سوف يتم تحديدها طبقاً لحقيقة القيمة [truthiness](https://developer.mozilla.org/en-US/docs/Glossary/Truthy) الموجودة في خاصية البيانات`isActive`.
21
21
22
22
يمكنك استخدام وتبديل العديد من الفئات عن طريق استخدام العديد من الحقول الاخرى. بالاضافة الى ذلك، الموجه `v-bind:class` يمكن ان يستخدم مع خاصية العنصر `class`. كما في المثال التالي:
هذا سوف قوم بمعالجة القيمة الاخيرة فقط في المصفوفة والتي يدعمها المستعرض. في هذا المثال، سوف يقوم بمعالجة `display: flex` للمستعرضات التي لا تدعم اصدار flexbox ذو البادئات
206
206
207
-
This will only render the last value in the array which the browser supports. In this example, it will render `display: flex`for browsers that support the unprefixed version of flexbox.
207
+
سيؤدي هذا فقط إلى عرض القيمة الأخيرة في المصفوفة التي يدعمها المتصفح. في هذا المثال ،سيتم عرض `display: flex`للمتصفحات التي تدعم الإصدار غير المثبت من flexbox.
Copy file name to clipboardExpand all lines: src/v2/guide/installation.md
+24-24Lines changed: 24 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ Vue أيضاً متوفرة على [unpkg](https://unpkg.com/vue@{{vue_version}}
61
61
62
62
## NPM ( مدير حزم Node.js )
63
63
64
-
NPM هي الأداة الموصى بإصتخدامها عند بناء تطبيقات كبيرة الحجم بإستخدام Vue. فهي تعمل جيداً مع أدوات التجميع مثل [Webpack](https://webpack.js.org/) و [Browserify](http://browserify.org/). Vue أيضاً توفر أدوات خاصة بالإصدار مثل [Single File Components](single-file-components.html).
64
+
NPM هي الأداة الموصى بإستخدامها عند بناء تطبيقات كبيرة الحجم بإستخدام Vue. فهي تعمل جيداً مع أدوات التجميع مثل [Webpack](https://webpack.js.org/) و [Browserify](http://browserify.org/). Vue أيضاً توفر أدوات خاصة بالإصدار مثل [Single File Components](single-file-components.html).
65
65
66
66
```bash
67
67
# latest stable
@@ -89,11 +89,11 @@ Vue توفر [أدوات سطر الأوامر الرسمية](https://github.co
89
89
90
90
### مصطلحات
91
91
92
-
-**الكامل**: الإصدارات التي تحتوي على كلِ من المترجم وبيئة العمل.
92
+
-**الكامل**: الإصدارات التي تحتوي على كلِ من المفسر وبيئة العمل.
93
93
94
-
-**المترجم**: الكود المسئول عن ترجمة قوالب الكلمات لدوال Javascript الخاصة الخاصة بالتصدير.
94
+
-**المفسر**: الكود المسئول عن ترجمة قوالب الكلمات لدوال Javascript الخاصة الخاصة بالتصدير.
95
95
96
-
-**Runtime**: code that is responsible for creating Vue instances, rendering and patching virtual DOM, etc. Basically everything minus the compiler.
96
+
-**وقت التشغيل**: الشيفرة المسؤولة عن إنشاء نماذج Vue, قراءة و تصحيح و نموذج كائن المستند الإفتراضي, الخ. ببساطة كل شيء ماعدا المفسر.
97
97
98
98
-**[UMD](https://github.com/umdjs/umd)**: UMD builds can be used directly in the browser via a `<script>` tag. The default file from jsDelivr CDN at [https://cdn.jsdelivr.net/npm/vue](https://cdn.jsdelivr.net/npm/vue) is the Runtime + Compiler UMD build (`vue.js`).
99
99
@@ -103,29 +103,29 @@ Vue توفر [أدوات سطر الأوامر الرسمية](https://github.co
103
103
104
104
- ESM for bundlers: intended for use with modern bundlers like [webpack 2](https://webpack.js.org) or [Rollup](https://rollupjs.org/). ESM format is designed to be statically analyzable so the bundlers can take advantage of that to perform "tree-shaking" and eliminate unused code from your final bundle. The default file for these bundlers (`pkg.module`) is the Runtime only ES Module build (`vue.runtime.esm.js`).
105
105
106
-
- ESM for browsers (2.6+ only): intended for direct imports in modern browsers via `<script type="module">`.
106
+
- ESM للمتصفحات (2.6 فقط و أعلى): معده للإدراجات المباشره في المتصفحات الحديثة عبر `<script type="module">`
107
107
108
-
### Runtime + Compiler vs. Runtime-only
108
+
### وقت التشغيل + المفسر vs. وقت التشغيل فقط
109
109
110
-
If you need to compile templates on the client (e.g. passing a string to the `template` option, or mounting to an element using its in-DOM HTML as the template), you will need the compiler and thus the full build:
110
+
إذا أحتجت ترجمة القوالب في جهة العميل، سوف تحتاج المفسر و البناء الكامل.
111
111
112
112
```js
113
-
//this requires the compiler
113
+
//هذا يتطلب المفسر
114
114
newVue({
115
115
template:'<div>{{ hi }}</div>'
116
116
})
117
117
118
-
//this does not
118
+
//هذا لا يتطلب المفسر
119
119
newVue({
120
120
render (h) {
121
121
returnh('div', this.hi)
122
122
}
123
123
})
124
124
```
125
125
126
-
When using`vue-loader`or`vueify`, templates inside `*.vue`files are pre-compiled into JavaScript at build time. You don't really need the compiler in the final bundle, and can therefore use the runtime-only build.
126
+
عند إستخدام`vue-loader`أو`vueify`, القوالب بداخل ملفات `*.vue`تكون مترجمة من قبل داخل JavaScript في وقت البناء. أنت لا تحتاج المفسر في الحزمة النهائية,و ,و بالتالي يمكنك إستخدام بناء وقت-التشغيل فقط.
127
127
128
-
Since the runtime-only builds are roughly 30% lighter-weight than their full-build counterparts, you should use it whenever you can. If you still wish to use the full build instead, you need to configure an alias in your bundler:
128
+
نظرًا لأن إصدارات وقت التشغيل فقط أقل مساحة بنسبة 30 ٪ تقريبًا من نظيراتها كاملة الإنشاء ، فيجب عليك استخدامها كلما استطعت. إذا كنت لا تزال ترغب في استخدام الإصدار الكامل بدلاً من ذلك ، فأنت بحاجة إلى تكوين اسم مستعار في الحزمة الخاصة بك:
129
129
130
130
#### Webpack
131
131
@@ -157,7 +157,7 @@ rollup({
157
157
158
158
#### Browserify
159
159
160
-
Add to your project's `package.json`:
160
+
أضف إلى ملف `package.json` الخاص بمشروعك :
161
161
162
162
```js
163
163
{
@@ -170,7 +170,7 @@ Add to your project's `package.json`:
170
170
171
171
#### Parcel
172
172
173
-
Add to your project's `package.json`:
173
+
أضف إلى ملف `package.json` الخاص بمشروعك :
174
174
175
175
```js
176
176
{
@@ -181,25 +181,25 @@ Add to your project's `package.json`:
181
181
}
182
182
```
183
183
184
-
### Development vs. Production Mode
184
+
### وضع التطوير / وضع الإنتاج
185
185
186
-
Development/production modes are hard-coded for the UMD builds: the un-minified files are for development, and the minified files are for production.
186
+
أوضاع التطوير/الإنتاج ثابتة في إنشاءات UMD: الملفات غير المصغرة للتطوير ، والملفات المصغرة للإنتاج.
187
187
188
-
CommonJS and ES Module builds are intended for bundlers, therefore we don't provide minified versions for them. You will be responsible for minifying the final bundle yourself.
188
+
وحدات CommonJS و ES Module مخصصة للحزم ، لذلك لا نقدم إصدارات مصغرة لها. ستكون مسؤولاً عن تصغير الحزمة النهائية بنفسك.
189
189
190
-
CommonJS and ES Module builds also preserve raw checks for`process.env.NODE_ENV`to determine the mode they should run in. You should use appropriate bundler configurations to replace these environment variables in order to control which mode Vue will run in. Replacing `process.env.NODE_ENV`with string literals also allows minifiers like UglifyJS to completely drop the development-only code blocks, reducing final file size.
190
+
تحافظ إصدارات CommonJS و ES Module أيضًا على عمليات التحقق الأولية لـ`process.env.NODE_ENV`لتحديد الوضع الذي يجب أن تعمل فيه. يجب استخدام حزم المفسر المناسبة لاستبدال متغيرات البيئة هذه للتحكم في الوضع الذي سيتم تشغيل Vue فيه. تسمح عملية process.env.NODE_ENV` التي تحتوي على نصوص حرفية أيضًا للمُصغرات مثل UglifyJS بإسقاط كتل التعليمات البرمجية للتطوير فقط ، مما يقلل من حجم الملف النهائي.
191
191
192
192
#### Webpack
193
193
194
-
In Webpack 4+, you can use the`mode` option:
194
+
في حزمة الويب 4+, يمكنك إستخدام إختيار ال`mode`:
195
195
196
196
```js
197
197
module.exports= {
198
198
mode:'production'
199
199
}
200
200
```
201
201
202
-
But in Webpack 3 and earlier, you'll need to use[DefinePlugin](https://webpack.js.org/plugins/define-plugin/):
202
+
و لكن في "Webpack 3" أو أقل, ستحتاج إلى استخدام[DefinePlugin](https://webpack.js.org/plugins/define-plugin/):
Also see[Production Deployment Tips](deployment.html).
245
+
إطلع أيضاً على[Production Deployment Tips](deployment.html).
246
246
247
247
### CSP environments
248
248
249
-
Some environments, such as Google Chrome Apps, enforce Content Security Policy (CSP), which prohibits the use of `new Function()` for evaluating expressions. The full build depends on this feature to compile templates, so is unusable in these environments.
249
+
تفرض بعض البيئات ، مثل Google Chrome تطبيقات ، سياسة أمان المحتوى (CSP) ، والتي تحظر استخدام `` الوظيفة الجديدة () '' لتقييم التعبيرات. يعتمد البناء الكامل على هذه الميزة لتجميع القوالب ، لذا فهو غير قابل للاستخدام في هذه البيئات.
250
250
251
-
On the other hand, the runtime-only build is fully CSP-compliant. When using the runtime-only build with [Webpack + vue-loader](https://github.com/vuejs-templates/webpack-simple)or[Browserify + vueify](https://github.com/vuejs-templates/browserify-simple), your templates will be precompiled into `render` functions which work perfectly in CSP environments.
251
+
من ناحية أخرى ، فإن بناء وقت التشغيل فقط متوافق تمامًا مع CSP. عند استخدام إصدار وقت التشغيل فقط مع [Webpack + vue-loader](https://github.com/vuejs-templates/webpack-simple) أو[Browserify + vueify](https://github.com/vuejs-templates / browserify-simple) ، سيتم تجميع القوالب الخاصة بك مسبقًا في وظائف "تقديم" التي تعمل بشكل مثالي في بيئات CSP.
0 commit comments