Skip to content

Commit

Permalink
Use npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
thomiceli committed Jan 26, 2025
1 parent 86db419 commit 0e903c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 3 additions & 0 deletions public/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ import 'dayjs/locale/pt';
import 'dayjs/locale/ru';
import 'dayjs/locale/zh';
import localizedFormat from 'dayjs/plugin/localizedFormat';
import jdenticon from 'jdenticon/standalone';

dayjs.extend(relativeTime);
dayjs.extend(localizedFormat);
dayjs.locale(window.opengist_locale || 'en');

jdenticon.update("[data-jdenticon-value]")

document.addEventListener('DOMContentLoaded', () => {
const themeMenu = document.getElementById('theme-menu')!;

Expand Down
6 changes: 0 additions & 6 deletions templates/base/base_footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@
</div>
{{ end }}
</div>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jdenticon.min.js" async
integrity="sha384-LfouGM03m83ArVtne1JPk926e3SGD0Tz8XHtW2OKGsgeBU/UfR0Fa8eX+UlwSSAZ"
crossorigin="anonymous">
</script>

</div>
</div>
</body>
Expand Down

0 comments on commit 0e903c9

Please sign in to comment.