Skip to content

Commit 76624f8

Browse files
committed
refactor: ♻️ abstract text from plugins
1 parent 45df3aa commit 76624f8

File tree

93 files changed

+1132
-1069
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+1132
-1069
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ The main draw loop (drawManager.ts) has been optimized to reduce memory leaks an
106106

107107
Any modifications to a satellite require that information to be passed to the positionCruncher webworker to ensure the UI calculations match the dot on the screen. Most calculations utilize a brute-force method of guess and check (lookangle times, missile trajectories, etc). Optimizing the loop for those calculations is critcal to keeping the project responsive. One trick to improve performance is that satSet creates a dictionary of index -> Norad ID number and index -> COSPAR number to allow rapid lookup of satellite data.
108108

109-
There are Typescript files for generating TLE.json that are not included, but http://keeptrack.space/tle/TLE2.json can be referenced for an up-to-date catalog.
109+
There are Typescript files for generating TLE.json that are not included, but https://keeptrack.space/tle/TLE2.json can be referenced for an up-to-date catalog.
110110

111111
# Release Notes
112112

public/analysis/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33

44
<head>
55
<meta name="description" content="A 3D visualtion tool to learn about satellites and tracking radars." />
6-
<meta property="og:image" content="http://keeptrack.space/social/keeptrackPreview-new.jpg" />
6+
<meta property="og:image" content="https://keeptrack.space/social/keeptrackPreview-new.jpg" />
77
<meta property="og:image:type" content="image/jpg" />
88
<meta property="og:image:width" content="1024" />
99
<meta property="og:image:height" content="1024" />
1010
<meta property="og:title" content="Keeptrack" />
1111
<meta property="og:description" content="A 3D visualtion tool to learn about satellites and tracking radars." />
12-
<meta property="og:url" content="http://keeptrack.space" />
12+
<meta property="og:url" content="https://keeptrack.space" />
1313

1414
<meta charset="utf-8" />
1515
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE" />

public/analysis/js/analysis-tools.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* /////////////////////////////////////////////////////////////////////////////
55
*
66
* (c) 2016-2023, Theodore Kruczek
7-
* http://keeptrack.space
7+
* https://keeptrack.space
88
*
99
* All code is Copyright © 2016-2023 by Theodore Kruczek. All rights reserved.
1010
* No part of this web site may be reproduced, published, distributed, displayed,

public/css/responsive-sm.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
width: 400px;
1515
}
1616
#menu-satellite-collision,
17-
#menu-find-sat {
17+
#FindSatPlugin-bottom-icon {
1818
display: inline;
1919
}
2020

public/css/responsive-xl.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
width: 400px;
125125
}
126126
#menu-satellite-collision,
127-
#menu-find-sat {
127+
#FindSatPlugin-bottom-icon {
128128
display: inline;
129129
}
130130
#footer-toggle-wrapper {

public/css/style.css

+1
Original file line numberDiff line numberDiff line change
@@ -1056,6 +1056,7 @@ input:focus {
10561056
height: var(--bottom-icon-height);
10571057
padding: 5px;
10581058
text-align: center;
1059+
cursor: pointer;
10591060
}
10601061

10611062
.bmenu-title {

src/keeptrack.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
*
44
* main.js is the primary javascript file for keeptrack.space. It manages all user
55
* interaction with the application.
6-
* http://keeptrack.space
6+
* https://keeptrack.space
77
*
88
* @Copyright (C) 2016-2024 Theodore Kruczek
99
* @Copyright (C) 2020-2024 Heather Kruczek
1010
* @Copyright (C) 2015-2016, James Yoder
1111
*
1212
* Original source code released by James Yoder at https://github.com/jeyoder/ThingsInSpace/
13-
* under the MIT License. Please reference http://keeptrack.space/license/thingsinspace.txt
13+
* under the MIT License. Please reference https://keeptrack.space/license/thingsinspace.txt
1414
*
1515
* KeepTrack is free software: you can redistribute it and/or modify it under the
1616
* terms of the GNU Affero General Public License as published by the Free Software
@@ -418,7 +418,7 @@ theodore.kruczek at gmail dot com.
418418
const renderer = keepTrackApi.getRenderer();
419419
const camera = keepTrackApi.getMainCamera();
420420

421-
camera.draw(keepTrackApi.getPlugin(SelectSatManager).getSelectedSat(), renderer.sensorPos);
421+
camera.draw(keepTrackApi.getPlugin(SelectSatManager)?.getSelectedSat(), renderer.sensorPos);
422422
renderer.render(keepTrackApi.getScene(), keepTrackApi.getMainCamera());
423423

424424
if (KeepTrack.isFpsAboveLimit(dt, 5) && !settingsManager.lowPerf && !settingsManager.isDragging && !settingsManager.isDemoModeOn) {

src/lib/constants.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
* The file constants.ts contains a set of constants used in the KeepTrack application.
55
* It defines constants related to zooming, radians, degrees, milliseconds, Earth's gravitational
66
* constant, minutes, distances of the Sun and Moon from the Earth, and more.
7-
* http://keeptrack.space
7+
* https://keeptrack.space
88
*
99
* @Copyright (C) 2016-2024 Theodore Kruczek
1010
* @Copyright (C) 2020-2024 Heather Kruczek
1111
* @Copyright (C) 2015-2016, James Yoder
1212
*
1313
* Original source code released by James Yoder at https://github.com/jeyoder/ThingsInSpace/
14-
* under the MIT License. Please reference http://keeptrack.space/license/thingsinspace.txt
14+
* under the MIT License. Please reference https://keeptrack.space/license/thingsinspace.txt
1515
*
1616
* KeepTrack is free software: you can redistribute it and/or modify it under the
1717
* terms of the GNU Affero General Public License as published by the Free Software

src/lib/dateFormat.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* dateFormat.ts is a standalone library that accepts a date, a mask, or a date
55
* and a mask, and returns a formatted version of the given date.
6-
* http://keeptrack.space
6+
* https://keeptrack.space
77
*
88
* @Copyright (C) 2016-2024 Theodore Kruczek
99
* @Copyright (C) 2007-2009 Steven Levithan <stevenlevithan.com>
@@ -205,7 +205,7 @@ const pad = function (num: number, length: number): string {
205205
* @returns A formatted string representing the date according to the specified mask.
206206
* @throws SyntaxError if the provided date is invalid.
207207
*/
208-
export const dateFormat = function (date: string | Date, mask: string, utc: boolean = false) {
208+
export const dateFormat = function (date: string | Date, mask: string, utc = false) {
209209
if (typeof date === 'string' && !(/\d/u).test(date)) {
210210
mask = date;
211211
date = null;

src/lib/saveVariable.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
* and an array of objects as a text file and a CSV file respectively. The file also imports
66
* saveAs function from file-saver library and errorManagerInstance singleton from
77
* errorManager.ts file.
8-
* http://keeptrack.space
8+
* https://keeptrack.space
99
*
1010
* @Copyright (C) 2016-2024 Theodore Kruczek
1111
* @Copyright (C) 2020-2024 Heather Kruczek
1212
* @Copyright (C) 2015-2016, James Yoder
1313
*
1414
* Original source code released by James Yoder at https://github.com/jeyoder/ThingsInSpace/
15-
* under the MIT License. Please reference http://keeptrack.space/license/thingsinspace.txt
15+
* under the MIT License. Please reference https://keeptrack.space/license/thingsinspace.txt
1616
*
1717
* KeepTrack is free software: you can redistribute it and/or modify it under the
1818
* terms of the GNU Affero General Public License as published by the Free Software

src/lib/stringPad.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* stringPad.ts contains the StringPad class, which provides utility methods for
55
* padding strings with leading or trailing characters.
6-
* http://keeptrack.space
6+
* https://keeptrack.space
77
*
88
* @Copyright (C) 2016-2024 Theodore Kruczek
99
* @Copyright (C) 2020-2024 Heather Kruczek

0 commit comments

Comments
 (0)