mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-17 15:03:20 +00:00
Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6761bedd51 | ||
![]() |
f002cf06e4 | ||
![]() |
9d742f9165 | ||
![]() |
68c2cac3e0 | ||
![]() |
1c0ed71df9 | ||
![]() |
1e8791fdf0 | ||
![]() |
8cfac32280 | ||
![]() |
6e7a1dcdb9 |
@@ -122,7 +122,7 @@
|
||||
) -}}
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="mt-{{ $padding.y }}">
|
||||
<div class="mt-{{ $padding.y }} w-100">
|
||||
{{- partial "inline/messages.html" (dict
|
||||
"list" $list
|
||||
"cols" $args.cols
|
||||
|
@@ -330,10 +330,8 @@
|
||||
"g-4",
|
||||
"gap-1",
|
||||
"gap-2",
|
||||
"gap-4",
|
||||
"gap-5",
|
||||
"gradient",
|
||||
"grid",
|
||||
"h-100",
|
||||
"h1",
|
||||
"h2",
|
||||
@@ -659,21 +657,16 @@
|
||||
"docs",
|
||||
"documentation",
|
||||
"dropdown-nav-0",
|
||||
"dropdown-panel-01903ba17af95824def84bc35a6e3306",
|
||||
"dropdown-panel-05e5e9179a23b45d817c9b09fc485653",
|
||||
"dropdown-panel-09f43aa502c781608dd9f2b0cb98a906",
|
||||
"dropdown-panel-0c5fed3ccca7e8ab9efc12bf85a85305",
|
||||
"dropdown-panel-273c297242d64290bec92af244e3a961",
|
||||
"dropdown-panel-35371b9cfdf9b080c6520e1934d35220",
|
||||
"dropdown-panel-46e8c254518572ba99d235e25c7f3b0f",
|
||||
"dropdown-panel-834ebde9525f9a0ef2c057535e4cb999",
|
||||
"dropdown-panel-90aa3b6d152bd4d1935dab4e75816aa2",
|
||||
"dropdown-panel-9521a860a7e5a4705af6e032020e20ad",
|
||||
"dropdown-panel-b282e4a4197cfc522046f7a07249b76b",
|
||||
"dropdown-panel-ba2723c30ccb0a23594b530ac3b34278",
|
||||
"dropdown-panel-eb5038cdf97e98e540b83f69918e30db",
|
||||
"dropdown-panel-eb7776fb2d7c366115b0f577a8c045e5",
|
||||
"dropdown-panel-f9855139b07c94a96b537f05234ef8a0",
|
||||
"dropdown-panel-0692e7e68c57d91164039f0f77cce9d8",
|
||||
"dropdown-panel-0a5cb51ed9eea57f673dc25545175b8b",
|
||||
"dropdown-panel-41fccc8aa490d4ea9d475a6d2d44be42",
|
||||
"dropdown-panel-7aa9804adc5998a7a66cd8faf656c6f9",
|
||||
"dropdown-panel-99dcbfb73d35cee704ca4ee9fb6a5e3c",
|
||||
"dropdown-panel-b06517abb515d4c22a03ca07d577f3de",
|
||||
"dropdown-panel-b434a05f655e7811ee71b4177747a1c0",
|
||||
"dropdown-panel-ba696faaa3c3f34bebc3f1da67a7c8ad",
|
||||
"dropdown-panel-d80f75f98e8a44fe4164fa76a6afd600",
|
||||
"dropdown-panel-d8bdd6a5f6d88907f9d6e8b57d921196",
|
||||
"elements-type",
|
||||
"entity-relationship-diagram",
|
||||
"example",
|
||||
@@ -691,21 +684,16 @@
|
||||
"fab-medium",
|
||||
"fab-whatsapp",
|
||||
"fab-x-twitter",
|
||||
"faq-8ef77215c152ca7f31aedf36f49b8e03",
|
||||
"faq-8ef77215c152ca7f31aedf36f49b8e03-heading-faq-8ef77215c152ca7f31aedf36f49b8e03",
|
||||
"faq-8ef77215c152ca7f31aedf36f49b8e03-item-0",
|
||||
"faq-8ef77215c152ca7f31aedf36f49b8e03-item-1",
|
||||
"faq-8ef77215c152ca7f31aedf36f49b8e03-item-2",
|
||||
"faq-bb38a13793cb37518c264c48ff8fef32",
|
||||
"faq-bb38a13793cb37518c264c48ff8fef32-heading-faq-bb38a13793cb37518c264c48ff8fef32",
|
||||
"faq-bb38a13793cb37518c264c48ff8fef32-item-0",
|
||||
"faq-bb38a13793cb37518c264c48ff8fef32-item-1",
|
||||
"faq-bb38a13793cb37518c264c48ff8fef32-item-2",
|
||||
"faq-e9d1a15ee6cb8a842073a46c06255ebd",
|
||||
"faq-e9d1a15ee6cb8a842073a46c06255ebd-heading-faq-e9d1a15ee6cb8a842073a46c06255ebd",
|
||||
"faq-e9d1a15ee6cb8a842073a46c06255ebd-item-0",
|
||||
"faq-e9d1a15ee6cb8a842073a46c06255ebd-item-1",
|
||||
"faq-e9d1a15ee6cb8a842073a46c06255ebd-item-2",
|
||||
"faq-1b8aefa895c57fc4fd5452748485b590",
|
||||
"faq-1b8aefa895c57fc4fd5452748485b590-heading-faq-1b8aefa895c57fc4fd5452748485b590",
|
||||
"faq-1b8aefa895c57fc4fd5452748485b590-item-0",
|
||||
"faq-1b8aefa895c57fc4fd5452748485b590-item-1",
|
||||
"faq-1b8aefa895c57fc4fd5452748485b590-item-2",
|
||||
"faq-f18dc8d82722290aea32dc7f4423dea5",
|
||||
"faq-f18dc8d82722290aea32dc7f4423dea5-heading-faq-f18dc8d82722290aea32dc7f4423dea5",
|
||||
"faq-f18dc8d82722290aea32dc7f4423dea5-item-0",
|
||||
"faq-f18dc8d82722290aea32dc7f4423dea5-item-1",
|
||||
"faq-f18dc8d82722290aea32dc7f4423dea5-item-2",
|
||||
"fas-1",
|
||||
"fas-2",
|
||||
"fas-3",
|
||||
@@ -800,21 +788,16 @@
|
||||
"nav-0-btn-1",
|
||||
"nav-0-btn-2",
|
||||
"nav-nav-0",
|
||||
"nav-panel-01903ba17af95824def84bc35a6e3306",
|
||||
"nav-panel-05e5e9179a23b45d817c9b09fc485653",
|
||||
"nav-panel-09f43aa502c781608dd9f2b0cb98a906",
|
||||
"nav-panel-0c5fed3ccca7e8ab9efc12bf85a85305",
|
||||
"nav-panel-273c297242d64290bec92af244e3a961",
|
||||
"nav-panel-35371b9cfdf9b080c6520e1934d35220",
|
||||
"nav-panel-46e8c254518572ba99d235e25c7f3b0f",
|
||||
"nav-panel-834ebde9525f9a0ef2c057535e4cb999",
|
||||
"nav-panel-90aa3b6d152bd4d1935dab4e75816aa2",
|
||||
"nav-panel-9521a860a7e5a4705af6e032020e20ad",
|
||||
"nav-panel-b282e4a4197cfc522046f7a07249b76b",
|
||||
"nav-panel-ba2723c30ccb0a23594b530ac3b34278",
|
||||
"nav-panel-eb5038cdf97e98e540b83f69918e30db",
|
||||
"nav-panel-eb7776fb2d7c366115b0f577a8c045e5",
|
||||
"nav-panel-f9855139b07c94a96b537f05234ef8a0",
|
||||
"nav-panel-0692e7e68c57d91164039f0f77cce9d8",
|
||||
"nav-panel-0a5cb51ed9eea57f673dc25545175b8b",
|
||||
"nav-panel-41fccc8aa490d4ea9d475a6d2d44be42",
|
||||
"nav-panel-7aa9804adc5998a7a66cd8faf656c6f9",
|
||||
"nav-panel-99dcbfb73d35cee704ca4ee9fb6a5e3c",
|
||||
"nav-panel-b06517abb515d4c22a03ca07d577f3de",
|
||||
"nav-panel-b434a05f655e7811ee71b4177747a1c0",
|
||||
"nav-panel-ba696faaa3c3f34bebc3f1da67a7c8ad",
|
||||
"nav-panel-d80f75f98e8a44fe4164fa76a6afd600",
|
||||
"nav-panel-d8bdd6a5f6d88907f9d6e8b57d921196",
|
||||
"navbar",
|
||||
"navbar-0-collapse",
|
||||
"navbar-mode",
|
||||
@@ -823,96 +806,66 @@
|
||||
"navigation",
|
||||
"notification",
|
||||
"overview",
|
||||
"panel-01903ba17af95824def84bc35a6e3306-0",
|
||||
"panel-01903ba17af95824def84bc35a6e3306-1",
|
||||
"panel-01903ba17af95824def84bc35a6e3306-2",
|
||||
"panel-01903ba17af95824def84bc35a6e3306-btn-0",
|
||||
"panel-01903ba17af95824def84bc35a6e3306-btn-1",
|
||||
"panel-01903ba17af95824def84bc35a6e3306-btn-2",
|
||||
"panel-05e5e9179a23b45d817c9b09fc485653-0",
|
||||
"panel-05e5e9179a23b45d817c9b09fc485653-1",
|
||||
"panel-05e5e9179a23b45d817c9b09fc485653-2",
|
||||
"panel-05e5e9179a23b45d817c9b09fc485653-btn-0",
|
||||
"panel-05e5e9179a23b45d817c9b09fc485653-btn-1",
|
||||
"panel-05e5e9179a23b45d817c9b09fc485653-btn-2",
|
||||
"panel-09f43aa502c781608dd9f2b0cb98a906-0",
|
||||
"panel-09f43aa502c781608dd9f2b0cb98a906-1",
|
||||
"panel-09f43aa502c781608dd9f2b0cb98a906-2",
|
||||
"panel-09f43aa502c781608dd9f2b0cb98a906-btn-0",
|
||||
"panel-09f43aa502c781608dd9f2b0cb98a906-btn-1",
|
||||
"panel-09f43aa502c781608dd9f2b0cb98a906-btn-2",
|
||||
"panel-0c5fed3ccca7e8ab9efc12bf85a85305-0",
|
||||
"panel-0c5fed3ccca7e8ab9efc12bf85a85305-1",
|
||||
"panel-0c5fed3ccca7e8ab9efc12bf85a85305-2",
|
||||
"panel-0c5fed3ccca7e8ab9efc12bf85a85305-btn-0",
|
||||
"panel-0c5fed3ccca7e8ab9efc12bf85a85305-btn-1",
|
||||
"panel-0c5fed3ccca7e8ab9efc12bf85a85305-btn-2",
|
||||
"panel-273c297242d64290bec92af244e3a961-0",
|
||||
"panel-273c297242d64290bec92af244e3a961-1",
|
||||
"panel-273c297242d64290bec92af244e3a961-2",
|
||||
"panel-273c297242d64290bec92af244e3a961-btn-0",
|
||||
"panel-273c297242d64290bec92af244e3a961-btn-1",
|
||||
"panel-273c297242d64290bec92af244e3a961-btn-2",
|
||||
"panel-35371b9cfdf9b080c6520e1934d35220-0",
|
||||
"panel-35371b9cfdf9b080c6520e1934d35220-1",
|
||||
"panel-35371b9cfdf9b080c6520e1934d35220-2",
|
||||
"panel-35371b9cfdf9b080c6520e1934d35220-btn-0",
|
||||
"panel-35371b9cfdf9b080c6520e1934d35220-btn-1",
|
||||
"panel-35371b9cfdf9b080c6520e1934d35220-btn-2",
|
||||
"panel-46e8c254518572ba99d235e25c7f3b0f-0",
|
||||
"panel-46e8c254518572ba99d235e25c7f3b0f-1",
|
||||
"panel-46e8c254518572ba99d235e25c7f3b0f-2",
|
||||
"panel-46e8c254518572ba99d235e25c7f3b0f-btn-0",
|
||||
"panel-46e8c254518572ba99d235e25c7f3b0f-btn-1",
|
||||
"panel-46e8c254518572ba99d235e25c7f3b0f-btn-2",
|
||||
"panel-834ebde9525f9a0ef2c057535e4cb999-0",
|
||||
"panel-834ebde9525f9a0ef2c057535e4cb999-1",
|
||||
"panel-834ebde9525f9a0ef2c057535e4cb999-2",
|
||||
"panel-834ebde9525f9a0ef2c057535e4cb999-btn-0",
|
||||
"panel-834ebde9525f9a0ef2c057535e4cb999-btn-1",
|
||||
"panel-834ebde9525f9a0ef2c057535e4cb999-btn-2",
|
||||
"panel-90aa3b6d152bd4d1935dab4e75816aa2-0",
|
||||
"panel-90aa3b6d152bd4d1935dab4e75816aa2-1",
|
||||
"panel-90aa3b6d152bd4d1935dab4e75816aa2-2",
|
||||
"panel-90aa3b6d152bd4d1935dab4e75816aa2-btn-0",
|
||||
"panel-90aa3b6d152bd4d1935dab4e75816aa2-btn-1",
|
||||
"panel-90aa3b6d152bd4d1935dab4e75816aa2-btn-2",
|
||||
"panel-9521a860a7e5a4705af6e032020e20ad-0",
|
||||
"panel-9521a860a7e5a4705af6e032020e20ad-1",
|
||||
"panel-9521a860a7e5a4705af6e032020e20ad-2",
|
||||
"panel-9521a860a7e5a4705af6e032020e20ad-btn-0",
|
||||
"panel-9521a860a7e5a4705af6e032020e20ad-btn-1",
|
||||
"panel-9521a860a7e5a4705af6e032020e20ad-btn-2",
|
||||
"panel-b282e4a4197cfc522046f7a07249b76b-0",
|
||||
"panel-b282e4a4197cfc522046f7a07249b76b-1",
|
||||
"panel-b282e4a4197cfc522046f7a07249b76b-2",
|
||||
"panel-b282e4a4197cfc522046f7a07249b76b-btn-0",
|
||||
"panel-b282e4a4197cfc522046f7a07249b76b-btn-1",
|
||||
"panel-b282e4a4197cfc522046f7a07249b76b-btn-2",
|
||||
"panel-ba2723c30ccb0a23594b530ac3b34278-0",
|
||||
"panel-ba2723c30ccb0a23594b530ac3b34278-1",
|
||||
"panel-ba2723c30ccb0a23594b530ac3b34278-2",
|
||||
"panel-ba2723c30ccb0a23594b530ac3b34278-btn-0",
|
||||
"panel-ba2723c30ccb0a23594b530ac3b34278-btn-1",
|
||||
"panel-ba2723c30ccb0a23594b530ac3b34278-btn-2",
|
||||
"panel-eb5038cdf97e98e540b83f69918e30db-0",
|
||||
"panel-eb5038cdf97e98e540b83f69918e30db-1",
|
||||
"panel-eb5038cdf97e98e540b83f69918e30db-2",
|
||||
"panel-eb5038cdf97e98e540b83f69918e30db-btn-0",
|
||||
"panel-eb5038cdf97e98e540b83f69918e30db-btn-1",
|
||||
"panel-eb5038cdf97e98e540b83f69918e30db-btn-2",
|
||||
"panel-eb7776fb2d7c366115b0f577a8c045e5-0",
|
||||
"panel-eb7776fb2d7c366115b0f577a8c045e5-1",
|
||||
"panel-eb7776fb2d7c366115b0f577a8c045e5-2",
|
||||
"panel-eb7776fb2d7c366115b0f577a8c045e5-btn-0",
|
||||
"panel-eb7776fb2d7c366115b0f577a8c045e5-btn-1",
|
||||
"panel-eb7776fb2d7c366115b0f577a8c045e5-btn-2",
|
||||
"panel-f9855139b07c94a96b537f05234ef8a0-0",
|
||||
"panel-f9855139b07c94a96b537f05234ef8a0-1",
|
||||
"panel-f9855139b07c94a96b537f05234ef8a0-2",
|
||||
"panel-f9855139b07c94a96b537f05234ef8a0-btn-0",
|
||||
"panel-f9855139b07c94a96b537f05234ef8a0-btn-1",
|
||||
"panel-f9855139b07c94a96b537f05234ef8a0-btn-2",
|
||||
"panel-0692e7e68c57d91164039f0f77cce9d8-0",
|
||||
"panel-0692e7e68c57d91164039f0f77cce9d8-1",
|
||||
"panel-0692e7e68c57d91164039f0f77cce9d8-2",
|
||||
"panel-0692e7e68c57d91164039f0f77cce9d8-btn-0",
|
||||
"panel-0692e7e68c57d91164039f0f77cce9d8-btn-1",
|
||||
"panel-0692e7e68c57d91164039f0f77cce9d8-btn-2",
|
||||
"panel-0a5cb51ed9eea57f673dc25545175b8b-0",
|
||||
"panel-0a5cb51ed9eea57f673dc25545175b8b-1",
|
||||
"panel-0a5cb51ed9eea57f673dc25545175b8b-2",
|
||||
"panel-0a5cb51ed9eea57f673dc25545175b8b-btn-0",
|
||||
"panel-0a5cb51ed9eea57f673dc25545175b8b-btn-1",
|
||||
"panel-0a5cb51ed9eea57f673dc25545175b8b-btn-2",
|
||||
"panel-41fccc8aa490d4ea9d475a6d2d44be42-0",
|
||||
"panel-41fccc8aa490d4ea9d475a6d2d44be42-1",
|
||||
"panel-41fccc8aa490d4ea9d475a6d2d44be42-2",
|
||||
"panel-41fccc8aa490d4ea9d475a6d2d44be42-btn-0",
|
||||
"panel-41fccc8aa490d4ea9d475a6d2d44be42-btn-1",
|
||||
"panel-41fccc8aa490d4ea9d475a6d2d44be42-btn-2",
|
||||
"panel-7aa9804adc5998a7a66cd8faf656c6f9-0",
|
||||
"panel-7aa9804adc5998a7a66cd8faf656c6f9-1",
|
||||
"panel-7aa9804adc5998a7a66cd8faf656c6f9-2",
|
||||
"panel-7aa9804adc5998a7a66cd8faf656c6f9-btn-0",
|
||||
"panel-7aa9804adc5998a7a66cd8faf656c6f9-btn-1",
|
||||
"panel-7aa9804adc5998a7a66cd8faf656c6f9-btn-2",
|
||||
"panel-99dcbfb73d35cee704ca4ee9fb6a5e3c-0",
|
||||
"panel-99dcbfb73d35cee704ca4ee9fb6a5e3c-1",
|
||||
"panel-99dcbfb73d35cee704ca4ee9fb6a5e3c-2",
|
||||
"panel-99dcbfb73d35cee704ca4ee9fb6a5e3c-btn-0",
|
||||
"panel-99dcbfb73d35cee704ca4ee9fb6a5e3c-btn-1",
|
||||
"panel-99dcbfb73d35cee704ca4ee9fb6a5e3c-btn-2",
|
||||
"panel-b06517abb515d4c22a03ca07d577f3de-0",
|
||||
"panel-b06517abb515d4c22a03ca07d577f3de-1",
|
||||
"panel-b06517abb515d4c22a03ca07d577f3de-2",
|
||||
"panel-b06517abb515d4c22a03ca07d577f3de-btn-0",
|
||||
"panel-b06517abb515d4c22a03ca07d577f3de-btn-1",
|
||||
"panel-b06517abb515d4c22a03ca07d577f3de-btn-2",
|
||||
"panel-b434a05f655e7811ee71b4177747a1c0-0",
|
||||
"panel-b434a05f655e7811ee71b4177747a1c0-1",
|
||||
"panel-b434a05f655e7811ee71b4177747a1c0-2",
|
||||
"panel-b434a05f655e7811ee71b4177747a1c0-btn-0",
|
||||
"panel-b434a05f655e7811ee71b4177747a1c0-btn-1",
|
||||
"panel-b434a05f655e7811ee71b4177747a1c0-btn-2",
|
||||
"panel-ba696faaa3c3f34bebc3f1da67a7c8ad-0",
|
||||
"panel-ba696faaa3c3f34bebc3f1da67a7c8ad-1",
|
||||
"panel-ba696faaa3c3f34bebc3f1da67a7c8ad-2",
|
||||
"panel-ba696faaa3c3f34bebc3f1da67a7c8ad-btn-0",
|
||||
"panel-ba696faaa3c3f34bebc3f1da67a7c8ad-btn-1",
|
||||
"panel-ba696faaa3c3f34bebc3f1da67a7c8ad-btn-2",
|
||||
"panel-d80f75f98e8a44fe4164fa76a6afd600-0",
|
||||
"panel-d80f75f98e8a44fe4164fa76a6afd600-1",
|
||||
"panel-d80f75f98e8a44fe4164fa76a6afd600-2",
|
||||
"panel-d80f75f98e8a44fe4164fa76a6afd600-btn-0",
|
||||
"panel-d80f75f98e8a44fe4164fa76a6afd600-btn-1",
|
||||
"panel-d80f75f98e8a44fe4164fa76a6afd600-btn-2",
|
||||
"panel-d8bdd6a5f6d88907f9d6e8b57d921196-0",
|
||||
"panel-d8bdd6a5f6d88907f9d6e8b57d921196-1",
|
||||
"panel-d8bdd6a5f6d88907f9d6e8b57d921196-2",
|
||||
"panel-d8bdd6a5f6d88907f9d6e8b57d921196-btn-0",
|
||||
"panel-d8bdd6a5f6d88907f9d6e8b57d921196-btn-1",
|
||||
"panel-d8bdd6a5f6d88907f9d6e8b57d921196-btn-2",
|
||||
"persona",
|
||||
"pie-chart",
|
||||
"pills",
|
||||
|
6
go.mod
6
go.mod
@@ -3,7 +3,7 @@ module github.com/gethinode/hinode
|
||||
go 1.19
|
||||
|
||||
require (
|
||||
github.com/airbnb/lottie-web v5.12.2+incompatible // indirect
|
||||
github.com/airbnb/lottie-web v5.13.0+incompatible // indirect
|
||||
github.com/cloudcannon/bookshop/hugo/v3 v3.16.4 // indirect
|
||||
github.com/gethinode/mod-bootstrap v1.3.4 // indirect
|
||||
github.com/gethinode/mod-csp v1.0.8 // indirect
|
||||
@@ -15,7 +15,7 @@ require (
|
||||
github.com/gethinode/mod-lottie v1.6.1 // indirect
|
||||
github.com/gethinode/mod-mermaid/v3 v3.0.1 // indirect
|
||||
github.com/gethinode/mod-simple-datatables/v2 v2.0.2 // indirect
|
||||
github.com/gethinode/mod-utils/v4 v4.13.0 // indirect
|
||||
github.com/nextapps-de/flexsearch v0.0.0-20250606060143-c28f52c09b7a // indirect
|
||||
github.com/gethinode/mod-utils/v4 v4.14.0 // indirect
|
||||
github.com/nextapps-de/flexsearch v0.0.0-20250901122457-99cddafcdc64 // indirect
|
||||
github.com/twbs/bootstrap v5.3.8+incompatible // indirect
|
||||
)
|
||||
|
6
go.sum
6
go.sum
@@ -1,5 +1,7 @@
|
||||
github.com/airbnb/lottie-web v5.12.2+incompatible h1:Ldogtlhiucf7mMsgisyxSBY0qunV44+lpa9Icy2KoQc=
|
||||
github.com/airbnb/lottie-web v5.12.2+incompatible/go.mod h1:nTss557UK9FGnp8QYlCMO29tjUHwbdAHG/DprbGfHGE=
|
||||
github.com/airbnb/lottie-web v5.13.0+incompatible h1:plBV5Uq/F1kK0EC61Hr0cBGReI9OgUfd/pp0baoDX8o=
|
||||
github.com/airbnb/lottie-web v5.13.0+incompatible/go.mod h1:nTss557UK9FGnp8QYlCMO29tjUHwbdAHG/DprbGfHGE=
|
||||
github.com/cloudcannon/bookshop/hugo/v3 v3.14.0 h1:QNLtpTINvXkxAG/RQVpdXzxtFjG6YAmnBr7qbOD5GF8=
|
||||
github.com/cloudcannon/bookshop/hugo/v3 v3.14.0/go.mod h1:s7mIonDhtsLcn10ZKuVXyqd6BDHI8vT1WQhZw8rPfY8=
|
||||
github.com/cloudcannon/bookshop/hugo/v3 v3.16.0 h1:Fb76ABHqTyPl9Z2QqYJCwiMBKPyShOe1EnZxXzW3RVo=
|
||||
@@ -502,6 +504,8 @@ github.com/gethinode/mod-utils/v4 v4.12.0 h1:5sSfYIxZCeQbXLoZdS//rl6thwLwtXuvM0u
|
||||
github.com/gethinode/mod-utils/v4 v4.12.0/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
|
||||
github.com/gethinode/mod-utils/v4 v4.13.0 h1:VKAA+wKy4saayXfgJuVBRfhNVWQWmxOjO8LSpQCvLfw=
|
||||
github.com/gethinode/mod-utils/v4 v4.13.0/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
|
||||
github.com/gethinode/mod-utils/v4 v4.14.0 h1:CF5dy+HWg22L306bWVhClWK9b1NVinEqtb4Qr2vcl9A=
|
||||
github.com/gethinode/mod-utils/v4 v4.14.0/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
|
||||
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3 h1:H/qVR5O4BXjRjD+5PZB+r4ug2BSJ2Of4RtwOntd+OKo=
|
||||
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
|
||||
github.com/nextapps-de/flexsearch v0.0.0-20240108021025-afd75f742f22 h1:re7L8FxbXQpnX8BgzkdUnDpsUmloGNyLmiy2ZCln8pg=
|
||||
@@ -524,6 +528,8 @@ github.com/nextapps-de/flexsearch v0.0.0-20250523180618-1f75f5f9d9b6 h1:vUlZHDX+
|
||||
github.com/nextapps-de/flexsearch v0.0.0-20250523180618-1f75f5f9d9b6/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
|
||||
github.com/nextapps-de/flexsearch v0.0.0-20250606060143-c28f52c09b7a h1:CF/f62ufhBzNvAgoC6JhuqQxtqz0yDj3IIXYKl+A650=
|
||||
github.com/nextapps-de/flexsearch v0.0.0-20250606060143-c28f52c09b7a/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
|
||||
github.com/nextapps-de/flexsearch v0.0.0-20250901122457-99cddafcdc64 h1:8gn/7ZfERwknYk63DskhEfkwwpoXubGrzLv5LuSq6hc=
|
||||
github.com/nextapps-de/flexsearch v0.0.0-20250901122457-99cddafcdc64/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
|
||||
github.com/twbs/bootstrap v5.3.2+incompatible h1:tuiO5acc6xnZUR77Sbi5aKWXxjYxbmsSbJwYrhAKoQQ=
|
||||
github.com/twbs/bootstrap v5.3.2+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
|
||||
github.com/twbs/bootstrap v5.3.3+incompatible h1:goFoqinzdHfkeegpFP7pvhbd0g+A3O2hbU3XCjuNrEQ=
|
||||
|
238
layouts/_partials/utilities/InitArgs.html~~~
Normal file
238
layouts/_partials/utilities/InitArgs.html~~~
Normal file
@@ -0,0 +1,238 @@
|
||||
<!--
|
||||
Copyright © 2024 - 2025 The Hinode Team / Mark Dumay. All rights reserved.
|
||||
Use of this source code is governed by The MIT License (MIT) that can be found in the LICENSE file.
|
||||
Visit gethinode.com/license for more details.
|
||||
-->
|
||||
|
||||
{{ define "_partials/inline/default.html" }}
|
||||
{{ $config := split .config "." }}
|
||||
{{ $default := .default }}
|
||||
{{ return or (index site.Params $config) $default }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "_partials/inline/alias-type.html" }}
|
||||
{{ $type := .type }}
|
||||
{{ $custom := .types }}
|
||||
{{ $references := .references }}
|
||||
{{ $aliases := dict "path" "string" "select" "string" "url" "string" "dict" "[]map[string]interface {}" "slice" "[]interface {}" }}
|
||||
{{ $reserved := slice "bool" "int" "int64" "float" "float64" "string" "dict" "slice" }}
|
||||
|
||||
{{ $input := slice }}
|
||||
{{ if not $type }}
|
||||
{{ errorf "expected type argument: %s" page.File }}
|
||||
{{ else }}
|
||||
{{ $input = slice | append $type }}
|
||||
{{ end }}
|
||||
|
||||
{{ $extra := slice }}
|
||||
{{ range $element := $input }}
|
||||
{{ $alias := index $aliases $element }}
|
||||
{{ if $alias }}{{ $extra = $extra | append slice $alias }}{{ end }}
|
||||
{{ if not (in $reserved $element) }}
|
||||
{{ $def := index $references $element }}
|
||||
{{ if $def }}
|
||||
{{ $extra = $extra | append slice $def._reflect }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if $extra }}{{ $input = $input | append $extra }}{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ return $input }}
|
||||
{{ end }}
|
||||
|
||||
{{/* Initialize arguments */}}
|
||||
{{ $structure := .structure }}
|
||||
{{ $bookshop := .bookshop }}
|
||||
{{ $child := .child }}
|
||||
{{ $named := .named | default true }}
|
||||
{{ $args := .args | default dict }}
|
||||
{{ $group := .group }}
|
||||
|
||||
{{/* Initialize local variables */}}
|
||||
{{ $error := false }}
|
||||
{{ $errmsg := slice }}
|
||||
{{ $warnmsg := slice }}
|
||||
{{ $params := dict }}
|
||||
{{ $types := dict }}
|
||||
{{ $default := slice }}
|
||||
|
||||
{{/* Validate partial arguments */}}
|
||||
{{ if and (not $structure) (not $bookshop) }}
|
||||
{{- $errmsg = $errmsg | append (printf "partial [utilities/InitArgs.html] - Missing value for param 'structure' or 'bookshop'") -}}
|
||||
{{ $error = true }}
|
||||
{{ end }}
|
||||
|
||||
{{/* Initialize type structure */}}
|
||||
{{ if hasPrefix $structure "bookshop-" }}{{ $bookshop = strings.TrimPrefix "bookshop-" $structure }}{{ $structure = "" }}{{ end }}
|
||||
{{ if not $error }}
|
||||
{{ $types = partial "utilities/InitTypes.html" (dict "structure" $structure "bookshop" $bookshop "child" $child ) }}
|
||||
{{ if $types.errmsg }}{{ $errmsg = $errmsg | append $types.errmsg }}{{ $error = $types.err }}{{ end }}
|
||||
{{ if $types.warnmsg }}{{ $warnmsg = $warnmsg | append $types.warnmsg }}{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ $namedargs := dict }}
|
||||
{{ if not $named }}
|
||||
{{ range $index, $val := $args }}
|
||||
{{ $found := false }}
|
||||
{{ range $k, $v := $types.types }}
|
||||
{{ if eq $index $v.position }}
|
||||
{{ $namedargs = merge $namedargs (dict $k $val) }}
|
||||
{{ $found = true }}
|
||||
{{ break }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if not $found }}
|
||||
{{ $errmsg = $errmsg | append (printf "[%s] unsupported argument at index %d (value: '%s')" (or $structure $bookshop) $index $val) }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ $namedargs = $args }}
|
||||
{{ end }}
|
||||
|
||||
{{/* Validate passed arguments and initialize their default value when applicable */}}
|
||||
{{ if not $error }}
|
||||
{{ range $key, $val := $namedargs }}
|
||||
{{ $def := index $types.types $key }}
|
||||
|
||||
{{ if not $def }}
|
||||
{{ if eq (printf "%T" $key) "string" }}
|
||||
{{ $errmsg = $errmsg | append (printf "[%s] unsupported argument '%s'" (or $structure $bookshop) $key) }}
|
||||
{{ else if eq (printf "%T" $key) "int" }}
|
||||
{{ $errmsg = $errmsg | append (printf "[%s] unsupported argument at index %d (value: '%s')" (or $structure $bookshop) $key $val) }}
|
||||
{{ else }}
|
||||
{{ $errmsg = $errmsg | append (printf "[%s] unsupported argument value '%v'" (or $structure $bookshop) $val) }}
|
||||
{{ end }}
|
||||
{{ $error = true }}
|
||||
{{ break }}
|
||||
{{ else }}
|
||||
{{/* initialize default value */}}
|
||||
{{ if and (eq $val nil) (or $def.config $def.default) }}
|
||||
{{ $val = (partial "inline/default.html" (dict "config" $def.config "default" $def.default)) }}
|
||||
{{ $default = $default | append $key }}
|
||||
{{ end }}
|
||||
|
||||
{{/* validate type */}}
|
||||
{{ $expected := partial "inline/alias-type.html" (dict "type" $def.type "types" $types.types "references" $types.udt) }}
|
||||
{{ $actual := printf "%T" $val }}
|
||||
|
||||
{{/* cast supported types from/to string */}}
|
||||
{{ if and (in $expected "bool") (in (slice "true" "false") $val) }}
|
||||
{{ $actual = "bool" }}
|
||||
{{ $val = cond (eq $val "true") true false }}
|
||||
{{ else if and (in $expected "int") (findRE `^-?\d+$` $val) }}
|
||||
{{ $actual = "int" }}
|
||||
{{ $val = int $val }}
|
||||
{{ else if and (in $expected "float") (findRE `^(?:[1-9]\d*|0)?(?:\.\d+)?$` $val) }}
|
||||
{{ $actual = "float" }}
|
||||
{{ $val = float $val }}
|
||||
{{ else if and (in $expected "string") (in (slice "bool" "int" "int64" "float" "float64") $actual) }}
|
||||
{{ $actual = "string" }}
|
||||
{{ $val = string $val }}
|
||||
{{ end }}
|
||||
|
||||
{{ if and $val (not (in $expected $actual)) }}
|
||||
{{ $errmsg = $errmsg | append (printf "[%s] argument '%s': expected type '%s', got '%s' with value '%v'" (or $structure $bookshop) (string $key) (delimit $expected ", ") $actual $val) }}
|
||||
{{ $error = true }}
|
||||
{{ break }}
|
||||
{{ end }}
|
||||
|
||||
{{/* validate permitted values */}}
|
||||
{{ if and (reflect.IsMap $def.options) $def.options.values (eq $actual "string") }}
|
||||
{{ if and $val (not (in $def.options.values $val)) }}
|
||||
{{ $errmsg = $errmsg | append (printf "[%s] argument '%s': unexpected value '%s'" (or $structure $bookshop) (string $key) $val) }}
|
||||
{{ $error = true }}
|
||||
{{ break }}
|
||||
{{ end }}
|
||||
{{ else if and (reflect.IsMap $def.options) (or $def.options.min $def.options.max) (in (slice "int" "float" "float64") $actual) }}
|
||||
{{ if or
|
||||
(and $def.options.min (lt $val $def.options.min))
|
||||
(and $def.options.max (gt $val $def.options.max))
|
||||
}}
|
||||
{{ $min := (string (or $def.options.min "-")) }}
|
||||
{{ $max := (string (or $def.options.max "-")) }}
|
||||
{{ $errmsg = $errmsg | append (printf "[%s] argument '%s': value '%s' out of range [%s, %s]" (or $structure $bookshop) (string $key) (string $val) $min $max) }}
|
||||
{{ $error = true }}
|
||||
{{ break }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{/* validate if argument is deprecated */}}
|
||||
{{ with $def.deprecated }}
|
||||
{{ $warn := printf "[%s] argument '%s': deprecated in v%s" (or $structure $bookshop) $key (strings.TrimPrefix "v" .) }}
|
||||
{{ with $def.alternative }}
|
||||
{{ $warn = printf "%s, use '%s' instead" $warn . }}
|
||||
{{ end }}
|
||||
{{ $warnmsg = $warnmsg | append $warn }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{/* append the argument to the return set */}}
|
||||
{{ if not $error }}
|
||||
{{ $params = merge $params (dict $key $val) }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if not $error }}
|
||||
{{/* validate required arguments */}}
|
||||
{{ $max := len $namedargs }}
|
||||
{{ $expected := 0 }}
|
||||
{{ range $key, $val := $types.types }}
|
||||
{{ $skip := false }}
|
||||
{{ $groups := slice | append $val.group }}
|
||||
{{ if and $group $val.group }}
|
||||
{{ $skip = not (in $groups $group )}}
|
||||
{{ end }}
|
||||
|
||||
{{ if and (not $skip) (not $val.optional) }}
|
||||
{{ if not (isset $namedargs $key) }}
|
||||
{{ $errmsg = $errmsg | append (printf "[%s] argument '%s': expected value" (or $structure $bookshop) $key) }}
|
||||
{{ $error = true }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if lt $max $expected }}
|
||||
{{ $errmsg = $errmsg | append (printf "[%s] expected '%d' args, got '%d'" (or $structure $bookshop) $expected $max) }}
|
||||
{{ $error = true }}
|
||||
{{ end }}
|
||||
|
||||
{{/* add missing keys with default values (nested one level deep) or empty slice */}}
|
||||
{{ range $key, $val := $types.types }}
|
||||
{{ if (not (isset $params $key)) }}
|
||||
{{ $udt := index $types.udt $key }}
|
||||
{{ if or (isset $val "config") (isset $val "default") }}
|
||||
{{ $params = merge $params (dict
|
||||
$key (partial "inline/default.html" (dict "config" $val.config "default" $val.default))
|
||||
) }}
|
||||
{{ $default = $default | append $key }}
|
||||
{{ else if $udt }}
|
||||
{{ if eq $udt._reflect "[]interface {}" }}
|
||||
{{ $params = merge $params (dict $key slice) }}
|
||||
{{ else }}
|
||||
{{ $nested := dict }}
|
||||
{{ range $k, $v := $udt }}
|
||||
{{ if and (reflect.IsMap $v) (or $v.config $v.default) }}
|
||||
{{ $nested = merge $nested (dict
|
||||
$k (partial "inline/default.html" (dict "config" $val.config "default" $val.default))
|
||||
)}}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ $params = merge $params (dict $key $nested) }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{/* add the key-value pair using camel case to support chaining of the identifier */}}
|
||||
{{/* see https://gohugo.io/configuration/params/#article */}}
|
||||
{{ range $key, $val := $params }}
|
||||
{{ if strings.Contains $key "-" }}
|
||||
{{ $camelKey := partial "utilities/camelize.html" $key }}
|
||||
{{ $params = merge $params (dict $camelKey $val) }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ $params = merge $params (dict "err" $error "errmsg" $errmsg "warnmsg" $warnmsg "default" $default) }}
|
||||
{{ return $params }}
|
144
layouts/_partials/utilities/InitTypes.html~
Normal file
144
layouts/_partials/utilities/InitTypes.html~
Normal file
@@ -0,0 +1,144 @@
|
||||
<!--
|
||||
Copyright © 2025 The Hinode Team / Mark Dumay. All rights reserved.
|
||||
Use of this source code is governed by The MIT License (MIT) that can be found in the LICENSE file.
|
||||
Visit gethinode.com/license for more details.
|
||||
-->
|
||||
|
||||
{{/* Inline partial to retrieve the type definition of the provided key (without recursion) */}}
|
||||
{{ define "_partials/inline/type-definition.html" }}
|
||||
{{ $key := .key }}
|
||||
{{ $val := .val }}
|
||||
{{ $arguments := .arguments }}
|
||||
{{ $types := .types }}
|
||||
|
||||
{{ $def := index $arguments $key }}
|
||||
{{ $udt := "" }}
|
||||
{{ $reflect := "" }}
|
||||
{{ $reserved := slice "bool" "int" "int64" "float" "float64" "string" "dict" "slice" }}
|
||||
{{ $errorMsg := slice }}
|
||||
|
||||
{{ if and $def $def.type }}
|
||||
{{ $aliases := slice | append $def.type }}
|
||||
{{ range $alias := $aliases }}
|
||||
{{ with index $types $alias }}
|
||||
<!-- Reduce child elements to slice of argument names -->
|
||||
{{ $args := slice }}
|
||||
{{ $reflect = printf "%T" . }}
|
||||
{{ if reflect.IsMap . }}
|
||||
{{ range $k, $_ := . }}
|
||||
{{ $args = $args | append $k }}
|
||||
{{ end }}
|
||||
{{ else if reflect.IsSlice . }}
|
||||
{{ with index . 0 }}
|
||||
{{ range $k, $_ := . }}
|
||||
{{ $args = $args | append $k }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<!-- Retrieve type definition for each argument -->
|
||||
{{ $definitions := dict }}
|
||||
{{ $definitions := merge $definitions (dict "_reflect" $reflect) }}
|
||||
{{ range $args }}
|
||||
{{ $type := partial "inline/type-definition.html" (dict "key" . "arguments" $arguments "types" $types) }}
|
||||
{{ if and $type $type.definition }}
|
||||
{{ $definitions = merge $definitions (dict . $type.definition) }}
|
||||
{{ else }}
|
||||
{{- $errorMsg = $errorMsg | append (printf "partial [utilities/InitTypes.html] - Missing type for '%s.%s'" $key . ) -}}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ $udt = dict $alias $definitions }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ $merged := or $def dict }}
|
||||
{{ if reflect.IsMap $val }}{{ $merged = merge $merged $val }}{{ end }}
|
||||
{{ if not $merged.type }}
|
||||
{{- $errorMsg = $errorMsg | append (printf "partial [utilities/InitTypes.html] - Missing type for '%s'" $key ) -}}
|
||||
{{ end }}
|
||||
|
||||
{{ return (dict "definition" $merged "udt" $udt "errmsg" $errorMsg) }}
|
||||
{{ end }}
|
||||
|
||||
{{/* Initalize arguments and local variables */}}
|
||||
{{ $error := false }}
|
||||
{{ $errmsg := slice }}
|
||||
{{ $warnmsg := slice }}
|
||||
{{ $params := dict }}
|
||||
{{ $definitions := dict }}
|
||||
{{ $udt := dict }}
|
||||
|
||||
{{ $structure := .structure }}
|
||||
{{ $bookshop := .bookshop }}
|
||||
{{ $group := .group }}
|
||||
{{ $child := .child }}
|
||||
|
||||
{{ $level := .level | default 0 }}
|
||||
|
||||
{{ if gt $level 5 }}
|
||||
{{ errorf "recursion detected: %s / %s" $structure $bookshop }}
|
||||
{{ return }}
|
||||
{{ end }}
|
||||
|
||||
{{ if and (not $structure) (not $bookshop) }}
|
||||
{{- $errmsg = $errmsg | append (printf "partial [utilities/InitTypes.html] - Missing value for param 'structure' or 'bookshop'") -}}
|
||||
{{ $error = true }}
|
||||
{{ end }}
|
||||
|
||||
{{/* Initalize the type structure */}}
|
||||
{{ if not $error }}
|
||||
{{ $args := dict }}
|
||||
{{ $arguments := index (index site.Data.structures "_arguments") "arguments" }}
|
||||
{{ $types := index (index site.Data.structures "_types") "types" }}
|
||||
|
||||
{{/* Initalize the regular or bookshop argument structure */}}
|
||||
{{ if $structure }}
|
||||
{{ if index site.Data.structures $structure}}
|
||||
{{ $args = (index site.Data.structures $structure).arguments | default dict }}
|
||||
{{ else }}
|
||||
{{ $args = (index $types $structure) | default dict }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ $args = index (index (index site.Data.structures.components $bookshop) (printf "%s.bookshop" $bookshop)) "blueprint" | default dict }}
|
||||
{{ $args = merge $args (dict "_bookshop_name" nil "_ordinal" nil "id" nil) }}
|
||||
{{ end }}
|
||||
|
||||
{{/* Merge any child arguments */}}
|
||||
{{ if $child }}
|
||||
{{ $extra_def := (index site.Data.structures $child).arguments }}
|
||||
{{ if not $extra_def }}
|
||||
{{- $errmsg = $errmsg | append (printf "partial [utilities/InitTypes.html] - Missing definitions: %s" $child) -}}
|
||||
{{ $error = true }}
|
||||
{{ else }}
|
||||
{{ range $key, $val := $extra_def }}
|
||||
{{ if and $val $val.parent }}
|
||||
{{ $newval := dict }}
|
||||
{{ range $k, $v := $val }}
|
||||
{{ if ne $k "default" }}{{ $newval = merge $newval (dict $k $v) }}{{ end }}
|
||||
{{ end}}
|
||||
{{ $args = merge $args (dict $key $newval) }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{/* Initialize the arguments and their type definitions recursively */}}
|
||||
{{ range $key, $v := $args }}
|
||||
{{ $type := partial "inline/type-definition.html" (dict "key" $key "val" $v "args" $args "arguments" $arguments "types" $types "structure" $structure) }}
|
||||
{{ $errmsg = $errmsg | append $type.errmsg }}
|
||||
{{ if and $type $type.definition $type.definition.type }}
|
||||
{{ $definitions = merge $definitions (dict $key $type.definition) }}
|
||||
{{ with $type.udt }}
|
||||
{{ $udt = merge $udt . }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{- $errmsg = $errmsg | append (printf "partial [utilities/InitTypes.html] - Missing type for '%s' in '%s'" $key (or $structure $bookshop) ) -}}
|
||||
{{ $error = true }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ $params = merge $params (dict "types" $definitions "udt" $udt "err" $error "errmsg" $errmsg "warnmsg" $warnmsg) }}
|
||||
{{ return $params }}
|
Reference in New Issue
Block a user