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
|
||||
API_URL=http://localhost:3001/api/
|
||||
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;
|
||||
}
|
||||
|
||||
.two-column-grid-1-3 {
|
||||
.two-column-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 3fr;
|
||||
grid-template-columns: fit-content(50%) auto;
|
||||
grid-gap: $gridGap;
|
||||
}
|
||||
|
||||
|
||||
@ -1,7 +1,11 @@
|
||||
.loading {
|
||||
cursor: wait;
|
||||
cursor: wait;
|
||||
}
|
||||
|
||||
.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 ? "true" : "false"}
|
||||
</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 (
|
||||
<Loading loaded={loaded}>
|
||||
<div className="two-column-grid-1-3">
|
||||
<div>
|
||||
<div className="two-column-grid">
|
||||
<div className="fit-content-width">
|
||||
<ul className="mail-types">
|
||||
{types.map((x) => {
|
||||
return (
|
||||
|
||||
@ -1,11 +1,12 @@
|
||||
export {};
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
__RUNTIME_CONFIG__: {
|
||||
NODE_ENV: string;
|
||||
API_URL: string;
|
||||
EXTERNAL_LOGIN: boolean;
|
||||
};
|
||||
}
|
||||
interface Window {
|
||||
__RUNTIME_CONFIG__: {
|
||||
NODE_ENV: string;
|
||||
API_URL: string;
|
||||
EXTERNAL_LOGIN: boolean;
|
||||
CKEDITOR_LICENSE_KEY?: string;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user