@telepath-computer/television 0.1.128 → 0.1.142
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/canonical/v1/components.js +83 -0
- package/dist/canonical/v1/styles.css +0 -2
- package/dist/cli.cjs +2092 -6806
- package/dist/onboarding/television-onboarding/assets/television.svg +71 -0
- package/dist/onboarding/television-onboarding/index.html +203 -0
- package/dist/skills/television/SKILL.md +135 -180
- package/dist/skills/{television-calendar → tv-calendar}/SKILL.md +4 -5
- package/dist/skills/{television-table → tv-table}/SKILL.md +1 -1
- package/dist/skills/{television-theme → tv-theme}/SKILL.md +10 -10
- package/dist/views/markdown/index.html +20 -18
- package/dist/web/assets/artifact-bridge-C9leJZpr.js +1 -0
- package/dist/web/assets/clouds-CAYIArXj.jpg +0 -0
- package/dist/web/assets/favicon-DaYMFRha.svg +71 -0
- package/dist/web/assets/main-DxIXVlLQ.css +1 -0
- package/dist/web/assets/main-L9xlsQn4.js +706 -0
- package/dist/web/assets/urlUnsupported-DBXzijdI.js +1 -0
- package/dist/web/index.html +4 -2
- package/dist/web/views/url-unsupported/index.html +97 -0
- package/package.json +1 -1
- package/dist/web/assets/index-BvBbQr_I.js +0 -709
- package/dist/web/assets/index-C__bLj7I.css +0 -1
- package/dist/web/assets/wallpaper-s-ICws44wH.jpg +0 -0
- /package/dist/skills/{television-calendar → tv-calendar}/calendar.css +0 -0
- /package/dist/skills/{television-calendar → tv-calendar}/calendar.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as a,g as o,h as d}from"./artifact-bridge-C9leJZpr.js";a(window,{reportNavigation:!1});window.addEventListener("message",t=>{t.source===window.parent&&o(t.data)&&l(t.data.url)});window.parent.postMessage({type:d},"*");function l(t,n=document){const e=f(n);if(p(e),t===null){e.targetBlock.hidden=!0,e.desktopApp.hidden=!1;return}const r=g(t);if(e.targetBlock.hidden=!1,e.desktopApp.hidden=!1,e.addressLabel.textContent="This is the URL you're trying to visit:",r){e.targetLink.textContent=t,e.targetLink.href=r.href,e.targetLink.hidden=!1;return}e.plainAddress.textContent=t,e.plainAddress.hidden=!1}function p(t){t.targetLink.removeAttribute("href"),t.targetLink.textContent="",t.targetLink.hidden=!0,t.addressLabel.textContent="",t.plainAddress.textContent="",t.plainAddress.hidden=!0}function g(t){try{const n=new URL(t);return n.protocol!=="http:"&&n.protocol!=="https:"?null:n}catch{return null}}function f(t){const n=t.getElementById("target-block"),e=t.getElementById("address-label"),r=t.getElementById("target-link"),s=t.getElementById("plain-address"),i=t.getElementById("desktop-app");if(!(n instanceof HTMLElement))throw new Error("Missing #target-block");if(!(e instanceof HTMLElement))throw new Error("Missing #address-label");if(!(r instanceof HTMLAnchorElement))throw new Error("Missing #target-link");if(!(s instanceof HTMLElement))throw new Error("Missing #plain-address");if(!(i instanceof HTMLElement))throw new Error("Missing #desktop-app");return{targetBlock:n,addressLabel:e,targetLink:r,plainAddress:s,desktopApp:i}}
|
package/dist/web/index.html
CHANGED
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
|
6
|
+
<link rel="icon" type="image/svg+xml" href="./assets/favicon-DaYMFRha.svg" />
|
|
6
7
|
<title>Television</title>
|
|
7
|
-
<script type="module" crossorigin src="./assets/
|
|
8
|
-
<link rel="
|
|
8
|
+
<script type="module" crossorigin src="./assets/main-L9xlsQn4.js"></script>
|
|
9
|
+
<link rel="modulepreload" crossorigin href="./assets/artifact-bridge-C9leJZpr.js">
|
|
10
|
+
<link rel="stylesheet" crossorigin href="./assets/main-DxIXVlLQ.css">
|
|
9
11
|
</head>
|
|
10
12
|
<body></body>
|
|
11
13
|
</html>
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>External web page</title>
|
|
7
|
+
<style>
|
|
8
|
+
html, body {
|
|
9
|
+
margin: 0;
|
|
10
|
+
min-height: 100%;
|
|
11
|
+
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
12
|
+
color: #222222;
|
|
13
|
+
background: #dadada;
|
|
14
|
+
}
|
|
15
|
+
body {
|
|
16
|
+
display: grid;
|
|
17
|
+
place-items: center;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
min-height: 100vh;
|
|
20
|
+
padding: 24px;
|
|
21
|
+
}
|
|
22
|
+
main {
|
|
23
|
+
width: 100%;
|
|
24
|
+
}
|
|
25
|
+
.content-wrapper {
|
|
26
|
+
max-width: 460px;
|
|
27
|
+
margin: 0 auto;
|
|
28
|
+
}
|
|
29
|
+
h1 {
|
|
30
|
+
margin: 0 0 0.75rem;
|
|
31
|
+
font-size: 1.125rem;
|
|
32
|
+
line-height: 1.25;
|
|
33
|
+
}
|
|
34
|
+
p {
|
|
35
|
+
margin: 0;
|
|
36
|
+
font-size: 0.875rem;
|
|
37
|
+
line-height: 1.45;
|
|
38
|
+
}
|
|
39
|
+
.target-block,
|
|
40
|
+
.desktop-app {
|
|
41
|
+
margin: 1rem 0;
|
|
42
|
+
}
|
|
43
|
+
.address-label {
|
|
44
|
+
margin-bottom: 0.375rem;
|
|
45
|
+
}
|
|
46
|
+
.target-link,
|
|
47
|
+
.plain-address {
|
|
48
|
+
display: inline-block;
|
|
49
|
+
max-width: 100%;
|
|
50
|
+
overflow-wrap: anywhere;
|
|
51
|
+
font-size: 0.875rem;
|
|
52
|
+
}
|
|
53
|
+
.target-link {
|
|
54
|
+
color: #245bb8;
|
|
55
|
+
text-decoration-thickness: 0.08em;
|
|
56
|
+
text-underline-offset: 0.18em;
|
|
57
|
+
}
|
|
58
|
+
.desktop-app {
|
|
59
|
+
}
|
|
60
|
+
code {
|
|
61
|
+
padding: 0.125rem 0.3rem;
|
|
62
|
+
border-radius: 0.35rem;
|
|
63
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
64
|
+
font-size: 0.85em;
|
|
65
|
+
color: #253040;
|
|
66
|
+
background: #cbcbcb;
|
|
67
|
+
user-select: all;
|
|
68
|
+
}
|
|
69
|
+
[hidden] {
|
|
70
|
+
display: none !important;
|
|
71
|
+
}
|
|
72
|
+
</style>
|
|
73
|
+
<script type="module" crossorigin src="../../assets/urlUnsupported-DBXzijdI.js"></script>
|
|
74
|
+
<link rel="modulepreload" crossorigin href="../../assets/artifact-bridge-C9leJZpr.js">
|
|
75
|
+
</head>
|
|
76
|
+
<body>
|
|
77
|
+
<main>
|
|
78
|
+
<div class="content-wrapper">
|
|
79
|
+
<h1>This is an external web page</h1>
|
|
80
|
+
<section id="target-block" class="target-block" hidden>
|
|
81
|
+
<p id="address-label" class="address-label"></p>
|
|
82
|
+
<p><strong><a id="target-link" class="target-link" target="_blank" rel="noopener noreferrer"></a></strong></p>
|
|
83
|
+
<p id="plain-address" class="plain-address" hidden></p>
|
|
84
|
+
</section>
|
|
85
|
+
|
|
86
|
+
<p>Television can't display external web pages directly inside a web browser. You can view external web pages right inside Television with the desktop app.</p>
|
|
87
|
+
|
|
88
|
+
<section id="desktop-app" class="desktop-app" aria-label="Television desktop app" hidden>
|
|
89
|
+
<p>To install the Television desktop app, run this command in your terminal:</p>
|
|
90
|
+
<p><code>npm install -g @telepath-computer/television-desktop</code></p>
|
|
91
|
+
<p>Then launch it with:</p>
|
|
92
|
+
<p><code>tv-desktop</code></p>
|
|
93
|
+
</section>
|
|
94
|
+
</div>
|
|
95
|
+
</main>
|
|
96
|
+
</body>
|
|
97
|
+
</html>
|