完成世界书、骰子、apiconfig页面处理

This commit is contained in:
2026-04-30 01:35:10 +08:00
parent a3e3711b2b
commit ba9b925c32
4602 changed files with 785225 additions and 23 deletions

25
frontend/node_modules/khroma/test/methods/grayscale.js generated vendored Normal file
View File

@@ -0,0 +1,25 @@
/* IMPORT */
import {describe} from 'fava';
import {grayscale} from '../../dist/index.js';
/* MAIN */
describe ( 'grayscale', it => {
it ( 'gets the grayscale version of the color', t => {
const tests = [
['#6b717f', 'hsl(222, 0%, 45.8823529412%)'],
['#d2e1dd', 'hsl(164, 0%, 85.2941176471%)'],
['#036', 'hsl(210, 0%, 20%)']
];
tests.forEach ( ([ color, output ]) => {
t.is ( grayscale ( color ), output );
});
});
});