mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-28 19:41:33 +02:00
Merge pull request #3979 from overleaf/ae-exposed-settings
Remove exposed-settings.js GitOrigin-RevId: 056526b6e5fb50c4fd8058338e894eed9a3a50f4
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import App from '../base'
|
||||
import ExposedSettings from './exposed-settings'
|
||||
|
||||
App.constant('ExposedSettings', ExposedSettings)
|
||||
App.constant('ExposedSettings', window.ExposedSettings)
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
const ExposedSettings = window.ExposedSettings
|
||||
|
||||
export default ExposedSettings
|
||||
@@ -1,7 +1,5 @@
|
||||
import ExposedSettings from './exposed-settings'
|
||||
|
||||
const validTeXFileRegExp = new RegExp(
|
||||
`\\.(${ExposedSettings.validRootDocExtensions.join('|')})$`,
|
||||
`\\.(${window.ExposedSettings.validRootDocExtensions.join('|')})$`,
|
||||
'i'
|
||||
)
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import React, { createContext, useContext } from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import ExposedSettings from '../../main/exposed-settings'
|
||||
|
||||
export const ApplicationContext = createContext()
|
||||
|
||||
@@ -22,7 +21,7 @@ ApplicationContext.Provider.propTypes = {
|
||||
export function ApplicationProvider({ children }) {
|
||||
const applicationContextValue = {
|
||||
user: window.user,
|
||||
exposedSettings: ExposedSettings,
|
||||
exposedSettings: window.ExposedSettings,
|
||||
gitBridgePublicBaseUrl: window.gitBridgePublicBaseUrl,
|
||||
}
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user