mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 04:01:58 +00:00
rename frontend to web and update contributing guide (#2509)
* rename frontend to web and update contributing guide * rename this time * fix build * restructure rust code * update documentation * update descriptions * Update CONTRIBUTING.md Co-authored-by: J H <2364004+Blu-J@users.noreply.github.com> --------- Co-authored-by: Aiden McClelland <me@drbonez.dev> Co-authored-by: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com> Co-authored-by: J H <2364004+Blu-J@users.noreply.github.com>
This commit is contained in:
9
web/projects/shared/src/util/base-64.ts
Normal file
9
web/projects/shared/src/util/base-64.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import * as Base64 from 'base64-js'
|
||||
|
||||
export function encodeBase64(text: string) {
|
||||
return Base64.fromByteArray(new TextEncoder().encode(text))
|
||||
}
|
||||
|
||||
export function decodeBase64(encoded: string) {
|
||||
return new TextDecoder().decode(Base64.toByteArray(encoded))
|
||||
}
|
||||
Reference in New Issue
Block a user