feat: 기능 추가 과정중
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
export function Fixture({ value }: { value: string }) {
|
||||
return <span>{value}</span>;
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
export function Fixture({ value }) {
|
||||
return <span>{value}</span>;
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
export function attachScript(source) {
|
||||
export function attachScript(source: string) {
|
||||
const script = document.createElement("script");
|
||||
script.src = source;
|
||||
document.head.append(script);
|
||||
-1
@@ -1 +0,0 @@
|
||||
export const execute = (source) => eval(source);
|
||||
+1
@@ -0,0 +1 @@
|
||||
export const execute = (source: string) => eval(source);
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
export function RawHtml({ value }) {
|
||||
export function RawHtml({ value }: { value: string }) {
|
||||
return <div dangerouslySetInnerHTML={{ __html: value }} />;
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
globalThis.password = "synthetic-built-secret";
|
||||
@@ -0,0 +1,2 @@
|
||||
(globalThis as typeof globalThis & { password: string }).password =
|
||||
"synthetic-built-secret";
|
||||
Reference in New Issue
Block a user