Просмотр исходного кода

Merge pull request #22638 from overleaf/mj-reference-search-paywall

[web] Add paywall to W&C settings modal

GitOrigin-RevId: 388c7c14092ca0190dd532d126760c8f755c383f
Mathias Jakobsen 1 год назад
Родитель
Сommit
dc0b214bb5

+ 3 - 0
services/web/frontend/extracted-translations.json

@@ -389,6 +389,7 @@
   "disconnected": "",
   "discount": "",
   "discount_of": "",
+  "discover_the_fastest_way_to_search_and_cite": "",
   "dismiss_error_popup": "",
   "display_deleted_user": "",
   "do_you_need_edit_access": "",
@@ -1383,6 +1384,8 @@
   "search": "",
   "search_all_project_files": "",
   "search_bib_files": "",
+  "search_by_author_journal_title_and_more_link_to_zotero_mendeley": "",
+  "search_by_author_journal_title_and_more_link_to_zotero_mendeley_papers": "",
   "search_by_citekey_author_year_title": "",
   "search_command_find": "",
   "search_command_replace": "",

+ 3 - 0
services/web/locales/en.json

@@ -511,6 +511,7 @@
   "discount": "Discount",
   "discount_of": "Discount of __amount__",
   "discover_latex_templates_and_examples": "Discover LaTeX templates and examples to help with everything from writing a journal article to using a specific LaTeX package.",
+  "discover_the_fastest_way_to_search_and_cite": "Discover the fastest way to search and cite",
   "discover_why_people_worldwide_trust_overleaf": "Discover why __count__ million people worldwide trust Overleaf with their work.",
   "dismiss_error_popup": "Dismiss first error alert",
   "display_deleted_user": "Display deleted users",
@@ -1844,6 +1845,8 @@
   "search": "Search",
   "search_all_project_files": "Search all project files",
   "search_bib_files": "Search by author, title, year",
+  "search_by_author_journal_title_and_more_link_to_zotero_mendeley": "Search by author, journal, title, and more. Link to Zotero or Mendeley to search and add references from your libraries directly in your project.",
+  "search_by_author_journal_title_and_more_link_to_zotero_mendeley_papers": "Search by author, journal, title, and more. Link to Zotero, Mendeley, or Papers to search and add references from your libraries directly in your project.",
   "search_by_citekey_author_year_title": "Search by citation key, author, title, year",
   "search_command_find": "Find",
   "search_command_replace": "Replace",

+ 2 - 1
services/web/test/frontend/helpers/editor-providers.jsx

@@ -51,6 +51,7 @@ export function EditorProviders({
   features = {
     referencesSearch: true,
   },
+  projectFeatures = features,
   permissionsLevel = 'owner',
   children,
   rootFolder = [
@@ -104,7 +105,7 @@ export function EditorProviders({
         _id: projectId,
         name: PROJECT_NAME,
         owner: projectOwner,
-        features,
+        features: projectFeatures,
         rootDoc_id: rootDocId,
         rootFolder,
       },