Skip to content

Commit

Permalink
Remove legacy smile TypeScript functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
pixeldesu committed Oct 31, 2023
1 parent 97f04dc commit 2cf4349
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 122 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@ import registerEvents from "retrospring/utilities/registerEvents";
import { commentDestroyHandler } from "./destroy";
import { commentComposeEnd, commentComposeStart, commentCreateClickHandler, commentCreateKeyboardHandler } from "./new";
import { commentReportHandler } from "./report";
import { commentSmileHandler } from "./smile";
import { commentToggleHandler } from "./toggle";
import { commentHotkeyHandler } from "retrospring/features/answerbox/comment/hotkey";

export default (): void => {
registerEvents([
{ type: 'click', target: '[name=ab-comments]', handler: commentToggleHandler, global: true },
{ type: 'click', target: '[name=ab-open-and-comment]', handler: commentHotkeyHandler, global: true },
{ type: 'click', target: '[name=ab-smile-comment]', handler: commentSmileHandler, global: true },
{ type: 'click', target: '[data-action=ab-comment-report]', handler: commentReportHandler, global: true },
{ type: 'click', target: '[data-action=ab-comment-destroy]', handler: commentDestroyHandler, global: true },
{ type: 'compositionstart', target: '[name=ab-comment-new]', handler: commentComposeStart, global: true },
Expand Down
59 changes: 0 additions & 59 deletions app/javascript/retrospring/features/answerbox/comment/smile.ts

This file was deleted.

2 changes: 0 additions & 2 deletions app/javascript/retrospring/features/answerbox/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ import registerEvents from 'utilities/registerEvents';
import registerAnswerboxCommentEvents from './comment';
import { answerboxDestroyHandler } from './destroy';
import { answerboxReportHandler } from './report';
import { answerboxSmileHandler } from './smile';

export default (): void => {
registerEvents([
{ type: 'click', target: '[data-action=ab-report]', handler: answerboxReportHandler, global: true },
{ type: 'click', target: '[data-action=ab-destroy]', handler: answerboxDestroyHandler, global: true },
{ type: 'click', target: '[name=ab-smile]', handler: answerboxSmileHandler, global: true }
]);

registerAnswerboxCommentEvents();
Expand Down
59 changes: 0 additions & 59 deletions app/javascript/retrospring/features/answerbox/smile.ts

This file was deleted.

0 comments on commit 2cf4349

Please sign in to comment.