spl2dql 0.0.0-stage → 0.1.0

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.
Files changed (44) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +18 -0
  3. package/README.md +82 -2
  4. package/bin/spl2dql.js +20 -0
  5. package/dist/inputs.d.ts +21 -0
  6. package/dist/inputs.js +130 -0
  7. package/dist/main.d.ts +41 -0
  8. package/dist/main.js +650 -0
  9. package/dist/mapping.d.ts +18 -0
  10. package/dist/mapping.js +60 -0
  11. package/dist/report.d.ts +95 -0
  12. package/dist/report.js +285 -0
  13. package/dist/safe-fs.d.ts +7 -0
  14. package/dist/safe-fs.js +81 -0
  15. package/dist/serve/server.d.ts +47 -0
  16. package/dist/serve/server.js +195 -0
  17. package/package.json +64 -3
  18. package/web/404.html +27 -0
  19. package/web/THIRD-PARTY-NOTICES.txt +774 -0
  20. package/web/_headers +26 -0
  21. package/web/assets/BatchView-CJw9TDhQ.js +1 -0
  22. package/web/assets/DashboardsView-gW0FEoq7.js +1 -0
  23. package/web/assets/DropZone-CIbk77sc.js +492 -0
  24. package/web/assets/MappingView-Co21Vkp_.js +14 -0
  25. package/web/assets/ReferenceView-S1R-kCt6.js +2 -0
  26. package/web/assets/atkinson-hyperlegible-mono-latin-ext-wght-normal-CXgNM06D.woff2 +0 -0
  27. package/web/assets/atkinson-hyperlegible-mono-latin-wght-normal-CoA7y8X5.woff2 +0 -0
  28. package/web/assets/atkinson-hyperlegible-next-latin-ext-wght-normal-C6vrW8VD.woff2 +0 -0
  29. package/web/assets/atkinson-hyperlegible-next-latin-wght-normal-BcXVPD7q.woff2 +0 -0
  30. package/web/assets/dict-9ToLi8Te.js +1 -0
  31. package/web/assets/index-BO3AM1fZ.js +46 -0
  32. package/web/assets/index-DPywAY6M.css +2 -0
  33. package/web/assets/jsx-runtime-Wy9s6hX0.js +1 -0
  34. package/web/assets/mapping-text-B64_Oh2A.js +106 -0
  35. package/web/assets/translate.worker-C2M3Sf23.js +656 -0
  36. package/web/icon-180.png +0 -0
  37. package/web/icon-192.png +0 -0
  38. package/web/icon-512.png +0 -0
  39. package/web/icon.svg +1 -0
  40. package/web/index.html +63 -0
  41. package/web/manifest.webmanifest +15 -0
  42. package/web/robots.txt +2 -0
  43. package/web/social.png +0 -0
  44. package/web/sw.js +24 -0
Binary file
Binary file
Binary file
package/web/icon.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="12" fill="#17232B"/><path d="M14 18h12M14 32h12M14 46h12" stroke="#E6ECEA" stroke-width="5" stroke-linecap="round"/><path d="M38 18h12M38 32h12M38 46h12" stroke="#4FB8C2" stroke-width="5" stroke-linecap="round"/><path d="M27 18c6 0 5 14 10 14M27 32c6 0 5 14 10 14M27 46c4 0 4-28 10-28" stroke="#E0A64A" stroke-width="2.5" fill="none" stroke-linecap="round"/></svg>
package/web/index.html ADDED
@@ -0,0 +1,63 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data:; font-src 'self'; connect-src 'none'; worker-src 'self'; manifest-src 'self'; object-src 'none'; base-uri 'none'; form-action 'none'; require-trusted-types-for 'script'; trusted-types spl2dql">
5
+ <meta charset="utf-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1">
7
+ <meta name="referrer" content="no-referrer">
8
+ <meta name="color-scheme" content="light dark">
9
+ <meta name="theme-color" content="#EEF1F0" media="(prefers-color-scheme: light)">
10
+ <meta name="theme-color" content="#1A2227" media="(prefers-color-scheme: dark)">
11
+ <title>spl2dql: Splunk searches to Dynatrace DQL</title>
12
+ <meta name="description" content="Translates Splunk searches to Dynatrace DQL, dashboards included. Open source. Runs in your browser; nothing is uploaded.">
13
+ <link rel="canonical" href="https://spl2dql.pages.dev/">
14
+ <meta property="og:type" content="website">
15
+ <meta property="og:site_name" content="spl2dql">
16
+ <meta property="og:title" content="spl2dql: Splunk searches to Dynatrace DQL">
17
+ <meta property="og:description" content="Translates Splunk searches to Dynatrace DQL, dashboards included. Open source. Runs in your browser; nothing is uploaded.">
18
+ <meta property="og:url" content="https://spl2dql.pages.dev/">
19
+ <meta property="og:image" content="https://spl2dql.pages.dev/social.png">
20
+ <meta property="og:image:width" content="1200">
21
+ <meta property="og:image:height" content="630">
22
+ <meta property="og:image:alt" content="A Splunk search on the left joined stage by stage to the Dynatrace DQL it becomes on the right.">
23
+ <meta name="twitter:card" content="summary_large_image">
24
+ <meta name="twitter:title" content="spl2dql: Splunk searches to Dynatrace DQL">
25
+ <meta name="twitter:description" content="Translates Splunk searches to Dynatrace DQL, dashboards included. Runs in your browser; nothing is uploaded.">
26
+ <meta name="twitter:image" content="https://spl2dql.pages.dev/social.png">
27
+ <meta name="twitter:image:alt" content="A Splunk search on the left joined stage by stage to the Dynatrace DQL it becomes on the right.">
28
+ <link rel="manifest" href="./manifest.webmanifest">
29
+ <link rel="icon" href="./icon.svg" type="image/svg+xml">
30
+ <link rel="apple-touch-icon" href="./icon-180.png">
31
+ <script type="module" crossorigin src="./assets/index-BO3AM1fZ.js"></script>
32
+ <link rel="modulepreload" crossorigin href="./assets/jsx-runtime-Wy9s6hX0.js">
33
+ <link rel="stylesheet" crossorigin href="./assets/index-DPywAY6M.css">
34
+ </head>
35
+ <body>
36
+ <!-- Static shell: painted before the script runs, replaced by the app (components/Header.tsx). -->
37
+ <div id="root">
38
+ <div class="flex h-full flex-col">
39
+ <header class="app-header">
40
+ <h1 class="app-name">spl2dql</h1>
41
+ <p class="app-line">Translates Splunk searches to Dynatrace DQL, dashboards included.</p>
42
+ <nav aria-label="Views" class="app-nav">
43
+ <a href="./" class="control nav-link">Translate</a>
44
+ <a href="#/batch" class="control nav-link quiet">Batch</a>
45
+ <a href="#/dashboards" class="control nav-link quiet">Dashboards</a>
46
+ <a href="#/mapping" class="control nav-link quiet">Mapping</a>
47
+ <a href="#/reference" class="control nav-link quiet">Reference</a>
48
+ </nav>
49
+ <div class="app-tools" aria-hidden="true">
50
+ <span class="control quiet"><span class="mark-exact">●</span>Runs in your browser</span>
51
+ <span class="control quiet icon-button"></span>
52
+ <span class="control quiet icon-button"></span>
53
+ </div>
54
+ </header>
55
+ <main class="min-h-0 flex-1">
56
+ <noscript>
57
+ <p class="px-4 py-6 text-sm">spl2dql needs JavaScript: the translation runs in this page, in your browser. Turn JavaScript on for this site to use it.</p>
58
+ </noscript>
59
+ </main>
60
+ </div>
61
+ </div>
62
+ </body>
63
+ </html>
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "spl2dql",
3
+ "short_name": "spl2dql",
4
+ "description": "Translates Splunk searches to Dynatrace DQL, dashboards included. Runs in your browser.",
5
+ "start_url": "./",
6
+ "scope": "./",
7
+ "display": "standalone",
8
+ "background_color": "#EEF1F0",
9
+ "theme_color": "#EEF1F0",
10
+ "icons": [
11
+ { "src": "./icon.svg", "sizes": "any", "type": "image/svg+xml", "purpose": "any" },
12
+ { "src": "./icon-192.png", "sizes": "192x192", "type": "image/png", "purpose": "any" },
13
+ { "src": "./icon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "any" }
14
+ ]
15
+ }
package/web/robots.txt ADDED
@@ -0,0 +1,2 @@
1
+ User-agent: *
2
+ Allow: /
package/web/social.png ADDED
Binary file
package/web/sw.js ADDED
@@ -0,0 +1,24 @@
1
+ // Generated at build time. Precaches the app so it starts with no connection.
2
+ const CACHE = 'spl2dql-c5565564c8df';
3
+ const ASSETS = ["./","./THIRD-PARTY-NOTICES.txt","./assets/BatchView-CJw9TDhQ.js","./assets/DashboardsView-gW0FEoq7.js","./assets/DropZone-CIbk77sc.js","./assets/MappingView-Co21Vkp_.js","./assets/ReferenceView-S1R-kCt6.js","./assets/atkinson-hyperlegible-mono-latin-ext-wght-normal-CXgNM06D.woff2","./assets/atkinson-hyperlegible-mono-latin-wght-normal-CoA7y8X5.woff2","./assets/atkinson-hyperlegible-next-latin-ext-wght-normal-C6vrW8VD.woff2","./assets/atkinson-hyperlegible-next-latin-wght-normal-BcXVPD7q.woff2","./assets/dict-9ToLi8Te.js","./assets/index-BO3AM1fZ.js","./assets/index-DPywAY6M.css","./assets/jsx-runtime-Wy9s6hX0.js","./assets/mapping-text-B64_Oh2A.js","./assets/translate.worker-C2M3Sf23.js","./icon-180.png","./icon-192.png","./icon-512.png","./icon.svg","./manifest.webmanifest"];
4
+ // ignoreVary: a module script asks with an Origin header the precache request did not have.
5
+ const own = (request) => caches.open(CACHE).then((c) => c.match(request, { ignoreVary: true }));
6
+ self.addEventListener('install', (e) => {
7
+ e.waitUntil(caches.open(CACHE).then((c) => c.addAll(ASSETS)).then(() => self.skipWaiting()));
8
+ });
9
+ self.addEventListener('activate', (e) => {
10
+ e.waitUntil(
11
+ caches.keys()
12
+ .then((keys) => Promise.all(keys.filter((k) => k.startsWith('spl2dql-') && k !== CACHE).map((k) => caches.delete(k))))
13
+ .then(() => self.clients.claim()),
14
+ );
15
+ });
16
+ self.addEventListener('fetch', (e) => {
17
+ const url = new URL(e.request.url);
18
+ if (e.request.method !== 'GET' || url.origin !== self.location.origin) return;
19
+ if (e.request.mode === 'navigate') {
20
+ e.respondWith(fetch(e.request).catch(() => own('./')));
21
+ return;
22
+ }
23
+ e.respondWith(own(e.request).then((hit) => hit || fetch(e.request)));
24
+ });