A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix: oauth plugin icons used base64 data
shuai47695b90cfb1
diff --git a/ui/src/pages/Users/Settings/Account/components/MyLogins/index.tsx b/ui/src/pages/Users/Settings/Account/components/MyLogins/index.tsxindex 01a68ad6..b0e9cc6c 100644--- a/ui/src/pages/Users/Settings/Account/components/MyLogins/index.tsx+++ b/ui/src/pages/Users/Settings/Account/components/MyLogins/index.tsx@@ -50,14 +50,13 @@ const Index = () => {href={item.link}onClick={(e) => deleteLogins(e, item)}key={item.name}>- <svg- xmlns="http://www.w3.org/2000/svg"- width="16"- height="16"- className="btnSvg"- viewBox="0 0 24 24">- <path d={item.icon} />- </svg>+ <img+ src={`data:image/svg+xml;base64,${item.icon}`}+ alt=""+ width={16}+ height={16}+ className="btnSvg me-2"+ /><span> {item.name}</span></Button>);diff --git a/ui/src/plugins/PluginOauth/index.tsx b/ui/src/plugins/PluginOauth/index.tsxindex b61997db..1acea3b8 100644--- a/ui/src/plugins/PluginOauth/index.tsx+++ b/ui/src/plugins/PluginOauth/index.tsx@@ -17,15 +17,14 @@ const Index: FC<Props> = ({ className }) => {{data?.map((item) => {return (<Button variant="outline-secondary" href={item.link} key={item.name}>- <svg- xmlns="http://www.w3.org/2000/svg"- width="16"- height="16"- className="btnSvg"- viewBox="0 0 24 24">- <path d={item.icon} />- </svg>- <span> {item.name}</span>+ <img+ src={`data:image/svg+xml;base64,${item.icon}`}+ alt=""+ width={16}+ height={16}+ className="btnSvg me-2"+ />+ <span>{item.name}</span></Button>);})}