Fixed custom handlebars handlers
This commit is contained in:
parent
3fa2d7b73e
commit
f92ba9340a
@ -144,7 +144,7 @@ $tour-step-width: 220px;
|
||||
.tour-step__inner {
|
||||
position: absolute;
|
||||
background-color: $tour-step-background;
|
||||
padding: 1.25em;
|
||||
padding: 1.5em 1em 1em;
|
||||
font-size: 0.9em;
|
||||
line-height: 1.33;
|
||||
width: $tour-step-width;
|
||||
@ -175,7 +175,7 @@ $tour-step-width: 220px;
|
||||
.tour-step--welcome &,
|
||||
.tour-step--end & {
|
||||
left: -$tour-step-width/2;
|
||||
top: 30px;
|
||||
top: 36px;
|
||||
border-bottom-right-radius: 0;
|
||||
|
||||
&::before {
|
||||
|
@ -15,7 +15,6 @@
|
||||
<icon-provider slot="icon" provider-id="couchdbWorkspace"></icon-provider>
|
||||
<span>Add CouchDB workspace</span>
|
||||
</menu-entry>
|
||||
<hr>
|
||||
<menu-entry @click.native="manageWorkspaces">
|
||||
<icon-database slot="icon"></icon-database>
|
||||
<span>Manage workspaces</span>
|
||||
|
@ -11,6 +11,6 @@ Handlebars.registerHelper('transform', function (options) {
|
||||
|
||||
Then use the helper in your template:
|
||||
|
||||
{{#transform}}{{{file.content.html}}}{{/transform}}
|
||||
{{#transform}}{{{files.0.content.html}}}{{/transform}}
|
||||
*/
|
||||
|
||||
|
@ -59,7 +59,6 @@ const whiteList = {
|
||||
undefined: 1,
|
||||
safeEval: 1,
|
||||
close: 1,
|
||||
Handlebars: 1,
|
||||
};
|
||||
|
||||
let global = self;
|
||||
@ -80,6 +79,7 @@ while (global !== Object.prototype) {
|
||||
});
|
||||
global = Object.getPrototypeOf(global);
|
||||
}
|
||||
self.Handlebars = Handlebars;
|
||||
|
||||
function safeEval(code) {
|
||||
eval(`"use strict";\n${code}`); // eslint-disable-line no-eval
|
||||
|
Loading…
Reference in New Issue
Block a user