openc3 7.5.1 → 7.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +0 -0
- data/bin/openc3cli +82 -5
- data/data/config/_params.yaml +3 -0
- data/data/config/command_modifiers.yaml +5 -3
- data/data/config/default_plugins.yaml +1 -0
- data/data/config/interface_modifiers.yaml +17 -1
- data/data/config/item_modifiers.yaml +24 -1
- data/data/config/microservice.yaml +15 -1
- data/data/config/parameter_modifiers.yaml +4 -4
- data/data/config/plugins.yaml +511 -3
- data/data/config/settings.yaml +17 -0
- data/data/config/target.yaml +53 -0
- data/data/config/telemetry.yaml +58 -2
- data/data/config/widgets.yaml +30 -0
- data/lib/openc3/accessors/accessor.rb +14 -2
- data/lib/openc3/accessors/binary_accessor.rb +25 -5
- data/lib/openc3/api/CLAUDE.md +1 -0
- data/lib/openc3/api/api.rb +1 -0
- data/lib/openc3/api/cmd_api.rb +9 -1
- data/lib/openc3/api/interface_api.rb +7 -2
- data/lib/openc3/api/limits_api.rb +93 -41
- data/lib/openc3/api/router_api.rb +7 -2
- data/lib/openc3/api/settings_api.rb +4 -1
- data/lib/openc3/api/shared_resource_api.rb +107 -0
- data/lib/openc3/api/tlm_api.rb +10 -0
- data/lib/openc3/interfaces/http_client_interface.rb +84 -27
- data/lib/openc3/interfaces/protocols/preidentified_protocol.rb +6 -2
- data/lib/openc3/interfaces/tcpip_server_interface.rb +205 -125
- data/lib/openc3/io/json_api.rb +2 -10
- data/lib/openc3/io/json_api_object.rb +2 -10
- data/lib/openc3/logs/packet_log_writer.rb +8 -3
- data/lib/openc3/microservices/decom_common.rb +4 -1
- data/lib/openc3/microservices/decom_microservice.rb +52 -6
- data/lib/openc3/microservices/interface_decom_common.rb +13 -0
- data/lib/openc3/microservices/interface_microservice.rb +50 -11
- data/lib/openc3/microservices/limits_group_microservice.rb +513 -0
- data/lib/openc3/microservices/log_microservice.rb +22 -8
- data/lib/openc3/microservices/microservice.rb +8 -2
- data/lib/openc3/microservices/multi_microservice.rb +76 -22
- data/lib/openc3/microservices/queue_microservice.rb +29 -24
- data/lib/openc3/migrations/20260704000000_default_bridge.rb +1 -2
- data/lib/openc3/migrations/20261103000001_limits_group_backfill.rb +193 -0
- data/lib/openc3/models/bridge_model.rb +3 -3
- data/lib/openc3/models/cvt_model.rb +3 -1
- data/lib/openc3/models/host_interface_microservice_model.rb +4 -4
- data/lib/openc3/models/interface_model.rb +27 -7
- data/lib/openc3/models/microservice_group.rb +167 -0
- data/lib/openc3/models/microservice_model.rb +88 -2
- data/lib/openc3/models/panel_model.rb +109 -0
- data/lib/openc3/models/plugin_model.rb +1006 -26
- data/lib/openc3/models/plugin_store_model.rb +6 -1
- data/lib/openc3/models/protected_storage_model.rb +64 -0
- data/lib/openc3/models/queue_model.rb +19 -10
- data/lib/openc3/models/scope_model.rb +80 -3
- data/lib/openc3/models/setting_model.rb +2 -2
- data/lib/openc3/models/shared_resource_model.rb +381 -0
- data/lib/openc3/models/target_model.rb +324 -68
- data/lib/openc3/operators/microservice_operator.rb +76 -9
- data/lib/openc3/operators/operator.rb +29 -0
- data/lib/openc3/packets/commands.rb +16 -16
- data/lib/openc3/packets/limits.rb +2 -0
- data/lib/openc3/packets/packet.rb +75 -4
- data/lib/openc3/packets/packet_config.rb +152 -13
- data/lib/openc3/packets/packet_item.rb +35 -14
- data/lib/openc3/packets/packet_item_limits.rb +67 -6
- data/lib/openc3/packets/parsers/limits_parser.rb +69 -2
- data/lib/openc3/packets/parsers/packet_item_parser.rb +6 -0
- data/lib/openc3/packets/parsers/packet_parser.rb +45 -0
- data/lib/openc3/packets/parsers/state_parser.rb +1 -1
- data/lib/openc3/script/CLAUDE.md +1 -0
- data/lib/openc3/script/api_shared.rb +17 -9
- data/lib/openc3/script/calendar.rb +18 -6
- data/lib/openc3/script/commands.rb +11 -9
- data/lib/openc3/script/critical_cmd.rb +22 -2
- data/lib/openc3/script/metadata.rb +30 -4
- data/lib/openc3/script/plugins.rb +8 -0
- data/lib/openc3/script/script.rb +8 -24
- data/lib/openc3/script/web_socket_api.rb +23 -17
- data/lib/openc3/system/system.rb +9 -3
- data/lib/openc3/top_level.rb +17 -0
- data/lib/openc3/topics/command_topic.rb +7 -1
- data/lib/openc3/topics/decom_interface_topic.rb +9 -3
- data/lib/openc3/topics/discovery_topic.rb +84 -0
- data/lib/openc3/topics/limits_event_topic.rb +236 -17
- data/lib/openc3/topics/telemetry_decom_topic.rb +12 -3
- data/lib/openc3/topics/topic.rb +2 -1
- data/lib/openc3/utilities/authentication.rb +67 -16
- data/lib/openc3/utilities/cli_generator.rb +117 -25
- data/lib/openc3/utilities/client_ip_header_filter.rb +38 -0
- data/lib/openc3/utilities/config_overlay.rb +24 -1
- data/lib/openc3/utilities/cosmos_rails_formatter.rb +18 -10
- data/lib/openc3/utilities/hardware_discovery.rb +279 -0
- data/lib/openc3/utilities/limits_rollup.rb +81 -0
- data/lib/openc3/utilities/local_mode.rb +48 -5
- data/lib/openc3/utilities/questdb_client.rb +130 -22
- data/lib/openc3/utilities/reingest_job.rb +12 -3
- data/lib/openc3/utilities/running_script.rb +206 -49
- data/lib/openc3/utilities/script.rb +24 -12
- data/lib/openc3/utilities/script_env.rb +164 -0
- data/lib/openc3/utilities/script_message_signing.rb +133 -0
- data/lib/openc3/utilities/store_autoload.rb +32 -1
- data/lib/openc3/utilities/store_queued.rb +5 -1
- data/lib/openc3/version.rb +6 -6
- data/templates/command_validator/command_validator.py +9 -9
- data/templates/{tool_react/pnpm-workspace.yaml → panel/.prettierrc.cjs} +7 -5
- data/templates/panel/Rakefile +24 -0
- data/templates/panel/package.json +17 -0
- data/templates/{tool_angular → panel}/pnpm-workspace.yaml +5 -0
- data/templates/panel/src/Panel.js +52 -0
- data/templates/panel/src/Panel.vue +60 -0
- data/templates/panel/src/panelSdk.js +24 -0
- data/templates/panel/vite-Panel.config.js +43 -0
- data/templates/tool_vue/package.json +3 -3
- data/templates/widget/package.json +2 -2
- metadata +24 -56
- data/templates/tool_angular/.editorconfig +0 -16
- data/templates/tool_angular/.gitignore +0 -44
- data/templates/tool_angular/.vscode/extensions.json +0 -4
- data/templates/tool_angular/.vscode/launch.json +0 -20
- data/templates/tool_angular/.vscode/tasks.json +0 -42
- data/templates/tool_angular/angular.json +0 -111
- data/templates/tool_angular/extra-webpack.config.js +0 -8
- data/templates/tool_angular/package.json +0 -48
- data/templates/tool_angular/src/app/app-routing.module.ts +0 -15
- data/templates/tool_angular/src/app/app.component.html +0 -22
- data/templates/tool_angular/src/app/app.component.scss +0 -18
- data/templates/tool_angular/src/app/app.component.spec.ts +0 -29
- data/templates/tool_angular/src/app/app.component.ts +0 -52
- data/templates/tool_angular/src/app/app.module.ts +0 -30
- data/templates/tool_angular/src/app/custom-overlay-container.ts +0 -17
- data/templates/tool_angular/src/app/empty-route/empty-route.component.ts +0 -7
- data/templates/tool_angular/src/app/openc3-api.d.ts +0 -1
- data/templates/tool_angular/src/assets/.gitkeep +0 -0
- data/templates/tool_angular/src/environments/environment.prod.ts +0 -3
- data/templates/tool_angular/src/environments/environment.ts +0 -16
- data/templates/tool_angular/src/favicon.ico +0 -0
- data/templates/tool_angular/src/index.html +0 -13
- data/templates/tool_angular/src/main.single-spa.ts +0 -40
- data/templates/tool_angular/src/single-spa/asset-url.ts +0 -12
- data/templates/tool_angular/src/single-spa/single-spa-props.ts +0 -8
- data/templates/tool_angular/src/styles.scss +0 -1
- data/templates/tool_angular/tsconfig.app.json +0 -13
- data/templates/tool_angular/tsconfig.json +0 -33
- data/templates/tool_angular/tsconfig.spec.json +0 -14
- data/templates/tool_react/.eslintrc +0 -7
- data/templates/tool_react/.gitignore +0 -71
- data/templates/tool_react/.prettierignore +0 -8
- data/templates/tool_react/babel.config.json +0 -29
- data/templates/tool_react/jest.config.js +0 -12
- data/templates/tool_react/package.json +0 -51
- data/templates/tool_react/src/openc3-tool_name.js +0 -24
- data/templates/tool_react/src/root.component.js +0 -88
- data/templates/tool_react/src/root.component.test.js +0 -9
- data/templates/tool_react/webpack.config.js +0 -27
- data/templates/tool_svelte/.gitignore +0 -71
- data/templates/tool_svelte/.prettierignore +0 -8
- data/templates/tool_svelte/.prettierrc.js +0 -5
- data/templates/tool_svelte/babel.config.js +0 -12
- data/templates/tool_svelte/build/smui.css +0 -1
- data/templates/tool_svelte/jest.config.js +0 -9
- data/templates/tool_svelte/package.json +0 -49
- data/templates/tool_svelte/pnpm-workspace.yaml +0 -20
- data/templates/tool_svelte/rollup.config.js +0 -74
- data/templates/tool_svelte/src/App.svelte +0 -42
- data/templates/tool_svelte/src/App.test.js +0 -9
- data/templates/tool_svelte/src/theme/_smui-theme.scss +0 -25
- data/templates/tool_svelte/src/tool_name.js +0 -17
- data/templates/widget/LICENSE.md +0 -20
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
# Copyright 2026 OpenC3, Inc.
|
|
3
|
+
# All Rights Reserved.
|
|
4
|
+
#
|
|
5
|
+
# This program is distributed in the hope that it will be useful,
|
|
6
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
7
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
8
|
+
# See LICENSE.md for more details.
|
|
9
|
+
#
|
|
10
|
+
# This file may also be used under the terms of a commercial license
|
|
11
|
+
# if purchased from OpenC3, Inc.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { defineConfig } from 'vite'
|
|
15
|
+
import VitePluginStyleInject from 'vite-plugin-style-inject'
|
|
16
|
+
import vue from '@vitejs/plugin-vue'
|
|
17
|
+
|
|
18
|
+
const DEFAULT_EXTENSIONS = ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json']
|
|
19
|
+
|
|
20
|
+
// Builds the <%= panel_type %> Dashboards panel type into
|
|
21
|
+
// tools/panels/<%= panel_type %>/<%= panel_type %>.js, the SystemJS module the
|
|
22
|
+
// PANEL <%= panel_type %> line in plugin.txt installs
|
|
23
|
+
export default defineConfig({
|
|
24
|
+
build: {
|
|
25
|
+
outDir: 'tools/panels/<%= panel_type %>',
|
|
26
|
+
emptyOutDir: true,
|
|
27
|
+
sourcemap: true,
|
|
28
|
+
lib: {
|
|
29
|
+
entry: './src/<%= panel_name %>.js',
|
|
30
|
+
fileName: () => '<%= panel_type %>.js',
|
|
31
|
+
formats: ['system'],
|
|
32
|
+
},
|
|
33
|
+
rollupOptions: {
|
|
34
|
+
// Provided by COSMOS, so the panel uses the same copies as Dashboards
|
|
35
|
+
external: ['single-spa', 'vue', 'pinia', 'vue-router', 'vuetify'],
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
// Styles go in the module, since only the one .js file is installed
|
|
39
|
+
plugins: [vue(), VitePluginStyleInject()],
|
|
40
|
+
resolve: {
|
|
41
|
+
extensions: [...DEFAULT_EXTENSIONS, '.vue'],
|
|
42
|
+
},
|
|
43
|
+
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "<%= tool_name %>",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.6.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@astrouxds/astro-web-components": "^7.24.0",
|
|
14
|
-
"@openc3/js-common": "7.
|
|
15
|
-
"@openc3/vue-common": "7.
|
|
14
|
+
"@openc3/js-common": "7.6.0",
|
|
15
|
+
"@openc3/vue-common": "7.6.0",
|
|
16
16
|
"axios": "^1.7.7",
|
|
17
17
|
"date-fns": "^4.1.0",
|
|
18
18
|
"lodash": "^4.17.21",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "<%= widget_name %>",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.6.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@astrouxds/astro-web-components": "^7.24.0",
|
|
11
|
-
"@openc3/vue-common": "7.
|
|
11
|
+
"@openc3/vue-common": "7.6.0",
|
|
12
12
|
"vuetify": "^3.7.1"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openc3
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 7.
|
|
4
|
+
version: 7.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryan Melton
|
|
@@ -1014,6 +1014,7 @@ files:
|
|
|
1014
1014
|
- lib/openc3/accessors/json_accessor.rb
|
|
1015
1015
|
- lib/openc3/accessors/template_accessor.rb
|
|
1016
1016
|
- lib/openc3/accessors/xml_accessor.rb
|
|
1017
|
+
- lib/openc3/api/CLAUDE.md
|
|
1017
1018
|
- lib/openc3/api/README.md
|
|
1018
1019
|
- lib/openc3/api/api.rb
|
|
1019
1020
|
- lib/openc3/api/authorized_api.rb
|
|
@@ -1026,6 +1027,7 @@ files:
|
|
|
1026
1027
|
- lib/openc3/api/offline_access_api.rb
|
|
1027
1028
|
- lib/openc3/api/router_api.rb
|
|
1028
1029
|
- lib/openc3/api/settings_api.rb
|
|
1030
|
+
- lib/openc3/api/shared_resource_api.rb
|
|
1029
1031
|
- lib/openc3/api/stash_api.rb
|
|
1030
1032
|
- lib/openc3/api/target_api.rb
|
|
1031
1033
|
- lib/openc3/api/tlm_api.rb
|
|
@@ -1131,6 +1133,7 @@ files:
|
|
|
1131
1133
|
- lib/openc3/microservices/decom_microservice.rb
|
|
1132
1134
|
- lib/openc3/microservices/interface_decom_common.rb
|
|
1133
1135
|
- lib/openc3/microservices/interface_microservice.rb
|
|
1136
|
+
- lib/openc3/microservices/limits_group_microservice.rb
|
|
1134
1137
|
- lib/openc3/microservices/log_microservice.rb
|
|
1135
1138
|
- lib/openc3/microservices/microservice.rb
|
|
1136
1139
|
- lib/openc3/microservices/multi_microservice.rb
|
|
@@ -1154,6 +1157,7 @@ files:
|
|
|
1154
1157
|
- lib/openc3/migrations/20260701000000_updated_at_to_int.rb
|
|
1155
1158
|
- lib/openc3/migrations/20260704000000_default_bridge.rb
|
|
1156
1159
|
- lib/openc3/migrations/20260731000000_system_health_json.rb
|
|
1160
|
+
- lib/openc3/migrations/20261103000001_limits_group_backfill.rb
|
|
1157
1161
|
- lib/openc3/models/activity_model.rb
|
|
1158
1162
|
- lib/openc3/models/auth_model.rb
|
|
1159
1163
|
- lib/openc3/models/bridge_model.rb
|
|
@@ -1168,6 +1172,7 @@ files:
|
|
|
1168
1172
|
- lib/openc3/models/interface_status_model.rb
|
|
1169
1173
|
- lib/openc3/models/metadata_model.rb
|
|
1170
1174
|
- lib/openc3/models/metric_model.rb
|
|
1175
|
+
- lib/openc3/models/microservice_group.rb
|
|
1171
1176
|
- lib/openc3/models/microservice_model.rb
|
|
1172
1177
|
- lib/openc3/models/microservice_status_model.rb
|
|
1173
1178
|
- lib/openc3/models/migration_model.rb
|
|
@@ -1175,10 +1180,12 @@ files:
|
|
|
1175
1180
|
- lib/openc3/models/news_model.rb
|
|
1176
1181
|
- lib/openc3/models/note_model.rb
|
|
1177
1182
|
- lib/openc3/models/offline_access_model.rb
|
|
1183
|
+
- lib/openc3/models/panel_model.rb
|
|
1178
1184
|
- lib/openc3/models/ping_model.rb
|
|
1179
1185
|
- lib/openc3/models/plugin_model.rb
|
|
1180
1186
|
- lib/openc3/models/plugin_store_model.rb
|
|
1181
1187
|
- lib/openc3/models/process_status_model.rb
|
|
1188
|
+
- lib/openc3/models/protected_storage_model.rb
|
|
1182
1189
|
- lib/openc3/models/python_package_model.rb
|
|
1183
1190
|
- lib/openc3/models/queue_model.rb
|
|
1184
1191
|
- lib/openc3/models/reaction_model.rb
|
|
@@ -1190,6 +1197,7 @@ files:
|
|
|
1190
1197
|
- lib/openc3/models/script_status_model.rb
|
|
1191
1198
|
- lib/openc3/models/secret_model.rb
|
|
1192
1199
|
- lib/openc3/models/setting_model.rb
|
|
1200
|
+
- lib/openc3/models/shared_resource_model.rb
|
|
1193
1201
|
- lib/openc3/models/sorted_model.rb
|
|
1194
1202
|
- lib/openc3/models/stash_model.rb
|
|
1195
1203
|
- lib/openc3/models/target_model.rb
|
|
@@ -1228,6 +1236,7 @@ files:
|
|
|
1228
1236
|
- lib/openc3/processors/statistics_processor.rb
|
|
1229
1237
|
- lib/openc3/processors/watermark_processor.rb
|
|
1230
1238
|
- lib/openc3/script.rb
|
|
1239
|
+
- lib/openc3/script/CLAUDE.md
|
|
1231
1240
|
- lib/openc3/script/api_shared.rb
|
|
1232
1241
|
- lib/openc3/script/autonomic.rb
|
|
1233
1242
|
- lib/openc3/script/calendar.rb
|
|
@@ -1277,6 +1286,7 @@ files:
|
|
|
1277
1286
|
- lib/openc3/topics/command_topic.rb
|
|
1278
1287
|
- lib/openc3/topics/config_topic.rb
|
|
1279
1288
|
- lib/openc3/topics/decom_interface_topic.rb
|
|
1289
|
+
- lib/openc3/topics/discovery_topic.rb
|
|
1280
1290
|
- lib/openc3/topics/interface_topic.rb
|
|
1281
1291
|
- lib/openc3/topics/limits_event_topic.rb
|
|
1282
1292
|
- lib/openc3/topics/notebook_topic.rb
|
|
@@ -1296,6 +1306,7 @@ files:
|
|
|
1296
1306
|
- lib/openc3/utilities/bucket_require.rb
|
|
1297
1307
|
- lib/openc3/utilities/bucket_utilities.rb
|
|
1298
1308
|
- lib/openc3/utilities/cli_generator.rb
|
|
1309
|
+
- lib/openc3/utilities/client_ip_header_filter.rb
|
|
1299
1310
|
- lib/openc3/utilities/cmd_log.rb
|
|
1300
1311
|
- lib/openc3/utilities/config_overlay.rb
|
|
1301
1312
|
- lib/openc3/utilities/cosmos_rails_formatter.rb
|
|
@@ -1304,6 +1315,8 @@ files:
|
|
|
1304
1315
|
- lib/openc3/utilities/ctrf.rb
|
|
1305
1316
|
- lib/openc3/utilities/default_plugins.rb
|
|
1306
1317
|
- lib/openc3/utilities/env_helper.rb
|
|
1318
|
+
- lib/openc3/utilities/hardware_discovery.rb
|
|
1319
|
+
- lib/openc3/utilities/limits_rollup.rb
|
|
1307
1320
|
- lib/openc3/utilities/local_bucket.rb
|
|
1308
1321
|
- lib/openc3/utilities/local_mode.rb
|
|
1309
1322
|
- lib/openc3/utilities/logger.rb
|
|
@@ -1325,6 +1338,8 @@ files:
|
|
|
1325
1338
|
- lib/openc3/utilities/running_script.rb
|
|
1326
1339
|
- lib/openc3/utilities/s3_autoload.rb
|
|
1327
1340
|
- lib/openc3/utilities/script.rb
|
|
1341
|
+
- lib/openc3/utilities/script_env.rb
|
|
1342
|
+
- lib/openc3/utilities/script_message_signing.rb
|
|
1328
1343
|
- lib/openc3/utilities/secrets.rb
|
|
1329
1344
|
- lib/openc3/utilities/simulated_target.rb
|
|
1330
1345
|
- lib/openc3/utilities/sleeper.rb
|
|
@@ -1350,6 +1365,14 @@ files:
|
|
|
1350
1365
|
- templates/limits_response/response.rb
|
|
1351
1366
|
- templates/microservice/microservices/TEMPLATE/microservice.py
|
|
1352
1367
|
- templates/microservice/microservices/TEMPLATE/microservice.rb
|
|
1368
|
+
- templates/panel/.prettierrc.cjs
|
|
1369
|
+
- templates/panel/Rakefile
|
|
1370
|
+
- templates/panel/package.json
|
|
1371
|
+
- templates/panel/pnpm-workspace.yaml
|
|
1372
|
+
- templates/panel/src/Panel.js
|
|
1373
|
+
- templates/panel/src/Panel.vue
|
|
1374
|
+
- templates/panel/src/panelSdk.js
|
|
1375
|
+
- templates/panel/vite-Panel.config.js
|
|
1353
1376
|
- templates/plugin/.github/workflows/playwright.yml
|
|
1354
1377
|
- templates/plugin/.github/workflows/release.yml
|
|
1355
1378
|
- templates/plugin/.github/workflows/unit-tests.yml
|
|
@@ -1372,60 +1395,6 @@ files:
|
|
|
1372
1395
|
- templates/target/targets/TARGET/public/README.txt
|
|
1373
1396
|
- templates/target/targets/TARGET/screens/status.txt
|
|
1374
1397
|
- templates/target/targets/TARGET/target.txt
|
|
1375
|
-
- templates/tool_angular/.editorconfig
|
|
1376
|
-
- templates/tool_angular/.gitignore
|
|
1377
|
-
- templates/tool_angular/.vscode/extensions.json
|
|
1378
|
-
- templates/tool_angular/.vscode/launch.json
|
|
1379
|
-
- templates/tool_angular/.vscode/tasks.json
|
|
1380
|
-
- templates/tool_angular/angular.json
|
|
1381
|
-
- templates/tool_angular/extra-webpack.config.js
|
|
1382
|
-
- templates/tool_angular/package.json
|
|
1383
|
-
- templates/tool_angular/pnpm-workspace.yaml
|
|
1384
|
-
- templates/tool_angular/src/app/app-routing.module.ts
|
|
1385
|
-
- templates/tool_angular/src/app/app.component.html
|
|
1386
|
-
- templates/tool_angular/src/app/app.component.scss
|
|
1387
|
-
- templates/tool_angular/src/app/app.component.spec.ts
|
|
1388
|
-
- templates/tool_angular/src/app/app.component.ts
|
|
1389
|
-
- templates/tool_angular/src/app/app.module.ts
|
|
1390
|
-
- templates/tool_angular/src/app/custom-overlay-container.ts
|
|
1391
|
-
- templates/tool_angular/src/app/empty-route/empty-route.component.ts
|
|
1392
|
-
- templates/tool_angular/src/app/openc3-api.d.ts
|
|
1393
|
-
- templates/tool_angular/src/assets/.gitkeep
|
|
1394
|
-
- templates/tool_angular/src/environments/environment.prod.ts
|
|
1395
|
-
- templates/tool_angular/src/environments/environment.ts
|
|
1396
|
-
- templates/tool_angular/src/favicon.ico
|
|
1397
|
-
- templates/tool_angular/src/index.html
|
|
1398
|
-
- templates/tool_angular/src/main.single-spa.ts
|
|
1399
|
-
- templates/tool_angular/src/single-spa/asset-url.ts
|
|
1400
|
-
- templates/tool_angular/src/single-spa/single-spa-props.ts
|
|
1401
|
-
- templates/tool_angular/src/styles.scss
|
|
1402
|
-
- templates/tool_angular/tsconfig.app.json
|
|
1403
|
-
- templates/tool_angular/tsconfig.json
|
|
1404
|
-
- templates/tool_angular/tsconfig.spec.json
|
|
1405
|
-
- templates/tool_react/.eslintrc
|
|
1406
|
-
- templates/tool_react/.gitignore
|
|
1407
|
-
- templates/tool_react/.prettierignore
|
|
1408
|
-
- templates/tool_react/babel.config.json
|
|
1409
|
-
- templates/tool_react/jest.config.js
|
|
1410
|
-
- templates/tool_react/package.json
|
|
1411
|
-
- templates/tool_react/pnpm-workspace.yaml
|
|
1412
|
-
- templates/tool_react/src/openc3-tool_name.js
|
|
1413
|
-
- templates/tool_react/src/root.component.js
|
|
1414
|
-
- templates/tool_react/src/root.component.test.js
|
|
1415
|
-
- templates/tool_react/webpack.config.js
|
|
1416
|
-
- templates/tool_svelte/.gitignore
|
|
1417
|
-
- templates/tool_svelte/.prettierignore
|
|
1418
|
-
- templates/tool_svelte/.prettierrc.js
|
|
1419
|
-
- templates/tool_svelte/babel.config.js
|
|
1420
|
-
- templates/tool_svelte/build/smui.css
|
|
1421
|
-
- templates/tool_svelte/jest.config.js
|
|
1422
|
-
- templates/tool_svelte/package.json
|
|
1423
|
-
- templates/tool_svelte/pnpm-workspace.yaml
|
|
1424
|
-
- templates/tool_svelte/rollup.config.js
|
|
1425
|
-
- templates/tool_svelte/src/App.svelte
|
|
1426
|
-
- templates/tool_svelte/src/App.test.js
|
|
1427
|
-
- templates/tool_svelte/src/theme/_smui-theme.scss
|
|
1428
|
-
- templates/tool_svelte/src/tool_name.js
|
|
1429
1398
|
- templates/tool_vue/.env.standalone
|
|
1430
1399
|
- templates/tool_vue/.gitignore
|
|
1431
1400
|
- templates/tool_vue/.prettierrc.cjs
|
|
@@ -1439,7 +1408,6 @@ files:
|
|
|
1439
1408
|
- templates/tool_vue/src/tools/tool_name/tool_name.vue
|
|
1440
1409
|
- templates/tool_vue/vite.config.js
|
|
1441
1410
|
- templates/widget/.prettierrc.cjs
|
|
1442
|
-
- templates/widget/LICENSE.md
|
|
1443
1411
|
- templates/widget/Rakefile
|
|
1444
1412
|
- templates/widget/package.json
|
|
1445
1413
|
- templates/widget/pnpm-workspace.yaml
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# Editor configuration, see https://editorconfig.org
|
|
2
|
-
root = true
|
|
3
|
-
|
|
4
|
-
[*]
|
|
5
|
-
charset = utf-8
|
|
6
|
-
indent_style = space
|
|
7
|
-
indent_size = 2
|
|
8
|
-
insert_final_newline = true
|
|
9
|
-
trim_trailing_whitespace = true
|
|
10
|
-
|
|
11
|
-
[*.ts]
|
|
12
|
-
quote_type = single
|
|
13
|
-
|
|
14
|
-
[*.md]
|
|
15
|
-
max_line_length = off
|
|
16
|
-
trim_trailing_whitespace = false
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
|
2
|
-
|
|
3
|
-
# Compiled output
|
|
4
|
-
/dist
|
|
5
|
-
/tmp
|
|
6
|
-
/out-tsc
|
|
7
|
-
/bazel-out
|
|
8
|
-
|
|
9
|
-
# Node
|
|
10
|
-
/node_modules
|
|
11
|
-
npm-debug.log
|
|
12
|
-
pnpm-debug.log*
|
|
13
|
-
|
|
14
|
-
# IDEs and editors
|
|
15
|
-
.idea/
|
|
16
|
-
.project
|
|
17
|
-
.classpath
|
|
18
|
-
.c9/
|
|
19
|
-
*.launch
|
|
20
|
-
.settings/
|
|
21
|
-
*.sublime-workspace
|
|
22
|
-
|
|
23
|
-
# Visual Studio Code
|
|
24
|
-
.vscode/*
|
|
25
|
-
!.vscode/settings.json
|
|
26
|
-
!.vscode/tasks.json
|
|
27
|
-
!.vscode/launch.json
|
|
28
|
-
!.vscode/extensions.json
|
|
29
|
-
.history/*
|
|
30
|
-
|
|
31
|
-
# Miscellaneous
|
|
32
|
-
/.angular/cache
|
|
33
|
-
.sass-cache/
|
|
34
|
-
/connect.lock
|
|
35
|
-
/coverage
|
|
36
|
-
/libpeerconnection.log
|
|
37
|
-
testem.log
|
|
38
|
-
/typings
|
|
39
|
-
|
|
40
|
-
# System files
|
|
41
|
-
.DS_Store
|
|
42
|
-
Thumbs.db
|
|
43
|
-
|
|
44
|
-
tools/*
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
3
|
-
"version": "0.2.0",
|
|
4
|
-
"configurations": [
|
|
5
|
-
{
|
|
6
|
-
"name": "ng serve",
|
|
7
|
-
"type": "chrome",
|
|
8
|
-
"request": "launch",
|
|
9
|
-
"preLaunchTask": "npm: start",
|
|
10
|
-
"url": "http://localhost:4200/"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"name": "ng test",
|
|
14
|
-
"type": "chrome",
|
|
15
|
-
"request": "launch",
|
|
16
|
-
"preLaunchTask": "npm: test",
|
|
17
|
-
"url": "http://localhost:9876/debug.html"
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
|
|
3
|
-
"version": "2.0.0",
|
|
4
|
-
"tasks": [
|
|
5
|
-
{
|
|
6
|
-
"type": "npm",
|
|
7
|
-
"script": "start",
|
|
8
|
-
"isBackground": true,
|
|
9
|
-
"problemMatcher": {
|
|
10
|
-
"owner": "typescript",
|
|
11
|
-
"pattern": "$tsc",
|
|
12
|
-
"background": {
|
|
13
|
-
"activeOnStart": true,
|
|
14
|
-
"beginsPattern": {
|
|
15
|
-
"regexp": "(.*?)"
|
|
16
|
-
},
|
|
17
|
-
"endsPattern": {
|
|
18
|
-
"regexp": "bundle generation complete"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"type": "npm",
|
|
25
|
-
"script": "test",
|
|
26
|
-
"isBackground": true,
|
|
27
|
-
"problemMatcher": {
|
|
28
|
-
"owner": "typescript",
|
|
29
|
-
"pattern": "$tsc",
|
|
30
|
-
"background": {
|
|
31
|
-
"activeOnStart": true,
|
|
32
|
-
"beginsPattern": {
|
|
33
|
-
"regexp": "(.*?)"
|
|
34
|
-
},
|
|
35
|
-
"endsPattern": {
|
|
36
|
-
"regexp": "bundle generation complete"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
]
|
|
42
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
-
"version": 1,
|
|
4
|
-
"newProjectRoot": "projects",
|
|
5
|
-
"projects": {
|
|
6
|
-
"openc3-tool-<%= tool_name %>": {
|
|
7
|
-
"projectType": "application",
|
|
8
|
-
"schematics": {
|
|
9
|
-
"@schematics/angular:component": {
|
|
10
|
-
"style": "scss"
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
"root": "",
|
|
14
|
-
"sourceRoot": "src",
|
|
15
|
-
"prefix": "openc3-tool-<%= tool_name %>",
|
|
16
|
-
"architect": {
|
|
17
|
-
"build": {
|
|
18
|
-
"builder": "@angular-builders/custom-webpack:browser",
|
|
19
|
-
"options": {
|
|
20
|
-
"outputPath": "tools/<%= tool_name %>",
|
|
21
|
-
"index": "src/index.html",
|
|
22
|
-
"main": "src/main.single-spa.ts",
|
|
23
|
-
"polyfills": [
|
|
24
|
-
"zone.js"
|
|
25
|
-
],
|
|
26
|
-
"tsConfig": "tsconfig.app.json",
|
|
27
|
-
"inlineStyleLanguage": "scss",
|
|
28
|
-
"assets": [
|
|
29
|
-
"src/favicon.ico",
|
|
30
|
-
"src/assets"
|
|
31
|
-
],
|
|
32
|
-
"styles": [
|
|
33
|
-
"src/styles.scss"
|
|
34
|
-
],
|
|
35
|
-
"scripts": [],
|
|
36
|
-
"customWebpackConfig": {
|
|
37
|
-
"path": "extra-webpack.config.js",
|
|
38
|
-
"libraryName": "openc3-tool-<%= tool_name %>",
|
|
39
|
-
"libraryTarget": "system"
|
|
40
|
-
},
|
|
41
|
-
"deployUrl": "/tools/<%= tool_name %>"
|
|
42
|
-
},
|
|
43
|
-
"configurations": {
|
|
44
|
-
"production": {
|
|
45
|
-
"budgets": [
|
|
46
|
-
{
|
|
47
|
-
"type": "initial",
|
|
48
|
-
"maximumWarning": "500kb",
|
|
49
|
-
"maximumError": "1mb"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"type": "anyComponentStyle",
|
|
53
|
-
"maximumWarning": "150kb",
|
|
54
|
-
"maximumError": "150kb"
|
|
55
|
-
}
|
|
56
|
-
],
|
|
57
|
-
"outputHashing": "none"
|
|
58
|
-
},
|
|
59
|
-
"development": {
|
|
60
|
-
"buildOptimizer": false,
|
|
61
|
-
"optimization": false,
|
|
62
|
-
"vendorChunk": true,
|
|
63
|
-
"extractLicenses": false,
|
|
64
|
-
"sourceMap": true,
|
|
65
|
-
"namedChunks": true,
|
|
66
|
-
"outputHashing": "none"
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
"defaultConfiguration": "production"
|
|
70
|
-
},
|
|
71
|
-
"serve": {
|
|
72
|
-
"builder": "@angular-builders/custom-webpack:dev-server",
|
|
73
|
-
"configurations": {
|
|
74
|
-
"production": {
|
|
75
|
-
"browserTarget": "openc3-tool-<%= tool_name %>:build:production"
|
|
76
|
-
},
|
|
77
|
-
"development": {
|
|
78
|
-
"browserTarget": "openc3-tool-<%= tool_name %>:build:development"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"defaultConfiguration": "development"
|
|
82
|
-
},
|
|
83
|
-
"extract-i18n": {
|
|
84
|
-
"builder": "@angular-devkit/build-angular:extract-i18n",
|
|
85
|
-
"options": {
|
|
86
|
-
"browserTarget": "openc3-tool-<%= tool_name %>:build"
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
"test": {
|
|
90
|
-
"builder": "@angular-devkit/build-angular:karma",
|
|
91
|
-
"options": {
|
|
92
|
-
"polyfills": [
|
|
93
|
-
"zone.js",
|
|
94
|
-
"zone.js/testing"
|
|
95
|
-
],
|
|
96
|
-
"tsConfig": "tsconfig.spec.json",
|
|
97
|
-
"inlineStyleLanguage": "scss",
|
|
98
|
-
"assets": [
|
|
99
|
-
"src/favicon.ico",
|
|
100
|
-
"src/assets"
|
|
101
|
-
],
|
|
102
|
-
"styles": [
|
|
103
|
-
"src/styles.scss"
|
|
104
|
-
],
|
|
105
|
-
"scripts": []
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const singleSpaAngularWebpack = require('single-spa-angular/lib/webpack').default;
|
|
2
|
-
|
|
3
|
-
module.exports = (config, options) => {
|
|
4
|
-
const singleSpaWebpackConfig = singleSpaAngularWebpack(config, options);
|
|
5
|
-
|
|
6
|
-
// Feel free to modify this webpack config however you'd like to
|
|
7
|
-
return singleSpaWebpackConfig;
|
|
8
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "<%= tool_name %>",
|
|
3
|
-
"version": "7.5.1",
|
|
4
|
-
"scripts": {
|
|
5
|
-
"ng": "ng",
|
|
6
|
-
"start": "ng serve",
|
|
7
|
-
"build": "ng build",
|
|
8
|
-
"watch": "ng build --watch --configuration development",
|
|
9
|
-
"test": "ng test",
|
|
10
|
-
"build:single-spa:openc3-tool-template-angular": "ng build openc3-tool-<%= tool_name %> --configuration production",
|
|
11
|
-
"serve:single-spa:openc3-tool-template-angular": "ng s --project openc3-tool-<%= tool_name %> --disable-host-check --port 4200 --live-reload false"
|
|
12
|
-
},
|
|
13
|
-
"private": true,
|
|
14
|
-
"dependencies": {
|
|
15
|
-
"@angular/animations": "^18.2.6",
|
|
16
|
-
"@angular/cdk": "^18.2.6",
|
|
17
|
-
"@angular/common": "^18.2.6",
|
|
18
|
-
"@angular/compiler": "^18.2.6",
|
|
19
|
-
"@angular/core": "^18.2.6",
|
|
20
|
-
"@angular/forms": "^18.2.6",
|
|
21
|
-
"@angular/material": "^18.2.10",
|
|
22
|
-
"@angular/platform-browser": "^18.2.6",
|
|
23
|
-
"@angular/platform-browser-dynamic": "^18.2.6",
|
|
24
|
-
"@angular/router": "^18.2.6",
|
|
25
|
-
"@astrouxds/astro-web-components": "^7.24.0",
|
|
26
|
-
"@openc3/js-common": "7.5.1",
|
|
27
|
-
"rxjs": "~7.8.0",
|
|
28
|
-
"single-spa": "^5.9.5",
|
|
29
|
-
"single-spa-angular": "^9.2.0",
|
|
30
|
-
"tslib": "^2.7.0",
|
|
31
|
-
"zone.js": "^0.13.0"
|
|
32
|
-
},
|
|
33
|
-
"devDependencies": {
|
|
34
|
-
"@angular-builders/custom-webpack": "^18.0.0",
|
|
35
|
-
"@angular-devkit/build-angular": "^18.2.6",
|
|
36
|
-
"@angular/cli": "~18.2.6",
|
|
37
|
-
"@angular/compiler-cli": "^18.2.6",
|
|
38
|
-
"@types/jasmine": "~5.1.4",
|
|
39
|
-
"jasmine-core": "~5.4.0",
|
|
40
|
-
"karma": "~6.4.4",
|
|
41
|
-
"karma-chrome-launcher": "~3.2.0",
|
|
42
|
-
"karma-coverage": "~2.2.0",
|
|
43
|
-
"karma-jasmine": "~5.1.0",
|
|
44
|
-
"karma-jasmine-html-reporter": "~2.1.0",
|
|
45
|
-
"style-loader": "^4.0.0",
|
|
46
|
-
"typescript": "~5.5.4"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { RouterModule, Routes } from '@angular/router';
|
|
3
|
-
import {APP_BASE_HREF} from '@angular/common';
|
|
4
|
-
import { EmptyRouteComponent } from './empty-route/empty-route.component';
|
|
5
|
-
|
|
6
|
-
const routes: Routes = [
|
|
7
|
-
{ path: '**', component: EmptyRouteComponent }
|
|
8
|
-
];
|
|
9
|
-
|
|
10
|
-
@NgModule({
|
|
11
|
-
imports: [RouterModule.forRoot(routes)],
|
|
12
|
-
exports: [RouterModule],
|
|
13
|
-
providers: [{ provide: APP_BASE_HREF, useValue: '/tools/<%= tool_name %>' }]
|
|
14
|
-
})
|
|
15
|
-
export class AppRoutingModule { }
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<style>
|
|
2
|
-
.mat-mdc-card {
|
|
3
|
-
background: white;
|
|
4
|
-
}
|
|
5
|
-
</style>
|
|
6
|
-
|
|
7
|
-
<div class="content" role="main">
|
|
8
|
-
|
|
9
|
-
<mat-card color="accent">
|
|
10
|
-
<mat-card-content><button mat-raised-button color="primary" (click)="clickHandler()">Send Command</button></mat-card-content>
|
|
11
|
-
</mat-card>
|
|
12
|
-
|
|
13
|
-
<ng-template cdk-portal>
|
|
14
|
-
<div style="display: inline-block; width: 80%; text-align: center; font-size: 32px"><%= tool_name_display %></div>
|
|
15
|
-
<button mat-raised-button [matMenuTriggerFor]="menu" style="background-color: rgb(33, 150, 243)">File</button>
|
|
16
|
-
<mat-menu #menu="matMenu" class="myMenu" style="background-color: white">
|
|
17
|
-
<button mat-menu-item (click)="clickHandler()" style="background-color: rgb(33, 150, 243)">Send Command</button>
|
|
18
|
-
</mat-menu>
|
|
19
|
-
</ng-template>
|
|
20
|
-
</div>
|
|
21
|
-
|
|
22
|
-
<router-outlet></router-outlet>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
|
|
3
|
-
@include mat.core();
|
|
4
|
-
|
|
5
|
-
// Define a dark theme
|
|
6
|
-
$dark-theme: mat.m2-define-dark-theme((
|
|
7
|
-
color: (
|
|
8
|
-
primary: mat.m2-define-palette(mat.$m2-blue-palette),
|
|
9
|
-
accent: mat.m2-define-palette(mat.$m2-blue-grey-palette),
|
|
10
|
-
),
|
|
11
|
-
// Only include `typography` and `density` in the default dark theme.
|
|
12
|
-
typography: mat.m2-define-typography-config(),
|
|
13
|
-
density: 0,
|
|
14
|
-
));
|
|
15
|
-
|
|
16
|
-
// Apply the dark theme by default
|
|
17
|
-
@include mat.core-theme($dark-theme);
|
|
18
|
-
@include mat.button-theme($dark-theme);
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { TestBed } from '@angular/core/testing';
|
|
2
|
-
import { RouterTestingModule } from '@angular/router/testing';
|
|
3
|
-
import { AppComponent } from './app.component';
|
|
4
|
-
|
|
5
|
-
describe('AppComponent', () => {
|
|
6
|
-
beforeEach(() => TestBed.configureTestingModule({
|
|
7
|
-
imports: [RouterTestingModule],
|
|
8
|
-
declarations: [AppComponent]
|
|
9
|
-
}));
|
|
10
|
-
|
|
11
|
-
it('should create the app', () => {
|
|
12
|
-
const fixture = TestBed.createComponent(AppComponent);
|
|
13
|
-
const app = fixture.componentInstance;
|
|
14
|
-
expect(app).toBeTruthy();
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
it(`should have as title 'openc3-tool-<%= tool_name %>'`, () => {
|
|
18
|
-
const fixture = TestBed.createComponent(AppComponent);
|
|
19
|
-
const app = fixture.componentInstance;
|
|
20
|
-
expect(app.title).toEqual('openc3-tool-<%= tool_name %>');
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
it('should render title', () => {
|
|
24
|
-
const fixture = TestBed.createComponent(AppComponent);
|
|
25
|
-
fixture.detectChanges();
|
|
26
|
-
const compiled = fixture.nativeElement as HTMLElement;
|
|
27
|
-
expect(compiled.querySelector('.content span')?.textContent).toContain('openc3-tool-<%= tool_name %> app is running!');
|
|
28
|
-
});
|
|
29
|
-
});
|