mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
Add shadcn/ui tooltip UI && modify from the entire block being a button to just a button (the news publisher is also buttonm the tailwind tooltip is just for the news publisher plubin )
This commit is contained in:
parent
d7dfb2fb1d
commit
db0c0a3c25
11 changed files with 130 additions and 54 deletions
|
@ -1,14 +1,14 @@
|
|||
export default defineEventHandler((event) => {
|
||||
const query = getQuery(event);
|
||||
const toolCall = query.tool;
|
||||
const forwardCall = query.forward;
|
||||
if (toolCall) {
|
||||
const buildUrl = "/desktop?openapp=" + toolCall;
|
||||
return sendRedirect(event, buildUrl, 302);
|
||||
}
|
||||
if (forwardCall) {
|
||||
const buildUrl = "/" + forwardCall;
|
||||
return sendRedirect(event, buildUrl, 302);
|
||||
}
|
||||
return sendRedirect(event, "/", 302)
|
||||
})
|
||||
const query = getQuery(event);
|
||||
const toolCall = query.tool;
|
||||
const forwardCall = query.forward;
|
||||
if (toolCall) {
|
||||
const buildUrl = "/desktop?openapp=" + toolCall;
|
||||
return sendRedirect(event, buildUrl, 302);
|
||||
}
|
||||
if (forwardCall) {
|
||||
const buildUrl = "/" + forwardCall;
|
||||
return sendRedirect(event, buildUrl, 302);
|
||||
}
|
||||
return sendRedirect(event, "/", 302);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue