Merge pull request #4101 from overleaf/ae-settings-module
Migrate from `settings-sharelatex` to `@overleaf/settings` GitOrigin-RevId: 9a298ba26382180c1351683c5fddc9004418c1e6
This commit is contained in:
@@ -134,7 +134,7 @@ describe('ProjectController', function () {
|
||||
this.ProjectController = SandboxedModule.require(MODULE_PATH, {
|
||||
requires: {
|
||||
mongodb: { ObjectId },
|
||||
'settings-sharelatex': this.settings,
|
||||
'@overleaf/settings': this.settings,
|
||||
'@overleaf/metrics': this.Metrics,
|
||||
'../SplitTests/SplitTestHandler': this.SplitTestHandler,
|
||||
'./ProjectDeleter': this.ProjectDeleter,
|
||||
|
||||
@@ -75,7 +75,7 @@ describe('ProjectDetailsHandler', function () {
|
||||
'../User/UserGetter': this.UserGetter,
|
||||
'../ThirdPartyDataStore/TpdsUpdateSender': this.TpdsUpdateSender,
|
||||
'../TokenGenerator/TokenGenerator': this.TokenGenerator,
|
||||
'settings-sharelatex': this.settings,
|
||||
'@overleaf/settings': this.settings,
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
@@ -180,7 +180,7 @@ describe('ProjectEntityMongoUpdateHandler', function () {
|
||||
this.subject = SandboxedModule.require(MODULE_PATH, {
|
||||
requires: {
|
||||
mongodb: { ObjectId },
|
||||
'settings-sharelatex': this.Settings,
|
||||
'@overleaf/settings': this.Settings,
|
||||
'../Cooldown/CooldownManager': this.CooldownManager,
|
||||
'../../models/Folder': { Folder: this.FolderModel },
|
||||
'../../infrastructure/LockManager': this.LockManager,
|
||||
|
||||
@@ -144,7 +144,7 @@ describe('ProjectEntityUpdateHandler', function () {
|
||||
}
|
||||
this.ProjectEntityUpdateHandler = SandboxedModule.require(MODULE_PATH, {
|
||||
requires: {
|
||||
'settings-sharelatex': { validRootDocExtensions: ['tex'] },
|
||||
'@overleaf/settings': { validRootDocExtensions: ['tex'] },
|
||||
fs: this.fs,
|
||||
'../../models/Doc': { Doc: this.DocModel },
|
||||
'../Docstore/DocstoreManager': this.DocstoreManager,
|
||||
|
||||
@@ -36,7 +36,7 @@ describe('ProjectHelper', function () {
|
||||
this.ProjectHelper = SandboxedModule.require(MODULE_PATH, {
|
||||
requires: {
|
||||
mongodb: { ObjectId },
|
||||
'settings-sharelatex': this.Settings,
|
||||
'@overleaf/settings': this.Settings,
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
@@ -44,7 +44,7 @@ describe('ProjectHistoryHandler', function () {
|
||||
|
||||
return (this.ProjectHistoryHandler = SandboxedModule.require(modulePath, {
|
||||
requires: {
|
||||
'settings-sharelatex': (this.Settings = {}),
|
||||
'@overleaf/settings': (this.Settings = {}),
|
||||
'../../models/Project': {
|
||||
Project: this.ProjectModel,
|
||||
},
|
||||
|
||||
@@ -32,7 +32,7 @@ describe('ProjectOptionsHandler', function () {
|
||||
this.handler = SandboxedModule.require(modulePath, {
|
||||
requires: {
|
||||
'../../models/Project': { Project: this.projectModel },
|
||||
'settings-sharelatex': {
|
||||
'@overleaf/settings': {
|
||||
languages: [
|
||||
{ name: 'English', code: 'en' },
|
||||
{ name: 'French', code: 'fr' },
|
||||
|
||||
Reference in New Issue
Block a user