fix customName bug, console.logs

This commit is contained in:
kac5a
2023-01-19 18:10:02 +01:00
parent a3ee0b2c2c
commit 770681cd60
11 changed files with 13 additions and 16 deletions

View File

@@ -1,11 +1,11 @@
{
"files": {
"main.js": "/web/build/static/js/main.cf5684f4.js",
"main.js": "/web/build/static/js/main.71ac857d.js",
"static/media/city_logo.png": "/web/build/static/media/city_logo.008b591a2d4e6445d96c.png",
"index.html": "/web/build/index.html",
"main.cf5684f4.js.map": "/web/build/static/js/main.cf5684f4.js.map"
"main.71ac857d.js.map": "/web/build/static/js/main.71ac857d.js.map"
},
"entrypoints": [
"static/js/main.cf5684f4.js"
"static/js/main.71ac857d.js"
]
}

View File

@@ -67,7 +67,7 @@ const TEXTS = {
myDocumentsTitle: 'My Documents',
issuedDocumentsTitle: 'Issued Documents',
templatesTitle: 'Templates',
customDocumentName: 'Custom Document Name',
customDocumentName: 'Document Name',
documentType: 'Type',
documentName: 'Name',
unnamed: 'Unnamed',

View File

@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><link rel="preconnect" href="https://fonts.googleapis.com"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/><link href="https://fonts.googleapis.com/css2?family=Oooh+Baby&display=swap" rel="stylesheet"/><title>K5 Documents</title><script type="text/javascript" src="/web/build/config.js"></script><link rel="stylesheet" href="/web/build/customstyle.css"/><script defer="defer" src="/web/build/static/js/main.cf5684f4.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><link rel="preconnect" href="https://fonts.googleapis.com"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/><link href="https://fonts.googleapis.com/css2?family=Oooh+Baby&display=swap" rel="stylesheet"/><title>K5 Documents</title><script type="text/javascript" src="/web/build/config.js"></script><link rel="stylesheet" href="/web/build/customstyle.css"/><script defer="defer" src="/web/build/static/js/main.71ac857d.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -67,7 +67,7 @@ const TEXTS = {
myDocumentsTitle: 'My Documents',
issuedDocumentsTitle: 'Issued Documents',
templatesTitle: 'Templates',
customDocumentName: 'Custom Document Name',
customDocumentName: 'Document Name',
documentType: 'Type',
documentName: 'Name',
unnamed: 'Unnamed',

View File

@@ -35,12 +35,12 @@ const CreateDocumentModal = ({ open, handleClose, handleTemplateClick, citizen}:
<DialogTitle>{texts.selectDocumentType}</DialogTitle>
<List sx={{ pt: 0 }}>
{citizen ? citizenTemplates.map((t) => (
<ListItem button onClick={() => handleTemplateClick(t)} key={t.id}>
<ListItem onClick={() => handleTemplateClick(t)} key={t.id}>
<ListItemText primary={t.documentName} />
</ListItem>
)) :
(availableTempaltes && availableTempaltes.length) ? availableTempaltes.map((t) => (
<ListItem button onClick={() => handleTemplateClick(t)} key={t.id}>
<ListItem onClick={() => handleTemplateClick(t)} key={t.id}>
<ListItemText primary={t.documentName} />
</ListItem>
)) :

View File

@@ -49,7 +49,7 @@ const IssuedDocuments = () => {
const columns: GridColumns<K5Document> = [
{
field: 'customName',
headerName: texts.customName,
headerName: texts.customDocumentName,
flex: 1,
renderCell: (params: GridRenderCellParams<string | undefined>) => (params.value === undefined || params.value?.length === 0 ? <div style={{ fontStyle: "italic" }}>{texts.unnamed}</div> : params.value)
},

View File

@@ -11,12 +11,9 @@ declare type Job = {
grade: number
grade_label: string
grade_name: string
grade_salary: number
label: string
name: string
isBoss: boolean
skin_female: Array<any>
skin_male: Array<any>
}
declare type Field = {