Revert "React Git Bridge Modal (#3757)" (#3867)

This reverts commit cf883b776a9ddc7975977534dc453ece4b3ec431.

GitOrigin-RevId: 462d7282d2c706ef5395c25a335239bfac4787a6
This commit is contained in:
Miguel Serrano 2021-03-31 12:05:40 +02:00 committed by Copybot
parent 835c60071d
commit 445c850004
7 changed files with 2 additions and 75 deletions

View file

@ -1,9 +1,7 @@
{
"access_your_projects_with_git": "",
"account_settings": "",
"anyone_with_link_can_edit": "",
"anyone_with_link_can_view": "",
"ask_proj_owner_to_upgrade_for_git_bridge": "",
"ask_proj_owner_to_upgrade_for_longer_compiles": "",
"auto_compile": "",
"autocompile_disabled": "",
@ -24,13 +22,11 @@
"change_project_owner": "",
"chat": "",
"clear_cached_files": "",
"clone_with_git": "",
"close": "",
"clsi_maintenance": "",
"clsi_unavailable": "",
"code_check_failed": "",
"code_check_failed_explanation": "",
"collaborate_online_and_offline": "",
"collabs_per_proj": "",
"collapse": "",
"common": "",
@ -49,7 +45,6 @@
"creating": "",
"delete": "",
"deleting": "",
"demonstrating_git_integration": "",
"dismiss": "",
"dismiss_error_popup": "",
"done": "",
@ -72,8 +67,6 @@
"full_doc_history": "",
"full_screen": "",
"generic_something_went_wrong": "",
"get_collaborative_benefits": "",
"git_bridge_modal_description": "",
"give_feedback": "",
"go_to_error_location": "",
"headers": "",
@ -173,7 +166,6 @@
"start_free_trial": "",
"stop_compile": "",
"stop_on_validation_error": "",
"store_your_work": "",
"sure_you_want_to_delete": "",
"sync_to_dropbox": "",
"sync_to_github": "",
@ -189,13 +181,11 @@
"too_many_requests": "",
"too_recently_compiled": "",
"total_words": "",
"try_it_for_free": "",
"turn_off_link_sharing": "",
"turn_on_link_sharing": "",
"unlimited_projects": "",
"upgrade_for_longer_compiles": "",
"upload": "",
"use_your_own_machine": "",
"validation_issue_description": "",
"validation_issue_entry_description": "",
"view_all_errors": "",

View file

@ -10,18 +10,15 @@ ApplicationContext.Provider.propTypes = {
id: PropTypes.string.isRequired
}),
exposedSettings: PropTypes.shape({
appName: PropTypes.string.isRequired,
enableSubscriptions: PropTypes.bool
}),
gitBridgePublicBaseUrl: PropTypes.string.isRequired
})
})
}
export function ApplicationProvider({ children }) {
const applicationContextValue = {
user: window.user,
exposedSettings: ExposedSettings,
gitBridgePublicBaseUrl: window.gitBridgePublicBaseUrl
exposedSettings: ExposedSettings
}
return (
<ApplicationContext.Provider value={applicationContextValue}>

View file

@ -24,6 +24,4 @@ export function setupContext() {
removeListener: sinon.stub()
}
}
window.ExposedSettings = window.ExposedSettings || {}
window.ExposedSettings.gitBridgePublicBaseUrl = 'https://git.stories.com'
}

View file

@ -1,48 +0,0 @@
import React from 'react'
import { ContextRoot } from '../js/shared/context/root-context'
import { setupContext } from './fixtures/context'
import importOverleafModules from '../macros/import-overleaf-module.macro'
const [
{
import: { default: GitBridgeModal }
}
] = importOverleafModules('gitBridge')
setupContext()
export const GitBridgeUrlModal = args => <GitBridgeModal {...args} />
GitBridgeUrlModal.args = {
type: 'show_url'
}
export const CollaboratorModal = args => <GitBridgeModal {...args} />
CollaboratorModal.args = {
type: 'collaborator'
}
export const TeaserModal = args => <GitBridgeModal {...args} />
TeaserModal.args = {
type: 'teaser'
}
export default {
title: 'Modals / Git Bridge Modal',
component: GitBridgeModal,
args: {
show: true
},
argTypes: {
handleHide: { action: 'handleHide' },
startFreeTrial: { action: 'startFreeTrial' }
},
decorators: [
Story => (
<>
<ContextRoot ide={window._ide} settings={{}}>
<Story />
</ContextRoot>
</>
)
]
}

View file

@ -623,10 +623,6 @@ CodeMirror
text-align: center;
}
.teaser-refresh-label {
text-align: center;
}
.teaser-img,
.dropbox-teaser-img {
.img-responsive;

View file

@ -454,11 +454,6 @@
"tagline_student_monthly": "Great for a single term",
"all_premium_features": "All premium features",
"sync_dropbox_github": "Sync with Dropbox and GitHub",
"demonstrating_git_integration": "Demonstrating Git integration",
"collaborate_online_and_offline": "Collaborate online and offline, using your own workflow",
"get_collaborative_benefits": "Get the collaborative benefits from __appName__, even if you prefer to work offline",
"use_your_own_machine": "Use your own machine, with your own setup",
"store_your_work": "Store your work on your own infrastructure",
"track_changes": "Track changes",
"tooltip_hide_pdf": "Click to hide the PDF",
"tooltip_show_pdf": "Click to show the PDF",

View file

@ -12,7 +12,6 @@ export function renderWithEditorContext(
) {
window.user = user || window.user
window.ExposedSettings.appName = 'test'
window.gitBridgePublicBaseUrl = 'git.overleaf.test'
window.project_id = projectId != null ? projectId : window.project_id
window._ide = {
$scope: {