Skip to content

Commit

Permalink
moved reasons.js to enketo-core and fix translator resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnR committed Apr 17, 2024
1 parent 872ab90 commit 4c04b20
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { t } from './translator';
import { t } from 'enketo/translator';
import events from './event';

const range = document.createRange();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import records from './records-queue';
import formCache from './form-cache';
import FieldSubmissionQueue from './field-submission-queue';
import rc from './controller-webform';
import reasons from './reasons';
import reasons from 'enketo-core/src/js/reasons';
import { replaceMediaSources, replaceModelMediaSources } from './media';

let fieldSubmissionQueue;
Expand Down
2 changes: 1 addition & 1 deletion packages/enketo-express/public/js/src/module/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import pageModule from 'enketo-core/src/js/page';
import { getAncestors } from 'enketo-core/src/js/dom-utils';

Check failure on line 2 in packages/enketo-express/public/js/src/module/page.js

View workflow job for this annotation

GitHub Actions / lint (20.5.1)

'getAncestors' is defined but never used. Allowed unused vars must match /^_/u

Check failure on line 2 in packages/enketo-express/public/js/src/module/page.js

View workflow job for this annotation

GitHub Actions / lint (20.5.1)

'getAncestors' is defined but never used. Allowed unused vars must match /^_/u
import $ from 'jquery';
import events from './event';

Check failure on line 4 in packages/enketo-express/public/js/src/module/page.js

View workflow job for this annotation

GitHub Actions / lint (20.5.1)

'events' is defined but never used. Allowed unused vars must match /^_/u

Check failure on line 4 in packages/enketo-express/public/js/src/module/page.js

View workflow job for this annotation

GitHub Actions / lint (20.5.1)

'events' is defined but never used. Allowed unused vars must match /^_/u
import reasons from './reasons';
import reasons from 'enketo-core/src/js/reasons';

Check failure on line 5 in packages/enketo-express/public/js/src/module/page.js

View workflow job for this annotation

GitHub Actions / lint (20.5.1)

'reasons' is defined but never used. Allowed unused vars must match /^_/u

Check failure on line 5 in packages/enketo-express/public/js/src/module/page.js

View workflow job for this annotation

GitHub Actions / lint (20.5.1)

'reasons' is defined but never used. Allowed unused vars must match /^_/u
import settings from './settings';
import gui from './gui';

Expand Down
2 changes: 1 addition & 1 deletion packages/enketo-express/public/js/src/module/repeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import repeatModule from 'enketo-core/src/js/repeat';
import $ from 'jquery';
import events from './event';
import settings from './settings';
import reasons from './reasons';
import reasons from 'enketo-core/src/js/reasons';
import { t } from './translator';
import gui from './gui';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import settings from '../../public/js/src/module/settings';
import events from '../../public/js/src/module/event';
import fileManager from '../../public/js/src/module/file-manager';
import { Form } from '../../public/js/src/module/form';
import reasons from '../../public/js/src/module/reasons';
import reasons from 'enketo-core/src/js/reasons';

let currentUser;
let users;
Expand Down

0 comments on commit 4c04b20

Please sign in to comment.