terrier-engine 4.5.0 → 4.5.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 CHANGED
@@ -4,7 +4,7 @@
4
4
  "files": [
5
5
  "*"
6
6
  ],
7
- "version": "4.5.0",
7
+ "version": "4.5.1",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/Terrier-Tech/terrier-engine"
@@ -273,6 +273,10 @@ import RefreshRaw from '../images/icons/refresh.svg?raw'
273
273
  // @ts-ignore
274
274
  import RefreshSrc from '../images/icons/refresh.svg'
275
275
  // @ts-ignore
276
+ import RelatedPostsRaw from '../images/icons/related_posts.svg?raw'
277
+ // @ts-ignore
278
+ import RelatedPostsSrc from '../images/icons/related_posts.svg'
279
+ // @ts-ignore
276
280
  import RequestRaw from '../images/icons/request.svg?raw'
277
281
  // @ts-ignore
278
282
  import RequestSrc from '../images/icons/request.svg'
@@ -622,6 +626,10 @@ export const IconDefs: Record<HubIconName,{ raw: string, src: string }> = {
622
626
  raw: RefreshRaw,
623
627
  src: RefreshSrc,
624
628
  },
629
+ "hub-related_posts": {
630
+ raw: RelatedPostsRaw,
631
+ src: RelatedPostsSrc,
632
+ },
625
633
  "hub-request": {
626
634
  raw: RequestRaw,
627
635
  src: RequestSrc,
@@ -705,7 +713,7 @@ export const IconDefs: Record<HubIconName,{ raw: string, src: string }> = {
705
713
  }
706
714
 
707
715
  const Names = [
708
- 'hub-active', 'hub-admin', 'hub-archive', 'hub-arrow_down', 'hub-arrow_left', 'hub-arrow_right', 'hub-arrow_up', 'hub-assign', 'hub-attachment', 'hub-back', 'hub-badge', 'hub-board', 'hub-branch', 'hub-bug', 'hub-calculator', 'hub-checkmark', 'hub-close', 'hub-clypboard', 'hub-comment', 'hub-complete', 'hub-dashboard', 'hub-data_pull', 'hub-data_update', 'hub-database', 'hub-day', 'hub-delete', 'hub-documentation', 'hub-edit', 'hub-feature', 'hub-flex', 'hub-forward', 'hub-github', 'hub-history', 'hub-home', 'hub-image', 'hub-inbox', 'hub-info', 'hub-internal', 'hub-issue', 'hub-lane', 'hub-lane_asap', 'hub-lane_days', 'hub-lane_hours', 'hub-lane_weeks', 'hub-lanes_board', 'hub-level_complete', 'hub-level_highway', 'hub-level_on_ramp', 'hub-level_parking', 'hub-metrics', 'hub-minus', 'hub-night', 'hub-origin', 'hub-pending', 'hub-plus', 'hub-post', 'hub-posts', 'hub-pr_closed', 'hub-pr_merged', 'hub-pr_open', 'hub-prioritized', 'hub-project', 'hub-question', 'hub-reaction', 'hub-read_mail', 'hub-recent', 'hub-refresh', 'hub-request', 'hub-settings', 'hub-status', 'hub-step_deploy', 'hub-step_develop', 'hub-step_investigate', 'hub-step_review', 'hub-step_test', 'hub-steps', 'hub-steps_board', 'hub-subscribe', 'hub-support', 'hub-terrier', 'hub-thumbs_up', 'hub-type', 'hub-unprioritized', 'hub-upload', 'hub-user', 'hub-users', 'hub-week'
716
+ 'hub-active', 'hub-admin', 'hub-archive', 'hub-arrow_down', 'hub-arrow_left', 'hub-arrow_right', 'hub-arrow_up', 'hub-assign', 'hub-attachment', 'hub-back', 'hub-badge', 'hub-board', 'hub-branch', 'hub-bug', 'hub-calculator', 'hub-checkmark', 'hub-close', 'hub-clypboard', 'hub-comment', 'hub-complete', 'hub-dashboard', 'hub-data_pull', 'hub-data_update', 'hub-database', 'hub-day', 'hub-delete', 'hub-documentation', 'hub-edit', 'hub-feature', 'hub-flex', 'hub-forward', 'hub-github', 'hub-history', 'hub-home', 'hub-image', 'hub-inbox', 'hub-info', 'hub-internal', 'hub-issue', 'hub-lane', 'hub-lane_asap', 'hub-lane_days', 'hub-lane_hours', 'hub-lane_weeks', 'hub-lanes_board', 'hub-level_complete', 'hub-level_highway', 'hub-level_on_ramp', 'hub-level_parking', 'hub-metrics', 'hub-minus', 'hub-night', 'hub-origin', 'hub-pending', 'hub-plus', 'hub-post', 'hub-posts', 'hub-pr_closed', 'hub-pr_merged', 'hub-pr_open', 'hub-prioritized', 'hub-project', 'hub-question', 'hub-reaction', 'hub-read_mail', 'hub-recent', 'hub-refresh', 'hub-related_posts', 'hub-request', 'hub-settings', 'hub-status', 'hub-step_deploy', 'hub-step_develop', 'hub-step_investigate', 'hub-step_review', 'hub-step_test', 'hub-steps', 'hub-steps_board', 'hub-subscribe', 'hub-support', 'hub-terrier', 'hub-thumbs_up', 'hub-type', 'hub-unprioritized', 'hub-upload', 'hub-user', 'hub-users', 'hub-week'
709
717
  ] as const
710
718
 
711
719
  export type HubIconName = typeof Names[number]
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><g fill="currentColor" fill-rule="evenodd"><path d="M16 4c.583 0 1.143.1 1.664.283-.265.13-.52.276-.764.436a4.375 4.375 0 0 0-5.133 5.387 6.886 6.886 0 0 1 4.913-5.238c-.351.248-.68.526-.983.829A7.477 7.477 0 0 0 13.5 11c0 .9.159 1.763.45 2.563A5.004 5.004 0 0 1 11 9a5 5 0 0 1 5-5Z"/><path fill-opacity="0.33" fill-rule="nonzero" d="M16 4c.583 0 1.143.1 1.664.283a7.463 7.463 0 0 0-1.967 1.414A7.477 7.477 0 0 0 13.5 11c0 .9.159 1.763.45 2.563A5.004 5.004 0 0 1 11 9a5 5 0 0 1 5-5Z"/><path fill-opacity="0.33" fill-rule="nonzero" d="M4.715 20.971 6.667 19.8 14 13.2 11.8 11l-6.6 7.333-1.171 1.952a.5.5 0 0 0 .686.686Z"/><path fill-opacity="0.33" fill-rule="nonzero" d="M4.715 20.971 6.667 19.8 14 13.2 11.8 11l-6.6 7.333-1.171 1.952a.5.5 0 0 0 .686.686Z"/><path d="M27.717 14.337a5 5 0 0 1-9.279 3.713c.799.291 1.662.45 2.562.45 2.071 0 3.946-.84 5.303-2.197a7.523 7.523 0 0 0 1.36-1.856Z"/><path fill-opacity="0.33" fill-rule="nonzero" d="M27.717 14.337a5 5 0 0 1-9.279 3.713c.799.291 1.662.45 2.562.45 2.071 0 3.946-.84 5.303-2.197a7.523 7.523 0 0 0 1.36-1.856Z"/><path fill-opacity="0.33" fill-rule="nonzero" d="m11.715 27.971 1.952-1.171L21 20.2 18.8 18l-6.6 7.333-1.171 1.952a.5.5 0 0 0 .686.686Z"/><path fill-opacity="0.33" fill-rule="nonzero" d="m11.715 27.971 1.952-1.171L21 20.2 18.8 18l-6.6 7.333-1.171 1.952a.5.5 0 0 0 .686.686Z"/><g transform="translate(14 4)"><path d="M7 0a7 7 0 1 1 0 14A7 7 0 0 1 7 0Zm0 .875a6.125 6.125 0 0 0-5.927 7.673A9.638 9.638 0 0 1 8.55 1.072 6.135 6.135 0 0 0 7 .875Z"/><circle cx="7" cy="7" r="7" fill-opacity="0.33" fill-rule="nonzero"/></g><path fill-opacity="0.33" fill-rule="nonzero" d="M4.715 27.971 8 26l10-9-3-3-9 10-1.971 3.285a.5.5 0 0 0 .686.686Z"/><path fill-opacity="0.33" fill-rule="nonzero" d="M4.715 27.971 8 26l10-9-3-3-9 10-1.971 3.285a.5.5 0 0 0 .686.686Z"/></g></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><g fill="#000" fill-rule="evenodd"><path d="M16 4c.583 0 1.143.1 1.664.283-.265.13-.52.276-.764.436a4.375 4.375 0 0 0-5.133 5.387 6.886 6.886 0 0 1 4.913-5.238c-.351.248-.68.526-.983.829A7.477 7.477 0 0 0 13.5 11c0 .9.159 1.763.45 2.563A5.004 5.004 0 0 1 11 9a5 5 0 0 1 5-5Z"/><path fill-opacity=".25" fill-rule="nonzero" d="M16 4c.583 0 1.143.1 1.664.283a7.463 7.463 0 0 0-1.967 1.414A7.477 7.477 0 0 0 13.5 11c0 .9.159 1.763.45 2.563A5.004 5.004 0 0 1 11 9a5 5 0 0 1 5-5Z"/><path fill-opacity=".25" fill-rule="nonzero" d="M4.715 20.971 6.667 19.8 14 13.2 11.8 11l-6.6 7.333-1.171 1.952a.5.5 0 0 0 .686.686Z"/><path fill-opacity=".25" fill-rule="nonzero" d="M4.715 20.971 6.667 19.8 14 13.2 11.8 11l-6.6 7.333-1.171 1.952a.5.5 0 0 0 .686.686Z"/><path d="M27.717 14.337a5 5 0 0 1-9.279 3.713c.799.291 1.662.45 2.562.45 2.071 0 3.946-.84 5.303-2.197a7.523 7.523 0 0 0 1.36-1.856Z"/><path fill-opacity=".25" fill-rule="nonzero" d="M27.717 14.337a5 5 0 0 1-9.279 3.713c.799.291 1.662.45 2.562.45 2.071 0 3.946-.84 5.303-2.197a7.523 7.523 0 0 0 1.36-1.856Z"/><path fill-opacity=".25" fill-rule="nonzero" d="m11.715 27.971 1.952-1.171L21 20.2 18.8 18l-6.6 7.333-1.171 1.952a.5.5 0 0 0 .686.686Z"/><path fill-opacity=".25" fill-rule="nonzero" d="m11.715 27.971 1.952-1.171L21 20.2 18.8 18l-6.6 7.333-1.171 1.952a.5.5 0 0 0 .686.686Z"/><g transform="translate(14 4)"><path d="M7 0a7 7 0 1 1 0 14A7 7 0 0 1 7 0Zm0 .875a6.125 6.125 0 0 0-5.927 7.673A9.638 9.638 0 0 1 8.55 1.072 6.135 6.135 0 0 0 7 .875Z"/><circle cx="7" cy="7" r="7" fill-opacity=".25" fill-rule="nonzero"/></g><path fill-opacity=".25" fill-rule="nonzero" d="M4.715 27.971 8 26l10-9-3-3-9 10-1.971 3.285a.5.5 0 0 0 .686.686Z"/><path fill-opacity=".25" fill-rule="nonzero" d="M4.715 27.971 8 26l10-9-3-3-9 10-1.971 3.285a.5.5 0 0 0 .686.686Z"/></g></svg>
@@ -0,0 +1,30 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="32px" height="32px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>icon-related_posts</title>
4
+ <g id="icon-related_posts" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="Group-2" transform="translate(3, 4)" fill="#000000">
6
+ <g id="Group" transform="translate(8, 0)">
7
+ <path d="M5,0 C5.58323499,0 6.14314635,0.0998603115 6.66356892,0.283415769 C6.3991272,0.412758406 6.14448849,0.558917254 5.89977518,0.718991141 C5.60998585,0.656977748 5.30872733,0.625 5,0.625 C2.58375422,0.625 0.625,2.58375422 0.625,5 C0.625,5.38216593 0.67400063,5.75288715 0.766486301,6.10562843 C1.28857511,3.57123985 3.20552213,1.54627572 5.6799267,0.868281389 C5.32867175,1.11636359 4.99977618,1.3936221 4.69669914,1.69669914 C3.33946609,3.05393219 2.5,4.92893219 2.5,7 C2.5,7.9002042 2.65859759,8.76336596 2.94937538,9.56306785 C1.21118454,8.77950877 0,7.03119804 0,5 C0,2.23857625 2.23857625,0 5,0 Z" id="Oval-2"></path>
8
+ <path d="M5,0 C5.58323499,0 6.14314635,0.0998603115 6.66356892,0.283415769 C5.93148824,0.645512583 5.26819306,1.12520523 4.69669914,1.69669914 C3.33946609,3.05393219 2.5,4.92893219 2.5,7 C2.5,7.9002042 2.65859759,8.76336596 2.94937538,9.56306785 C1.21118454,8.77950877 0,7.03119804 0,5 C0,2.23857625 2.23857625,0 5,0 Z" id="Oval-3" fill-opacity="0.25" fill-rule="nonzero"></path>
9
+ </g>
10
+ <path d="M1.71498585,16.9710085 L3.66666667,15.8 L3.66666667,15.8 L11,9.2 L8.8,7 L2.2,14.3333333 L1.02899151,16.2850141 C0.886917431,16.5218043 0.963699963,16.8289344 1.2004901,16.9710085 C1.35883129,17.0660132 1.55664466,17.0660132 1.71498585,16.9710085 Z" id="Path-25" fill-opacity="0.25" fill-rule="nonzero"></path>
11
+ <path d="M1.71498585,16.9710085 L3.66666667,15.8 L3.66666667,15.8 L11,9.2 L8.8,7 L2.2,14.3333333 L1.02899151,16.2850141 C0.886917431,16.5218043 0.963699963,16.8289344 1.2004901,16.9710085 C1.35883129,17.0660132 1.55664466,17.0660132 1.71498585,16.9710085 Z" id="Path-25-Copy" fill-opacity="0.25" fill-rule="nonzero"></path>
12
+ </g>
13
+ <g id="Group-2-Copy" transform="translate(10, 14.3374)" fill="#000000">
14
+ <g id="Group" transform="translate(8.4383, 0)">
15
+ <path d="M9.27859022,-3.78684714e-16 C9.4619239,0.520143481 9.561658,1.07971564 9.561658,1.66258195 C9.561658,4.4240057 7.32308175,6.66258195 4.561658,6.66258195 C2.53085277,6.66258195 0.782825438,5.45186582 -2.22469515e-14,3.71285755 C0.798512833,4.00402492 1.66156893,4.16258195 2.561658,4.16258195 C4.63272581,4.16258195 6.50772581,3.32311585 7.86495886,1.96588281 C8.40785208,1.42298959 8.86790258,0.797253656 9.22452163,0.109263757 Z" id="Oval-2"></path>
16
+ <path d="M9.27859022,-3.78684714e-16 C9.4619239,0.520143481 9.561658,1.07971564 9.561658,1.66258195 C9.561658,4.4240057 7.32308175,6.66258195 4.561658,6.66258195 C2.53085277,6.66258195 0.782825438,5.45186582 -2.22469515e-14,3.71285755 C0.798512833,4.00402492 1.66156893,4.16258195 2.561658,4.16258195 C4.63272581,4.16258195 6.50772581,3.32311585 7.86495886,1.96588281 C8.40785208,1.42298959 8.86790258,0.797253656 9.22452163,0.109263757 Z" id="Oval-3" fill-opacity="0.25" fill-rule="nonzero"></path>
17
+ </g>
18
+ <path d="M1.71498585,13.6335904 L3.66666667,12.4625819 L3.66666667,12.4625819 L11,5.86258195 L8.8,3.66258195 L2.2,10.9959153 L1.02899151,12.9475961 C0.886917431,13.1843862 0.963699963,13.4915164 1.2004901,13.6335904 C1.35883129,13.7285952 1.55664466,13.7285952 1.71498585,13.6335904 Z" id="Path-25" fill-opacity="0.25" fill-rule="nonzero"></path>
19
+ <path d="M1.71498585,13.6335904 L3.66666667,12.4625819 L3.66666667,12.4625819 L11,5.86258195 L8.8,3.66258195 L2.2,10.9959153 L1.02899151,12.9475961 C0.886917431,13.1843862 0.963699963,13.4915164 1.2004901,13.6335904 C1.35883129,13.7285952 1.55664466,13.7285952 1.71498585,13.6335904 Z" id="Path-25-Copy" fill-opacity="0.25" fill-rule="nonzero"></path>
20
+ </g>
21
+ <g id="Group-2" transform="translate(3, 4)" fill="#000000">
22
+ <g id="Group" transform="translate(11, 0)">
23
+ <path d="M7,0 C10.8659932,0 14,3.13400675 14,7 C14,10.8659932 10.8659932,14 7,14 C3.13400675,14 0,10.8659932 0,7 C0,3.13400675 3.13400675,0 7,0 Z M7,0.875 C3.61725591,0.875 0.875,3.61725591 0.875,7 C0.875,7.5350323 0.943600881,8.05404201 1.07308082,8.5478798 C1.84546557,4.79847351 4.79847351,1.84546557 8.54871307,1.07248659 C8.05404201,0.943600881 7.5350323,0.875 7,0.875 Z" id="Oval-2"></path>
24
+ <circle id="Oval" fill-opacity="0.25" fill-rule="nonzero" cx="7" cy="7" r="7"></circle>
25
+ </g>
26
+ <path d="M1.71498585,23.9710085 L5,22 L5,22 L15,13 L12,10 L3,20 L1.02899151,23.2850141 C0.886917431,23.5218043 0.963699963,23.8289344 1.2004901,23.9710085 C1.35883129,24.0660132 1.55664466,24.0660132 1.71498585,23.9710085 Z" id="Path-25" fill-opacity="0.25" fill-rule="nonzero"></path>
27
+ <path d="M1.71498585,23.9710085 L5,22 L5,22 L15,13 L12,10 L3,20 L1.02899151,23.2850141 C0.886917431,23.5218043 0.963699963,23.8289344 1.2004901,23.9710085 C1.35883129,24.0660132 1.55664466,24.0660132 1.71498585,23.9710085 Z" id="Path-25-Copy" fill-opacity="0.25" fill-rule="nonzero"></path>
28
+ </g>
29
+ </g>
30
+ </svg>
@@ -332,7 +332,9 @@ function centerElement(elem: HTMLElement) {
332
332
  }
333
333
  const styleString = [
334
334
  `left: ${(win.width - cappedSize.width)/2}px`,
335
- `top: ${(win.height - cappedSize.height)/2}px`
335
+ `top: ${(win.height - cappedSize.height)/2}px`,
336
+ `max-height: ${cappedSize.height}px`,
337
+ `max-width: ${cappedSize.width}px`
336
338
  ].join('; ')
337
339
  elem.setAttribute('style', styleString)
338
340
  }