mirror of
https://github.com/discourse/discourse-rewind.git
synced 2025-07-07 14:22:12 +00:00
linting
This commit is contained in:
parent
8586610ee5
commit
f88ab32434
@ -1,8 +1,8 @@
|
|||||||
import Component from "@glimmer/component";
|
import Component from "@glimmer/component";
|
||||||
import { concat, fn } from "@ember/helper";
|
|
||||||
import { on } from "@ember/modifier";
|
import { on } from "@ember/modifier";
|
||||||
import { action } from "@ember/object";
|
import { action } from "@ember/object";
|
||||||
import didInsert from "@ember/render-modifiers/modifiers/did-insert";
|
import didInsert from "@ember/render-modifiers/modifiers/did-insert";
|
||||||
|
import { htmlSafe } from "@ember/template";
|
||||||
import emoji from "discourse/helpers/emoji";
|
import emoji from "discourse/helpers/emoji";
|
||||||
import discourseLater from "discourse-common/lib/later";
|
import discourseLater from "discourse-common/lib/later";
|
||||||
|
|
||||||
@ -45,6 +45,10 @@ export default class WordCard extends Component {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get cardStyle() {
|
||||||
|
return htmlSafe(`${this.randomStyle}; ${this.mysteryData.color};`);
|
||||||
|
}
|
||||||
|
|
||||||
@action
|
@action
|
||||||
registerCardContainer(element) {
|
registerCardContainer(element) {
|
||||||
this.cardContainer = element;
|
this.cardContainer = element;
|
||||||
@ -66,11 +70,12 @@ export default class WordCard extends Component {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
{{on "click" (fn this.handleClick)}}
|
{{on "click" this.handleClick}}
|
||||||
{{on "mouseleave" (fn this.handleLeave)}}
|
{{on "mouseleave" this.handleLeave}}
|
||||||
class="rewind-card__wrapper"
|
class="rewind-card__wrapper"
|
||||||
style={{concat this.randomStyle "; " this.mysteryData.color ";"}}
|
style={{this.cardStyle}}
|
||||||
{{didInsert this.registerCardContainer}}
|
{{didInsert this.registerCardContainer}}
|
||||||
|
role="button"
|
||||||
>
|
>
|
||||||
<div class="rewind-card__inner">
|
<div class="rewind-card__inner">
|
||||||
<div class="rewind-card -front">
|
<div class="rewind-card -front">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user