mirror of
https://github.com/kac5a/k5_documents.git
synced 2026-03-31 06:23:55 -04:00
fix customName bug, console.logs
This commit is contained in:
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -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',
|
||||
|
||||
@@ -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
1
web/build/static/js/main.71ac857d.js.map
Normal file
1
web/build/static/js/main.71ac857d.js.map
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -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',
|
||||
|
||||
@@ -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>
|
||||
)) :
|
||||
|
||||
@@ -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)
|
||||
},
|
||||
|
||||
3
web/src/components/types.d.ts
vendored
3
web/src/components/types.d.ts
vendored
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user