More code tweaks to finish off tidying up the ui.
This commit is contained in:
parent
fb595a16bf
commit
2f06dbcb58
1
.env
1
.env
@ -1,3 +1,4 @@
|
|||||||
NODE_ENV=development
|
NODE_ENV=development
|
||||||
API_URL=http://localhost:3001/api/
|
API_URL=http://localhost:3001/api/
|
||||||
EXTERNAL_LOGIN=true
|
EXTERNAL_LOGIN=true
|
||||||
|
CKEDITOR_LICENSE_KEY=GPL
|
||||||
@ -1 +1 @@
|
|||||||
window.__RUNTIME_CONFIG__ = {"NODE_ENV":"development","API_URL":"http://localhost:3001/api/","EXTERNAL_LOGIN":"true"};
|
window.__RUNTIME_CONFIG__ = {"NODE_ENV":"development","API_URL":"http://localhost:3001/api/","EXTERNAL_LOGIN":"true","CKEDITOR_LICENSE_KEY":"GPL"};
|
||||||
@ -6,9 +6,9 @@
|
|||||||
grid-gap: $gridGap;
|
grid-gap: $gridGap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.two-column-grid-1-3 {
|
.two-column-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 3fr;
|
grid-template-columns: fit-content(50%) auto;
|
||||||
grid-gap: $gridGap;
|
grid-gap: $gridGap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -3,5 +3,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.pagination {
|
.pagination {
|
||||||
padding:0;
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fit-content-width {
|
||||||
|
width: fit-content;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -16,6 +16,12 @@ const EnvPage: React.FC = () => {
|
|||||||
window.__RUNTIME_CONFIG__.EXTERNAL_LOGIN ={" "}
|
window.__RUNTIME_CONFIG__.EXTERNAL_LOGIN ={" "}
|
||||||
{window.__RUNTIME_CONFIG__.EXTERNAL_LOGIN ? "true" : "false"}
|
{window.__RUNTIME_CONFIG__.EXTERNAL_LOGIN ? "true" : "false"}
|
||||||
</p>
|
</p>
|
||||||
|
<p>
|
||||||
|
window.__RUNTIME_CONFIG__?.CKEDITOR_LICENSE_KEY ={" "}
|
||||||
|
{window.__RUNTIME_CONFIG__?.CKEDITOR_LICENSE_KEY === "GPL"
|
||||||
|
? "GPL"
|
||||||
|
: "hidden"}
|
||||||
|
</p>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@ -51,8 +51,8 @@ const MailTemplatesTab: React.FC = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Loading loaded={loaded}>
|
<Loading loaded={loaded}>
|
||||||
<div className="two-column-grid-1-3">
|
<div className="two-column-grid">
|
||||||
<div>
|
<div className="fit-content-width">
|
||||||
<ul className="mail-types">
|
<ul className="mail-types">
|
||||||
{types.map((x) => {
|
{types.map((x) => {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@ -6,6 +6,7 @@ declare global {
|
|||||||
NODE_ENV: string;
|
NODE_ENV: string;
|
||||||
API_URL: string;
|
API_URL: string;
|
||||||
EXTERNAL_LOGIN: boolean;
|
EXTERNAL_LOGIN: boolean;
|
||||||
|
CKEDITOR_LICENSE_KEY?: string;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user