From ffac83a4d2ec9866e6e71aef86832cab66b18ad9 Mon Sep 17 00:00:00 2001 From: Maximilian <787658+mfranzke@users.noreply.github.com> Date: Thu, 29 Dec 2022 22:56:10 +0100 Subject: [PATCH 1/8] fix: we need to update that template to handlebars the previous syntax might have been fine for mustache, but we should both explicitly use the block helpers as well as mind the context of variables within each helpers. --- .../src/html/partials/base-template.html | 68 +++++++++---------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/packages/uikit-workshop/src/html/partials/base-template.html b/packages/uikit-workshop/src/html/partials/base-template.html index 9ec4c1556..c0e787149 100755 --- a/packages/uikit-workshop/src/html/partials/base-template.html +++ b/packages/uikit-workshop/src/html/partials/base-template.html @@ -1,85 +1,85 @@ -{{# descBlockExists }} +{{#if descBlockExists }}
- {{# isPatternView }} + {{#if isPatternView }}

- {{ patternName }} {{# patternState }} + {{ patternName }} {{#if patternState }} - {{/ patternState }} + {{/if }}

- {{/ isPatternView }} {{# patternDescExists }} + {{/if }} {{#if patternDescExists }}
- {{{ patternDesc }}} {{# patternDescAdditions }} {{{ patternDescAdditions }}} - {{/ patternDescAdditions }} + {{{ patternDesc }}} {{#if patternDescAdditions }} {{{ patternDescAdditions + }}} {{/if }}
- {{/ patternDescExists }} {{# lineageExists }} + {{/if }} {{#if lineageExists }}

The {{ patternName }} - pattern contains the following patterns: {{# lineage }} + pattern contains the following patterns: {{#each lineage }} - {{ lineagePattern }} {{# lineageState }} - {{/ lineageState }} + {{/if }} - {{# hasComma }}, {{/ hasComma }} {{/ lineage }} + {{#if hasComma }}, {{/if }} {{/each }}

- {{/ lineageExists }} {{# lineageRExists }} + {{/if }} {{#if lineageRExists }}

The {{ patternName }} - pattern is included in the following patterns: {{# lineageR }} + pattern is included in the following patterns: {{#each lineageR }} - {{ lineagePattern }} {{# lineageState }} - {{/ lineageState }} + {{/if }} - {{# hasComma }}, {{/ hasComma }} {{/ lineageR }} + {{#if hasComma }}, {{/if }} {{/each }}

- {{/ lineageRExists }} {{# annotationExists }} + {{/if }} {{#if annotationExists }}

Annotations

    - {{# annotations }} + {{#each annotations }}
  1. {{ title }}

    @@ -87,49 +87,49 @@

    {{ title }}

  2. - {{/ annotations }} + {{/each }}
- {{/ annotationExists }} + {{/if }}
-{{/ descBlockExists }} +{{/if }}
    - {{# panels }} + {{#each panels }}
  • {{ name }}
  • - {{/ panels }} + {{/each }}
- {{# panels }} + {{#each panels }}
- {{/ panels }} + {{/each }}
From 136fcbe0916252fbcb35fdb1608b24a46bc64662 Mon Sep 17 00:00:00 2001 From: Maximilian <787658+mfranzke@users.noreply.github.com> Date: Thu, 29 Dec 2022 22:56:31 +0100 Subject: [PATCH 2/8] chore: additionally updating the template type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit from mustache to handlebars; wouldn't hurt … --- packages/uikit-workshop/src/html/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/uikit-workshop/src/html/index.html b/packages/uikit-workshop/src/html/index.html index 00b7b7a21..a4e65d7d1 100644 --- a/packages/uikit-workshop/src/html/index.html +++ b/packages/uikit-workshop/src/html/index.html @@ -26,7 +26,9 @@ - From 3d9693298c9661a60de87c835b2d1f1caac316b5 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Thu, 29 Dec 2022 23:10:50 +0100 Subject: [PATCH 3/8] Update index.html --- packages/uikit-workshop/src/html/index.html | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/uikit-workshop/src/html/index.html b/packages/uikit-workshop/src/html/index.html index a4e65d7d1..b5f8174d1 100644 --- a/packages/uikit-workshop/src/html/index.html +++ b/packages/uikit-workshop/src/html/index.html @@ -27,8 +27,6 @@ From 7def87d96cb301d1430601ca3327d5896e20f17f Mon Sep 17 00:00:00 2001 From: Maximilian <787658+mfranzke@users.noreply.github.com> Date: Thu, 29 Dec 2022 23:28:21 +0100 Subject: [PATCH 4/8] fix: this ones actually an iteration --- packages/uikit-workshop/src/html/partials/base-template.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/uikit-workshop/src/html/partials/base-template.html b/packages/uikit-workshop/src/html/partials/base-template.html index c0e787149..f8c6532ee 100755 --- a/packages/uikit-workshop/src/html/partials/base-template.html +++ b/packages/uikit-workshop/src/html/partials/base-template.html @@ -8,13 +8,13 @@
From d5ed5a690bc73f4fe2876410324179b6c2512d0c Mon Sep 17 00:00:00 2001 From: Maximilian <787658+mfranzke@users.noreply.github.com> Date: Thu, 29 Dec 2022 23:46:18 +0100 Subject: [PATCH 5/8] Revert "fix: this ones actually an iteration" This reverts commit 7def87d96cb301d1430601ca3327d5896e20f17f. --- packages/uikit-workshop/src/html/partials/base-template.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/uikit-workshop/src/html/partials/base-template.html b/packages/uikit-workshop/src/html/partials/base-template.html index f8c6532ee..c0e787149 100755 --- a/packages/uikit-workshop/src/html/partials/base-template.html +++ b/packages/uikit-workshop/src/html/partials/base-template.html @@ -8,13 +8,13 @@
    - {{#each patternBreadcrumb }} + {{#if patternBreadcrumb }}
  • {{ patternGroup }}
  • {{#if patternSubgroup }}
  • {{ patternSubgroup }}
  • - {{/if }} {{/each }} + {{/if }} {{/if }}
From 1bc67d3cd598f50ef8369c534ebaf85cc5313682 Mon Sep 17 00:00:00 2001 From: Maximilian <787658+mfranzke@users.noreply.github.com> Date: Thu, 29 Dec 2022 23:51:50 +0100 Subject: [PATCH 6/8] fix: we actually need to the previous declaration here --- packages/uikit-workshop/src/html/partials/base-template.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/uikit-workshop/src/html/partials/base-template.html b/packages/uikit-workshop/src/html/partials/base-template.html index c0e787149..3a3ccb3eb 100755 --- a/packages/uikit-workshop/src/html/partials/base-template.html +++ b/packages/uikit-workshop/src/html/partials/base-template.html @@ -8,13 +8,13 @@
    - {{#if patternBreadcrumb }} + {{# patternBreadcrumb }}
  • {{ patternGroup }}
  • {{#if patternSubgroup }}
  • {{ patternSubgroup }}
  • - {{/if }} {{/if }} + {{/if }} {{/patternBreadcrumb }}
From 26f1e4679da213a6f5be7b35894561c08f966500 Mon Sep 17 00:00:00 2001 From: Maximilian <787658+mfranzke@users.noreply.github.com> Date: Thu, 29 Dec 2022 23:54:58 +0100 Subject: [PATCH 7/8] chore: previous formatting --- packages/uikit-workshop/src/html/partials/base-template.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/uikit-workshop/src/html/partials/base-template.html b/packages/uikit-workshop/src/html/partials/base-template.html index 3a3ccb3eb..1563839ad 100755 --- a/packages/uikit-workshop/src/html/partials/base-template.html +++ b/packages/uikit-workshop/src/html/partials/base-template.html @@ -14,7 +14,7 @@ {{#if patternSubgroup }}
  • {{ patternSubgroup }}
  • - {{/if }} {{/patternBreadcrumb }} + {{/if }} {{/ patternBreadcrumb }} From 484cc65fda05bbd65888d1643ab16e8a59e05808 Mon Sep 17 00:00:00 2001 From: Maximilian <787658+mfranzke@users.noreply.github.com> Date: Fri, 30 Dec 2022 00:05:20 +0100 Subject: [PATCH 8/8] =?UTF-8?q?chore:=20changed=20my=20mind=20again=20?= =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/uikit-workshop/src/html/partials/base-template.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/uikit-workshop/src/html/partials/base-template.html b/packages/uikit-workshop/src/html/partials/base-template.html index 1563839ad..fbf6ff782 100755 --- a/packages/uikit-workshop/src/html/partials/base-template.html +++ b/packages/uikit-workshop/src/html/partials/base-template.html @@ -8,13 +8,13 @@
      - {{# patternBreadcrumb }} + {{#with patternBreadcrumb }}
    • {{ patternGroup }}
    • {{#if patternSubgroup }}
    • {{ patternSubgroup }}
    • - {{/if }} {{/ patternBreadcrumb }} + {{/if }} {{/with }}