mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 22:02:11 +03:00
3c851293c1
no issue We were in a part-way state where some touched files had been (sometimes partially) migrated to explicit `this`. The codemod that was available has now fixed the formatting issues it had so it was a good time to run it. https://github.com/ember-codemods/ember-no-implicit-this-codemod - part of the migration path for https://github.com/emberjs/rfcs/pull/308 - starts to make template resolution rules more explicit - `<MyComponent />` - always a component - `{{my-component}}` - component or helper (components _must_ have a `-`. This style of component will go away once fully migrated to angle bracket components) - `{{value}}` - a helper or local template variable - `{{this.value}}` - reference to a property on the backing context (either a controller or a component JS file)
31 lines
1.2 KiB
Handlebars
31 lines
1.2 KiB
Handlebars
<div class="gh-view">
|
|
|
|
<section class="flex flex-column items-center flex-grow justify-center h-100 nt10">
|
|
<div class="absolute error-background nudge-right--5">
|
|
{{svg-jar "desert" class="error-background absolute"}}
|
|
<div class="traveler-1">{{svg-jar "tumbleweed" class="w6 h6 absolute bouncer-1"}}</div>
|
|
<div class="traveler-2">{{svg-jar "tumbleweed" class="w11 h11 absolute bouncer-2"}}</div>
|
|
</div>
|
|
<div class="absolute mt50 tc">
|
|
<h1 class="midlightgrey error-code-size fw6">{{this.code}}</h1>
|
|
<h2 class="midlightgrey f4 fw3">{{this.message}}</h2>
|
|
</div>
|
|
</section>
|
|
|
|
{{#if this.stack}}
|
|
<section class="error-stack">
|
|
<h3>Stack Trace</h3>
|
|
<p><strong>{{this.message}}</strong></p>
|
|
<ul class="error-stack-list">
|
|
{{#each this.stack as |item|}}
|
|
<li>
|
|
at
|
|
{{#if item.function}}<em class="error-stack-function">{{item.function}}</em>{{/if}}
|
|
<span class="error-stack-file">({{item.at}})</span>
|
|
</li>
|
|
{{/each}}
|
|
</ul>
|
|
</section>
|
|
{{/if}}
|
|
</div>
|