This is an automated email from the ASF dual-hosted git repository.

mintsweet pushed a commit to branch feat-env-config
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit 8fcd51095fb0105e5f323e7c99b56fdb37ddeede
Author: mintsweet <[email protected]>
AuthorDate: Fri Jan 5 15:06:49 2024 +1300

    refactor(config-ui): remove DEVLAKE_COPYRIGHT config
---
 config-ui/env.example                  | 1 -
 config-ui/src/routes/layout/layout.tsx | 2 +-
 config-ui/src/vite-env.d.ts            | 1 -
 3 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/config-ui/env.example b/config-ui/env.example
index d91f2c16e..fe2cca924 100644
--- a/config-ui/env.example
+++ b/config-ui/env.example
@@ -1,5 +1,4 @@
 # About Basic Information
-# DEVLAKE_COPYRIGHT=
 # DEVLAKE_PRIMARY_COLOR=
 
 # All plugins are loaded by default, optional plugins can be loaded
diff --git a/config-ui/src/routes/layout/layout.tsx 
b/config-ui/src/routes/layout/layout.tsx
index 0b2423aa2..60cf20f1b 100644
--- a/config-ui/src/routes/layout/layout.tsx
+++ b/config-ui/src/routes/layout/layout.tsx
@@ -164,7 +164,7 @@ export const Layout = () => {
           <Outlet />
         </Content>
         <Footer style={{ color: '#a1a1a1', textAlign: 'center' }}>
-          {import.meta.env.DEVLAKE_COPYRIGHT ?? 'Apache 2.0 License'}
+          <span>Apache 2.0 License</span>
         </Footer>
         <CSSTransition in={!!tipsShow} unmountOnExit timeout={300} 
nodeRef={tipsRef} classNames="tips">
           <S.Tips ref={tipsRef}>
diff --git a/config-ui/src/vite-env.d.ts b/config-ui/src/vite-env.d.ts
index 09795c693..44941988d 100644
--- a/config-ui/src/vite-env.d.ts
+++ b/config-ui/src/vite-env.d.ts
@@ -20,7 +20,6 @@
 /// <reference types="vite-plugin-svgr/client" />
 
 interface ImportMetaEnv {
-  readonly DEVLAKE_COPYRIGHT: string;
   readonly DEVLAKE_PRIMARY_COLOR: string;
   readonly DEVLAKE_PLUGINS: string;
 }

Reply via email to