Add global search

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-08-26 16:08:58 +02:00
parent bfc936f57c
commit 48935e2168
216 changed files with 3646 additions and 2806 deletions

View File

@@ -1,4 +1,4 @@
import DialogComponent from "@/components/core/Dialog.vue";
import DialogComponent from "@/components/core/CustomDialog.vue";
import { App } from "vue";
export class Dialog {

View File

@@ -8,22 +8,22 @@ export class Notifier {
}
success(message: string): void {
this.notification(message, "is-success");
this.notification(message, "success");
}
error(message: string): void {
this.notification(message, "is-danger");
this.notification(message, "danger");
}
info(message: string): void {
this.notification(message, "is-info");
this.notification(message, "info");
}
private notification(message: string, type: string) {
this.app.config.globalProperties.$oruga.notification.open({
message,
duration: 5000,
position: "is-bottom-right",
position: "bottom-right",
type,
hasIcon: true,
});

View File

@@ -1,4 +1,4 @@
import SnackbarComponent from "@/components/core/Snackbar.vue";
import SnackbarComponent from "@/components/core/CustomSnackbar.vue";
import { App } from "vue";
export class Snackbar {
@@ -10,8 +10,6 @@ export class Snackbar {
open({
message,
queue,
indefinite,
variant,
position,
actionText,