Skip to content

Commit

Permalink
Revert "Merge pull request #397 from HSLdevcom/AB#32085_line_timetable"
Browse files Browse the repository at this point in the history
This reverts commit 91be8f2, reversing
changes made to 1bdc2b9.
  • Loading branch information
jhanninen committed Mar 25, 2024
1 parent 91be8f2 commit 89aa890
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 857 deletions.
7 changes: 2 additions & 5 deletions scripts/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,8 @@ const cancelSignalRedis = new Redis(REDIS_CONNECTION_STRING);
async function generatePoster(buildId, component, props, index) {
const { stopId, date, template, selectedRuleTemplates } = props;

// RuleTemplates are not available for TerminalPoster and LineTimetable
const data =
component !== 'TerminalPoster' && component !== 'LineTimetable'
? await getStopInfo({ stopId, date })
: null;
// RuleTemplates are not available for TerminalPoster
const data = component !== 'TerminalPoster' ? await getStopInfo({ stopId, date }) : null;

// Checks if any rule template will match the stop, and returns *the first one*.
// If no match, returns the default template.
Expand Down
2 changes: 0 additions & 2 deletions src/components/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@ import StopPoster from 'components/stopPoster/stopPosterContainer';
import Timetable from 'components/timetable/timetableContainer';
import A3StopPoster from 'components/a3stopPoster/a3StopPosterContainer';
import TerminalPoster from 'components/stopPoster/terminalPosterContainer';
import LineTimetable from 'components/lineTimetable/lineTimetableContainer';
import renderQueue from 'util/renderQueue';

const components = {
StopPoster,
Timetable,
A3StopPoster,
TerminalPoster,
LineTimetable,
};

const graphqlUrl = process.env.JORE_GRAPHQL_URL || 'https://kartat.hsl.fi/jore/graphql';
Expand Down
26 changes: 0 additions & 26 deletions src/components/lineTimetable/allStopsList.css

This file was deleted.

71 changes: 0 additions & 71 deletions src/components/lineTimetable/allStopsList.js

This file was deleted.

31 changes: 0 additions & 31 deletions src/components/lineTimetable/lineTableColumns.css

This file was deleted.

92 changes: 0 additions & 92 deletions src/components/lineTimetable/lineTableColumns.js

This file was deleted.

9 changes: 0 additions & 9 deletions src/components/lineTimetable/lineTableHeader.css

This file was deleted.

21 changes: 0 additions & 21 deletions src/components/lineTimetable/lineTableHeader.js

This file was deleted.

Loading

0 comments on commit 89aa890

Please sign in to comment.