This commit is contained in:
Raj Nandan Sharma
2023-12-12 09:19:58 +05:30
parent 56c7e48fb3
commit 3d7e6a8b35
39 changed files with 185 additions and 102 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{w as u}from"./index.addbbfd3.js";var b;const E=((b=globalThis.__sveltekit_104nufr)==null?void 0:b.base)??"";var h;(h=globalThis.__sveltekit_104nufr)==null||h.assets;const I="sveltekit:snapshot",x="sveltekit:scroll",O="sveltekit:index",c={tap:1,hover:2,viewport:3,eager:4,off:-1},v=location.origin;function T(e){let t=e.baseURI;if(!t){const o=e.getElementsByTagName("base");t=o.length?o[0].href:e.URL}return t}function U(){return{x:pageXOffset,y:pageYOffset}}const d=new WeakSet,p={"preload-code":["","off","tap","hover","viewport","eager"],"preload-data":["","off","tap","hover"],keepfocus:["","true","off","false"],noscroll:["","true","off","false"],reload:["","true","off","false"],replacestate:["","true","off","false"]};function f(e,t){const o=e.getAttribute(`data-sveltekit-${t}`);return S(e,t,o),o}function S(e,t,o){o!==null&&!d.has(e)&&!p[t].includes(o)&&(console.error(`Unexpected value for ${t} — should be one of ${p[t].map(s=>JSON.stringify(s)).join(", ")}`,e),d.add(e))}const _={...c,"":c.hover};function k(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function N(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=k(e)}}function L(e,t){let o;try{o=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const s=e instanceof SVGAElement?e.target.baseVal:e.target,l=!o||!!s||R(o,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),r=(o==null?void 0:o.origin)===v&&e.hasAttribute("download");return{url:o,external:l,target:s,download:r}}function P(e){let t=null,o=null,s=null,l=null,r=null,a=null,n=e;for(;n&&n!==document.documentElement;)s===null&&(s=f(n,"preload-code")),l===null&&(l=f(n,"preload-data")),t===null&&(t=f(n,"keepfocus")),o===null&&(o=f(n,"noscroll")),r===null&&(r=f(n,"reload")),a===null&&(a=f(n,"replacestate")),n=k(n);function i(w){switch(w){case"":case"true":return!0;case"off":case"false":return!1;default:return null}}return{preload_code:_[s??"off"],preload_data:_[l??"off"],keep_focus:i(t),noscroll:i(o),reload:i(r),replace_state:i(a)}}function g(e){const t=u(e);let o=!0;function s(){o=!0,t.update(a=>a)}function l(a){o=!1,t.set(a)}function r(a){let n;return t.subscribe(i=>{(n===void 0||o&&i!==n)&&a(n=i)})}return{notify:s,set:l,subscribe:r}}function A(){const{set:e,subscribe:t}=u(!1);return{subscribe:t,check:async()=>!1}}function R(e,t){return e.origin!==v||!e.pathname.startsWith(t)}function V(e){e.client}const Y={url:g({}),page:g({}),navigating:u(null),updated:A()};export{O as I,c as P,x as S,I as a,L as b,P as c,Y as d,E as e,N as f,T as g,V as h,R as i,v as o,U as s};

View File

@@ -1 +0,0 @@
import{w as u}from"./index.addbbfd3.js";var h;const E=((h=globalThis.__sveltekit_fh8smo)==null?void 0:h.base)??"";var b;(b=globalThis.__sveltekit_fh8smo)==null||b.assets;const I="sveltekit:snapshot",x="sveltekit:scroll",O="sveltekit:index",c={tap:1,hover:2,viewport:3,eager:4,off:-1},v=location.origin;function T(e){let t=e.baseURI;if(!t){const o=e.getElementsByTagName("base");t=o.length?o[0].href:e.URL}return t}function U(){return{x:pageXOffset,y:pageYOffset}}const d=new WeakSet,p={"preload-code":["","off","tap","hover","viewport","eager"],"preload-data":["","off","tap","hover"],keepfocus:["","true","off","false"],noscroll:["","true","off","false"],reload:["","true","off","false"],replacestate:["","true","off","false"]};function f(e,t){const o=e.getAttribute(`data-sveltekit-${t}`);return S(e,t,o),o}function S(e,t,o){o!==null&&!d.has(e)&&!p[t].includes(o)&&(console.error(`Unexpected value for ${t} — should be one of ${p[t].map(s=>JSON.stringify(s)).join(", ")}`,e),d.add(e))}const _={...c,"":c.hover};function k(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function N(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=k(e)}}function L(e,t){let o;try{o=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const s=e instanceof SVGAElement?e.target.baseVal:e.target,l=!o||!!s||R(o,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),r=(o==null?void 0:o.origin)===v&&e.hasAttribute("download");return{url:o,external:l,target:s,download:r}}function P(e){let t=null,o=null,s=null,l=null,r=null,a=null,n=e;for(;n&&n!==document.documentElement;)s===null&&(s=f(n,"preload-code")),l===null&&(l=f(n,"preload-data")),t===null&&(t=f(n,"keepfocus")),o===null&&(o=f(n,"noscroll")),r===null&&(r=f(n,"reload")),a===null&&(a=f(n,"replacestate")),n=k(n);function i(w){switch(w){case"":case"true":return!0;case"off":case"false":return!1;default:return null}}return{preload_code:_[s??"off"],preload_data:_[l??"off"],keep_focus:i(t),noscroll:i(o),reload:i(r),replace_state:i(a)}}function g(e){const t=u(e);let o=!0;function s(){o=!0,t.update(a=>a)}function l(a){o=!1,t.set(a)}function r(a){let n;return t.subscribe(i=>{(n===void 0||o&&i!==n)&&a(n=i)})}return{notify:s,set:l,subscribe:r}}function A(){const{set:e,subscribe:t}=u(!1);return{subscribe:t,check:async()=>!1}}function R(e,t){return e.origin!==v||!e.pathname.startsWith(t)}function V(e){e.client}const Y={url:g({}),page:g({}),navigating:u(null),updated:A()};export{O as I,c as P,x as S,I as a,L as b,P as c,Y as d,E as e,N as f,T as g,V as h,R as i,v as o,U as s};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
import{s as B,B as D,C as O,g as b,l as g,c as R,h as E,i as $,m as w,d as q,k as S,D as k}from"../chunks/scheduler.4b6b5798.js";import{S as H,i as N,d as y,v as P,e as d,a as m,o as C,s as j}from"../chunks/index.7f0074cb.js";import{d as z}from"../chunks/singletons.d002a330.js";const A=()=>{const t=z;return{page:{subscribe:t.page.subscribe},navigating:{subscribe:t.navigating.subscribe},updated:t.updated}},_={subscribe(t){return A().page.subscribe(t)}},x="node_modules/@sveltejs/kit/src/runtime/components/error.svelte";function f(t){var h;let e,i=t[0].status+"",r,l,n,c=((h=t[0].error)==null?void 0:h.message)+"",a;const v={c:function(){e=b("h1"),r=g(i),l=R(),n=b("p"),a=g(c),this.h()},l:function(s){e=E(s,"H1",{});var o=$(e);r=w(o,i),o.forEach(d),l=q(s),n=E(s,"P",{});var p=$(n);a=w(p,c),p.forEach(d),this.h()},h:function(){S(e,x,4,0,57),S(n,x,5,0,81)},m:function(s,o){m(s,e,o),C(e,r),m(s,l,o),m(s,n,o),C(n,a)},p:function(s,[o]){var p;o&1&&i!==(i=s[0].status+"")&&j(r,i),o&1&&c!==(c=((p=s[0].error)==null?void 0:p.message)+"")&&j(a,c)},i:k,o:k,d:function(s){s&&(d(e),d(l),d(n))}};return y("SvelteRegisterBlock",{block:v,id:f.name,type:"component",source:"",ctx:t}),v}function F(t,e,i){let r;D(_,"page"),O(t,_,a=>i(0,r=a));let{$$slots:l={},$$scope:n}=e;P("Error",l,[]);const c=[];return Object.keys(e).forEach(a=>{!~c.indexOf(a)&&a.slice(0,2)!=="$$"&&a!=="slot"&&console.warn(`<Error> was created with unknown prop '${a}'`)}),t.$capture_state=()=>({page:_,$page:r}),[r]}let K=class extends H{constructor(e){super(e),N(this,e,F,f,B,{}),y("SvelteRegisterComponent",{component:this,tagName:"Error",options:e,id:f.name})}};export{K as component};
import{s as B,B as D,C as O,g as b,l as g,c as R,h as E,i as $,m as w,d as q,k as S,D as k}from"../chunks/scheduler.4b6b5798.js";import{S as H,i as N,d as y,v as P,e as d,a as m,o as C,s as j}from"../chunks/index.7f0074cb.js";import{d as z}from"../chunks/singletons.a510d19c.js";const A=()=>{const t=z;return{page:{subscribe:t.page.subscribe},navigating:{subscribe:t.navigating.subscribe},updated:t.updated}},_={subscribe(t){return A().page.subscribe(t)}},x="node_modules/@sveltejs/kit/src/runtime/components/error.svelte";function f(t){var h;let e,i=t[0].status+"",r,l,n,c=((h=t[0].error)==null?void 0:h.message)+"",a;const v={c:function(){e=b("h1"),r=g(i),l=R(),n=b("p"),a=g(c),this.h()},l:function(s){e=E(s,"H1",{});var o=$(e);r=w(o,i),o.forEach(d),l=q(s),n=E(s,"P",{});var p=$(n);a=w(p,c),p.forEach(d),this.h()},h:function(){S(e,x,4,0,57),S(n,x,5,0,81)},m:function(s,o){m(s,e,o),C(e,r),m(s,l,o),m(s,n,o),C(n,a)},p:function(s,[o]){var p;o&1&&i!==(i=s[0].status+"")&&j(r,i),o&1&&c!==(c=((p=s[0].error)==null?void 0:p.message)+"")&&j(a,c)},i:k,o:k,d:function(s){s&&(d(e),d(l),d(n))}};return y("SvelteRegisterBlock",{block:v,id:f.name,type:"component",source:"",ctx:t}),v}function F(t,e,i){let r;D(_,"page"),O(t,_,a=>i(0,r=a));let{$$slots:l={},$$scope:n}=e;P("Error",l,[]);const c=[];return Object.keys(e).forEach(a=>{!~c.indexOf(a)&&a.slice(0,2)!=="$$"&&a!=="slot"&&console.warn(`<Error> was created with unknown prop '${a}'`)}),t.$capture_state=()=>({page:_,$page:r}),[r]}let K=class extends H{constructor(e){super(e),N(this,e,F,f,B,{}),y("SvelteRegisterComponent",{component:this,tagName:"Error",options:e,id:f.name})}};export{K as component};

View File

@@ -1 +1 @@
{"version":"1702311714642"}
{"version":"1702352148179"}

BIN
build/client/confetti.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

View File

@@ -15,11 +15,11 @@ var _layout_server = /*#__PURE__*/Object.freeze({
const index = 0;
let component_cache;
const component = async () => component_cache ??= (await import('./_layout.svelte-de8cb568.js')).default;
const component = async () => component_cache ??= (await import('./_layout.svelte-925daf0b.js')).default;
const server_id = "src/routes/+layout.server.js";
const imports = ["_app/immutable/nodes/0.c4c2df61.js","_app/immutable/chunks/scheduler.4b6b5798.js","_app/immutable/chunks/index.7f0074cb.js","_app/immutable/chunks/index.3ba4103c.js","_app/immutable/chunks/index.df12faee.js","_app/immutable/chunks/index.addbbfd3.js"];
const stylesheets = ["_app/immutable/assets/0.b31e8350.css"];
const imports = ["_app/immutable/nodes/0.5369867e.js","_app/immutable/chunks/scheduler.4b6b5798.js","_app/immutable/chunks/index.7f0074cb.js","_app/immutable/chunks/index.3ba4103c.js","_app/immutable/chunks/index.df12faee.js","_app/immutable/chunks/index.addbbfd3.js"];
const stylesheets = ["_app/immutable/assets/0.d2e53a0b.css"];
const fonts = [];
export { component, fonts, imports, index, _layout_server as server, server_id, stylesheets };
//# sourceMappingURL=0-e63a878b.js.map
//# sourceMappingURL=0-14c42655.js.map

View File

@@ -1 +1 @@
{"version":3,"file":"0-e63a878b.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_layout.server.js","../../../.svelte-kit/adapter-node/nodes/0.js"],"sourcesContent":["import fs from \"fs-extra\";\nimport { p as public_env } from \"../../chunks/shared-server.js\";\nasync function load({ params, route, url }) {\n let site = JSON.parse(fs.readFileSync(public_env.PUBLIC_KENER_FOLDER + \"/site.json\", \"utf8\"));\n return {\n site\n };\n}\nexport {\n load\n};\n","import * as server from '../entries/pages/_layout.server.js';\n\nexport const index = 0;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/+layout.server.js\";\nexport const imports = [\"_app/immutable/nodes/0.c4c2df61.js\",\"_app/immutable/chunks/scheduler.4b6b5798.js\",\"_app/immutable/chunks/index.7f0074cb.js\",\"_app/immutable/chunks/index.3ba4103c.js\",\"_app/immutable/chunks/index.df12faee.js\",\"_app/immutable/chunks/index.addbbfd3.js\"];\nexport const stylesheets = [\"_app/immutable/assets/0.b31e8350.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":";;;AAEA,eAAe,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE;AAC5C,EAAE,IAAI,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,mBAAmB,GAAG,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC;AAChG,EAAE,OAAO;AACT,IAAI,IAAI;AACR,GAAG,CAAC;AACJ;;;;;;;ACLY,MAAC,KAAK,GAAG,EAAE;AACvB,IAAI,eAAe,CAAC;AACR,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,8BAAoC,CAAC,EAAE,QAAQ;AAE1G,MAAC,SAAS,GAAG,+BAA+B;AAC5C,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,yCAAyC,CAAC,yCAAyC,CAAC,yCAAyC,EAAE;AACxQ,MAAC,WAAW,GAAG,CAAC,sCAAsC,EAAE;AACxD,MAAC,KAAK,GAAG;;;;"}
{"version":3,"file":"0-14c42655.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_layout.server.js","../../../.svelte-kit/adapter-node/nodes/0.js"],"sourcesContent":["import fs from \"fs-extra\";\nimport { p as public_env } from \"../../chunks/shared-server.js\";\nasync function load({ params, route, url }) {\n let site = JSON.parse(fs.readFileSync(public_env.PUBLIC_KENER_FOLDER + \"/site.json\", \"utf8\"));\n return {\n site\n };\n}\nexport {\n load\n};\n","import * as server from '../entries/pages/_layout.server.js';\n\nexport const index = 0;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/+layout.server.js\";\nexport const imports = [\"_app/immutable/nodes/0.5369867e.js\",\"_app/immutable/chunks/scheduler.4b6b5798.js\",\"_app/immutable/chunks/index.7f0074cb.js\",\"_app/immutable/chunks/index.3ba4103c.js\",\"_app/immutable/chunks/index.df12faee.js\",\"_app/immutable/chunks/index.addbbfd3.js\"];\nexport const stylesheets = [\"_app/immutable/assets/0.d2e53a0b.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":";;;AAEA,eAAe,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE;AAC5C,EAAE,IAAI,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,mBAAmB,GAAG,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC;AAChG,EAAE,OAAO;AACT,IAAI,IAAI;AACR,GAAG,CAAC;AACJ;;;;;;;ACLY,MAAC,KAAK,GAAG,EAAE;AACvB,IAAI,eAAe,CAAC;AACR,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,8BAAoC,CAAC,EAAE,QAAQ;AAE1G,MAAC,SAAS,GAAG,+BAA+B;AAC5C,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,yCAAyC,CAAC,yCAAyC,CAAC,yCAAyC,EAAE;AACxQ,MAAC,WAAW,GAAG,CAAC,sCAAsC,EAAE;AACxD,MAAC,KAAK,GAAG;;;;"}

View File

@@ -1,9 +1,9 @@
const index = 1;
let component_cache;
const component = async () => component_cache ??= (await import('./error.svelte-da5d7deb.js')).default;
const imports = ["_app/immutable/nodes/1.cab26815.js","_app/immutable/chunks/scheduler.4b6b5798.js","_app/immutable/chunks/index.7f0074cb.js","_app/immutable/chunks/singletons.d002a330.js","_app/immutable/chunks/index.addbbfd3.js"];
const imports = ["_app/immutable/nodes/1.e80f1b1f.js","_app/immutable/chunks/scheduler.4b6b5798.js","_app/immutable/chunks/index.7f0074cb.js","_app/immutable/chunks/singletons.a510d19c.js","_app/immutable/chunks/index.addbbfd3.js"];
const stylesheets = [];
const fonts = [];
export { component, fonts, imports, index, stylesheets };
//# sourceMappingURL=1-1ce72eb9.js.map
//# sourceMappingURL=1-c0679736.js.map

View File

@@ -1 +1 @@
{"version":3,"file":"1-1ce72eb9.js","sources":["../../../.svelte-kit/adapter-node/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.cab26815.js\",\"_app/immutable/chunks/scheduler.4b6b5798.js\",\"_app/immutable/chunks/index.7f0074cb.js\",\"_app/immutable/chunks/singletons.d002a330.js\",\"_app/immutable/chunks/index.addbbfd3.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG,EAAE;AACvB,IAAI,eAAe,CAAC;AACR,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAsC,CAAC,EAAE,QAAQ;AAC5G,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,8CAA8C,CAAC,yCAAyC,EAAE;AACnO,MAAC,WAAW,GAAG,GAAG;AAClB,MAAC,KAAK,GAAG;;;;"}
{"version":3,"file":"1-c0679736.js","sources":["../../../.svelte-kit/adapter-node/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.e80f1b1f.js\",\"_app/immutable/chunks/scheduler.4b6b5798.js\",\"_app/immutable/chunks/index.7f0074cb.js\",\"_app/immutable/chunks/singletons.a510d19c.js\",\"_app/immutable/chunks/index.addbbfd3.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG,EAAE;AACvB,IAAI,eAAe,CAAC;AACR,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAsC,CAAC,EAAE,QAAQ;AAC5G,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,8CAA8C,CAAC,yCAAyC,EAAE;AACnO,MAAC,WAAW,GAAG,GAAG;AAClB,MAAC,KAAK,GAAG;;;;"}

View File

@@ -1,9 +1,9 @@
const index = 3;
let component_cache;
const component = async () => component_cache ??= (await import('./_page.svelte-b614be51.js')).default;
const imports = ["_app/immutable/nodes/3.210ca29d.js","_app/immutable/chunks/scheduler.4b6b5798.js","_app/immutable/chunks/index.7f0074cb.js"];
const component = async () => component_cache ??= (await import('./_page.svelte-c8b8c336.js')).default;
const imports = ["_app/immutable/nodes/3.2ea082d8.js","_app/immutable/chunks/scheduler.4b6b5798.js","_app/immutable/chunks/index.7f0074cb.js"];
const stylesheets = [];
const fonts = [];
export { component, fonts, imports, index, stylesheets };
//# sourceMappingURL=3-964c12a9.js.map
//# sourceMappingURL=3-c848d8a9.js.map

View File

@@ -1 +1 @@
{"version":3,"file":"3-964c12a9.js","sources":["../../../.svelte-kit/adapter-node/nodes/3.js"],"sourcesContent":["\n\nexport const index = 3;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/docs/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/3.210ca29d.js\",\"_app/immutable/chunks/scheduler.4b6b5798.js\",\"_app/immutable/chunks/index.7f0074cb.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG,EAAE;AACvB,IAAI,eAAe,CAAC;AACR,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAuC,CAAC,EAAE,QAAQ;AAC7G,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,6CAA6C,CAAC,yCAAyC,EAAE;AAC1I,MAAC,WAAW,GAAG,GAAG;AAClB,MAAC,KAAK,GAAG;;;;"}
{"version":3,"file":"3-c848d8a9.js","sources":["../../../.svelte-kit/adapter-node/nodes/3.js"],"sourcesContent":["\n\nexport const index = 3;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/docs/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/3.2ea082d8.js\",\"_app/immutable/chunks/scheduler.4b6b5798.js\",\"_app/immutable/chunks/index.7f0074cb.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG,EAAE;AACvB,IAAI,eAAe,CAAC;AACR,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAuC,CAAC,EAAE,QAAQ;AAC7G,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,6CAA6C,CAAC,yCAAyC,EAAE;AAC1I,MAAC,WAAW,GAAG,GAAG;AAClB,MAAC,KAAK,GAAG;;;;"}

View File

@@ -153,7 +153,7 @@ const Nav = create_ssr_component(($$result, $$props, $$bindings, slots) => {
$$bindings.data(data);
return `<div class="one"></div> <header class="relative z-50 w-full "><div class="container flex h-14 items-center"><div class="mr-4 flex blurry-bg "><a${add_attribute("href", data.site.home, 0)} class="mr-6 flex items-center space-x-2"><img${add_attribute("src", data.site.logo, 0)} class="h-5 w-5" alt="" srcset=""> <span class="hidden font-bold sm:inline-block text-[15px] lg:text-base">${escape(data.site.title)}</span></a> <nav class="flex items-center space-x-6 text-sm font-medium">${each(data.site.nav, (navItem) => {
return `<a${add_attribute("href", navItem.url, 0)}>${escape(navItem.name)} </a>`;
})}</nav></div> ${data.site.github ? `<div class="flex flex-1 items-center justify-between space-x-2 sm:space-x-4 md:justify-end"><div class="w-full flex-1 md:w-auto md:flex-none"><a href="${"https://github.com/" + escape(data.site.github.owner, true) + "/" + escape(data.site.github.repo, true)}" class="${escape(buttonVariants({ variant: "ghost" }), true) + " blurry-bg"}">${validate_component(Github$1, "Github").$$render(
})}</nav></div> ${data.site.github && data.site.github.visible ? `<div class="flex flex-1 items-center justify-between space-x-2 sm:space-x-4 md:justify-end"><div class="w-full flex-1 md:w-auto md:flex-none"><a href="${"https://github.com/" + escape(data.site.github.owner, true) + "/" + escape(data.site.github.repo, true)}" class="${escape(buttonVariants({ variant: "ghost" }), true) + " blurry-bg"}">${validate_component(Github$1, "Github").$$render(
$$result,
{
class: "h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all"
@@ -172,4 +172,4 @@ const Layout = create_ssr_component(($$result, $$props, $$bindings, slots) => {
});
export { Layout as default };
//# sourceMappingURL=_layout.svelte-de8cb568.js.map
//# sourceMappingURL=_layout.svelte-925daf0b.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -171,7 +171,7 @@ const options = {
<div class="error">
<span class="status">` + status + '</span>\n <div class="message">\n <h1>' + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
},
version_hash: "fh8smo"
version_hash: "104nufr"
};
function get_hooks() {
return {};

File diff suppressed because one or more lines are too long

View File

@@ -7,15 +7,15 @@ function __memo(fn) {
return {
appDir: "_app",
appPath: "_app",
assets: new Set([".DS_Store","favicon.png","google.png","issue.png","kener/cashfree-payments-day-json.json","kener/cashfree-payments.90day.json","kener/google-search-day-json.json","kener/google-search.90day.json","kener/monitors.json","kener/site.json","kener/svelte-website-day-json.json","kener/svelte-website.90day.json","kener.png","logo.svg","logo_hero.png","robots.txt","ss.png","ss2.png","ss3.png","svelte.svg"]),
mimeTypes: {".png":"image/png",".json":"application/json",".svg":"image/svg+xml",".txt":"text/plain"},
assets: new Set([".DS_Store","confetti.gif","favicon.png","google.png","issue.png","kener/cashfree-payments-day-json.json","kener/cashfree-payments.90day.json","kener/google-search-day-json.json","kener/google-search.90day.json","kener/monitors.json","kener/site.json","kener/svelte-website-day-json.json","kener/svelte-website.90day.json","kener.png","logo.svg","logo_hero.png","robots.txt","ss.png","ss2.png","ss3.png","svelte.svg"]),
mimeTypes: {".gif":"image/gif",".png":"image/png",".json":"application/json",".svg":"image/svg+xml",".txt":"text/plain"},
_: {
client: {"start":"_app/immutable/entry/start.070281a9.js","app":"_app/immutable/entry/app.fa38353e.js","imports":["_app/immutable/entry/start.070281a9.js","_app/immutable/chunks/scheduler.4b6b5798.js","_app/immutable/chunks/singletons.d002a330.js","_app/immutable/chunks/index.addbbfd3.js","_app/immutable/entry/app.fa38353e.js","_app/immutable/chunks/scheduler.4b6b5798.js","_app/immutable/chunks/index.7f0074cb.js"],"stylesheets":[],"fonts":[]},
client: {"start":"_app/immutable/entry/start.31bd023f.js","app":"_app/immutable/entry/app.64de631f.js","imports":["_app/immutable/entry/start.31bd023f.js","_app/immutable/chunks/scheduler.4b6b5798.js","_app/immutable/chunks/singletons.a510d19c.js","_app/immutable/chunks/index.addbbfd3.js","_app/immutable/entry/app.64de631f.js","_app/immutable/chunks/scheduler.4b6b5798.js","_app/immutable/chunks/index.7f0074cb.js"],"stylesheets":[],"fonts":[]},
nodes: [
__memo(() => import('./chunks/0-e63a878b.js')),
__memo(() => import('./chunks/1-1ce72eb9.js')),
__memo(() => import('./chunks/0-14c42655.js')),
__memo(() => import('./chunks/1-c0679736.js')),
__memo(() => import('./chunks/2-771a8b67.js')),
__memo(() => import('./chunks/3-964c12a9.js')),
__memo(() => import('./chunks/3-c848d8a9.js')),
__memo(() => import('./chunks/4-33610416.js'))
],
routes: [
@@ -26,6 +26,13 @@ return {
page: { layouts: [0,], errors: [1,], leaf: 2 },
endpoint: null
},
{
id: "/api/post",
pattern: /^\/api\/post\/?$/,
params: [],
page: null,
endpoint: __memo(() => import('./chunks/_server-fa78ed53.js'))
},
{
id: "/api/today",
pattern: /^\/api\/today\/?$/,
@@ -33,13 +40,6 @@ return {
page: null,
endpoint: __memo(() => import('./chunks/_server-47b10fe6.js'))
},
{
id: "/api/webhook",
pattern: /^\/api\/webhook\/?$/,
params: [],
page: null,
endpoint: __memo(() => import('./chunks/_server-fa78ed53.js'))
},
{
id: "/docs",
pattern: /^\/docs\/?$/,

File diff suppressed because one or more lines are too long

View File

@@ -174,8 +174,8 @@ const OneMinuteFetch = async (envSecrets, folderName, url, method, headers, body
fs.writeFileSync(_90File, JSON.stringify(_90Day, null, 2));
//from originaldata, delete all values older than today
let today = moment().startOf('day').toISOString();
//from originaldata, delete all values older than yesterday
let today = moment().subtract(1, "days").startOf("day").toISOString();
let _0Day = {};
for (const ts in originalData) {
const element = originalData[ts];
@@ -191,7 +191,7 @@ const OneMinuteFetch = async (envSecrets, folderName, url, method, headers, body
});
let sortedDay0 = {};
keys.reverse() //reverse to keep 90days data
.slice(0, 1440) //90days data
.slice(0, 2880) //2days data
.reverse() //reverse to keep 0day data
.forEach((key) => {
sortedDay0[key] = _0Day[key];

View File

@@ -8,8 +8,8 @@ name of each of these objects need to be unique
import fs from "fs-extra";
import yaml from "js-yaml";
import { Cron } from "croner";
import { MONITOR, SITE, FOLDER, FOLDER_MONITOR, FOLDER_SITE, API_TIMEOUT } from "./constants.js";
import { IsValidURL, IsValidHTTPMethod } from "./tool.js";
import { FOLDER, FOLDER_MONITOR, FOLDER_SITE, API_TIMEOUT } from "./constants.js";
import { IsValidURL, IsValidHTTPMethod, LoadMonitorsPath, LoadSitePath } from "./tool.js";
import { OneMinuteFetch } from "./cron-minute.js";
let monitors = [];
let site = {};
@@ -60,8 +60,8 @@ if (!fs.existsSync(FOLDER_MONITOR)) {
const Startup = async () => {
try {
const fileContent = fs.readFileSync(MONITOR, "utf8");
site = yaml.load(fs.readFileSync(SITE, "utf8"));
const fileContent = fs.readFileSync(LoadMonitorsPath(), "utf8");
site = yaml.load(fs.readFileSync(LoadSitePath(), "utf8"));
monitors = yaml.load(fileContent);
} catch (error) {
console.log(error);

View File

@@ -1,7 +1,41 @@
import { MONITOR, SITE} from "./constants.js";
const IsValidURL = function (url) {
return /^(http|https):\/\/[^ "]+$/.test(url);
};
const IsValidHTTPMethod = function (method) {
return /^(GET|POST|PUT|DELETE|HEAD|OPTIONS|PATCH)$/.test(method);
}
export { IsValidURL, IsValidHTTPMethod };
return /^(GET|POST|PUT|DELETE|HEAD|OPTIONS|PATCH)$/.test(method);
};
const LoadMonitorsPath = function () {
const argv = process.argv;
if (!!process.env.MONITOR_YAML_PATH) {
return process.env.MONITOR_YAML_PATH;
}
for (let i = 0; i < argv.length; i++) {
const arg = argv[i];
if (arg === "--monitors") {
return argv[i + 1];
}
}
return MONITOR;
};
const LoadSitePath = function () {
const argv = process.argv;
if (!!process.env.SITE_YAML_PATH) {
return process.env.SITE_YAML_PATH;
}
for (let i = 0; i < argv.length; i++) {
const arg = argv[i];
if (arg === "--site") {
return argv[i + 1];
}
}
return SITE;
};
export { IsValidURL, IsValidHTTPMethod, LoadMonitorsPath, LoadSitePath };

View File

@@ -21,7 +21,7 @@
{/each}
</nav>
</div>
{#if data.site.github}
{#if data.site.github && data.site.github.visible}
<div class="flex flex-1 items-center justify-between space-x-2 sm:space-x-4 md:justify-end">
<div class="w-full flex-1 md:w-auto md:flex-none">
<a href="https://github.com/{data.site.github.owner}/{data.site.github.repo}" class="{buttonVariants({ variant: "ghost" })} blurry-bg">

View File

@@ -1,4 +1,6 @@
# Getting Started
## Requirement
- Node 18
## Clone the repository
```bash
git clone https://github.com/rajnandan1/kener.git
@@ -9,7 +11,11 @@ git clone https://github.com/rajnandan1/kener.git
npm install
```
## Start Kener
## Configs
- Rename `config/site.example.yaml` -> `config/site.yaml`
- Rename `config/monitors.example.yaml` -> `config/monitors.yaml`
## Start Kener Dev
```bash
npm run kener:dev
```
@@ -32,18 +38,38 @@ Kener would be running at PORT 3000. Go to [http://localhost:3000](http://localh
Once you have added the `config/site.yaml` or `config/monitors.yaml` or changed anything in `src/`
```shell
npm i
npm run kener
```
### Changing files inside `src/`
```shell
npm i
npm run kener:build
npm run kener
```
## Custom Deployment
Kener should be run using `prod.js` script. It needs two environment variables `PUBLIC_KENER_FOLDER=./build/client/kener` and `tz=UTC`
Kener should be run using `prod.js` script.
It needs minimum two environment variables `PUBLIC_KENER_FOLDER=./build/client/kener` and `tz=UTC`. We recommend not to change these variables
It also needs to yaml files to work
- site.yaml
- monitors.yaml
By default these are present in `config/`. However you can use different location either passing them as argument or having the path as enviorment variable
### As Enviroment variables
```shell
export MONITOR_YAML_PATH=/your/path/monitors.yaml
export SITE_YAML_PATH=/your/path/site.yaml
```
### As argument to prod.js
```shell
node prod.js --monitors /your/path/monitors.yaml --site /your/path/site.yaml
```
```shell
export PUBLIC_KENER_FOLDER=./build/client/kener
export PUBLIC_KENER_FOLDER=./build/client/kener
export tz=UTC
npm i
npm run build
node prod.js
```
## Github Setup
@@ -63,14 +89,13 @@ There is a folder called `/config`. Inside which there is a `site.yaml` file. Yo
```yaml
title: "Kener"
theme: "dark"
siteURL: "https://kener.netlify.app"
home: "/"
logo: "/logo.svg"
favicon: "/kener.png"
github:
owner: "rajnandan1"
repo: "kener"
visible: true
metaTags:
description: "Your description"
keywords: "keyword1, keyword2"
@@ -80,7 +105,6 @@ nav:
hero:
title: Kener is a Open-Source Status Page System
subtitle: Let your users know what's going on.
```
## title
@@ -364,4 +388,4 @@ Create an issue with two labels `your-monitor-tag` and `status`
![alt text](issue.png "issue")
- Open issues are considered as live incidents.
- Add comments and it will showup in kener.
- Add comments and it will show up in kener.

BIN
static/confetti.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB