Skip to content

Commit 14e2983

Browse files
authored
Merge branch 'master' into jupyterlab_update
2 parents b83ac1d + 4bf6ae5 commit 14e2983

16 files changed

+133
-5
lines changed

LICENSE

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,37 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2020, jupytercalpoly
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
1. Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
2. Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
3. Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30+
31+
-----------------------------------------------------------------------------------------------------------------
32+
Some lines of code in this extension are from Elyra's code snippet extension (https://github.com/elyra-ai/elyra).
33+
-----------------------------------------------------------------------------------------------------------------
34+
135
Apache License
236
Version 2.0, January 2004
337
http://www.apache.org/licenses/
@@ -199,7 +233,3 @@
199233
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200234
See the License for the specific language governing permissions and
201235
limitations under the License.
202-
203-
------------------------------------------------------------------------------------
204-
This extension is derived from Elyra's code snippet design (https://github.com/elyra-ai/elyra).
205-
------------------------------------------------------------------------------------

src/CodeSnippetContentsService.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
14
import { ContentsManager, Drive, Contents } from '@jupyterlab/services';
25

36
export interface ICodeSnippet {

src/CodeSnippetDisplay.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
4+
// Some lines of code are from Elyra Code Snippet.
5+
6+
/*
7+
* Copyright 2018-2020 IBM Corporation
8+
* Licensed under the Apache License, Version 2.0 (the "License");
9+
* you may not use this file except in compliance with the License.
10+
* You may obtain a copy of the License at
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions a* limitations under the License.
16+
*/
17+
118
import { Clipboard, Dialog, showDialog } from '@jupyterlab/apputils';
219
import { PathExt } from '@jupyterlab/coreutils';
320
import { DocumentWidget } from '@jupyterlab/docregistry';

src/CodeSnippetEditor.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
4+
// Some lines of code are from Elyra Code Snippet.
5+
6+
/*
7+
* Copyright 2018-2020 IBM Corporation
8+
* Licensed under the Apache License, Version 2.0 (the "License");
9+
* you may not use this file except in compliance with the License.
10+
* You may obtain a copy of the License at
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions a* limitations under the License.
16+
*/
17+
118
import { CodeEditor, IEditorServices } from '@jupyterlab/codeeditor';
219
import {
320
ReactWidget,

src/CodeSnippetEditorTags.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
14
import { checkIcon, addIcon } from '@jupyterlab/ui-components';
25

36
import React from 'react';

src/CodeSnippetForm.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
14
import { closeIcon, Button, LabIcon } from '@jupyterlab/ui-components';
25
import { WidgetTracker, ReactWidget, Styling } from '@jupyterlab/apputils';
36

src/CodeSnippetInputDialog.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
14
import { showDialog, Dialog } from '@jupyterlab/apputils';
25
import { addIcon, checkIcon } from '@jupyterlab/ui-components';
36
import { Contents } from '@jupyterlab/services';

src/CodeSnippetLanguages.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
14
import { LabIcon } from '@jupyterlab/ui-components';
25

36
import babelSVGstr from '../style/icon/language_icons/babel.svg';

src/CodeSnippetWidget.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
4+
// Some lines of code are from Elyra Code Snippet.
5+
6+
/*
7+
* Copyright 2018-2020 IBM Corporation
8+
* Licensed under the Apache License, Version 2.0 (the "License");
9+
* you may not use this file except in compliance with the License.
10+
* You may obtain a copy of the License at
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions a* limitations under the License.
16+
*/
17+
118
import { ReactWidget, UseSignal } from '@jupyterlab/apputils';
219
import { JupyterFrontEnd } from '@jupyterlab/application';
320
import { IEditorServices } from '@jupyterlab/codeeditor';

src/CodeSnippetWidgetModel.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
14
import {
25
ICodeSnippet,
36
CodeSnippetContentsService

src/ConfirmMessage.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
14
import { WidgetTracker, ReactWidget } from '@jupyterlab/apputils';
25

36
import { Widget, PanelLayout, Panel } from '@lumino/widgets';

src/FilterTools.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
14
import { InputGroup, checkIcon } from '@jupyterlab/ui-components';
25

36
import React from 'react';

src/MoreOptions.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
14
import { WidgetTracker, ReactWidget } from '@jupyterlab/apputils';
25

36
import { Widget, PanelLayout, Panel } from '@lumino/widgets';

src/PreviewSnippet.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
14
import { WidgetTracker, ReactWidget } from '@jupyterlab/apputils';
25
import { CodeEditor, IEditorServices } from '@jupyterlab/codeeditor';
36

src/index.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
// Copyright (c) 2020, jupytercalpoly
2+
// Distributed under the terms of the BSD-3 Clause License.
3+
4+
// Some lines of code are from Elyra Code Snippet.
5+
6+
/*
7+
* Copyright 2018-2020 IBM Corporation
8+
* Licensed under the Apache License, Version 2.0 (the "License");
9+
* you may not use this file except in compliance with the License.
10+
* You may obtain a copy of the License at
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions a* limitations under the License.
16+
*/
17+
118
import {
219
JupyterFrontEnd,
320
JupyterFrontEndPlugin,

style/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@import url('base.css');
1+
@import url('base.css');

0 commit comments

Comments
 (0)