Parcourir la source

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

This reverts commit cf883b776a9ddc7975977534dc453ece4b3ec431.

GitOrigin-RevId: 462d7282d2c706ef5395c25a335239bfac4787a6
Miguel Serrano il y a 5 ans
Parent
commit
445c850004

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

@@ -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": "",

+ 2 - 5
services/web/frontend/js/shared/context/application-context.js

@@ -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}>

+ 0 - 2
services/web/frontend/stories/fixtures/context.js

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

+ 0 - 48
services/web/frontend/stories/git-bridge-modal.stories.js

@@ -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>
-      </>
-    )
-  ]
-}

+ 0 - 4
services/web/frontend/stylesheets/app/editor.less

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

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

@@ -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",

+ 0 - 1
services/web/test/frontend/helpers/render-with-context.js

@@ -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: {