Skip to content

Commit

Permalink
fix the dashboard/homepage generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodlz committed Jun 5, 2024
1 parent a3b8cb6 commit e5f0734
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Tooltip } from "@mui/material";
import HelpOutlineOutlinedIcon from "@mui/icons-material/HelpOutlineOutlined";

// lazy import the TelescopeMap component
const TelescopeMap = lazy(() => import("./telescope/TelescopeMap"));
const TelescopeMap = lazy(() => import("./TelescopeMap"));

const useStyles = makeStyles((theme) => ({
help: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@ import convertLength from "convert-css-length";

import * as profileActions from "../ducks/profile";

import RecentSources from "./RecentSources";
import GroupList from "./GroupList";
import NewsFeed from "./NewsFeed";
import TopSources from "./TopSources";
import RecentGcnEvents from "./RecentGcnEvents";
import SourceCounts from "./SourceCounts";
import WeatherWidget from "./WeatherWidget";
import NewSource from "./NewSource";
import TelescopeMapDashboard from "./TelescopeMapDashboard";
import RecentSources from "../RecentSources";
import GroupList from "../group/GroupList";
import NewsFeed from "../NewsFeed";
import TopSources from "../TopSources";
import RecentGcnEvents from "../RecentGcnEvents";
import SourceCounts from "../source/SourceCounts";
import WeatherWidget from "../WeatherWidget";
import TelescopeMapDashboard from "../telescope/TelescopeMapDashboard";

const ResponsiveGridLayout = WidthProvider(Responsive);

Expand Down
33 changes: 1 addition & 32 deletions icare.yaml.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ app:

routes:
- path: "/"
component: DashboardGrandma
component: templates/DashboardGrandma
exact: True
- path: "/source/:id"
component: source/Source
Expand Down Expand Up @@ -108,10 +108,6 @@ app:
icon: Home
url: /

# - name: Dashboard Grandma
# icon: ElderlyWoman
# url: /dashboardGrandma

- name: GW/GRB/Neutrino
icon: SettingsInputAntenna
url: /gcn_events
Expand Down Expand Up @@ -213,33 +209,6 @@ app:
url: /user_management

dashboard_grandma_widgets:
# This section describes the specific widgets shown on the Home Page and how
# they are laid out by default on the grid of the page.
#
# The name of section should be the same as the widget's React component.
#
# The props property should be a set of properties to be passed on to the
# underlying React component for the widget. You may run into cases in which
# you must pass a more complex, dynamic property (perhaps fetched from the
# application redux store). Since you can not know that in the time of the
# configuration writing, such properties should be directly coded into the
# HomePage.jsx.template file (see the GroupList widget for an example)
#
# By default, any widget listed here is shown on the Home Page. However, you
# can give a widget the property "show: false" to turn off rendering of the
# widget.
#
# The resizable property determines whether the user is able to resize the
# widget after it has been rendered based on default layouts.
#
# Finally, the layouts property provides an array of default sizes/locations
# for each screen width breakpoint for the given widget. Layout arrays are
# given in the order [x, y, width, height], in units of grid columns/rows.
# For example, a layout array of [1, 2, 3, 4] will render a widget 3 grid
# columns in width, 4 grid rows in height, and have its upper-left corner at
# the column 1 (zero-indexed) and row 2. Note that each row is by default
# 150px in height. The row height can be altered in the homepage_grid
# section above (as well as other grid characteristics).
RecentGcnEvents:
resizeable: true
minW: 2
Expand Down

0 comments on commit e5f0734

Please sign in to comment.