mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #32840 from overleaf/mj-docx-copy
[web] Finalise copy for docx import GitOrigin-RevId: de0331483752ca1f8e8f1ac78639820b7b738c15
This commit is contained in:
committed by
Copybot
parent
b7ee046025
commit
2b77e92d5b
@@ -284,7 +284,6 @@
|
||||
"choose_how_you_search_your_references": "",
|
||||
"choose_which_experiments": "",
|
||||
"citation": "",
|
||||
"citations_and_cross_references_may_be_written_as_plain_text": "",
|
||||
"cite_a_reference_from_your_reference_manager_to_automatically_add_it_to_your_bib_file": "",
|
||||
"cite_directly_or_import_references": "",
|
||||
"cite_faster": "",
|
||||
@@ -474,7 +473,7 @@
|
||||
"do_you_want_to_overwrite_it": "",
|
||||
"do_you_want_to_overwrite_it_plural": "",
|
||||
"do_you_want_to_overwrite_them": "",
|
||||
"document_successfully_imported": "",
|
||||
"document_ready_for_editing": "",
|
||||
"document_too_long": "",
|
||||
"document_too_long_detail": "",
|
||||
"document_too_long_tracked_deletes": "",
|
||||
@@ -1931,7 +1930,6 @@
|
||||
"the_code_editor_color_scheme": "",
|
||||
"the_code_editor_color_scheme_dark_mode": "",
|
||||
"the_code_editor_color_scheme_light_mode": "",
|
||||
"the_document_has_been_converted_to": "",
|
||||
"the_following_files_already_exist_in_this_project": "",
|
||||
"the_following_files_and_folders_already_exist_in_this_project": "",
|
||||
"the_following_folder_already_exists_in_this_project": "",
|
||||
@@ -2279,6 +2277,7 @@
|
||||
"well_be_here_when_youre_ready": "",
|
||||
"were_making_some_changes_to_project_sharing_this_means_you_will_be_visible": "",
|
||||
"were_performing_maintenance": "",
|
||||
"weve_converted_your_content_to_latex": "",
|
||||
"weve_given_your_dashboard_a_sleek_new_dark_theme_for_more_comfortable_late_night_research_prefer_the_light_switch_back_anytime_right_here": "",
|
||||
"weve_hit_a_problem_try_starting_a_new_chat": "",
|
||||
"weve_matched_your_dashboard_theme_to_your_editor_preferences_but_you_can_change_that_here_anytime": "",
|
||||
|
||||
@@ -61,20 +61,21 @@ function ProjectConvertedFromDocxModalContent({
|
||||
backdrop="static"
|
||||
>
|
||||
<OLModalHeader>
|
||||
<OLModalTitle as="h3">
|
||||
{t('document_successfully_imported')}
|
||||
</OLModalTitle>
|
||||
<OLModalTitle as="h3">{t('document_ready_for_editing')}</OLModalTitle>
|
||||
</OLModalHeader>
|
||||
<OLModalBody>
|
||||
<ul className="docx-modal-list">
|
||||
<li>{t('the_document_has_been_converted_to')}</li>
|
||||
<li>
|
||||
<Trans
|
||||
i18nKey="citations_and_cross_references_may_be_written_as_plain_text"
|
||||
components={{ code: <code /> }}
|
||||
/>
|
||||
</li>
|
||||
</ul>
|
||||
<Trans
|
||||
i18nKey="weve_converted_your_content_to_latex"
|
||||
components={[
|
||||
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
||||
<a
|
||||
href="/learn"
|
||||
key="wiki-link"
|
||||
rel="noopener noreferrer"
|
||||
target="_blank"
|
||||
/>,
|
||||
]}
|
||||
/>
|
||||
</OLModalBody>
|
||||
<OLModalFooter>
|
||||
<OLButton variant="primary" onClick={onHide}>
|
||||
|
||||
@@ -20,6 +20,7 @@ import {
|
||||
import { useSendProjectListMB } from '@/features/project-list/components/project-list-events'
|
||||
import type { PortalTemplate } from '../../../../../types/portal-template'
|
||||
import { useFeatureFlag } from '@/shared/context/split-test-context'
|
||||
import MaterialIcon from '@/shared/components/material-icon'
|
||||
|
||||
type SendTrackingEvent = {
|
||||
dropdownMenu: string
|
||||
@@ -221,6 +222,7 @@ function NewProjectButton({
|
||||
dropdownMenuEvent: 'import-docx',
|
||||
})
|
||||
}
|
||||
trailingIcon={<MaterialIcon type="fiber_new" />}
|
||||
>
|
||||
{t('import_word_document')}
|
||||
</DropdownItem>
|
||||
|
||||
@@ -48,8 +48,8 @@ function ImportDocxModal({
|
||||
height={300}
|
||||
locale={{
|
||||
strings: {
|
||||
browseFiles: 'Select a .docx file',
|
||||
dropPasteFiles: '%{browseFiles} or \n\n drag a .docx file',
|
||||
browseFiles: 'Select .docx file',
|
||||
dropPasteFiles: '%{browseFiles} or \n\n Drag .docx file',
|
||||
},
|
||||
}}
|
||||
className="project-list-upload-project-modal-uppy-dashboard"
|
||||
|
||||
@@ -13,6 +13,7 @@ import {
|
||||
} from '@/shared/components/dropdown/dropdown-menu'
|
||||
import createNewProjectImage from '../../images/create-a-new-project.svg'
|
||||
import { useFeatureFlag } from '@/shared/context/split-test-context'
|
||||
import MaterialIcon from '@/shared/components/material-icon'
|
||||
|
||||
const CustomDropdownToggle = forwardRef<
|
||||
HTMLButtonElement,
|
||||
@@ -146,6 +147,7 @@ function WelcomeMessageCreateNewProjectDropdown({
|
||||
handleDropdownItemClick(e, 'import_docx', 'import-docx')
|
||||
}
|
||||
tabIndex={-1}
|
||||
trailingIcon={<MaterialIcon type="fiber_new" />}
|
||||
>
|
||||
{t('import_word_document')}
|
||||
</DropdownItem>
|
||||
|
||||
@@ -162,12 +162,6 @@ $editor-toggler-bg-dark-color: color.adjust(
|
||||
}
|
||||
}
|
||||
|
||||
.docx-modal-list {
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.out-of-sync-modal {
|
||||
.text-preview {
|
||||
margin-top: var(--spacing-05);
|
||||
|
||||
@@ -363,7 +363,6 @@
|
||||
"choose_which_experiments": "Choose which experiments you’d like to try.",
|
||||
"choose_your_plan": "Choose your plan",
|
||||
"citation": "Citation",
|
||||
"citations_and_cross_references_may_be_written_as_plain_text": "Citations and cross-references may be written as plain text. Consider changing these to use the appropriate <code>\\cite{}</code> and <code>\\ref{}</code> commands.",
|
||||
"cite_a_reference_from_your_reference_manager_to_automatically_add_it_to_your_bib_file": "Cite a reference from your reference manager to automatically add it to your .bib file.",
|
||||
"cite_directly_or_import_references": "Cite directly or import references",
|
||||
"cite_faster": "Cite faster",
|
||||
@@ -609,7 +608,7 @@
|
||||
"do_you_want_to_overwrite_it": "Do you want to overwrite it?",
|
||||
"do_you_want_to_overwrite_it_plural": "Do you want to overwrite them?",
|
||||
"do_you_want_to_overwrite_them": "Do you want to overwrite them?",
|
||||
"document_successfully_imported": "Document successfully imported",
|
||||
"document_ready_for_editing": "Document ready for editing",
|
||||
"document_too_long": "Document Too Long",
|
||||
"document_too_long_detail": "Sorry, this file is too long to be edited manually. Please try to split it into smaller files.",
|
||||
"document_too_long_tracked_deletes": "You can also accept pending deletions to reduce the size of the file.",
|
||||
@@ -617,7 +616,7 @@
|
||||
"document_updated_externally_detail": "This document was just updated externally. Any recent changes you have made may have been overwritten. To see previous versions, please look in the history.",
|
||||
"documentation": "Documentation",
|
||||
"documentation_articles": "Documentation and articles",
|
||||
"docx_import_feedback_message": "This is a new feature, <0>give us feedback</0> once you’ve had a look at the document",
|
||||
"docx_import_feedback_message": "Importing Word docs is a new feature. <0>Let us know what you think</0>",
|
||||
"does_not_contain_or_significantly_match_your_email": "does not contain or significantly match your email",
|
||||
"doesnt_match": "Doesn’t match",
|
||||
"doing_this_allow_log_in_through_institution": "Doing this will allow you to log in to <b>__appName__</b> through your institution and will reconfirm your institutional email address.",
|
||||
@@ -2490,7 +2489,6 @@
|
||||
"the_code_editor_color_scheme": "The code editor color scheme",
|
||||
"the_code_editor_color_scheme_dark_mode": "The code editor color scheme for dark mode",
|
||||
"the_code_editor_color_scheme_light_mode": "The code editor color scheme for light mode",
|
||||
"the_document_has_been_converted_to": "The document has been converted to LaTeX. You may notice some places where the layout looks slightly different to your original document, such as in tables or figures. Check the output carefully.",
|
||||
"the_file_supplied_is_of_an_unsupported_type ": "The link to open this content on Overleaf pointed to the wrong kind of file. Valid file types are .tex documents and .zip files. If this keeps happening for links on a particular site, please report this to them.",
|
||||
"the_following_files_already_exist_in_this_project": "The following files already exist in this project:",
|
||||
"the_following_files_and_folders_already_exist_in_this_project": "The following files and folders already exist in this project:",
|
||||
@@ -2876,6 +2874,7 @@
|
||||
"well_be_here_when_youre_ready": "We’ll be here when you’re ready to dive back in! 🦆",
|
||||
"were_making_some_changes_to_project_sharing_this_means_you_will_be_visible": "We’re making some <0>changes to project sharing</0>. This means, as someone with edit access, your name and email address will be visible to the project owner and other editors.",
|
||||
"were_performing_maintenance": "We’re performing maintenance on Overleaf and you need to wait a moment. Sorry for any inconvenience. The editor will refresh automatically in __seconds__ seconds.",
|
||||
"weve_converted_your_content_to_latex": "We’ve converted your content to LaTeX. You may need to edit styling, particularly for tables, figures and citations. <0>Get help with LaTeX</0>",
|
||||
"weve_given_your_dashboard_a_sleek_new_dark_theme_for_more_comfortable_late_night_research_prefer_the_light_switch_back_anytime_right_here": "We’ve given your dashboard a sleek new dark theme for more comfortable late-night research. Prefer the light? Switch back anytime right here.",
|
||||
"weve_hit_a_problem_try_starting_a_new_chat": "We’ve hit a problem. Try starting a new chat.",
|
||||
"weve_matched_your_dashboard_theme_to_your_editor_preferences_but_you_can_change_that_here_anytime": "We’ve matched your dashboard theme to your editor preferences, but you can change that here anytime.",
|
||||
|
||||
Reference in New Issue
Block a user