parent
87e317f97b
commit
c836f112db
@ -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,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…
Reference in new issue