From 611eaea70d184ca1eb302b2afab3a204bd1c795a Mon Sep 17 00:00:00 2001 From: John Leider Date: Sat, 12 Aug 2017 12:16:02 -0400 Subject: [PATCH] massive docs update! --- components/ComponentParameters.vue | 7 ++ components/ComponentView.vue | 11 +- components/MainNavigation.vue | 5 +- examples/resize/1.vue | 27 +++++ examples/scroll/1.vue | 20 ++++ examples/scroll/2.vue | 39 ++++++++ examples/tables/9.vue | 156 +++++++++++++++++++++++++++++ examples/toolbar/14.vue | 31 ++++++ examples/touch/1.vue | 30 ++++++ pages/BadgesView.vue | 4 +- pages/BottomNavigationView.vue | 19 ---- pages/DatatablesView.vue | 21 +--- pages/GridView.vue | 2 +- pages/HomeView.vue | 3 - pages/MenusView.vue | 19 ---- pages/ParallaxView.vue | 19 ---- pages/PickersView.vue | 19 ---- pages/ResizeView.vue | 33 ++++++ pages/SSRView.vue | 23 ----- pages/ScrollView.vue | 44 ++++++++ pages/SelectView.vue | 11 ++ pages/SelectionControlsView.vue | 11 ++ pages/TabsView.vue | 6 ++ pages/TextFieldsView.vue | 24 +---- pages/ThemeView.vue | 23 ----- pages/ToolbarsView.vue | 38 +++---- pages/TooltipsView.vue | 19 ---- pages/TouchView.vue | 37 +++++++ pages/WhyView.vue | 138 +++++++++++++------------ router/index.js | 3 + router/meta.json | 18 ++++ 31 files changed, 586 insertions(+), 274 deletions(-) create mode 100644 examples/resize/1.vue create mode 100644 examples/scroll/1.vue create mode 100644 examples/scroll/2.vue create mode 100644 examples/tables/9.vue create mode 100644 examples/toolbar/14.vue create mode 100644 examples/touch/1.vue create mode 100644 pages/ResizeView.vue create mode 100644 pages/ScrollView.vue create mode 100644 pages/TouchView.vue diff --git a/components/ComponentParameters.vue b/components/ComponentParameters.vue index 2b4f9de1..6443d863 100755 --- a/components/ComponentParameters.vue +++ b/components/ComponentParameters.vue @@ -40,6 +40,7 @@ default: this.makeSlot(), theme: this.makeTheme(), input: this.makeInput(), + label: this.makeLabel(), overlay: this.makeOverlay(), detachable: this.makeDetach(), positionable: this.makePosition(), @@ -137,6 +138,12 @@ return [ c, 'Boolean', 'False', `Applies the ${c} contextual color` ] }) }, + makeLabel () { + return [[ + 'label', + 'Label slot' + ]] + }, makeTheme () { return [ [ diff --git a/components/ComponentView.vue b/components/ComponentView.vue index fa6e912a..6eace57e 100755 --- a/components/ComponentView.vue +++ b/components/ComponentView.vue @@ -9,12 +9,12 @@ v-card-actions v-btn( tag="a" - v-bind:href="'https://github.com/vuetifyjs/vuetify/tree/master/src/components/'+doc.component" + v-bind:href="'https://github.com/vuetifyjs/vuetify/tree/master/src/'+componentLink" target="_blank" icon light - v-tooltip:right="{ html: 'View component' }" - v-if="doc.component" + v-tooltip:right="{ html: `View ${doc.directive ? 'Directive' : 'Component'}` }" + v-if="componentLink" v-bind:class="[`${currentColor}--text`]" ) v-icon widgets @@ -112,6 +112,11 @@ }, computed: { + componentLink () { + if (this.doc.component) return `components/${this.doc.component}` + if (this.doc.directive) return `directives/${this.doc.directive}` + return false + }, currentColor () { return this.$store.state.currentColor } diff --git a/components/MainNavigation.vue b/components/MainNavigation.vue index 14acaf97..a460151a 100755 --- a/components/MainNavigation.vue +++ b/components/MainNavigation.vue @@ -164,10 +164,11 @@ group: '/directives', items: [ { href: '/directives/badges', title: 'Badges' }, - { href: '/directives/touch-support', title: 'Touch Support' }, { href: '/directives/resizing', title: 'Resizing' }, { href: '/directives/ripples', title: 'Ripples' }, - { href: '/directives/tooltips', title: 'Tooltips' } + { href: '/directives/scrolling', title: 'Scrolling' }, + { href: '/directives/tooltips', title: 'Tooltips' }, + { href: '/directives/touch-support', title: 'Touch Support' } ] }, { divider: true }, diff --git a/examples/resize/1.vue b/examples/resize/1.vue new file mode 100644 index 00000000..b75e4f6e --- /dev/null +++ b/examples/resize/1.vue @@ -0,0 +1,27 @@ + + + \ No newline at end of file diff --git a/examples/scroll/1.vue b/examples/scroll/1.vue new file mode 100644 index 00000000..7e3f60b6 --- /dev/null +++ b/examples/scroll/1.vue @@ -0,0 +1,20 @@ + + + diff --git a/examples/scroll/2.vue b/examples/scroll/2.vue new file mode 100644 index 00000000..7a53f89e --- /dev/null +++ b/examples/scroll/2.vue @@ -0,0 +1,39 @@ + + + diff --git a/examples/tables/9.vue b/examples/tables/9.vue new file mode 100644 index 00000000..f8f1cbf1 --- /dev/null +++ b/examples/tables/9.vue @@ -0,0 +1,156 @@ + + + diff --git a/examples/toolbar/14.vue b/examples/toolbar/14.vue new file mode 100644 index 00000000..690c8f41 --- /dev/null +++ b/examples/toolbar/14.vue @@ -0,0 +1,31 @@ + diff --git a/examples/touch/1.vue b/examples/touch/1.vue new file mode 100644 index 00000000..53612eb0 --- /dev/null +++ b/examples/touch/1.vue @@ -0,0 +1,30 @@ + + + diff --git a/pages/BadgesView.vue b/pages/BadgesView.vue index 1aec9a54..07046183 100755 --- a/pages/BadgesView.vue +++ b/pages/BadgesView.vue @@ -7,9 +7,9 @@ data () { return { doc: { - title: 'Badge', + title: 'Badge directive', edit: 'Badges', - component: 'badges', + directive: 'badge', desc: `

Badge directives can be applied to any element using the v-badge directive. By default, a badge will use the application's defined primary color. Parameters can be passed using the arg, v-badge:arg, modifier, v-badge:2.modifier, or by passing an object by expression, v-badge="{ value: 2, overlap: true }" diff --git a/pages/BottomNavigationView.vue b/pages/BottomNavigationView.vue index 185a1231..248c40f0 100755 --- a/pages/BottomNavigationView.vue +++ b/pages/BottomNavigationView.vue @@ -44,25 +44,6 @@ } } } - }, - - mounted () { - this.$emit('view', this.meta()) - }, - - preFetch () { - return this.methods.meta() - }, - - methods: { - meta () { - return { - title: 'Bottom navigation Component | Vuetify.js', - h1: 'Bottom navigation', - description: 'Bottom navigation component for Vuetify Framework', - keywords: 'vuetify, bottom navigation, navigation, component' - } - } } } diff --git a/pages/DatatablesView.vue b/pages/DatatablesView.vue index 8a5385e4..3978efe5 100755 --- a/pages/DatatablesView.vue +++ b/pages/DatatablesView.vue @@ -20,11 +20,12 @@ { header: 'Search with custom page text', file: 'tables/3', desc: 'The data table exposes a search prop that allows you to filter your data.' }, { header: 'External pagination', file: 'tables/4', desc: 'Pagination can be controlled externally by using the pagination prop. Remember that you must apply the .sync modifier.' }, { header: 'External sorting', file: 'tables/5', desc: 'Sorting can also be controlled externally by using the pagination prop. Remember that you must apply the .sync modifier. You can also use the prop to set the default sorted column.' }, - { header: 'Paginate and sort server-side', file: 'tables/6', desc: 'If you\'re loading data from a backend and want to paginate and sort the results before displaying them, you can use the total-items prop. Defining this prop will disable the built-in sorting and pagination, and you will instead need to use the pagination prop to listen for changes. Use the loading prop to display a progress bar while fetching data.'} + { header: 'Paginate and sort server-side', file: 'tables/6', desc: 'If you\'re loading data from a backend and want to paginate and sort the results before displaying them, you can use the total-items prop. Defining this prop will disable the built-in sorting and pagination, and you will instead need to use the pagination prop to listen for changes. Use the loading prop to display a progress bar while fetching data.'}, + { header: 'Theme support', file: 'tables/9', desc: 'The v-data-table component supports the application dark theme.'} ], props: { 'v-data-table': { - shared: ['filterable'], + shared: ['filterable', 'theme'], params: [ [ 'headers', @@ -214,25 +215,9 @@ } }, - mounted () { - this.$emit('view', this.meta()) - }, - - preFetch () { - return this.methods.meta() - }, - methods: { saving () { console.log('I saved!') - }, - meta () { - return { - title: 'Data tables | Vuetify.js', - h1: 'Data tables', - description: 'The v-data-table component is used for displaying tabular data. Features include sorting, searching, pagination, inline-editing, header tooltips, and row selection.', - keywords: 'vuetify, components, data tables' - } } } } diff --git a/pages/GridView.vue b/pages/GridView.vue index ed12f618..979807ba 100755 --- a/pages/GridView.vue +++ b/pages/GridView.vue @@ -179,7 +179,7 @@ 'False', 'xs:extra small, sm:small, md:medium, lg:large, xl:extra large - 1 through 12' ], [ - 'offset-[size](1-12)', + 'offset-[size](0-12)', 'Boolean', 'False', 'offset-xs:extra small, offset-sm:small, offset-md:medium, offset-lg:large, offset-xl:extra large. Example: offset-xs3' diff --git a/pages/HomeView.vue b/pages/HomeView.vue index dc112015..cb41825b 100755 --- a/pages/HomeView.vue +++ b/pages/HomeView.vue @@ -1,7 +1,4 @@