Compare commits

...

3 Ревизии
main ... bssp

Автор SHA1 Съобщение Дата
  MSI\2Fi 2f9d0f385c Update I18N provider преди 1 година
  MSI\2Fi 3d791a24e8 Merge branch 'main' of https://git.2fi-solutions.com/wayne.lee/tsms into bssp преди 1 година
  MSI\2Fi 29b9a36e8b Add component for bssp преди 1 година
променени са 5 файла, в които са добавени 50 реда и са изтрити 2 реда
  1. +33
    -0
      src/app/(main)/bssp/page.tsx
  2. +4
    -2
      src/app/(main)/invoice/page.tsx
  3. +7
    -0
      src/components/NavigationContent/NavigationContent.tsx
  4. +3
    -0
      src/i18n/en/bssp.json
  5. +3
    -0
      src/i18n/zh/bssp.json

+ 33
- 0
src/app/(main)/bssp/page.tsx Целия файл

@@ -0,0 +1,33 @@
import { Metadata } from "next";
import { getServerI18n } from "@/i18n";
import Add from "@mui/icons-material/Add";
import Button from "@mui/material/Button";
import Stack from "@mui/material/Stack";
import Typography from "@mui/material/Typography";
import Link from "next/link";
import { Suspense } from "react";

const Bssp: React.FC = async () => {
const { t } = await getServerI18n("bssp")

return (
<>
<Stack
direction="row"
justifyContent="space-between"
flexWrap="wrap"
rowGap={2}
>
<Typography variant="h4" marginInlineEnd={2}>
{t("Bssp")}
</Typography>

</Stack>
<Suspense>
{t("SSSSS")}
</Suspense>
</>
)
};

export default Bssp;

+ 4
- 2
src/app/(main)/invoice/page.tsx Целия файл

@@ -1,5 +1,5 @@
import { Metadata } from "next";
import { getServerI18n } from "@/i18n";
import { getServerI18n, I18nProvider } from "@/i18n";
import Add from "@mui/icons-material/Add";
import Button from "@mui/material/Button";
import Stack from "@mui/material/Stack";
@@ -36,7 +36,9 @@ const Invoice: React.FC = async () => {
</Button> */}
</Stack>
<Suspense fallback={<InvoiceSearch.Loading />}>
<InvoiceSearch />
<I18nProvider namespaces={['invoices','common']}>
<InvoiceSearch />
</I18nProvider>
</Suspense>
</>
)


+ 7
- 0
src/components/NavigationContent/NavigationContent.tsx Целия файл

@@ -36,6 +36,7 @@ import ManageAccountsIcon from "@mui/icons-material/ManageAccounts";
import EmojiEventsIcon from "@mui/icons-material/EmojiEvents";
import FileUploadIcon from '@mui/icons-material/FileUpload';
import EmailIcon from "@mui/icons-material/Email";
import TerminalIcon from '@mui/icons-material/Terminal';

import {
IMPORT_INVOICE,
@@ -109,6 +110,12 @@ const NavigationContent: React.FC<Props> = ({ abilities, username }) => {
path: "/home",
showOnMobile: true,
},
{
icon: <TerminalIcon />,
label: "BSSP",
path: "/bssp",
showOnMobile: true,
},
{
icon: <Dashboard />,
label: t("Dashboard"),


+ 3
- 0
src/i18n/en/bssp.json Целия файл

@@ -0,0 +1,3 @@
{
"SSSSS" : "AAAAAA"
}

+ 3
- 0
src/i18n/zh/bssp.json Целия файл

@@ -0,0 +1,3 @@
{
}

Зареждане…
Отказ
Запис