Refactor `explore:*`

This commit is contained in:
Jacob Schatz 2018-01-08 16:27:32 -05:00
parent 8a7bbe1ff3
commit 45ec26536e
3 changed files with 427 additions and 341 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,14 @@
import GroupsList from "~/groups_list";
import Landing from "~/landing";
export default function() {
new GroupsList();
const landingElement = document.querySelector(".js-explore-groups-landing");
if (!landingElement) return;
const exploreGroupsLanding = new Landing(
landingElement,
landingElement.querySelector(".dismiss-button"),
"explore_groups_landing_dismissed"
);
exploreGroupsLanding.toggle();
}

View File

@ -0,0 +1,5 @@
import ProjectsList from "~/projects_list";
export default function() {
new ProjectsList();
}