mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 21:16:00 +00:00
export diagram to HTML
This commit is contained in:
21
packages/api/src/utility/getDiagramExport.js
Normal file
21
packages/api/src/utility/getDiagramExport.js
Normal file
@@ -0,0 +1,21 @@
|
||||
const getDiagramExport = (html,css) => {
|
||||
return `<html>
|
||||
<meta charset='utf-8'>
|
||||
|
||||
<head>
|
||||
<style>
|
||||
${css}
|
||||
</style>
|
||||
|
||||
<link rel="stylesheet" href='https://cdn.jsdelivr.net/npm/@mdi/font@6.5.95/css/materialdesignicons.css' />
|
||||
</head>
|
||||
|
||||
<body class='theme-light'>
|
||||
${html}
|
||||
</body>
|
||||
|
||||
</html>`;
|
||||
};
|
||||
|
||||
module.exports = getDiagramExport;
|
||||
|
||||
Reference in New Issue
Block a user