Skip to content

Commit

Permalink
perf: add footer app version.
Browse files Browse the repository at this point in the history
docs: fix author website url.
  • Loading branch information
riccox committed Oct 10, 2024
1 parent 20a4e3d commit 8824c0d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"repository": "https://github.com/riccox/meilisearch-ui",
"homepage": "https://github.com/riccox/meilisearch-ui#readme",
"author": "Ricco Xie <[email protected]> (https://ricco.riccox.com)",
"author": "Ricco Xie <[email protected]> (https://riccox.com)",
"dependencies": {
"@arco-design/web-react": "^2.64.0",
"@douyinfe/semi-ui": "^2.67.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer/Copyright.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const Copyright: FC = () => {
return (
<div className={`text-nowrap`}>
{t('powered_by') + ' '}
<a className={`hover:underline`} href={`https://ricco.riccox.com`} target="_blank" rel="noreferrer">
<a className={`hover:underline`} href={`https://riccox.com`} target="_blank" rel="noreferrer">
Ricco Xie
</a>
</div>
Expand Down
5 changes: 4 additions & 1 deletion src/components/Footer/Version.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { FC } from 'react';
import { useTranslation } from 'react-i18next';
import packageJson from '../../../package.json';
const appVersion = packageJson.version;

declare const __GIT_HASH__: string;

Expand All @@ -9,7 +11,8 @@ export const Version: FC = () => {

return (
<span className="text-nowrap">
{t('common:version')}: {gitHash.slice(0, 7)}
{t('common:version')}: {appVersion}
{`[${gitHash.slice(0, 7)}]`}
</span>
);
};

0 comments on commit 8824c0d

Please sign in to comment.