feat(components): add basic components
Some checks failed
Publish package / build_and_publish (push) Failing after 21s
Some checks failed
Publish package / build_and_publish (push) Failing after 21s
This commit is contained in:
parent
ee567abf6b
commit
d4a11146aa
11 changed files with 174 additions and 4 deletions
|
|
@ -16,6 +16,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"handlebars": "^4.7.8",
|
||||
"mini-strap-core": "workspace:*"
|
||||
"mini-strap-core": "workspace:*",
|
||||
"mini-strap-components": "workspace:*"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,8 +3,12 @@ import render from "./render";
|
|||
|
||||
import layout from "./templates/form.html";
|
||||
import table from "./templates/table.html";
|
||||
import offcanvas from "mini-strap-components/OffCanvas/template";
|
||||
|
||||
document.querySelector<HTMLDivElement>("#app")!.innerHTML = `
|
||||
<aside>
|
||||
${render(offcanvas, { name: "ale" })}
|
||||
</aside>
|
||||
<main class="msp-container">
|
||||
<section>
|
||||
${render(layout, { name: "ale" })}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { resolve } from "path";
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
|
|
@ -23,4 +24,11 @@ export default defineConfig({
|
|||
},
|
||||
},
|
||||
],
|
||||
build: {
|
||||
rollupOptions: {
|
||||
input: {
|
||||
main: resolve(__dirname, "index.html"),
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue