Skip to content

Commit 017094b

Browse files
committed
feat: added luigi client to index page
1 parent 02d9afd commit 017094b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
6868
}
6969
</style>
70+
<script src="https://cdn.jsdelivr.net/npm/@luigi-project/client@2.21.1/luigi-client.js"></script>
7071
</head>
7172
<body>
7273
<div class="center-box">
@@ -108,13 +109,14 @@ <h1>Notebook Catalog</h1>
108109
});
109110
el.addEventListener('click:result-action', (e) => {
110111
const urlObj = new URL(`${e.detail.gitpuller}`);
111-
const link = urlObj.pathname+urlObj.search
112-
window.parent.postMessage({
112+
const link = urlObj.pathname+urlObj.search;
113+
LuigiClient.linkManager().preserveQueryParams(true).navigate(link);
114+
/*window.parent.postMessage({
113115
msg: 'luigi.navigation.open',
114116
params: {
115117
link: link,
116118
},
117-
}, '*');
119+
}, '*');*/
118120
});
119121
el.addEventListener('select', (e) => {
120122
window.location.href = e.detail.link;

0 commit comments

Comments
 (0)