Skip to content

Commit 454c0af

Browse files
authored
Revert "Voilite POC (#1187)"
This reverts commit 0b013b4.
1 parent 0b013b4 commit 454c0af

37 files changed

+858
-3259
lines changed

.binder/postBuild

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,4 @@ jlpm && jlpm run build
66
python -m pip install -e .
77
jupyter labextension develop . --overwrite
88
jupyter server extension enable voila.server_extension --sys-prefix
9-
jupyter serverextension enable voila.server_extension --sys-prefix
10-
11-
# force installing ipywidgets 8
12-
python -m pip install --pre -U ipywidgets
9+
jupyter serverextension enable voila.server_extension --sys-prefix

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ share/jupyter/voila/templates/reveal/static/materialcolors.css
4141
lib
4242

4343
voila/labextension
44-
voila/voilite/static/**/*
45-
4644
tsconfig.tsbuildinfo
4745

4846
ui-tests/playwright-report

packages/voila/src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@
1010
export * from './app';
1111
export * from './manager';
1212
export * from './shell';
13-
export * from './output';
14-
export * from './plugins';
13+
14+
import * as plugins from './plugins';
15+
16+
export { plugins };

packages/voila/src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import { PageConfig, URLExt } from '@jupyterlab/coreutils';
1818

1919
import { VoilaApp } from './app';
2020
import { VoilaShell } from './shell';
21-
import plugins from './plugins';
2221

2322
function loadScript(url: string): Promise<any> {
2423
return new Promise((resolve, reject) => {
@@ -69,8 +68,9 @@ async function main() {
6968
// This would also need the theme manager plugin and settings
7069
// require('@jupyterlab/theme-light-extension'),
7170
// require('@jupyterlab/theme-dark-extension'),
72-
plugins
71+
require('./plugins')
7372
];
73+
7474
const mimeExtensions = [require('@jupyterlab/json-extension')];
7575

7676
/**

packages/voila/src/plugins.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import { WidgetManager as VoilaWidgetManager } from './manager';
3434
/**
3535
* The default paths.
3636
*/
37-
export const pathsPlugin: JupyterFrontEndPlugin<JupyterFrontEnd.IPaths> = {
37+
const paths: JupyterFrontEndPlugin<JupyterFrontEnd.IPaths> = {
3838
id: '@voila-dashboards/voila:paths',
3939
activate: (
4040
app: JupyterFrontEnd<JupyterFrontEnd.IShell>
@@ -51,7 +51,7 @@ export const pathsPlugin: JupyterFrontEndPlugin<JupyterFrontEnd.IPaths> = {
5151
* TODO: a cleaner solution would involve a custom ServiceManager to the VoilaApp
5252
* to prevent the default behavior of polling the /api endpoints.
5353
*/
54-
export const stopPollingPlugin: JupyterFrontEndPlugin<void> = {
54+
const stopPolling: JupyterFrontEndPlugin<void> = {
5555
id: '@voila-dashboards/voila:stop-polling',
5656
autoStart: true,
5757
activate: (app: JupyterFrontEnd): void => {
@@ -69,7 +69,7 @@ export const stopPollingPlugin: JupyterFrontEndPlugin<void> = {
6969
/**
7070
* A simplified Translator
7171
*/
72-
export const translatorPlugin: JupyterFrontEndPlugin<ITranslator> = {
72+
const translator: JupyterFrontEndPlugin<ITranslator> = {
7373
id: '@voila-dashboards/voila:translator',
7474
activate: (app: JupyterFrontEnd<JupyterFrontEnd.IShell>): ITranslator => {
7575
const translationManager = new TranslationManager();
@@ -82,7 +82,7 @@ export const translatorPlugin: JupyterFrontEndPlugin<ITranslator> = {
8282
/**
8383
* The Voila widgets manager plugin.
8484
*/
85-
export const widgetManager: JupyterFrontEndPlugin<IJupyterWidgetRegistry> = {
85+
const widgetManager: JupyterFrontEndPlugin<IJupyterWidgetRegistry> = {
8686
id: '@voila-dashboards/voila:widget-manager',
8787
autoStart: true,
8888
requires: [IRenderMimeRegistry],
@@ -135,9 +135,9 @@ export const widgetManager: JupyterFrontEndPlugin<IJupyterWidgetRegistry> = {
135135
* Export the plugins as default.
136136
*/
137137
const plugins: JupyterFrontEndPlugin<any>[] = [
138-
pathsPlugin,
139-
stopPollingPlugin,
140-
translatorPlugin,
138+
paths,
139+
stopPolling,
140+
translator,
141141
widgetManager
142142
];
143143

packages/voilite/package.json

Lines changed: 0 additions & 93 deletions
This file was deleted.

packages/voilite/publicpath.js

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)