mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-17 21:25:54 +02:00
Merge pull request #921 from OpenSignLabs/raktima-opensignlabs-patch-11
fix: webpack build error, restrict space in public username
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -280,7 +280,8 @@ function UserProfile() {
|
||||
};
|
||||
//function to handle onchange username and restrict 6-characters username for free users
|
||||
const handleOnchangeUserName = (e) => {
|
||||
setPublicUserName(e.target.value);
|
||||
const newValue = e.target.value.replace(/\s+/g, "");
|
||||
setPublicUserName(newValue);
|
||||
};
|
||||
|
||||
const handleOnchangeTagLine = (e) => {
|
||||
|
||||
@@ -1239,7 +1239,7 @@ const ReportTable = (props) => {
|
||||
<div className="font-normal text-black">
|
||||
<p className="text-lg">
|
||||
{props.isPublic[item.objectId]
|
||||
? `Are you sure you want to make this template public ?`
|
||||
? `Are you sure you want to make this template public?`
|
||||
: `Are you sure you want to make this template private? This will remove it from your public profile.`}
|
||||
</p>
|
||||
{props.isPublic[item.objectId] && (
|
||||
@@ -1294,11 +1294,11 @@ const ReportTable = (props) => {
|
||||
</p>
|
||||
<div className=" flex items-center gap-3 mt-2 p-[2px] ">
|
||||
<span className="font-bold">
|
||||
Public URL :{" "}
|
||||
Public URL :
|
||||
</span>
|
||||
<span
|
||||
onClick={() => copytoProfileLink()}
|
||||
className="underline underline-offset-2 cursor-pointer"
|
||||
className="underline underline-offset-2 w-[150px] md:w-[350px] whitespace-nowrap overflow-hidden text-ellipsis cursor-pointer"
|
||||
>{`https://opensign.me/${publicUserName}`}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -64,7 +64,7 @@ module.exports = {
|
||||
: [])
|
||||
],
|
||||
optimization: {
|
||||
minimize: isProduction,
|
||||
minimize: isProduction ? true : false,
|
||||
minimizer: [new TerserPlugin()]
|
||||
},
|
||||
devtool: isProduction ? "source-map" : "inline-source-map"
|
||||
|
||||
Reference in New Issue
Block a user