new feature: open all links

This commit is contained in:
daniel31x13 2024-11-09 23:59:12 -05:00
parent 78ecf3ddb5
commit 6842da4283
2 changed files with 17 additions and 1 deletions

View File

@ -143,6 +143,21 @@ export default function Index() {
<i className="bi-three-dots text-xl" title="More"></i> <i className="bi-three-dots text-xl" title="More"></i>
</div> </div>
<ul className="dropdown-content z-[30] menu shadow bg-base-200 border border-neutral-content rounded-box mt-1"> <ul className="dropdown-content z-[30] menu shadow bg-base-200 border border-neutral-content rounded-box mt-1">
<li>
<div
role="button"
tabIndex={0}
onClick={() => {
(document?.activeElement as HTMLElement)?.blur();
for (const link of links) {
if (link.url) window.open(link.url, "_blank");
}
}}
className="whitespace-nowrap"
>
{t("open_all_links")}
</div>
</li>
{permissions === true && ( {permissions === true && (
<li> <li>
<div <div

View File

@ -427,5 +427,6 @@
"search_engine": "Search Engine (Google, Bing, etc.)", "search_engine": "Search Engine (Google, Bing, etc.)",
"reddit": "Reddit", "reddit": "Reddit",
"lemmy": "Lemmy", "lemmy": "Lemmy",
"people_recommendation": "Recommendation (Friend, Family, etc.)" "people_recommendation": "Recommendation (Friend, Family, etc.)",
"open_all_links": "Open all Links"
} }