mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-16 23:35:15 -05:00
fix linter issues
This commit is contained in:
@@ -4,7 +4,7 @@ import { store } from "@/store";
|
||||
// TODO: Migrate to Mixins
|
||||
|
||||
export const utils = {
|
||||
recipe: recipe,
|
||||
recipe,
|
||||
generateUniqueKey(item, index) {
|
||||
return `${item}-${index}`;
|
||||
},
|
||||
@@ -16,35 +16,35 @@ export const utils = {
|
||||
return `${year}-${month}-${day}`;
|
||||
},
|
||||
notify: {
|
||||
info: function(text, title = null) {
|
||||
info(text, title = null) {
|
||||
store.commit("setSnackbar", {
|
||||
open: true,
|
||||
title: title,
|
||||
text: text,
|
||||
title,
|
||||
text,
|
||||
color: "info",
|
||||
});
|
||||
},
|
||||
success: function(text, title = null) {
|
||||
success(text, title = null) {
|
||||
store.commit("setSnackbar", {
|
||||
open: true,
|
||||
title: title,
|
||||
text: text,
|
||||
title,
|
||||
text,
|
||||
color: "success",
|
||||
});
|
||||
},
|
||||
error: function(text, title = null) {
|
||||
error(text, title = null) {
|
||||
store.commit("setSnackbar", {
|
||||
open: true,
|
||||
title: title,
|
||||
text: text,
|
||||
title,
|
||||
text,
|
||||
color: "error",
|
||||
});
|
||||
},
|
||||
warning: function(text, title = null) {
|
||||
warning(text, title = null) {
|
||||
store.commit("setSnackbar", {
|
||||
open: true,
|
||||
title: title,
|
||||
text: text,
|
||||
title,
|
||||
text,
|
||||
color: "warning",
|
||||
});
|
||||
},
|
||||
|
||||
@@ -6,8 +6,8 @@ export const recipe = {
|
||||
*/
|
||||
sortAToZ(list) {
|
||||
list.sort((a, b) => {
|
||||
var textA = a.name.toUpperCase();
|
||||
var textB = b.name.toUpperCase();
|
||||
const textA = a.name.toUpperCase();
|
||||
const textB = b.name.toUpperCase();
|
||||
return textA < textB ? -1 : textA > textB ? 1 : 0;
|
||||
});
|
||||
},
|
||||
@@ -42,7 +42,7 @@ const rand = n =>
|
||||
Math.floor(Math.random() * n)
|
||||
|
||||
function swap(t, i, j) {
|
||||
let q = t[i];
|
||||
const q = t[i];
|
||||
t[i] = t[j];
|
||||
t[j] = q;
|
||||
return t;
|
||||
|
||||
Reference in New Issue
Block a user