mirror of
https://github.com/overleaf/overleaf.git
synced 2025-12-05 01:10:29 +00:00
Enable full project search in Community Edition and Server Pro (#25753)
GitOrigin-RevId: 1def9c3e190c907d41b7f822831e12c8609e9c7c
This commit is contained in:
@@ -42,7 +42,7 @@ To do this, use the included `bin/dev` script:
|
||||
bin/dev
|
||||
```
|
||||
|
||||
This will start all services using `nodemon`, which will automatically monitor the code and restart the services as necessary.
|
||||
This will start all services using `node --watch`, which will automatically monitor the code and restart the services as necessary.
|
||||
|
||||
To improve performance, you can start only a subset of the services in development mode by providing a space-separated list to the `bin/dev` script:
|
||||
|
||||
|
||||
@@ -6,14 +6,17 @@ DOCUMENT_UPDATER_HOST=document-updater
|
||||
FILESTORE_HOST=filestore
|
||||
GRACEFUL_SHUTDOWN_DELAY_SECONDS=0
|
||||
HISTORY_V1_HOST=history-v1
|
||||
HISTORY_REDIS_HOST=redis
|
||||
LISTEN_ADDRESS=0.0.0.0
|
||||
MONGO_HOST=mongo
|
||||
MONGO_URL=mongodb://mongo/sharelatex?directConnection=true
|
||||
NOTIFICATIONS_HOST=notifications
|
||||
PROJECT_HISTORY_HOST=project-history
|
||||
QUEUES_REDIS_HOST=redis
|
||||
REALTIME_HOST=real-time
|
||||
REDIS_HOST=redis
|
||||
SESSION_SECRET=foo
|
||||
V1_HISTORY_HOST=history-v1
|
||||
WEBPACK_HOST=webpack
|
||||
WEB_API_PASSWORD=overleaf
|
||||
WEB_API_USER=overleaf
|
||||
|
||||
@@ -113,7 +113,7 @@ services:
|
||||
- ../services/real-time/config:/overleaf/services/real-time/config
|
||||
|
||||
web:
|
||||
command: ["node", "--watch", "app.js", "--watch-locales"]
|
||||
command: ["node", "--watch", "app.mjs", "--watch-locales"]
|
||||
environment:
|
||||
- NODE_OPTIONS=--inspect=0.0.0.0:9229
|
||||
ports:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { URL, URLSearchParams } = require('url')
|
||||
const { URL } = require('url')
|
||||
const { pipeline } = require('stream/promises')
|
||||
const { Cookie } = require('tough-cookie')
|
||||
const OError = require('@overleaf/o-error')
|
||||
@@ -580,10 +580,18 @@ const _CompileController = {
|
||||
})
|
||||
|
||||
url = new URL(`${Settings.apis.clsi.url}${url}`)
|
||||
url.search = new URLSearchParams({
|
||||
|
||||
const searchParams = {
|
||||
...persistenceOptions.qs,
|
||||
...qs,
|
||||
}).toString()
|
||||
}
|
||||
for (const [key, value] of Object.entries(searchParams)) {
|
||||
if (value !== undefined) {
|
||||
// avoid sending "undefined" as a string value
|
||||
url.searchParams.set(key, value)
|
||||
}
|
||||
}
|
||||
|
||||
const timer = new Metrics.Timer(
|
||||
'proxy_to_clsi',
|
||||
1,
|
||||
|
||||
@@ -996,9 +996,24 @@ module.exports = {
|
||||
settingsEntries: [],
|
||||
autoCompleteExtensions: [],
|
||||
sectionTitleGenerators: [],
|
||||
toastGenerators: [],
|
||||
editorSidebarComponents: [],
|
||||
fileTreeToolbarComponents: [],
|
||||
toastGenerators: [
|
||||
Path.resolve(
|
||||
__dirname,
|
||||
'../frontend/js/features/pdf-preview/components/synctex-toasts'
|
||||
),
|
||||
],
|
||||
editorSidebarComponents: [
|
||||
Path.resolve(
|
||||
__dirname,
|
||||
'../modules/full-project-search/frontend/js/components/full-project-search.tsx'
|
||||
),
|
||||
],
|
||||
fileTreeToolbarComponents: [
|
||||
Path.resolve(
|
||||
__dirname,
|
||||
'../modules/full-project-search/frontend/js/components/full-project-search-button.tsx'
|
||||
),
|
||||
],
|
||||
fullProjectSearchPanel: [],
|
||||
integrationPanelComponents: [],
|
||||
referenceSearchSetting: [],
|
||||
|
||||
Reference in New Issue
Block a user