Remove unused code related to Quasar

pull/5889/head
Angel Fernando Quiroz Campos 1 year ago
parent 87e317f97b
commit c836f112db
No known key found for this signature in database
GPG Key ID: B284841AE3E562CD
  1. 42
      assets/vue/components/Notification.js
  2. 24
      assets/vue/mixins/NotificationMixin.js
  3. 11
      assets/vue/quasar-user-options.js
  4. 2
      assets/vue/styles/quasar.sass
  5. 15
      assets/vue/styles/quasar.variables.sass

@ -1,42 +0,0 @@
import { useQuasar } from "quasar"
/**
* Use this when using Vue 3 composition api (setup)
*/
export default function () {
const $q = useQuasar()
function showNotification(message, type = "success") {
let color = "primary"
let icon = "info"
switch (type) {
case "info":
break
case "success":
color = "green"
break
case "error":
case "danger":
color = "red"
break
case "warning":
color = "yellow"
break
}
if ("danger" === type) {
type = "error"
}
$q.notify({
position: "top",
timeout: 10000,
message: message,
color: color,
html: true,
multiLine: true,
})
}
return { showNotification }
}

@ -1,40 +1,30 @@
import { mapFields } from "vuex-map-fields"
import { useQuasar } from "quasar"
import { useNotification } from "../composables/notification"
export default {
setup() {
const quasar = useQuasar()
const notification = useNotification()
const showError = (error) => {
showMessage(error, "danger")
notification.showErrorNotification(error)
}
const showMessage = (message, type = "success") => {
let color = "primary"
switch (type) {
case "info":
notification.showInfoNotification(message)
break
case "success":
color = "green"
notification.showSuccessNotification(message)
break
case "error":
case "danger":
color = "red"
notification.showErrorNotification(message)
break
case "warning":
color = "yellow"
notification.showWarningNotification(message)
break
}
quasar.notify({
position: "top",
timeout: 10000,
message: message,
color: color,
html: true,
multiLine: true,
})
}
return {

@ -1,11 +0,0 @@
import "@quasar/extras/material-icons/material-icons.css"
import { Dialog, Notify } from "quasar"
export default {
config: {
notify: {},
},
plugins: [Notify, Dialog],
extras: ["material-icons"],
}

@ -1,2 +0,0 @@
@import 'quasar.variables'
@import '~quasar/dist/quasar.sass'

@ -1,15 +0,0 @@
// It's highly recommended to change the default colors
// to match your app's branding.
$primary : #2E75A3
$secondary : #FD6600
$accent : #9C27B0
$dark : #1D1D1D
$positive : #A4DC2D
$negative : #EF3E3E
$info : #3E9AEF
$warning : #EDDF0E
//@import '~quasar-variables-styl'
Loading…
Cancel
Save