Skip to content

Commit 710926b

Browse files
committed
feat: add btoa and atob functions in utils
1 parent f22a81e commit 710926b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

adminforth/spa/src/utils.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,3 +481,11 @@ export function checkShowIf(c: AdminForthResourceColumnInputCommon, record: Reco
481481

482482
return evaluatePredicate(c.showIf);
483483
}
484+
485+
export function btoa_function(source: string): string {
486+
return btoa(source);
487+
}
488+
489+
export function atob_function(source: string): string {
490+
return atob(source);
491+
}

0 commit comments

Comments
 (0)