From 5a24b31b6464807ab6f6d84b6237f332dbe83122 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Mon, 31 Dec 2018 22:59:02 +0300 Subject: [PATCH] Refactor component registration --- src/main.js | 56 +++++++-------- src/views/accordion/AccordionDemo.vue | 68 +++++++++---------- src/views/button/ButtonDemo.vue | 46 ++++++------- src/views/card/CardDemo.vue | 14 ++-- src/views/checkbox/CheckboxDemo.vue | 12 ++-- src/views/chips/ChipsDemo.vue | 6 +- src/views/dropdown/DropdownDemo.vue | 8 +-- src/views/editor/EditorDemo.vue | 6 +- src/views/fieldset/FieldsetDemo.vue | 8 +-- src/views/fullcalendar/FullCalendarDemo.vue | 2 +- src/views/inputswitch/InputSwitchDemo.vue | 4 +- src/views/inputtext/InputTextDemo.vue | 6 +- src/views/listbox/ListboxDemo.vue | 6 +- src/views/multiselect/MultiSelectDemo.vue | 6 +- src/views/panel/PanelDemo.vue | 8 +-- src/views/password/PasswordDemo.vue | 2 +- src/views/progressbar/ProgressBarDemo.vue | 6 +- src/views/radiobutton/RadioButtonDemo.vue | 10 +-- src/views/rating/RatingDemo.vue | 8 +-- src/views/selectbutton/SelectButtonDemo.vue | 8 +-- src/views/slider/SliderDemo.vue | 10 +-- src/views/spinner/SpinnerDemo.vue | 8 +-- src/views/tabview/TabViewDemo.vue | 66 +++++++++--------- src/views/textarea/TextareaDemo.vue | 6 +- src/views/togglebutton/ToggleButtonDemo.vue | 4 +- src/views/toolbar/ToolbarDemo.vue | 16 ++--- .../tristatecheckbox/TriStateCheckboxDemo.vue | 2 +- 27 files changed, 201 insertions(+), 201 deletions(-) diff --git a/src/main.js b/src/main.js index 26e4152ac..15fe01664 100644 --- a/src/main.js +++ b/src/main.js @@ -36,34 +36,34 @@ import 'primeicons/primeicons.css'; Vue.config.productionTip = false; -Vue.component('p-accordion', Accordion); -Vue.component('p-accordionTab', AccordionTab); -Vue.component('p-button', Button); -Vue.component('p-card', Card); -Vue.component('p-checkbox', Checkbox); -Vue.component('p-chips', Chips); -Vue.component('p-dropdown', Dropdown); -Vue.component('p-editor', Editor); -Vue.component('p-fullCalendar', FullCalendar); -Vue.component('p-inputSwitch', InputSwitch); -Vue.component('p-inputtext', InputText); -Vue.component('p-listbox', Listbox); -Vue.component('p-fieldset', Fieldset); -Vue.component('p-multiSelect', MultiSelect); -Vue.component('p-panel', Panel); -Vue.component('p-password', Password); -Vue.component('p-progressBar', ProgressBar); -Vue.component('p-radioButton', RadioButton); -Vue.component('p-rating', Rating); -Vue.component('p-selectButton', SelectButton); -Vue.component('p-slider', Slider); -Vue.component('p-spinner', Spinner); -Vue.component('p-tabView', TabView); -Vue.component('p-tabPanel', TabPanel); -Vue.component('p-textarea', Textarea); -Vue.component('p-toolbar', Toolbar); -Vue.component('p-toggleButton', ToggleButton); -Vue.component('p-triStateCheckbox', TriStateCheckbox); +Vue.component('Accordion', Accordion); +Vue.component('AccordionTab', AccordionTab); +Vue.component('Button', Button); +Vue.component('Card', Card); +Vue.component('Checkbox', Checkbox); +Vue.component('Chips', Chips); +Vue.component('Dropdown', Dropdown); +Vue.component('Editor', Editor); +Vue.component('FullCalendar', FullCalendar); +Vue.component('InputSwitch', InputSwitch); +Vue.component('InputText', InputText); +Vue.component('Listbox', Listbox); +Vue.component('Fieldset', Fieldset); +Vue.component('MultiSelect', MultiSelect); +Vue.component('Panel', Panel); +Vue.component('Password', Password); +Vue.component('ProgressBar', ProgressBar); +Vue.component('RadioButton', RadioButton); +Vue.component('Rating', Rating); +Vue.component('SelectButton', SelectButton); +Vue.component('Slider', Slider); +Vue.component('Spinner', Spinner); +Vue.component('TabView', TabView); +Vue.component('TabPanel', TabPanel); +Vue.component('Textarea', Textarea); +Vue.component('Toolbar', Toolbar); +Vue.component('ToggleButton', ToggleButton); +Vue.component('TriStateCheckbox', TriStateCheckbox); new Vue({ router, diff --git a/src/views/accordion/AccordionDemo.vue b/src/views/accordion/AccordionDemo.vue index 1f3bd74ba..9f2d7f51f 100644 --- a/src/views/accordion/AccordionDemo.vue +++ b/src/views/accordion/AccordionDemo.vue @@ -9,44 +9,44 @@

Default

- - + + The story begins as Don Vito Corleone, the head of a New York Mafia family, overseeshis daughter's wedding. His beloved son ichael has just come home from the war, but does not intend to become part of his father's business. Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family. - - + + Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, TheGodfather parallels the young Vito Corleone's rise with his son Michael's spiritual fall, deepening The Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy. - - + + The Godfather Part III is set in 1979 and 1980. Michael has moved back to New York and taken great strides to remove the family from crime. He turns over his New York criminal interests to longtime enforcer Joey Zasa. He uses his wealth in an attempt to rehabilitate his reputation through numerous philanthropic acts, administered by a foundation named after his father. A decade earlier, he gave custody of his two children to Kay, who has since remarried. - - + +

Multiple

- - + + The story begins as Don Vito Corleone, the head of a New York Mafia family, overseeshis daughter's wedding. His beloved son ichael has just come home from the war, but does not intend to become part of his father's business. Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family. - - + + Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, TheGodfather parallels the young Vito Corleone's rise with his son Michael's spiritual fall, deepening The Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy. - - + + The Godfather Part III is set in 1979 and 1980. Michael has moved back to New York and taken great strides to remove the family from crime. He turns over his New York criminal interests to longtime enforcer Joey Zasa. He uses his wealth in an attempt to rehabilitate his reputation through numerous philanthropic acts, administered by a foundation named after his father. A decade earlier, he gave custody of his two children to Kay, who has since remarried. - - - - + + + +

Programmatic

@@ -55,27 +55,27 @@
- - + + The story begins as Don Vito Corleone, the head of a New York Mafia family, overseeshis daughter's wedding. His beloved son ichael has just come home from the war, but does not intend to become part of his father's business. Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family. - - + + Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, TheGodfather parallels the young Vito Corleone's rise with his son Michael's spiritual fall, deepening The Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy. - - + + The Godfather Part III is set in 1979 and 1980. Michael has moved back to New York and taken great strides to remove the family from crime. He turns over his New York criminal interests to longtime enforcer Joey Zasa. He uses his wealth in an attempt to rehabilitate his reputation through numerous philanthropic acts, administered by a foundation named after his father. A decade earlier, he gave custody of his two children to Kay, who has since remarried. - - + +

Custom Headers

- - + + - +
\ No newline at end of file diff --git a/src/views/checkbox/CheckboxDemo.vue b/src/views/checkbox/CheckboxDemo.vue index 58c3e2e33..f0519ff2b 100644 --- a/src/views/checkbox/CheckboxDemo.vue +++ b/src/views/checkbox/CheckboxDemo.vue @@ -9,25 +9,25 @@

Basic

- +

Multiple

- +
- +
- +
- +
@@ -36,7 +36,7 @@

Dynamic Values, Preselection, Value Binding and Disabled Option

- +
diff --git a/src/views/chips/ChipsDemo.vue b/src/views/chips/ChipsDemo.vue index a258ff30e..aba7d9971 100644 --- a/src/views/chips/ChipsDemo.vue +++ b/src/views/chips/ChipsDemo.vue @@ -9,17 +9,17 @@

Basic

- +

Template

- + - +
diff --git a/src/views/dropdown/DropdownDemo.vue b/src/views/dropdown/DropdownDemo.vue index b03b28fdc..9f93f2a41 100644 --- a/src/views/dropdown/DropdownDemo.vue +++ b/src/views/dropdown/DropdownDemo.vue @@ -9,20 +9,20 @@

Basic

- +

Editable

- +

Advanced with Templating, Filtering and Clear Icon

- + - +
diff --git a/src/views/editor/EditorDemo.vue b/src/views/editor/EditorDemo.vue index 15be7f5f1..e082a9096 100644 --- a/src/views/editor/EditorDemo.vue +++ b/src/views/editor/EditorDemo.vue @@ -9,10 +9,10 @@

Default

- +

Customized

- + - +
diff --git a/src/views/fieldset/FieldsetDemo.vue b/src/views/fieldset/FieldsetDemo.vue index 8922aaef8..917f01ef6 100644 --- a/src/views/fieldset/FieldsetDemo.vue +++ b/src/views/fieldset/FieldsetDemo.vue @@ -9,20 +9,20 @@

Regular

- +
The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding. His beloved son Michael has just come home from the war, but does not intend to become part of his father's business. Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family. - +

Toggleable

- +
The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding. His beloved son Michael has just come home from the war, but does not intend to become part of his father's business. Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family. - +
diff --git a/src/views/fullcalendar/FullCalendarDemo.vue b/src/views/fullcalendar/FullCalendarDemo.vue index fed1d65d1..554a071a3 100644 --- a/src/views/fullcalendar/FullCalendarDemo.vue +++ b/src/views/fullcalendar/FullCalendarDemo.vue @@ -8,7 +8,7 @@
- +
diff --git a/src/views/inputswitch/InputSwitchDemo.vue b/src/views/inputswitch/InputSwitchDemo.vue index 462124953..bfc52e444 100644 --- a/src/views/inputswitch/InputSwitchDemo.vue +++ b/src/views/inputswitch/InputSwitchDemo.vue @@ -9,11 +9,11 @@

Basic

- +

{{checked1}}

Preselection

- +

{{checked2}}

diff --git a/src/views/inputtext/InputTextDemo.vue b/src/views/inputtext/InputTextDemo.vue index 5e758423b..53f9e413b 100644 --- a/src/views/inputtext/InputTextDemo.vue +++ b/src/views/inputtext/InputTextDemo.vue @@ -9,17 +9,17 @@

Basic

- + {{value1}}

Floating Label

- +

Disabled

- +
diff --git a/src/views/listbox/ListboxDemo.vue b/src/views/listbox/ListboxDemo.vue index e4e8f62b1..8a758f00d 100644 --- a/src/views/listbox/ListboxDemo.vue +++ b/src/views/listbox/ListboxDemo.vue @@ -9,17 +9,17 @@

Single

- +

Advanced with Templating, Filtering and Multiple Selection

- + - +
diff --git a/src/views/multiselect/MultiSelectDemo.vue b/src/views/multiselect/MultiSelectDemo.vue index 19c097ad8..2eda8ece5 100644 --- a/src/views/multiselect/MultiSelectDemo.vue +++ b/src/views/multiselect/MultiSelectDemo.vue @@ -9,10 +9,10 @@

Basic

- +

Advanced with Templating and Filtering

- + - +
diff --git a/src/views/panel/PanelDemo.vue b/src/views/panel/PanelDemo.vue index 11aa59456..472d81525 100644 --- a/src/views/panel/PanelDemo.vue +++ b/src/views/panel/PanelDemo.vue @@ -9,20 +9,20 @@

Regular

- + The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding. His beloved son Michael has just come home from the war, but does not intend to become part of his father's business. Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family. - +

Toggleable

- + The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding. His beloved son Michael has just come home from the war, but does not intend to become part of his father's business. Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family. - +
\ No newline at end of file diff --git a/src/views/password/PasswordDemo.vue b/src/views/password/PasswordDemo.vue index ad8e81bb0..d08a093db 100644 --- a/src/views/password/PasswordDemo.vue +++ b/src/views/password/PasswordDemo.vue @@ -8,7 +8,7 @@
- +
diff --git a/src/views/progressbar/ProgressBarDemo.vue b/src/views/progressbar/ProgressBarDemo.vue index 027306151..73bbcf173 100644 --- a/src/views/progressbar/ProgressBarDemo.vue +++ b/src/views/progressbar/ProgressBarDemo.vue @@ -9,13 +9,13 @@

Dynamic

- +

Static

- +

Indeterminate

- +
diff --git a/src/views/radiobutton/RadioButtonDemo.vue b/src/views/radiobutton/RadioButtonDemo.vue index c3f0534b5..9341b2b1e 100644 --- a/src/views/radiobutton/RadioButtonDemo.vue +++ b/src/views/radiobutton/RadioButtonDemo.vue @@ -11,19 +11,19 @@

Basic

- +
- +
- +
- +
@@ -32,7 +32,7 @@

Dynamic Values, Preselection, Value Binding and Disabled Option

- +
diff --git a/src/views/rating/RatingDemo.vue b/src/views/rating/RatingDemo.vue index c11d24e58..9a57660be 100644 --- a/src/views/rating/RatingDemo.vue +++ b/src/views/rating/RatingDemo.vue @@ -9,16 +9,16 @@

Basic {{val1}}

- +

No Cancel {{val2}}

- +

ReadOnly

- +

Disabled

- +
diff --git a/src/views/selectbutton/SelectButtonDemo.vue b/src/views/selectbutton/SelectButtonDemo.vue index db85b6541..7fafe1f73 100644 --- a/src/views/selectbutton/SelectButtonDemo.vue +++ b/src/views/selectbutton/SelectButtonDemo.vue @@ -9,22 +9,22 @@

Single

- +

Selected City: {{selectedCity}}

Multiple

- +

Selected Cars: {{selectedCars}}

Custom Content

- + - +

Selected Car: {{selectedCar}}

diff --git a/src/views/slider/SliderDemo.vue b/src/views/slider/SliderDemo.vue index c1134b8e6..13f48a211 100644 --- a/src/views/slider/SliderDemo.vue +++ b/src/views/slider/SliderDemo.vue @@ -9,20 +9,20 @@

Basic: {{value1}}

- +

Input: {{value2}}

- +

Step: {{value3}}

- +

Range: {{value4}}

- +

Vertical: {{value5}}

- +
diff --git a/src/views/spinner/SpinnerDemo.vue b/src/views/spinner/SpinnerDemo.vue index 0347bbbfc..c6b6c8bb2 100644 --- a/src/views/spinner/SpinnerDemo.vue +++ b/src/views/spinner/SpinnerDemo.vue @@ -9,16 +9,16 @@

Basic

- +

Min/Max

- +

Step

- +

Disabled

- +
diff --git a/src/views/tabview/TabViewDemo.vue b/src/views/tabview/TabViewDemo.vue index 8ebe8df90..b758ea60f 100644 --- a/src/views/tabview/TabViewDemo.vue +++ b/src/views/tabview/TabViewDemo.vue @@ -9,23 +9,23 @@

Default

- - + + The story begins as Don Vito Corleone, the head of a New York Mafia family, overseeshis daughter's wedding. His beloved son ichael has just come home from the war, but does not intend to become part of his father's business. Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family. - - + + Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, TheGodfather parallels the young Vito Corleone's rise with his son Michael's spiritual fall, deepening The Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy. - - + + The Godfather Part III is set in 1979 and 1980. Michael has moved back to New York and taken great strides to remove the family from crime. He turns over his New York criminal interests to longtime enforcer Joey Zasa. He uses his wealth in an attempt to rehabilitate his reputation through numerous philanthropic acts, administered by a foundation named after his father. A decade earlier, he gave custody of his two children to Kay, who has since remarried. - - + +

Programmatic

@@ -33,47 +33,47 @@
- - + + The story begins as Don Vito Corleone, the head of a New York Mafia family, overseeshis daughter's wedding. His beloved son ichael has just come home from the war, but does not intend to become part of his father's business. Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family. - - + + Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, TheGodfather parallels the young Vito Corleone's rise with his son Michael's spiritual fall, deepening The Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy. - - + + The Godfather Part III is set in 1979 and 1980. Michael has moved back to New York and taken great strides to remove the family from crime. He turns over his New York criminal interests to longtime enforcer Joey Zasa. He uses his wealth in an attempt to rehabilitate his reputation through numerous philanthropic acts, administered by a foundation named after his father. A decade earlier, he gave custody of his two children to Kay, who has since remarried. - - + +

Disabled

- - + + The story begins as Don Vito Corleone, the head of a New York Mafia family, overseeshis daughter's wedding. His beloved son ichael has just come home from the war, but does not intend to become part of his father's business. Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family. - - + + Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, TheGodfather parallels the young Vito Corleone's rise with his son Michael's spiritual fall, deepening The Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy. - - + + The Godfather Part III is set in 1979 and 1980. Michael has moved back to New York and taken great strides to remove the family from crime. He turns over his New York criminal interests to longtime enforcer Joey Zasa. He uses his wealth in an attempt to rehabilitate his reputation through numerous philanthropic acts, administered by a foundation named after his father. A decade earlier, he gave custody of his two children to Kay, who has since remarried. - - - + + +

Custom Headers

- - + +