Merge pull request #2515 from overleaf/as-transform-absolute-paths
Transform absolute paths in frontend to relative GitOrigin-RevId: c1914c0fd09d68984ba6c85a1f00aa3e6858d944
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base', 'crypto-js/md5'], function(App, CryptoJS) {
|
||||
define(['../base', 'crypto-js/md5'], function(App, CryptoJS) {
|
||||
const oldKeys = [
|
||||
'sl_abt_multi_currency_editor_eu-eu',
|
||||
'sl_abt_multi_currency_eu-eu',
|
||||
|
||||
@@ -20,13 +20,13 @@
|
||||
__webpack_public_path__ = window.baseAssetPath
|
||||
|
||||
define([
|
||||
'utils/sentry',
|
||||
'libraries',
|
||||
'modules/recursionHelper',
|
||||
'modules/errorCatcher',
|
||||
'modules/localStorage',
|
||||
'modules/sessionStorage',
|
||||
'utils/underscore'
|
||||
'./utils/sentry',
|
||||
'./libraries',
|
||||
'./modules/recursionHelper',
|
||||
'./modules/errorCatcher',
|
||||
'./modules/localStorage',
|
||||
'./modules/sessionStorage',
|
||||
'./utils/underscore'
|
||||
], function() {
|
||||
const App = angular
|
||||
.module('SharelatexApp', [
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], function(App) {
|
||||
define(['../base'], function(App) {
|
||||
const inputSuggestionsController = function($scope, $element, $attrs, Keys) {
|
||||
const ctrl = this
|
||||
ctrl.showHint = false
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base', 'libs/passfield'], function(App) {
|
||||
define(['../base', 'libs/passfield'], function(App) {
|
||||
App.directive('asyncForm', ($http, validateCaptcha, validateCaptchaV3) => ({
|
||||
controller: [
|
||||
'$scope',
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
define(['base'], function(App) {
|
||||
define(['../base'], function(App) {
|
||||
App.directive('autoSubmitForm', function() {
|
||||
return {
|
||||
link(scope, element) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
define(['base'], function(App) {
|
||||
define(['../base'], function(App) {
|
||||
App.directive('bookmarkableTabset', ($location, _) => ({
|
||||
restrict: 'A',
|
||||
require: 'tabset',
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
no-undef,
|
||||
max-len
|
||||
*/
|
||||
define(['base', 'libs/passfield'], function(App) {
|
||||
define(['../base', 'libs/passfield'], function(App) {
|
||||
App.directive('complexPassword', () => ({
|
||||
require: ['^asyncForm', 'ngModel'],
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], function(App) {
|
||||
define(['../base'], function(App) {
|
||||
App.factory('ccUtils', function() {
|
||||
const defaultFormat = /(\d{1,4})/g
|
||||
const defaultInputFormat = /(?:^|\s)(\d{4})$/
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../base'], App =>
|
||||
App.directive('equals', () => ({
|
||||
require: 'ngModel',
|
||||
link(scope, elem, attrs, ctrl) {
|
||||
|
||||
@@ -34,7 +34,7 @@ const isInViewport = function(element) {
|
||||
return elBtm > viewportTop && elTop < viewportBtm
|
||||
}
|
||||
|
||||
define(['base'], App =>
|
||||
define(['../base'], App =>
|
||||
App.directive('eventTracking', eventTracking => ({
|
||||
scope: {
|
||||
eventTracking: '@',
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../base'], App =>
|
||||
App.directive('expandableTextArea', () => ({
|
||||
restrict: 'A',
|
||||
link(scope, el) {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base', 'fineuploader'], (App, qq) =>
|
||||
define(['../base', 'fineuploader'], (App, qq) =>
|
||||
App.directive('fineUpload', $timeout => ({
|
||||
scope: {
|
||||
multiple: '=',
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], function(App) {
|
||||
define(['../base'], function(App) {
|
||||
let selectName
|
||||
App.directive('focusWhen', $timeout => ({
|
||||
restrict: 'A',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* global MathJax */
|
||||
|
||||
define(['base'], function(App) {
|
||||
define(['../base'], function(App) {
|
||||
return App.directive('mathjax', function($compile, $parse) {
|
||||
return {
|
||||
link(scope, element, attrs) {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../base'], App =>
|
||||
App.directive('maxHeight', () => ({
|
||||
restrict: 'A',
|
||||
link(scope, element, attrs) {
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../base'], App =>
|
||||
App.directive('onEnter', () => (scope, element, attrs) =>
|
||||
element.bind('keydown keypress', function(event) {
|
||||
if (event.which === 13) {
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../base'], App =>
|
||||
App.directive('rightClick', () => ({
|
||||
restrict: 'A',
|
||||
link(scope, element, attrs) {
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../base'], App =>
|
||||
App.directive('updateScrollBottomOn', $timeout => ({
|
||||
restrict: 'A',
|
||||
link(scope, element, attrs, ctrls) {
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], function(App) {
|
||||
define(['../base'], function(App) {
|
||||
App.directive('selectAllList', () => ({
|
||||
controller: [
|
||||
'$scope',
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], function(App) {
|
||||
define(['../base'], function(App) {
|
||||
App.directive('stopPropagation', $http => ({
|
||||
restrict: 'A',
|
||||
link(scope, element, attrs) {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../base'], App =>
|
||||
App.directive('videoPlayState', $parse => ({
|
||||
restrict: 'A',
|
||||
link(scope, element, attrs) {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base', 'moment'], function(App, moment) {
|
||||
define(['../base', 'moment'], function(App, moment) {
|
||||
moment.updateLocale('en', {
|
||||
calendar: {
|
||||
lastDay: '[Yesterday]',
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], function(App) {
|
||||
define(['../base'], function(App) {
|
||||
const DEF_MIN_LENGTH = 20
|
||||
|
||||
const _decodeHTMLEntities = str =>
|
||||
|
||||
@@ -18,48 +18,48 @@
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define([
|
||||
'base',
|
||||
'ide/file-tree/FileTreeManager',
|
||||
'ide/connection/ConnectionManager',
|
||||
'ide/editor/EditorManager',
|
||||
'ide/online-users/OnlineUsersManager',
|
||||
'ide/history/HistoryManager',
|
||||
'ide/history/HistoryV2Manager',
|
||||
'ide/permissions/PermissionsManager',
|
||||
'ide/pdf/PdfManager',
|
||||
'ide/binary-files/BinaryFilesManager',
|
||||
'ide/references/ReferencesManager',
|
||||
'ide/metadata/MetadataManager',
|
||||
'ide/review-panel/ReviewPanelManager',
|
||||
'ide/SafariScrollPatcher',
|
||||
'ide/cobranding/CobrandingDataService',
|
||||
'ide/settings/index',
|
||||
'ide/share/index',
|
||||
'ide/chat/index',
|
||||
'ide/clone/index',
|
||||
'ide/hotkeys/index',
|
||||
'ide/wordcount/index',
|
||||
'ide/directives/layout',
|
||||
'ide/directives/validFile',
|
||||
'ide/services/ide',
|
||||
'analytics/AbTestingManager',
|
||||
'directives/focus',
|
||||
'directives/fineUpload',
|
||||
'directives/scroll',
|
||||
'directives/onEnter',
|
||||
'directives/stopPropagation',
|
||||
'directives/rightClick',
|
||||
'directives/expandableTextArea',
|
||||
'directives/videoPlayState',
|
||||
'services/queued-http',
|
||||
'services/validateCaptcha',
|
||||
'services/validateCaptchaV3',
|
||||
'services/wait-for',
|
||||
'filters/formatDate',
|
||||
'main/event',
|
||||
'main/account-upgrade',
|
||||
'main/exposed-settings',
|
||||
'main/system-messages',
|
||||
'./base',
|
||||
'./ide/file-tree/FileTreeManager',
|
||||
'./ide/connection/ConnectionManager',
|
||||
'./ide/editor/EditorManager',
|
||||
'./ide/online-users/OnlineUsersManager',
|
||||
'./ide/history/HistoryManager',
|
||||
'./ide/history/HistoryV2Manager',
|
||||
'./ide/permissions/PermissionsManager',
|
||||
'./ide/pdf/PdfManager',
|
||||
'./ide/binary-files/BinaryFilesManager',
|
||||
'./ide/references/ReferencesManager',
|
||||
'./ide/metadata/MetadataManager',
|
||||
'./ide/review-panel/ReviewPanelManager',
|
||||
'./ide/SafariScrollPatcher',
|
||||
'./ide/cobranding/CobrandingDataService',
|
||||
'./ide/settings/index',
|
||||
'./ide/share/index',
|
||||
'./ide/chat/index',
|
||||
'./ide/clone/index',
|
||||
'./ide/hotkeys/index',
|
||||
'./ide/wordcount/index',
|
||||
'./ide/directives/layout',
|
||||
'./ide/directives/validFile',
|
||||
'./ide/services/ide',
|
||||
'./analytics/AbTestingManager',
|
||||
'./directives/focus',
|
||||
'./directives/fineUpload',
|
||||
'./directives/scroll',
|
||||
'./directives/onEnter',
|
||||
'./directives/stopPropagation',
|
||||
'./directives/rightClick',
|
||||
'./directives/expandableTextArea',
|
||||
'./directives/videoPlayState',
|
||||
'./services/queued-http',
|
||||
'./services/validateCaptcha',
|
||||
'./services/validateCaptchaV3',
|
||||
'./services/wait-for',
|
||||
'./filters/formatDate',
|
||||
'./main/event',
|
||||
'./main/account-upgrade',
|
||||
'./main/exposed-settings',
|
||||
'./main/system-messages',
|
||||
'../../modules/modules-ide.js'
|
||||
], function(
|
||||
App,
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['ide/binary-files/controllers/BinaryFileController'], function() {
|
||||
define(['./controllers/BinaryFileController'], function() {
|
||||
let BinaryFilesManager
|
||||
return (BinaryFilesManager = class BinaryFilesManager {
|
||||
constructor(ide, $scope) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
App.controller('BinaryFileController', function(
|
||||
$scope,
|
||||
$rootScope,
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
App.controller('ChatButtonController', function($scope, ide) {
|
||||
let clearNewMessageNotification
|
||||
$scope.toggleChat = function() {
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base', 'ide/chat/services/chatMessages'], App =>
|
||||
define(['../../../base', '../services/chatMessages'], App =>
|
||||
App.controller('ChatController', function(
|
||||
$scope,
|
||||
chatMessages,
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base', 'ide/colors/ColorManager'], (App, ColorManager) =>
|
||||
define(['../../../base', '../../colors/ColorManager'], (App, ColorManager) =>
|
||||
App.controller('ChatMessageController', function($scope, ide) {
|
||||
const hslColorConfigs = {
|
||||
borderSaturation:
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
// TODO: This file was created by bulk-decaffeinate.
|
||||
// Fix any style issues and re-enable lint.
|
||||
define([
|
||||
'ide/chat/controllers/ChatButtonController',
|
||||
'ide/chat/controllers/ChatController',
|
||||
'ide/chat/controllers/ChatMessageController',
|
||||
'directives/mathjax',
|
||||
'filters/wrapLongWords'
|
||||
'./controllers/ChatButtonController',
|
||||
'./controllers/ChatController',
|
||||
'./controllers/ChatMessageController',
|
||||
'../../directives/mathjax',
|
||||
'../../filters/wrapLongWords'
|
||||
], function() {})
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base', 'crypto-js/md5'], (App, CryptoJS) =>
|
||||
define(['../../../base', 'crypto-js/md5'], (App, CryptoJS) =>
|
||||
App.factory('chatMessages', function($http, ide) {
|
||||
const MESSAGES_URL = `/project/${ide.project_id}/messages`
|
||||
const MESSAGE_LIMIT = 50
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
App.controller(
|
||||
'CloneProjectController',
|
||||
($scope, $modal) =>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
App.controller('CloneProjectModalController', function(
|
||||
$scope,
|
||||
$modalInstance,
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
// TODO: This file was created by bulk-decaffeinate.
|
||||
// Fix any style issues and re-enable lint.
|
||||
define([
|
||||
'ide/clone/controllers/CloneProjectController',
|
||||
'ide/clone/controllers/CloneProjectModalController'
|
||||
'./controllers/CloneProjectController',
|
||||
'./controllers/CloneProjectModalController'
|
||||
], function() {})
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], function(App) {
|
||||
define(['../../base'], function(App) {
|
||||
const _cobrandingData = window.brandVariation
|
||||
|
||||
return App.factory('CobrandingDataService', function() {
|
||||
|
||||
@@ -13,7 +13,11 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base', 'libs/jquery-layout', 'libs/jquery.ui.touch-punch'], App =>
|
||||
define([
|
||||
'../../base',
|
||||
'libs/jquery-layout',
|
||||
'libs/jquery.ui.touch-punch'
|
||||
], App =>
|
||||
App.directive('layout', ($parse, $compile, ide) => ({
|
||||
compile() {
|
||||
return {
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base', 'ide/directives/SafePath'], (App, SafePath) =>
|
||||
define(['../../base', './SafePath'], (App, SafePath) =>
|
||||
App.directive('validFile', () => ({
|
||||
require: 'ngModel',
|
||||
link(scope, element, attrs, ngModelCtrl) {
|
||||
|
||||
@@ -18,9 +18,9 @@
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define([
|
||||
'utils/EventEmitter',
|
||||
'ide/editor/ShareJsDoc',
|
||||
'ide/review-panel/RangesTracker'
|
||||
'../../utils/EventEmitter',
|
||||
'./ShareJsDoc',
|
||||
'../review-panel/RangesTracker'
|
||||
], function(EventEmitter, ShareJsDoc, RangesTracker) {
|
||||
let Document
|
||||
return (Document = (function() {
|
||||
|
||||
@@ -15,11 +15,11 @@
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define([
|
||||
'ide/editor/Document',
|
||||
'ide/editor/components/spellMenu',
|
||||
'ide/editor/directives/aceEditor',
|
||||
'ide/editor/directives/toggleSwitch',
|
||||
'ide/editor/controllers/SavingNotificationController'
|
||||
'./Document',
|
||||
'./components/spellMenu',
|
||||
'./directives/aceEditor',
|
||||
'./directives/toggleSwitch',
|
||||
'./controllers/SavingNotificationController'
|
||||
], function(Document) {
|
||||
let EditorManager
|
||||
return (EditorManager = (function() {
|
||||
|
||||
@@ -17,7 +17,10 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['utils/EventEmitter', 'libs/sharejs'], function(EventEmitter, ShareJs) {
|
||||
define(['../../utils/EventEmitter', 'libs/sharejs'], function(
|
||||
EventEmitter,
|
||||
ShareJs
|
||||
) {
|
||||
let ShareJsDoc
|
||||
const SINGLE_USER_FLUSH_DELAY = 1000 // ms
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
App.component('spellMenu', {
|
||||
bindings: {
|
||||
open: '<',
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base', 'ide/editor/Document'], (App, Document) =>
|
||||
define(['../../../base', '../Document'], (App, Document) =>
|
||||
App.controller('SavingNotificationController', function(
|
||||
$scope,
|
||||
$interval,
|
||||
|
||||
@@ -3,25 +3,25 @@
|
||||
max-len
|
||||
*/
|
||||
define([
|
||||
'base',
|
||||
'../../../base',
|
||||
'ace/ace',
|
||||
'ace/ext-searchbox',
|
||||
'ace/ext-modelist',
|
||||
'ace/keybinding-vim',
|
||||
'ide/editor/directives/aceEditor/undo/UndoManager',
|
||||
'ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager',
|
||||
'ide/editor/directives/aceEditor/spell-check/SpellCheckManager',
|
||||
'ide/editor/directives/aceEditor/spell-check/SpellCheckAdapter',
|
||||
'ide/editor/directives/aceEditor/highlights/HighlightsManager',
|
||||
'ide/editor/directives/aceEditor/cursor-position/CursorPositionManager',
|
||||
'ide/editor/directives/aceEditor/cursor-position/CursorPositionAdapter',
|
||||
'ide/editor/directives/aceEditor/track-changes/TrackChangesManager',
|
||||
'ide/editor/directives/aceEditor/track-changes/TrackChangesAdapter',
|
||||
'ide/editor/directives/aceEditor/metadata/MetadataManager',
|
||||
'ide/metadata/services/metadata',
|
||||
'ide/graphics/services/graphics',
|
||||
'ide/preamble/services/preamble',
|
||||
'ide/files/services/files'
|
||||
'./aceEditor/undo/UndoManager',
|
||||
'./aceEditor/auto-complete/AutoCompleteManager',
|
||||
'./aceEditor/spell-check/SpellCheckManager',
|
||||
'./aceEditor/spell-check/SpellCheckAdapter',
|
||||
'./aceEditor/highlights/HighlightsManager',
|
||||
'./aceEditor/cursor-position/CursorPositionManager',
|
||||
'./aceEditor/cursor-position/CursorPositionAdapter',
|
||||
'./aceEditor/track-changes/TrackChangesManager',
|
||||
'./aceEditor/track-changes/TrackChangesAdapter',
|
||||
'./aceEditor/metadata/MetadataManager',
|
||||
'../../metadata/services/metadata',
|
||||
'../../graphics/services/graphics',
|
||||
'../../preamble/services/preamble',
|
||||
'../../files/services/files'
|
||||
], function(
|
||||
App,
|
||||
Ace,
|
||||
|
||||
+4
-4
@@ -1,8 +1,8 @@
|
||||
define([
|
||||
'ide/editor/directives/aceEditor/auto-complete/CommandManager',
|
||||
'ide/editor/directives/aceEditor/auto-complete/EnvironmentManager',
|
||||
'ide/editor/directives/aceEditor/auto-complete/PackageManager',
|
||||
'ide/editor/directives/aceEditor/auto-complete/Helpers',
|
||||
'./CommandManager',
|
||||
'./EnvironmentManager',
|
||||
'./PackageManager',
|
||||
'./Helpers',
|
||||
'ace/ace',
|
||||
'ace/ext-language_tools'
|
||||
], function(CommandManager, EnvironmentManager, PackageManager, Helpers) {
|
||||
|
||||
+1
-3
@@ -10,9 +10,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define([
|
||||
'ide/editor/directives/aceEditor/auto-complete/snippets/Environments'
|
||||
], function(Environments) {
|
||||
define(['./snippets/Environments'], function(Environments) {
|
||||
let staticSnippets = Array.from(Environments.withoutSnippets).map(env => ({
|
||||
caption: `\\begin{${env}}...`,
|
||||
snippet: `\
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['ide/editor/EditorShareJsCodec'], function(EditorShareJsCodec) {
|
||||
define(['../../../EditorShareJsCodec'], function(EditorShareJsCodec) {
|
||||
let CursorPositionAdapter
|
||||
return (CursorPositionAdapter = class CursorPositionAdapter {
|
||||
constructor(editor) {
|
||||
|
||||
+4
-1
@@ -16,7 +16,10 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['ace/ace', 'ide/colors/ColorManager'], function(_, ColorManager) {
|
||||
define(['ace/ace', '../../../../colors/ColorManager'], function(
|
||||
_,
|
||||
ColorManager
|
||||
) {
|
||||
let HighlightsManager
|
||||
const { Range } = ace.require('ace/range')
|
||||
|
||||
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
define([
|
||||
'ace/ace',
|
||||
'ide/editor/directives/aceEditor/spell-check/HighlightedWordManager'
|
||||
], function(Ace, HighlightedWordManager) {
|
||||
define(['ace/ace', './HighlightedWordManager'], function(
|
||||
Ace,
|
||||
HighlightedWordManager
|
||||
) {
|
||||
const { Range } = ace.require('ace/range')
|
||||
|
||||
class SpellCheckAdapter {
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
/* eslint-disable
|
||||
camelcase
|
||||
*/
|
||||
define(['ace/ace', 'ide/editor/EditorShareJsCodec'], function(
|
||||
define(['ace/ace', '../../../EditorShareJsCodec'], function(
|
||||
_ignore,
|
||||
EditorShareJsCodec
|
||||
) {
|
||||
|
||||
+3
-3
@@ -4,9 +4,9 @@
|
||||
*/
|
||||
define([
|
||||
'ace/ace',
|
||||
'utils/EventEmitter',
|
||||
'ide/colors/ColorManager',
|
||||
'ide/editor/EditorShareJsCodec'
|
||||
'../../../../../utils/EventEmitter',
|
||||
'../../../../colors/ColorManager',
|
||||
'../../../EditorShareJsCodec'
|
||||
], function(_ignore, EventEmitter, ColorManager, EditorShareJsCodec) {
|
||||
const { Range } = ace.require('ace/range')
|
||||
class TrackChangesManager {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
App.directive('toggleSwitch', () => ({
|
||||
restrict: 'E',
|
||||
scope: {
|
||||
|
||||
@@ -20,13 +20,13 @@
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define([
|
||||
'ide/file-tree/directives/fileEntity',
|
||||
'ide/file-tree/directives/draggable',
|
||||
'ide/file-tree/directives/droppable',
|
||||
'ide/file-tree/controllers/FileTreeController',
|
||||
'ide/file-tree/controllers/FileTreeEntityController',
|
||||
'ide/file-tree/controllers/FileTreeFolderController',
|
||||
'ide/file-tree/controllers/FileTreeRootFolderController'
|
||||
'./directives/fileEntity',
|
||||
'./directives/draggable',
|
||||
'./directives/droppable',
|
||||
'./controllers/FileTreeController',
|
||||
'./controllers/FileTreeEntityController',
|
||||
'./controllers/FileTreeFolderController',
|
||||
'./controllers/FileTreeRootFolderController'
|
||||
], function() {
|
||||
let FileTreeManager
|
||||
return (FileTreeManager = class FileTreeManager {
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], function(App) {
|
||||
define(['../../../base'], function(App) {
|
||||
App.controller('FileTreeController', function(
|
||||
$scope,
|
||||
$modal,
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base', 'ide/file-tree/util/iconTypeFromName'], function(
|
||||
define(['../../../base', '../util/iconTypeFromName'], function(
|
||||
App,
|
||||
iconTypeFromName
|
||||
) {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
App.controller('FileTreeFolderController', function(
|
||||
$scope,
|
||||
ide,
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
App.controller('FileTreeRootFolderController', function($scope, $modal, ide) {
|
||||
const { rootFolder } = $scope
|
||||
return ($scope.onDrop = function(events, ui) {
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
App.directive('draggable', () => ({
|
||||
link(scope, element, attrs) {
|
||||
return scope.$watch(attrs.draggable, function(draggable) {
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
App.directive('droppable', () => ({
|
||||
link(scope, element, attrs) {
|
||||
return scope.$watch(attrs.droppable, function(droppable) {
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
App.directive('fileEntity', RecursionHelper => ({
|
||||
restrict: 'E',
|
||||
scope: {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
App.factory('files', function(ide) {
|
||||
const Files = {
|
||||
getTeXFiles() {
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
App.factory('graphics', function(ide) {
|
||||
const Graphics = {
|
||||
getGraphicsFiles() {
|
||||
|
||||
@@ -17,11 +17,11 @@
|
||||
*/
|
||||
define([
|
||||
'moment',
|
||||
'ide/colors/ColorManager',
|
||||
'ide/history/util/displayNameForUser',
|
||||
'ide/history/controllers/HistoryListController',
|
||||
'ide/history/controllers/HistoryDiffController',
|
||||
'ide/history/directives/infiniteScroll'
|
||||
'../colors/ColorManager',
|
||||
'./util/displayNameForUser',
|
||||
'./controllers/HistoryListController',
|
||||
'./controllers/HistoryDiffController',
|
||||
'./directives/infiniteScroll'
|
||||
], function(moment, ColorManager, displayNameForUser) {
|
||||
let HistoryManager
|
||||
return (HistoryManager = (function() {
|
||||
|
||||
@@ -19,23 +19,23 @@
|
||||
*/
|
||||
define([
|
||||
'moment',
|
||||
'ide/colors/ColorManager',
|
||||
'ide/history/util/displayNameForUser',
|
||||
'ide/history/util/HistoryViewModes',
|
||||
'ide/history/controllers/HistoryV2ListController',
|
||||
'ide/history/controllers/HistoryV2FileTreeController',
|
||||
'ide/history/controllers/HistoryV2ToolbarController',
|
||||
'ide/history/controllers/HistoryV2AddLabelModalController',
|
||||
'ide/history/controllers/HistoryV2DeleteLabelModalController',
|
||||
'ide/history/directives/infiniteScroll',
|
||||
'ide/history/directives/historyDraggableBoundary',
|
||||
'ide/history/directives/historyDroppableArea',
|
||||
'ide/history/components/historyEntriesList',
|
||||
'ide/history/components/historyEntry',
|
||||
'ide/history/components/historyLabelsList',
|
||||
'ide/history/components/historyLabel',
|
||||
'ide/history/components/historyFileTree',
|
||||
'ide/history/components/historyFileEntity'
|
||||
'../colors/ColorManager',
|
||||
'./util/displayNameForUser',
|
||||
'./util/HistoryViewModes',
|
||||
'./controllers/HistoryV2ListController',
|
||||
'./controllers/HistoryV2FileTreeController',
|
||||
'./controllers/HistoryV2ToolbarController',
|
||||
'./controllers/HistoryV2AddLabelModalController',
|
||||
'./controllers/HistoryV2DeleteLabelModalController',
|
||||
'./directives/infiniteScroll',
|
||||
'./directives/historyDraggableBoundary',
|
||||
'./directives/historyDroppableArea',
|
||||
'./components/historyEntriesList',
|
||||
'./components/historyEntry',
|
||||
'./components/historyLabelsList',
|
||||
'./components/historyLabel',
|
||||
'./components/historyFileTree',
|
||||
'./components/historyFileEntity'
|
||||
], function(moment, ColorManager, displayNameForUser, HistoryViewModes) {
|
||||
let HistoryManager
|
||||
return (HistoryManager = (function() {
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], function(App) {
|
||||
define(['../../../base'], function(App) {
|
||||
const historyEntriesListController = function($scope, $element, $attrs, _) {
|
||||
const ctrl = this
|
||||
ctrl.$entryListViewportEl = null
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define([
|
||||
'base',
|
||||
'ide/colors/ColorManager',
|
||||
'ide/history/util/displayNameForUser'
|
||||
'../../../base',
|
||||
'../../colors/ColorManager',
|
||||
'../util/displayNameForUser'
|
||||
], function(App, ColorManager, displayNameForUser) {
|
||||
const historyEntryController = function($scope, $element, $attrs, _) {
|
||||
const ctrl = this
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define([
|
||||
'base',
|
||||
'ide/file-tree/util/iconTypeFromName',
|
||||
'ide/file-tree/util/fileOperationI18nNames'
|
||||
'../../../base',
|
||||
'../../file-tree/util/iconTypeFromName',
|
||||
'../../file-tree/util/fileOperationI18nNames'
|
||||
], function(App, iconTypeFromName, fileOperationI18nNames) {
|
||||
const historyFileEntityController = function($scope, $element, $attrs) {
|
||||
const ctrl = this
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], function(App) {
|
||||
define(['../../../base'], function(App) {
|
||||
const historyFileTreeController = function($scope, $element, $attrs, _) {
|
||||
const ctrl = this
|
||||
ctrl.handleEntityClick = file => ctrl.onSelectedFileChange({ file })
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], function(App) {
|
||||
define(['../../../base'], function(App) {
|
||||
const historyLabelController = function(
|
||||
$scope,
|
||||
$element,
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define([
|
||||
'base',
|
||||
'ide/colors/ColorManager',
|
||||
'ide/history/util/displayNameForUser'
|
||||
'../../../base',
|
||||
'../../colors/ColorManager',
|
||||
'../util/displayNameForUser'
|
||||
], function(App, ColorManager, displayNameForUser) {
|
||||
const historyLabelsListController = function($scope, $element, $attrs, _) {
|
||||
const ctrl = this
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], function(App) {
|
||||
define(['../../../base'], function(App) {
|
||||
App.controller('HistoryDiffController', function(
|
||||
$scope,
|
||||
$modal,
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base', 'ide/history/util/displayNameForUser'], function(
|
||||
define(['../../../base', '../util/displayNameForUser'], function(
|
||||
App,
|
||||
displayNameForUser
|
||||
) {
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
App.controller('HistoryV2AddLabelModalController', function(
|
||||
$scope,
|
||||
$modalInstance,
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
App.controller('HistoryV2DeleteLabelModalController', function(
|
||||
$scope,
|
||||
$modalInstance,
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
App.controller('HistoryV2FileTreeController', function($scope, ide) {
|
||||
$scope.handleFileSelection = file => {
|
||||
ide.historyManager.selectFile(file)
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base', 'ide/history/util/displayNameForUser'], (
|
||||
define(['../../../base', '../util/displayNameForUser'], (
|
||||
App,
|
||||
displayNameForUser
|
||||
) =>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
App.controller(
|
||||
'HistoryV2ToolbarController',
|
||||
($scope, $modal, ide, eventTracking, waitFor) => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
App.directive('historyDraggableBoundary', () => ({
|
||||
scope: {
|
||||
historyDraggableBoundary: '@',
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
App.directive('historyDroppableArea', () => ({
|
||||
scope: {
|
||||
historyDroppableAreaOnDrop: '&',
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
App.directive('infiniteScroll', () => ({
|
||||
link(scope, element, attrs, ctrl) {
|
||||
const innerElement = element.find('.infinite-scroll-inner')
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base', 'ace/ace'], function(App) {
|
||||
define(['../../../base', 'ace/ace'], function(App) {
|
||||
App.controller(
|
||||
'HotkeysController',
|
||||
($scope, $modal, eventTracking) =>
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
// TODO: This file was created by bulk-decaffeinate.
|
||||
// Fix any style issues and re-enable lint.
|
||||
define([
|
||||
'ide/hotkeys/BackspaceHighjack',
|
||||
'ide/hotkeys/controllers/HotkeysController'
|
||||
'./BackspaceHighjack',
|
||||
'./controllers/HotkeysController'
|
||||
], function() {})
|
||||
|
||||
@@ -11,10 +11,10 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define([
|
||||
'libs/latex-log-parser',
|
||||
'ide/human-readable-logs/HumanReadableLogsRules'
|
||||
], (LogParser, ruleset) => ({
|
||||
define(['libs/latex-log-parser', './HumanReadableLogsRules'], (
|
||||
LogParser,
|
||||
ruleset
|
||||
) => ({
|
||||
parse(rawLog, options) {
|
||||
let parsedLogEntries
|
||||
if (typeof rawLog === 'string') {
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
App.factory('metadata', function($http, ide) {
|
||||
const debouncer = {} // DocId => Timeout
|
||||
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define([
|
||||
'ide/colors/ColorManager',
|
||||
'../colors/ColorManager',
|
||||
'crypto-js/md5',
|
||||
'ide/online-users/controllers/OnlineUsersController'
|
||||
'./controllers/OnlineUsersController'
|
||||
], function(ColorManager) {
|
||||
let OnlineUsersManager
|
||||
return (OnlineUsersManager = (function() {
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
App.controller('OnlineUsersController', function($scope, ide) {
|
||||
$scope.gotoUser = function(user) {
|
||||
if (user.doc != null && user.row != null) {
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define([
|
||||
'ide/pdf/controllers/PdfController',
|
||||
'ide/pdf/controllers/PdfViewToggleController',
|
||||
'ide/pdfng/directives/pdfJs'
|
||||
'./controllers/PdfController',
|
||||
'./controllers/PdfViewToggleController',
|
||||
'../pdfng/directives/pdfJs'
|
||||
], function() {
|
||||
let PdfManager
|
||||
return (PdfManager = class PdfManager {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
define([
|
||||
'base',
|
||||
'../../../base',
|
||||
'ace/ace',
|
||||
'ide/human-readable-logs/HumanReadableLogs',
|
||||
'../../human-readable-logs/HumanReadableLogs',
|
||||
'libs/bib-log-parser'
|
||||
], function(App, Ace, HumanReadableLogs, BibLogParser) {
|
||||
const AUTO_COMPILE_MAX_WAIT = 5000
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
App.controller('PdfViewToggleController', function($scope) {
|
||||
$scope.togglePdfView = function() {
|
||||
if ($scope.ui.view === 'pdf') {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
define(['base', './pdfJsLoader'], (App, PDFJS) => {
|
||||
define(['../../../base', './pdfJsLoader'], (App, PDFJS) => {
|
||||
const EXTERNAL_LINK_TARGET = '_blank'
|
||||
const REL_NOOPENER = 'noreferrer noopener'
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base', './pdfJsLoader'], (App, PDFJS) =>
|
||||
define(['../../../base', './pdfJsLoader'], (App, PDFJS) =>
|
||||
// app = angular.module 'pdfHighlights', []
|
||||
|
||||
App.factory('pdfHighlights', function() {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base', 'ide/pdfng/directives/pdfViewer'], (App, pdfViewer) =>
|
||||
define(['../../../base', './pdfViewer'], (App, pdfViewer) =>
|
||||
App.directive('pdfng', ($timeout, localStorage) => ({
|
||||
scope: {
|
||||
pdfSrc: '=',
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
// App = angular.module 'pdfPage', ['pdfHighlights']
|
||||
|
||||
App.directive('pdfPage', ($timeout, pdfHighlights, pdfSpinner) => ({
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base', './pdfJsLoader'], (App, PDFJS) =>
|
||||
define(['../../../base', './pdfJsLoader'], (App, PDFJS) =>
|
||||
// App = angular.module 'PDFRenderer', ['pdfAnnotations', 'pdfTextLayer']
|
||||
|
||||
App.factory('PDFRenderer', function(
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
App.factory('pdfSpinner', function() {
|
||||
let pdfSpinner
|
||||
return (pdfSpinner = class pdfSpinner {
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
// uses the PDFJS text layer renderer to provide invisible overlayed
|
||||
// text for searching
|
||||
|
||||
|
||||
@@ -19,13 +19,13 @@
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define([
|
||||
'base',
|
||||
'ide/pdfng/directives/pdfTextLayer',
|
||||
'ide/pdfng/directives/pdfAnnotations',
|
||||
'ide/pdfng/directives/pdfHighlights',
|
||||
'ide/pdfng/directives/pdfRenderer',
|
||||
'ide/pdfng/directives/pdfPage',
|
||||
'ide/pdfng/directives/pdfSpinner'
|
||||
'../../../base',
|
||||
'./pdfTextLayer',
|
||||
'./pdfAnnotations',
|
||||
'./pdfHighlights',
|
||||
'./pdfRenderer',
|
||||
'./pdfPage',
|
||||
'./pdfSpinner'
|
||||
], function(
|
||||
App,
|
||||
pdfTextLayer,
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
* DS103: Rewrite code to no longer use __guard__
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
App.factory('preamble', function(ide) {
|
||||
var Preamble = {
|
||||
getPreambleText() {
|
||||
|
||||
@@ -4,20 +4,20 @@
|
||||
// TODO: This file was created by bulk-decaffeinate.
|
||||
// Fix any style issues and re-enable lint.
|
||||
define([
|
||||
'ide/review-panel/controllers/ReviewPanelController',
|
||||
'ide/review-panel/controllers/TrackChangesUpgradeModalController',
|
||||
'ide/review-panel/controllers/BulkActionsModalController',
|
||||
'ide/review-panel/directives/reviewPanelSorted',
|
||||
'ide/review-panel/directives/reviewPanelToggle',
|
||||
'ide/review-panel/directives/changeEntry',
|
||||
'ide/review-panel/directives/aggregateChangeEntry',
|
||||
'ide/review-panel/directives/commentEntry',
|
||||
'ide/review-panel/directives/addCommentEntry',
|
||||
'ide/review-panel/directives/bulkActionsEntry',
|
||||
'ide/review-panel/directives/resolvedCommentEntry',
|
||||
'ide/review-panel/directives/resolvedCommentsDropdown',
|
||||
'ide/review-panel/directives/reviewPanelCollapseHeight',
|
||||
'ide/review-panel/filters/notEmpty',
|
||||
'ide/review-panel/filters/numKeys',
|
||||
'ide/review-panel/filters/orderOverviewEntries'
|
||||
'./controllers/ReviewPanelController',
|
||||
'./controllers/TrackChangesUpgradeModalController',
|
||||
'./controllers/BulkActionsModalController',
|
||||
'./directives/reviewPanelSorted',
|
||||
'./directives/reviewPanelToggle',
|
||||
'./directives/changeEntry',
|
||||
'./directives/aggregateChangeEntry',
|
||||
'./directives/commentEntry',
|
||||
'./directives/addCommentEntry',
|
||||
'./directives/bulkActionsEntry',
|
||||
'./directives/resolvedCommentEntry',
|
||||
'./directives/resolvedCommentsDropdown',
|
||||
'./directives/reviewPanelCollapseHeight',
|
||||
'./filters/notEmpty',
|
||||
'./filters/numKeys',
|
||||
'./filters/orderOverviewEntries'
|
||||
], function() {})
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base'], App =>
|
||||
define(['../../../base'], App =>
|
||||
App.controller('BulkActionsModalController', function(
|
||||
$scope,
|
||||
$modalInstance,
|
||||
|
||||
@@ -16,10 +16,10 @@
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define([
|
||||
'base',
|
||||
'utils/EventEmitter',
|
||||
'ide/colors/ColorManager',
|
||||
'ide/review-panel/RangesTracker'
|
||||
'../../../base',
|
||||
'../../../utils/EventEmitter',
|
||||
'../../colors/ColorManager',
|
||||
'../RangesTracker'
|
||||
], (App, EventEmitter, ColorManager, RangesTracker) =>
|
||||
App.controller('ReviewPanelController', function(
|
||||
$scope,
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user