Skip to content

Commit

Permalink
機能を削って右クリックメニューを完成
Browse files Browse the repository at this point in the history
  • Loading branch information
chakkun1121 committed Jan 30, 2024
1 parent d0a0bb8 commit d082e09
Showing 1 changed file with 25 additions and 13 deletions.
38 changes: 25 additions & 13 deletions app/(app)/_components/rightClick/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,25 @@ export default function RightClick() {
},
{
name: {
ja: "+追加",
en: "+add",
ja: "Google翻訳",
en: "Google Translate",
},
onclick: () => {
window.open("/settings#dictionaries", "_blank");
onclick: (text: string) => {
window.open(
`https://translate.google.com/?sl=auto&tl=auto&text=${text}&op=translate`,
"_blank"
);
},
},
// {
// name: {
// ja: "+追加",
// en: "+add",
// },
// onclick: () => {
// window.open("/settings#dictionaries", "_blank");
// },
// },
],
when: { onSelected: true },
},
Expand All @@ -91,15 +103,15 @@ export default function RightClick() {
window.open("/help", "_blank");
},
},
{
name: {
ja: "設定",
en: "settings",
},
onclick: () => {
window.open("/settings", "_blank");
},
},
// {
// name: {
// ja: "設定",
// en: "settings",
// },
// onclick: () => {
// window.open("/settings", "_blank");
// },
// },
];

useEffect(() => {
Expand Down

0 comments on commit d082e09

Please sign in to comment.