satof3 4 месяцев назад
Родитель
Сommit
571764714b

+ 0 - 10
apps/app/src/client/components/SystemVersion.module.scss

@@ -1,10 +0,0 @@
-@use '@growi/core-styles/scss/helpers/modifier-keys';
-
-.system-version :global {
-  position: fixed;
-  right: 0.5em;
-  bottom: 0;
-  opacity: 0.6;
-
-  @include modifier-keys.modifier-key;
-}

+ 0 - 41
apps/app/src/client/components/SystemVersion.tsx

@@ -1,41 +0,0 @@
-import React, { type JSX } from 'react';
-
-import { useGrowiVersion } from '~/states/global';
-import { useShortcutsModalActions } from '~/states/ui/modal/shortcuts';
-
-import styles from './SystemVersion.module.scss';
-
-
-type Props = {
-  showShortcutsButton?: boolean,
-}
-
-const SystemVersion = (props: Props): JSX.Element => {
-  const { showShortcutsButton } = props;
-
-  const { open: openShortcutsModal } = useShortcutsModalActions();
-
-  const growiVersion = useGrowiVersion();
-  // add classes to cmd-key by OS
-  const platform = window.navigator.platform.toLowerCase();
-  const isMac = (platform.indexOf('mac') > -1);
-  const os = isMac ? 'mac' : 'win';
-
-  return (
-    <>
-      <div className={`${styles['system-version']} d-none d-md-flex d-edit-none d-print-none align-items-center`}>
-        <span>
-          <a href="https://growi.org">GROWI</a> {growiVersion}
-        </span>
-        { showShortcutsButton && (
-          <button type="button" className="btn btn-link ms-2 p-0" onClick={() => openShortcutsModal()}>
-            <span className="material-symbols-outlined">keyboard</span>&nbsp;<span className={`cmd-key ${os}`}></span>-/
-          </button>
-        ) }
-      </div>
-
-    </>
-  );
-};
-
-export default SystemVersion;

+ 0 - 5
apps/app/src/components/Layout/AdminLayout.tsx

@@ -20,11 +20,6 @@ const PageCreateModal = dynamic(
   () => import('~/client/components/PageCreateModal'),
   { ssr: false },
 );
-const SystemVersion = dynamic(
-  // biome-ignore lint/style/noRestrictedImports: no-problem dynamic import
-  () => import('~/client/components/SystemVersion'),
-  { ssr: false },
-);
 const HotkeysManager = dynamic(
   // biome-ignore lint/style/noRestrictedImports: no-problem dynamic import
   () => import('~/client/components/Hotkeys/HotkeysManager'),

+ 0 - 5
apps/app/src/components/Layout/BasicLayout.tsx

@@ -43,10 +43,6 @@ const GrowiNavbarBottom = dynamic(
     ),
   { ssr: false },
 );
-const SystemVersion = dynamic(
-  () => import('~/client/components/SystemVersion'),
-  { ssr: false },
-);
 // Page modals
 const PageCreateModal = dynamic(
   () => import('~/client/components/PageCreateModal'),
@@ -100,7 +96,6 @@ export const BasicLayout = ({ children, className }: Props): JSX.Element => {
       <ShortcutsModalLazyLoaded />
       <PageBulkExportSelectModalLazyLoaded />
       <GrantedGroupsInheritanceSelectModalLazyLoaded />
-      <SystemVersion showShortcutsButton />
     </RawLayout>
   );
 };

+ 0 - 5
apps/app/src/components/Layout/ShareLinkLayout.tsx

@@ -18,10 +18,6 @@ const GrowiNavbarBottom = dynamic(
     ),
   { ssr: false },
 );
-const SystemVersion = dynamic(
-  () => import('~/client/components/SystemVersion'),
-  { ssr: false },
-);
 // biome-ignore-end lint/style/noRestrictedImports: no-problem dynamic import
 
 type Props = {
@@ -37,7 +33,6 @@ export const ShareLinkLayout = ({ children }: Props): JSX.Element => {
 
       <ShortcutsModalLazyLoaded />
       <PageCreateModal />
-      <SystemVersion showShortcutsButton />
     </RawLayout>
   );
 };