chores: update dialog content and filename generating
This commit is contained in:
parent
14296d1f8a
commit
ec3cf65926
|
|
@ -37,9 +37,9 @@
|
|||
<form method="dialog">
|
||||
<p>The HTML that JSONCV generates is optimized for printing in an A4 letter, so it can be used to create a well-formatted PDF document.</p>
|
||||
<p>You can first click "Download HTML", then open the HTML in a browser and choose "Print" from the menu (or press ⌘+P), it will open a modal where you should find the option to save it as a PDF.</p>
|
||||
<p>For best compatibility, I recommend using Firefox rather than Chrome to complete this process.</p>
|
||||
<p>For browser selection, Chrome's PDF has a better rendering effect, while Firefox's PDF is smaller and has better support for copying text, choose according to your needs.</p>
|
||||
<button>OK</button>
|
||||
<p>Click the button below to open the print dialog for the preview.</p>
|
||||
<p>You can directly open the print dialog for the preview by clicking the button below:</p>
|
||||
<button id="fn-print-preview">Print the preview</button>
|
||||
</form>
|
||||
</dialog>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ export function getRenderData(cvData) {
|
|||
export function getCVTitle(cv) {
|
||||
let {name, version} = cv.meta || {}
|
||||
if (!name) name = cv.basics.name || 'JSONCV'
|
||||
return `${name}${version ? ' ' + version : ''}`
|
||||
return `${name}${version ? '-' + version : ''}`
|
||||
}
|
||||
|
||||
function noSchemaURL(url) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue