mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
[web] Update CE/SP footer with copyright notice (#36065)
* [web] Update CE/SP footer with copyright notice GitOrigin-RevId: b1e650e9512d8497b03ab167b29792b32053e95c
This commit is contained in:
@@ -370,6 +370,7 @@ export default async function (webRouter, privateApiRouter, publicApiRouter) {
|
||||
webRouter.use(function (req, res, next) {
|
||||
res.locals.ExposedSettings = {
|
||||
isOverleaf: Settings.overleaf != null,
|
||||
env: Settings.env,
|
||||
appName: Settings.appName,
|
||||
adminEmail: Settings.adminEmail,
|
||||
dropboxAppName:
|
||||
|
||||
@@ -7,7 +7,7 @@ footer.site-footer
|
||||
if !settings.nav.hide_powered_by
|
||||
li
|
||||
//- year of Server Pro release, static
|
||||
| © 2025
|
||||
| © 2026
|
||||
|
|
||||
a(href='https://www.overleaf.com/for/enterprises') Powered by Overleaf
|
||||
|
||||
@@ -36,3 +36,8 @@ footer.site-footer
|
||||
a(href=item.url class=item.class aria-label=item.label) !{item.text}
|
||||
else
|
||||
| !{item.text}
|
||||
if settings.env === 'server-ce'
|
||||
.row
|
||||
.col-12
|
||||
p.copyright-notice
|
||||
| Overleaf Community Edition™ is a free unsupported software that may contain vulnerabilities and used at your own risk. Use of Overleaf Community Edition™ here is not operated, supported or endorsed by Overleaf®. It has been provided "AS IS" with all liability disclaimed (to the fullest extent lawful) and all rights reserved.
|
||||
|
||||
@@ -3,7 +3,9 @@ import type {
|
||||
FooterMetadata,
|
||||
} from '@/shared/components/types/footer-metadata'
|
||||
import OLRow from '@/shared/components/ol/ol-row'
|
||||
import OLCol from '@/shared/components/ol/ol-col'
|
||||
import LanguagePicker from '@/shared/components/language-picker'
|
||||
import getMeta from '@/utils/meta.ts'
|
||||
import React from 'react'
|
||||
|
||||
function FooterItemLi({
|
||||
@@ -46,6 +48,7 @@ function ThinFooter({
|
||||
leftItems,
|
||||
rightItems,
|
||||
}: FooterMetadata) {
|
||||
const { env } = getMeta('ol-ExposedSettings')
|
||||
const showLanguagePicker = Boolean(
|
||||
subdomainLang && Object.keys(subdomainLang).length > 1
|
||||
)
|
||||
@@ -60,7 +63,7 @@ function ThinFooter({
|
||||
{showPoweredBy ? (
|
||||
<>
|
||||
<li>
|
||||
{/* year of Server Pro release, static */}© 2025{' '}
|
||||
{/* year of Server Pro release, static */}© 2026{' '}
|
||||
<a href="https://www.overleaf.com/for/enterprises">
|
||||
Powered by Overleaf
|
||||
</a>
|
||||
@@ -86,6 +89,20 @@ function ThinFooter({
|
||||
))}
|
||||
</ul>
|
||||
</OLRow>
|
||||
{env === 'server-ce' && (
|
||||
<OLRow>
|
||||
<OLCol lg={12}>
|
||||
<p className="copyright-notice">
|
||||
Overleaf Community Edition™ is a free unsupported software that
|
||||
may contain vulnerabilities and used at your own risk. Use of
|
||||
Overleaf Community Edition™ here is not operated, supported or
|
||||
endorsed by Overleaf®. It has been provided "AS IS" with all
|
||||
liability disclaimed (to the fullest extent lawful) and all
|
||||
rights reserved.
|
||||
</p>
|
||||
</OLCol>
|
||||
</OLRow>
|
||||
)}
|
||||
</div>
|
||||
</footer>
|
||||
)
|
||||
|
||||
@@ -160,6 +160,11 @@ footer.site-footer {
|
||||
font-size: var(--font-size-05);
|
||||
}
|
||||
}
|
||||
|
||||
.copyright-notice {
|
||||
font-size: var(--font-size-02);
|
||||
line-height: calc($thin-footer-height / 2);
|
||||
}
|
||||
}
|
||||
|
||||
.site-footer-content {
|
||||
|
||||
@@ -23,6 +23,7 @@ export type ExposedSettings = {
|
||||
hotjarVersion?: string
|
||||
ieeeBrandId: number
|
||||
isOverleaf: boolean
|
||||
env: 'saas' | 'server-pro' | 'server-ce'
|
||||
maxEntitiesPerProject: number
|
||||
mixpanelLabsToken?: string
|
||||
projectUploadTimeout: number
|
||||
|
||||
Reference in New Issue
Block a user