mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-10 14:40:47 +02:00
removing the sentence and related functions and translation (#29269)
GitOrigin-RevId: 0969d0eb1ec1da0e15f606bb3bdcf86908fa45f7
This commit is contained in:
@@ -1406,7 +1406,6 @@
|
||||
"reactivating": "",
|
||||
"read_lines_from_path": "",
|
||||
"read_more": "",
|
||||
"read_more_about_free_compile_timeouts_servers": "",
|
||||
"read_more_about_managed_users": "",
|
||||
"read_only_dropbox_sync_message": "",
|
||||
"read_only_token": "",
|
||||
@@ -2165,7 +2164,6 @@
|
||||
"were_making_some_changes_to_project_sharing_this_means_you_will_be_visible": "",
|
||||
"were_performing_maintenance": "",
|
||||
"weve_redesigned_our_editor_to_make_it_easier_to_use_and_future_ready": "",
|
||||
"weve_reduced_compile_timeout": "",
|
||||
"what_did_you_find_most_helpful": "",
|
||||
"what_do_you_need_help_with": "",
|
||||
"what_does_this_mean_for_you": "",
|
||||
|
||||
+1
-32
@@ -7,10 +7,7 @@ import { useCallback, useMemo } from 'react'
|
||||
import ErrorState from './error-state'
|
||||
import StartFreeTrialButton from '@/shared/components/start-free-trial-button'
|
||||
import getMeta from '@/utils/meta'
|
||||
import {
|
||||
populateEditorRedesignSegmentation,
|
||||
useEditorAnalytics,
|
||||
} from '@/shared/hooks/use-editor-analytics'
|
||||
import { populateEditorRedesignSegmentation } from '@/shared/hooks/use-editor-analytics'
|
||||
import {
|
||||
isNewUser,
|
||||
useIsNewEditorEnabled,
|
||||
@@ -20,7 +17,6 @@ import { getSplitTestVariant } from '@/utils/splitTestUtils'
|
||||
export const ShortCompileTimeoutErrorState = () => {
|
||||
const { t } = useTranslation()
|
||||
const { isProjectOwner } = useCompileContext()
|
||||
const { sendEvent } = useEditorAnalytics()
|
||||
const newEditor = useIsNewEditorEnabled()
|
||||
|
||||
const { compileTimeout } = getMeta('ol-compileSettings')
|
||||
@@ -37,14 +33,6 @@ export const ShortCompileTimeoutErrorState = () => {
|
||||
[isProjectOwner, compileTimeout, newEditor]
|
||||
)
|
||||
|
||||
const sendInfoClickEvent = useCallback(() => {
|
||||
sendEvent('paywall-info-click', {
|
||||
...segmentation,
|
||||
'paywall-type': 'compile-timeout',
|
||||
content: 'blog',
|
||||
})
|
||||
}, [segmentation, sendEvent])
|
||||
|
||||
const extraSearchParams = useMemo(() => {
|
||||
if (!isNewUser()) {
|
||||
return undefined
|
||||
@@ -92,25 +80,6 @@ export const ShortCompileTimeoutErrorState = () => {
|
||||
iconType="running_with_errors"
|
||||
extraContent={
|
||||
<div className="pdf-error-state-info-box">
|
||||
<p>
|
||||
<em>
|
||||
<Trans
|
||||
i18nKey="weve_reduced_compile_timeout"
|
||||
components={[
|
||||
/* eslint-disable-next-line jsx-a11y/anchor-has-content, react/jsx-key */
|
||||
<a
|
||||
aria-label={t(
|
||||
'read_more_about_free_compile_timeouts_servers'
|
||||
)}
|
||||
href="/blog/changes-to-free-compile-timeout"
|
||||
rel="noopener noreferrer"
|
||||
target="_blank"
|
||||
onClick={sendInfoClickEvent}
|
||||
/>,
|
||||
]}
|
||||
/>
|
||||
</em>
|
||||
</p>
|
||||
<ReasonsForTimeoutInfo />
|
||||
</div>
|
||||
}
|
||||
|
||||
+1
-35
@@ -7,10 +7,7 @@ import { useStopOnFirstError } from '../../../shared/hooks/use-stop-on-first-err
|
||||
import OLButton from '@/shared/components/ol/ol-button'
|
||||
import * as eventTracking from '../../../infrastructure/event-tracking'
|
||||
import getMeta from '@/utils/meta'
|
||||
import {
|
||||
populateEditorRedesignSegmentation,
|
||||
useEditorAnalytics,
|
||||
} from '@/shared/hooks/use-editor-analytics'
|
||||
import { populateEditorRedesignSegmentation } from '@/shared/hooks/use-editor-analytics'
|
||||
import {
|
||||
isNewUser,
|
||||
useIsNewEditorEnabled,
|
||||
@@ -62,7 +59,6 @@ function TimeoutUpgradePromptNew() {
|
||||
<PreventTimeoutHelpMessage
|
||||
handleEnableStopOnFirstErrorClick={handleEnableStopOnFirstErrorClick}
|
||||
lastCompileOptions={lastCompileOptions}
|
||||
segmentation={sharedSegmentation}
|
||||
/>
|
||||
)}
|
||||
</>
|
||||
@@ -151,51 +147,21 @@ const CompileTimeout = memo(function CompileTimeout({
|
||||
type PreventTimeoutHelpMessageProps = {
|
||||
lastCompileOptions: any
|
||||
handleEnableStopOnFirstErrorClick: () => void
|
||||
segmentation: eventTracking.Segmentation
|
||||
}
|
||||
|
||||
const PreventTimeoutHelpMessage = memo(function PreventTimeoutHelpMessage({
|
||||
lastCompileOptions,
|
||||
handleEnableStopOnFirstErrorClick,
|
||||
segmentation,
|
||||
}: PreventTimeoutHelpMessageProps) {
|
||||
const { t } = useTranslation()
|
||||
const { sendEvent } = useEditorAnalytics()
|
||||
const newLogsPosition = useIsNewErrorLogsPositionEnabled()
|
||||
|
||||
function sendInfoClickEvent() {
|
||||
sendEvent('paywall-info-click', {
|
||||
...segmentation,
|
||||
'paywall-type': 'compile-timeout',
|
||||
content: 'blog',
|
||||
})
|
||||
}
|
||||
|
||||
const compileTimeoutChangesBlogLink = (
|
||||
/* eslint-disable-next-line jsx-a11y/anchor-has-content, react/jsx-key */
|
||||
<a
|
||||
aria-label={t('read_more_about_free_compile_timeouts_servers')}
|
||||
href="/blog/changes-to-free-compile-timeout"
|
||||
rel="noopener noreferrer"
|
||||
target="_blank"
|
||||
onClick={sendInfoClickEvent}
|
||||
/>
|
||||
)
|
||||
|
||||
return (
|
||||
<PdfLogEntry
|
||||
autoExpand={!newLogsPosition}
|
||||
headerTitle={t('reasons_for_compile_timeouts')}
|
||||
formattedContent={
|
||||
<>
|
||||
<p>
|
||||
<em>
|
||||
<Trans
|
||||
i18nKey="weve_reduced_compile_timeout"
|
||||
components={[compileTimeoutChangesBlogLink]}
|
||||
/>
|
||||
</em>
|
||||
</p>
|
||||
<p>{t('common_causes_of_compile_timeouts_include')}:</p>
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1425,7 +1425,6 @@
|
||||
"reactivate_subscription": "Genaktivér dit abonnement",
|
||||
"read_lines_from_path": "Læste linjer fra __path__",
|
||||
"read_more": "Læs mere",
|
||||
"read_more_about_free_compile_timeouts_servers": "Læs mere om ændringer i kompileringstidsgrænser og servere",
|
||||
"read_only_token": "Skrivebeskyttet nøgle",
|
||||
"read_write_token": "Læse- og skrivenøgle",
|
||||
"ready_to_join_x": "Du er klar til at slutte dig til __inviterName__",
|
||||
|
||||
@@ -1819,7 +1819,6 @@
|
||||
"reactivating": "Reactivating",
|
||||
"read_lines_from_path": "Read lines from __path__",
|
||||
"read_more": "Read more",
|
||||
"read_more_about_free_compile_timeouts_servers": "Read more about changes to free compile timeouts and servers",
|
||||
"read_more_about_managed_users": "Read more about managed users",
|
||||
"read_only_dropbox_sync_message": "As a read-only viewer you can sync the current project version to Dropbox, but changes made in Dropbox will <0>not</0> sync back to Overleaf.",
|
||||
"read_only_token": "Read-Only Token",
|
||||
@@ -2709,7 +2708,6 @@
|
||||
"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_redesigned_our_editor_to_make_it_easier_to_use_and_future_ready": "We’ve redesigned our editor to make it easier to use and future ready. It’s now in beta, so try it out and give us your feedback.",
|
||||
"weve_reduced_compile_timeout": "We’ve recently <0>reduced the compile timeout limit</0> on our free plan, which may have affected your project.",
|
||||
"what_did_you_find_most_helpful": "What did you find most helpful?",
|
||||
"what_do_you_need": "What do you need?",
|
||||
"what_do_you_need_help_with": "What do you need help with?",
|
||||
|
||||
@@ -1687,7 +1687,6 @@
|
||||
"reactivate_subscription": "重新激活您的订阅",
|
||||
"read_lines_from_path": "从 __path__ 读取行",
|
||||
"read_more": "阅读更多",
|
||||
"read_more_about_free_compile_timeouts_servers": "阅读有关免费计划编译超时和服务器更改的更多信息",
|
||||
"read_only_dropbox_sync_message": "作为只读查看者,您可以将当前项目版本同步到 Dropbox,但在 Dropbox 中所做的更改<0>不会</0>同步回 Overleaf。",
|
||||
"read_only_token": "只读令牌",
|
||||
"read_write_token": "可读写令牌",
|
||||
|
||||
Reference in New Issue
Block a user