Skip to content

Commit

Permalink
fix: feedback from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
czosel committed Apr 12, 2021
1 parent 155c2ce commit fdd979e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 15 deletions.
4 changes: 2 additions & 2 deletions addon/components/cfb-code-editor.js
Expand Up @@ -3,8 +3,8 @@ import Component from "@glimmer/component";
import { tracked } from "@glimmer/tracking";
import { CodeJar } from "codejar";
import Prism from "prismjs";
import "prismjs/components/prism-jexl.min.js";
import "prismjs/components/prism-markdown.min.js";
import "prismjs/components/prism-jexl.js";
import "prismjs/components/prism-markdown.js";

export default class CfbCodeEditorComponent extends Component {
editor;
Expand Down
20 changes: 9 additions & 11 deletions addon/templates/components/cfb-code-editor.hbs
@@ -1,13 +1,11 @@
<div>
{{component @labelComponent}}
{{component @labelComponent}}

<div
name={{@name}}
class={{concat "uk-textarea cfb-code-editor language-" @language}}
{{did-insert (action this.didInsertNode)}}
{{will-destroy (action this.willDestroyNode)}}
></div>
<div
name={{@name}}
class={{concat "uk-textarea cfb-code-editor language-" @language}}
{{did-insert this.didInsertNode}}
{{will-destroy this.willDestroyNode}}
></div>

{{component @hintComponent}}
{{component @errorComponent}}
</div>
{{component @hintComponent}}
{{component @errorComponent}}
2 changes: 1 addition & 1 deletion app/styles/ember-caluma.scss
Expand Up @@ -24,7 +24,7 @@
}

.cfb-code-editor {
font-family: "Source Code Pro", monospace;
font-family: $base-code-font-family;
letter-spacing: normal;
height: 70px;
line-height: 16px;
Expand Down
1 change: 0 additions & 1 deletion ember-cli-build.js
Expand Up @@ -19,7 +19,6 @@ module.exports = function (defaults) {

app.import("node_modules/typeface-oxygen/index.css");
app.import("node_modules/typeface-oxygen-mono/index.css");
app.import("node_modules/prismjs/themes/prism.css");

const oxygen = funnel("node_modules/typeface-oxygen/files", {
include: ["*.woff", "*.woff2"],
Expand Down
2 changes: 2 additions & 0 deletions index.js
Expand Up @@ -32,6 +32,8 @@ module.exports = EngineAddon.extend({
included(...args) {
this._super.included.apply(this, args);

this.import("node_modules/prismjs/themes/prism.css");

if (this._getOptions().includeProxyPolyfill) {
this.import("node_modules/proxy-polyfill/proxy.min.js");
}
Expand Down

0 comments on commit fdd979e

Please sign in to comment.