Skip to content

Commit

Permalink
chore(quasar): remove deprecation notifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed May 18, 2019
1 parent d844e4a commit ea449a1
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 124 deletions.
8 changes: 0 additions & 8 deletions docs/src/assets/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,14 +505,6 @@ const directives = [
path: 'close-popup',
badge: 'new'
},
{
name: 'Close Dialog',
path: 'close-dialog'
},
{
name: 'Close Menu',
path: 'close-menu'
},
{
name: 'Go Back (Handling Back Button)',
path: 'go-back'
Expand Down
7 changes: 0 additions & 7 deletions docs/src/pages/vue-directives/close-dialog.md

This file was deleted.

7 changes: 0 additions & 7 deletions docs/src/pages/vue-directives/close-menu.md

This file was deleted.

1 change: 0 additions & 1 deletion ui/src/components/field/field.styl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ $field-transition = .36s cubic-bezier(.4,0,.2,1)
line-height 1

&--item-aligned
// TODO
padding 8px 16px

.q-field__before
Expand Down
28 changes: 3 additions & 25 deletions ui/src/components/tabs/QTabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ export default Vue.extend({
leftIcon: String,
rightIcon: String,

// TODO remove in v1 final
topIndicator: Boolean,
switchIndicator: Boolean,

narrowIndicator: Boolean,
Expand All @@ -91,7 +89,7 @@ export default Vue.extend({
activeBgColor: this.activeBgColor,
indicatorClass: getIndicatorClass(
this.indicatorColor,
this.topIndicator || this.switchIndicator,
this.switchIndicator,
this.vertical
),
narrowIndicator: this.narrowIndicator,
Expand Down Expand Up @@ -119,16 +117,11 @@ export default Vue.extend({
},

vertical (v) {
this.tabs.indicatorClass = getIndicatorClass(this.indicatorColor, this.switchIndicatorPos, v)
this.tabs.indicatorClass = getIndicatorClass(this.indicatorColor, this.switchIndicator, v)
},

indicatorColor (v) {
this.tabs.indicatorClass = getIndicatorClass(v, this.switchIndicatorPos, this.vertical)
},

// TODO remove in v1 final
topIndicator (v) {
this.tabs.indicatorClass = getIndicatorClass(this.indicatorColor, v, this.vertical)
this.tabs.indicatorClass = getIndicatorClass(v, this.switchIndicator, this.vertical)
},

switchIndicator (v) {
Expand Down Expand Up @@ -162,11 +155,6 @@ export default Vue.extend({
(this.dense === true ? ' q-tabs--dense' : '') +
(this.shrink === true ? ' col-shrink' : '') +
(this.vertical === true ? ' q-tabs--vertical' : '')
},

// TODO remove in v1 final, directly use switchIndicator
switchIndicatorPos () {
return this.topIndicator || this.switchIndicator
}
},

Expand Down Expand Up @@ -353,16 +341,6 @@ export default Vue.extend({
this.buffer = []
},

// TODO remove in v1 final
mounted () {
if (this.topIndicator === true) {
const p = process.env
if (p.PROD !== true) {
console.info('\n\n[Quasar] QTabs info: please rename top-indicator to switch-indicator prop')
}
}
},

beforeDestroy () {
clearTimeout(this.bufferTimer)
clearTimeout(this.animateTimer)
Expand Down
17 changes: 1 addition & 16 deletions ui/src/components/uploader/uploader-xhr-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export default {
default: file => file.name
},
headers: [Function, Array],
fields: [Function, Array], /* TODO remove in v1 final */
formFields: [Function, Array],
withCredentials: [Function, Boolean],
sendRaw: [Function, Boolean],
Expand All @@ -39,7 +38,6 @@ export default {
url: getFn(this.url),
method: getFn(this.method),
headers: getFn(this.headers),
fields: getFn(this.fields),
formFields: getFn(this.formFields),
fieldName: getFn(this.fieldName),
withCredentials: getFn(this.withCredentials),
Expand Down Expand Up @@ -143,10 +141,7 @@ export default {
return
}

const fields = (
getProp('formFields', files) ||
/* TODO remove in v1 final */ getProp('fields', files)
)
const fields = getProp('formFields', files)
fields !== void 0 && fields.forEach(field => {
form.append(field.name, field.value)
})
Expand Down Expand Up @@ -243,15 +238,5 @@ export default {
xhr.send(form)
}
}
},

// TODO remove in v1 final
mounted () {
if (this.fields !== void 0) {
const p = process.env
if (p.PROD !== true) {
console.info('\n\n[Quasar] QUploader: please rename "fields" prop to "form-fields"')
}
}
}
}
4 changes: 0 additions & 4 deletions ui/src/directives.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import CloseDialog from './directives/CloseDialog.js'
import CloseMenu from './directives/CloseMenu.js'
import ClosePopup from './directives/ClosePopup.js'
import GoBack from './directives/GoBack.js'
import Ripple from './directives/Ripple.js'
Expand All @@ -11,8 +9,6 @@ import TouchRepeat from './directives/TouchRepeat.js'
import TouchSwipe from './directives/TouchSwipe.js'

export {
CloseDialog,
CloseMenu,
ClosePopup,
GoBack,
Ripple,
Expand Down
13 changes: 0 additions & 13 deletions ui/src/directives/CloseDialog.js

This file was deleted.

10 changes: 0 additions & 10 deletions ui/src/directives/CloseDialog.json

This file was deleted.

13 changes: 0 additions & 13 deletions ui/src/directives/CloseMenu.js

This file was deleted.

10 changes: 0 additions & 10 deletions ui/src/directives/CloseMenu.json

This file was deleted.

10 changes: 0 additions & 10 deletions ui/src/utils/global-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,6 @@ export default function (DefaultComponent) {
return ({ className, class: klass, style, component, root, ...props }) => {
if (isSSR === true) { return ssrAPI }

// TODO remove in v1 final
if (className !== void 0) {
props.cardClass = className

const p = process.env
if (p.PROD !== true) {
console.info('\n\n[Quasar] Dialog/BottomSheet Plugin info: please rename "className" to "class" prop')
}
}

klass !== void 0 && (props.cardClass = klass)
style !== void 0 && (props.cardStyle = style)

Expand Down

0 comments on commit ea449a1

Please sign in to comment.