Refactor: Implement SmartCube renderer, improve UI styling, and fix gaps

This commit is contained in:
2026-02-22 04:35:59 +00:00
parent 57abfd6b80
commit b5ddc21662
4168 changed files with 763782 additions and 1008 deletions

29
node_modules/@gkucmierz/utils/spec/base64.spec.mjs generated vendored Normal file
View File

@@ -0,0 +1,29 @@
import {
toBase64,
fromBase64,
toBase64Url,
fromBase64Url,
} from '../src/base64.mjs';
describe('base64', () => {
it('toBase64', () => {
expect(toBase64('🥚')).toBe('Ptha3Q==');
expect(toBase64('🐔')).toBe('PdgU3A==');
expect(toBase64('')).toBe('++8=');
});
it('fromBase64', () => {
expect(fromBase64('Ptha3Q==')).toBe('🥚');
expect(fromBase64('PdgU3A==')).toBe('🐔');
expect(fromBase64('++8=')).toBe('');
});
it('toBase64Url', () => {
expect(toBase64Url('')).toBe('--8=');
});
it('fromBase64', () => {
expect(fromBase64Url('--8=')).toBe('');
});
});