trame-code 1.0.0__py3-none-any.whl
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/__init__.py +1 -0
- trame/modules/__init__.py +1 -0
- trame/modules/code.py +1 -0
- trame/widgets/__init__.py +1 -0
- trame/widgets/code.py +7 -0
- trame_code/__init__.py +3 -0
- trame_code/module/__init__.py +25 -0
- trame_code/module/serve/monacoeditorwork/css.worker.bundle.js +47100 -0
- trame_code/module/serve/monacoeditorwork/editor.worker.bundle.js +10318 -0
- trame_code/module/serve/monacoeditorwork/html.worker.bundle.js +26349 -0
- trame_code/module/serve/monacoeditorwork/json.worker.bundle.js +17578 -0
- trame_code/module/serve/monacoeditorwork/ts.worker.bundle.js +181666 -0
- trame_code/module/serve/style.css +1 -0
- trame_code/module/serve/trame-code.umd.js +1885 -0
- trame_code/widgets/__init__.py +0 -0
- trame_code/widgets/code.py +28 -0
- trame_code-1.0.0.dist-info/LICENSE +21 -0
- trame_code-1.0.0.dist-info/METADATA +50 -0
- trame_code-1.0.0.dist-info/RECORD +21 -0
- trame_code-1.0.0.dist-info/WHEEL +5 -0
- trame_code-1.0.0.dist-info/top_level.txt +2 -0
trame/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
|
trame/modules/code.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from trame_code.module import *
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
|
trame/widgets/code.py
ADDED
trame_code/__init__.py
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
from pathlib import Path
|
|
2
|
+
|
|
3
|
+
# Compute local path to serve
|
|
4
|
+
serve_path = str(Path(__file__).with_name("serve").resolve())
|
|
5
|
+
|
|
6
|
+
# Serve directory for JS/CSS files
|
|
7
|
+
serve = {"__trame_code": serve_path}
|
|
8
|
+
|
|
9
|
+
# List of JS files to load (usually from the serve path above)
|
|
10
|
+
scripts = ["__trame_code/trame-code.umd.js"]
|
|
11
|
+
|
|
12
|
+
# List of CSS files to load (usually from the serve path above)
|
|
13
|
+
styles = ["__trame_code/style.css"]
|
|
14
|
+
|
|
15
|
+
# List of Vue plugins to install/load
|
|
16
|
+
vue_use = ["trame_code"]
|
|
17
|
+
|
|
18
|
+
# Uncomment to add entries to the shared state
|
|
19
|
+
# state = {}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# Optional if you want to execute custom initialization at module load
|
|
23
|
+
def setup(app, **kwargs):
|
|
24
|
+
"""Method called at initialization with possibly some custom keyword arguments"""
|
|
25
|
+
pass
|