trame-code 1.1.0__tar.gz → 1.1.1__tar.gz
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.
- {trame_code-1.1.0 → trame_code-1.1.1}/PKG-INFO +10 -1
- {trame_code-1.1.0 → trame_code-1.1.1}/README.rst +9 -0
- trame_code-1.1.1/docs/completion-hover.png +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/pyproject.toml +1 -1
- {trame_code-1.1.0 → trame_code-1.1.1}/src/trame_code/module/__init__.py +9 -3
- {trame_code-1.1.0 → trame_code-1.1.1}/.codespellrc +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/.github/workflows/test_and_release.yml +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/.gitignore +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/.pre-commit-config.yaml +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/CHANGELOG.md +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/CONTRIBUTING.rst +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/LICENSE +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/example/language-features/app.py +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/example/language-features/requirements.txt +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/example/live-state/app.py +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/example/live-state/requirements.txt +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/example/read-only/requirements.txt +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/example/read-only/viewer.py +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/example/read-only/viewer_vue3.py +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/example/textmate/app.py +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/example/textmate/files/javascript_example.js +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/example/textmate/files/latex_example.tex +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/example/textmate/files/moose_example.i +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/example/textmate/files/python_example.py +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/example/textmate/langs/__init__.py +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/example/textmate/langs/moose/__init__.py +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/example/textmate/langs/moose/moose.config.json +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/example/textmate/langs/moose/moose.grammar.json +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/example/textmate/langs/python/__init__.py +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/example/textmate/langs/python/python.config.json +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/example/textmate/langs/python/python.grammar.json +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/src/trame/__init__.py +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/src/trame/modules/__init__.py +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/src/trame/modules/code.py +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/src/trame/widgets/__init__.py +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/src/trame/widgets/code.py +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/src/trame_code/__init__.py +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/src/trame_code/module/.gitignore +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/src/trame_code/module/serve/monacoeditorwork/css.worker.bundle.js +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/src/trame_code/module/serve/monacoeditorwork/editor.worker.bundle.js +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/src/trame_code/module/serve/monacoeditorwork/html.worker.bundle.js +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/src/trame_code/module/serve/monacoeditorwork/json.worker.bundle.js +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/src/trame_code/module/serve/monacoeditorwork/ts.worker.bundle.js +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/src/trame_code/module/serve/style.css +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/src/trame_code/module/serve/trame-code.umd.js +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/src/trame_code/widgets/__init__.py +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/src/trame_code/widgets/code.py +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/tests/requirements.txt +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/tests/test_import.py +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/tests/test_language_features.py +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/vue-components/.eslintrc.cjs +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/vue-components/.gitignore +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/vue-components/.prettierrc.json +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/vue-components/README.md +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/vue-components/package-lock.json +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/vue-components/package.json +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/vue-components/src/components/Editor.js +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/vue-components/src/components/index.js +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/vue-components/src/themes/README.md +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/vue-components/src/themes/dark_plus.json +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/vue-components/src/themes/dark_plus_experimental.json +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/vue-components/src/themes/dark_vs.json +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/vue-components/src/themes/hc_black.json +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/vue-components/src/themes/hc_light.json +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/vue-components/src/themes/index.js +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/vue-components/src/themes/light_plus.json +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/vue-components/src/themes/light_plus_experimental.json +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/vue-components/src/themes/light_vs.json +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/vue-components/src/themes/reference-style-textmate.txt +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/vue-components/src/use.js +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/vue-components/src/utils/monacoEnv.js +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/vue-components/src/utils/onig.js +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/vue-components/src/utils/textmate.js +0 -0
- {trame_code-1.1.0 → trame_code-1.1.1}/vue-components/vite.config.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: trame-code
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.1
|
|
4
4
|
Summary: Widget for Monaco VS code editor for trame
|
|
5
5
|
Author: Kitware Inc.
|
|
6
6
|
License: MIT License
|
|
@@ -30,6 +30,15 @@ trame-code |pypi_download|
|
|
|
30
30
|
|
|
31
31
|
Widget for Monaco VS code editor for trame
|
|
32
32
|
|
|
33
|
+
The editor can surface language features (autocomplete and hover
|
|
34
|
+
documentation) from your own server-side callbacks: pass ``completion``
|
|
35
|
+
and ``hover`` callables to the widget. The example below shows Python/VTK
|
|
36
|
+
completion and a hover docstring driven entirely from those callbacks.
|
|
37
|
+
|
|
38
|
+
.. image:: https://raw.githubusercontent.com/Kitware/trame-code/master/docs/completion-hover.png
|
|
39
|
+
:alt: Monaco editor showing Python/VTK completion and a hover docstring
|
|
40
|
+
:align: center
|
|
41
|
+
|
|
33
42
|
|
|
34
43
|
License
|
|
35
44
|
-----------------------------------------------------------
|
|
@@ -6,6 +6,15 @@ trame-code |pypi_download|
|
|
|
6
6
|
|
|
7
7
|
Widget for Monaco VS code editor for trame
|
|
8
8
|
|
|
9
|
+
The editor can surface language features (autocomplete and hover
|
|
10
|
+
documentation) from your own server-side callbacks: pass ``completion``
|
|
11
|
+
and ``hover`` callables to the widget. The example below shows Python/VTK
|
|
12
|
+
completion and a hover docstring driven entirely from those callbacks.
|
|
13
|
+
|
|
14
|
+
.. image:: https://raw.githubusercontent.com/Kitware/trame-code/master/docs/completion-hover.png
|
|
15
|
+
:alt: Monaco editor showing Python/VTK completion and a hover docstring
|
|
16
|
+
:align: center
|
|
17
|
+
|
|
9
18
|
|
|
10
19
|
License
|
|
11
20
|
-----------------------------------------------------------
|
|
Binary file
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
from pathlib import Path
|
|
2
2
|
|
|
3
|
+
from trame_code import __version__
|
|
4
|
+
|
|
3
5
|
# Compute local path to serve
|
|
4
6
|
serve_path = str(Path(__file__).with_name("serve").resolve())
|
|
5
7
|
|
|
8
|
+
# Version the served directory so a client re-fetches JS/CSS after an upgrade
|
|
9
|
+
# instead of getting a stale bundle from the browser cache.
|
|
10
|
+
serve_directory = f"__trame_code_{__version__}"
|
|
11
|
+
|
|
6
12
|
# Serve directory for JS/CSS files
|
|
7
|
-
serve = {
|
|
13
|
+
serve = {serve_directory: serve_path}
|
|
8
14
|
|
|
9
15
|
# List of JS files to load (usually from the serve path above)
|
|
10
|
-
scripts = ["
|
|
16
|
+
scripts = [f"{serve_directory}/trame-code.umd.js"]
|
|
11
17
|
|
|
12
18
|
# List of CSS files to load (usually from the serve path above)
|
|
13
|
-
styles = ["
|
|
19
|
+
styles = [f"{serve_directory}/style.css"]
|
|
14
20
|
|
|
15
21
|
# List of Vue plugins to install/load
|
|
16
22
|
vue_use = ["trame_code"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trame_code-1.1.0 → trame_code-1.1.1}/vue-components/src/themes/light_plus_experimental.json
RENAMED
|
File without changes
|
|
File without changes
|
{trame_code-1.1.0 → trame_code-1.1.1}/vue-components/src/themes/reference-style-textmate.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|