Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

401 franklin sidekick library #402

Merged
merged 9 commits into from
Dec 7, 2023
7 changes: 7 additions & 0 deletions tools/sidekick/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
"id": "cn-search-update",
"title": "Update Search",
"event": "cn-search-update"
},
{
"id": "library",
"title": "Library",
"environments": ["edit"],
"url": "/tools/sidekick/library.html",
nc-andreashaller marked this conversation as resolved.
Show resolved Hide resolved
"includePaths": ["**.docx**"]
}
]
}
42 changes: 42 additions & 0 deletions tools/sidekick/library.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, viewport-fit=cover"
/>
<meta name="Description" content="AEM Sidekick Library" />
<meta name="robots" content="noindex" />
<base href="/" />

<style>
html,
body {
margin: 0;
padding: 0;
font-family: sans-serif;
background-color: #ededed;
height: 100%;
}

helix-sidekick { display: none }
</style>
<title>Sidekick Library</title>
</head>

<body>
<script
type="module"
src="https://www.aem.live/tools/sidekick/library/index.js"
></script>
<script>
const library = document.createElement('sidekick-library')
library.config = {
base: '/tools/sidekick/library.json',
}

document.body.prepend(library)
</script>
</body>
</html>