tring-chat 0.1.3 → 0.1.4
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/README.md +29 -0
- package/dist/tring.js +3 -1
- package/dist/web/assets/{index-92UVk_2b.css → index-9gbsSKfr.css} +1 -1
- package/dist/web/assets/{index-CcUEKZj5.js → index-BDyDngHT.js} +10 -10
- package/dist/web/icons/apple-touch-icon.png +0 -0
- package/dist/web/icons/icon-192.png +0 -0
- package/dist/web/icons/icon-512.png +0 -0
- package/dist/web/icons/maskable-512.png +0 -0
- package/dist/web/index.html +12 -3
- package/dist/web/manifest.webmanifest +16 -0
- package/dist/web/sw.js +11 -0
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/web/index.html
CHANGED
|
@@ -2,15 +2,24 @@
|
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
|
6
6
|
<title>tring</title>
|
|
7
|
+
<meta name="theme-color" content="#071411" />
|
|
8
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
|
9
|
+
<!-- iOS installs from these rather than the manifest's icons. -->
|
|
10
|
+
<link rel="apple-touch-icon" href="/icons/apple-touch-icon.png" />
|
|
11
|
+
<meta name="mobile-web-app-capable" content="yes" />
|
|
12
|
+
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
13
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
|
14
|
+
<meta name="apple-mobile-web-app-title" content="tring" />
|
|
7
15
|
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect width='32' height='32' rx='7' fill='%23071a15'/><rect x='11' y='11' width='10' height='10' rx='2' fill='%233ee9a4'/><g fill='%23145f4a'><rect x='4' y='4' width='6' height='6' rx='1.5'/><rect x='13' y='4' width='6' height='6' rx='1.5'/><rect x='22' y='4' width='6' height='6' rx='1.5'/><rect x='4' y='13' width='6' height='6' rx='1.5'/><rect x='22' y='13' width='6' height='6' rx='1.5'/><rect x='4' y='22' width='6' height='6' rx='1.5'/><rect x='13' y='22' width='6' height='6' rx='1.5'/><rect x='22' y='22' width='6' height='6' rx='1.5'/></g></svg>" />
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
9
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
16
|
+
<script type="module" crossorigin src="/assets/index-BDyDngHT.js"></script>
|
|
17
|
+
<link rel="stylesheet" crossorigin href="/assets/index-9gbsSKfr.css">
|
|
10
18
|
</head>
|
|
11
19
|
<body>
|
|
12
20
|
<div id="app">
|
|
13
21
|
<header id="bar"></header>
|
|
22
|
+
<nav id="switcher" hidden></nav>
|
|
14
23
|
<main id="ring"></main>
|
|
15
24
|
<main id="usage" hidden></main>
|
|
16
25
|
</div>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tring",
|
|
3
|
+
"short_name": "tring",
|
|
4
|
+
"description": "A focus-centred terminal deck for agentic work.",
|
|
5
|
+
"start_url": "/",
|
|
6
|
+
"scope": "/",
|
|
7
|
+
"display": "standalone",
|
|
8
|
+
"orientation": "any",
|
|
9
|
+
"background_color": "#040c0a",
|
|
10
|
+
"theme_color": "#071411",
|
|
11
|
+
"icons": [
|
|
12
|
+
{ "src": "/icons/icon-192.png", "sizes": "192x192", "type": "image/png" },
|
|
13
|
+
{ "src": "/icons/icon-512.png", "sizes": "512x512", "type": "image/png" },
|
|
14
|
+
{ "src": "/icons/maskable-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" }
|
|
15
|
+
]
|
|
16
|
+
}
|
package/dist/web/sw.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The service worker exists so every browser treats tring as installable —
|
|
3
|
+
* some still refuse without one — and for nothing else. A terminal deck has
|
|
4
|
+
* no offline mode worth having, and caching index.html would pin a stale
|
|
5
|
+
* bundle across daemon upgrades, so every request goes straight to the daemon.
|
|
6
|
+
*/
|
|
7
|
+
self.addEventListener('install', () => self.skipWaiting())
|
|
8
|
+
self.addEventListener('activate', (event) => event.waitUntil(self.clients.claim()))
|
|
9
|
+
self.addEventListener('fetch', (event) => {
|
|
10
|
+
event.respondWith(fetch(event.request))
|
|
11
|
+
})
|