diff --git a/package-lock.json b/package-lock.json
index 56d5427..a60fb64 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -3555,6 +3555,22 @@
}
}
},
+ "node_modules/eslint-plugin-tailwindcss": {
+ "version": "3.14.2",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-tailwindcss/-/eslint-plugin-tailwindcss-3.14.2.tgz",
+ "integrity": "sha512-fNzdf4poZP2yQC0xC2prQxMuArMSb5mnellLQvwb9HC3NcLzxs+0IVKWIg1BqUqyui0c+bbjMmhWcKUWK67SLQ==",
+ "dev": true,
+ "dependencies": {
+ "fast-glob": "^3.2.5",
+ "postcss": "^8.4.4"
+ },
+ "engines": {
+ "node": ">=12.13.0"
+ },
+ "peerDependencies": {
+ "tailwindcss": "^3.4.0"
+ }
+ },
"node_modules/eslint-scope": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz",
@@ -10252,9 +10268,11 @@
"autoprefixer": "^10.4.17",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
+ "eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-svelte": "^2.35.1",
+ "eslint-plugin-tailwindcss": "^3.14.2",
"postcss": "^8.4.33",
- "prettier": "^3.1.1",
+ "prettier": "^3.2.5",
"prettier-plugin-svelte": "^3.1.2",
"svelte": "^4.2.7",
"svelte-check": "^3.6.0",
@@ -11218,6 +11236,36 @@
"eslint": ">=7.0.0"
}
},
+ "packages/landing/node_modules/eslint-plugin-prettier": {
+ "version": "5.1.3",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.1.3.tgz",
+ "integrity": "sha512-C9GCVAs4Eq7ZC/XFQHITLiHJxQngdtraXaM+LoUFoFp/lHNl2Zn8f3WQbe9HvTBBQ9YnKFB0/2Ajdqwo5D1EAw==",
+ "dev": true,
+ "dependencies": {
+ "prettier-linter-helpers": "^1.0.0",
+ "synckit": "^0.8.6"
+ },
+ "engines": {
+ "node": "^14.18.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint-plugin-prettier"
+ },
+ "peerDependencies": {
+ "@types/eslint": ">=8.0.0",
+ "eslint": ">=8.0.0",
+ "eslint-config-prettier": "*",
+ "prettier": ">=3.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/eslint": {
+ "optional": true
+ },
+ "eslint-config-prettier": {
+ "optional": true
+ }
+ }
+ },
"packages/landing/node_modules/estree-walker": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",
@@ -11306,9 +11354,9 @@
}
},
"packages/landing/node_modules/prettier": {
- "version": "3.2.4",
- "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.4.tgz",
- "integrity": "sha512-FWu1oLHKCrtpO1ypU6J0SbK2d9Ckwysq6bHj/uaCP26DxrPpppCLQRGVuqAxSTvhF00AcvDRyYrLNW7ocBhFFQ==",
+ "version": "3.2.5",
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz",
+ "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==",
"dev": true,
"bin": {
"prettier": "bin/prettier.cjs"
diff --git a/packages/app/.gitignore b/packages/app/.gitignore
new file mode 100644
index 0000000..0138769
--- /dev/null
+++ b/packages/app/.gitignore
@@ -0,0 +1,11 @@
+node_modules/
+ssl/
+dist/
+.svelte-kit/
+.npmrc
+yarn-error.log
+.DS_Store
+.tmp.package.json
+coverage
+publish
+build
\ No newline at end of file
diff --git a/packages/app/.svelte-kit/ambient.d.ts b/packages/app/.svelte-kit/ambient.d.ts
deleted file mode 100644
index 6adf8bc..0000000
--- a/packages/app/.svelte-kit/ambient.d.ts
+++ /dev/null
@@ -1,257 +0,0 @@
-
-// this file is generated — do not edit it
-
-
-///
${escape($page.error?.message)}
`; -}); - -export { Error$1 as default }; -//# sourceMappingURL=error.svelte-c8a1270c.js.map diff --git a/packages/app/build/server/chunks/error.svelte-c8a1270c.js.map b/packages/app/build/server/chunks/error.svelte-c8a1270c.js.map deleted file mode 100644 index 366812b..0000000 --- a/packages/app/build/server/chunks/error.svelte-c8a1270c.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"error.svelte-c8a1270c.js","sources":["../../../.svelte-kit/adapter-node/entries/fallbacks/error.svelte.js"],"sourcesContent":["import { g as getContext, c as create_ssr_component, f as subscribe, h as escape } from \"../../chunks/index.js\";\nconst getStores = () => {\n const stores = getContext(\"__svelte__\");\n return {\n /** @type {typeof page} */\n page: {\n subscribe: stores.page.subscribe\n },\n /** @type {typeof navigating} */\n navigating: {\n subscribe: stores.navigating.subscribe\n },\n /** @type {typeof updated} */\n updated: stores.updated\n };\n};\nconst page = {\n subscribe(fn) {\n const store = getStores().page;\n return store.subscribe(fn);\n }\n};\nconst Error$1 = create_ssr_component(($$result, $$props, $$bindings, slots) => {\n let $page, $$unsubscribe_page;\n $$unsubscribe_page = subscribe(page, (value) => $page = value);\n $$unsubscribe_page();\n return `${escape($page.error?.message)}
`;\n});\nexport {\n Error$1 as default\n};\n"],"names":[],"mappings":";;AACA,MAAM,SAAS,GAAG,MAAM;AACxB,EAAE,MAAM,MAAM,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC;AAC1C,EAAE,OAAO;AACT;AACA,IAAI,IAAI,EAAE;AACV,MAAM,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,SAAS;AACtC,KAAK;AACL;AACA,IAAI,UAAU,EAAE;AAChB,MAAM,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC,SAAS;AAC5C,KAAK;AACL;AACA,IAAI,OAAO,EAAE,MAAM,CAAC,OAAO;AAC3B,GAAG,CAAC;AACJ,CAAC,CAAC;AACF,MAAM,IAAI,GAAG;AACb,EAAE,SAAS,CAAC,EAAE,EAAE;AAChB,IAAI,MAAM,KAAK,GAAG,SAAS,EAAE,CAAC,IAAI,CAAC;AACnC,IAAI,OAAO,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;AAC/B,GAAG;AACH,CAAC,CAAC;AACG,MAAC,OAAO,GAAG,oBAAoB,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,KAAK;AAC/E,EAAE,IAAI,KAAK,EAAE,kBAAkB,CAAC;AAChC,EAAE,kBAAkB,GAAG,SAAS,CAAC,IAAI,EAAE,CAAC,KAAK,KAAK,KAAK,GAAG,KAAK,CAAC,CAAC;AACjE,EAAE,kBAAkB,EAAE,CAAC;AACvB,EAAE,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AACrC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;AACxC,CAAC;;;;"} \ No newline at end of file diff --git a/packages/app/build/server/chunks/index-635622e3.js b/packages/app/build/server/chunks/index-635622e3.js deleted file mode 100644 index 1eb3530..0000000 --- a/packages/app/build/server/chunks/index-635622e3.js +++ /dev/null @@ -1,254 +0,0 @@ -function noop() { -} -function run(fn) { - return fn(); -} -function blank_object() { - return /* @__PURE__ */ Object.create(null); -} -function run_all(fns) { - fns.forEach(run); -} -function safe_not_equal(a, b) { - return a != a ? b == b : a !== b || (a && typeof a === "object" || typeof a === "function"); -} -function subscribe(store, ...callbacks) { - if (store == null) { - return noop; - } - const unsub = store.subscribe(...callbacks); - return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub; -} -function compute_rest_props(props, keys) { - const rest = {}; - keys = new Set(keys); - for (const k in props) - if (!keys.has(k) && k[0] !== "$") - rest[k] = props[k]; - return rest; -} -function compute_slots(slots) { - const result = {}; - for (const key in slots) { - result[key] = true; - } - return result; -} -function custom_event(type, detail, { bubbles = false, cancelable = false } = {}) { - const e = document.createEvent("CustomEvent"); - e.initCustomEvent(type, bubbles, cancelable, detail); - return e; -} -let current_component; -function set_current_component(component) { - current_component = component; -} -function get_current_component() { - if (!current_component) - throw new Error("Function called outside component initialization"); - return current_component; -} -function createEventDispatcher() { - const component = get_current_component(); - return (type, detail, { cancelable = false } = {}) => { - const callbacks = component.$$.callbacks[type]; - if (callbacks) { - const event = custom_event(type, detail, { cancelable }); - callbacks.slice().forEach((fn) => { - fn.call(component, event); - }); - return !event.defaultPrevented; - } - return true; - }; -} -function setContext(key, context) { - get_current_component().$$.context.set(key, context); - return context; -} -function getContext(key) { - return get_current_component().$$.context.get(key); -} -const _boolean_attributes = [ - "allowfullscreen", - "allowpaymentrequest", - "async", - "autofocus", - "autoplay", - "checked", - "controls", - "default", - "defer", - "disabled", - "formnovalidate", - "hidden", - "inert", - "ismap", - "loop", - "multiple", - "muted", - "nomodule", - "novalidate", - "open", - "playsinline", - "readonly", - "required", - "reversed", - "selected" -]; -const boolean_attributes = /* @__PURE__ */ new Set([..._boolean_attributes]); -const void_element_names = /^(?:area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)$/; -function is_void(name) { - return void_element_names.test(name) || name.toLowerCase() === "!doctype"; -} -const invalid_attribute_name_character = /[\s'">/=\u{FDD0}-\u{FDEF}\u{FFFE}\u{FFFF}\u{1FFFE}\u{1FFFF}\u{2FFFE}\u{2FFFF}\u{3FFFE}\u{3FFFF}\u{4FFFE}\u{4FFFF}\u{5FFFE}\u{5FFFF}\u{6FFFE}\u{6FFFF}\u{7FFFE}\u{7FFFF}\u{8FFFE}\u{8FFFF}\u{9FFFE}\u{9FFFF}\u{AFFFE}\u{AFFFF}\u{BFFFE}\u{BFFFF}\u{CFFFE}\u{CFFFF}\u{DFFFE}\u{DFFFF}\u{EFFFE}\u{EFFFF}\u{FFFFE}\u{FFFFF}\u{10FFFE}\u{10FFFF}]/u; -function spread(args, attrs_to_add) { - const attributes = Object.assign({}, ...args); - if (attrs_to_add) { - const classes_to_add = attrs_to_add.classes; - const styles_to_add = attrs_to_add.styles; - if (classes_to_add) { - if (attributes.class == null) { - attributes.class = classes_to_add; - } else { - attributes.class += " " + classes_to_add; - } - } - if (styles_to_add) { - if (attributes.style == null) { - attributes.style = style_object_to_string(styles_to_add); - } else { - attributes.style = style_object_to_string(merge_ssr_styles(attributes.style, styles_to_add)); - } - } - } - let str = ""; - Object.keys(attributes).forEach((name) => { - if (invalid_attribute_name_character.test(name)) - return; - const value = attributes[name]; - if (value === true) - str += " " + name; - else if (boolean_attributes.has(name.toLowerCase())) { - if (value) - str += " " + name; - } else if (value != null) { - str += ` ${name}="${value}"`; - } - }); - return str; -} -function merge_ssr_styles(style_attribute, style_directive) { - const style_object = {}; - for (const individual_style of style_attribute.split(";")) { - const colon_index = individual_style.indexOf(":"); - const name = individual_style.slice(0, colon_index).trim(); - const value = individual_style.slice(colon_index + 1).trim(); - if (!name) - continue; - style_object[name] = value; - } - for (const name in style_directive) { - const value = style_directive[name]; - if (value) { - style_object[name] = value; - } else { - delete style_object[name]; - } - } - return style_object; -} -const ATTR_REGEX = /[&"]/g; -const CONTENT_REGEX = /[&<]/g; -function escape(value, is_attr = false) { - const str = String(value); - const pattern = is_attr ? ATTR_REGEX : CONTENT_REGEX; - pattern.lastIndex = 0; - let escaped = ""; - let last = 0; - while (pattern.test(str)) { - const i = pattern.lastIndex - 1; - const ch = str[i]; - escaped += str.substring(last, i) + (ch === "&" ? "&" : ch === '"' ? """ : "<"); - last = i + 1; - } - return escaped + str.substring(last); -} -function escape_attribute_value(value) { - const should_escape = typeof value === "string" || value && typeof value === "object"; - return should_escape ? escape(value, true) : value; -} -function escape_object(obj) { - const result = {}; - for (const key in obj) { - result[key] = escape_attribute_value(obj[key]); - } - return result; -} -function each(items, fn) { - let str = ""; - for (let i = 0; i < items.length; i += 1) { - str += fn(items[i], i); - } - return str; -} -const missing_component = { - $$render: () => "" -}; -function validate_component(component, name) { - if (!component || !component.$$render) { - if (name === "svelte:component") - name += " this={...}"; - throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules. Otherwise you may need to fix a <${name}>.`); - } - return component; -} -let on_destroy; -function create_ssr_component(fn) { - function $$render(result, props, bindings, slots, context) { - const parent_component = current_component; - const $$ = { - on_destroy, - context: new Map(context || (parent_component ? parent_component.$$.context : [])), - // these will be immediately discarded - on_mount: [], - before_update: [], - after_update: [], - callbacks: blank_object() - }; - set_current_component({ $$ }); - const html = fn(result, props, bindings, slots); - set_current_component(parent_component); - return html; - } - return { - render: (props = {}, { $$slots = {}, context = /* @__PURE__ */ new Map() } = {}) => { - on_destroy = []; - const result = { title: "", head: "", css: /* @__PURE__ */ new Set() }; - const html = $$render(result, props, {}, $$slots, context); - run_all(on_destroy); - return { - html, - css: { - code: Array.from(result.css).map((css) => css.code).join("\n"), - map: null - // TODO - }, - head: result.title + result.head - }; - }, - $$render - }; -} -function add_attribute(name, value, boolean) { - if (value == null || boolean && !value) - return ""; - const assignment = boolean && value === true ? "" : `="${escape(value, true)}"`; - return ` ${name}${assignment}`; -} -function style_object_to_string(style_object) { - return Object.keys(style_object).filter((key) => style_object[key]).map((key) => `${key}: ${escape_attribute_value(style_object[key])};`).join(" "); -} - -export { safe_not_equal as a, compute_rest_props as b, create_ssr_component as c, spread as d, escape_object as e, subscribe as f, escape as g, getContext as h, escape_attribute_value as i, is_void as j, add_attribute as k, createEventDispatcher as l, missing_component as m, noop as n, each as o, compute_slots as p, setContext as s, validate_component as v }; -//# sourceMappingURL=index-635622e3.js.map diff --git a/packages/app/build/server/chunks/index-635622e3.js.map b/packages/app/build/server/chunks/index-635622e3.js.map deleted file mode 100644 index 6029d98..0000000 --- a/packages/app/build/server/chunks/index-635622e3.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index-635622e3.js","sources":["../../../.svelte-kit/adapter-node/chunks/index.js"],"sourcesContent":["function noop() {\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return /* @__PURE__ */ Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || (a && typeof a === \"object\" || typeof a === \"function\");\n}\nfunction subscribe(store, ...callbacks) {\n if (store == null) {\n return noop;\n }\n const unsub = store.subscribe(...callbacks);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction compute_rest_props(props, keys) {\n const rest = {};\n keys = new Set(keys);\n for (const k in props)\n if (!keys.has(k) && k[0] !== \"$\")\n rest[k] = props[k];\n return rest;\n}\nfunction compute_slots(slots) {\n const result = {};\n for (const key in slots) {\n result[key] = true;\n }\n return result;\n}\nfunction custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {\n const e = document.createEvent(\"CustomEvent\");\n e.initCustomEvent(type, bubbles, cancelable, detail);\n return e;\n}\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error(\"Function called outside component initialization\");\n return current_component;\n}\nfunction createEventDispatcher() {\n const component = get_current_component();\n return (type, detail, { cancelable = false } = {}) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n const event = custom_event(type, detail, { cancelable });\n callbacks.slice().forEach((fn) => {\n fn.call(component, event);\n });\n return !event.defaultPrevented;\n }\n return true;\n };\n}\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n return context;\n}\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\nconst _boolean_attributes = [\n \"allowfullscreen\",\n \"allowpaymentrequest\",\n \"async\",\n \"autofocus\",\n \"autoplay\",\n \"checked\",\n \"controls\",\n \"default\",\n \"defer\",\n \"disabled\",\n \"formnovalidate\",\n \"hidden\",\n \"inert\",\n \"ismap\",\n \"loop\",\n \"multiple\",\n \"muted\",\n \"nomodule\",\n \"novalidate\",\n \"open\",\n \"playsinline\",\n \"readonly\",\n \"required\",\n \"reversed\",\n \"selected\"\n];\nconst boolean_attributes = /* @__PURE__ */ new Set([..._boolean_attributes]);\nconst void_element_names = /^(?:area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)$/;\nfunction is_void(name) {\n return void_element_names.test(name) || name.toLowerCase() === \"!doctype\";\n}\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\nfunction spread(args, attrs_to_add) {\n const attributes = Object.assign({}, ...args);\n if (attrs_to_add) {\n const classes_to_add = attrs_to_add.classes;\n const styles_to_add = attrs_to_add.styles;\n if (classes_to_add) {\n if (attributes.class == null) {\n attributes.class = classes_to_add;\n } else {\n attributes.class += \" \" + classes_to_add;\n }\n }\n if (styles_to_add) {\n if (attributes.style == null) {\n attributes.style = style_object_to_string(styles_to_add);\n } else {\n attributes.style = style_object_to_string(merge_ssr_styles(attributes.style, styles_to_add));\n }\n }\n }\n let str = \"\";\n Object.keys(attributes).forEach((name) => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === true)\n str += \" \" + name;\n else if (boolean_attributes.has(name.toLowerCase())) {\n if (value)\n str += \" \" + name;\n } else if (value != null) {\n str += ` ${name}=\"${value}\"`;\n }\n });\n return str;\n}\nfunction merge_ssr_styles(style_attribute, style_directive) {\n const style_object = {};\n for (const individual_style of style_attribute.split(\";\")) {\n const colon_index = individual_style.indexOf(\":\");\n const name = individual_style.slice(0, colon_index).trim();\n const value = individual_style.slice(colon_index + 1).trim();\n if (!name)\n continue;\n style_object[name] = value;\n }\n for (const name in style_directive) {\n const value = style_directive[name];\n if (value) {\n style_object[name] = value;\n } else {\n delete style_object[name];\n }\n }\n return style_object;\n}\nconst ATTR_REGEX = /[&\"]/g;\nconst CONTENT_REGEX = /[&<]/g;\nfunction escape(value, is_attr = false) {\n const str = String(value);\n const pattern = is_attr ? ATTR_REGEX : CONTENT_REGEX;\n pattern.lastIndex = 0;\n let escaped = \"\";\n let last = 0;\n while (pattern.test(str)) {\n const i = pattern.lastIndex - 1;\n const ch = str[i];\n escaped += str.substring(last, i) + (ch === \"&\" ? \"&\" : ch === '\"' ? \""\" : \"<\");\n last = i + 1;\n }\n return escaped + str.substring(last);\n}\nfunction escape_attribute_value(value) {\n const should_escape = typeof value === \"string\" || value && typeof value === \"object\";\n return should_escape ? escape(value, true) : value;\n}\nfunction escape_object(obj) {\n const result = {};\n for (const key in obj) {\n result[key] = escape_attribute_value(obj[key]);\n }\n return result;\n}\nfunction each(items, fn) {\n let str = \"\";\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => \"\"\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === \"svelte:component\")\n name += \" this={...}\";\n throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules. Otherwise you may need to fix a <${name}>.`);\n }\n return component;\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots, context) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(context || (parent_component ? parent_component.$$.context : [])),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, { $$slots = {}, context = /* @__PURE__ */ new Map() } = {}) => {\n on_destroy = [];\n const result = { title: \"\", head: \"\", css: /* @__PURE__ */ new Set() };\n const html = $$render(result, props, {}, $$slots, context);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map((css) => css.code).join(\"\\n\"),\n map: null\n // TODO\n },\n head: result.title + result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || boolean && !value)\n return \"\";\n const assignment = boolean && value === true ? \"\" : `=\"${escape(value, true)}\"`;\n return ` ${name}${assignment}`;\n}\nfunction style_object_to_string(style_object) {\n return Object.keys(style_object).filter((key) => style_object[key]).map((key) => `${key}: ${escape_attribute_value(style_object[key])};`).join(\" \");\n}\nexport {\n setContext as a,\n compute_rest_props as b,\n create_ssr_component as c,\n spread as d,\n escape_object as e,\n subscribe as f,\n getContext as g,\n escape as h,\n escape_attribute_value as i,\n add_attribute as j,\n is_void as k,\n compute_slots as l,\n missing_component as m,\n noop as n,\n createEventDispatcher as o,\n each as p,\n safe_not_equal as s,\n validate_component as v\n};\n"],"names":[],"mappings":"AAAA,SAAS,IAAI,GAAG;AAChB,CAAC;AACD,SAAS,GAAG,CAAC,EAAE,EAAE;AACjB,EAAE,OAAO,EAAE,EAAE,CAAC;AACd,CAAC;AACD,SAAS,YAAY,GAAG;AACxB,EAAE,uBAAuB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC7C,CAAC;AACD,SAAS,OAAO,CAAC,GAAG,EAAE;AACtB,EAAE,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AACnB,CAAC;AACD,SAAS,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE;AAC9B,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,OAAO,CAAC,KAAK,UAAU,CAAC,CAAC;AAC9F,CAAC;AACD,SAAS,SAAS,CAAC,KAAK,EAAE,GAAG,SAAS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AC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AAClF,EAAE,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC;AACjC,CAAC;AACD,SAAS,sBAAsB,CAAC,YAAY,EAAE;AAC9C,EAAE,OAAO,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,KAAK,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,EAAE,GAAG,CAAC,EAAE,EAAE,sBAAsB,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACtJ;;;;"} \ No newline at end of file diff --git a/packages/app/build/server/chunks/run-fe9e8a93.js b/packages/app/build/server/chunks/run-fe9e8a93.js deleted file mode 100644 index 0f9c3ed..0000000 --- a/packages/app/build/server/chunks/run-fe9e8a93.js +++ /dev/null @@ -1,82 +0,0 @@ -import fs from 'fs'; -import path from 'path'; -import shell from 'shelljs'; -import os from 'os'; - -const n = os.networkInterfaces(); -function getLocalIP() { - for (const k in n) { - const inter = n[k]; - for (const j in inter) - if (inter[j].family === "IPv4" && !inter[j].internal) - return inter[j].address; - } -} -const { pathname: __dirname } = new URL("../../../../", import.meta.url); -const fileExists = (file) => { - return JSON.parse(shell.exec(`if [[ -f ${file} ]]; then echo 'true'; else echo 'false'; fi;`).stdout.trim()); -}; -const LOCAL_IP = getLocalIP(); -const toReplace = "#--server-config--#"; -if (!shell.which("mkcert")) { - shell.echo('Sorry, this script requires "mkcert"'); - shell.exit(1); -} -if (!shell.which("git")) { - shell.echo('Sorry, this script requires "docker"'); - shell.exit(1); -} -const run = () => { - const configPath = path.resolve(__dirname, "config.json"); - if (!fileExists(configPath)) { - console.log("Sorry, config.json does not exists."); - } - const config = JSON.parse(fs.readFileSync(configPath, { encoding: "utf8" }) || "[]"); - const nginxConfServerTplPath = path.resolve(__dirname, "assets/nginx.conf.server.tpl"); - const certsUrl = []; - const serverConfigs = config.map((c) => { - if (!fileExists(nginxConfServerTplPath)) { - console.log("Sorry, is not possible to find './nginx.conf.server.tpl' file."); - } - const nginxConfServerTpl = fs.readFileSync(nginxConfServerTplPath, { encoding: "utf8" }); - if (c.nginxConf) { - return nginxConf; - } - certsUrl.push({ - cert: c.ssl.cert, - key: c.ssl.key - }); - return nginxConfServerTpl.replaceAll("%APP_DOMAIN%", c.localDomainName).replace("%LOCAL_IP%", LOCAL_IP).replace("%PORT%", c.port); - }); - const nginxConfTplPath = path.resolve(__dirname, "assets/nginx.conf.tpl"); - if (!fileExists(nginxConfTplPath)) { - console.log("Sorry, is not possible to find 'nginx.conf.tpl' file."); - } - const nginxConfTpl = fs.readFileSync(nginxConfTplPath, { encoding: "utf8" }); - const nginxConf = nginxConfTpl.replace(toReplace, serverConfigs.join("\n")); - const nginxConfDest = path.resolve(__dirname, "nginx.conf"); - fs.writeFileSync(nginxConfDest, nginxConf); - const dockerfileTplPath = path.resolve(__dirname, "Dockerfile.tpl"); - const dockerfileContent = fs.readFileSync(dockerfileTplPath, { encoding: "utf8" }); - const dockerfileDest = path.resolve(__dirname, "Dockerfile"); - fs.writeFileSync(dockerfileDest, dockerfileContent.replace( - "#-certs-#", - certsUrl.map((d) => { - return `COPY ${d.key} /etc/nginx/ -COPY ${d.cert} /etc/nginx/`; - }).join("\n") - )); - shell.exec(`NAME=local-443-proxy && docker rm -f $NAME && docker rmi -f $NAME && docker build --no-cache -t $NAME . && docker run --name $NAME -p 80:80 -p 443:443 -d $NAME && docker ps`); - config.forEach((c) => { - const curl = `curl -s -o /dev/null -w "%{http_code}" https://${c.localDomainName}`; - const status = shell.exec(curl).stdout; - if (status === "200") { - console.log(` - https://${c.localDomainName} ✅`); - } else { - console.log(` - https://${c.localDomainName} ❌`); - } - }); -}; - -export { run as r }; -//# sourceMappingURL=run-fe9e8a93.js.map diff --git a/packages/app/build/server/chunks/run-fe9e8a93.js.map b/packages/app/build/server/chunks/run-fe9e8a93.js.map deleted file mode 100644 index aef5197..0000000 --- a/packages/app/build/server/chunks/run-fe9e8a93.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"run-fe9e8a93.js","sources":["../../../.svelte-kit/adapter-node/chunks/run.js"],"sourcesContent":["import fs from \"fs\";\nimport path from \"path\";\nimport shell from \"shelljs\";\nimport os from \"os\";\nconst n = os.networkInterfaces();\nfunction getLocalIP() {\n for (const k in n) {\n const inter = n[k];\n for (const j in inter)\n if (inter[j].family === \"IPv4\" && !inter[j].internal)\n return inter[j].address;\n }\n}\nconst { pathname: __dirname } = new URL(\"../../../../\", import.meta.url);\nconst fileExists = (file) => {\n return JSON.parse(shell.exec(`if [[ -f ${file} ]]; then echo 'true'; else echo 'false'; fi;`).stdout.trim());\n};\nconst LOCAL_IP = getLocalIP();\nconst toReplace = \"#--server-config--#\";\nif (!shell.which(\"mkcert\")) {\n shell.echo('Sorry, this script requires \"mkcert\"');\n shell.exit(1);\n}\nif (!shell.which(\"git\")) {\n shell.echo('Sorry, this script requires \"docker\"');\n shell.exit(1);\n}\nconst run = () => {\n const configPath = path.resolve(__dirname, \"config.json\");\n if (!fileExists(configPath)) {\n console.log(\"Sorry, config.json does not exists.\");\n }\n const config = JSON.parse(fs.readFileSync(configPath, { encoding: \"utf8\" }) || \"[]\");\n const nginxConfServerTplPath = path.resolve(__dirname, \"assets/nginx.conf.server.tpl\");\n const certsUrl = [];\n const serverConfigs = config.map((c) => {\n if (!fileExists(nginxConfServerTplPath)) {\n console.log(\"Sorry, is not possible to find './nginx.conf.server.tpl' file.\");\n }\n const nginxConfServerTpl = fs.readFileSync(nginxConfServerTplPath, { encoding: \"utf8\" });\n if (c.nginxConf) {\n return nginxConf;\n }\n certsUrl.push({\n cert: c.ssl.cert,\n key: c.ssl.key\n });\n return nginxConfServerTpl.replaceAll(\"%APP_DOMAIN%\", c.localDomainName).replace(\"%LOCAL_IP%\", LOCAL_IP).replace(\"%PORT%\", c.port);\n });\n const nginxConfTplPath = path.resolve(__dirname, \"assets/nginx.conf.tpl\");\n if (!fileExists(nginxConfTplPath)) {\n console.log(\"Sorry, is not possible to find 'nginx.conf.tpl' file.\");\n }\n const nginxConfTpl = fs.readFileSync(nginxConfTplPath, { encoding: \"utf8\" });\n const nginxConf = nginxConfTpl.replace(toReplace, serverConfigs.join(\"\\n\"));\n const nginxConfDest = path.resolve(__dirname, \"nginx.conf\");\n fs.writeFileSync(nginxConfDest, nginxConf);\n const dockerfileTplPath = path.resolve(__dirname, \"Dockerfile.tpl\");\n const dockerfileContent = fs.readFileSync(dockerfileTplPath, { encoding: \"utf8\" });\n const dockerfileDest = path.resolve(__dirname, \"Dockerfile\");\n fs.writeFileSync(dockerfileDest, dockerfileContent.replace(\n \"#-certs-#\",\n certsUrl.map((d) => {\n return `COPY ${d.key} /etc/nginx/\nCOPY ${d.cert} /etc/nginx/`;\n }).join(\"\\n\")\n ));\n shell.exec(`NAME=local-443-proxy && \tdocker rm -f $NAME && \tdocker rmi -f $NAME && \tdocker build --no-cache -t $NAME . && \tdocker run --name $NAME -p 80:80 -p 443:443 -d $NAME && \tdocker ps`);\n config.forEach((c) => {\n const curl = `curl -s -o /dev/null -w \"%{http_code}\" https://${c.localDomainName}`;\n const status = shell.exec(curl).stdout;\n if (status === \"200\") {\n console.log(` - https://${c.localDomainName} ✅`);\n } else {\n console.log(` - https://${c.localDomainName} ❌`);\n }\n });\n};\nexport {\n run as r\n};\n"],"names":[],"mappings":";;;;;AAIA,MAAM,CAAC,GAAG,EAAE,CAAC,iBAAiB,EAAE,CAAC;AACjC,SAAS,UAAU,GAAG;AACtB,EAAE,KAAK,MAAM,CAAC,IAAI,CAAC,EAAE;AACrB,IAAI,MAAM,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACvB,IAAI,KAAK,MAAM,CAAC,IAAI,KAAK;AACzB,MAAM,IAAI,KAAK,CAAC,C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MAAM,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;AAC3C,IAAI,IAAI,MAAM,KAAK,KAAK,EAAE;AAC1B,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,CAAC;AACvD,KAAK,MAAM;AACX,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,CAAC;AACvD,KAAK;AACL,GAAG,CAAC,CAAC;AACL;;;;"} \ No newline at end of file diff --git a/packages/app/build/server/index.js b/packages/app/build/server/index.js deleted file mode 100644 index 1a626be..0000000 --- a/packages/app/build/server/index.js +++ /dev/null @@ -1,4053 +0,0 @@ -import { c as create_ssr_component, s as setContext, v as validate_component, m as missing_component, n as noop, a as safe_not_equal } from './chunks/index-635622e3.js'; - -let base = ""; -let assets = base; -const initial = { base, assets }; -function reset() { - base = initial.base; - assets = initial.assets; -} -let public_env = {}; -function set_public_env(environment) { - public_env = environment; -} -function afterUpdate() { -} -const Root = create_ssr_component(($$result, $$props, $$bindings, slots) => { - let { stores } = $$props; - let { page } = $$props; - let { constructors } = $$props; - let { components = [] } = $$props; - let { form } = $$props; - let { data_0 = null } = $$props; - let { data_1 = null } = $$props; - { - setContext("__svelte__", stores); - } - afterUpdate(stores.page.notify); - if ($$props.stores === void 0 && $$bindings.stores && stores !== void 0) - $$bindings.stores(stores); - if ($$props.page === void 0 && $$bindings.page && page !== void 0) - $$bindings.page(page); - if ($$props.constructors === void 0 && $$bindings.constructors && constructors !== void 0) - $$bindings.constructors(constructors); - if ($$props.components === void 0 && $$bindings.components && components !== void 0) - $$bindings.components(components); - if ($$props.form === void 0 && $$bindings.form && form !== void 0) - $$bindings.form(form); - if ($$props.data_0 === void 0 && $$bindings.data_0 && data_0 !== void 0) - $$bindings.data_0(data_0); - if ($$props.data_1 === void 0 && $$bindings.data_1 && data_1 !== void 0) - $$bindings.data_1(data_1); - let $$settled; - let $$rendered; - do { - $$settled = true; - { - stores.page.set(page); - } - $$rendered = ` - - -${constructors[1] ? `${validate_component(constructors[0] || missing_component, "svelte:component").$$render( - $$result, - { data: data_0, this: components[0] }, - { - this: ($$value) => { - components[0] = $$value; - $$settled = false; - } - }, - { - default: () => { - return `${validate_component(constructors[1] || missing_component, "svelte:component").$$render( - $$result, - { data: data_1, form, this: components[1] }, - { - this: ($$value) => { - components[1] = $$value; - $$settled = false; - } - }, - {} - )}`; - } - } - )}` : `${validate_component(constructors[0] || missing_component, "svelte:component").$$render( - $$result, - { data: data_0, form, this: components[0] }, - { - this: ($$value) => { - components[0] = $$value; - $$settled = false; - } - }, - {} - )}`} - -${``}`; - } while (!$$settled); - return $$rendered; -}); -const options = { - app_template_contains_nonce: false, - csp: { "mode": "auto", "directives": { "upgrade-insecure-requests": false, "block-all-mixed-content": false }, "reportOnly": { "upgrade-insecure-requests": false, "block-all-mixed-content": false } }, - csrf_check_origin: true, - track_server_fetches: false, - embedded: false, - env_public_prefix: "PUBLIC_", - hooks: null, - // added lazily, via `get_hooks` - preload_strategy: "modulepreload", - root: Root, - service_worker: false, - templates: { - app: ({ head, body, assets: assets2, nonce, env }) => '\n\n \n \n \n \n ' + head + '\n \n \n$ local-ssl
+ $ local-ssl
+