1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-12 23:37:14 +03:00

715 Commits

Author SHA1 Message Date
David Sangrey
4a4010ad7b
[#2157] Add Station and Docking Information When Available 2024-02-09 13:32:59 -05:00
David Sangrey
f318b3256b
[662] Apply Rate Limit 2024-01-04 19:17:21 -05:00
David Sangrey
7cac00b2e8
[635] Remove Ordered Dict 2024-01-03 23:55:12 -05:00
David Sangrey
b7633fa6e3
Handover a number of Lists to Tuples
Tuples are (slightly) more efficient for comparing if x in y. Not that it'll really matter at this scale, but it's technically better and simple to implement.

Applying to all files except theme.py, because theme.py is scary.
2023-12-27 00:29:35 -05:00
David Sangrey
21268d5f19
[Minor] Correct Spelling of Spansh 2023-12-07 11:55:07 -05:00
David Sangrey
c511b51003
[Translations] Update Translation Template 2023-12-06 17:41:22 -05:00
David Sangrey
e2285729df
Merge pull request #2086 from GLWine/develop
Fixed translation hook in EDSM.py and Inara.py
2023-12-06 17:17:39 -05:00
David Sangrey
173c32f314
[Minor] Update Code Checks 2023-12-06 17:15:46 -05:00
David Sangrey
170b86b5dc
[2051] Remove More Old Types 2023-11-30 21:45:04 -05:00
Phoebe
ed163ddb61 [Minor] Typos and mypy 2023-11-17 22:40:08 +01:00
Phoebe
71ff00ce58
[1490] Adds spansh as a URL provider
- Adds a spansh plugin as a URL provider for systems and stations.
- Adds plugin path to build.py.
- Updates a comment in the EDSM plugin.
2023-11-17 16:05:27 -05:00
David Sangrey
a169fb5a18
[Minor] Suppress Errant MyPy Error 2023-11-17 10:54:00 -05:00
David Sangrey
6c06600f21
Merge pull request #2096 from HullSeals/fix/2088/fix-and-standardize-UI
Fix and standardize Settings UI
2023-11-16 21:42:41 -05:00
Phoebe
a3c1763f4a [2095] Standardize horizontal Padding
- Standardizes horizontal Padding.
- Fixes further padding issues.
- Part of #2095
2023-11-17 03:05:42 +01:00
Phoebe
fc9775b910 [Minor] flake8 2023-11-17 01:57:13 +01:00
Phoebe
8063cf099b [2095] Standardize vertical Padding
- Standardizes vertical Padding.
- Fixes issues with the disabled and outdated Plugin list.
- Part of #2095
2023-11-17 01:39:52 +01:00
David Sangrey
93619e4565
[2051] Fix Localized Strings 2023-11-16 18:18:10 -05:00
Phoebe
07ae14be5a [2088] fix UI bugs, introduce standard
- Fixes #2088 and #2089.
- Adds usage of ``row=`` for ``.grid()`` for all config entries in included plugins.
- Changes all config pages to start at row 0.
- Starts introducing a standard for config panel layouts.
2023-11-16 22:21:57 +01:00
David Sangrey
070a3989a0
[2051] Prevent Typing Reversion
Thanks to @norohind for catching this one! I'm not up to date on my PEP585.
2023-11-10 11:33:04 -05:00
Giampiero
98e9765391
Fixed translation hook line 355
Corrected the text of code line 355;
The text text="Show API Key" cannot be translated as indicated, so I rewrote it as text=_('Show API Key').
2023-10-31 01:31:29 +01:00
Giampiero
b0ae7f140c
Fixed translation hook line 295
Corrected the text of code line 295;
The text text="Show API Key" cannot be translated as indicated, so I rewrote it as text=_('Show API Key').
2023-10-31 01:23:59 +01:00
David Sangrey
2c803d7f4c
[2051] Core Plugin Audit
Broken out of #2068
2023-10-19 17:44:33 -04:00
Philipp Trulson
02f62b8ee6
Fix Inara URLs for station & system search 2023-09-18 22:48:00 +02:00
David Sangrey
db73b9d775
#2047 Suppress Inaccurate MyPy 2023-08-03 17:33:23 -04:00
David Sangrey
d88bd70055
#2047 Mask API Keys in Default Plugins 2023-08-03 16:32:59 -04:00
David Sangrey
247d632cc6
#2040 First Pass - Update Build System 2023-07-26 22:49:03 -04:00
David Sangrey
86d4d89b94
#2031 Remove EDDB and Bump Version 2023-07-22 09:39:05 -04:00
Athanasius
3fb372fb11
EDSM: Remove actually un-necessary, and bug-inducing "not None" checks
I would have added these during a mypy cleanup, but it turns out they're both
not necessary *and* it actually prevents the EDSM Settings tab from properly
populating.
2023-01-22 13:09:34 +00:00
Athanasius
dbb471f2c2
eddn/tracking: Add BodyType to tracking UI
This helps demonstrate that a 'spurious' Station BodyName/ID is actually OK,
because BodyType makes it clear.
2023-01-16 19:32:44 +00:00
Athanasius
46fd129d3e
eddn: Expand the tracking UI for all system, body & station location data
* Also renamed This.systemaddress to this.system_address, which impacted
  misc. other lines of code.
2023-01-16 18:10:57 +00:00
Athanasius
b5bb9657d8
eddn: Move tracking_ui_update() nearer top of journal_entry()
With the tracking now being in monitor.py this needs to be ASAP after the
local copies of the tracking have been updated.

Below the possible `this.status_body_name` blanking, in case that's hit.
2023-01-15 21:54:02 +00:00
Athanasius
7b62fa1125
plugins/inara: Use state[...] values for system/station
* Also renamed system -> system_name & station -> station_name
2023-01-11 19:44:47 +00:00
Athanasius
c396a253f8
plugins/edsm: Use state[...] values for system/station
* Also renamed system -> system_name and station -> station_name
2023-01-11 19:44:46 +00:00
Athanasius
31e8d0372d
monitor/tracking: Move .station_marketid to state['MarketID']
1. plugins/eddb.py uses this for MarketID-based station URLs.

* So do the 'rename'.
* Remove EDDB tracking in favour of this.
* Update PLUGINS.md
2023-01-11 19:44:44 +00:00
Athanasius
2a8dd14e24
tracking/stationname; Minor fixups
* Missed a some `self.station` in monitor.py
* Fixed EDDB system *and* station link setting.  Brainfart had mixed them
  together in last commit.
2023-01-11 19:44:43 +00:00
Athanasius
dde0cf876c
monitor/tracking: Move .station to state['StationName']
1. EDDB tracks this.

* So move monitor.station to monitor.state['StationName'].
* PLUGINS.md updated to cite this.
2023-01-11 19:44:41 +00:00
Athanasius
df5eb5b270
monitor/tracking: Switch .systempopulation to state['SystemPopulation']
1. EDDB plugin tracked this for keeping the Station link text up to date.

* So moved it to monitor.state['SystemPopulation'].
* PLUGINS.md updated to cite this.
* PLUGINS.md also updated to note state entries that are set to None if
  remote multi-crew is detected.
2023-01-11 19:44:14 +00:00
Athanasius
dbad45cf3b
EDDB: Use only state['SystemName'] for this.system_name tracking 2023-01-11 19:44:13 +00:00
Athanasius
86e81adb3d
EDDB: Rename this.system to this.system_name 2023-01-11 19:44:12 +00:00
Athanasius
fa1c072d9e
monitor: Change .system to state['SystemName']
1. EDDB plugin needs to track the system name, but we're moving all of that
  into monitor.py.
2. monitor.py was tracking this in monitor.system, but it needs to be in
  monitor.state['SystemName'] in order for plugins to access it.

So, move monitor.system to monitor.state['SystemName'] and update all uses.
2023-01-11 19:44:08 +00:00
Athanasius
fafe9a5f7b
eddn: Remove un-necessary 'music'/'MainMenu' body tracking clearance
monitor.py does this for `state` passed in, which *this* code then uses
to set `this` values.
2023-01-11 19:43:23 +00:00
Athanasius
427a238dee
eddn: Remove un-necessary 'leavebody' state clearing
This is now handled in monitor.py, and *this* code explicitly sets the
'this' values to those in `state` as passed in.
2023-01-11 19:43:22 +00:00
Athanasius
386ea1636e
eddn: For 'docked' only set entry Body(Type) if latter is 'Planet'
We explicitly must not set this for other BodyType, e.g. 'Station'.
2023-01-11 19:43:20 +00:00
Athanasius
6f3967fb7f
eddn/tracking: Tweak commenting about coordinates
* `entry_augment_system_data()` will now always be passed starpos based
  on state['StarPos'].
* Removed TODO about deprecating in-plugin tracking.
2023-01-11 19:43:19 +00:00
Athanasius
e6abc137ce
monitor/tracking: Shift .coordinates to state['StarPos']
* Some additional commenting for future clarity.
* Remove the old eddn.py tracking.
2023-01-11 19:43:18 +00:00
Athanasius
232e91ebfc
monitor/Body: Tweak & comment, and remove defunct tracking from eddn.py
* Typod '.status' instead of 'state'.
* Bring in some sanity-checks and comments from eddn.py to monitor.py.
* Have a 'pass' elif for 'supercruiseentry' so as to comment why we do NOT
  use this to blank out body state.
* Bring in the 'if we exit to main menu, blank body state' from eddn.py.
* Remove checks from eddn.py that are now in monitor.py.
* Have a disctinct 'docked' event check in eddn.py for triggering the
  "Now we're docked, so the Delay sending until docked is satisfied"
  sending of messages.
2023-01-11 19:43:17 +00:00
Athanasius
86b0aa4550
monitor: Track all System and Body state in monitor.state
* Minor grammar edit only in PLUGINS.md (I was checking if it explicitly
  stated what data is expected in the synthetic 'StartUp' event, it doesn't).
* First changes to move some monitor properties into the monitor.state
  dictionary.  This is for system or body data.
* Re-factored the generation of 'StartUp' event into
  `EDLogs.synthesize_startup_event()`.  It's done in two places, so was
  anti-DRY.
* In general any bulk setting of system & body data is now done in the
  same order for comparison clarity.
* A little of the location tracking has been duplicated from plugins/eddn.py.
  This is with a view to switching *it* to using the state version.
2023-01-11 19:43:14 +00:00
Athanasius
7d4118738b
Add some missing LANG comments, as per script output 2023-01-03 11:46:27 +00:00
Athanasius
0fd835e9ac
core plugins: A little more 'children' fixup
* eddn: Needs to find status text, although really there should be a helper
  function for this.
* Removed commented out references to same in edsm and inara.
2022-12-31 16:49:29 +00:00
Athanasius
f2de70bad6
core plugins: Use nametowidget() to find system/station widgets
As we're experimenting with per-plugin frames up a level `parent.children`
would need to be `parent.parent.children`, but this way it will Just Work
without knowledge of the hierarchy.
2022-12-31 16:27:22 +00:00