Fixing build errors
This commit is contained in:
parent
6f6d3e8de5
commit
758a32a4d6
11573
package-lock.json
generated
11573
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -41,7 +41,7 @@ export default class Auth extends BaseApiService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async getIdnotJwt(autorizationCode: string | string[]): Promise<{ accessToken: string; refreshToken: string }> {
|
public async getIdnotJwt(autorizationCode: string | string[]): Promise<{ accessToken: string; refreshToken: string }> {
|
||||||
const variables = FrontendVariables.getInstance();
|
// const variables = FrontendVariables.getInstance();
|
||||||
|
|
||||||
// TODO: review
|
// TODO: review
|
||||||
const baseBackUrl = 'http://localhost:8080'//variables.BACK_API_PROTOCOL + variables.BACK_API_HOST;
|
const baseBackUrl = 'http://localhost:8080'//variables.BACK_API_PROTOCOL + variables.BACK_API_HOST;
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
import { AppRuleActions, AppRuleNames } from "@Front/Api/Entities/rule";
|
import { AppRuleActions, AppRuleNames } from "@Front/Api/Entities/rule";
|
||||||
import Notifications from "@Front/Api/LeCoffreApi/Notary/Notifications/Notifications";
|
|
||||||
import OfficeFolderAnchors from "@Front/Api/LeCoffreApi/Notary/OfficeFolderAnchors/OfficeFolderAnchors";
|
|
||||||
import Rules, { RulesMode } from "@Front/Components/Elements/Rules";
|
import Rules, { RulesMode } from "@Front/Components/Elements/Rules";
|
||||||
import Module from "@Front/Config/Module";
|
import Module from "@Front/Config/Module";
|
||||||
import Toasts from "@Front/Stores/Toasts";
|
import Toasts from "@Front/Stores/Toasts";
|
||||||
@ -29,7 +27,7 @@ export default function Navigation() {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
*/
|
*/
|
||||||
const anchors = [] as any[];
|
// const anchors = [] as any[];
|
||||||
|
|
||||||
/* TODO: review
|
/* TODO: review
|
||||||
try {
|
try {
|
||||||
|
@ -1,17 +1,16 @@
|
|||||||
import LogoIcon from "@Assets/logo_standard_neutral.svg";
|
import LogoIcon from "@Assets/logo_standard_neutral.svg";
|
||||||
import Stripe from "@Front/Api/LeCoffreApi/Admin/Stripe/Stripe";
|
// import Stripe from "@Front/Api/LeCoffreApi/Admin/Stripe/Stripe";
|
||||||
import Subscriptions from "@Front/Api/LeCoffreApi/Admin/Subscriptions/Subscriptions";
|
// import Subscriptions from "@Front/Api/LeCoffreApi/Admin/Subscriptions/Subscriptions";
|
||||||
import Module from "@Front/Config/Module";
|
import Module from "@Front/Config/Module";
|
||||||
import JwtService from "@Front/Services/JwtService/JwtService";
|
// import JwtService from "@Front/Services/JwtService/JwtService";
|
||||||
import { InformationCircleIcon, LifebuoyIcon } from "@heroicons/react/24/outline";
|
import { LifebuoyIcon } from "@heroicons/react/24/outline";
|
||||||
import Head from "next/head";
|
import Head from "next/head";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { useRouter } from "next/router";
|
import { useRouter } from "next/router";
|
||||||
import React, { useCallback, useEffect, useState } from "react";
|
import React, { useCallback, useEffect } from "react";
|
||||||
|
|
||||||
import IconButton from "../IconButton";
|
import IconButton from "../IconButton";
|
||||||
import Typography, { ETypo, ETypoColor } from "../Typography";
|
|
||||||
import BurgerMenu from "./BurgerMenu";
|
import BurgerMenu from "./BurgerMenu";
|
||||||
import classes from "./classes.module.scss";
|
import classes from "./classes.module.scss";
|
||||||
import LogoCielNatureIcon from "./logo-ciel-notaires.jpeg";
|
import LogoCielNatureIcon from "./logo-ciel-notaires.jpeg";
|
||||||
@ -32,7 +31,7 @@ export default function Header(props: IProps) {
|
|||||||
const { pathname } = router;
|
const { pathname } = router;
|
||||||
const isOnCustomerLoginPage = Module.getInstance().get().modules.pages.CustomersLogin.props.path === pathname;
|
const isOnCustomerLoginPage = Module.getInstance().get().modules.pages.CustomersLogin.props.path === pathname;
|
||||||
|
|
||||||
const [cancelAt, setCancelAt] = useState<Date | null>(null);
|
// const [cancelAt, setCancelAt] = useState<Date | null>(null);
|
||||||
|
|
||||||
const loadSubscription = useCallback(async () => {
|
const loadSubscription = useCallback(async () => {
|
||||||
/* TODO: review
|
/* TODO: review
|
||||||
@ -86,7 +85,7 @@ export default function Header(props: IProps) {
|
|||||||
)}
|
)}
|
||||||
{isOnCustomerLoginPage && <Image width={70} height={70} alt="ciel-nature" src={LogoCielNatureIcon}></Image>}
|
{isOnCustomerLoginPage && <Image width={70} height={70} alt="ciel-nature" src={LogoCielNatureIcon}></Image>}
|
||||||
</div>
|
</div>
|
||||||
{cancelAt && (
|
{/* {cancelAt && (
|
||||||
<div className={classes["subscription-line"]}>
|
<div className={classes["subscription-line"]}>
|
||||||
<InformationCircleIcon height="24" />
|
<InformationCircleIcon height="24" />
|
||||||
<Typography typo={ETypo.TEXT_MD_REGULAR} color={ETypoColor.COLOR_GENERIC_BLACK}>
|
<Typography typo={ETypo.TEXT_MD_REGULAR} color={ETypoColor.COLOR_GENERIC_BLACK}>
|
||||||
@ -94,7 +93,7 @@ export default function Header(props: IProps) {
|
|||||||
{cancelAt.toLocaleDateString()}.
|
{cancelAt.toLocaleDateString()}.
|
||||||
</Typography>
|
</Typography>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)} */}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ export default function Rules(props: IProps) {
|
|||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
const [isShowing, setIsShowing] = React.useState(false);
|
const [isShowing, setIsShowing] = React.useState(false);
|
||||||
const [hasJwt, setHasJwt] = React.useState(false);
|
// const [hasJwt, setHasJwt] = React.useState(false);
|
||||||
|
|
||||||
const getShowValue = useCallback(() => {
|
const getShowValue = useCallback(() => {
|
||||||
if (props.mode === RulesMode.NECESSARY) {
|
if (props.mode === RulesMode.NECESSARY) {
|
||||||
@ -32,7 +32,7 @@ export default function Rules(props: IProps) {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// TODO: review
|
// TODO: review
|
||||||
//if (!JwtService.getInstance().decodeJwt()) return;
|
//if (!JwtService.getInstance().decodeJwt()) return;
|
||||||
setHasJwt(true);
|
// setHasJwt(true);
|
||||||
setIsShowing(getShowValue());
|
setIsShowing(getShowValue());
|
||||||
}, [getShowValue, isShowing]);
|
}, [getShowValue, isShowing]);
|
||||||
|
|
||||||
|
@ -5,8 +5,8 @@ import Module from "@Front/Config/Module";
|
|||||||
import { IBlock } from "@Front/Components/DesignSystem/SearchBlockList/BlockList/Block";
|
import { IBlock } from "@Front/Components/DesignSystem/SearchBlockList/BlockList/Block";
|
||||||
import DefaultDashboardWithList, { IPropsDashboardWithList } from "../DefaultDashboardWithList";
|
import DefaultDashboardWithList, { IPropsDashboardWithList } from "../DefaultDashboardWithList";
|
||||||
import User from "le-coffre-resources/dist/Notary";
|
import User from "le-coffre-resources/dist/Notary";
|
||||||
import JwtService from "@Front/Services/JwtService/JwtService";
|
// import JwtService from "@Front/Services/JwtService/JwtService";
|
||||||
import Users, { IGetUsersparams } from "@Front/Api/LeCoffreApi/Admin/Users/Users";
|
// import Users, { IGetUsersparams } from "@Front/Api/LeCoffreApi/Admin/Users/Users";
|
||||||
|
|
||||||
type IProps = IPropsDashboardWithList;
|
type IProps = IPropsDashboardWithList;
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import { useRouter } from "next/router";
|
|||||||
import Module from "@Front/Config/Module";
|
import Module from "@Front/Config/Module";
|
||||||
import { IBlock } from "@Front/Components/DesignSystem/SearchBlockList/BlockList/Block";
|
import { IBlock } from "@Front/Components/DesignSystem/SearchBlockList/BlockList/Block";
|
||||||
import DefaultDashboardWithList, { IPropsDashboardWithList } from "../DefaultDashboardWithList";
|
import DefaultDashboardWithList, { IPropsDashboardWithList } from "../DefaultDashboardWithList";
|
||||||
import Offices from "@Front/Api/LeCoffreApi/SuperAdmin/Offices/Offices";
|
// import Offices from "@Front/Api/LeCoffreApi/SuperAdmin/Offices/Offices";
|
||||||
|
|
||||||
type IProps = IPropsDashboardWithList;
|
type IProps = IPropsDashboardWithList;
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import Module from "@Front/Config/Module";
|
|||||||
import { IBlock } from "@Front/Components/DesignSystem/SearchBlockList/BlockList/Block";
|
import { IBlock } from "@Front/Components/DesignSystem/SearchBlockList/BlockList/Block";
|
||||||
import DefaultDashboardWithList, { IPropsDashboardWithList } from "../DefaultDashboardWithList";
|
import DefaultDashboardWithList, { IPropsDashboardWithList } from "../DefaultDashboardWithList";
|
||||||
import { OfficeRole } from "le-coffre-resources/dist/Notary";
|
import { OfficeRole } from "le-coffre-resources/dist/Notary";
|
||||||
import OfficeRoles, { IGetRolesParams } from "@Front/Api/LeCoffreApi/Admin/OfficeRoles/OfficeRoles";
|
// import OfficeRoles, { IGetRolesParams } from "@Front/Api/LeCoffreApi/Admin/OfficeRoles/OfficeRoles";
|
||||||
|
|
||||||
import RoleService from "src/common/Api/LeCoffreApi/sdk/RoleService";
|
import RoleService from "src/common/Api/LeCoffreApi/sdk/RoleService";
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import Users, { IGetUsersparams } from "@Front/Api/LeCoffreApi/SuperAdmin/Users/Users";
|
// import Users, { IGetUsersparams } from "@Front/Api/LeCoffreApi/SuperAdmin/Users/Users";
|
||||||
import User from "le-coffre-resources/dist/SuperAdmin";
|
import User from "le-coffre-resources/dist/SuperAdmin";
|
||||||
import React, { useEffect } from "react";
|
import React, { useEffect } from "react";
|
||||||
|
|
||||||
|
@ -3,10 +3,10 @@ import Typography, { ETypo, ETypoColor } from "@Front/Components/DesignSystem/Ty
|
|||||||
import { ArrowDownTrayIcon } from "@heroicons/react/24/outline";
|
import { ArrowDownTrayIcon } from "@heroicons/react/24/outline";
|
||||||
import Customer from "le-coffre-resources/dist/Customer";
|
import Customer from "le-coffre-resources/dist/Customer";
|
||||||
import { OfficeFolder as OfficeFolderNotary } from "le-coffre-resources/dist/Notary";
|
import { OfficeFolder as OfficeFolderNotary } from "le-coffre-resources/dist/Notary";
|
||||||
import { useCallback, useEffect, useMemo, useState } from "react";
|
import { useCallback, useEffect, useMemo } from "react";
|
||||||
|
|
||||||
import classes from "./classes.module.scss";
|
import classes from "./classes.module.scss";
|
||||||
import OfficeRib from "@Front/Api/LeCoffreApi/Customer/OfficeRib/OfficeRib";
|
// import OfficeRib from "@Front/Api/LeCoffreApi/Customer/OfficeRib/OfficeRib";
|
||||||
|
|
||||||
type IProps = {
|
type IProps = {
|
||||||
folder: OfficeFolderNotary;
|
folder: OfficeFolderNotary;
|
||||||
@ -16,7 +16,8 @@ type IProps = {
|
|||||||
export default function ContactBox(props: IProps) {
|
export default function ContactBox(props: IProps) {
|
||||||
const { folder, customer } = props;
|
const { folder, customer } = props;
|
||||||
|
|
||||||
const [ribUrl, setRibUrl] = useState<string | null>(null);
|
// const [ribUrl, setRibUrl] = useState<string | null>(null);
|
||||||
|
const ribUrl = null;
|
||||||
|
|
||||||
// TODO: review
|
// TODO: review
|
||||||
const stakeholder = {
|
const stakeholder = {
|
||||||
|
@ -6,7 +6,7 @@ import Typography, { ETypo, ETypoColor } from "@Front/Components/DesignSystem/Ty
|
|||||||
import BackArrow from "@Front/Components/Elements/BackArrow";
|
import BackArrow from "@Front/Components/Elements/BackArrow";
|
||||||
import DefaultTemplate from "@Front/Components/LayoutTemplates/DefaultTemplate";
|
import DefaultTemplate from "@Front/Components/LayoutTemplates/DefaultTemplate";
|
||||||
import Module from "@Front/Config/Module";
|
import Module from "@Front/Config/Module";
|
||||||
import JwtService, { ICustomerJwtPayload } from "@Front/Services/JwtService/JwtService";
|
// import JwtService, { ICustomerJwtPayload } from "@Front/Services/JwtService/JwtService";
|
||||||
import { ArrowDownTrayIcon, EyeIcon } from "@heroicons/react/24/outline";
|
import { ArrowDownTrayIcon, EyeIcon } from "@heroicons/react/24/outline";
|
||||||
import { saveAs } from "file-saver";
|
import { saveAs } from "file-saver";
|
||||||
import JSZip from "jszip";
|
import JSZip from "jszip";
|
||||||
@ -44,10 +44,10 @@ export default function ReceivedDocuments() {
|
|||||||
const [customer, setCustomer] = useState<Customer | null>(null);
|
const [customer, setCustomer] = useState<Customer | null>(null);
|
||||||
|
|
||||||
const fetchFolderAndCustomer = useCallback(async () => {
|
const fetchFolderAndCustomer = useCallback(async () => {
|
||||||
let jwt: ICustomerJwtPayload | undefined;
|
// let jwt: ICustomerJwtPayload | undefined;
|
||||||
if (typeof document !== "undefined") {
|
// if (typeof document !== "undefined") {
|
||||||
jwt = JwtService.getInstance().decodeCustomerJwt();
|
// jwt = JwtService.getInstance().decodeCustomerJwt();
|
||||||
}
|
// }
|
||||||
|
|
||||||
// TODO: review
|
// TODO: review
|
||||||
LoaderService.getInstance().show();
|
LoaderService.getInstance().show();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user