tecitheme 0.3.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/js/store.d.ts +2 -0
- package/dist/assets/js/store.js +4 -0
- package/{components → dist/components}/Footer.svelte +24 -60
- package/{components → dist/components}/Footer.svelte.d.ts +2 -5
- package/{components → dist/components}/NewsGrid.svelte +3 -3
- package/{components → dist/components}/Video.svelte +1 -1
- package/{get-content.d.ts → dist/get-content.d.ts} +2 -1
- package/{get-content.js → dist/get-content.js} +5 -2
- package/dist/index.d.ts +29 -0
- package/dist/index.js +29 -0
- package/{layouts → dist/layouts}/blocks.svelte +19 -27
- package/{layouts → dist/layouts}/blocks.svelte.d.ts +4 -4
- package/{site_config.json → dist/site_config.json} +1 -1
- package/dist/variables.js +4 -0
- package/package.json +31 -46
- package/components/MetaSocial.svelte +0 -15
- package/components/MetaSocial.svelte.d.ts +0 -29
- package/variables.js +0 -3
- /package/{assets → dist/assets}/TECi_logo.svelte +0 -0
- /package/{assets → dist/assets}/TECi_logo.svelte.d.ts +0 -0
- /package/{components → dist/components}/Banner.svelte +0 -0
- /package/{components → dist/components}/Banner.svelte.d.ts +0 -0
- /package/{components → dist/components}/Button.svelte +0 -0
- /package/{components → dist/components}/Button.svelte.d.ts +0 -0
- /package/{components → dist/components}/CTA.svelte +0 -0
- /package/{components → dist/components}/CTA.svelte.d.ts +0 -0
- /package/{components → dist/components}/CTABranded.svelte +0 -0
- /package/{components → dist/components}/CTABranded.svelte.d.ts +0 -0
- /package/{components → dist/components}/CTASplitImage.svelte +0 -0
- /package/{components → dist/components}/CTASplitImage.svelte.d.ts +0 -0
- /package/{components → dist/components}/Card.svelte +0 -0
- /package/{components → dist/components}/Card.svelte.d.ts +0 -0
- /package/{components → dist/components}/ContentTwoColumns.svelte +0 -0
- /package/{components → dist/components}/ContentTwoColumns.svelte.d.ts +0 -0
- /package/{components → dist/components}/CountrySelector.svelte +0 -0
- /package/{components → dist/components}/CountrySelector.svelte.d.ts +0 -0
- /package/{components → dist/components}/FeatureGrid.svelte +0 -0
- /package/{components → dist/components}/FeatureGrid.svelte.d.ts +0 -0
- /package/{components → dist/components}/Figure.svelte +0 -0
- /package/{components → dist/components}/Figure.svelte.d.ts +0 -0
- /package/{components → dist/components}/Header.svelte +0 -0
- /package/{components → dist/components}/Header.svelte.d.ts +0 -0
- /package/{components → dist/components}/HeadingCentered.svelte +0 -0
- /package/{components → dist/components}/HeadingCentered.svelte.d.ts +0 -0
- /package/{components → dist/components}/Hero.svelte +0 -0
- /package/{components → dist/components}/Hero.svelte.d.ts +0 -0
- /package/{components → dist/components}/Icon.svelte +0 -0
- /package/{components → dist/components}/Icon.svelte.d.ts +0 -0
- /package/{components → dist/components}/LogoCloud.svelte +0 -0
- /package/{components → dist/components}/LogoCloud.svelte.d.ts +0 -0
- /package/{components → dist/components}/Math.svelte +0 -0
- /package/{components → dist/components}/Math.svelte.d.ts +0 -0
- /package/{components → dist/components}/MediaFeature.svelte +0 -0
- /package/{components → dist/components}/MediaFeature.svelte.d.ts +0 -0
- /package/{components → dist/components}/Modal.svelte +0 -0
- /package/{components → dist/components}/Modal.svelte.d.ts +0 -0
- /package/{components → dist/components}/NewsGrid.svelte.d.ts +0 -0
- /package/{components → dist/components}/PricingTable.svelte +0 -0
- /package/{components → dist/components}/PricingTable.svelte.d.ts +0 -0
- /package/{components → dist/components}/SidebarContent.svelte +0 -0
- /package/{components → dist/components}/SidebarContent.svelte.d.ts +0 -0
- /package/{components → dist/components}/Stats.svelte +0 -0
- /package/{components → dist/components}/Stats.svelte.d.ts +0 -0
- /package/{components → dist/components}/Subscribe.svelte +0 -0
- /package/{components → dist/components}/Subscribe.svelte.d.ts +0 -0
- /package/{components → dist/components}/Testimonial.svelte +0 -0
- /package/{components → dist/components}/Testimonial.svelte.d.ts +0 -0
- /package/{components → dist/components}/ThreeColumn.svelte +0 -0
- /package/{components → dist/components}/ThreeColumn.svelte.d.ts +0 -0
- /package/{components → dist/components}/TrialForm.svelte +0 -0
- /package/{components → dist/components}/TrialForm.svelte.d.ts +0 -0
- /package/{components → dist/components}/Video.svelte.d.ts +0 -0
- /package/{components → dist/components}/Wrap.svelte +0 -0
- /package/{components → dist/components}/Wrap.svelte.d.ts +0 -0
- /package/{req_utils.d.ts → dist/req_utils.d.ts} +0 -0
- /package/{req_utils.js → dist/req_utils.js} +0 -0
- /package/{utils.d.ts → dist/utils.d.ts} +0 -0
- /package/{utils.js → dist/utils.js} +0 -0
- /package/{variables.d.ts → dist/variables.d.ts} +0 -0
|
@@ -1,24 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import { page } from "$app/stores";
|
|
3
|
-
export const token = $page.data.token;
|
|
4
|
-
export let login = false;
|
|
5
|
-
|
|
6
2
|
let d = new Date();
|
|
7
|
-
|
|
8
|
-
async function signOut() {
|
|
9
|
-
const response = await fetch("/auth/logout", {
|
|
10
|
-
method: "GET",
|
|
11
|
-
headers: {
|
|
12
|
-
"content-type": "application/json",
|
|
13
|
-
},
|
|
14
|
-
});
|
|
15
|
-
if (response.ok) {
|
|
16
|
-
visibleProfile = !visibleProfile;
|
|
17
|
-
window.location.href = "/";
|
|
18
|
-
} else {
|
|
19
|
-
alert(await response.text());
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
3
|
</script>
|
|
23
4
|
|
|
24
5
|
<footer id="bottom" class="bg-gray-800" aria-labelledby="footerHeading">
|
|
@@ -29,7 +10,7 @@
|
|
|
29
10
|
<div class="md:grid md:grid-cols-2 md:gap-8">
|
|
30
11
|
<div>
|
|
31
12
|
<h3
|
|
32
|
-
class="text-sm font-
|
|
13
|
+
class="text-sm font-bold uppercase tracking-wider text-gray-300"
|
|
33
14
|
>
|
|
34
15
|
Products
|
|
35
16
|
</h3>
|
|
@@ -37,7 +18,7 @@
|
|
|
37
18
|
<li>
|
|
38
19
|
<a
|
|
39
20
|
href="https://www.thunderheadeng.com/pyrosim/"
|
|
40
|
-
class="text-base text-gray-
|
|
21
|
+
class="text-base text-gray-100 hover:text-white"
|
|
41
22
|
>
|
|
42
23
|
PyroSim
|
|
43
24
|
</a>
|
|
@@ -45,7 +26,7 @@
|
|
|
45
26
|
<li>
|
|
46
27
|
<a
|
|
47
28
|
href="https://www.thunderheadeng.com/pathfinder/"
|
|
48
|
-
class="text-base text-gray-
|
|
29
|
+
class="text-base text-gray-100 hover:text-white"
|
|
49
30
|
>
|
|
50
31
|
Pathfinder
|
|
51
32
|
</a>
|
|
@@ -53,7 +34,7 @@
|
|
|
53
34
|
<li>
|
|
54
35
|
<a
|
|
55
36
|
href="https://www.thunderheadeng.com/petrasim/"
|
|
56
|
-
class="text-base text-gray-
|
|
37
|
+
class="text-base text-gray-100 hover:text-white"
|
|
57
38
|
>
|
|
58
39
|
PetraSim
|
|
59
40
|
</a>
|
|
@@ -61,7 +42,7 @@
|
|
|
61
42
|
<li>
|
|
62
43
|
<a
|
|
63
44
|
href="https://www.thunderheadeng.com/other"
|
|
64
|
-
class="text-base text-gray-
|
|
45
|
+
class="text-base text-gray-100 hover:text-white"
|
|
65
46
|
>
|
|
66
47
|
Other Tools
|
|
67
48
|
</a>
|
|
@@ -70,7 +51,7 @@
|
|
|
70
51
|
</div>
|
|
71
52
|
<div class="mt-12 md:mt-0">
|
|
72
53
|
<h3
|
|
73
|
-
class="text-sm font-
|
|
54
|
+
class="text-sm font-bold uppercase tracking-wider text-gray-300"
|
|
74
55
|
>
|
|
75
56
|
Support
|
|
76
57
|
</h3>
|
|
@@ -78,7 +59,7 @@
|
|
|
78
59
|
<li>
|
|
79
60
|
<a
|
|
80
61
|
href="https://support.thunderheadeng.com/docs/"
|
|
81
|
-
class="text-base text-gray-
|
|
62
|
+
class="text-base text-gray-100 hover:text-white"
|
|
82
63
|
>
|
|
83
64
|
Documentation
|
|
84
65
|
</a>
|
|
@@ -86,7 +67,7 @@
|
|
|
86
67
|
<li>
|
|
87
68
|
<a
|
|
88
69
|
href="https://support.thunderheadeng.com/tutorials/"
|
|
89
|
-
class="text-base text-gray-
|
|
70
|
+
class="text-base text-gray-100 hover:text-white"
|
|
90
71
|
>
|
|
91
72
|
Tutorials
|
|
92
73
|
</a>
|
|
@@ -94,7 +75,7 @@
|
|
|
94
75
|
<li>
|
|
95
76
|
<a
|
|
96
77
|
href="https://support.thunderheadeng.com/release-notes/"
|
|
97
|
-
class="text-base text-gray-
|
|
78
|
+
class="text-base text-gray-100 hover:text-white"
|
|
98
79
|
>
|
|
99
80
|
Release Notes
|
|
100
81
|
</a>
|
|
@@ -102,7 +83,7 @@
|
|
|
102
83
|
<li>
|
|
103
84
|
<a
|
|
104
85
|
href="https://support.thunderheadeng.com/answers/"
|
|
105
|
-
class="text-base text-gray-
|
|
86
|
+
class="text-base text-gray-100 hover:text-white"
|
|
106
87
|
>
|
|
107
88
|
FAQs
|
|
108
89
|
</a>
|
|
@@ -113,7 +94,7 @@
|
|
|
113
94
|
<div class="md:grid md:grid-cols-2 md:gap-8">
|
|
114
95
|
<div>
|
|
115
96
|
<h3
|
|
116
|
-
class="text-sm font-
|
|
97
|
+
class="text-sm font-bold uppercase tracking-wider text-gray-300"
|
|
117
98
|
>
|
|
118
99
|
Events
|
|
119
100
|
</h3>
|
|
@@ -121,7 +102,7 @@
|
|
|
121
102
|
<li>
|
|
122
103
|
<a
|
|
123
104
|
href="https://www.thunderheadeng.com/training/"
|
|
124
|
-
class="text-base text-gray-
|
|
105
|
+
class="text-base text-gray-100 hover:text-white"
|
|
125
106
|
>
|
|
126
107
|
Calendar
|
|
127
108
|
</a>
|
|
@@ -129,7 +110,7 @@
|
|
|
129
110
|
<li>
|
|
130
111
|
<a
|
|
131
112
|
href="https://www.femtc.com/"
|
|
132
|
-
class="text-base text-gray-
|
|
113
|
+
class="text-base text-gray-100 hover:text-white"
|
|
133
114
|
>
|
|
134
115
|
FEMTC
|
|
135
116
|
</a>
|
|
@@ -137,7 +118,7 @@
|
|
|
137
118
|
<li>
|
|
138
119
|
<a
|
|
139
120
|
href="https://www.thunderheadeng.com/training/"
|
|
140
|
-
class="text-base text-gray-
|
|
121
|
+
class="text-base text-gray-100 hover:text-white"
|
|
141
122
|
>
|
|
142
123
|
Training
|
|
143
124
|
</a>
|
|
@@ -146,7 +127,7 @@
|
|
|
146
127
|
</div>
|
|
147
128
|
<div class="mt-12 md:mt-0">
|
|
148
129
|
<h3
|
|
149
|
-
class="text-sm font-
|
|
130
|
+
class="text-sm font-bold uppercase tracking-wider text-gray-300"
|
|
150
131
|
>
|
|
151
132
|
Company
|
|
152
133
|
</h3>
|
|
@@ -154,7 +135,7 @@
|
|
|
154
135
|
<li>
|
|
155
136
|
<a
|
|
156
137
|
href="https://www.thunderheadeng.com/about/"
|
|
157
|
-
class="text-base text-gray-
|
|
138
|
+
class="text-base text-gray-100 hover:text-white"
|
|
158
139
|
>
|
|
159
140
|
About
|
|
160
141
|
</a>
|
|
@@ -162,7 +143,7 @@
|
|
|
162
143
|
<li>
|
|
163
144
|
<a
|
|
164
145
|
href="https://www.thunderheadeng.com/news/"
|
|
165
|
-
class="text-base text-gray-
|
|
146
|
+
class="text-base text-gray-100 hover:text-white"
|
|
166
147
|
>
|
|
167
148
|
News
|
|
168
149
|
</a>
|
|
@@ -170,7 +151,7 @@
|
|
|
170
151
|
<li>
|
|
171
152
|
<a
|
|
172
153
|
href="https://www.thunderheadeng.com/job-openings/"
|
|
173
|
-
class="text-base text-gray-
|
|
154
|
+
class="text-base text-gray-100 hover:text-white"
|
|
174
155
|
>
|
|
175
156
|
Jobs
|
|
176
157
|
</a>
|
|
@@ -178,7 +159,7 @@
|
|
|
178
159
|
<li>
|
|
179
160
|
<a
|
|
180
161
|
href="https://www.thunderheadeng.com/partners"
|
|
181
|
-
class="text-base text-gray-
|
|
162
|
+
class="text-base text-gray-100 hover:text-white"
|
|
182
163
|
>
|
|
183
164
|
Partners
|
|
184
165
|
</a>
|
|
@@ -189,7 +170,7 @@
|
|
|
189
170
|
</div>
|
|
190
171
|
<div class="mt-8 flex flex-col justify-between md:items-end xl:mt-0">
|
|
191
172
|
<h3
|
|
192
|
-
class="text-right text-sm font-
|
|
173
|
+
class="text-right text-sm font-bold uppercase tracking-wider text-gray-300"
|
|
193
174
|
>
|
|
194
175
|
Subscribe to Updates
|
|
195
176
|
</h3>
|
|
@@ -229,7 +210,7 @@
|
|
|
229
210
|
<div class="flex space-x-6 md:order-3">
|
|
230
211
|
<a
|
|
231
212
|
href="https://www.linkedin.com/company/thunderheadeng"
|
|
232
|
-
class="text-gray-
|
|
213
|
+
class="text-gray-300 hover:text-gray-300"
|
|
233
214
|
>
|
|
234
215
|
<span class="sr-only">LinkedIn</span>
|
|
235
216
|
<svg
|
|
@@ -247,7 +228,7 @@
|
|
|
247
228
|
|
|
248
229
|
<a
|
|
249
230
|
href="https://www.facebook.com/thunderheadeng"
|
|
250
|
-
class="text-gray-
|
|
231
|
+
class="text-gray-300 hover:text-gray-300"
|
|
251
232
|
>
|
|
252
233
|
<span class="sr-only">Facebook</span>
|
|
253
234
|
<svg
|
|
@@ -266,7 +247,7 @@
|
|
|
266
247
|
|
|
267
248
|
<a
|
|
268
249
|
href="https://twitter.com/thunderheadeng"
|
|
269
|
-
class="text-gray-
|
|
250
|
+
class="text-gray-300 hover:text-gray-300"
|
|
270
251
|
>
|
|
271
252
|
<span class="sr-only">Twitter</span>
|
|
272
253
|
<svg
|
|
@@ -281,26 +262,9 @@
|
|
|
281
262
|
</svg>
|
|
282
263
|
</a>
|
|
283
264
|
</div>
|
|
284
|
-
<p class="mt-8 text-sm text-gray-
|
|
265
|
+
<p class="mt-8 text-sm text-gray-300 md:order-1 md:mt-0">
|
|
285
266
|
© 1998 - {d.getFullYear()} Thunderhead Engineering, All rights reserved.
|
|
286
267
|
</p>
|
|
287
|
-
{#if login}
|
|
288
|
-
<div class="mt-4 md:order-2 md:mt-0">
|
|
289
|
-
{#if token}
|
|
290
|
-
<button
|
|
291
|
-
on:click|preventDefault={signOut}
|
|
292
|
-
class="mx-auto flex w-40 items-center justify-center border border-transparent bg-teci-blue-dark px-4 py-2 text-base font-medium leading-6 text-white transition duration-150 ease-in-out hover:bg-teci-blue-light focus:border-teci-blue-dark focus:outline-none"
|
|
293
|
-
>Staff Log out</button
|
|
294
|
-
>
|
|
295
|
-
{:else}
|
|
296
|
-
<a
|
|
297
|
-
href="/auth/login"
|
|
298
|
-
class="mx-auto flex w-40 items-center justify-center border border-transparent bg-teci-blue-dark px-4 py-2 text-base font-medium leading-6 text-white transition duration-150 ease-in-out hover:bg-teci-blue-light focus:border-teci-blue-dark focus:outline-none"
|
|
299
|
-
>Staff Sign In</a
|
|
300
|
-
>
|
|
301
|
-
{/if}
|
|
302
|
-
</div>
|
|
303
|
-
{/if}
|
|
304
268
|
</div>
|
|
305
269
|
</div>
|
|
306
270
|
</footer>
|
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} FooterEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} FooterSlots */
|
|
4
4
|
export default class Footer extends SvelteComponentTyped<{
|
|
5
|
-
|
|
6
|
-
login?: boolean;
|
|
5
|
+
[x: string]: never;
|
|
7
6
|
}, {
|
|
8
7
|
[evt: string]: CustomEvent<any>;
|
|
9
8
|
}, {}> {
|
|
10
|
-
get token(): any;
|
|
11
9
|
}
|
|
12
10
|
export type FooterProps = typeof __propDef.props;
|
|
13
11
|
export type FooterEvents = typeof __propDef.events;
|
|
@@ -15,8 +13,7 @@ export type FooterSlots = typeof __propDef.slots;
|
|
|
15
13
|
import { SvelteComponentTyped } from "svelte";
|
|
16
14
|
declare const __propDef: {
|
|
17
15
|
props: {
|
|
18
|
-
|
|
19
|
-
login?: boolean;
|
|
16
|
+
[x: string]: never;
|
|
20
17
|
};
|
|
21
18
|
events: {
|
|
22
19
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import {
|
|
2
|
+
import { page } from '$app/stores';
|
|
3
3
|
import { paginate, PaginationNav } from "svelte-paginate";
|
|
4
4
|
import Icon from "./Icon.svelte";
|
|
5
5
|
|
|
6
6
|
export let data;
|
|
7
7
|
|
|
8
|
-
let posts =
|
|
8
|
+
let posts = $page.data.newsPosts;
|
|
9
9
|
let filteredPosts = [];
|
|
10
10
|
let items = [];
|
|
11
11
|
let currentPage = 1;
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
<a
|
|
132
132
|
class="mr-2 mb-2 inline-block"
|
|
133
133
|
href="/news/filter/{term}"
|
|
134
|
-
|
|
134
|
+
target="_self"
|
|
135
135
|
>
|
|
136
136
|
<span
|
|
137
137
|
class="inline-flex items-center rounded-full bg-teci-blue-dark px-2.5 py-0.5 text-xs text-white hover:bg-teci-blue-light"
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
thumb = `https://teci-files.imgix.net/www/images/${data.thumbnail}?w=1214&fit=clip&auto=compress&auto=format`;
|
|
65
65
|
} else if (id) {
|
|
66
66
|
if (youtube) {
|
|
67
|
-
thumb = `https://
|
|
67
|
+
thumb = `https://i.ytimg.com/vi/${id}/maxresdefault.jpg`;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
</script>
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
import { convert } from "html-to-text";
|
|
4
4
|
import { dev } from "$app/environment";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
const getContent = async (content='') => {
|
|
7
|
+
|
|
7
8
|
let indexData = [];
|
|
8
9
|
let iterableContentFiles = Object.entries([]);
|
|
9
10
|
let sortedIndex = [];
|
|
@@ -89,7 +90,9 @@ export async function getContent(content) {
|
|
|
89
90
|
}
|
|
90
91
|
}
|
|
91
92
|
|
|
92
|
-
sortedIndex = indexData.slice().sort((a, b) => b.date - a.date);
|
|
93
|
+
sortedIndex = indexData.slice().sort((a, b) => new Date(b.date) - new Date(a.date));
|
|
93
94
|
|
|
94
95
|
return sortedIndex;
|
|
95
96
|
}
|
|
97
|
+
|
|
98
|
+
export default getContent
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export { default as Banner } from './components/Banner.svelte';
|
|
2
|
+
export { default as Button } from './components/Button.svelte';
|
|
3
|
+
export { default as Card } from './components/Card.svelte';
|
|
4
|
+
export { default as ContentTwoColumns } from './components/ContentTwoColumns.svelte';
|
|
5
|
+
export { default as CountrySelector } from './components/CountrySelector.svelte';
|
|
6
|
+
export { default as CTA } from './components/CTA.svelte';
|
|
7
|
+
export { default as CTABranded } from './components/CTABranded.svelte';
|
|
8
|
+
export { default as CTASplitImage } from './components/CTASplitImage.svelte';
|
|
9
|
+
export { default as FeatureGrid } from './components/FeatureGrid.svelte';
|
|
10
|
+
export { default as Figure } from './components/Figure.svelte';
|
|
11
|
+
export { default as Footer } from './components/Footer.svelte';
|
|
12
|
+
export { default as Header } from './components/Header.svelte';
|
|
13
|
+
export { default as HeadingCentered } from './components/HeadingCentered.svelte';
|
|
14
|
+
export { default as Hero } from './components/Hero.svelte';
|
|
15
|
+
export { default as Icon } from './components/Icon.svelte';
|
|
16
|
+
export { default as LogoCloud } from './components/LogoCloud.svelte';
|
|
17
|
+
export { default as Math } from './components/Math.svelte';
|
|
18
|
+
export { default as MediaFeature } from './components/MediaFeature.svelte';
|
|
19
|
+
export { default as Modal } from './components/Modal.svelte';
|
|
20
|
+
export { default as NewsGrid } from './components/NewsGrid.svelte';
|
|
21
|
+
export { default as PricingTable } from './components/PricingTable.svelte';
|
|
22
|
+
export { default as SidebarContent } from './components/SidebarContent.svelte';
|
|
23
|
+
export { default as Stats } from './components/Stats.svelte';
|
|
24
|
+
export { default as Subscribe } from './components/Subscribe.svelte';
|
|
25
|
+
export { default as Testimonial } from './components/Testimonial.svelte';
|
|
26
|
+
export { default as ThreeColumns } from './components/ThreeColumns.svelte';
|
|
27
|
+
export { default as TrialForm } from './components/TrialForm.svelte';
|
|
28
|
+
export { default as Video } from './components/Video.svelte';
|
|
29
|
+
export { default as Wrap } from './components/Wrap.svelte';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export { default as Banner } from './components/Banner.svelte';
|
|
2
|
+
export { default as Button } from './components/Button.svelte';
|
|
3
|
+
export { default as Card } from './components/Card.svelte';
|
|
4
|
+
export { default as ContentTwoColumns } from './components/ContentTwoColumns.svelte';
|
|
5
|
+
export { default as CountrySelector } from './components/CountrySelector.svelte';
|
|
6
|
+
export { default as CTA } from './components/CTA.svelte';
|
|
7
|
+
export { default as CTABranded } from './components/CTABranded.svelte';
|
|
8
|
+
export { default as CTASplitImage } from './components/CTASplitImage.svelte';
|
|
9
|
+
export { default as FeatureGrid } from './components/FeatureGrid.svelte';
|
|
10
|
+
export { default as Figure } from './components/Figure.svelte';
|
|
11
|
+
export { default as Footer } from './components/Footer.svelte';
|
|
12
|
+
export { default as Header } from './components/Header.svelte';
|
|
13
|
+
export { default as HeadingCentered } from './components/HeadingCentered.svelte';
|
|
14
|
+
export { default as Hero } from './components/Hero.svelte';
|
|
15
|
+
export { default as Icon } from './components/Icon.svelte';
|
|
16
|
+
export { default as LogoCloud } from './components/LogoCloud.svelte';
|
|
17
|
+
export { default as Math } from './components/Math.svelte';
|
|
18
|
+
export { default as MediaFeature } from './components/MediaFeature.svelte';
|
|
19
|
+
export { default as Modal } from './components/Modal.svelte';
|
|
20
|
+
export { default as NewsGrid } from './components/NewsGrid.svelte';
|
|
21
|
+
export { default as PricingTable } from './components/PricingTable.svelte';
|
|
22
|
+
export { default as SidebarContent } from './components/SidebarContent.svelte';
|
|
23
|
+
export { default as Stats } from './components/Stats.svelte';
|
|
24
|
+
export { default as Subscribe } from './components/Subscribe.svelte';
|
|
25
|
+
export { default as Testimonial } from './components/Testimonial.svelte';
|
|
26
|
+
export { default as ThreeColumns } from './components/ThreeColumns.svelte';
|
|
27
|
+
export { default as TrialForm } from './components/TrialForm.svelte';
|
|
28
|
+
export { default as Video } from './components/Video.svelte';
|
|
29
|
+
export { default as Wrap } from './components/Wrap.svelte';
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import { browser, dev } from "$app/environment";
|
|
3
|
-
import { getContext } from "svelte";
|
|
4
|
-
|
|
5
2
|
import CTA from "../components/CTA.svelte";
|
|
6
3
|
import HeadingCentered from "../components/HeadingCentered.svelte";
|
|
7
4
|
import MediaFeature from "../components/MediaFeature.svelte";
|
|
@@ -11,7 +8,6 @@
|
|
|
11
8
|
import ThreeColumn from "../components/ThreeColumn.svelte";
|
|
12
9
|
import TrialForm from "../components/TrialForm.svelte";
|
|
13
10
|
import Video from "../components/Video.svelte";
|
|
14
|
-
import MetaSocial from "../components/MetaSocial.svelte";
|
|
15
11
|
import Hero from "../components/Hero.svelte";
|
|
16
12
|
import CTABranded from "../components/CTABranded.svelte";
|
|
17
13
|
import FeatureGrid from "../components/FeatureGrid.svelte";
|
|
@@ -45,40 +41,36 @@
|
|
|
45
41
|
|
|
46
42
|
export let title;
|
|
47
43
|
export let date;
|
|
48
|
-
export let lastmod;
|
|
49
44
|
export let summary;
|
|
50
|
-
export let
|
|
45
|
+
export let image;
|
|
46
|
+
export let lastmod;
|
|
51
47
|
export let layout;
|
|
52
48
|
export let page_sections;
|
|
53
49
|
|
|
54
50
|
let featuredImage;
|
|
55
|
-
let url;
|
|
56
|
-
let host;
|
|
57
|
-
|
|
58
|
-
url = getContext("currentURL");
|
|
59
|
-
host = getContext("currentHost");
|
|
60
51
|
|
|
61
|
-
if (
|
|
62
|
-
|
|
63
|
-
featuredImage = images[0];
|
|
64
|
-
} else {
|
|
65
|
-
featuredImage =
|
|
66
|
-
"https://teci-files.imgix.net/www/images/" +
|
|
67
|
-
images[0] +
|
|
68
|
-
"?w=1200&h=627&fit=crop&auto=compress&auto=format";
|
|
69
|
-
}
|
|
52
|
+
if (image) {
|
|
53
|
+
featuredImage = "https://teci-files.imgix.net/www/images/" + image + "?w=1200&h=627&fit=crop&auto=compress&auto=format";
|
|
70
54
|
} else {
|
|
71
|
-
featuredImage =
|
|
72
|
-
"https://teci-files.imgix.net/www/images/teci_icon_250.png";
|
|
55
|
+
featuredImage = "https://teci-files.imgix.net/www/images/teci_icon_250.png";
|
|
73
56
|
}
|
|
74
57
|
</script>
|
|
75
58
|
|
|
76
59
|
<svelte:head>
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
60
|
+
<title>{title} | Thunderhead Engineering</title>
|
|
61
|
+
<meta data-key="description" name="description" content={summary}>
|
|
62
|
+
<meta property="og:type" content="article" />
|
|
63
|
+
<meta property="og:title" content={title} />
|
|
64
|
+
<meta name="twitter:title" content={title} />
|
|
65
|
+
<meta property="og:description" content={summary} />
|
|
66
|
+
<meta name="twitter:description" content={summary} />
|
|
67
|
+
<meta name="twitter:card" content="summary_large_image" />
|
|
68
|
+
<meta name="twitter:site" content="@thunderheadeng" />
|
|
69
|
+
<meta name="twitter:creator" content="@thunderheadeng" />
|
|
70
|
+
<meta property="og:image" content={featuredImage} />
|
|
71
|
+
<meta name="twitter:card" content={featuredImage} />
|
|
72
|
+
<!-- <meta property="og:image:width" content={coverWidth} />
|
|
73
|
+
<meta property="og:image:height" content={coverHeight} /> -->
|
|
82
74
|
</svelte:head>
|
|
83
75
|
|
|
84
76
|
<article class="flex flex-col space-y-16 {layout}">
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} BlocksEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} BlocksSlots */
|
|
4
4
|
export default class Blocks extends SvelteComponentTyped<{
|
|
5
|
-
summary: any;
|
|
6
5
|
title: any;
|
|
7
6
|
date: any;
|
|
7
|
+
summary: any;
|
|
8
|
+
image: any;
|
|
8
9
|
lastmod: any;
|
|
9
10
|
layout: any;
|
|
10
11
|
page_sections: any;
|
|
11
|
-
images?: any[];
|
|
12
12
|
}, {
|
|
13
13
|
[evt: string]: CustomEvent<any>;
|
|
14
14
|
}, {
|
|
@@ -21,13 +21,13 @@ export type BlocksSlots = typeof __propDef.slots;
|
|
|
21
21
|
import { SvelteComponentTyped } from "svelte";
|
|
22
22
|
declare const __propDef: {
|
|
23
23
|
props: {
|
|
24
|
-
summary: any;
|
|
25
24
|
title: any;
|
|
26
25
|
date: any;
|
|
26
|
+
summary: any;
|
|
27
|
+
image: any;
|
|
27
28
|
lastmod: any;
|
|
28
29
|
layout: any;
|
|
29
30
|
page_sections: any;
|
|
30
|
-
images?: any[];
|
|
31
31
|
};
|
|
32
32
|
events: {
|
|
33
33
|
[evt: string]: CustomEvent<any>;
|
package/package.json
CHANGED
|
@@ -1,12 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tecitheme",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"dev": "vite dev",
|
|
7
|
+
"build": "vite build",
|
|
8
|
+
"package": "svelte-package",
|
|
9
|
+
"preview": "vite preview",
|
|
10
|
+
"check": "svelte-check --tsconfig ./tsconfig.json",
|
|
11
|
+
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
|
|
12
|
+
"lint": "prettier --ignore-path .gitignore --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .",
|
|
13
|
+
"format": "prettier --ignore-path .gitignore --write --plugin-search-dir=. ."
|
|
14
|
+
},
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"svelte": "./dist/index.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"svelte": "^3.55.1",
|
|
26
|
+
"@sveltejs/kit":"^1.8.3"
|
|
27
|
+
},
|
|
5
28
|
"devDependencies": {
|
|
6
29
|
"@jsdevtools/rehype-toc": "^3.0.2",
|
|
7
|
-
"@sveltejs/adapter-
|
|
8
|
-
"@sveltejs/kit": "1.
|
|
9
|
-
"@sveltejs/package": "^
|
|
30
|
+
"@sveltejs/adapter-static": "2.0.1",
|
|
31
|
+
"@sveltejs/kit": "1.8.3",
|
|
32
|
+
"@sveltejs/package": "^2.0.2",
|
|
10
33
|
"@tailwindcss/forms": "^0.5.3",
|
|
11
34
|
"@tailwindcss/typography": "^0.5.9",
|
|
12
35
|
"@types/cookie": "^0.5.1",
|
|
@@ -40,51 +63,13 @@
|
|
|
40
63
|
"vite": "^4.1.1",
|
|
41
64
|
"vite-plugin-autoimport": "^1.6.6"
|
|
42
65
|
},
|
|
43
|
-
"type": "module",
|
|
44
66
|
"dependencies": {
|
|
45
67
|
"@lukeed/uuid": "^2.0.0",
|
|
46
68
|
"cookie": "^0.5.0",
|
|
47
69
|
"katex": "^0.16.4",
|
|
48
70
|
"svelte": "^3.55.1"
|
|
49
71
|
},
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"./components/Banner.svelte": "./components/Banner.svelte",
|
|
54
|
-
"./components/Button.svelte": "./components/Button.svelte",
|
|
55
|
-
"./components/CTA.svelte": "./components/CTA.svelte",
|
|
56
|
-
"./components/CTABranded.svelte": "./components/CTABranded.svelte",
|
|
57
|
-
"./components/CTASplitImage.svelte": "./components/CTASplitImage.svelte",
|
|
58
|
-
"./components/Card.svelte": "./components/Card.svelte",
|
|
59
|
-
"./components/ContentTwoColumns.svelte": "./components/ContentTwoColumns.svelte",
|
|
60
|
-
"./components/CountrySelector.svelte": "./components/CountrySelector.svelte",
|
|
61
|
-
"./components/FeatureGrid.svelte": "./components/FeatureGrid.svelte",
|
|
62
|
-
"./components/Figure.svelte": "./components/Figure.svelte",
|
|
63
|
-
"./components/Footer.svelte": "./components/Footer.svelte",
|
|
64
|
-
"./components/Header.svelte": "./components/Header.svelte",
|
|
65
|
-
"./components/HeadingCentered.svelte": "./components/HeadingCentered.svelte",
|
|
66
|
-
"./components/Hero.svelte": "./components/Hero.svelte",
|
|
67
|
-
"./components/Icon.svelte": "./components/Icon.svelte",
|
|
68
|
-
"./components/LogoCloud.svelte": "./components/LogoCloud.svelte",
|
|
69
|
-
"./components/Math.svelte": "./components/Math.svelte",
|
|
70
|
-
"./components/MediaFeature.svelte": "./components/MediaFeature.svelte",
|
|
71
|
-
"./components/MetaSocial.svelte": "./components/MetaSocial.svelte",
|
|
72
|
-
"./components/Modal.svelte": "./components/Modal.svelte",
|
|
73
|
-
"./components/NewsGrid.svelte": "./components/NewsGrid.svelte",
|
|
74
|
-
"./components/PricingTable.svelte": "./components/PricingTable.svelte",
|
|
75
|
-
"./components/SidebarContent.svelte": "./components/SidebarContent.svelte",
|
|
76
|
-
"./components/Stats.svelte": "./components/Stats.svelte",
|
|
77
|
-
"./components/Subscribe.svelte": "./components/Subscribe.svelte",
|
|
78
|
-
"./components/Testimonial.svelte": "./components/Testimonial.svelte",
|
|
79
|
-
"./components/ThreeColumn.svelte": "./components/ThreeColumn.svelte",
|
|
80
|
-
"./components/TrialForm.svelte": "./components/TrialForm.svelte",
|
|
81
|
-
"./components/Video.svelte": "./components/Video.svelte",
|
|
82
|
-
"./components/Wrap.svelte": "./components/Wrap.svelte",
|
|
83
|
-
"./get-content": "./get-content.js",
|
|
84
|
-
"./layouts/blocks.svelte": "./layouts/blocks.svelte",
|
|
85
|
-
"./req_utils": "./req_utils.js",
|
|
86
|
-
"./site_config.json": "./site_config.json",
|
|
87
|
-
"./utils": "./utils.js",
|
|
88
|
-
"./variables": "./variables.js"
|
|
89
|
-
}
|
|
72
|
+
"svelte": "./dist/index.js",
|
|
73
|
+
"types": "./dist/index.d.ts",
|
|
74
|
+
"type": "module"
|
|
90
75
|
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export let title;
|
|
3
|
-
export let description;
|
|
4
|
-
export let image;
|
|
5
|
-
export let url;
|
|
6
|
-
</script>
|
|
7
|
-
|
|
8
|
-
<meta property="og:type" content="website" />
|
|
9
|
-
<meta property="og:url" content={url} />
|
|
10
|
-
<meta name="og:title" content={title} />
|
|
11
|
-
<meta name="og:description" content={description} />
|
|
12
|
-
<meta name="og:image" content={image} />
|
|
13
|
-
<meta name="twitter:card" content="summary_large_image" />
|
|
14
|
-
<meta name="twitter:site" content="@thunderheadeng" />
|
|
15
|
-
<meta name="twitter:creator" content="@thunderheadeng" />
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} MetaSocialProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} MetaSocialEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} MetaSocialSlots */
|
|
4
|
-
export default class MetaSocial extends SvelteComponentTyped<{
|
|
5
|
-
title: any;
|
|
6
|
-
description: any;
|
|
7
|
-
image: any;
|
|
8
|
-
url: any;
|
|
9
|
-
}, {
|
|
10
|
-
[evt: string]: CustomEvent<any>;
|
|
11
|
-
}, {}> {
|
|
12
|
-
}
|
|
13
|
-
export type MetaSocialProps = typeof __propDef.props;
|
|
14
|
-
export type MetaSocialEvents = typeof __propDef.events;
|
|
15
|
-
export type MetaSocialSlots = typeof __propDef.slots;
|
|
16
|
-
import { SvelteComponentTyped } from "svelte";
|
|
17
|
-
declare const __propDef: {
|
|
18
|
-
props: {
|
|
19
|
-
title: any;
|
|
20
|
-
description: any;
|
|
21
|
-
image: any;
|
|
22
|
-
url: any;
|
|
23
|
-
};
|
|
24
|
-
events: {
|
|
25
|
-
[evt: string]: CustomEvent<any>;
|
|
26
|
-
};
|
|
27
|
-
slots: {};
|
|
28
|
-
};
|
|
29
|
-
export {};
|
package/variables.js
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|