Update i18n import to the aliased retrospring/i18n

This commit is contained in:
Andreas Nedbal 2022-01-13 23:25:46 +01:00 committed by Andreas Nedbal
parent 8247c8864f
commit bee75584d0
23 changed files with 23 additions and 23 deletions

View File

@ -1,7 +1,7 @@
import Rails from '@rails/ujs';
import swal from 'sweetalert';
import I18n from '../../../../legacy/i18n';
import I18n from 'retrospring/i18n';
import { showNotification, showErrorNotification } from 'utilities/notifications';
export function commentDestroyHandler(event: Event): void {

View File

@ -1,6 +1,6 @@
import Rails from '@rails/ujs';
import I18n from '../../../../legacy/i18n';
import I18n from 'retrospring/i18n';
import { showNotification, showErrorNotification } from 'utilities/notifications';
export function commentCreateHandler(event: KeyboardEvent): boolean {

View File

@ -1,6 +1,6 @@
import Rails from '@rails/ujs';
import I18n from '../../../../legacy/i18n';
import I18n from 'retrospring/i18n';
import { showNotification, showErrorNotification } from 'utilities/notifications';
export function commentSmileHandler(event: Event): void {

View File

@ -2,7 +2,7 @@ import Rails from '@rails/ujs';
import { showErrorNotification, showNotification } from 'utilities/notifications';
import swal from 'sweetalert';
import I18n from '../../../legacy/i18n';
import I18n from 'retrospring/i18n';
export function answerboxDestroyHandler(event: Event): void {
event.preventDefault();

View File

@ -1,6 +1,6 @@
import Rails from '@rails/ujs';
import I18n from '../../../legacy/i18n';
import I18n from 'retrospring/i18n';
import { showNotification, showErrorNotification } from 'utilities/notifications';
export function answerboxSmileHandler(event: Event): void {

View File

@ -1,6 +1,6 @@
import Rails from '@rails/ujs';
import I18n from '../../../legacy/i18n';
import I18n from 'retrospring/i18n';
import { showNotification, showErrorNotification } from 'utilities/notifications';
export function answerboxSubscribeHandler(event: Event): void {

View File

@ -1,7 +1,7 @@
import Rails from '@rails/ujs';
import swal from 'sweetalert';
import I18n from '../../../legacy/i18n';
import I18n from 'retrospring/i18n';
import { showErrorNotification } from 'utilities/notifications';
export function updateDeleteButton(increment = true): void {

View File

@ -1,7 +1,7 @@
import Rails from '@rails/ujs';
import swal from 'sweetalert';
import I18n from '../../../../legacy/i18n';
import I18n from 'retrospring/i18n';
import { updateDeleteButton } from '../delete';
import { showNotification, showErrorNotification } from 'utilities/notifications';

View File

@ -1,6 +1,6 @@
import Rails from '@rails/ujs';
import I18n from '../../../legacy/i18n';
import I18n from 'retrospring/i18n';
import { updateDeleteButton } from './delete';
import { showErrorNotification } from 'utilities/notifications';

View File

@ -1,6 +1,6 @@
import Rails from '@rails/ujs';
import { showNotification, showErrorNotification } from 'utilities/notifications';
import I18n from '../../../legacy/i18n';
import I18n from 'retrospring/i18n';
export function createListHandler(event: Event): void {
const button = event.target as HTMLButtonElement;

View File

@ -1,7 +1,7 @@
import Rails from '@rails/ujs';
import swal from 'sweetalert';
import { showNotification, showErrorNotification } from 'utilities/notifications';
import I18n from '../../../legacy/i18n';
import I18n from 'retrospring/i18n';
export function destroyListHandler(event: Event): void {
event.preventDefault();

View File

@ -1,6 +1,6 @@
import Rails from '@rails/ujs';
import { showNotification, showErrorNotification } from 'utilities/notifications';
import I18n from '../../../legacy/i18n';
import I18n from 'retrospring/i18n';
export function listMembershipHandler(event: Event): void {
const checkbox = event.target as HTMLInputElement;

View File

@ -1,6 +1,6 @@
import Rails from '@rails/ujs';
import I18n from '../../../legacy/i18n';
import I18n from 'retrospring/i18n';
import { showNotification, showErrorNotification } from 'utilities/notifications';
export function banCheckboxHandler(event: Event): void {

View File

@ -1,7 +1,7 @@
import Rails from '@rails/ujs';
import swal from 'sweetalert';
import I18n from '../../../../legacy/i18n';
import I18n from 'retrospring/i18n';
import { showNotification, showErrorNotification } from 'utilities/notifications';
export function destroyCommentHandler(event: Event): void {

View File

@ -1,6 +1,6 @@
import Rails from '@rails/ujs';
import I18n from '../../../../legacy/i18n';
import I18n from 'retrospring/i18n';
import { showNotification, showErrorNotification } from 'utilities/notifications';
export function commentCreateHandler(event: KeyboardEvent): boolean {

View File

@ -1,7 +1,7 @@
import Rails from '@rails/ujs';
import swal from 'sweetalert';
import I18n from '../../../legacy/i18n';
import I18n from 'retrospring/i18n';
import { showNotification, showErrorNotification } from 'utilities/notifications';
export function destroyReportHandler(event: Event): void {

View File

@ -1,6 +1,6 @@
import Rails from '@rails/ujs';
import I18n from '../../../legacy/i18n';
import I18n from 'retrospring/i18n';
import { showNotification, showErrorNotification } from 'utilities/notifications';
export function privilegeCheckHandler(event: Event): void {

View File

@ -1,6 +1,6 @@
import Rails from '@rails/ujs';
import I18n from '../../../legacy/i18n';
import I18n from 'retrospring/i18n';
import { showNotification, showErrorNotification } from 'utilities/notifications';
export function voteReportHandler(event: Event): void {

View File

@ -1,6 +1,6 @@
import Rails from '@rails/ujs';
import { showErrorNotification, showNotification } from 'utilities/notifications';
import I18n from '../../../legacy/i18n';
import I18n from 'retrospring/i18n';
export function questionboxAllHandler(event: Event): void {
const button = event.target as HTMLButtonElement;

View File

@ -2,7 +2,7 @@ import Rails from '@rails/ujs';
import { showErrorNotification, showNotification } from 'utilities/notifications';
import swal from 'sweetalert';
import I18n from '../../../legacy/i18n';
import I18n from 'retrospring/i18n';
export function questionboxDestroyHandler(event: Event): void {
event.preventDefault();

View File

@ -1,6 +1,6 @@
import Rails from '@rails/ujs';
import { showErrorNotification, showNotification } from 'utilities/notifications';
import I18n from '../../../legacy/i18n';
import I18n from 'retrospring/i18n';
export function questionboxUserHandler(event: Event): void {
const button = event.target as HTMLButtonElement;

View File

@ -1,6 +1,6 @@
import Rails from '@rails/ujs';
import { showNotification, showErrorNotification } from 'utilities/notifications';
import I18n from '../../../legacy/i18n';
import I18n from 'retrospring/i18n';
export function userActionHandler(event: Event): void {
const button: HTMLButtonElement = event.target as HTMLButtonElement;

View File

@ -1,7 +1,7 @@
import Rails from '@rails/ujs';
import swal from 'sweetalert';
import I18n from '../../legacy/i18n';
import I18n from 'retrospring/i18n';
import { showNotification, showErrorNotification } from 'utilities/notifications';
export function reportDialog(type: string, target: string): void {