forked from vuejs/v2.vuejs.org
-
Notifications
You must be signed in to change notification settings - Fork 11
[DONE] EXAMPLES #21
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
Merged
Merged
[DONE] EXAMPLES #21
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
e497a32
Update file examples commits
Aissaoui-Ahmed 870893a
Update file examples elastic-header
Aissaoui-Ahmed bf6e41b
Update file examples firebase
Aissaoui-Ahmed 3f2f89d
Update file examples grid-component
Aissaoui-Ahmed ff56fac
Update file examples hackernews
Aissaoui-Ahmed 30af83d
Update file examples index
Aissaoui-Ahmed c50e84a
Update file examples modal
Aissaoui-Ahmed a25ca34
Update file examples select2
Aissaoui-Ahmed 375192c
Update file examples themes
Aissaoui-Ahmed 17c0ee6
Update file examples todomvc
Aissaoui-Ahmed f5f8587
Update file examples tree-view
Aissaoui-Ahmed 854a1fa
Update src/v2/examples/tree-view.md
Aissaoui-Ahmed 533ded0
Apply suggestions from code review
Aissaoui-Ahmed d0bd311
Update src/v2/examples/firebase.md
Aissaoui-Ahmed cae3070
Update src/v2/examples/deepstream.md
Aissaoui-Ahmed 6e91ce0
Some suggests
Aissaoui-Ahmed f2fa896
Update src/v2/examples/firebase.md
Aissaoui-Ahmed 4119774
Update src/v2/examples/firebase.md
Aissaoui-Ahmed File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| --- | ||
| title: GitHub Commits | ||
| title: مساهمات GitHub | ||
| type: examples | ||
| order: 1 | ||
| --- | ||
|
|
||
| > This example fetches latest Vue.js commits data from GitHub's API and displays them as a list. You can switch between the master and dev branches. | ||
| > هذا المثال يقوم بجلب أحدث بيانات مساهمات Vue.js من GitHub [API](https://github.com/softvenue/i18n/blob/master/i18n.json#L53) وعرضهم في قائمة. يمكنك التنقل بين فروع master و dev. | ||
|
|
||
| <iframe width="100%" height="500" src="https://jsfiddle.net/yyx990803/c5g8xnar/embedded/result,html,js,css" allowfullscreen="allowfullscreen" frameborder="0"></iframe> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| --- | ||
| title: Realtime with deepstreamHub | ||
| title: الوقت الحقيقي بواسطة deepstreamHub | ||
| type: examples | ||
| order: 9 | ||
| --- | ||
|
|
||
| > This example uses [deepstreamHub](https://deepstreamhub.com/) to synchronize realtime data, send events and make remote procedure calls between clients (you can try opening it in multiple browser windows). | ||
| > في هذا المثال نستعمل [deepstreamHub](https://deepstreamhub.com/) لمزامنة البيانات في الوقت الحقيقي، إرسال الأحداث وعمل نداءات عن بعد بين العملاء (يمكنك محاولة فتحه في نوافذ متصفح متعددة). | ||
|
|
||
| <iframe width="100%" height="500" src="https://jsfiddle.net/yyx990803/ff0sp9hw/embedded/result,html,js,css" allowfullscreen="allowfullscreen" frameborder="0"></iframe> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| --- | ||
| title: Elastic Header | ||
| title: الترويس المرن | ||
| type: examples | ||
| order: 7 | ||
| --- | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| --- | ||
| title: Firebase + Validation | ||
| title: Firebase + التحقق | ||
| type: examples | ||
| order: 10 | ||
| --- | ||
|
|
||
| > This example uses [Firebase](https://firebase.google.com/) as the data persistence backend and syncs between clients in real time (you can try opening it in multiple browser tabs). In addition, it performs instant validation using computed properties and triggers CSS transitions when adding/removing items. | ||
| > في هذا المثال نستخدم [Firebase](https://firebase.google.com/) مداوم للبيانات في الخلفية ومزامنة بين العملاء في الوقت الحقيقي (يمكنك محاولة فتحه في علامات تبويب متصفح متعددة). بالإضافة إلى ذلك، فإنه يقوم بالتحقق من البيانات باستعمال الخاصيات المحسوبة وتشغيل إنتقالات CSS عند إضافة/حذف العناصر. | ||
|
|
||
| <iframe width="100%" height="500" src="https://jsfiddle.net/chrisvfritz/pyLbpzzx/embedded/result,html,js,css" allowfullscreen="allowfullscreen" frameborder="0"></iframe> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| --- | ||
| title: Grid Component | ||
| title: شبكة المكون | ||
| type: examples | ||
| order: 3 | ||
| --- | ||
|
|
||
| > This is an example of creating a reusable grid component and using it with external data. | ||
| > هذا مثال لإنشاء شبكة مكون قابلة لإعادة الإستخدام وإستخدامها مع البيانات الخارجية. | ||
|
|
||
| <iframe width="100%" height="500" src="https://jsfiddle.net/Tertia/vbyon64p/6/embedded/result,html,js,css" allowfullscreen="allowfullscreen" frameborder="0"></iframe> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,10 +1,10 @@ | ||||||
| --- | ||||||
| title: HackerNews Clone | ||||||
| title: نسخة من HackerNews | ||||||
| type: examples | ||||||
| order: 12 | ||||||
| --- | ||||||
|
|
||||||
| > This is a HackerNews clone built upon HN's official Firebase API, Vue 2.0 + Vue Router + Vuex, with server-side rendering. | ||||||
| > هذا مثال على نسخة من HackerNews مبني على API الرسمي الخاص بـHackerNews مع Vue 2.0، Vue Router + Vuex، مع تصيير من جهة الخادم. | ||||||
|
|
||||||
| {% raw %} | ||||||
| <div style="max-width: 600px;"> | ||||||
|
|
@@ -14,22 +14,22 @@ order: 12 | |||||
| </div> | ||||||
| {% endraw %} | ||||||
|
|
||||||
| > [Live Demo](https://vue-hn.herokuapp.com/) | ||||||
| > Note: the demo may need some spin up time if nobody has accessed it for a certain period. | ||||||
| > [عرض توضيحي حي](https://vue-hn.herokuapp.com/) | ||||||
| > ملاحظة: قد يحتاج العرض التوضيحي لبعض الوقت في الدوران إذا لم يصل إليه أحد لفترة معينة. | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| > | ||||||
| > [[Source](https://github.com/vuejs/vue-hackernews-2.0)] | ||||||
| > [[المصدر](https://github.com/vuejs/vue-hackernews-2.0)] | ||||||
|
|
||||||
| ## Features | ||||||
| ## ميزات | ||||||
|
|
||||||
| - Server Side Rendering | ||||||
| - Vue + Vue Router + Vuex working together | ||||||
| - Server-side data pre-fetching | ||||||
| - Client-side state & DOM hydration | ||||||
| - Single-file Vue Components | ||||||
| - Hot-reload in development | ||||||
| - CSS extraction for production | ||||||
| - Real-time List Updates with FLIP Animation | ||||||
| - تصيير من جهة الخادم | ||||||
Aissaoui-Ahmed marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
| - Vue + Vue Router + Vuex للعمل معا | ||||||
| - بيانات جهة الخادم قبل جلبها | ||||||
| - حالة جهة المستخدم & إماهة DOM | ||||||
| - مكون Vue للملف الوحيد | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Aissaoui-Ahmed marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
| - Hot-reload قيد التطوير | ||||||
| - استخلاص CSS للانتاج | ||||||
| - الوقت الحقيقي لتحديث قائمة مع تأثير القلب | ||||||
|
|
||||||
| ## Architecture Overview | ||||||
| ## نظرة عامة عن هندسة | ||||||
Aissaoui-Ahmed marked this conversation as resolved.
Show resolved
Hide resolved
Aissaoui-Ahmed marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
|
|
||||||
| <img width="973" alt="Hackernew clone architecture overview" src="../../images/hn-architecture.png"> | ||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| --- | ||
| title: Markdown Editor | ||
| title: محرر Markdown | ||
| type: examples | ||
| order: 0 | ||
| --- | ||
|
|
||
| > Dead simple Markdown editor. | ||
| > مثال بسيط عن محرر Markdown. | ||
|
|
||
| <iframe width="100%" height="500" src="https://jsfiddle.net/chrisvfritz/0dzvcf4d/embedded/result,html,js,css" allowfullscreen="allowfullscreen" frameborder="0"></iframe> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| --- | ||
| title: Modal Component | ||
| title: نموذج عن مكون | ||
Aissaoui-Ahmed marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| type: examples | ||
| order: 6 | ||
| --- | ||
|
|
||
| > Features used: component, prop passing, content insertion, transitions. | ||
| > الميزات المستخدمة: مكون، إرسال خصائص، إدراج محتوى، التحولات. | ||
|
|
||
| <iframe width="100%" height="500" src="https://jsfiddle.net/yyx990803/mwLbw11k/embedded/result,html,js,css" allowfullscreen="allowfullscreen" frameborder="0"></iframe> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| --- | ||
| title: Wrapper Component | ||
| title: المكون المغلف | ||
| type: examples | ||
| order: 8 | ||
| --- | ||
|
|
||
| > In this example we are integrating a 3rd party jQuery plugin (select2) by wrapping it inside a custom component. | ||
| > في هذا المثال سندرج إضافة خارجية jQuery (select2) عن طريق تغليفها داخل مكون مخصص. | ||
|
|
||
| <iframe width="100%" height="500" src="https://jsfiddle.net/chrisvfritz/d131Lebj/embedded/result,html,js,css" allowfullscreen="allowfullscreen" frameborder="0"></iframe> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| --- | ||
| title: SVG Graph | ||
| title: الرسم البياني باستخدام SVG | ||
| type: examples | ||
| order: 5 | ||
| --- | ||
|
|
||
| > This example showcases a combination of custom component, computed property, two-way binding and SVG support. | ||
| > هذا المثال يعرض حالات لمكون مخصص، خاصية المحسوبة، طريقتي الربط و ودعم SVG. | ||
Aissaoui-Ahmed marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| <iframe width="100%" height="500" src="https://jsfiddle.net/yyx990803/mhrckqgq/embedded/result,html,js,css" allowfullscreen="allowfullscreen" frameborder="0"></iframe> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,11 @@ | ||
| --- | ||
| title: TodoMVC | ||
| title: TodoMVC (عمل:نموذج-عرض-مراقب) | ||
| type: examples | ||
| order: 11 | ||
| --- | ||
|
|
||
| > This is a fully spec-compliant TodoMVC implementation in under 120 effective lines of JavaScript (excluding comments and blank lines). | ||
| > هذا شامل لتوافقية مخصصة لعمل (نموذج-عرض-مراقب) تحت 120 سطر فعال من JavaScript (باستثناء التعليقات وخطوط فارغة). | ||
|
|
||
| <p class="tip">Note that if your web browser is configured to block 3rd-party data/cookies, the example below will not work, as the `localStorage` data will fail to be saved from JSFiddle. You'll have to click on `Edit in JSFiddle` to see the live result.</p> | ||
| <p class="tip">ملاحظة: هذا إذا كان متصفحك مخصص لحظر البيانات/كوكي الخارجية، المثال أدناه لن يعمل، لأن بيانات تخزين المحلية `localStorage` ستفشل في حفظ JSFiddle. يجب عليك النقر فوق `Edit in JSFiddle` لرؤية النتيجة المباشرة.</p> | ||
|
|
||
| <iframe width="100%" height="500" src="https://jsfiddle.net/yyx990803/4dr2fLb7/embedded/result,html,js,css" allowfullscreen="allowfullscreen" frameborder="0"></iframe> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| --- | ||
| title: Tree View | ||
| title: شجرة الإظهار | ||
| type: examples | ||
| order: 4 | ||
| --- | ||
|
|
||
| > Example of a simple tree view implementation showcasing recursive usage of components. | ||
| > مثال على طريقة عرض الشجرة البسيطة التي تعرض الاستخدام التراجعي للمكونات. | ||
|
|
||
| <iframe width="100%" height="500" src="https://jsfiddle.net/chrisvfritz/pnqzspoe/embedded/result,html,js,css" allowfullscreen="allowfullscreen" frameborder="0"></iframe> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.