mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 16:53:42 -05:00
Merge pull request #3979 from overleaf/ae-exposed-settings
Remove exposed-settings.js GitOrigin-RevId: 056526b6e5fb50c4fd8058338e894eed9a3a50f4
This commit is contained in:
parent
1173c5c2da
commit
e9b93a6ef2
4 changed files with 3 additions and 10 deletions
|
@ -1,4 +1,3 @@
|
||||||
import App from '../base'
|
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(
|
const validTeXFileRegExp = new RegExp(
|
||||||
`\\.(${ExposedSettings.validRootDocExtensions.join('|')})$`,
|
`\\.(${window.ExposedSettings.validRootDocExtensions.join('|')})$`,
|
||||||
'i'
|
'i'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import React, { createContext, useContext } from 'react'
|
import React, { createContext, useContext } from 'react'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import ExposedSettings from '../../main/exposed-settings'
|
|
||||||
|
|
||||||
export const ApplicationContext = createContext()
|
export const ApplicationContext = createContext()
|
||||||
|
|
||||||
|
@ -22,7 +21,7 @@ ApplicationContext.Provider.propTypes = {
|
||||||
export function ApplicationProvider({ children }) {
|
export function ApplicationProvider({ children }) {
|
||||||
const applicationContextValue = {
|
const applicationContextValue = {
|
||||||
user: window.user,
|
user: window.user,
|
||||||
exposedSettings: ExposedSettings,
|
exposedSettings: window.ExposedSettings,
|
||||||
gitBridgePublicBaseUrl: window.gitBridgePublicBaseUrl,
|
gitBridgePublicBaseUrl: window.gitBridgePublicBaseUrl,
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in a new issue