From b0266a3faf482305aab9810cc7488842a48f2639 Mon Sep 17 00:00:00 2001 From: Even Modiguy Date: Thu, 27 Feb 2025 11:34:22 +0100 Subject: [PATCH 1/3] update configuration --- docs/assets/file/config.json | 16 ++++++++++++-- docs/getting_started.md | 42 ++++++++++++++++++++++++++++++------ 2 files changed, 49 insertions(+), 9 deletions(-) diff --git a/docs/assets/file/config.json b/docs/assets/file/config.json index 8086cf1a9..cb55bda08 100644 --- a/docs/assets/file/config.json +++ b/docs/assets/file/config.json @@ -668,9 +668,21 @@ }, "schedule_mode": true, "tabs": { - "transports": true, + "transports": { + "enabled": true, + "sections": { + "stations_title_res": "", + "bss_title_res": "", + "car_parking_title_res": "" + } + }, "journeys": true, - "addresses": true + "addresses": { + "enabled": true, + "sections": { + "places_title_res": "" + } + } } }, "journey": { diff --git a/docs/getting_started.md b/docs/getting_started.md index 9aa195fd2..7a57e7093 100644 --- a/docs/getting_started.md +++ b/docs/getting_started.md @@ -359,7 +359,7 @@ The following are the possible configuration parameters: | --- |:---:| --- | :---: | :---: | | `go_from_go_to` | :material-close: | Show/hide the go from/go to buttons | `Boolean` | `true` | | `next_departures` | :material-close: | Show/hide the next departures | [`Next departures`](#next-departures) | - | -| `park_availability`| :material-close: | Show/hide the bss and car parking availability | [`Park Availability`](#park-availability) | +| `park_availability`| :material-close: | Show/hide the bss and car parking availability | [`Park Availability`](#park-availability) | - | | `schedule_mode` | :material-close: | Show/hide the "See all schedules" button | `Boolean` | `true` | | `tabs` | :material-close: | Enable/disable tabs | [`Bookmark tabs`](#bookmark-tabs) | - | @@ -367,9 +367,37 @@ The following are the possible configuration parameters: | Name | Required | Description | Type | Example | | --- |:---:| --- | :---: | :---: | -| `transports` | :material-check: | Enable/disable transport tab | `Boolean` | `true` | -| `journeys` | :material-check: | Enable/disable journeys tab | `Boolean` | `true` | -| `addresses` | :material-check: | Enable/disable addresses tab | `Boolean` | `true` | +| `transports` | :material-close: | Transport tab configuration | [`Bookmark transports tab`](#bookmark-transports-tab) | - | +| `journeys` | :material-close: | Enable/disable journeys tab | `Boolean` | `true` | +| `addresses` | :material-close: | Addresses tab configuration | [`Bookmark addresses tab`](#bookmark-addresses-tab) | - | + +##### Bookmark transports tab + +| Name | Required | Description | Type | Example | +| --- |:---:| --- | :---: | :---: | +| `enabled` | :material-check: | Enable/disable transport tab | `Boolean` | `true` | +| `sections` | :material-close: | Custom titles for the sections of this tab | [`Bookmark transports tab sections`](#bookmark-transports-tab-sections) | - | + +##### Bookmark transports tab sections + +| Name | Required | Description | Type | Example | +| --- |:---:| --- | :---: | :---: | +| `stations_title_res` | :material-close: | 'Stations' title resource name | `String` | `"stops"` | +| `bss_title_res` | :material-close: | 'Bike sharing service stations' title resource name | `String` | `"bike_rental"` | +| `car_parking_title_res` | :material-close: | 'P+R parkings' title resource name | `String` | `"relay_parkings"` | + +##### Bookmark addresses tab + +| Name | Required | Description | Type | Example | +| --- |:---:| --- | :---: | :---: | +| `enabled` | :material-check: | Enable/disable addresses tab | `Boolean` | `true` | +| `sections` | :material-close: | Custom titles for the sections of this tab | [`Bookmark addresses tab sections`](#bookmark-addresses-tab-sections) | - | + +##### Bookmark addresses tab sections + +| Name | Required | Description | Type | Example | +| --- |:---:| --- | :---: | :---: | +| `places_title_res` | :material-close: | 'Places' title resource name | `String` | `"convenient_places"` | #### Journey features @@ -525,9 +553,9 @@ The following are the possible configuration parameters: | Name | Required | Description | Type | Platform | Example | | --- |:---:| --- | :---: | :---: | :---: | -| `font_res` | :material-check: | The font resource name | `String` | Android | `source_sans_pro_semi_bold` | -| `ttf_file` | :material-check: | The TTF file name | `String` | iOS | `"SourceSansPro"` | -| `font_name` | :material-check: | The font name | `String` | iOS | `"SourceSansPro-Bold"` | +| `font_res` | :material-check: | Font resource name | `String` | Android | `source_sans_pro_semi_bold` | +| `ttf_file` | :material-check: | TTF file name | `String` | iOS | `"SourceSansPro"` | +| `font_name` | :material-check: | Font name | `String` | iOS | `"SourceSansPro-Bold"` | ### Line resource From fdbd515cdde138b25404f853ccf41c644dedaf13 Mon Sep 17 00:00:00 2001 From: Even Modiguy Date: Thu, 27 Feb 2025 15:41:48 +0100 Subject: [PATCH 2/3] update config for around me --- docs/assets/file/config.json | 17 +++++++++++++---- docs/getting_started.md | 21 ++++++++++++++------- 2 files changed, 27 insertions(+), 11 deletions(-) diff --git a/docs/assets/file/config.json b/docs/assets/file/config.json index cb55bda08..f0d48a6eb 100644 --- a/docs/assets/file/config.json +++ b/docs/assets/file/config.json @@ -626,10 +626,19 @@ "booking": true, "bookmark_mode": { "enabled": true, - "display": { - "bss": true, - "journeys": true, - "stations": true + "tabs": { + "bss": { + "display": true, + "title_res": "" + }, + "journeys": { + "display": true, + "title_res": "" + }, + "stations": { + "display": true, + "title_res": "" + } } }, "default_location": { diff --git a/docs/getting_started.md b/docs/getting_started.md index 7a57e7093..c831467dd 100644 --- a/docs/getting_started.md +++ b/docs/getting_started.md @@ -335,16 +335,23 @@ The following are the possible configuration parameters: | Name | Required | Description | Type | Example | | --- |:---:| --- | :---: | :---: | -| `enabled` | :material-close: | Enable/disable to add and remove an item as favorite | `Boolean` | `true` | -| `display` | :material-close: | Display options of favorite items on screen | [`Bookmark mode display options (Around Me)`](#bookmark-mode-display-options-around-me) | - | +| `enabled` | :material-check: | Enable/disable to add and remove an item as favorite | `Boolean` | `true` | +| `tabs` | :material-close: | | [`Bookmark mode tabs (Around me)`](#bookmark-mode-tabs-around-me) | - | + +##### Bookmark mode tabs (Around me) + +| Name | Required | Description | Type | Example | +| --- |:---:| --- | :---: | :---: | +| `bss` | :material-close: | Favorite bss tab configuration | [`Bookmark mode tab (Around me)`](#bookmark-mode-tab-around-me) | - | +| `journeys` | :material-close: | Favorite journeys tab configuration | [`Bookmark mode tab (Around me)`](#bookmark-mode-tab-around-me) | - | +| `stations` | :material-close: | Favorite stations tab configuration | [`Bookmark mode tab (Around me)`](#bookmark-mode-tab-around-me) | - | -##### Bookmark mode display options (Around Me) +##### Bookmark mode tab (Around me) | Name | Required | Description | Type | Example | | --- |:---:| --- | :---: | :---: | -| `bss` | :material-close: | Display/hide favorite bss tab | `Boolean` | `true` | -| `journeys` | :material-close: | Display/hide favorite journeys tab | `Boolean` | `true` | -| `stations` | :material-close: | Display/hide favorite stations tab | `Boolean` | `true` | +| `display` | :material-check: | Display/hide favorite tab | `Boolean` | `true` | +| `title_res` | :material-close: | Title resource name | `String` | `"tab_title"` | ##### Default location @@ -368,7 +375,7 @@ The following are the possible configuration parameters: | Name | Required | Description | Type | Example | | --- |:---:| --- | :---: | :---: | | `transports` | :material-close: | Transport tab configuration | [`Bookmark transports tab`](#bookmark-transports-tab) | - | -| `journeys` | :material-close: | Enable/disable journeys tab | `Boolean` | `true` | +| `journeys` | :material-close: | Enable/disable journeys tab | `Boolean` | `true` | | `addresses` | :material-close: | Addresses tab configuration | [`Bookmark addresses tab`](#bookmark-addresses-tab) | - | ##### Bookmark transports tab From 2212a02c10ebc77782f0f6ff54fdbc22ab684e09 Mon Sep 17 00:00:00 2001 From: Even Modiguy Date: Thu, 27 Feb 2025 19:52:26 +0100 Subject: [PATCH 3/3] fix config.json --- docs/assets/file/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/assets/file/config.json b/docs/assets/file/config.json index f0d48a6eb..ed9c7de34 100644 --- a/docs/assets/file/config.json +++ b/docs/assets/file/config.json @@ -681,7 +681,7 @@ "enabled": true, "sections": { "stations_title_res": "", - "bss_title_res": "", + "bss_stations_title_res": "", "car_parking_title_res": "" } },