cosmosc2-tool-scriptrunner 5.0.2.pre.beta2
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 +7 -0
- data/LICENSE.txt +693 -0
- data/README.md +29 -0
- data/Rakefile +35 -0
- data/plugin.txt +3 -0
- data/tools/scriptrunner/index.html +4 -0
- data/tools/scriptrunner/js/302.js +2 -0
- data/tools/scriptrunner/js/302.js.map +1 -0
- data/tools/scriptrunner/js/944.js +2 -0
- data/tools/scriptrunner/js/944.js.map +1 -0
- data/tools/scriptrunner/js/app.js +2 -0
- data/tools/scriptrunner/js/app.js.map +1 -0
- metadata +57 -0
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
## COSMOS Tool Script Runner Plugin
|
2
|
+
|
3
|
+
[Documentation](http://cosmosrb.com)
|
4
|
+
|
5
|
+
This plugin provides the Script Runner user interface
|
6
|
+
|
7
|
+
## Getting Started
|
8
|
+
|
9
|
+
1. At the COSMOS Admin - Plugins, upload the cosmosc2-tool-scriptrunner.gem file
|
10
|
+
|
11
|
+
## Contributing
|
12
|
+
|
13
|
+
We encourage you to contribute to COSMOS!
|
14
|
+
|
15
|
+
Contributing is easy.
|
16
|
+
|
17
|
+
1. Fork the project
|
18
|
+
2. Create a feature branch
|
19
|
+
3. Make your changes
|
20
|
+
4. Submit a pull request
|
21
|
+
|
22
|
+
Before any contributions can be incorporated we do require all contributors to sign a Contributor License Agreement here:
|
23
|
+
[Contributor License Agreement](https://docs.google.com/forms/d/1ppnHUSXtY1GRTNPIyUaB1OYHbW5Ca67GFMgMRPBG8u0/viewform)
|
24
|
+
|
25
|
+
This protects both you and us and you retain full rights to any code you write.
|
26
|
+
|
27
|
+
## License
|
28
|
+
|
29
|
+
This Ball Aerospace plugin is released under the AGPLv3.0 with a few addendums. See [LICENSE.txt](LICENSE.txt)
|
data/Rakefile
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# encoding: ascii-8bit
|
2
|
+
|
3
|
+
# Copyright 2022 Ball Aerospace & Technologies Corp.
|
4
|
+
# All Rights Reserved.
|
5
|
+
#
|
6
|
+
# This program is free software; you can modify and/or redistribute it
|
7
|
+
# under the terms of the GNU Affero General Public License
|
8
|
+
# as published by the Free Software Foundation; version 3 with
|
9
|
+
# attribution addendums as found in the LICENSE.txt
|
10
|
+
#
|
11
|
+
# This program is distributed in the hope that it will be useful,
|
12
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
|
+
# GNU Affero General Public License for more details.
|
15
|
+
#
|
16
|
+
# This program may also be used under the terms of a commercial or
|
17
|
+
# enterprise edition license of COSMOS if purchased from the
|
18
|
+
# copyright holder
|
19
|
+
|
20
|
+
PLUGIN_NAME = Dir['*.gemspec'][0].split('.')[0..-2].join('.')
|
21
|
+
|
22
|
+
task :require_version do
|
23
|
+
unless ENV['VERSION']
|
24
|
+
puts "VERSION is required: rake <task> VERSION=X.X.X"
|
25
|
+
exit 1
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
task :build => [:require_version] do
|
30
|
+
_, platform, *_ = RUBY_PLATFORM.split("-")
|
31
|
+
if platform == 'mswin32' or platform == 'mingw32'
|
32
|
+
puts "Warning: Building gem on Windows will lose file permissions"
|
33
|
+
end
|
34
|
+
system("gem build #{PLUGIN_NAME}")
|
35
|
+
end
|
data/plugin.txt
ADDED
@@ -0,0 +1,4 @@
|
|
1
|
+
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vue App</title><main><h1>Your Microfrontend is not here</h1><p>The @cosmosc2/tool-scriptrunner microfrontend is running in "integrated" mode, since standalone-single-spa-webpack-plugin is disabled. This means that it does not work as a standalone application without changing configuration.</p><h2>How do I develop this microfrontend?</h2><p>To develop this microfrontend, try the following steps:</p><ol><li>Copy the following URL to your clipboard: <a target="_blank" rel="noopener" id="mf-url"></a></li><li>In a new browser tab, go to the your single-spa web app. This is where your "root config" is running. You do not have to run the root config locally if it is already running on a deployed environment - go to the deployed environment directly.</li><li>In the browser console, run <code>localStorage.setItem('devtools', true);</code> Refresh the page.</li><li>A yellowish rectangle should appear at the bottom right of your screen. Click on it. Find the name @cosmosc2/tool-scriptrunner and click on it. If it is not present, click on Add New Module.</li><li>Paste the URL above into the input that appears. Refresh the page.</li><li>Congrats, your local code is now being used!</li></ol><p></p><p>For further information about "integrated" mode, see the following links:</p><ul><li><a target="_blank" rel="noopener" href="https://single-spa.js.org/docs/recommended-setup#local-development">Local Development Overview</a></li><li><a target="_blank" rel="noopener" href="https://github.com/joeldenning/import-map-overrides">Import Map Overrides Documentation</a></li></ul><p></p><h2>If you prefer Standalone mode</h2><p>To run this microfrontend in "standalone" mode, the standalone-single-spa-webpack-plugin must not be disabled. In some cases, this is done by running <code>npm run start:standalone</code>. Alternatively, you can add <code>--env standalone</code> to your package.json start script if you are using webpack-config-single-spa.</p>If neither of those work for you, see more details about enabling standalone mode at <a target="_blank" rel="noopener" href="https://github.com/single-spa/standalone-single-spa-webpack-plugin">Standalone Plugin Documentation</a>.<p></p><script>const mfLink = document.getElementById('mf-url');
|
2
|
+
const fullSrc = new URL('/tools/scriptrunner//tools/scriptrunner/js/app.js', window.location.href);
|
3
|
+
mfLink.href = fullSrc;
|
4
|
+
mfLink.textContent = fullSrc;</script></main></head><body><div id="app"></div></body></html>
|