Skip to content

Commit

Permalink
Enable overlay for my ip extension
Browse files Browse the repository at this point in the history
  • Loading branch information
HuakunShen committed May 22, 2024
1 parent 2f5b75d commit 5a2b8c2
Show file tree
Hide file tree
Showing 63 changed files with 10 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 5 additions & 2 deletions extensions/myip/jarvis.ext.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@
},
"uiCmds": [
{
"main": "ui/dist",
"main": "dist",
"name": "My IP",
"devMain": "http://localhost:5173",
"window": {
"titleBarStyle": "overlay"
},
"cmds": [
{
"type": "text",
Expand All @@ -22,4 +25,4 @@
}
],
"inlineCmds": []
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function onSelect(content: any) {
title: "Copied to Clipboard",
});
})
.catch((error) => {
.catch((error: unknown) => {
console.error(error);
return toast({
title: "Failed to copy to Clipboard",
Expand All @@ -97,9 +97,11 @@ function onIpSearch(e: Event) {
</script>
<template>
<Toaster />
<main class="h-screen bg-background text-foreground">
<main class="h-screen bg-background text-foreground flex flex-col">
<div class="h-8" data-tauri-drag-region />

<!-- <ModeToggle /> -->
<Command class="rounded-lg border shadow-md text-xl">
<Command class="rounded-lg border-none shadow-md text-xl">
<div class="flex gap-1.5 px-2">
<span class="grow"><CommandInput placeholder="Type to search..." class="" /></span>
<form class="flex w-full items-center gap-1.5 max-w-xs" @submit="onIpSearch">
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 5a2b8c2

Please sign in to comment.