Skip to content

Commit

Permalink
Move PluginRegistry in coreutils
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval committed May 22, 2024
1 parent 4bdd1e9 commit 6f0a921
Show file tree
Hide file tree
Showing 12 changed files with 1,245 additions and 1,163 deletions.
480 changes: 0 additions & 480 deletions packages/application/src/application.ts

This file was deleted.

489 changes: 487 additions & 2 deletions packages/application/src/index.ts

Large diffs are not rendered by default.

640 changes: 2 additions & 638 deletions packages/application/tests/src/index.spec.ts

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions packages/coreutils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
"test:webkit-headless": "cd tests && karma start --browsers=WebkitHeadless",
"watch": "tsc --build --watch"
},
"dependencies": {
"@lumino/algorithm": "^2.0.1"
},
"devDependencies": {
"@lumino/buildutils": "^2.0.1",
"@microsoft/api-extractor": "^7.36.0",
Expand Down
1 change: 1 addition & 0 deletions packages/coreutils/src/index.common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
|----------------------------------------------------------------------------*/
export * from './json';
export * from './mime';
export * from './plugins';
export * from './promise';
export * from './token';
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Distributed under the terms of the Modified BSD License.
import { topologicSort } from '@lumino/algorithm';

import { Token } from '@lumino/coreutils';
import { Token } from './token';

/**
* A user-defined application plugin.
Expand Down
53 changes: 53 additions & 0 deletions packages/coreutils/src/typing.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
* Copyright (c) Jupyter Development Team.
* Distributed under the terms of the Modified BSD License.
*/

/*
* Define typing for the console to restrict the DOM API to the minimal
* set compatible with the browser and Node.js
*/

interface Console {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static) */
assert(condition?: boolean, ...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static) */
clear(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) */
count(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) */
countReset(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) */
debug(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */
dir(item?: any, options?: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static) */
dirxml(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static) */
error(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) */
group(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) */
groupCollapsed(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) */
groupEnd(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) */
info(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static) */
log(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static) */
table(tabularData?: any, properties?: string[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) */
time(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) */
timeEnd(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) */
timeLog(label?: string, ...data: any[]): void;
timeStamp(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) */
trace(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static) */
warn(...data: any[]): void;
}

declare let console: Console;
1 change: 1 addition & 0 deletions packages/coreutils/tests/src/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@

import './json.spec';
import './mime.spec';
import './plugins.spec';
import './promise.spec';
import './token.spec';
Loading

0 comments on commit 6f0a921

Please sign in to comment.