Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix some import/export issues
  • Loading branch information
Androbin committed Dec 16, 2017
commit 0237b721c98cd3c8abd62b30d4932fff6530afcc
6 changes: 6 additions & 0 deletions assets/js/analyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,3 +240,9 @@ function formatUnit(unit) {
function handleAnalyzeErrorResponse(xOptions, error) {
$('#morphAnalyzerOutput').text(error).removeClass('blurred');
}

/*:: import {config} from "./config.js" */
/*:: import {modeEnabled, ajaxSend, ajaxComplete, filterLangList, allowedLang, sendEvent, callApy, apyRequestTimeout} from "./util.js" */
/*:: import {ENTER_KEY_CODE} from "./util.js" */
/*:: import {localizeInterface, getLangByCode} from "./localization.js" */
/*:: import {persistChoices, restoreChoices, readCache, cache} from "./persistence.js" */
11 changes: 6 additions & 5 deletions assets/js/translator.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var PUNCTUATION_KEY_CODES = [46, 33, 58, 63, 47, 45, 190, 171, 49]; // eslint-di
/* global config, modeEnabled, synchronizeTextareaHeights, persistChoices, getLangByCode, sendEvent, onlyUnique, restoreChoices
getDynamicLocalization, locale, ajaxSend, ajaxComplete, localizeInterface, filterLangList, cache, readCache, iso639Codes,
callApy, apyRequestTimeout, isURL */
/* global SPACE_KEY_CODE, ENTER_KEY_CODE, HTTP_OK_CODE, XHR_LOADING, XHR_DONE, HTTP_OK_CODE, HTTP_BAD_REQUEST_CODE */
/* global SPACE_KEY_CODE, ENTER_KEY_CODE, HTTP_OK_CODE, XHR_LOADING, XHR_DONE, HTTP_BAD_REQUEST_CODE */

if(modeEnabled('translation')) {
$(document).ready(function () {
Expand Down Expand Up @@ -1074,10 +1074,11 @@ function autoSelectDstLang() {
}
}

/*:: import {synchronizeTextareaHeights, modeEnabled, ajaxSend, ajaxComplete, filterLangList, onlyUnique, getLangByCode,
callApy, apyRequestTimeout} from "./util.js" */
/*:: export {populateTranslationList, showTranslateWebpageInterface} */
/*:: import {synchronizeTextareaHeights, modeEnabled, ajaxSend, ajaxComplete, filterLangList, onlyUnique, sendEvent, callApy,
apyRequestTimeout, SPACE_KEY_CODE, ENTER_KEY_CODE, HTTP_OK_CODE, XHR_LOADING, XHR_DONE, HTTP_BAD_REQUEST_CODE} from "./util.js" */
/*:: import {persistChoices, restoreChoices} from "./persistence.js" */
/*:: import localizeInterface from "./localization.js" */
/*:: import {readCache,cache} from "./cache.js" */
/*:: import {localizeInterface, getLangByCode, getDynamicLocalization, locale, iso639Codes} from "./localization.js" */
/*:: import {readCache, cache} from "./persistence.js" */
/*:: import {config} from "./config.js" */
/*:: import {isURL} from "./util.js" */
2 changes: 1 addition & 1 deletion assets/js/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,6 @@ function displayInstallationNotification() {
}

/*:: export {debounce, synchronizeTextareaHeights, modeEnabled, resizeFooter, ajaxSend, ajaxComplete, filterLangList, onlyUnique, callApy,
SPACE_KEY_CODE, ENTER_KEY_CODE, HTTP_OK_CODE, HTTP_BAD_REQUEST_CODE, XHR_LOADING, XHR_DONE, apyRequestTimeout} */
SPACE_KEY_CODE, ENTER_KEY_CODE, HTTP_OK_CODE, HTTP_BAD_REQUEST_CODE, XHR_LOADING, XHR_DONE, apyRequestTimeout, isURL, sendEvent} */
/*:: import {_paq} from "./init.js" */
/*:: import {config} from "./config.js" */