-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into vscode-intro-video
- Loading branch information
Showing
39 changed files
with
350 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Dependencies | ||
/node_modules | ||
**/node_modules | ||
**/_vendor | ||
# Production | ||
/build | ||
**/public | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,76 @@ | ||
{{/* This is a page, basically, not a block, so we don't go via blockData for now */}} | ||
{{ $repo := .Params.backlog }} | ||
{{ $issuesUrlBase := print $.Site.Params.orgapi $repo "/issues?per_page=100&state=open&direction=asc&page=" }} | ||
{{ $issuesUrl := print $.Site.Params.orgapi $repo "/issues?per_page=100&state=open&direction=asc" }} | ||
{{ $filter := .Params.backlog_filter }} | ||
{{ $currentPath := .Page.RelPermalink }} | ||
{{ $headers := partial "github-auth.html" }} | ||
{{/* <!-- walk through paginated issues --> */}} | ||
{{ .Page.Scratch.Set "issues" slice }} | ||
{{ partial "fetch-paginated-issues.html" (dict "Scratch" .Page.Scratch "issuesUrlBase" $issuesUrlBase "currentPath" $currentPath "page" 1 "headers" $headers) }} | ||
{{ $issues := .Page.Scratch.Get "issues" }} | ||
|
||
{{/* <!-- if no object show error --> */}} | ||
{{ if ne $issues nil }} | ||
<!-- range over issues list and pull out useful data --> | ||
{{ range $issues }} | ||
{{ with resources.GetRemote $issuesUrl $headers }} | ||
{{ with .Err }} | ||
{{ errorf "Failed %s on %s. Error: %s" $issuesUrl .Page.Title . }} | ||
{{ end }} | ||
|
||
{{ with .Content }} | ||
{{ if eq . "[]" }} | ||
{{ warnf "No issues found at %s" $issuesUrl }} | ||
{{ else }} | ||
{{ $issues := . | unmarshal }} | ||
{{/* <!-- range over issues list and pull out useful data --> */}} | ||
{{ range $issues }} | ||
|
||
{{ $showIssue := true }} | ||
<!-- if a filter exists, only show issues with the right label --> | ||
{{ if $filter }} | ||
{{ $showIssue = false }} | ||
{{ range .labels }} | ||
{{ if in .name | ||
$filter | ||
}} | ||
{{ $showIssue = true }} | ||
{{ $showIssue := true }} | ||
{{/* <!-- if a filter exists, only show issues with the right label --> */}} | ||
{{ if $filter }} | ||
{{ $showIssue = false }} | ||
{{ range .labels }} | ||
{{ if in .name | ||
$filter | ||
}} | ||
{{ $showIssue = true }} | ||
{{ end }} | ||
{{ end }} | ||
{{ end }} | ||
{{ end }} | ||
{{ end }} | ||
<!-- now show the issue --> | ||
{{ if $showIssue }} | ||
{{ if strings.Contains .body "_No response_" }} | ||
{{ errorf "Issue %s contains _No response_ - please edit the issue to remove it." .html_url }} | ||
{{ end }} | ||
<div class="c-alert" role="alert" hidden> | ||
<span class="alert__message"></span> | ||
<button aria-label="Close" class="clean-btn close" type="button"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
<details class="c-issue"> | ||
<summary class="c-issue__title e-heading__3"> | ||
{{ .title }} <a class="c-issue__link" href="{{ .html_url }}">🔗</a> | ||
<a | ||
href="/api/clone?state={{ dict "issue" .number "module" $repo "sprint" $filter "prevPath" $currentPath | jsonify }}" | ||
class="e-button" | ||
data-props="{{ $currentPath }}"> | ||
Clone | ||
</a> | ||
</summary> | ||
<div class="c-issue__body">{{ .body | markdownify }}</div> | ||
</details> | ||
{{ with .labels }} | ||
<ul class="c-issue__labels c-label__list"> | ||
{{ range . }} | ||
<li class="c-issue__label c-label" style="--github:#{{ .color }}4d"> | ||
<span | ||
class="c-issue__label-name c-label__name" | ||
title="{{ .description }}"> | ||
{{ .name }} | ||
</span> | ||
</li> | ||
<!-- now show the issue --> | ||
{{ if $showIssue }} | ||
{{ if strings.Contains .body "_No response_" }} | ||
{{ errorf "Issue %s contains _No response_ - please edit the issue to remove it." .html_url }} | ||
{{ end }} | ||
</ul> | ||
<div class="c-alert" role="alert" hidden> | ||
<span class="alert__message"></span> | ||
<button aria-label="Close" class="clean-btn close" type="button"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
<details class="c-issue"> | ||
<summary class="c-issue__title e-heading__3"> | ||
{{ .title }} | ||
<a class="c-issue__link" href="{{ .html_url }}">🔗</a> | ||
<a | ||
href="/api/clone?state={{ dict "issue" .number "module" $repo "sprint" $filter "prevPath" $currentPath | jsonify }}" | ||
class="e-button" | ||
data-props="{{ $currentPath }}"> | ||
Clone | ||
</a> | ||
</summary> | ||
<div class="c-issue__body">{{ .body | markdownify }}</div> | ||
</details> | ||
{{ with .labels }} | ||
<ul class="c-issue__labels c-label__list"> | ||
{{ range . }} | ||
<li | ||
class="c-issue__label c-label" | ||
style="--github:#{{ .color }}4d"> | ||
<span | ||
class="c-issue__label-name c-label__name" | ||
title="{{ .description }}"> | ||
{{ .name }} | ||
</span> | ||
</li> | ||
{{ end }} | ||
</ul> | ||
{{ end }} | ||
{{ end }} | ||
{{ end }} | ||
{{ end }} | ||
{{ end }} | ||
{{ else }} | ||
{{ errorf "Error, fetch of %s failed: %v" $issuesUrlBase $issues }} | ||
{{ end }} |
Oops, something went wrong.