mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
Move log to utils
This commit is contained in:
@@ -297,3 +297,8 @@ export function slugify(str) {
|
||||
.replace(/\s+/g, '-') // Convert whitespace to hyphens
|
||||
.toLowerCase();
|
||||
}
|
||||
|
||||
export function log(...args) {
|
||||
console.log(...args);
|
||||
return args[0];
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ import {
|
||||
ROLES,
|
||||
tints,
|
||||
} from '/assets/scripts/tweak/data.js';
|
||||
import { camelCase, capitalize, slugify, subtractAngles } from '/assets/scripts/tweak/util.js';
|
||||
import { camelCase, capitalize, log, slugify, subtractAngles } from '/assets/scripts/tweak/util.js';
|
||||
|
||||
const percentFormatter = value => value.toLocaleString(undefined, { style: 'percent' });
|
||||
|
||||
@@ -769,11 +769,7 @@ let paletteAppSpec = {
|
||||
capitalize,
|
||||
slugify,
|
||||
getMaxChroma,
|
||||
|
||||
log(...args) {
|
||||
console.log(...args);
|
||||
return args[0];
|
||||
},
|
||||
log,
|
||||
|
||||
/**
|
||||
* Testing method. Import all core colors from a given palette.
|
||||
|
||||
Reference in New Issue
Block a user