From 2a04f8ae1b95836432a7e37879a0112a97cdce33 Mon Sep 17 00:00:00 2001 From: rigor789 Date: Sat, 23 Jun 2018 17:09:39 +0200 Subject: [PATCH 1/8] set correct current version --- build/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/index.js b/build/index.js index 40f0dec4..7e9e20b9 100644 --- a/build/index.js +++ b/build/index.js @@ -123,8 +123,8 @@ Metalsmith(cwd) { name: 'v1.3.1', url: '//v1.3.1.nativescript-vue.org' }, ], currentVersion: { - name: 'latest', - branch: 'master' + name: 'v1.3.1', + branch: 'v1.3.1' } // different for each branch })) .use(order()) From b0a514616c5124cd3b8b20ea9ced0c2d26c9d6c7 Mon Sep 17 00:00:00 2001 From: rigor789 Date: Sat, 23 Jun 2018 17:46:00 +0200 Subject: [PATCH 2/8] fix url --- build/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/index.js b/build/index.js index 7e9e20b9..ff5ea70b 100644 --- a/build/index.js +++ b/build/index.js @@ -120,7 +120,7 @@ Metalsmith(cwd) .use(versions({ versions: [ { name: 'latest', url: '//nativescript-vue.org' }, - { name: 'v1.3.1', url: '//v1.3.1.nativescript-vue.org' }, + { name: 'v1.3.1', url: '//v1-3-1.nativescript-vue.org' }, ], currentVersion: { name: 'v1.3.1', From 9797a886f1b127b97094596a9c5af17c5686596b Mon Sep 17 00:00:00 2001 From: rigor789 Date: Sat, 23 Jun 2018 20:08:39 +0200 Subject: [PATCH 3/8] update sitemap configuration --- build/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/index.js b/build/index.js index ff5ea70b..812f3fea 100644 --- a/build/index.js +++ b/build/index.js @@ -212,7 +212,7 @@ Metalsmith(cwd) done(); }) .use(sitemap({ - hostname: 'https://nativescript-vue.org', + hostname: 'https://v1-3-1.nativescript-vue.org', omitIndex: true, })) // build the site From cfa1a839958c8451e4b6d5347a90c2a9388d9f9d Mon Sep 17 00:00:00 2001 From: rigor789 Date: Tue, 3 Jul 2018 16:10:08 +0200 Subject: [PATCH 4/8] Update facet filters --- src/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 23d42a97..5cc89f0f 100644 --- a/src/main.js +++ b/src/main.js @@ -18,12 +18,13 @@ document.addEventListener('DOMContentLoaded', () => { mounted() { const selector = document.querySelector('.docSearch-input') const lang = document.documentElement.lang || 'en' + const [version] = window.location.hostname.match(/v\d-\d-\d/) || ['master'] docsearch({ apiKey: '31f842779e5b33726ec73f8f973b2202', indexName: 'nativescript-vue', inputSelector: selector, - algoliaOptions: {facetFilters: [`lang:${lang}`]}, + algoliaOptions: {facetFilters: [`lang:${lang}`, `version:${version}`]}, debug: false }) }, From 51de49557844b73de78c5ee043961375f0f95d3d Mon Sep 17 00:00:00 2001 From: Igor Randjelovic Date: Wed, 4 Jul 2018 15:54:12 +0200 Subject: [PATCH 5/8] Update Crowdin configuration file --- crowdin.yml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 crowdin.yml diff --git a/crowdin.yml b/crowdin.yml new file mode 100644 index 00000000..3f93cf21 --- /dev/null +++ b/crowdin.yml @@ -0,0 +1,3 @@ +files: + - source: /content/docs/en/**/*.md + translation: /content/docs/%two_letters_code%/**/%original_file_name% From 1f355692f1e2ba1bc1098f2bc8ddc1d468a8d4f6 Mon Sep 17 00:00:00 2001 From: Igor Randjelovic Date: Mon, 10 Sep 2018 09:34:36 +0200 Subject: [PATCH 6/8] chore: snapshot v1.3.1 docs (#181) --- build/index.js | 3 +- build/plugins/order.js | 1 - .../en/elements/components/date-picker.md | 2 +- .../docs/en/elements/components/list-view.md | 2 +- content/docs/en/elements/dialogs/action.md | 2 +- .../en/elements/layouts/absolute-layout.md | 35 +- .../docs/en/elements/layouts/dock-layout.md | 52 +- .../en/elements/layouts/flexbox-layout.md | 63 +- .../docs/en/elements/layouts/grid-layout.md | 22 +- .../docs/en/elements/layouts/stack-layout.md | 31 +- .../docs/en/elements/layouts/wrap-layout.md | 29 +- .../getting-started/2-playground-tutorial.md | 664 +- .../docs/es/elements/action-bar/action-bar.md | 50 + .../es/elements/action-bar/action-item.md | 56 + .../elements/action-bar/navigation-button.md | 30 + .../elements/components/activity-indicator.md | 33 + content/docs/es/elements/components/button.md | 36 + .../es/elements/components/date-picker.md | 46 + .../docs/es/elements/components/html-view.md | 29 + content/docs/es/elements/components/image.md | 51 + content/docs/es/elements/components/label.md | 46 + .../es/elements/components/list-picker.md | 41 + .../docs/es/elements/components/list-view.md | 86 + .../docs/es/elements/components/progress.md | 36 + .../es/elements/components/scroll-view.md | 42 + .../docs/es/elements/components/search-bar.md | 44 + .../es/elements/components/segmented-bar.md | 54 + content/docs/es/elements/components/slider.md | 42 + content/docs/es/elements/components/switch.md | 41 + .../docs/es/elements/components/tab-view.md | 59 + .../docs/es/elements/components/text-field.md | 52 + .../docs/es/elements/components/text-view.md | 66 + .../es/elements/components/time-picker.md | 48 + .../docs/es/elements/components/web-view.md | 41 + content/docs/es/elements/dialogs/action.md | 24 + content/docs/es/elements/dialogs/alert.md | 36 + content/docs/es/elements/dialogs/confirm.md | 37 + content/docs/es/elements/dialogs/login.md | 39 + content/docs/es/elements/dialogs/prompt.md | 72 + .../es/elements/layouts/absolute-layout.md | 59 + .../docs/es/elements/layouts/dock-layout.md | 86 + .../es/elements/layouts/flexbox-layout.md | 115 + .../docs/es/elements/layouts/grid-layout.md | 96 + .../docs/es/elements/layouts/stack-layout.md | 82 + .../docs/es/elements/layouts/wrap-layout.md | 50 + .../docs/es/getting-started/1-quick-start.md | 34 + .../getting-started/2-playground-tutorial.md | 702 ++ .../docs/es/getting-started/3-installation.md | 46 + .../docs/es/getting-started/4-templates.md | 69 + .../getting-started/5-nativescript-plugins.md | 46 + .../docs/es/getting-started/6-vue-plugins.md | 109 + content/docs/es/introduction.md | 47 + content/docs/es/routing/manual-routing.md | 256 + content/docs/es/routing/vue-router.md | 113 + content/docs/es/utilities/v-template.md | 48 + content/docs/es/utilities/v-view.md | 53 + content/index.ejs | 31 +- content/index_es.ejs | 88 + content/index_ko.ejs | 28 + content/index_pt-BR.ejs | 28 + content/index_ru.ejs | 28 + layouts/docs.ejs | 10 +- package-lock.json | 7908 +++++++++++++++++ static/main.js | 10 +- .../playground-drag-and-drop.gif | Bin 525060 -> 214538 bytes static/styles.css | 170 +- tailwind.js | 1 + 67 files changed, 11944 insertions(+), 512 deletions(-) create mode 100644 content/docs/es/elements/action-bar/action-bar.md create mode 100644 content/docs/es/elements/action-bar/action-item.md create mode 100644 content/docs/es/elements/action-bar/navigation-button.md create mode 100644 content/docs/es/elements/components/activity-indicator.md create mode 100644 content/docs/es/elements/components/button.md create mode 100644 content/docs/es/elements/components/date-picker.md create mode 100644 content/docs/es/elements/components/html-view.md create mode 100644 content/docs/es/elements/components/image.md create mode 100644 content/docs/es/elements/components/label.md create mode 100644 content/docs/es/elements/components/list-picker.md create mode 100644 content/docs/es/elements/components/list-view.md create mode 100644 content/docs/es/elements/components/progress.md create mode 100644 content/docs/es/elements/components/scroll-view.md create mode 100644 content/docs/es/elements/components/search-bar.md create mode 100644 content/docs/es/elements/components/segmented-bar.md create mode 100644 content/docs/es/elements/components/slider.md create mode 100644 content/docs/es/elements/components/switch.md create mode 100644 content/docs/es/elements/components/tab-view.md create mode 100644 content/docs/es/elements/components/text-field.md create mode 100644 content/docs/es/elements/components/text-view.md create mode 100644 content/docs/es/elements/components/time-picker.md create mode 100644 content/docs/es/elements/components/web-view.md create mode 100644 content/docs/es/elements/dialogs/action.md create mode 100644 content/docs/es/elements/dialogs/alert.md create mode 100644 content/docs/es/elements/dialogs/confirm.md create mode 100644 content/docs/es/elements/dialogs/login.md create mode 100644 content/docs/es/elements/dialogs/prompt.md create mode 100644 content/docs/es/elements/layouts/absolute-layout.md create mode 100644 content/docs/es/elements/layouts/dock-layout.md create mode 100644 content/docs/es/elements/layouts/flexbox-layout.md create mode 100644 content/docs/es/elements/layouts/grid-layout.md create mode 100644 content/docs/es/elements/layouts/stack-layout.md create mode 100644 content/docs/es/elements/layouts/wrap-layout.md create mode 100644 content/docs/es/getting-started/1-quick-start.md create mode 100644 content/docs/es/getting-started/2-playground-tutorial.md create mode 100644 content/docs/es/getting-started/3-installation.md create mode 100644 content/docs/es/getting-started/4-templates.md create mode 100644 content/docs/es/getting-started/5-nativescript-plugins.md create mode 100644 content/docs/es/getting-started/6-vue-plugins.md create mode 100644 content/docs/es/introduction.md create mode 100644 content/docs/es/routing/manual-routing.md create mode 100644 content/docs/es/routing/vue-router.md create mode 100644 content/docs/es/utilities/v-template.md create mode 100644 content/docs/es/utilities/v-view.md create mode 100644 content/index_es.ejs create mode 100644 package-lock.json diff --git a/build/index.js b/build/index.js index 812f3fea..f07764dc 100644 --- a/build/index.js +++ b/build/index.js @@ -40,6 +40,7 @@ Metalsmith(cwd) moment, localeMap: { 'en': 'English', + 'es': 'Español', 'ko': '한국어', 'pt-BR': 'Português do Brasil', 'ru': 'Русский' @@ -115,7 +116,7 @@ Metalsmith(cwd) }) .use(locales({ defaultLocale: 'en', - locales: ['en', 'ko', 'pt-BR', 'ru'] + locales: ['en', 'es', 'ko', 'pt-BR', 'ru'] })) .use(versions({ versions: [ diff --git a/build/plugins/order.js b/build/plugins/order.js index c497b00b..1c9a0273 100644 --- a/build/plugins/order.js +++ b/build/plugins/order.js @@ -13,7 +13,6 @@ function plugin() { if (res) { const data = files[file]; data.order = res[1]; - data.slug = data.slug.replace(res[0], ''); // rename file to not include the order diff --git a/content/docs/en/elements/components/date-picker.md b/content/docs/en/elements/components/date-picker.md index 36aae1aa..1cbb2f35 100644 --- a/content/docs/en/elements/components/date-picker.md +++ b/content/docs/en/elements/components/date-picker.md @@ -11,7 +11,7 @@ contributors: [MisterBrownRSA, rigor789, ikoevska] --- ```html - + ``` `` provides two-way data binding using `v-model`. diff --git a/content/docs/en/elements/components/list-view.md b/content/docs/en/elements/components/list-view.md index 0ad5d3b2..7931ad6f 100644 --- a/content/docs/en/elements/components/list-view.md +++ b/content/docs/en/elements/components/list-view.md @@ -9,7 +9,7 @@ contributors: [MisterBrownRSA, rigor789, eddyverbruggen, ikoevska] ```html - + diff --git a/content/docs/en/elements/dialogs/action.md b/content/docs/en/elements/dialogs/action.md index 005cc988..9c78b99b 100644 --- a/content/docs/en/elements/dialogs/action.md +++ b/content/docs/en/elements/dialogs/action.md @@ -1,6 +1,6 @@ --- title: ActionDialog -apiRef: https://docs.nativescript.org/api-reference/modules/_ui_dialogs_#action +apiRef: https://docs.nativescript.org/api-reference/modules/_ui_dialogs_#action contributors: [MisterBrownRSA, rigor789, ikoevska] --- diff --git a/content/docs/en/elements/layouts/absolute-layout.md b/content/docs/en/elements/layouts/absolute-layout.md index 941998f2..d2f679ad 100644 --- a/content/docs/en/elements/layouts/absolute-layout.md +++ b/content/docs/en/elements/layouts/absolute-layout.md @@ -1,14 +1,23 @@ --- title: AbsoluteLayout apiRef: https://docs.nativescript.org/api-reference/modules/_ui_layouts_absolute_layout_ -contributors: [rigor789] +docRef: https://docs.nativescript.org/ui/layouts/layout-containers#absolutelayout +contributors: [rigor789, ikoevska] --- -The AbsoluteLayout container is the simplest layout container in NativeScript. It uses absolute top-left coordinates to position its children. The AbsoluteLayout will not enforce any layout constraints on its children and will not resize them at runtime when its size changes. +The `` container is the simplest layout container in NativeScript. -### Samples +`` has the following behavior: -#### A grid-like layout +* Uses a pair of absolute left/top coordinates to position its children. +* Doesn't enforce any layout constraints on its children. +* Doesn't resize its children at runtime when its size changes. + +## Examples + +### A grid-like layout + +The following example creates a simple grid. For more information about creating grid layouts, see [GridLayout](/en/docs/elements/layouts/grid-layout). ```html @@ -20,7 +29,9 @@ The AbsoluteLayout container is the simplest layout container in NativeScript. I ``` -#### Overlapping elements +### Overlapping elements + +The following example creates a group of overlapping items. ```html @@ -30,17 +41,15 @@ The AbsoluteLayout container is the simplest layout container in NativeScript. I ``` - ## Props -AbsoluteLayout has no props. +None. -## Additional Children Props +## Additional children props -When an element is a direct child of the AbsoluteLayout, the following -props get a meaning: +When an element is a direct child of ``, you can work with the following additional properties. -| name | type | description | +| Name | Type | Description | |------|------|-------------| -| `top` | `Number` | A value representing the distance from the top of the parent AbsoluteLayout -| `left` | `Number` | A value representing the distance from the left of the parent AbsoluteLayout +| `top` | `Number` | Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent. +| `left` | `Number` | Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent. diff --git a/content/docs/en/elements/layouts/dock-layout.md b/content/docs/en/elements/layouts/dock-layout.md index 07f6c943..e73c1935 100644 --- a/content/docs/en/elements/layouts/dock-layout.md +++ b/content/docs/en/elements/layouts/dock-layout.md @@ -1,14 +1,22 @@ --- title: DockLayout apiRef: https://docs.nativescript.org/api-reference/modules/_ui_layouts_dock_layout_ -contributors: [rigor789] +contributors: [rigor789, ikoevska] --- -DockLayout is a layout that provides a docking mechanism for child elements to the `left`, `right`, `top`, `bottom` or center of the layout. To define the docking side of a child element, use its `dock` property. To dock a child element to the center of the DockLayout, it must be the **last child** of the DockLayout and the `stretchLastChild` property of the DockLayout must be set to `true`. +`` is a layout container that lets you dock child elements to the sides or the center of the layout. -### Samples +`` has the following behavior: -#### Dock to every side without stretching last child +* Uses the `dock` property to dock its children to the `left`, `right`, `top`, `bottom` or center of the layout.
To dock a child element to the center, it must be the **last child** of the container and you must set the `stretchLastChild` property of the parent to `true`. +* Enforces layout constraints to its children. +* Resizes its children at runtime when its size changes. + +## Examples + +### Dock to every side without stretching the last child + +The following example creates a frame-like layout consisting of 4 elements, position at the 4 edges of the screen. ```html @@ -20,7 +28,9 @@ DockLayout is a layout that provides a docking mechanism for child elements to t ``` -#### Dock to every side with stretching last child +### Dock to every side and stretch the last child + +The following example shows how `stretchLastChild` affects the positioning of child elements in a `DockLayout` container. The last child (`bottom`) is stretched to take up all the remaining space after positioning the first three elements. ```html @@ -32,8 +42,25 @@ DockLayout is a layout that provides a docking mechanism for child elements to t ``` -#### Multiple children on the same side +### Dock to every side and the center + +The following example creates a `` of 5 elements. The first four wrap the center element in a frame. + +```html + + +``` + + +### Dock multiple children to the same side +The following example creates a single line of 4 elements that stretch across the entire height and width of the screen. + ```html