@girder/core 3.2.7 → 5.0.0-a10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -0
- package/dist-lib/Girder_Favicon.png +0 -0
- package/dist-lib/fontello/node_modules/ansi-regex/index.d.ts +37 -0
- package/dist-lib/fontello/node_modules/ansi-styles/index.d.ts +345 -0
- package/dist-lib/fontello/node_modules/big-integer/BigInteger.d.ts +2393 -0
- package/dist-lib/fontello/node_modules/fontello-cli/node_modules/colors/safe.d.ts +48 -0
- package/dist-lib/fontello/node_modules/has-flag/index.d.ts +39 -0
- package/dist-lib/fontello/node_modules/iconv-lite/lib/index.d.ts +24 -0
- package/dist-lib/fontello/node_modules/is-docker/index.d.ts +15 -0
- package/dist-lib/fontello/node_modules/is-plain-object/index.d.ts +5 -0
- package/dist-lib/fontello/node_modules/is-wsl/index.d.ts +15 -0
- package/dist-lib/fontello/node_modules/isobject/index.d.ts +5 -0
- package/dist-lib/fontello/node_modules/open/index.d.ts +88 -0
- package/dist-lib/fontello/node_modules/safe-buffer/index.d.ts +187 -0
- package/dist-lib/fontello/node_modules/strip-ansi/index.d.ts +17 -0
- package/dist-lib/girder-core.js +57770 -0
- package/dist-lib/girder-core.js.map +1 -0
- package/dist-lib/girder-core.umd.cjs +1572 -0
- package/dist-lib/girder-core.umd.cjs.map +1 -0
- package/dist-lib/index.d.ts +1 -0
- package/{auth.js → dist-lib/src/auth.js} +1 -41
- package/{collections → dist-lib/src/collections}/AssetstoreCollection.js +2 -1
- package/{constants.js → dist-lib/src/constants.js} +0 -1
- package/dist-lib/src/index.d.ts +23 -0
- package/dist-lib/src/index.ts +80 -0
- package/dist-lib/src/main.ts +46 -0
- package/{models → dist-lib/src/models}/FolderModel.js +1 -1
- package/{rest.js → dist-lib/src/rest.js} +12 -7
- package/{routes.js → dist-lib/src/routes.js} +65 -67
- package/{templates → dist-lib/src/templates}/body/assetstores.pug +0 -15
- package/{templates → dist-lib/src/templates}/body/frontPage.pug +1 -1
- package/{templates → dist-lib/src/templates}/body/systemConfiguration.pug +37 -42
- package/{templates → dist-lib/src/templates}/widgets/editAssetstoreWidget.pug +4 -12
- package/{templates → dist-lib/src/templates}/widgets/newAssetstore.pug +4 -35
- package/dist-lib/src/utilities/EventStream.js +111 -0
- package/{utilities → dist-lib/src/utilities}/S3UploadHandler.js +4 -44
- package/dist-lib/src/version.js +6 -0
- package/{views → dist-lib/src/views}/View.js +2 -1
- package/{views → dist-lib/src/views}/body/AssetstoresView.js +24 -26
- package/{views → dist-lib/src/views}/body/SystemConfigurationView.js +1 -20
- package/{views → dist-lib/src/views}/body/index.js +2 -1
- package/{views → dist-lib/src/views}/layout/LoginView.js +1 -1
- package/{views → dist-lib/src/views}/widgets/ApiKeyListWidget.js +1 -1
- package/{views → dist-lib/src/views}/widgets/DateTimeRangeWidget.js +2 -1
- package/{views → dist-lib/src/views}/widgets/DateTimeWidget.js +2 -1
- package/{views → dist-lib/src/views}/widgets/EditApiKeyWidget.js +3 -1
- package/{views → dist-lib/src/views}/widgets/EditAssetstoreWidget.js +4 -16
- package/{views → dist-lib/src/views}/widgets/ItemListWidget.js +1 -1
- package/{views → dist-lib/src/views}/widgets/MetadataWidget.js +7 -3
- package/{views → dist-lib/src/views}/widgets/NewAssetstoreWidget.js +2 -11
- package/{views → dist-lib/src/views}/widgets/PaginateWidget.js +2 -2
- package/{views → dist-lib/src/views}/widgets/RootSelectorWidget.js +1 -1
- package/{views → dist-lib/src/views}/widgets/SearchPaginateWidget.js +2 -2
- package/{views → dist-lib/src/views}/widgets/SortCollectionWidget.js +1 -1
- package/{views → dist-lib/src/views}/widgets/index.js +7 -1
- package/dist-lib/src/vite-env.d.ts +5 -0
- package/dist-lib/style.css +16 -0
- package/package.json +80 -31
- package/index.js +0 -31
- package/main.js +0 -21
- package/utilities/EventStream.js +0 -177
- package/version.js +0 -10
- /package/{assets → dist-lib}/Girder_Mark.png +0 -0
- /package/{collections → dist-lib/src/collections}/ApiKeyCollection.js +0 -0
- /package/{collections → dist-lib/src/collections}/Collection.js +0 -0
- /package/{collections → dist-lib/src/collections}/CollectionCollection.js +0 -0
- /package/{collections → dist-lib/src/collections}/FileCollection.js +0 -0
- /package/{collections → dist-lib/src/collections}/FolderCollection.js +0 -0
- /package/{collections → dist-lib/src/collections}/GroupCollection.js +0 -0
- /package/{collections → dist-lib/src/collections}/ItemCollection.js +0 -0
- /package/{collections → dist-lib/src/collections}/UserCollection.js +0 -0
- /package/{collections → dist-lib/src/collections}/index.js +0 -0
- /package/{dialog.js → dist-lib/src/dialog.js} +0 -0
- /package/{events.js → dist-lib/src/events.js} +0 -0
- /package/{misc.js → dist-lib/src/misc.js} +0 -0
- /package/{models → dist-lib/src/models}/AccessControlledModel.js +0 -0
- /package/{models → dist-lib/src/models}/ApiKeyModel.js +0 -0
- /package/{models → dist-lib/src/models}/AssetstoreModel.js +0 -0
- /package/{models → dist-lib/src/models}/CollectionCreationPolicyModel.js +0 -0
- /package/{models → dist-lib/src/models}/CollectionModel.js +0 -0
- /package/{models → dist-lib/src/models}/FileModel.js +0 -0
- /package/{models → dist-lib/src/models}/GroupModel.js +0 -0
- /package/{models → dist-lib/src/models}/ItemModel.js +0 -0
- /package/{models → dist-lib/src/models}/MetadataMixin.js +0 -0
- /package/{models → dist-lib/src/models}/Model.js +0 -0
- /package/{models → dist-lib/src/models}/UserModel.js +0 -0
- /package/{models → dist-lib/src/models}/index.js +0 -0
- /package/{pluginUtils.js → dist-lib/src/pluginUtils.js} +0 -0
- /package/{router.js → dist-lib/src/router.js} +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/apidocs/apidocs.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/body/adminConsole.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/body/assetstores.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/body/collectionList.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/body/collectionPage.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/body/frontPage.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/body/groupList.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/body/groupPage.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/body/itemPage.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/body/plugins.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/body/searchResultsList.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/body/systemConfig.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/body/userAccount.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/body/userList.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/body/userPage.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/layout/footer.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/layout/global.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/layout/globalNav.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/layout/header.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/layout/headerUser.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/layout/layout.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/layout/layoutVars.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/layout/loading.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/layout/progressArea.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/widgets/accessWidget.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/widgets/browserWidget.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/widgets/hierarchyWidget.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/widgets/markdownWidget.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/widgets/metadataWidget.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/widgets/searchFieldWidget.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/widgets/taskProgress.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/widgets/timelineWidget.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/widgets/uploadWidget.styl +0 -0
- /package/{stylesheets → dist-lib/src/stylesheets}/widgets/userOtpManagementWidget.styl +0 -0
- /package/{templates → dist-lib/src/templates}/body/adminConsole.pug +0 -0
- /package/{templates → dist-lib/src/templates}/body/collectionList.pug +0 -0
- /package/{templates → dist-lib/src/templates}/body/collectionPage.pug +0 -0
- /package/{templates → dist-lib/src/templates}/body/filesystemImport.pug +0 -0
- /package/{templates → dist-lib/src/templates}/body/groupList.pug +0 -0
- /package/{templates → dist-lib/src/templates}/body/groupPage.pug +0 -0
- /package/{templates → dist-lib/src/templates}/body/itemPage.pug +0 -0
- /package/{templates → dist-lib/src/templates}/body/plugins.pug +0 -0
- /package/{templates → dist-lib/src/templates}/body/s3Import.pug +0 -0
- /package/{templates → dist-lib/src/templates}/body/searchResults.pug +0 -0
- /package/{templates → dist-lib/src/templates}/body/searchResultsType.pug +0 -0
- /package/{templates → dist-lib/src/templates}/body/userAccount.pug +0 -0
- /package/{templates → dist-lib/src/templates}/body/userList.pug +0 -0
- /package/{templates → dist-lib/src/templates}/body/userPage.pug +0 -0
- /package/{templates → dist-lib/src/templates}/layout/alert.pug +0 -0
- /package/{templates → dist-lib/src/templates}/layout/layout.pug +0 -0
- /package/{templates → dist-lib/src/templates}/layout/layoutFooter.pug +0 -0
- /package/{templates → dist-lib/src/templates}/layout/layoutGlobalNav.pug +0 -0
- /package/{templates → dist-lib/src/templates}/layout/layoutHeader.pug +0 -0
- /package/{templates → dist-lib/src/templates}/layout/layoutHeaderUser.pug +0 -0
- /package/{templates → dist-lib/src/templates}/layout/layoutProgressArea.pug +0 -0
- /package/{templates → dist-lib/src/templates}/layout/loginDialog.pug +0 -0
- /package/{templates → dist-lib/src/templates}/layout/registerDialog.pug +0 -0
- /package/{templates → dist-lib/src/templates}/layout/resetPasswordDialog.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/accessEditor.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/accessEditorMixins.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/accessEditorNonModal.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/accessEntry.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/apiKeyList.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/browserWidget.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/checkedActionsMenu.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/collectionInfoDialog.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/confirmDialog.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/dateTimeRangeWidget.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/dateTimeWidget.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/editApiKeyWidget.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/editCollectionWidget.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/editFileWidget.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/editFolderWidget.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/editGroupWidget.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/editItemWidget.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/fileInfoDialog.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/fileList.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/folderInfoDialog.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/folderList.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/groupAdminList.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/groupInviteDialog.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/groupInviteList.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/groupMemberList.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/groupModList.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/hierarchyBreadcrumb.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/hierarchyPaginated.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/hierarchyWidget.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/itemBreadcrumb.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/itemList.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/jsonMetadatumEditWidget.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/jsonMetadatumView.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/loadingAnimation.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/markdownWidget.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/metadataWidget.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/metadatumEditWidget.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/metadatumView.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/paginateWidget.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/pluginConfigBreadcrumb.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/rootSelectorWidget.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/searchField.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/searchHelp.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/searchModeSelect.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/searchResults.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/sortCollectionWidget.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/taskProgress.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/timeline.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/uploadWidget.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/uploadWidgetMixins.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/uploadWidgetNonModal.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/userOtpBegin.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/userOtpDisable.pug +0 -0
- /package/{templates → dist-lib/src/templates}/widgets/userOtpEnable.pug +0 -0
- /package/{utilities → dist-lib/src/utilities}/PluginUtils.js +0 -0
- /package/{utilities → dist-lib/src/utilities}/index.js +0 -0
- /package/{utilities → dist-lib/src/utilities}/jquery/girderEnable.js +0 -0
- /package/{utilities → dist-lib/src/utilities}/jquery/girderModal.js +0 -0
- /package/{views → dist-lib/src/views}/App.js +0 -0
- /package/{views → dist-lib/src/views}/body/AdminView.js +0 -0
- /package/{views → dist-lib/src/views}/body/CollectionView.js +0 -0
- /package/{views → dist-lib/src/views}/body/CollectionsView.js +0 -0
- /package/{views → dist-lib/src/views}/body/FilesystemImportView.js +0 -0
- /package/{views → dist-lib/src/views}/body/FolderView.js +0 -0
- /package/{views → dist-lib/src/views}/body/FrontPageView.js +0 -0
- /package/{views → dist-lib/src/views}/body/GroupView.js +0 -0
- /package/{views → dist-lib/src/views}/body/GroupsView.js +0 -0
- /package/{views → dist-lib/src/views}/body/ItemView.js +0 -0
- /package/{views → dist-lib/src/views}/body/PluginsView.js +0 -0
- /package/{views → dist-lib/src/views}/body/S3ImportView.js +0 -0
- /package/{views → dist-lib/src/views}/body/SearchResultsView.js +0 -0
- /package/{views → dist-lib/src/views}/body/UserAccountView.js +0 -0
- /package/{views → dist-lib/src/views}/body/UserView.js +0 -0
- /package/{views → dist-lib/src/views}/body/UsersView.js +0 -0
- /package/{views → dist-lib/src/views}/index.js +0 -0
- /package/{views → dist-lib/src/views}/layout/FooterView.js +0 -0
- /package/{views → dist-lib/src/views}/layout/GlobalNavView.js +0 -0
- /package/{views → dist-lib/src/views}/layout/HeaderUserView.js +0 -0
- /package/{views → dist-lib/src/views}/layout/HeaderView.js +0 -0
- /package/{views → dist-lib/src/views}/layout/ProgressListView.js +0 -0
- /package/{views → dist-lib/src/views}/layout/RegisterView.js +0 -0
- /package/{views → dist-lib/src/views}/layout/ResetPasswordView.js +0 -0
- /package/{views → dist-lib/src/views}/layout/index.js +0 -0
- /package/{views → dist-lib/src/views}/widgets/AccessWidget.js +0 -0
- /package/{views → dist-lib/src/views}/widgets/BrowserWidget.js +0 -0
- /package/{views → dist-lib/src/views}/widgets/CheckedMenuWidget.js +0 -0
- /package/{views → dist-lib/src/views}/widgets/CollectionInfoWidget.js +0 -0
- /package/{views → dist-lib/src/views}/widgets/EditCollectionWidget.js +0 -0
- /package/{views → dist-lib/src/views}/widgets/EditFileWidget.js +0 -0
- /package/{views → dist-lib/src/views}/widgets/EditFolderWidget.js +0 -0
- /package/{views → dist-lib/src/views}/widgets/EditGroupWidget.js +0 -0
- /package/{views → dist-lib/src/views}/widgets/EditItemWidget.js +0 -0
- /package/{views → dist-lib/src/views}/widgets/FileInfoWidget.js +0 -0
- /package/{views → dist-lib/src/views}/widgets/FileListWidget.js +0 -0
- /package/{views → dist-lib/src/views}/widgets/FolderInfoWidget.js +0 -0
- /package/{views → dist-lib/src/views}/widgets/FolderListWidget.js +0 -0
- /package/{views → dist-lib/src/views}/widgets/GroupAdminsWidget.js +0 -0
- /package/{views → dist-lib/src/views}/widgets/GroupInvitesWidget.js +0 -0
- /package/{views → dist-lib/src/views}/widgets/GroupMembersWidget.js +0 -0
- /package/{views → dist-lib/src/views}/widgets/GroupModsWidget.js +0 -0
- /package/{views → dist-lib/src/views}/widgets/HierarchyWidget.js +0 -0
- /package/{views → dist-lib/src/views}/widgets/ItemBreadcrumbWidget.js +0 -0
- /package/{views → dist-lib/src/views}/widgets/LoadingAnimation.js +0 -0
- /package/{views → dist-lib/src/views}/widgets/MarkdownWidget.js +0 -0
- /package/{views → dist-lib/src/views}/widgets/PluginConfigBreadcrumbWidget.js +0 -0
- /package/{views → dist-lib/src/views}/widgets/SearchFieldWidget.js +0 -0
- /package/{views → dist-lib/src/views}/widgets/TaskProgressWidget.js +0 -0
- /package/{views → dist-lib/src/views}/widgets/TimelineWidget.js +0 -0
- /package/{views → dist-lib/src/views}/widgets/UploadWidget.js +0 -0
- /package/{views → dist-lib/src/views}/widgets/UserOtpManagementWidget.js +0 -0
package/package.json
CHANGED
|
@@ -1,34 +1,83 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
"name": "@girder/core",
|
|
3
|
+
"license": "Apache-2.0",
|
|
4
|
+
"version": "5.0.0-a10",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist-lib"
|
|
8
|
+
],
|
|
9
|
+
"main": "./dist-lib/girder-core.umd.cjs",
|
|
10
|
+
"module": "./dist-lib/girder-core.js",
|
|
11
|
+
"types": "./dist-lib/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": {
|
|
15
|
+
"types": "./dist-lib/index.d.ts",
|
|
16
|
+
"default": "./dist-lib/girder-core.js"
|
|
17
|
+
},
|
|
18
|
+
"require": {
|
|
19
|
+
"types": "./dist-lib/index.d.ts",
|
|
20
|
+
"default": "./dist-lib/girder-core.umd.cjs"
|
|
21
|
+
}
|
|
8
22
|
},
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
23
|
+
"./style.css": "./dist-lib/style.css"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"dev": "vite",
|
|
27
|
+
"build": "run-p type-check build-only",
|
|
28
|
+
"preview": "vite preview",
|
|
29
|
+
"test": "playwright test",
|
|
30
|
+
"show-coverage": "http-server coverage/report --port 8888 -o",
|
|
31
|
+
"build-only": "vite build",
|
|
32
|
+
"build-lib": "BUILD_LIB=true vite build",
|
|
33
|
+
"type-check": "vue-tsc --noEmit -p tsconfig.json --composite false",
|
|
34
|
+
"install-browsers": "playwright install --with-deps",
|
|
35
|
+
"prepublishOnly": "npm run build-lib"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@girder/fontello": "^5.0.0-a7",
|
|
39
|
+
"apexcharts": "^4.5.0",
|
|
40
|
+
"backbone": "~1.4.0",
|
|
41
|
+
"bootstrap": "~3.4.1",
|
|
42
|
+
"bootstrap-switch": "~3.3.4",
|
|
43
|
+
"eonasdan-bootstrap-datetimepicker": "~4.17",
|
|
44
|
+
"jquery": "~3.5.1",
|
|
45
|
+
"jsoneditor": "~5.9.3",
|
|
46
|
+
"moment": "~2.24.0",
|
|
47
|
+
"moment-timezone": "~0.5.27",
|
|
48
|
+
"qrcode": "~1.4.4",
|
|
49
|
+
"remarkable": "~2.0.0",
|
|
50
|
+
"typeface-open-sans": "^0.0.75",
|
|
51
|
+
"underscore": "~1.13.6",
|
|
52
|
+
"url-otpauth": "~2.0.0",
|
|
53
|
+
"vue": "^3.2.47"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@playwright/test": "^1.34.3",
|
|
57
|
+
"@rollup/plugin-inject": "^5.0.3",
|
|
58
|
+
"@tsconfig/node18": "^2.0.1",
|
|
59
|
+
"@types/istanbul-lib-report": "^3.0.0",
|
|
60
|
+
"@types/istanbul-reports": "^3.0.1",
|
|
61
|
+
"@types/jsdom": "^21.1.1",
|
|
62
|
+
"@types/node": "^18.16.16",
|
|
63
|
+
"@types/pug": "^2.0.6",
|
|
64
|
+
"@vitejs/plugin-vue": "^4.2.3",
|
|
65
|
+
"@vue/test-utils": "^2.3.2",
|
|
66
|
+
"@vue/tsconfig": "^0.4.0",
|
|
67
|
+
"http-server": "^14.1.1",
|
|
68
|
+
"istanbul-lib-report": "^3.0.0",
|
|
69
|
+
"istanbul-reports": "^3.1.5",
|
|
70
|
+
"jsdom": "^22.0.0",
|
|
71
|
+
"npm-run-all": "^4.1.5",
|
|
72
|
+
"playwright": "^1.34.3",
|
|
73
|
+
"playwright-test-coverage": "^1.2.12",
|
|
74
|
+
"pug": "^3.0.2",
|
|
75
|
+
"stylus": "^0.54.5",
|
|
76
|
+
"typescript": "^5.0.4",
|
|
77
|
+
"v8-to-istanbul": "^9.1.0",
|
|
78
|
+
"vite": "^4.3.5",
|
|
79
|
+
"vite-plugin-dts": "^2.3.0",
|
|
80
|
+
"vite-plugin-static-copy": "^0.16.0",
|
|
81
|
+
"vue-tsc": "^2.2.10"
|
|
82
|
+
}
|
|
34
83
|
}
|
package/index.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as auth from './auth';
|
|
2
|
-
import * as collections from './collections';
|
|
3
|
-
import * as constants from './constants';
|
|
4
|
-
import * as dialog from './dialog';
|
|
5
|
-
import * as misc from './misc';
|
|
6
|
-
import * as models from './models';
|
|
7
|
-
import * as rest from './rest';
|
|
8
|
-
import * as utilities from './utilities';
|
|
9
|
-
import * as views from './views';
|
|
10
|
-
import events from './events';
|
|
11
|
-
import router from './router';
|
|
12
|
-
import version from './version';
|
|
13
|
-
|
|
14
|
-
// This will be modified dynamically when plugins are loaded.
|
|
15
|
-
var plugins = {};
|
|
16
|
-
|
|
17
|
-
export {
|
|
18
|
-
auth,
|
|
19
|
-
collections,
|
|
20
|
-
constants,
|
|
21
|
-
dialog,
|
|
22
|
-
events,
|
|
23
|
-
misc,
|
|
24
|
-
models,
|
|
25
|
-
plugins,
|
|
26
|
-
rest,
|
|
27
|
-
router,
|
|
28
|
-
utilities,
|
|
29
|
-
version,
|
|
30
|
-
views
|
|
31
|
-
};
|
package/main.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import $ from 'jquery';
|
|
2
|
-
import _ from 'underscore';
|
|
3
|
-
import Backbone from 'backbone';
|
|
4
|
-
import moment from 'moment';
|
|
5
|
-
import * as girder from '@girder/core';
|
|
6
|
-
|
|
7
|
-
window.girder = girder;
|
|
8
|
-
|
|
9
|
-
// Some cross-browser globals
|
|
10
|
-
if (!window.console) {
|
|
11
|
-
window.console = {
|
|
12
|
-
log: $.noop,
|
|
13
|
-
error: $.noop
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
// For testing and convenience, available now because of testUtils.js reliance on $
|
|
18
|
-
window.$ = $;
|
|
19
|
-
window._ = _;
|
|
20
|
-
window.moment = moment;
|
|
21
|
-
window.Backbone = Backbone;
|
package/utilities/EventStream.js
DELETED
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
import $ from 'jquery';
|
|
2
|
-
import _ from 'underscore';
|
|
3
|
-
import Backbone from 'backbone';
|
|
4
|
-
|
|
5
|
-
import { getApiRoot, restRequest } from '@girder/core/rest';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* The EventStream type wraps window.EventSource to listen to the unified
|
|
9
|
-
* per-user event channel endpoint using the SSE protocol. When events are
|
|
10
|
-
* received on the SSE channel, this triggers a Backbone event of the form
|
|
11
|
-
* 'g:event.<type>' where <type> is the value of the event type field.
|
|
12
|
-
* Listeners can bind to specific event types on the channel.
|
|
13
|
-
*/
|
|
14
|
-
function EventStream(settings) {
|
|
15
|
-
const defaults = {
|
|
16
|
-
timeout: null,
|
|
17
|
-
streamPath: '/notification/stream'
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
// User-provided settings from initialization
|
|
21
|
-
this.settings = _.extend(defaults, settings);
|
|
22
|
-
// Possible states are 'closed', 'stopped', 'started'
|
|
23
|
-
this._state = 'closed';
|
|
24
|
-
// Whether this is started (if so, holds the EventSource instance)
|
|
25
|
-
this._eventSource = null;
|
|
26
|
-
|
|
27
|
-
// Create context bindings only once, so they can be referenced when unbinding events
|
|
28
|
-
this._onVisibilityStateChange = _.bind(this._onVisibilityStateChange, this);
|
|
29
|
-
this._onMessage = _.bind(this._onMessage, this);
|
|
30
|
-
this._onError = _.bind(this._onError, this);
|
|
31
|
-
|
|
32
|
-
return _.extend(this, Backbone.Events);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
EventStream.prototype._onVisibilityStateChange = function () {
|
|
36
|
-
if (document.visibilityState === 'visible' && this._state === 'stopped') {
|
|
37
|
-
this._start();
|
|
38
|
-
} else if (document.visibilityState === 'hidden' && this._state === 'started') {
|
|
39
|
-
this._stop();
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
EventStream.prototype._onMessage = function (e) {
|
|
44
|
-
let obj;
|
|
45
|
-
try {
|
|
46
|
-
obj = window.JSON.parse(e.data);
|
|
47
|
-
} catch (err) {
|
|
48
|
-
console.error('Invalid JSON from SSE stream: ' + e.data + ',' + err);
|
|
49
|
-
this.trigger('g:error', e);
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
EventStream.setLastTimestamp(obj._girderTime);
|
|
53
|
-
this.trigger('g:event.' + obj.type, obj);
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
EventStream.prototype._onError = function () {
|
|
57
|
-
// The EventSource.onerror API does not provide the HTTP status code of the error, so send an Ajax HEAD request to
|
|
58
|
-
// capture the status code.
|
|
59
|
-
restRequest({
|
|
60
|
-
url: this.settings.streamPath,
|
|
61
|
-
method: 'HEAD',
|
|
62
|
-
error: null
|
|
63
|
-
})
|
|
64
|
-
.fail((jqXHR) => {
|
|
65
|
-
if (jqXHR.status === 503) {
|
|
66
|
-
// Notification stream is disabled, so close this EventStream
|
|
67
|
-
this.trigger('g:eventStream.disable', jqXHR);
|
|
68
|
-
this.close();
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
// In all other cases (HEAD doesn't fail, or fails with a non-503 code), assume this is a temporary outage and allow
|
|
72
|
-
// the EventStream to continue attempting to auto-connect
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
EventStream.prototype.open = function () {
|
|
76
|
-
if (!window.EventSource) {
|
|
77
|
-
console.error('EventSource is not supported on this platform.');
|
|
78
|
-
this.trigger('g:eventStream.disable');
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
if (this._state !== 'closed') {
|
|
82
|
-
console.warn('EventStream should be closed.');
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
this._state = 'stopped';
|
|
87
|
-
this._start();
|
|
88
|
-
|
|
89
|
-
document.addEventListener('visibilitychange', this._onVisibilityStateChange);
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
EventStream.prototype._start = function () {
|
|
93
|
-
if (this._state !== 'stopped') {
|
|
94
|
-
console.warn('EventStream should be stopped');
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
const params = {};
|
|
99
|
-
|
|
100
|
-
if (this.settings.timeout) {
|
|
101
|
-
params.timeout = this.settings.timeout;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// Set the "since" argument to filter out notifications that have already been sent to this client.
|
|
105
|
-
const timestamp = EventStream.getLastTimestamp();
|
|
106
|
-
if (_.isNumber(timestamp)) {
|
|
107
|
-
params.since = timestamp;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
const url = getApiRoot() + this.settings.streamPath + '?' + $.param(params);
|
|
111
|
-
|
|
112
|
-
this._eventSource = new window.EventSource(url);
|
|
113
|
-
this._eventSource.onmessage = this._onMessage;
|
|
114
|
-
this._eventSource.onerror = this._onError;
|
|
115
|
-
|
|
116
|
-
this._state = 'started';
|
|
117
|
-
this.trigger('g:eventStream.start');
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
EventStream.prototype._stop = function () {
|
|
121
|
-
if (this._state !== 'started') {
|
|
122
|
-
console.warn('EventStream should be started');
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
this._eventSource.close();
|
|
127
|
-
this._eventSource = null;
|
|
128
|
-
|
|
129
|
-
this._state = 'stopped';
|
|
130
|
-
this.trigger('g:eventStream.stop');
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
EventStream.prototype.close = function () {
|
|
134
|
-
if (this._state === 'closed') {
|
|
135
|
-
console.warn('EventStream should not be closed');
|
|
136
|
-
return;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
document.removeEventListener('visibilitychange', this._onVisibilityStateChange);
|
|
140
|
-
|
|
141
|
-
if (this._state === 'started') {
|
|
142
|
-
this._stop();
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
this._state = 'closed';
|
|
146
|
-
this.trigger('g:eventStream.close');
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
// Static methods
|
|
150
|
-
EventStream._lastTimestamp = null;
|
|
151
|
-
EventStream.setLastTimestamp = function (timestamp) {
|
|
152
|
-
try {
|
|
153
|
-
window.localStorage.setItem('sseTimestamp', timestamp);
|
|
154
|
-
} catch (e) {
|
|
155
|
-
// Ignore any errors raised by localStorage
|
|
156
|
-
}
|
|
157
|
-
EventStream._lastTimestamp = timestamp;
|
|
158
|
-
};
|
|
159
|
-
EventStream.getLastTimestamp = function () {
|
|
160
|
-
let timestamp;
|
|
161
|
-
try {
|
|
162
|
-
timestamp = parseInt(window.localStorage.getItem('sseTimestamp'), 10);
|
|
163
|
-
} catch (e) {
|
|
164
|
-
// Ignore any errors raised by localStorage
|
|
165
|
-
}
|
|
166
|
-
if (!_.isNaN(timestamp)) {
|
|
167
|
-
// An int was parsed
|
|
168
|
-
return timestamp;
|
|
169
|
-
} else {
|
|
170
|
-
// Value could not be gotten from localStorage, so return from fallback (which is also the default of null)f
|
|
171
|
-
return EventStream._lastTimestamp;
|
|
172
|
-
}
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
const eventStream = new EventStream();
|
|
176
|
-
|
|
177
|
-
export default eventStream;
|
package/version.js
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|