diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 4ad7100..912f74b 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,7 +5,6 @@ - @@ -29,22 +28,22 @@ - { + "keyToString": { + "RunOnceActivity.ShowReadmeOnStart": "true", + "git-widget-placeholder": "main", + "last_opened_file_path": "D:/Users/zomco/Documents/GitHub/owradar-site/public/release", + "node.js.detected.package.eslint": "true", + "node.js.detected.package.tslint": "true", + "node.js.selected.package.eslint": "(autodetect)", + "node.js.selected.package.tslint": "(autodetect)", + "nodejs_package_manager_path": "npm", + "npm.dev.executor": "Run", + "settings.editor.selected.configurable": "vcs.Git", + "ts.external.directory.path": "D:\\Users\\zomco\\Documents\\GitHub\\owradar-site\\node_modules\\typescript\\lib", + "vue.rearranger.settings.migration": "true" } -}]]> +} @@ -96,7 +95,8 @@ - + + diff --git a/app/install-button.tsx b/app/install-button.tsx index 952f579..3e6a502 100644 --- a/app/install-button.tsx +++ b/app/install-button.tsx @@ -30,12 +30,25 @@ import { Triangle, Turtle, } from "lucide-react" -import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group" -import { Bold, Italic, Underline } from "lucide-react" +import {ToggleGroup, ToggleGroupItem} from "@/components/ui/toggle-group" +import {Bold, Italic, Underline} from "lucide-react" import Releases from './release.json'; -const radars: ManiFestInfo[] = Releases.values.map(radar => ({ name: radar.name, values: radar.values })); +declare global { + namespace JSX { + interface IntrinsicElements { + 'esp-web-install-button': any; + } + } +} +const radars: ManiFestInfo[] = Releases.values.map(radar => ({ + name: radar.name, + desc: radar.desc, + values: radar.values +})); + + export default function InstallButton() { const [versions, updateVersions] = useState([]); const [models, updateModels] = useState([]); @@ -124,7 +137,7 @@ export default function InstallButton() { id="version" className="items-start [&_[data-description]]:hidden" > - + { diff --git a/types.d.ts b/types.d.ts index 9b126ef..10a23b0 100644 --- a/types.d.ts +++ b/types.d.ts @@ -1,5 +1,6 @@ + interface ManiFestInfo { name: string; desc: string; - values: ManiFestInfo[]; + values: any[]; } \ No newline at end of file