Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit d2f8a92

Browse files
committed
more linting
1 parent 2ed1bec commit d2f8a92

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

assets/javascripts/discourse/components/ai-artifact.gjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ export default class AiArtifactComponent extends Component {
4949
@action
5050
artifactPanelHover() {
5151
// retrrigger animation
52-
const panel = document.querySelector('.ai-artifact__panel');
53-
panel.style.animation = 'none'; // Stop the animation
52+
const panel = document.querySelector(".ai-artifact__panel");
53+
panel.style.animation = "none"; // Stop the animation
5454
setTimeout(() => {
55-
panel.style.animation = ''; // Re-trigger the animation by removing the none style
55+
panel.style.animation = ""; // Re-trigger the animation by removing the none style
5656
}, 0);
5757
}
5858

assets/javascripts/initializers/ai-artifacts.gjs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@ function initializeAiArtifacts(api) {
88
return;
99
}
1010

11-
[...element.querySelectorAll("div.ai-artifact")].forEach((artifactElement) => {
12-
const artifactId = artifactElement.getAttribute("data-ai-artifact-id");
11+
[...element.querySelectorAll("div.ai-artifact")].forEach(
12+
(artifactElement) => {
13+
const artifactId = artifactElement.getAttribute(
14+
"data-ai-artifact-id"
15+
);
1316

14-
helper.renderGlimmer(artifactElement, <template>
17+
helper.renderGlimmer(artifactElement, <template>
1518
<AiArtifact @artifactId={{artifactId}} />
1619
</template>);
17-
});
20+
}
21+
);
1822
},
1923
{
2024
id: "ai-artifact",

0 commit comments

Comments
 (0)