Skip to content

Commit d05513f

Browse files
authored
Merge pull request #162 from jahn96/final_update
Final update to 2.0
2 parents c5eaebf + 377cd20 commit d05513f

File tree

6 files changed

+13
-9
lines changed

6 files changed

+13
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Save, reuse, and share code snippets using JupyterLab Code Snippets
44

5-
![Github Actions Status](https://github.com/jupytercalpoly/jupyterlab-code-snippets/workflows/Build/badge.svg) [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/jahn96/jupyterlab-code-snippets.git/jupyterlab_update?urlpath=lab) [![NPM Version](https://img.shields.io/npm/v/jupyterlab-code-snippets.svg?style=flat)](https://npmjs.org/package/jupyterlab-code-snippets 'View this project on npm') [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/jupytercalpoly/jupyterlab-code-snippets/blob/master/LICENSE) [![Documentation Status](https://readthedocs.org/projects/jupyterlab-code-snippets-documentation/badge/?version=latest)](https://jupyterlab-code-snippets-documentation.readthedocs.io/en/latest/?badge=latest)
5+
![Github Actions Status](https://github.com/jupytercalpoly/jupyterlab-code-snippets/workflows/Build/badge.svg) [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/jupytercalpoly/jupyterlab-code-snippets.git/master?urlpath=lab) [![Node version](https://img.shields.io/node/v/jupyterlab-code-snippets.svg?style=flat)](https://npmjs.org/package/jupyterlab-code-snippets 'View this project on npm')[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)[![Documentation Status](https://readthedocs.org/projects/jupyterlab-code-snippets-documentation/badge/?version=latest)](https://jupyterlab-code-snippets-documentation.readthedocs.io/en/latest/?badge=latest)
66

77
This extension is a derivative of [Elyra](https://github.com/elyra-ai/elyra)'s original design and further developed by Jupyter Cal Poly Team.
88

binder/postBuild

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,18 @@ _('rm', '-rf', './code_snippet')
5858
_('rm', '-rf', './code_snippet.egg-info')
5959
_('rm', '-rf', './schema')
6060
_('rm', '-rf', './node_modules')
61+
_('rm', '-rf', './coverage')
62+
_('rm', '-rf', './test')
63+
_('rm', '-rf', './testutils')
6164
_('rm', './install.json')
6265
_('rm', './package.json')
6366
_('rm', './PROGRESS.md')
6467
_('rm', './setup.py')
6568
_('rm', './pyproject.toml')
6669
_('rm', './tsconfig.json')
70+
_('rm', './tsconfig.test.json')
71+
_('rm', './babel.config.js')
72+
_('rm', './jest.config.js')
6773
_('rm', './tsconfig.tsbuildinfo')
6874
_('rm', './yarn.lock')
6975
_('rm', './MANIFEST.in')

docs/getting_started/changelog.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,17 @@
22

33
Changelog
44
---------
5-
6-
v1.1.0
5+
v2.0.0
76
^^^^^^
87
* Fixed the issue with the keyboard shortcut by making it user-configurable.
98
* Fixed broken behavior of drag and drop.
109
* Made the UI more consistent.
1110
* Added a new feature to rename the code snippet in the code snippet panel easily by double-clicking its name.
1211
* Improved the search feature with fuzzy search.
13-
* Added a function to save the entire cell as a code snippet.
12+
* Added a function to save the entire cell(s) as a code snippet without highlighting code.
1413
* Added multi-cell saving by right clicking and saving as a code snippet.
1514
* Changed preview height to match the height of code snippet box at the maximum.
1615

17-
1816
v1.0.4
1917
^^^^^^
2018
* Fixed the issue with deleting a snippet while searching or filtering

docs/getting_started/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Installation
55

66
Requirements
77
~~~~~~~~~~~~
8-
JupyterLab >= 2.2
8+
JupyterLab >= 3.0
99

1010
Install
1111
~~~~~~~

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jupyterlab-code-snippets",
3-
"version": "1.0.4",
3+
"version": "2.0.0",
44
"description": "EXPERIMENTAL: Save, reuse, and share code snippets using JupyterLab Code Snippets",
55
"keywords": [
66
"jupyter",

src/CodeSnippetInputDialog.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ class Private {
357357

358358
const addTagElem = document.createElement('ul');
359359
addTagElem.className = `${CODE_SNIPPET_INPUT_TAG} tag unapplied-tag`;
360-
const newTagName = document.createElement('span');
360+
const newTagName = document.createElement('button');
361361
newTagName.innerText = 'Add Tag';
362362
newTagName.style.cursor = 'pointer';
363363
addTagElem.appendChild(newTagName);
@@ -468,7 +468,7 @@ class Private {
468468
});
469469

470470
// change input to span
471-
const newTagName = document.createElement('span');
471+
const newTagName = document.createElement('button');
472472
newTagName.innerText = 'Add Tag';
473473
newTagName.style.cursor = 'pointer';
474474
inputElement.parentElement.replaceChild(newTagName, inputElement);

0 commit comments

Comments
 (0)