Browse Source

Updates for 0.34.

Ian Rose 6 years ago
parent
commit
41ef5b9525

+ 9 - 9
packages/toc/package.json

@@ -32,15 +32,15 @@
     "watch": "tsc -w"
   },
   "dependencies": {
-    "@jupyterlab/application": "^0.17.0",
-    "@jupyterlab/apputils": "^0.17.0",
-    "@jupyterlab/cells": "^0.17.0",
-    "@jupyterlab/coreutils": "^2.0.0",
-    "@jupyterlab/docmanager": "^0.17.0",
-    "@jupyterlab/docregistry": "^0.17.0",
-    "@jupyterlab/fileeditor": "^0.17.0",
-    "@jupyterlab/notebook": "^0.17.0",
-    "@jupyterlab/rendermime": "^0.17.0",
+    "@jupyterlab/application": "^0.18.0",
+    "@jupyterlab/apputils": "^0.18.0",
+    "@jupyterlab/cells": "^0.18.0",
+    "@jupyterlab/coreutils": "^2.1.0",
+    "@jupyterlab/docmanager": "^0.18.0",
+    "@jupyterlab/docregistry": "^0.18.0",
+    "@jupyterlab/fileeditor": "^0.18.0",
+    "@jupyterlab/notebook": "^0.18.0",
+    "@jupyterlab/rendermime": "^0.18.0",
     "@phosphor/algorithm": "^1.1.2",
     "@phosphor/coreutils": "^1.3.0",
     "@phosphor/messaging": "^1.2.2",

+ 2 - 1
packages/toc/src/extension.ts

@@ -66,7 +66,8 @@ function activateTOC(
   const registry = new TableOfContentsRegistry();
 
   // Add the ToC to the left area.
-  toc.title.label = 'Contents';
+  toc.title.iconClass = 'jp-TableOfContents-icon jp-SideBar-tabIcon';
+  toc.title.caption = 'Table of Contents';
   toc.id = 'table-of-contents';
   app.shell.addToLeftArea(toc, { rank: 700 });
 

+ 8 - 0
packages/toc/style/index.css

@@ -50,3 +50,11 @@
   padding: 12px 0 4px 12px;
   text-transform: uppercase;
 }
+
+[data-theme-light='true'] .jp-TableOfContents-icon {
+  background-image: url(list-light.svg);
+}
+
+[data-theme-light='false'] .jp-TableOfContents-icon {
+  background-image: url(list-dark.svg);
+}

+ 1 - 0
packages/toc/style/list-dark.svg

@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path fill="#E0E0E0" d="M7,5H21V7H7V5M7,13V11H21V13H7M4,4.5A1.5,1.5 0 0,1 5.5,6A1.5,1.5 0 0,1 4,7.5A1.5,1.5 0 0,1 2.5,6A1.5,1.5 0 0,1 4,4.5M4,10.5A1.5,1.5 0 0,1 5.5,12A1.5,1.5 0 0,1 4,13.5A1.5,1.5 0 0,1 2.5,12A1.5,1.5 0 0,1 4,10.5M7,19V17H21V19H7M4,16.5A1.5,1.5 0 0,1 5.5,18A1.5,1.5 0 0,1 4,19.5A1.5,1.5 0 0,1 2.5,18A1.5,1.5 0 0,1 4,16.5Z" /></svg>

+ 1 - 0
packages/toc/style/list-light.svg

@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path fill="#616161" d="M7,5H21V7H7V5M7,13V11H21V13H7M4,4.5A1.5,1.5 0 0,1 5.5,6A1.5,1.5 0 0,1 4,7.5A1.5,1.5 0 0,1 2.5,6A1.5,1.5 0 0,1 4,4.5M4,10.5A1.5,1.5 0 0,1 5.5,12A1.5,1.5 0 0,1 4,13.5A1.5,1.5 0 0,1 2.5,12A1.5,1.5 0 0,1 4,10.5M7,19V17H21V19H7M4,16.5A1.5,1.5 0 0,1 5.5,18A1.5,1.5 0 0,1 4,19.5A1.5,1.5 0 0,1 2.5,18A1.5,1.5 0 0,1 4,16.5Z" /></svg>