chore: add safe attribute to input element
This commit is contained in:
parent
60ba7c93fb
commit
5b1703db68
2 changed files with 18 additions and 8 deletions
|
|
@ -543,9 +543,11 @@ const app = new Elysia({
|
||||||
style={{
|
style={{
|
||||||
borderColor: "gray",
|
borderColor: "gray",
|
||||||
padding: "2px",
|
padding: "2px",
|
||||||
}}>
|
}}
|
||||||
|
>
|
||||||
<header
|
<header
|
||||||
style={{ fontSize: "20px", fontWeight: "bold" }}>
|
style={{ fontSize: "20px", fontWeight: "bold" }}
|
||||||
|
safe>
|
||||||
{converter}
|
{converter}
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|
@ -567,7 +569,9 @@ const app = new Elysia({
|
||||||
data-target={target}
|
data-target={target}
|
||||||
data-converter={converter}
|
data-converter={converter}
|
||||||
style={{ fontSize: "15px", padding: "5px" }}
|
style={{ fontSize: "15px", padding: "5px" }}
|
||||||
type="button">
|
type="button"
|
||||||
|
safe
|
||||||
|
>
|
||||||
{target}
|
{target}
|
||||||
</button>
|
</button>
|
||||||
))}
|
))}
|
||||||
|
|
@ -638,8 +642,9 @@ const app = new Elysia({
|
||||||
style={{
|
style={{
|
||||||
borderColor: "gray",
|
borderColor: "gray",
|
||||||
padding: "2px",
|
padding: "2px",
|
||||||
}}>
|
}}
|
||||||
<header style={{ fontSize: "20px", fontWeight: "bold" }}>
|
>
|
||||||
|
<header style={{ fontSize: "20px", fontWeight: "bold" }} safe>
|
||||||
{converter}
|
{converter}
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|
@ -661,7 +666,9 @@ const app = new Elysia({
|
||||||
data-target={target}
|
data-target={target}
|
||||||
data-converter={converter}
|
data-converter={converter}
|
||||||
style={{ fontSize: "15px", padding: "5px" }}
|
style={{ fontSize: "15px", padding: "5px" }}
|
||||||
type="button">
|
type="button"
|
||||||
|
safe
|
||||||
|
>
|
||||||
{target}
|
{target}
|
||||||
</button>
|
</button>
|
||||||
))}
|
))}
|
||||||
|
|
@ -828,7 +835,10 @@ const app = new Elysia({
|
||||||
const fileTypeOrig = fileName.split(".").pop() ?? "";
|
const fileTypeOrig = fileName.split(".").pop() ?? "";
|
||||||
const fileType = normalizeFiletype(fileTypeOrig);
|
const fileType = normalizeFiletype(fileTypeOrig);
|
||||||
const newFileExt = normalizeOutputFiletype(convertTo);
|
const newFileExt = normalizeOutputFiletype(convertTo);
|
||||||
const newFileName = fileName.replace(new RegExp(`${fileTypeOrig}(?!.*${fileTypeOrig})`), newFileExt);
|
const newFileName = fileName.replace(
|
||||||
|
new RegExp(`${fileTypeOrig}(?!.*${fileTypeOrig})`),
|
||||||
|
newFileExt,
|
||||||
|
);
|
||||||
const targetPath = `${userOutputDir}${newFileName}`;
|
const targetPath = `${userOutputDir}${newFileName}`;
|
||||||
|
|
||||||
const result = await mainConverter(
|
const result = await mainConverter(
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ div.icon {
|
||||||
}
|
}
|
||||||
|
|
||||||
button[type="submit"] {
|
button[type="submit"] {
|
||||||
width: 50%
|
width: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.center {
|
div.center {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue