mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-08-13 22:37:29 +00:00
Add LogicSRC standards MCP server
This commit is contained in:
parent
4e4c78140d
commit
dd150f391a
26 changed files with 2250 additions and 15 deletions
5
apps/commandboard-web/public/icon.svg
Normal file
5
apps/commandboard-web/public/icon.svg
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" role="img" aria-label="CommandBoard.run">
|
||||
<rect width="512" height="512" rx="72" fill="#151515"/>
|
||||
<path fill="#f0c56a" d="M104 116h304v64H104zM104 224h192v64H104zM104 332h304v64H104z"/>
|
||||
<path fill="#5ac8a6" d="M328 214h80v84h-80z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 308 B |
18
apps/commandboard-web/public/manifest.webmanifest
Normal file
18
apps/commandboard-web/public/manifest.webmanifest
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"name": "CommandBoard.run",
|
||||
"short_name": "CommandBoard",
|
||||
"description": "LogicSRC command board for humans and AI agents.",
|
||||
"start_url": "/",
|
||||
"scope": "/",
|
||||
"display": "standalone",
|
||||
"background_color": "#f7f2ea",
|
||||
"theme_color": "#151515",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/icon.svg",
|
||||
"sizes": "any",
|
||||
"type": "image/svg+xml",
|
||||
"purpose": "any maskable"
|
||||
}
|
||||
]
|
||||
}
|
||||
32
apps/commandboard-web/public/service-worker.js
Normal file
32
apps/commandboard-web/public/service-worker.js
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
const CACHE_NAME = "commandboard-shell-v1";
|
||||
const SHELL_ASSETS = ["/", "/manifest.webmanifest", "/icon.svg"];
|
||||
|
||||
self.addEventListener("install", (event) => {
|
||||
event.waitUntil(caches.open(CACHE_NAME).then((cache) => cache.addAll(SHELL_ASSETS)));
|
||||
self.skipWaiting();
|
||||
});
|
||||
|
||||
self.addEventListener("activate", (event) => {
|
||||
event.waitUntil(
|
||||
caches.keys().then((keys) => Promise.all(keys.filter((key) => key !== CACHE_NAME).map((key) => caches.delete(key))))
|
||||
);
|
||||
self.clients.claim();
|
||||
});
|
||||
|
||||
self.addEventListener("fetch", (event) => {
|
||||
if (event.request.method !== "GET") {
|
||||
return;
|
||||
}
|
||||
|
||||
event.respondWith(
|
||||
fetch(event.request)
|
||||
.then((response) => {
|
||||
if (response.ok && new URL(event.request.url).origin === self.location.origin) {
|
||||
const clone = response.clone();
|
||||
caches.open(CACHE_NAME).then((cache) => cache.put(event.request, clone));
|
||||
}
|
||||
return response;
|
||||
})
|
||||
.catch(() => caches.match(event.request).then((cached) => cached || caches.match("/")))
|
||||
);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue