wip(desktop): new layout work
This commit is contained in:
parent
4069999b78
commit
fc5fc2c570
24 changed files with 634 additions and 423 deletions
7
packages/desktop/src/utils/encode.ts
Normal file
7
packages/desktop/src/utils/encode.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
export function base64Encode(value: string) {
|
||||
return btoa(value).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "")
|
||||
}
|
||||
|
||||
export function base64Decode(value: string) {
|
||||
return atob(value.replace(/-/g, "+").replace(/_/g, "/"))
|
||||
}
|
||||
|
|
@ -1,2 +1,3 @@
|
|||
export * from "./path"
|
||||
export * from "./dom"
|
||||
export * from "./encode"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue