feat: migrate recipe editor
- using eventbus in recipe editor - migrate to logging instead of console log - fix case swap not saved, value not update after change, topping slot bug Signed-off-by: pakintada@gmail.com <Pakin>
This commit is contained in:
parent
270faf6b34
commit
f0619c5a10
65 changed files with 1600 additions and 557 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import { logger } from '$lib/core/utils/logger';
|
||||
function extractCookieOnNonBrowser() {
|
||||
let result: any = {};
|
||||
let cookie_ent = document.cookie.split(';');
|
||||
|
|
@ -23,7 +24,7 @@ function setCookieOnNonBrowser(name: string, value: string) {
|
|||
result += `${name}=${value};`;
|
||||
|
||||
document.cookie = result;
|
||||
console.log('last set cookie', result);
|
||||
logger.info('last set cookie', result);
|
||||
}
|
||||
|
||||
function deleteCookiesOnNonBrowser(name: string) {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { logger } from '$lib/core/utils/logger';
|
||||
class IcingGen {
|
||||
private lastTimestamp = 0n;
|
||||
private sequence = 0n;
|
||||
|
|
@ -42,7 +43,7 @@ export function generateIcing(machineId: number): string {
|
|||
const icing = new IcingGen(machineId);
|
||||
const nid = icing.nextId();
|
||||
|
||||
console.log('NEXT ID', nid);
|
||||
logger.info('NEXT ID', nid);
|
||||
|
||||
const id = toBase62(BigInt(nid));
|
||||
return id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue