summaryrefslogtreecommitdiffstats
path: root/web_src/js/features/userheatmap.js
blob: f7e0d1a75f16f22fecb4c58db1593cf870d08f2b (plain)
1
2
3
4
5
6
7
8
9
10
import Vue from 'vue';

import ActivityHeatmap from '../components/ActivityHeatmap.vue';

export default async function initUserHeatmap() {
  const el = document.getElementById('user-heatmap');
  if (!el) return;
  const View = Vue.extend(ActivityHeatmap);
  new View().$mount(el);
}