tecitheme 0.1.9 → 0.2.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.
@@ -1,5 +1,5 @@
1
1
  <script>
2
- import { dev } from '$app/env';
2
+ import { dev } from '$app/environment';
3
3
  //Allows icons from https://fonts.google.com/icons?selected=Material+Icons by name in the format 'icon-XXXX'.
4
4
  import Icon from './Icon.svelte';
5
5
  import Wrap from './Wrap.svelte';
@@ -1,5 +1,5 @@
1
1
  <script>
2
- import { dev } from '$app/env';
2
+ import { dev } from '$app/environment';
3
3
 
4
4
  export let image;
5
5
  export let title;
@@ -1,6 +1,6 @@
1
1
  <script>
2
- import { session } from '$app/stores'
3
- export const token = $session.token
2
+ import { page } from '$app/stores';
3
+ export const token = $page.data.token
4
4
  export let login = false;
5
5
 
6
6
  let d = new Date();
@@ -126,7 +126,7 @@
126
126
  </a>
127
127
  </li>
128
128
  <li>
129
- <a href="https://www.thunderheadeng.com/pyrosim/pyrosim-licensing/#distributors" class="text-base text-gray-300 hover:text-white">
129
+ <a href="https://www.thunderheadeng.com/partners" class="text-base text-gray-300 hover:text-white">
130
130
  Partners
131
131
  </a>
132
132
  </li>
@@ -52,18 +52,14 @@
52
52
  <nav class="flex md:space-x-6 lg:space-x-10">
53
53
  <!-- Products -->
54
54
  <div id="products">
55
- <button
56
- type="button"
57
- on:click="{() =>
58
- openMenu == 'products'
59
- ? (openMenu = '')
60
- : (openMenu = 'products')}"
55
+ <button type="button"
56
+ on:click={() => (openMenu == 'products')?(openMenu = ''):(openMenu = 'products')}
61
57
  class="group inline-flex items-center bg-white text-base font-medium text-gray-500 hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-teci-blue-light focus:ring-offset-2"
62
58
  aria-expanded="{openMenu == 'products'}"
63
59
  >
64
60
  <span class:text-gray-900="{openMenu == 'products'}">Products</span>
65
61
  <svg
66
- class="ml-2 h-5 w-5 group-hover:text-gray-900 {openMenu ===
62
+ class="ml-2 h-5 w-5 group-hover:text-gray-900 {openMenu ==
67
63
  'products'
68
64
  ? 'rotate-180 text-gray-900'
69
65
  : 'text-gray-400'}"
@@ -88,7 +84,7 @@
88
84
  in:slide="{{ duration: 250, easing: cubicOut }}"
89
85
  out:slide="{{ duration: 150, easing: cubicIn }}"
90
86
  >
91
- <div on:click="{() => (openMenu = '')}"
87
+ <div on:click={() => (openMenu = '')}
92
88
  class="mx-auto grid max-w-7xl gap-y-8 px-4 py-8 sm:grid-cols-2 sm:gap-8 sm:px-6 lg:grid-cols-3 lg:px-8"
93
89
  >
94
90
  <a
@@ -746,7 +742,7 @@
746
742
  </a>
747
743
 
748
744
  <a
749
- href="https://www.thunderheadeng.com/pyrosim/licensing#international-distributors"
745
+ href="https://www.thunderheadeng.com/partners"
750
746
  class="-m-3 flex items-start p-3 transition duration-150 ease-in-out hover:bg-gray-50"
751
747
  >
752
748
  <svg
@@ -1,7 +1,7 @@
1
1
  <script>
2
2
  import Video from './Video.svelte'
3
3
 
4
- import { dev } from '$app/env';
4
+ import { dev } from '$app/environment';
5
5
  export let data;
6
6
 
7
7
  let figureImage;
package/get-content.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // get-content.js
2
2
  // HTML parser from https://github.com/html-to-text/node-html-to-text
3
3
  import { convert } from "html-to-text"
4
- import { dev } from "$app/env";
4
+ import { dev } from "$app/environment";
5
5
 
6
6
  export async function getContent (content) {
7
7
  let indexData = []
@@ -11,10 +11,10 @@ export async function getContent (content) {
11
11
  // Use 'content' variable to determine files to import.
12
12
  switch (content) {
13
13
  case "news":
14
- iterableContentFiles = Object.entries(import.meta.glob("/src/routes/news/*(!(*index|*news)).md"));
14
+ iterableContentFiles = Object.entries(import.meta.glob("/src/routes/news/*(!(+page)).md"));
15
15
  break;
16
16
  default:
17
- iterableContentFiles = Object.entries(import.meta.glob("/src/routes/**/*(!(*index|*news)).md"));
17
+ iterableContentFiles = Object.entries(import.meta.glob("/src/routes/**/*(!(+page)).md"));
18
18
  }
19
19
 
20
20
  const allContent = await Promise.all(
@@ -1,5 +1,5 @@
1
1
  <script>
2
- import { browser, dev } from '$app/env';
2
+ import { browser, dev } from '$app/environment';
3
3
  import { getContext } from 'svelte';
4
4
 
5
5
  import CTA from '../components/CTA.svelte';
package/package.json CHANGED
@@ -1,50 +1,51 @@
1
1
  {
2
2
  "name": "tecitheme",
3
- "version": "0.1.9",
3
+ "version": "0.2.0",
4
4
  "svelte": true,
5
5
  "devDependencies": {
6
6
  "@jsdevtools/rehype-toc": "^3.0.2",
7
- "@sveltejs/adapter-netlify": "1.0.0-next.65",
8
- "@sveltejs/kit": "1.0.0-next.371",
9
- "@tailwindcss/forms": "^0.5.2",
10
- "@tailwindcss/typography": "^0.5.2",
7
+ "@sveltejs/adapter-netlify": "1.0.0-next.83",
8
+ "@sveltejs/kit": "1.0.0-next.529",
9
+ "@sveltejs/package": "^1.0.0-next.5",
10
+ "@tailwindcss/forms": "^0.5.3",
11
+ "@tailwindcss/typography": "^0.5.7",
11
12
  "@types/cookie": "^0.5.1",
12
- "@typescript-eslint/eslint-plugin": "^5.27.0",
13
- "@typescript-eslint/parser": "^5.27.0",
14
- "autoprefixer": "^10.4.7",
15
- "dotenv": "^16.0.1",
13
+ "@typescript-eslint/eslint-plugin": "^5.41.0",
14
+ "@typescript-eslint/parser": "^5.41.0",
15
+ "autoprefixer": "^10.4.12",
16
+ "dotenv": "^16.0.3",
16
17
  "encoding": "^0.1.13",
17
- "eslint": "^8.17.0",
18
+ "eslint": "^8.26.0",
18
19
  "eslint-config-prettier": "^8.5.0",
19
20
  "eslint-plugin-svelte3": "^4.0.0",
20
- "html-to-text": "^8.2.0",
21
+ "html-to-text": "^8.2.1",
21
22
  "markdown-yaml-metadata-parser": "^3.0.0",
22
23
  "mdsvex": "^0.10.6",
23
- "postcss": "^8.4.14",
24
- "prettier": "^2.6.2",
25
- "prettier-plugin-tailwindcss": "^0.1.11",
24
+ "postcss": "^8.4.18",
25
+ "prettier": "^2.7.1",
26
+ "prettier-plugin-tailwindcss": "^0.1.13",
26
27
  "rehype-parse": "^8.0.4",
27
28
  "rehype-slug": "^5.0.1",
28
29
  "rehype-stringify": "^9.0.3",
29
30
  "stream": "^0.0.2",
30
- "svelte": "^3.49.0",
31
- "svelte-check": "^2.7.2",
32
- "svelte-paginate": "^0.0.1",
31
+ "svelte": "^3.52.0",
32
+ "svelte-check": "^2.9.2",
33
+ "svelte-paginate": "^0.1.0",
33
34
  "svelte-preprocess": "^4.10.7",
34
- "svelte2tsx": "^0.5.10",
35
- "tailwindcss": "^3.1.3",
35
+ "svelte2tsx": "^0.5.20",
36
+ "tailwindcss": "^3.2.1",
36
37
  "tslib": "^2.4.0",
37
- "typescript": "^4.7.3",
38
- "uuid-by-string": "^3.0.7",
39
- "vite": "^2.9.10",
38
+ "typescript": "^4.8.4",
39
+ "uuid-by-string": "^4.0.0",
40
+ "vite": "^3.2.0",
40
41
  "vite-plugin-autoimport": "^1.6.6"
41
42
  },
42
43
  "type": "module",
43
44
  "dependencies": {
44
45
  "@lukeed/uuid": "^2.0.0",
45
46
  "cookie": "^0.5.0",
46
- "katex": "^0.15.6",
47
- "svelte": "^3.49.0"
47
+ "katex": "^0.16.3",
48
+ "svelte": "^3.52.0"
48
49
  },
49
50
  "exports": {
50
51
  "./package.json": "./package.json",
@@ -73,6 +74,7 @@
73
74
  "./get-content": "./get-content.js",
74
75
  "./layouts/blocks.svelte": "./layouts/blocks.svelte",
75
76
  "./req_utils": "./req_utils.js",
77
+ "./site_config.json": "./site_config.json",
76
78
  "./utils": "./utils.js",
77
79
  "./variables": "./variables.js"
78
80
  }
package/req_utils.js CHANGED
@@ -1,4 +1,4 @@
1
- import {browser} from '$app/env'
1
+ import {browser} from '$app/environment'
2
2
 
3
3
  export function browserGet(key) {
4
4
  if (browser) {
@@ -0,0 +1,11 @@
1
+ {
2
+ "showBanner": true,
3
+ "bannerData":{
4
+ "showCTA": true,
5
+ "shortText": "Short text in a few words to show how it works.",
6
+ "longText": "Long test text that goes on and on for a while with some information about something that people should know about.",
7
+ "ctaText": "Take Action",
8
+ "ctaLink": "https://www.thunderheadeng.com",
9
+ "allowClose": false
10
+ }
11
+ }