From 2fc6690f09a312c2f31a32c4eab9953756e94b28 Mon Sep 17 00:00:00 2001 From: Roman Demidov Date: Mon, 21 Jun 2021 11:52:54 +0300 Subject: [PATCH] Remove server version of spell checker (#281) * Remove server version of spell checker * Add changes * Add changes --- Common/config/default.json | 6 ------ Common/config/production-linux.json | 4 ++-- Common/config/production-windows.json | 4 ++-- Makefile | 2 +- package.json | 4 +--- 5 files changed, 6 insertions(+), 14 deletions(-) diff --git a/Common/config/default.json b/Common/config/default.json index d306b96d..001a117e 100644 --- a/Common/config/default.json +++ b/Common/config/default.json @@ -317,11 +317,5 @@ "port": 4567, "directory": "", "silent": true - }, - "SpellChecker": { - "server": { - "port": 8080, - "mode": "development" - } } } diff --git a/Common/config/production-linux.json b/Common/config/production-linux.json index 537f7d7f..4e0de9ad 100644 --- a/Common/config/production-linux.json +++ b/Common/config/production-linux.json @@ -39,7 +39,7 @@ "options": {"maxAge": "7d"} }, "/dictionaries": { - "path": "/var/www/onlyoffice/documentserver/server/SpellChecker/dictionaries", + "path": "/var/www/onlyoffice/documentserver/server/dictionaries", "options": {"maxAge": "7d"} } } @@ -72,7 +72,7 @@ }, "SpellChecker": { "server": { - "dictDir": "/var/www/onlyoffice/documentserver/server/SpellChecker/dictionaries" + "dictDir": "/var/www/onlyoffice/documentserver/server/dictionaries" } } } diff --git a/Common/config/production-windows.json b/Common/config/production-windows.json index 22fd43e7..d5f6b658 100644 --- a/Common/config/production-windows.json +++ b/Common/config/production-windows.json @@ -28,7 +28,7 @@ "options": {"maxAge": "7d"} }, "/dictionaries": { - "path": "../SpellChecker/dictionaries", + "path": "../dictionaries", "options": {"maxAge": "7d"} }, "/welcome": { @@ -66,7 +66,7 @@ }, "SpellChecker": { "server": { - "dictDir": "./dictionaries" + "dictDir": "../dictionaries" } } } diff --git a/Makefile b/Makefile index 40bf93ef..0a81dcf2 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,7 @@ TARGET := $(PLATFORM)_$(ARCHITECTURE) OUTPUT = ../build_tools/out/$(TARGET)/onlyoffice/documentserver/server -SPELLCHECKER_DICTIONARIES := $(OUTPUT)/SpellChecker/dictionaries +SPELLCHECKER_DICTIONARIES := $(OUTPUT)/dictionaries SPELLCHECKER_DICTIONARY_FILES += ../dictionaries/*_* SCHEMA_DIR = schema diff --git a/package.json b/package.json index 06d75eb6..88b3b72d 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ "./FileConverter/package.json", "./FileConverter/bin/DoctRenderer.config", "./Metrics/package.json", - "./SpellChecker/package.json", "./Common/config/*.json", "./Common/config/log4js/*.json", "./Metrics/config/config.js" @@ -52,8 +51,7 @@ "./build/server/Common", "./build/server/DocService", "./build/server/FileConverter", - "./build/server/Metrics", - "./build/server/SpellChecker" + "./build/server/Metrics" ], "dependencies": { "grunt": "^1.3.0",