@girder/core 3.2.9 → 5.0.0-a11

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.
Files changed (257) hide show
  1. package/README.md +61 -0
  2. package/dist-lib/Girder_Favicon.png +0 -0
  3. package/dist-lib/fontello/node_modules/ansi-regex/index.d.ts +37 -0
  4. package/dist-lib/fontello/node_modules/ansi-styles/index.d.ts +345 -0
  5. package/dist-lib/fontello/node_modules/big-integer/BigInteger.d.ts +2393 -0
  6. package/dist-lib/fontello/node_modules/fontello-cli/node_modules/colors/safe.d.ts +48 -0
  7. package/dist-lib/fontello/node_modules/has-flag/index.d.ts +39 -0
  8. package/dist-lib/fontello/node_modules/iconv-lite/lib/index.d.ts +24 -0
  9. package/dist-lib/fontello/node_modules/is-docker/index.d.ts +15 -0
  10. package/dist-lib/fontello/node_modules/is-plain-object/index.d.ts +5 -0
  11. package/dist-lib/fontello/node_modules/is-wsl/index.d.ts +15 -0
  12. package/dist-lib/fontello/node_modules/isobject/index.d.ts +5 -0
  13. package/dist-lib/fontello/node_modules/open/index.d.ts +88 -0
  14. package/dist-lib/fontello/node_modules/safe-buffer/index.d.ts +187 -0
  15. package/dist-lib/fontello/node_modules/strip-ansi/index.d.ts +17 -0
  16. package/dist-lib/girder-core.js +58237 -0
  17. package/dist-lib/girder-core.js.map +1 -0
  18. package/dist-lib/girder-core.umd.cjs +1573 -0
  19. package/dist-lib/girder-core.umd.cjs.map +1 -0
  20. package/dist-lib/index.d.ts +1 -0
  21. package/{auth.js → dist-lib/src/auth.js} +1 -41
  22. package/{constants.js → dist-lib/src/constants.js} +0 -1
  23. package/dist-lib/src/index.d.ts +23 -0
  24. package/dist-lib/src/index.ts +80 -0
  25. package/dist-lib/src/main.ts +54 -0
  26. package/{models → dist-lib/src/models}/FolderModel.js +1 -1
  27. package/{rest.js → dist-lib/src/rest.js} +12 -7
  28. package/{routes.js → dist-lib/src/routes.js} +65 -67
  29. package/{templates → dist-lib/src/templates}/body/assetstores.pug +0 -15
  30. package/{templates → dist-lib/src/templates}/body/frontPage.pug +1 -1
  31. package/{templates → dist-lib/src/templates}/body/systemConfiguration.pug +35 -41
  32. package/{templates → dist-lib/src/templates}/widgets/editAssetstoreWidget.pug +0 -12
  33. package/{templates → dist-lib/src/templates}/widgets/newAssetstore.pug +0 -35
  34. package/dist-lib/src/utilities/EventStream.js +119 -0
  35. package/{utilities → dist-lib/src/utilities}/S3UploadHandler.js +4 -44
  36. package/dist-lib/src/version.js +6 -0
  37. package/{views → dist-lib/src/views}/View.js +2 -1
  38. package/{views → dist-lib/src/views}/body/AssetstoresView.js +24 -26
  39. package/{views → dist-lib/src/views}/body/SystemConfigurationView.js +2 -21
  40. package/{views → dist-lib/src/views}/body/index.js +2 -1
  41. package/{views → dist-lib/src/views}/layout/LoginView.js +1 -1
  42. package/{views → dist-lib/src/views}/widgets/ApiKeyListWidget.js +1 -1
  43. package/{views → dist-lib/src/views}/widgets/DateTimeRangeWidget.js +2 -1
  44. package/{views → dist-lib/src/views}/widgets/DateTimeWidget.js +2 -1
  45. package/{views → dist-lib/src/views}/widgets/EditAssetstoreWidget.js +0 -15
  46. package/{views → dist-lib/src/views}/widgets/ItemListWidget.js +1 -1
  47. package/{views → dist-lib/src/views}/widgets/MetadataWidget.js +7 -3
  48. package/{views → dist-lib/src/views}/widgets/NewAssetstoreWidget.js +0 -10
  49. package/{views → dist-lib/src/views}/widgets/PaginateWidget.js +2 -2
  50. package/{views → dist-lib/src/views}/widgets/RootSelectorWidget.js +1 -1
  51. package/{views → dist-lib/src/views}/widgets/SearchPaginateWidget.js +2 -2
  52. package/{views → dist-lib/src/views}/widgets/SortCollectionWidget.js +1 -1
  53. package/{views → dist-lib/src/views}/widgets/index.js +7 -1
  54. package/dist-lib/src/vite-env.d.ts +5 -0
  55. package/dist-lib/style.css +16 -0
  56. package/package.json +80 -31
  57. package/index.js +0 -31
  58. package/main.js +0 -21
  59. package/utilities/EventStream.js +0 -177
  60. package/version.js +0 -10
  61. /package/{assets → dist-lib}/Girder_Mark.png +0 -0
  62. /package/{collections → dist-lib/src/collections}/ApiKeyCollection.js +0 -0
  63. /package/{collections → dist-lib/src/collections}/AssetstoreCollection.js +0 -0
  64. /package/{collections → dist-lib/src/collections}/Collection.js +0 -0
  65. /package/{collections → dist-lib/src/collections}/CollectionCollection.js +0 -0
  66. /package/{collections → dist-lib/src/collections}/FileCollection.js +0 -0
  67. /package/{collections → dist-lib/src/collections}/FolderCollection.js +0 -0
  68. /package/{collections → dist-lib/src/collections}/GroupCollection.js +0 -0
  69. /package/{collections → dist-lib/src/collections}/ItemCollection.js +0 -0
  70. /package/{collections → dist-lib/src/collections}/UserCollection.js +0 -0
  71. /package/{collections → dist-lib/src/collections}/index.js +0 -0
  72. /package/{dialog.js → dist-lib/src/dialog.js} +0 -0
  73. /package/{events.js → dist-lib/src/events.js} +0 -0
  74. /package/{misc.js → dist-lib/src/misc.js} +0 -0
  75. /package/{models → dist-lib/src/models}/AccessControlledModel.js +0 -0
  76. /package/{models → dist-lib/src/models}/ApiKeyModel.js +0 -0
  77. /package/{models → dist-lib/src/models}/AssetstoreModel.js +0 -0
  78. /package/{models → dist-lib/src/models}/CollectionCreationPolicyModel.js +0 -0
  79. /package/{models → dist-lib/src/models}/CollectionModel.js +0 -0
  80. /package/{models → dist-lib/src/models}/FileModel.js +0 -0
  81. /package/{models → dist-lib/src/models}/GroupModel.js +0 -0
  82. /package/{models → dist-lib/src/models}/ItemModel.js +0 -0
  83. /package/{models → dist-lib/src/models}/MetadataMixin.js +0 -0
  84. /package/{models → dist-lib/src/models}/Model.js +0 -0
  85. /package/{models → dist-lib/src/models}/UserModel.js +0 -0
  86. /package/{models → dist-lib/src/models}/index.js +0 -0
  87. /package/{pluginUtils.js → dist-lib/src/pluginUtils.js} +0 -0
  88. /package/{router.js → dist-lib/src/router.js} +0 -0
  89. /package/{stylesheets → dist-lib/src/stylesheets}/apidocs/apidocs.styl +0 -0
  90. /package/{stylesheets → dist-lib/src/stylesheets}/body/adminConsole.styl +0 -0
  91. /package/{stylesheets → dist-lib/src/stylesheets}/body/assetstores.styl +0 -0
  92. /package/{stylesheets → dist-lib/src/stylesheets}/body/collectionList.styl +0 -0
  93. /package/{stylesheets → dist-lib/src/stylesheets}/body/collectionPage.styl +0 -0
  94. /package/{stylesheets → dist-lib/src/stylesheets}/body/frontPage.styl +0 -0
  95. /package/{stylesheets → dist-lib/src/stylesheets}/body/groupList.styl +0 -0
  96. /package/{stylesheets → dist-lib/src/stylesheets}/body/groupPage.styl +0 -0
  97. /package/{stylesheets → dist-lib/src/stylesheets}/body/itemPage.styl +0 -0
  98. /package/{stylesheets → dist-lib/src/stylesheets}/body/plugins.styl +0 -0
  99. /package/{stylesheets → dist-lib/src/stylesheets}/body/searchResultsList.styl +0 -0
  100. /package/{stylesheets → dist-lib/src/stylesheets}/body/systemConfig.styl +0 -0
  101. /package/{stylesheets → dist-lib/src/stylesheets}/body/userAccount.styl +0 -0
  102. /package/{stylesheets → dist-lib/src/stylesheets}/body/userList.styl +0 -0
  103. /package/{stylesheets → dist-lib/src/stylesheets}/body/userPage.styl +0 -0
  104. /package/{stylesheets → dist-lib/src/stylesheets}/layout/footer.styl +0 -0
  105. /package/{stylesheets → dist-lib/src/stylesheets}/layout/global.styl +0 -0
  106. /package/{stylesheets → dist-lib/src/stylesheets}/layout/globalNav.styl +0 -0
  107. /package/{stylesheets → dist-lib/src/stylesheets}/layout/header.styl +0 -0
  108. /package/{stylesheets → dist-lib/src/stylesheets}/layout/headerUser.styl +0 -0
  109. /package/{stylesheets → dist-lib/src/stylesheets}/layout/layout.styl +0 -0
  110. /package/{stylesheets → dist-lib/src/stylesheets}/layout/layoutVars.styl +0 -0
  111. /package/{stylesheets → dist-lib/src/stylesheets}/layout/loading.styl +0 -0
  112. /package/{stylesheets → dist-lib/src/stylesheets}/layout/progressArea.styl +0 -0
  113. /package/{stylesheets → dist-lib/src/stylesheets}/widgets/accessWidget.styl +0 -0
  114. /package/{stylesheets → dist-lib/src/stylesheets}/widgets/browserWidget.styl +0 -0
  115. /package/{stylesheets → dist-lib/src/stylesheets}/widgets/hierarchyWidget.styl +0 -0
  116. /package/{stylesheets → dist-lib/src/stylesheets}/widgets/markdownWidget.styl +0 -0
  117. /package/{stylesheets → dist-lib/src/stylesheets}/widgets/metadataWidget.styl +0 -0
  118. /package/{stylesheets → dist-lib/src/stylesheets}/widgets/searchFieldWidget.styl +0 -0
  119. /package/{stylesheets → dist-lib/src/stylesheets}/widgets/taskProgress.styl +0 -0
  120. /package/{stylesheets → dist-lib/src/stylesheets}/widgets/timelineWidget.styl +0 -0
  121. /package/{stylesheets → dist-lib/src/stylesheets}/widgets/uploadWidget.styl +0 -0
  122. /package/{stylesheets → dist-lib/src/stylesheets}/widgets/userOtpManagementWidget.styl +0 -0
  123. /package/{templates → dist-lib/src/templates}/body/adminConsole.pug +0 -0
  124. /package/{templates → dist-lib/src/templates}/body/collectionList.pug +0 -0
  125. /package/{templates → dist-lib/src/templates}/body/collectionPage.pug +0 -0
  126. /package/{templates → dist-lib/src/templates}/body/filesystemImport.pug +0 -0
  127. /package/{templates → dist-lib/src/templates}/body/groupList.pug +0 -0
  128. /package/{templates → dist-lib/src/templates}/body/groupPage.pug +0 -0
  129. /package/{templates → dist-lib/src/templates}/body/itemPage.pug +0 -0
  130. /package/{templates → dist-lib/src/templates}/body/plugins.pug +0 -0
  131. /package/{templates → dist-lib/src/templates}/body/s3Import.pug +0 -0
  132. /package/{templates → dist-lib/src/templates}/body/searchResults.pug +0 -0
  133. /package/{templates → dist-lib/src/templates}/body/searchResultsType.pug +0 -0
  134. /package/{templates → dist-lib/src/templates}/body/userAccount.pug +0 -0
  135. /package/{templates → dist-lib/src/templates}/body/userList.pug +0 -0
  136. /package/{templates → dist-lib/src/templates}/body/userPage.pug +0 -0
  137. /package/{templates → dist-lib/src/templates}/layout/alert.pug +0 -0
  138. /package/{templates → dist-lib/src/templates}/layout/layout.pug +0 -0
  139. /package/{templates → dist-lib/src/templates}/layout/layoutFooter.pug +0 -0
  140. /package/{templates → dist-lib/src/templates}/layout/layoutGlobalNav.pug +0 -0
  141. /package/{templates → dist-lib/src/templates}/layout/layoutHeader.pug +0 -0
  142. /package/{templates → dist-lib/src/templates}/layout/layoutHeaderUser.pug +0 -0
  143. /package/{templates → dist-lib/src/templates}/layout/layoutProgressArea.pug +0 -0
  144. /package/{templates → dist-lib/src/templates}/layout/loginDialog.pug +0 -0
  145. /package/{templates → dist-lib/src/templates}/layout/registerDialog.pug +0 -0
  146. /package/{templates → dist-lib/src/templates}/layout/resetPasswordDialog.pug +0 -0
  147. /package/{templates → dist-lib/src/templates}/widgets/accessEditor.pug +0 -0
  148. /package/{templates → dist-lib/src/templates}/widgets/accessEditorMixins.pug +0 -0
  149. /package/{templates → dist-lib/src/templates}/widgets/accessEditorNonModal.pug +0 -0
  150. /package/{templates → dist-lib/src/templates}/widgets/accessEntry.pug +0 -0
  151. /package/{templates → dist-lib/src/templates}/widgets/apiKeyList.pug +0 -0
  152. /package/{templates → dist-lib/src/templates}/widgets/browserWidget.pug +0 -0
  153. /package/{templates → dist-lib/src/templates}/widgets/checkedActionsMenu.pug +0 -0
  154. /package/{templates → dist-lib/src/templates}/widgets/collectionInfoDialog.pug +0 -0
  155. /package/{templates → dist-lib/src/templates}/widgets/confirmDialog.pug +0 -0
  156. /package/{templates → dist-lib/src/templates}/widgets/dateTimeRangeWidget.pug +0 -0
  157. /package/{templates → dist-lib/src/templates}/widgets/dateTimeWidget.pug +0 -0
  158. /package/{templates → dist-lib/src/templates}/widgets/editApiKeyWidget.pug +0 -0
  159. /package/{templates → dist-lib/src/templates}/widgets/editCollectionWidget.pug +0 -0
  160. /package/{templates → dist-lib/src/templates}/widgets/editFileWidget.pug +0 -0
  161. /package/{templates → dist-lib/src/templates}/widgets/editFolderWidget.pug +0 -0
  162. /package/{templates → dist-lib/src/templates}/widgets/editGroupWidget.pug +0 -0
  163. /package/{templates → dist-lib/src/templates}/widgets/editItemWidget.pug +0 -0
  164. /package/{templates → dist-lib/src/templates}/widgets/fileInfoDialog.pug +0 -0
  165. /package/{templates → dist-lib/src/templates}/widgets/fileList.pug +0 -0
  166. /package/{templates → dist-lib/src/templates}/widgets/folderInfoDialog.pug +0 -0
  167. /package/{templates → dist-lib/src/templates}/widgets/folderList.pug +0 -0
  168. /package/{templates → dist-lib/src/templates}/widgets/groupAdminList.pug +0 -0
  169. /package/{templates → dist-lib/src/templates}/widgets/groupInviteDialog.pug +0 -0
  170. /package/{templates → dist-lib/src/templates}/widgets/groupInviteList.pug +0 -0
  171. /package/{templates → dist-lib/src/templates}/widgets/groupMemberList.pug +0 -0
  172. /package/{templates → dist-lib/src/templates}/widgets/groupModList.pug +0 -0
  173. /package/{templates → dist-lib/src/templates}/widgets/hierarchyBreadcrumb.pug +0 -0
  174. /package/{templates → dist-lib/src/templates}/widgets/hierarchyPaginated.pug +0 -0
  175. /package/{templates → dist-lib/src/templates}/widgets/hierarchyWidget.pug +0 -0
  176. /package/{templates → dist-lib/src/templates}/widgets/itemBreadcrumb.pug +0 -0
  177. /package/{templates → dist-lib/src/templates}/widgets/itemList.pug +0 -0
  178. /package/{templates → dist-lib/src/templates}/widgets/jsonMetadatumEditWidget.pug +0 -0
  179. /package/{templates → dist-lib/src/templates}/widgets/jsonMetadatumView.pug +0 -0
  180. /package/{templates → dist-lib/src/templates}/widgets/loadingAnimation.pug +0 -0
  181. /package/{templates → dist-lib/src/templates}/widgets/markdownWidget.pug +0 -0
  182. /package/{templates → dist-lib/src/templates}/widgets/metadataWidget.pug +0 -0
  183. /package/{templates → dist-lib/src/templates}/widgets/metadatumEditWidget.pug +0 -0
  184. /package/{templates → dist-lib/src/templates}/widgets/metadatumView.pug +0 -0
  185. /package/{templates → dist-lib/src/templates}/widgets/paginateWidget.pug +0 -0
  186. /package/{templates → dist-lib/src/templates}/widgets/pluginConfigBreadcrumb.pug +0 -0
  187. /package/{templates → dist-lib/src/templates}/widgets/rootSelectorWidget.pug +0 -0
  188. /package/{templates → dist-lib/src/templates}/widgets/searchField.pug +0 -0
  189. /package/{templates → dist-lib/src/templates}/widgets/searchHelp.pug +0 -0
  190. /package/{templates → dist-lib/src/templates}/widgets/searchModeSelect.pug +0 -0
  191. /package/{templates → dist-lib/src/templates}/widgets/searchResults.pug +0 -0
  192. /package/{templates → dist-lib/src/templates}/widgets/sortCollectionWidget.pug +0 -0
  193. /package/{templates → dist-lib/src/templates}/widgets/taskProgress.pug +0 -0
  194. /package/{templates → dist-lib/src/templates}/widgets/timeline.pug +0 -0
  195. /package/{templates → dist-lib/src/templates}/widgets/uploadWidget.pug +0 -0
  196. /package/{templates → dist-lib/src/templates}/widgets/uploadWidgetMixins.pug +0 -0
  197. /package/{templates → dist-lib/src/templates}/widgets/uploadWidgetNonModal.pug +0 -0
  198. /package/{templates → dist-lib/src/templates}/widgets/userOtpBegin.pug +0 -0
  199. /package/{templates → dist-lib/src/templates}/widgets/userOtpDisable.pug +0 -0
  200. /package/{templates → dist-lib/src/templates}/widgets/userOtpEnable.pug +0 -0
  201. /package/{utilities → dist-lib/src/utilities}/PluginUtils.js +0 -0
  202. /package/{utilities → dist-lib/src/utilities}/index.js +0 -0
  203. /package/{utilities → dist-lib/src/utilities}/jquery/girderEnable.js +0 -0
  204. /package/{utilities → dist-lib/src/utilities}/jquery/girderModal.js +0 -0
  205. /package/{views → dist-lib/src/views}/App.js +0 -0
  206. /package/{views → dist-lib/src/views}/body/AdminView.js +0 -0
  207. /package/{views → dist-lib/src/views}/body/CollectionView.js +0 -0
  208. /package/{views → dist-lib/src/views}/body/CollectionsView.js +0 -0
  209. /package/{views → dist-lib/src/views}/body/FilesystemImportView.js +0 -0
  210. /package/{views → dist-lib/src/views}/body/FolderView.js +0 -0
  211. /package/{views → dist-lib/src/views}/body/FrontPageView.js +0 -0
  212. /package/{views → dist-lib/src/views}/body/GroupView.js +0 -0
  213. /package/{views → dist-lib/src/views}/body/GroupsView.js +0 -0
  214. /package/{views → dist-lib/src/views}/body/ItemView.js +0 -0
  215. /package/{views → dist-lib/src/views}/body/PluginsView.js +0 -0
  216. /package/{views → dist-lib/src/views}/body/S3ImportView.js +0 -0
  217. /package/{views → dist-lib/src/views}/body/SearchResultsView.js +0 -0
  218. /package/{views → dist-lib/src/views}/body/UserAccountView.js +0 -0
  219. /package/{views → dist-lib/src/views}/body/UserView.js +0 -0
  220. /package/{views → dist-lib/src/views}/body/UsersView.js +0 -0
  221. /package/{views → dist-lib/src/views}/index.js +0 -0
  222. /package/{views → dist-lib/src/views}/layout/FooterView.js +0 -0
  223. /package/{views → dist-lib/src/views}/layout/GlobalNavView.js +0 -0
  224. /package/{views → dist-lib/src/views}/layout/HeaderUserView.js +0 -0
  225. /package/{views → dist-lib/src/views}/layout/HeaderView.js +0 -0
  226. /package/{views → dist-lib/src/views}/layout/ProgressListView.js +0 -0
  227. /package/{views → dist-lib/src/views}/layout/RegisterView.js +0 -0
  228. /package/{views → dist-lib/src/views}/layout/ResetPasswordView.js +0 -0
  229. /package/{views → dist-lib/src/views}/layout/index.js +0 -0
  230. /package/{views → dist-lib/src/views}/widgets/AccessWidget.js +0 -0
  231. /package/{views → dist-lib/src/views}/widgets/BrowserWidget.js +0 -0
  232. /package/{views → dist-lib/src/views}/widgets/CheckedMenuWidget.js +0 -0
  233. /package/{views → dist-lib/src/views}/widgets/CollectionInfoWidget.js +0 -0
  234. /package/{views → dist-lib/src/views}/widgets/EditApiKeyWidget.js +0 -0
  235. /package/{views → dist-lib/src/views}/widgets/EditCollectionWidget.js +0 -0
  236. /package/{views → dist-lib/src/views}/widgets/EditFileWidget.js +0 -0
  237. /package/{views → dist-lib/src/views}/widgets/EditFolderWidget.js +0 -0
  238. /package/{views → dist-lib/src/views}/widgets/EditGroupWidget.js +0 -0
  239. /package/{views → dist-lib/src/views}/widgets/EditItemWidget.js +0 -0
  240. /package/{views → dist-lib/src/views}/widgets/FileInfoWidget.js +0 -0
  241. /package/{views → dist-lib/src/views}/widgets/FileListWidget.js +0 -0
  242. /package/{views → dist-lib/src/views}/widgets/FolderInfoWidget.js +0 -0
  243. /package/{views → dist-lib/src/views}/widgets/FolderListWidget.js +0 -0
  244. /package/{views → dist-lib/src/views}/widgets/GroupAdminsWidget.js +0 -0
  245. /package/{views → dist-lib/src/views}/widgets/GroupInvitesWidget.js +0 -0
  246. /package/{views → dist-lib/src/views}/widgets/GroupMembersWidget.js +0 -0
  247. /package/{views → dist-lib/src/views}/widgets/GroupModsWidget.js +0 -0
  248. /package/{views → dist-lib/src/views}/widgets/HierarchyWidget.js +0 -0
  249. /package/{views → dist-lib/src/views}/widgets/ItemBreadcrumbWidget.js +0 -0
  250. /package/{views → dist-lib/src/views}/widgets/LoadingAnimation.js +0 -0
  251. /package/{views → dist-lib/src/views}/widgets/MarkdownWidget.js +0 -0
  252. /package/{views → dist-lib/src/views}/widgets/PluginConfigBreadcrumbWidget.js +0 -0
  253. /package/{views → dist-lib/src/views}/widgets/SearchFieldWidget.js +0 -0
  254. /package/{views → dist-lib/src/views}/widgets/TaskProgressWidget.js +0 -0
  255. /package/{views → dist-lib/src/views}/widgets/TimelineWidget.js +0 -0
  256. /package/{views → dist-lib/src/views}/widgets/UploadWidget.js +0 -0
  257. /package/{views → dist-lib/src/views}/widgets/UserOtpManagementWidget.js +0 -0
package/package.json CHANGED
@@ -1,34 +1,83 @@
1
1
  {
2
- "name": "@girder/core",
3
- "version": "3.2.9",
4
- "description": "Extensible data management platform",
5
- "homepage": "https://girder.readthedocs.org",
6
- "bugs": {
7
- "url": "https://github.com/girder/girder/issues"
2
+ "name": "@girder/core",
3
+ "license": "Apache-2.0",
4
+ "version": "5.0.0-a11",
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
- "license": "Apache-2.0",
10
- "repository": {
11
- "type": "git",
12
- "url": "https://github.com/girder/girder.git"
13
- },
14
- "dependencies": {
15
- "as-jqplot": "^1.0.8",
16
- "backbone": "^1.4.0",
17
- "bootstrap": "^3.4.1",
18
- "bootstrap-switch": "~3.3.4",
19
- "eonasdan-bootstrap-datetimepicker": "^4.17",
20
- "@girder/fontello": "*",
21
- "jquery": "^3.7.0",
22
- "jsoneditor": "~5.9.3",
23
- "moment": "^2.24.0",
24
- "moment-timezone": "^0.5.27",
25
- "qrcode": "~1.4.4",
26
- "remarkable": "^2.0.0",
27
- "sprintf-js": "^1.1.2",
28
- "swagger-ui-dist": "^5.7.2",
29
- "typeface-open-sans": "^0.0.75",
30
- "underscore": "^1.13.6",
31
- "url-otpauth": "^2.0.0"
32
- },
33
- "main": "./index.js"
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;
@@ -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
@@ -1,10 +0,0 @@
1
- /* global process */
2
-
3
- // Default value for external builds
4
- let version = null;
5
-
6
- try {
7
- version = process.env.GIRDER_VERSION || null;
8
- } catch (e) {}
9
-
10
- export default version;
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