Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ lyrics/
/index.css
/startup_script.js
/worker_script.js
/vendor

.DS_Store
target/
.yarn/cache/
Expand All @@ -19,3 +21,4 @@ target/
*.tsbuildinfo
.million/
.opencode
AGENTS.md
31 changes: 31 additions & 0 deletions packages/player/extension-window.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, user-scalable=no, viewport-fit=cover"
>
<title>AMLL Player Extension Window</title>
<style>
html,
body {
margin: 0;
padding: 0;
width: 100vw;
height: 100vh;
overflow: hidden;
background: transparent;
}

#root {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div id="root"></div>
<script type="module" src="./src/extension-window.tsx"></script>
</body>
</html>
19 changes: 18 additions & 1 deletion packages/player/src-tauri/build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
fn main() {
tauri_build::build();
let attrs =
tauri_build::Attributes::new().app_manifest(tauri_build::AppManifest::new().commands(&[
"extension_window_create",
"extension_window_get",
"extension_window_close",
"extension_window_close_all",
"extension_window_show",
"extension_window_hide",
"extension_window_focus",
"extension_window_center",
"extension_window_set_title",
"extension_window_set_size",
"extension_window_set_position",
"extension_window_mark_ready",
"extension_window_get_current",
"extension_window_get_current_extension_files",
]));
tauri_build::try_build(attrs).expect("failed to run tauri build script");
}
46 changes: 46 additions & 0 deletions packages/player/src-tauri/capabilities/extension-window.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
"$schema" = "../gen/schemas/desktop-schema.json"

identifier = "extension-window"
local = true
windows = ["extension-window/*"]
platforms = ["macOS", "windows", "linux"]

[[permissions]]
identifier = "core:event:allow-listen"
[[permissions]]
identifier = "core:event:allow-emit"
[[permissions]]
identifier = "core:event:allow-emit-to"
[[permissions]]
identifier = "core:event:allow-unlisten"

[[permissions]]
identifier = "allow-extension-window-get-current"

[[permissions]]
identifier = "allow-extension-window-get-current-extension-files"

[[permissions]]
identifier = "allow-extension-window-create"
[[permissions]]
identifier = "allow-extension-window-get"
[[permissions]]
identifier = "allow-extension-window-close"
[[permissions]]
identifier = "allow-extension-window-close-all"
[[permissions]]
identifier = "allow-extension-window-show"
[[permissions]]
identifier = "allow-extension-window-hide"
[[permissions]]
identifier = "allow-extension-window-focus"
[[permissions]]
identifier = "allow-extension-window-center"
[[permissions]]
identifier = "allow-extension-window-set-title"
[[permissions]]
identifier = "allow-extension-window-set-size"
[[permissions]]
identifier = "allow-extension-window-set-position"
[[permissions]]
identifier = "allow-extension-window-mark-ready"
27 changes: 25 additions & 2 deletions packages/player/src-tauri/capabilities/migrated.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,28 @@ identifier = "fs:allow-stat"
identifier = "fs:read-app-specific-dirs-recursive"
[[permissions]]
identifier = "fs:create-app-specific-dirs"
[[permissions]]
identifier = "dialog:default"
[[permissions]]
identifier = "dialog:default"

[[permissions]]
identifier = "allow-extension-window-create"
[[permissions]]
identifier = "allow-extension-window-get"
[[permissions]]
identifier = "allow-extension-window-close"
[[permissions]]
identifier = "allow-extension-window-close-all"
[[permissions]]
identifier = "allow-extension-window-show"
[[permissions]]
identifier = "allow-extension-window-hide"
[[permissions]]
identifier = "allow-extension-window-focus"
[[permissions]]
identifier = "allow-extension-window-center"
[[permissions]]
identifier = "allow-extension-window-set-title"
[[permissions]]
identifier = "allow-extension-window-set-size"
[[permissions]]
identifier = "allow-extension-window-set-position"
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Automatically generated - DO NOT EDIT!

[[permission]]
identifier = "allow-extension-window-center"
description = "Enables the extension_window_center command without any pre-configured scope."
commands.allow = ["extension_window_center"]

[[permission]]
identifier = "deny-extension-window-center"
description = "Denies the extension_window_center command without any pre-configured scope."
commands.deny = ["extension_window_center"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Automatically generated - DO NOT EDIT!

[[permission]]
identifier = "allow-extension-window-close"
description = "Enables the extension_window_close command without any pre-configured scope."
commands.allow = ["extension_window_close"]

[[permission]]
identifier = "deny-extension-window-close"
description = "Denies the extension_window_close command without any pre-configured scope."
commands.deny = ["extension_window_close"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Automatically generated - DO NOT EDIT!

[[permission]]
identifier = "allow-extension-window-close-all"
description = "Enables the extension_window_close_all command without any pre-configured scope."
commands.allow = ["extension_window_close_all"]

[[permission]]
identifier = "deny-extension-window-close-all"
description = "Denies the extension_window_close_all command without any pre-configured scope."
commands.deny = ["extension_window_close_all"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Automatically generated - DO NOT EDIT!

[[permission]]
identifier = "allow-extension-window-create"
description = "Enables the extension_window_create command without any pre-configured scope."
commands.allow = ["extension_window_create"]

[[permission]]
identifier = "deny-extension-window-create"
description = "Denies the extension_window_create command without any pre-configured scope."
commands.deny = ["extension_window_create"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Automatically generated - DO NOT EDIT!

[[permission]]
identifier = "allow-extension-window-focus"
description = "Enables the extension_window_focus command without any pre-configured scope."
commands.allow = ["extension_window_focus"]

[[permission]]
identifier = "deny-extension-window-focus"
description = "Denies the extension_window_focus command without any pre-configured scope."
commands.deny = ["extension_window_focus"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Automatically generated - DO NOT EDIT!

[[permission]]
identifier = "allow-extension-window-get"
description = "Enables the extension_window_get command without any pre-configured scope."
commands.allow = ["extension_window_get"]

[[permission]]
identifier = "deny-extension-window-get"
description = "Denies the extension_window_get command without any pre-configured scope."
commands.deny = ["extension_window_get"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Automatically generated - DO NOT EDIT!

[[permission]]
identifier = "allow-extension-window-get-current"
description = "Enables the extension_window_get_current command without any pre-configured scope."
commands.allow = ["extension_window_get_current"]

[[permission]]
identifier = "deny-extension-window-get-current"
description = "Denies the extension_window_get_current command without any pre-configured scope."
commands.deny = ["extension_window_get_current"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Automatically generated - DO NOT EDIT!

[[permission]]
identifier = "allow-extension-window-get-current-extension-files"
description = "Enables the extension_window_get_current_extension_files command without any pre-configured scope."
commands.allow = ["extension_window_get_current_extension_files"]

[[permission]]
identifier = "deny-extension-window-get-current-extension-files"
description = "Denies the extension_window_get_current_extension_files command without any pre-configured scope."
commands.deny = ["extension_window_get_current_extension_files"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Automatically generated - DO NOT EDIT!

[[permission]]
identifier = "allow-extension-window-hide"
description = "Enables the extension_window_hide command without any pre-configured scope."
commands.allow = ["extension_window_hide"]

[[permission]]
identifier = "deny-extension-window-hide"
description = "Denies the extension_window_hide command without any pre-configured scope."
commands.deny = ["extension_window_hide"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Automatically generated - DO NOT EDIT!

[[permission]]
identifier = "allow-extension-window-mark-ready"
description = "Enables the extension_window_mark_ready command without any pre-configured scope."
commands.allow = ["extension_window_mark_ready"]

[[permission]]
identifier = "deny-extension-window-mark-ready"
description = "Denies the extension_window_mark_ready command without any pre-configured scope."
commands.deny = ["extension_window_mark_ready"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Automatically generated - DO NOT EDIT!

[[permission]]
identifier = "allow-extension-window-set-position"
description = "Enables the extension_window_set_position command without any pre-configured scope."
commands.allow = ["extension_window_set_position"]

[[permission]]
identifier = "deny-extension-window-set-position"
description = "Denies the extension_window_set_position command without any pre-configured scope."
commands.deny = ["extension_window_set_position"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Automatically generated - DO NOT EDIT!

[[permission]]
identifier = "allow-extension-window-set-size"
description = "Enables the extension_window_set_size command without any pre-configured scope."
commands.allow = ["extension_window_set_size"]

[[permission]]
identifier = "deny-extension-window-set-size"
description = "Denies the extension_window_set_size command without any pre-configured scope."
commands.deny = ["extension_window_set_size"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Automatically generated - DO NOT EDIT!

[[permission]]
identifier = "allow-extension-window-set-title"
description = "Enables the extension_window_set_title command without any pre-configured scope."
commands.allow = ["extension_window_set_title"]

[[permission]]
identifier = "deny-extension-window-set-title"
description = "Denies the extension_window_set_title command without any pre-configured scope."
commands.deny = ["extension_window_set_title"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Automatically generated - DO NOT EDIT!

[[permission]]
identifier = "allow-extension-window-show"
description = "Enables the extension_window_show command without any pre-configured scope."
commands.allow = ["extension_window_show"]

[[permission]]
identifier = "deny-extension-window-show"
description = "Denies the extension_window_show command without any pre-configured scope."
commands.deny = ["extension_window_show"]
Loading