tecitheme 0.7.6 → 0.8.1
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/package.json +1 -1
- package/dist/assets/TECi_logo.svelte +0 -177
- package/dist/assets/TECi_logo.svelte.d.ts +0 -23
- package/dist/assets/js/store.d.ts +0 -3
- package/dist/assets/js/store.js +0 -4
- package/dist/components/Accordion.svelte +0 -74
- package/dist/components/Accordion.svelte.d.ts +0 -27
- package/dist/components/Banner.svelte +0 -91
- package/dist/components/Banner.svelte.d.ts +0 -33
- package/dist/components/Button.svelte +0 -21
- package/dist/components/Button.svelte.d.ts +0 -37
- package/dist/components/CTA.svelte +0 -51
- package/dist/components/CTA.svelte.d.ts +0 -23
- package/dist/components/CTASplitImage.svelte +0 -34
- package/dist/components/CTASplitImage.svelte.d.ts +0 -23
- package/dist/components/Card.svelte +0 -91
- package/dist/components/Card.svelte.d.ts +0 -25
- package/dist/components/CognitoForm.svelte +0 -24
- package/dist/components/CognitoForm.svelte.d.ts +0 -27
- package/dist/components/ContentTwoColumns.svelte +0 -54
- package/dist/components/ContentTwoColumns.svelte.d.ts +0 -23
- package/dist/components/CountrySelector.svelte +0 -167
- package/dist/components/CountrySelector.svelte.d.ts +0 -27
- package/dist/components/FeatureGrid.svelte +0 -44
- package/dist/components/FeatureGrid.svelte.d.ts +0 -23
- package/dist/components/Figure.svelte +0 -40
- package/dist/components/Figure.svelte.d.ts +0 -29
- package/dist/components/Footer.svelte +0 -243
- package/dist/components/Footer.svelte.d.ts +0 -23
- package/dist/components/Header.svelte +0 -1178
- package/dist/components/Header.svelte.d.ts +0 -30
- package/dist/components/HeadingCentered.svelte +0 -38
- package/dist/components/HeadingCentered.svelte.d.ts +0 -23
- package/dist/components/Hero.svelte +0 -82
- package/dist/components/Hero.svelte.d.ts +0 -23
- package/dist/components/Icon.svelte +0 -162
- package/dist/components/Icon.svelte.d.ts +0 -25
- package/dist/components/LogoCloud.svelte +0 -25
- package/dist/components/LogoCloud.svelte.d.ts +0 -23
- package/dist/components/Math.svelte +0 -24
- package/dist/components/Math.svelte.d.ts +0 -25
- package/dist/components/MediaFeature.svelte +0 -76
- package/dist/components/MediaFeature.svelte.d.ts +0 -23
- package/dist/components/Modal.svelte +0 -69
- package/dist/components/Modal.svelte.d.ts +0 -29
- package/dist/components/NewsGrid.svelte +0 -196
- package/dist/components/NewsGrid.svelte.d.ts +0 -23
- package/dist/components/PricingTable.svelte +0 -100
- package/dist/components/PricingTable.svelte.d.ts +0 -23
- package/dist/components/SidebarContent.svelte +0 -124
- package/dist/components/SidebarContent.svelte.d.ts +0 -33
- package/dist/components/Stats.svelte +0 -40
- package/dist/components/Stats.svelte.d.ts +0 -23
- package/dist/components/Testimonial.svelte +0 -168
- package/dist/components/Testimonial.svelte.d.ts +0 -23
- package/dist/components/ThreeColumn.svelte +0 -20
- package/dist/components/ThreeColumn.svelte.d.ts +0 -23
- package/dist/components/TrialForm.svelte +0 -296
- package/dist/components/TrialForm.svelte.d.ts +0 -14
- package/dist/components/Video.svelte +0 -125
- package/dist/components/Video.svelte.d.ts +0 -27
- package/dist/components/Wrap.svelte +0 -12
- package/dist/components/Wrap.svelte.d.ts +0 -31
- package/dist/get-content.d.ts +0 -9
- package/dist/get-content.js +0 -98
- package/dist/index.d.ts +0 -31
- package/dist/index.js +0 -31
- package/dist/layouts/blocks.svelte +0 -95
- package/dist/layouts/blocks.svelte.d.ts +0 -47
- package/dist/req_utils.d.ts +0 -3
- package/dist/req_utils.js +0 -63
- package/dist/site_config.json +0 -13
- package/dist/utils.d.ts +0 -5
- package/dist/utils.js +0 -162
- package/dist/variables.d.ts +0 -3
- package/dist/variables.js +0 -5
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} VideoProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} VideoEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} VideoSlots */
|
|
4
|
-
export default class Video extends SvelteComponent<{
|
|
5
|
-
data?: {};
|
|
6
|
-
v?: any;
|
|
7
|
-
thumbnail?: any;
|
|
8
|
-
}, {
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
}, {}> {
|
|
11
|
-
}
|
|
12
|
-
export type VideoProps = typeof __propDef.props;
|
|
13
|
-
export type VideoEvents = typeof __propDef.events;
|
|
14
|
-
export type VideoSlots = typeof __propDef.slots;
|
|
15
|
-
import { SvelteComponent } from "svelte";
|
|
16
|
-
declare const __propDef: {
|
|
17
|
-
props: {
|
|
18
|
-
data?: {};
|
|
19
|
-
v?: any;
|
|
20
|
-
thumbnail?: any;
|
|
21
|
-
};
|
|
22
|
-
events: {
|
|
23
|
-
[evt: string]: CustomEvent<any>;
|
|
24
|
-
};
|
|
25
|
-
slots: {};
|
|
26
|
-
};
|
|
27
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} WrapProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} WrapEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} WrapSlots */
|
|
4
|
-
export default class Wrap extends SvelteComponent<{
|
|
5
|
-
[x: string]: any;
|
|
6
|
-
tag?: string;
|
|
7
|
-
when?: boolean;
|
|
8
|
-
}, {
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
}, {
|
|
11
|
-
default: {};
|
|
12
|
-
}> {
|
|
13
|
-
}
|
|
14
|
-
export type WrapProps = typeof __propDef.props;
|
|
15
|
-
export type WrapEvents = typeof __propDef.events;
|
|
16
|
-
export type WrapSlots = typeof __propDef.slots;
|
|
17
|
-
import { SvelteComponent } from "svelte";
|
|
18
|
-
declare const __propDef: {
|
|
19
|
-
props: {
|
|
20
|
-
[x: string]: any;
|
|
21
|
-
tag?: string;
|
|
22
|
-
when?: boolean;
|
|
23
|
-
};
|
|
24
|
-
events: {
|
|
25
|
-
[evt: string]: CustomEvent<any>;
|
|
26
|
-
};
|
|
27
|
-
slots: {
|
|
28
|
-
default: {};
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
export {};
|
package/dist/get-content.d.ts
DELETED
package/dist/get-content.js
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
// get-content.js
|
|
2
|
-
// HTML parser from https://github.com/html-to-text/node-html-to-text
|
|
3
|
-
import { convert } from "html-to-text";
|
|
4
|
-
import { PUBLIC_BUILD_MODE } from '$env/static/public';
|
|
5
|
-
|
|
6
|
-
const getContent = async (content='') => {
|
|
7
|
-
|
|
8
|
-
let indexData = [];
|
|
9
|
-
let iterableContentFiles = Object.entries([]);
|
|
10
|
-
let sortedIndex = [];
|
|
11
|
-
|
|
12
|
-
// Use 'content' variable to determine files to import.
|
|
13
|
-
switch (content) {
|
|
14
|
-
case "news":
|
|
15
|
-
iterableContentFiles = Object.entries(
|
|
16
|
-
import.meta.glob("/src/routes/news/*(!(+page)).md")
|
|
17
|
-
);
|
|
18
|
-
break;
|
|
19
|
-
default:
|
|
20
|
-
iterableContentFiles = Object.entries(
|
|
21
|
-
import.meta.glob("/src/routes/**/*(!(+page)).md")
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const allContent = await Promise.all(
|
|
26
|
-
iterableContentFiles.map(async ([path, resolver]) => {
|
|
27
|
-
const contentPath = path.slice(11, -3);
|
|
28
|
-
const file = await resolver();
|
|
29
|
-
const metadata = file.metadata;
|
|
30
|
-
const today = new Date();
|
|
31
|
-
|
|
32
|
-
if (
|
|
33
|
-
metadata.notIndexed ||
|
|
34
|
-
(PUBLIC_BUILD_MODE=='development' ? false : metadata.draft) ||
|
|
35
|
-
(PUBLIC_BUILD_MODE=='development' ? false : new Date(metadata.date) > today)
|
|
36
|
-
) {
|
|
37
|
-
return;
|
|
38
|
-
} else {
|
|
39
|
-
var html = file.default.render().html;
|
|
40
|
-
var plaintext = convert(html, {
|
|
41
|
-
baseElements: {
|
|
42
|
-
orderBy: "occurrence",
|
|
43
|
-
},
|
|
44
|
-
wordwrap: false,
|
|
45
|
-
selectors: [
|
|
46
|
-
{ selector: "h1", format: "skip" },
|
|
47
|
-
{ selector: "h2", options: { uppercase: false } },
|
|
48
|
-
{ selector: "a", options: { ignoreHref: true } },
|
|
49
|
-
{ selector: "a.button", format: "skip" },
|
|
50
|
-
{ selector: "a.btn", format: "skip" },
|
|
51
|
-
{ selector: "aside", format: "skip" },
|
|
52
|
-
{ selector: "ul", options: { itemPrefix: "- " } },
|
|
53
|
-
{ selector: "img", format: "skip" },
|
|
54
|
-
],
|
|
55
|
-
})
|
|
56
|
-
.replace(/\n\n\n/gm, " ")
|
|
57
|
-
.replace(/\n\n/g, " ")
|
|
58
|
-
.replace(/\n/g, " ")
|
|
59
|
-
.replace(/\"/g, "'")
|
|
60
|
-
.trim();
|
|
61
|
-
|
|
62
|
-
if (metadata && contentPath && plaintext) {
|
|
63
|
-
return {
|
|
64
|
-
meta: metadata,
|
|
65
|
-
path: contentPath,
|
|
66
|
-
text: plaintext,
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
})
|
|
71
|
-
);
|
|
72
|
-
|
|
73
|
-
for (let i = 0; i < allContent.length; i++) {
|
|
74
|
-
if (allContent[i]) {
|
|
75
|
-
let today = new Date();
|
|
76
|
-
let postdate = allContent[i].meta.date
|
|
77
|
-
? new Date(allContent[i].meta.date)
|
|
78
|
-
: today;
|
|
79
|
-
let entry = {
|
|
80
|
-
title: allContent[i].meta.title,
|
|
81
|
-
content: allContent[i].text,
|
|
82
|
-
summary: allContent[i].meta.summary,
|
|
83
|
-
date: postdate,
|
|
84
|
-
slug: allContent[i].path,
|
|
85
|
-
categories: allContent[i].meta.categories,
|
|
86
|
-
};
|
|
87
|
-
indexData.push(entry);
|
|
88
|
-
} else {
|
|
89
|
-
continue;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
sortedIndex = indexData.slice().sort((a, b) => new Date(b.date) - new Date(a.date));
|
|
94
|
-
|
|
95
|
-
return sortedIndex;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export default getContent
|
package/dist/index.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export * from "./utils.js";
|
|
2
|
-
export { default as getContent } from "./get-content.js";
|
|
3
|
-
export { default as Accordion } from "./components/Accordion.svelte";
|
|
4
|
-
export { default as Banner } from "./components/Banner.svelte";
|
|
5
|
-
export { default as Button } from "./components/Button.svelte";
|
|
6
|
-
export { default as Card } from "./components/Card.svelte";
|
|
7
|
-
export { default as CognitoForm } from "./components/CognitoForm.svelte";
|
|
8
|
-
export { default as ContentTwoColumns } from "./components/ContentTwoColumns.svelte";
|
|
9
|
-
export { default as CountrySelector } from "./components/CountrySelector.svelte";
|
|
10
|
-
export { default as CTA } from "./components/CTA.svelte";
|
|
11
|
-
export { default as CTASplitImage } from "./components/CTASplitImage.svelte";
|
|
12
|
-
export { default as FeatureGrid } from "./components/FeatureGrid.svelte";
|
|
13
|
-
export { default as Figure } from "./components/Figure.svelte";
|
|
14
|
-
export { default as Footer } from "./components/Footer.svelte";
|
|
15
|
-
export { default as Header } from "./components/Header.svelte";
|
|
16
|
-
export { default as HeadingCentered } from "./components/HeadingCentered.svelte";
|
|
17
|
-
export { default as Hero } from "./components/Hero.svelte";
|
|
18
|
-
export { default as Icon } from "./components/Icon.svelte";
|
|
19
|
-
export { default as LogoCloud } from "./components/LogoCloud.svelte";
|
|
20
|
-
export { default as Math } from "./components/Math.svelte";
|
|
21
|
-
export { default as MediaFeature } from "./components/MediaFeature.svelte";
|
|
22
|
-
export { default as Modal } from "./components/Modal.svelte";
|
|
23
|
-
export { default as NewsGrid } from "./components/NewsGrid.svelte";
|
|
24
|
-
export { default as PricingTable } from "./components/PricingTable.svelte";
|
|
25
|
-
export { default as SidebarContent } from "./components/SidebarContent.svelte";
|
|
26
|
-
export { default as Stats } from "./components/Stats.svelte";
|
|
27
|
-
export { default as Testimonial } from "./components/Testimonial.svelte";
|
|
28
|
-
export { default as ThreeColumn } from "./components/ThreeColumn.svelte";
|
|
29
|
-
export { default as TrialForm } from "./components/TrialForm.svelte";
|
|
30
|
-
export { default as Video } from "./components/Video.svelte";
|
|
31
|
-
export { default as Wrap } from "./components/Wrap.svelte";
|
package/dist/index.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export * from './utils.js';
|
|
2
|
-
export { default as getContent } from './get-content.js';
|
|
3
|
-
export { default as Accordion } from './components/Accordion.svelte';
|
|
4
|
-
export { default as Banner } from './components/Banner.svelte';
|
|
5
|
-
export { default as Button } from './components/Button.svelte';
|
|
6
|
-
export { default as Card } from './components/Card.svelte';
|
|
7
|
-
export { default as CognitoForm } from './components/CognitoForm.svelte';
|
|
8
|
-
export { default as ContentTwoColumns } from './components/ContentTwoColumns.svelte';
|
|
9
|
-
export { default as CountrySelector } from './components/CountrySelector.svelte';
|
|
10
|
-
export { default as CTA } from './components/CTA.svelte';
|
|
11
|
-
export { default as CTASplitImage } from './components/CTASplitImage.svelte';
|
|
12
|
-
export { default as FeatureGrid } from './components/FeatureGrid.svelte';
|
|
13
|
-
export { default as Figure } from './components/Figure.svelte';
|
|
14
|
-
export { default as Footer } from './components/Footer.svelte';
|
|
15
|
-
export { default as Header } from './components/Header.svelte';
|
|
16
|
-
export { default as HeadingCentered } from './components/HeadingCentered.svelte';
|
|
17
|
-
export { default as Hero } from './components/Hero.svelte';
|
|
18
|
-
export { default as Icon } from './components/Icon.svelte';
|
|
19
|
-
export { default as LogoCloud } from './components/LogoCloud.svelte';
|
|
20
|
-
export { default as Math } from './components/Math.svelte';
|
|
21
|
-
export { default as MediaFeature } from './components/MediaFeature.svelte';
|
|
22
|
-
export { default as Modal } from './components/Modal.svelte';
|
|
23
|
-
export { default as NewsGrid } from './components/NewsGrid.svelte';
|
|
24
|
-
export { default as PricingTable } from './components/PricingTable.svelte';
|
|
25
|
-
export { default as SidebarContent } from './components/SidebarContent.svelte';
|
|
26
|
-
export { default as Stats } from './components/Stats.svelte';
|
|
27
|
-
export { default as Testimonial } from './components/Testimonial.svelte';
|
|
28
|
-
export { default as ThreeColumn } from './components/ThreeColumn.svelte';
|
|
29
|
-
export { default as TrialForm } from './components/TrialForm.svelte';
|
|
30
|
-
export { default as Video } from './components/Video.svelte';
|
|
31
|
-
export { default as Wrap } from './components/Wrap.svelte';
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import Accordion from "../components/Accordion.svelte";
|
|
3
|
-
import CTA from "../components/CTA.svelte";
|
|
4
|
-
import HeadingCentered from "../components/HeadingCentered.svelte";
|
|
5
|
-
import MediaFeature from "../components/MediaFeature.svelte";
|
|
6
|
-
import Modal from "../components/Modal.svelte";
|
|
7
|
-
import NewsGrid from "../components/NewsGrid.svelte";
|
|
8
|
-
import SidebarContent from "../components/SidebarContent.svelte";
|
|
9
|
-
import ThreeColumn from "../components/ThreeColumn.svelte";
|
|
10
|
-
import TrialForm from "../components/TrialForm.svelte";
|
|
11
|
-
import Video from "../components/Video.svelte";
|
|
12
|
-
import Hero from "../components/Hero.svelte";
|
|
13
|
-
import FeatureGrid from "../components/FeatureGrid.svelte";
|
|
14
|
-
import LogoCloud from "../components/LogoCloud.svelte";
|
|
15
|
-
import CTASplitImage from "../components/CTASplitImage.svelte";
|
|
16
|
-
import ContentTwoColumns from "../components/ContentTwoColumns.svelte";
|
|
17
|
-
import PricingTable from "../components/PricingTable.svelte";
|
|
18
|
-
import Stats from "../components/Stats.svelte";
|
|
19
|
-
import Testimonial from "../components/Testimonial.svelte";
|
|
20
|
-
|
|
21
|
-
let blocks = [
|
|
22
|
-
{ ref: "accordion", component: Accordion},
|
|
23
|
-
{ ref: "cta", component: CTA },
|
|
24
|
-
{ ref: "heading-centered", component: HeadingCentered },
|
|
25
|
-
{ ref: "media-feature", component: MediaFeature },
|
|
26
|
-
{ ref: "modal", component: Modal },
|
|
27
|
-
{ ref: "news-grid", component: NewsGrid },
|
|
28
|
-
{ ref: "sidebar-content", component: SidebarContent },
|
|
29
|
-
{ ref: "three-column", component: ThreeColumn },
|
|
30
|
-
{ ref: "trial-form", component: TrialForm },
|
|
31
|
-
{ ref: "video", component: Video },
|
|
32
|
-
{ ref: "hero", component: Hero },
|
|
33
|
-
{ ref: "feature-grid", component: FeatureGrid },
|
|
34
|
-
{ ref: "logo-cloud", component: LogoCloud },
|
|
35
|
-
{ ref: "cta-split-image", component: CTASplitImage },
|
|
36
|
-
{ ref: "content-two-columns", component: ContentTwoColumns },
|
|
37
|
-
{ ref: "pricing-table", component: PricingTable },
|
|
38
|
-
{ ref: "stats", component: Stats },
|
|
39
|
-
{ ref: "testimonial", component: Testimonial },
|
|
40
|
-
];
|
|
41
|
-
|
|
42
|
-
export let data = {};
|
|
43
|
-
export let form;
|
|
44
|
-
export let notIndexed = undefined;
|
|
45
|
-
export let type = undefined;
|
|
46
|
-
export let title = undefined;
|
|
47
|
-
export let date = undefined;
|
|
48
|
-
export let summary = undefined;
|
|
49
|
-
export let image = undefined;
|
|
50
|
-
export let lastmod = undefined;
|
|
51
|
-
export let layout = undefined;
|
|
52
|
-
export let page_sections = undefined;
|
|
53
|
-
|
|
54
|
-
let featuredImage;
|
|
55
|
-
|
|
56
|
-
if (image) {
|
|
57
|
-
featuredImage = "https://teci.imgix.net/www/images/" + image + "?w=1200&h=627&fit=crop&auto=compress&auto=format";
|
|
58
|
-
} else {
|
|
59
|
-
featuredImage = "https://teci.imgix.net/www/images/teci_icon_250.png";
|
|
60
|
-
}
|
|
61
|
-
</script>
|
|
62
|
-
|
|
63
|
-
<svelte:head>
|
|
64
|
-
<title>{title} | Thunderhead Engineering</title>
|
|
65
|
-
<meta data-key="description" name="description" content={summary}>
|
|
66
|
-
<meta property="og:type" content="article" />
|
|
67
|
-
<meta property="og:title" content={title} />
|
|
68
|
-
<meta name="twitter:title" content={title} />
|
|
69
|
-
<meta property="og:description" content={summary} />
|
|
70
|
-
<meta name="twitter:description" content={summary} />
|
|
71
|
-
<meta name="twitter:card" content="summary_large_image" />
|
|
72
|
-
<meta name="twitter:site" content="@thunderheadeng" />
|
|
73
|
-
<meta name="twitter:creator" content="@thunderheadeng" />
|
|
74
|
-
<meta property="og:image" content={featuredImage} />
|
|
75
|
-
<meta name="twitter:card" content={featuredImage} />
|
|
76
|
-
</svelte:head>
|
|
77
|
-
|
|
78
|
-
<article class="flex flex-col space-y-16 {layout}">
|
|
79
|
-
{#each page_sections as section}
|
|
80
|
-
{#if section && section.fieldGroup === "sidebar-content"}
|
|
81
|
-
<svelte:component
|
|
82
|
-
this={blocks.find((obj) => obj.ref === section.fieldGroup).component}
|
|
83
|
-
data={section}
|
|
84
|
-
{title}
|
|
85
|
-
{date}
|
|
86
|
-
{lastmod}><slot /></svelte:component
|
|
87
|
-
>
|
|
88
|
-
{:else if section && section.fieldGroup != "sidebar-content"}
|
|
89
|
-
<svelte:component
|
|
90
|
-
this={blocks.find((obj) => obj.ref === section.fieldGroup).component}
|
|
91
|
-
data={section}
|
|
92
|
-
/>
|
|
93
|
-
{/if}
|
|
94
|
-
{/each}
|
|
95
|
-
</article>
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} BlocksProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} BlocksEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} BlocksSlots */
|
|
4
|
-
export default class Blocks extends SvelteComponent<{
|
|
5
|
-
form: any;
|
|
6
|
-
data?: {};
|
|
7
|
-
summary?: any;
|
|
8
|
-
title?: any;
|
|
9
|
-
image?: any;
|
|
10
|
-
date?: any;
|
|
11
|
-
lastmod?: any;
|
|
12
|
-
notIndexed?: any;
|
|
13
|
-
type?: any;
|
|
14
|
-
layout?: any;
|
|
15
|
-
page_sections?: any;
|
|
16
|
-
}, {
|
|
17
|
-
[evt: string]: CustomEvent<any>;
|
|
18
|
-
}, {
|
|
19
|
-
default: {};
|
|
20
|
-
}> {
|
|
21
|
-
}
|
|
22
|
-
export type BlocksProps = typeof __propDef.props;
|
|
23
|
-
export type BlocksEvents = typeof __propDef.events;
|
|
24
|
-
export type BlocksSlots = typeof __propDef.slots;
|
|
25
|
-
import { SvelteComponent } from "svelte";
|
|
26
|
-
declare const __propDef: {
|
|
27
|
-
props: {
|
|
28
|
-
form: any;
|
|
29
|
-
data?: {};
|
|
30
|
-
summary?: any;
|
|
31
|
-
title?: any;
|
|
32
|
-
image?: any;
|
|
33
|
-
date?: any;
|
|
34
|
-
lastmod?: any;
|
|
35
|
-
notIndexed?: any;
|
|
36
|
-
type?: any;
|
|
37
|
-
layout?: any;
|
|
38
|
-
page_sections?: any;
|
|
39
|
-
};
|
|
40
|
-
events: {
|
|
41
|
-
[evt: string]: CustomEvent<any>;
|
|
42
|
-
};
|
|
43
|
-
slots: {
|
|
44
|
-
default: {};
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
export {};
|
package/dist/req_utils.d.ts
DELETED
package/dist/req_utils.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { browser } from "$app/environment";
|
|
2
|
-
|
|
3
|
-
export function browserGet(key) {
|
|
4
|
-
if (browser) {
|
|
5
|
-
const item = localStorage.getItem(key);
|
|
6
|
-
if (item) {
|
|
7
|
-
return JSON.parse(item);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
return null;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export function browserSet(key, value) {
|
|
14
|
-
if (browser) {
|
|
15
|
-
localStorage.setItem(key, value);
|
|
16
|
-
}
|
|
17
|
-
return null;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export async function post(fetch, url, body) {
|
|
21
|
-
let customError = false;
|
|
22
|
-
try {
|
|
23
|
-
let headers = {};
|
|
24
|
-
if (!(body instanceof FormData)) {
|
|
25
|
-
headers["Content-Type"] = "application/json";
|
|
26
|
-
body = JSON.stringify(body);
|
|
27
|
-
}
|
|
28
|
-
const token = browserGet("token");
|
|
29
|
-
if (token) {
|
|
30
|
-
headers["X-UltraCart-Api-Version"] = "2017-03-01";
|
|
31
|
-
headers[Accept] = "application/json";
|
|
32
|
-
headers["x-ultracart-simple-key"] = token;
|
|
33
|
-
}
|
|
34
|
-
const res = await fetch(url, {
|
|
35
|
-
method: "POST",
|
|
36
|
-
body,
|
|
37
|
-
headers,
|
|
38
|
-
});
|
|
39
|
-
if (!res.ok) {
|
|
40
|
-
try {
|
|
41
|
-
const data = await res.json();
|
|
42
|
-
const error = data.message[0].messages[0];
|
|
43
|
-
customError = true;
|
|
44
|
-
throw { id: error.id, message: error.message };
|
|
45
|
-
} catch (err) {
|
|
46
|
-
console.log(err);
|
|
47
|
-
throw err;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
try {
|
|
51
|
-
const json = await res.json();
|
|
52
|
-
return json;
|
|
53
|
-
} catch (err) {
|
|
54
|
-
console.log(err);
|
|
55
|
-
throw { id: "", message: "An unknown error has occured." };
|
|
56
|
-
}
|
|
57
|
-
} catch (err) {
|
|
58
|
-
console.log(err);
|
|
59
|
-
throw customError
|
|
60
|
-
? err
|
|
61
|
-
: { id: "", message: "An unknown error has occured" };
|
|
62
|
-
}
|
|
63
|
-
}
|
package/dist/site_config.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Thunderhead Engineering Design System",
|
|
3
|
-
"url": "https://tecitheme.netlify.app",
|
|
4
|
-
"showBanner": false,
|
|
5
|
-
"bannerData": {
|
|
6
|
-
"showCTA": true,
|
|
7
|
-
"shortText": "Short text in a few words to show how it works.",
|
|
8
|
-
"longText": "Long test text that goes on and on for a while with some information about something that people should know about.",
|
|
9
|
-
"ctaText": "Take Action",
|
|
10
|
-
"ctaLink": "https://www.thunderheadeng.com",
|
|
11
|
-
"allowClose": false
|
|
12
|
-
}
|
|
13
|
-
}
|
package/dist/utils.d.ts
DELETED
package/dist/utils.js
DELETED
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
export function scrollTo(anchor) {
|
|
2
|
-
document.querySelector("#" + anchor).scrollIntoView({
|
|
3
|
-
behavior: "smooth",
|
|
4
|
-
});
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export function getColorStyles(type, color){
|
|
8
|
-
let classes = ""
|
|
9
|
-
switch (type) {
|
|
10
|
-
case 'text':
|
|
11
|
-
switch (color) {
|
|
12
|
-
case 'pyrosim':
|
|
13
|
-
classes = "text-pyrosim"
|
|
14
|
-
break;
|
|
15
|
-
case 'pathfinder':
|
|
16
|
-
classes = "text-pathfinder"
|
|
17
|
-
break;
|
|
18
|
-
case 'ventus':
|
|
19
|
-
classes = "text-ventus"
|
|
20
|
-
break;
|
|
21
|
-
case 'gray':
|
|
22
|
-
classes = "text-gray-300"
|
|
23
|
-
break;
|
|
24
|
-
case 'white':
|
|
25
|
-
classes = "text-white"
|
|
26
|
-
break;
|
|
27
|
-
default:
|
|
28
|
-
classes = "text-teci-blue-dark"
|
|
29
|
-
break;
|
|
30
|
-
}
|
|
31
|
-
break;
|
|
32
|
-
case 'button':
|
|
33
|
-
switch (color) {
|
|
34
|
-
case 'pyrosim':
|
|
35
|
-
classes = "bg-pyrosim hover:bg-pyrosim-dark text-white focus:ring-teci-blue-light border-pyrosim-dark"
|
|
36
|
-
break;
|
|
37
|
-
case 'pathfinder':
|
|
38
|
-
classes = "bg-pathfinder hover:bg-pathfinder-dark text-white focus:ring-teci-blue-light border-pathfinder-dark"
|
|
39
|
-
break;
|
|
40
|
-
case 'ventus':
|
|
41
|
-
classes = "bg-ventus hover:bg-ventus-dark text-white focus:ring-teci-blue-light border-ventus-dark"
|
|
42
|
-
break;
|
|
43
|
-
case 'white':
|
|
44
|
-
classes = "bg-white text-gray-600 hover:bg-gray-200 focus:ring-teci-blue-light border-gray-200"
|
|
45
|
-
break;
|
|
46
|
-
default:
|
|
47
|
-
classes = "bg-teci-blue-light hover:bg-teci-blue-dark text-white focus:ring-teci-blue-light border-teci-blue-dark"
|
|
48
|
-
break;
|
|
49
|
-
}
|
|
50
|
-
break;
|
|
51
|
-
case 'background':
|
|
52
|
-
switch (color) {
|
|
53
|
-
case 'pyrosim':
|
|
54
|
-
classes = "bg-pyrosim text-white"
|
|
55
|
-
break;
|
|
56
|
-
case 'pathfinder':
|
|
57
|
-
classes = "bg-pathfinder text-white"
|
|
58
|
-
break;
|
|
59
|
-
case 'ventus':
|
|
60
|
-
classes = "bg-ventus text-white"
|
|
61
|
-
break;
|
|
62
|
-
case 'teci':
|
|
63
|
-
classes = "bg-teci-blue-light text-white"
|
|
64
|
-
break;
|
|
65
|
-
default:
|
|
66
|
-
classes = "bg-white"
|
|
67
|
-
break;
|
|
68
|
-
}
|
|
69
|
-
break;
|
|
70
|
-
default:
|
|
71
|
-
break;
|
|
72
|
-
}
|
|
73
|
-
return classes;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function validateEmail(email) {
|
|
77
|
-
const re =
|
|
78
|
-
/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
79
|
-
return re.test(String(email).toLowerCase());
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export function slugFromPath(path) {
|
|
83
|
-
path.match(/([\w-]+)\.(svelte\.md|md|svx)/i)?.[1] ?? null;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export function buildToC() {
|
|
87
|
-
// Based on https://projectcodeed.blogspot.com/2020/04/an-automatic-table-of-contents.html
|
|
88
|
-
|
|
89
|
-
// Get ToC div
|
|
90
|
-
let toc = document.getElementById("ToC");
|
|
91
|
-
|
|
92
|
-
//Add a header
|
|
93
|
-
var tocHeader = document.createElement("a");
|
|
94
|
-
tocHeader.classList.add(
|
|
95
|
-
"mb-2",
|
|
96
|
-
"inline-block",
|
|
97
|
-
"w-auto",
|
|
98
|
-
"text-center",
|
|
99
|
-
"bg-gray-50",
|
|
100
|
-
"hover:bg-gray-100",
|
|
101
|
-
"py-1",
|
|
102
|
-
"px-2",
|
|
103
|
-
"border"
|
|
104
|
-
);
|
|
105
|
-
tocHeader.innerHTML =
|
|
106
|
-
"<span class='material-icons-outlined text-sm font-bold text-gray-500 align-text-bottom'>vertical_align_top</span>";
|
|
107
|
-
tocHeader.setAttribute("href", "#top");
|
|
108
|
-
tocHeader.setAttribute("title", "To Top of Page");
|
|
109
|
-
toc.appendChild(tocHeader);
|
|
110
|
-
|
|
111
|
-
// Create a list for the ToC entries
|
|
112
|
-
let tocList = document.createElement("ul");
|
|
113
|
-
|
|
114
|
-
// Find the primary content section
|
|
115
|
-
let content = document.getElementById("content");
|
|
116
|
-
|
|
117
|
-
// Get the h2 tags - ToC entries
|
|
118
|
-
let headers = content.getElementsByTagName("h2");
|
|
119
|
-
|
|
120
|
-
if (headers.length == 0) {
|
|
121
|
-
console.log("There are not any H2 elements in the document.");
|
|
122
|
-
} else {
|
|
123
|
-
// For each h2
|
|
124
|
-
for (let i = 0; i < headers.length; i++) {
|
|
125
|
-
// Get Heading ID
|
|
126
|
-
let name = headers[i].id;
|
|
127
|
-
|
|
128
|
-
// list item for the entry
|
|
129
|
-
let tocListItem = document.createElement("li");
|
|
130
|
-
tocListItem.classList.add(
|
|
131
|
-
"text-teci-blue-light",
|
|
132
|
-
"hover:text-teci-blue-dark",
|
|
133
|
-
"text-sm",
|
|
134
|
-
"truncate"
|
|
135
|
-
);
|
|
136
|
-
|
|
137
|
-
// link for the h2
|
|
138
|
-
let tocEntry = document.createElement("a");
|
|
139
|
-
tocEntry.setAttribute("href", "#" + name);
|
|
140
|
-
tocEntry.innerText = headers[i].innerText;
|
|
141
|
-
|
|
142
|
-
// add link to list item list
|
|
143
|
-
tocListItem.appendChild(tocEntry);
|
|
144
|
-
|
|
145
|
-
// add list item to list
|
|
146
|
-
tocList.appendChild(tocListItem);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
// add list to toc element
|
|
150
|
-
toc.appendChild(tocList);
|
|
151
|
-
|
|
152
|
-
//Add a footer
|
|
153
|
-
//var tocFooter = document.createElement("a");
|
|
154
|
-
//tocFooter.classList.add("mt-2", "inline-block", "w-auto", "text-center", "bg-gray-50", "hover:bg-gray-100", "py-1", "px-2", "border")
|
|
155
|
-
//tocFooter.innerHTML="<span class='material-icons-outlined text-sm font-bold text-gray-500 align-text-bottom'>vertical_align_bottom</span>";
|
|
156
|
-
//tocFooter.setAttribute("href","#bottom");
|
|
157
|
-
//tocFooter.setAttribute("title","To Bottom of Page");
|
|
158
|
-
//toc.appendChild(tocFooter);
|
|
159
|
-
|
|
160
|
-
return true;
|
|
161
|
-
}
|
|
162
|
-
}
|
package/dist/variables.d.ts
DELETED