From 56280ebd362e9af6c5fae959ab454d5c4f6b4f6d Mon Sep 17 00:00:00 2001 From: aboivert Date: Mon, 30 Sep 2024 14:07:44 +0200 Subject: [PATCH] feature delete --- gtfs.yml | 14 +- lib/common/components/Sidebar.js | 7 - lib/common/util/maps.js | 4 +- lib/editor/components/EntityListButtons.js | 9 -- lib/editor/components/FeedInfoPanel.js | 42 +----- .../pattern/CalculateDefaultTimesForm.js | 3 - .../components/pattern/PatternStopCard.js | 12 +- .../components/pattern/PatternStopsPanel.js | 29 ---- lib/editor/util/ui.js | 8 +- lib/manager/components/CreateFeedSource.js | 22 --- lib/manager/components/FeedSourceTable.js | 9 +- lib/manager/components/FeedSourceTableRow.js | 1 - lib/manager/components/FeedSourceViewer.js | 9 +- lib/manager/components/HomeProjectDropdown.js | 9 -- lib/manager/components/ManagerHeader.js | 2 - .../components/ProjectFeedListToolbar.js | 134 +++++------------- lib/manager/components/ProjectViewer.js | 17 +-- .../components/UserAccountInfoPanel.js | 5 - lib/manager/components/UserHomePage.js | 17 --- .../version/FeedVersionNavigator.js | 37 ----- .../components/version/FeedVersionViewer.js | 16 --- .../version/VersionButtonToolbar.js | 43 +----- 22 files changed, 53 insertions(+), 396 deletions(-) diff --git a/gtfs.yml b/gtfs.yml index ad966a69c..10762e34f 100644 --- a/gtfs.yml +++ b/gtfs.yml @@ -132,13 +132,7 @@ helpContent: "Contient l'adresse mail du service client de l'agence opérant le flux." - name: agency_branding_url required: false - displayName: URL du branding de l'agence - datatools: false - placeholder: https://agence.fr/branding - inputType: URL - columnWidth: 12 - helpContent: - + - id: stop name: stops.txt helpContent: Emplacements de dépôt et de récupération des usagers par le véhicule @@ -543,12 +537,6 @@ text: Non (2) - name: route_branding_url required: false - displayName: Route branding URL - datatools: false - placeholder: https://agence.fr/branding/itineraire/31 - inputType: URL - columnWidth: 12 - helpContent: - id: trip name: trips.txt diff --git a/lib/common/components/Sidebar.js b/lib/common/components/Sidebar.js index 78da2a5cd..011af1a0e 100644 --- a/lib/common/components/Sidebar.js +++ b/lib/common/components/Sidebar.js @@ -111,13 +111,6 @@ export default class Sidebar extends PureComponent { finished={jobMonitor.jobs.length === 0 && jobMonitor.retired.length > 0} label={this.messages('serverJobs')} onClick={this._select} /> - = [ name: 'Vue par défaut', id: DEFAULT_MAP_ID }, - { + /*{ name: 'Clair', id: 'mapbox/light-v10' }, @@ -26,7 +26,7 @@ export const EDITOR_MAP_LAYERS: Array = [ { name: 'Satellite', id: 'mapbox/satellite-streets-v11' - } + }*/ ] /** diff --git a/lib/editor/components/EntityListButtons.js b/lib/editor/components/EntityListButtons.js index b3aa2300c..323e69828 100644 --- a/lib/editor/components/EntityListButtons.js +++ b/lib/editor/components/EntityListButtons.js @@ -123,15 +123,6 @@ export default class EntityListButtons extends Component {
- { onClick={this.showUploadFileModal}> - {/* Add entity dropdown */} - } - id='add-entity-dropdown' - onSelect={this._onAddSelect}> - {GTFS_ICONS.map(c => { - if (!c.addable) return null - return ( - - {this.messages('add').replace('%id%', componentToText(c.id))} - - ) - })} - {/* Snapshot dropdown */} { { - - - {feedSource && - feedSource.editorSnapshots && - feedSource.editorSnapshots.length > 0 - ? feedSource.editorSnapshots.map(snapshot => { - return ( - - {this.messages('revert').replace('%snapshot%', snapshot.name)} - - ) - }) - : - {this.messages('noSnapshot')} - - } - } diff --git a/lib/editor/components/pattern/CalculateDefaultTimesForm.js b/lib/editor/components/pattern/CalculateDefaultTimesForm.js index 68151af41..8e8fe7756 100644 --- a/lib/editor/components/pattern/CalculateDefaultTimesForm.js +++ b/lib/editor/components/pattern/CalculateDefaultTimesForm.js @@ -126,9 +126,6 @@ export default class CalculateDefaultTimesForm extends Component {
- - - ) } diff --git a/lib/editor/components/pattern/PatternStopCard.js b/lib/editor/components/pattern/PatternStopCard.js index 99c3cf7bf..3f1e00ac3 100644 --- a/lib/editor/components/pattern/PatternStopCard.js +++ b/lib/editor/components/pattern/PatternStopCard.js @@ -368,19 +368,12 @@ class PatternStopContents extends Component { innerDiv =
{/* Remove from pattern button */} - - - {patternStopCardMessages('PatternStopContents.timepoint')} - - - + + /> {/* default travel time inputs */} @@ -480,7 +473,6 @@ class PatternStopContents extends Component { -
} return ( diff --git a/lib/editor/components/pattern/PatternStopsPanel.js b/lib/editor/components/pattern/PatternStopsPanel.js index 49174cce6..d1304b9df 100644 --- a/lib/editor/components/pattern/PatternStopsPanel.js +++ b/lib/editor/components/pattern/PatternStopsPanel.js @@ -120,35 +120,6 @@ export default class PatternStopsPanel extends Component { {' '} ({activePattern.patternStops ? activePattern.patternStops.length : 0}) -
- - - - {addStops && mapState.zoom && mapState.zoom <= 14 - ? 'Zoomer pour voir les arrêts' - : `Ajouter des arrêts depuis la carte` - } - -
{/* List of pattern stops */}
diff --git a/lib/editor/util/ui.js b/lib/editor/util/ui.js index 3ac70f4ae..df4a29135 100644 --- a/lib/editor/util/ui.js +++ b/lib/editor/util/ui.js @@ -17,14 +17,14 @@ export type GtfsIcon = { const messages = getComponentMessages('GtfsIcons') export const GTFS_ICONS = [ - { + /*{ id: 'feedinfo', tableName: 'feedinfo', icon: 'info', addable: false, title: messages('feedinfo.title'), label: messages('feedinfo.label') - }, + },*/ { id: 'agency', tableName: 'agency', @@ -66,14 +66,14 @@ export const GTFS_ICONS = [ title: messages('scheduleexception.title'), label: messages('scheduleexception.label') }, - { + /*{ id: 'fare', tableName: 'fare', icon: 'ticket', addable: true, title: messages('fare.title'), label: messages('fare.label') - } + }*/ ] /** diff --git a/lib/manager/components/CreateFeedSource.js b/lib/manager/components/CreateFeedSource.js index d6316030e..cd3669bcc 100644 --- a/lib/manager/components/CreateFeedSource.js +++ b/lib/manager/components/CreateFeedSource.js @@ -239,28 +239,6 @@ export default class CreateFeedSource extends Component { - {isExtensionEnabled('mtc') && ( - - Publication automatique - - - - - Auto-publier ce flux - - - Configurer cette source de flux pour qu'elle soit - automatiquement publiée lorsqu'une nouvelle version - est automatiquement récupérée. - - - - - - )} - - ) - }