solid-panes 3.5.29-alpha.1 → 3.5.30-6cc8fb8a

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 (309) hide show
  1. package/.babelrc +0 -0
  2. package/.eslintignore +0 -0
  3. package/.eslintrc +0 -0
  4. package/.github/workflows/ci.yml +0 -0
  5. package/.nvmrc +0 -0
  6. package/Documentation/VisualLanguage.html +0 -0
  7. package/Documentation/conventions.md +0 -0
  8. package/LICENSE.md +0 -0
  9. package/README.md +0 -0
  10. package/dev/index.html +0 -0
  11. package/dev/loader.ts +0 -0
  12. package/dev/pane/index.ts +0 -0
  13. package/doc/images/panes-for-classes.epgz +0 -0
  14. package/doc/images/panes-for-classes.svg +0 -0
  15. package/jest.config.js +0 -0
  16. package/jest.setup.ts +0 -0
  17. package/lib/RDFXMLPane.js +10 -2
  18. package/lib/RDFXMLPane.js.map +1 -1
  19. package/lib/argument/argumentPane.js +7 -5
  20. package/lib/argument/argumentPane.js.map +1 -1
  21. package/lib/attach/attachPane.js +13 -7
  22. package/lib/attach/attachPane.js.map +1 -1
  23. package/lib/audio/audioPane.js +13 -6
  24. package/lib/audio/audioPane.js.map +1 -1
  25. package/lib/classInstancePane.js +11 -3
  26. package/lib/classInstancePane.js.map +1 -1
  27. package/lib/dashboard/basicPreferences.d.ts +0 -0
  28. package/lib/dashboard/basicPreferences.d.ts.map +0 -0
  29. package/lib/dashboard/basicPreferences.js +96 -104
  30. package/lib/dashboard/basicPreferences.js.map +1 -1
  31. package/lib/dashboard/dashboardPane.d.ts +0 -0
  32. package/lib/dashboard/dashboardPane.d.ts.map +0 -0
  33. package/lib/dashboard/dashboardPane.js +0 -0
  34. package/lib/dashboard/dashboardPane.js.map +0 -0
  35. package/lib/dashboard/homepage.d.ts +0 -0
  36. package/lib/dashboard/homepage.d.ts.map +0 -0
  37. package/lib/dashboard/homepage.js +27 -31
  38. package/lib/dashboard/homepage.js.map +1 -1
  39. package/lib/dataContentPane.js +12 -4
  40. package/lib/dataContentPane.js.map +1 -1
  41. package/lib/defaultPane.js +11 -3
  42. package/lib/defaultPane.js.map +1 -1
  43. package/lib/dokieli/dokieliPane.js +15 -11
  44. package/lib/dokieli/dokieliPane.js.map +1 -1
  45. package/lib/dokieli/new.js +6 -1
  46. package/lib/dokieli/new.js.map +1 -1
  47. package/lib/form/pane.js +8 -5
  48. package/lib/form/pane.js.map +1 -1
  49. package/lib/global.d.js +0 -0
  50. package/lib/global.d.js.map +0 -0
  51. package/lib/home/homePane.d.ts +0 -0
  52. package/lib/home/homePane.d.ts.map +1 -1
  53. package/lib/home/homePane.js +35 -49
  54. package/lib/home/homePane.js.map +1 -1
  55. package/lib/humanReadablePane.js +0 -0
  56. package/lib/humanReadablePane.js.map +0 -0
  57. package/lib/imagePane.js +11 -2
  58. package/lib/imagePane.js.map +1 -1
  59. package/lib/index.d.ts +0 -0
  60. package/lib/index.d.ts.map +0 -0
  61. package/lib/index.js +2 -2
  62. package/lib/index.js.map +1 -1
  63. package/lib/internal/internalPane.d.ts +0 -0
  64. package/lib/internal/internalPane.d.ts.map +0 -0
  65. package/lib/internal/internalPane.js +0 -0
  66. package/lib/internal/internalPane.js.map +0 -0
  67. package/lib/mainPage/footer.d.ts +0 -0
  68. package/lib/mainPage/footer.d.ts.map +0 -0
  69. package/lib/mainPage/footer.js +0 -0
  70. package/lib/mainPage/footer.js.map +0 -0
  71. package/lib/mainPage/header.d.ts +0 -0
  72. package/lib/mainPage/header.d.ts.map +0 -0
  73. package/lib/mainPage/header.js +65 -73
  74. package/lib/mainPage/header.js.map +1 -1
  75. package/lib/mainPage/index.d.ts +0 -0
  76. package/lib/mainPage/index.d.ts.map +0 -0
  77. package/lib/mainPage/index.js +17 -19
  78. package/lib/mainPage/index.js.map +1 -1
  79. package/lib/microblogPane/microblogPane.js +82 -84
  80. package/lib/microblogPane/microblogPane.js.map +1 -1
  81. package/lib/n3Pane.js +11 -2
  82. package/lib/n3Pane.js.map +1 -1
  83. package/lib/outline/context.d.ts +0 -0
  84. package/lib/outline/context.d.ts.map +0 -0
  85. package/lib/outline/context.js +0 -0
  86. package/lib/outline/context.js.map +0 -0
  87. package/lib/outline/licenseOptions.js +13 -11
  88. package/lib/outline/licenseOptions.js.map +1 -1
  89. package/lib/outline/manager.js +581 -615
  90. package/lib/outline/manager.js.map +1 -1
  91. package/lib/outline/manager.test.js +16 -15
  92. package/lib/outline/manager.test.js.map +1 -1
  93. package/lib/outline/outlineIcons.js +10 -2
  94. package/lib/outline/outlineIcons.js.map +1 -1
  95. package/lib/outline/propertyViews.d.ts +3 -2
  96. package/lib/outline/propertyViews.d.ts.map +1 -1
  97. package/lib/outline/propertyViews.js +7 -5
  98. package/lib/outline/propertyViews.js.map +1 -1
  99. package/lib/outline/propertyViews.test.js +6 -4
  100. package/lib/outline/propertyViews.test.js.map +1 -1
  101. package/lib/outline/queryByExample.js +6 -6
  102. package/lib/outline/queryByExample.js.map +1 -1
  103. package/lib/outline/userInput.js +7 -5
  104. package/lib/outline/userInput.js.map +1 -1
  105. package/lib/outline/viewAsImage.d.ts +0 -0
  106. package/lib/outline/viewAsImage.d.ts.map +0 -0
  107. package/lib/outline/viewAsImage.js +0 -0
  108. package/lib/outline/viewAsImage.js.map +0 -0
  109. package/lib/outline/viewAsMbox.d.ts +0 -0
  110. package/lib/outline/viewAsMbox.d.ts.map +0 -0
  111. package/lib/outline/viewAsMbox.js +0 -0
  112. package/lib/outline/viewAsMbox.js.map +0 -0
  113. package/lib/pad/padPane.d.ts +0 -0
  114. package/lib/pad/padPane.d.ts.map +0 -0
  115. package/lib/pad/padPane.js +0 -0
  116. package/lib/pad/padPane.js.map +0 -0
  117. package/lib/playlist/playlistPane.js +13 -6
  118. package/lib/playlist/playlistPane.js.map +1 -1
  119. package/lib/profile/editProfile.view.d.ts +0 -0
  120. package/lib/profile/editProfile.view.d.ts.map +1 -1
  121. package/lib/profile/editProfile.view.js +16 -0
  122. package/lib/profile/editProfile.view.js.map +1 -1
  123. package/lib/profile/profile.dom.d.ts +0 -0
  124. package/lib/profile/profile.dom.d.ts.map +0 -0
  125. package/lib/profile/profile.dom.js +0 -0
  126. package/lib/profile/profile.dom.js.map +0 -0
  127. package/lib/registerPanes.js +93 -50
  128. package/lib/registerPanes.js.map +1 -1
  129. package/lib/schedule/formsForSchedule.js +6 -1
  130. package/lib/schedule/formsForSchedule.js.map +1 -1
  131. package/lib/schedule/schedulePane.js +9 -4
  132. package/lib/schedule/schedulePane.js.map +1 -1
  133. package/lib/sharing/sharingPane.d.ts +0 -0
  134. package/lib/sharing/sharingPane.d.ts.map +0 -0
  135. package/lib/sharing/sharingPane.js +0 -0
  136. package/lib/sharing/sharingPane.js.map +0 -0
  137. package/lib/slideshow/slideshowPane.js +16 -11
  138. package/lib/slideshow/slideshowPane.js.map +1 -1
  139. package/lib/socialPane.js +16 -12
  140. package/lib/socialPane.js.map +1 -1
  141. package/lib/tabbed/tabbedPane.d.ts +0 -0
  142. package/lib/tabbed/tabbedPane.d.ts.map +0 -0
  143. package/lib/tabbed/tabbedPane.js +32 -34
  144. package/lib/tabbed/tabbedPane.js.map +1 -1
  145. package/lib/tableViewPane.js +12 -3
  146. package/lib/tableViewPane.js.map +1 -1
  147. package/lib/test-import-export/common.js +6 -2
  148. package/lib/test-import-export/common.js.map +1 -1
  149. package/lib/test-import-export/edit-importer.js +9 -11
  150. package/lib/test-import-export/edit-importer.js.map +1 -1
  151. package/lib/test-import-export/testImportExport.js +0 -0
  152. package/lib/test-import-export/testImportExport.js.map +0 -0
  153. package/lib/transaction/pane.js +12 -6
  154. package/lib/transaction/pane.js.map +1 -1
  155. package/lib/transaction/period.js +11 -4
  156. package/lib/transaction/period.js.map +1 -1
  157. package/lib/trip/tripPane.js +12 -5
  158. package/lib/trip/tripPane.js.map +1 -1
  159. package/lib/trustedApplications/trustedApplications.dom.d.ts +0 -0
  160. package/lib/trustedApplications/trustedApplications.dom.d.ts.map +0 -0
  161. package/lib/trustedApplications/trustedApplications.dom.js +4 -1
  162. package/lib/trustedApplications/trustedApplications.dom.js.map +1 -1
  163. package/lib/trustedApplications/trustedApplications.test.js +3 -0
  164. package/lib/trustedApplications/trustedApplications.test.js.map +1 -1
  165. package/lib/trustedApplications/trustedApplications.utils.d.ts +0 -0
  166. package/lib/trustedApplications/trustedApplications.utils.d.ts.map +0 -0
  167. package/lib/trustedApplications/trustedApplications.utils.js +1 -1
  168. package/lib/trustedApplications/trustedApplications.utils.js.map +0 -0
  169. package/lib/trustedApplications/trustedApplications.view.d.ts +0 -0
  170. package/lib/trustedApplications/trustedApplications.view.d.ts.map +0 -0
  171. package/lib/trustedApplications/trustedApplications.view.js +38 -40
  172. package/lib/trustedApplications/trustedApplications.view.js.map +1 -1
  173. package/lib/types.d.ts +0 -0
  174. package/lib/types.d.ts.map +0 -0
  175. package/lib/types.js +0 -0
  176. package/lib/types.js.map +0 -0
  177. package/lib/ui/pane.js +12 -5
  178. package/lib/ui/pane.js.map +1 -1
  179. package/lib/versionInfo.d.ts +0 -2
  180. package/lib/versionInfo.d.ts.map +1 -1
  181. package/lib/versionInfo.js +12 -14
  182. package/lib/versionInfo.js.map +1 -1
  183. package/lib/video/videoPane.js +12 -5
  184. package/lib/video/videoPane.js.map +1 -1
  185. package/package.json +21 -23
  186. package/src/RDFXMLPane.js +2 -2
  187. package/src/argument/argumentPane.js +1 -1
  188. package/src/argument/argument_icon_v04.jpg +0 -0
  189. package/src/argument/icon_argument.png +0 -0
  190. package/src/argument/transparentyingyang.png +0 -0
  191. package/src/attach/attachPane.js +3 -3
  192. package/src/attach/tbl-paperclip-128.png +0 -0
  193. package/src/attach/tbl-paperclip-22.png +0 -0
  194. package/src/attach/tbl-paperclip-22a.png +0 -0
  195. package/src/audio/audioPane.js +3 -3
  196. package/src/chatPreferencesForm.ttl +0 -0
  197. package/src/classInstancePane.js +3 -3
  198. package/src/dashboard/basicPreferences.ts +0 -0
  199. package/src/dashboard/dashboardPane.ts +0 -0
  200. package/src/dashboard/homepage.ts +0 -0
  201. package/src/dashboard/languages/codes.html +0 -0
  202. package/src/dashboard/languages/codes.xml +0 -0
  203. package/src/dashboard/languages/codes2.txt +0 -0
  204. package/src/dashboard/languages/foo +0 -0
  205. package/src/dashboard/languages/foo.ttl +0 -0
  206. package/src/dashboard/languages/get-language-names.sh +0 -0
  207. package/src/dashboard/ontologyData.ttl +0 -0
  208. package/src/dashboard/preferencesFormText.ttl +0 -0
  209. package/src/dataContentPane.js +3 -4
  210. package/src/defaultPane.js +3 -3
  211. package/src/dokieli/Makefile +0 -0
  212. package/src/dokieli/dokieliPane.js +5 -5
  213. package/src/dokieli/new.html +0 -0
  214. package/src/dokieli/new.js +1 -1
  215. package/src/form/form-22.png +0 -0
  216. package/src/form/form-b-22.png +0 -0
  217. package/src/form/form.graffle +0 -0
  218. package/src/form/form.png +0 -0
  219. package/src/form/pane.js +2 -2
  220. package/src/form/psuedocode-notes.txt +0 -0
  221. package/src/global.d.ts +0 -0
  222. package/src/home/homePane.ts +1 -14
  223. package/src/humanReadablePane.js +0 -0
  224. package/src/imagePane.js +2 -2
  225. package/src/index.ts +1 -1
  226. package/src/internal/internalPane.ts +0 -0
  227. package/src/mainPage/footer.ts +0 -0
  228. package/src/mainPage/header.ts +0 -0
  229. package/src/mainPage/index.ts +0 -0
  230. package/src/meeting/Makefile +0 -0
  231. package/src/meeting/test/meeting1/Actions/actions.ttl +0 -0
  232. package/src/meeting/test/meeting1/Actions/config.ttl +0 -0
  233. package/src/meeting/test/meeting1/Actions/state.ttl +0 -0
  234. package/src/meeting/test/meeting1/Schedule/details.ttl +0 -0
  235. package/src/meeting/test/meeting1/Schedule/details.ttl.acl +0 -0
  236. package/src/meeting/test/meeting1/Schedule/forms.ttl +0 -0
  237. package/src/meeting/test/meeting1/Schedule/forms.ttl.acl +0 -0
  238. package/src/meeting/test/meeting1/Schedule/index.html +0 -0
  239. package/src/meeting/test/meeting1/Schedule/index.html.acl +0 -0
  240. package/src/meeting/test/meeting1/Schedule/results.ttl +0 -0
  241. package/src/meeting/test/meeting1/Schedule/results.ttl.acl +0 -0
  242. package/src/meeting/test/meeting1/SharedNotes/pad.ttl +0 -0
  243. package/src/meeting/test/meeting1/chat/chat.ttl +0 -0
  244. package/src/meeting/test/meeting1/details.ttl +0 -0
  245. package/src/meeting/test/meeting1/pad/pad.ttl +0 -0
  246. package/src/microblogPane/mbStyle.css +0 -0
  247. package/src/microblogPane/microblogPane.js +1 -1
  248. package/src/n3Pane.js +2 -2
  249. package/src/outline/context.ts +0 -0
  250. package/src/outline/licenseOptions.js +9 -8
  251. package/src/outline/manager.js +18 -20
  252. package/src/outline/manager.test.ts +6 -0
  253. package/src/outline/outlineIcons.js +4 -2
  254. package/src/outline/propertyViews.test.ts +7 -1
  255. package/src/outline/propertyViews.ts +3 -3
  256. package/src/outline/queryByExample.js +3 -9
  257. package/src/outline/userInput.js +1 -1
  258. package/src/outline/viewAsImage.ts +0 -0
  259. package/src/outline/viewAsMbox.ts +0 -0
  260. package/src/pad/images/ColourOff.ai +0 -0
  261. package/src/pad/images/ColourOff.png +0 -0
  262. package/src/pad/images/ColourOn.ai +0 -0
  263. package/src/pad/images/ColourOn.png +0 -0
  264. package/src/pad/padPane.ts +0 -0
  265. package/src/playlist/playlistPane.js +3 -3
  266. package/src/profile/editProfile.view.ts +20 -0
  267. package/src/profile/profile.dom.ts +0 -0
  268. package/src/profile/profileFormText.ttl +0 -0
  269. package/src/registerPanes.js +92 -52
  270. package/src/schedule/Makefile +0 -0
  271. package/src/schedule/formsForSchedule.js +1 -1
  272. package/src/schedule/formsForSchedule.ttl +0 -0
  273. package/src/schedule/schedulePane.js +6 -2
  274. package/src/sharing/sharingPane.ts +0 -0
  275. package/src/slideshow/slideshowPane.js +3 -6
  276. package/src/socialPane.js +4 -5
  277. package/src/style/tabbedtab.css +0 -0
  278. package/src/tabbed/tabbedPane.ts +0 -0
  279. package/src/tableViewPane.js +3 -3
  280. package/src/test-import-export/common.js +1 -1
  281. package/src/test-import-export/edit-importer.js +5 -10
  282. package/src/test-import-export/testImportExport.js +0 -0
  283. package/src/transaction/068010-3d-transparent-glass-icon-alphanumeric-dollar-sign.png +0 -0
  284. package/src/transaction/075988-3d-transparent-glass-icon-business-currency-british-pound-sc35.png +0 -0
  285. package/src/transaction/22-pixel-068010-3d-transparent-glass-icon-alphanumeric-dollar-sign.png +0 -0
  286. package/src/transaction/pane.js +3 -3
  287. package/src/transaction/period.js +2 -2
  288. package/src/transaction/thumbs_075987-3d-transparent-glass-icon-business-creditcard2.png +0 -0
  289. package/src/transaction/thumbs_075989-3d-transparent-glass-icon-business-currency-cent-sc35.png +0 -0
  290. package/src/trip/tripPane.js +3 -3
  291. package/src/trustedApplications/__snapshots__/trustedApplications.test.ts.snap +0 -0
  292. package/src/trustedApplications/trustedApplications.dom.ts +0 -0
  293. package/src/trustedApplications/trustedApplications.test.ts +4 -0
  294. package/src/trustedApplications/trustedApplications.utils.ts +0 -0
  295. package/src/trustedApplications/trustedApplications.view.ts +0 -0
  296. package/src/types.ts +0 -0
  297. package/src/ui/22-builder.png +0 -0
  298. package/src/ui/builder.graffle +0 -0
  299. package/src/ui/builder.png +0 -0
  300. package/src/ui/builder2.png +0 -0
  301. package/src/ui/pane.js +3 -3
  302. package/src/versionInfo.ts +12 -14
  303. package/src/video/videoPane.js +3 -3
  304. package/timestamp.sh +0 -0
  305. package/travis/bumpversion.js +0 -0
  306. package/tsconfig.json +0 -0
  307. package/typings/raw-loader.d.ts +0 -0
  308. package/typings/solid-namespace/index.d.ts +0 -0
  309. package/webpack.config.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "solid-panes",
3
- "version": "3.5.29-alpha.1",
3
+ "version": "3.5.30-6cc8fb8a",
4
4
  "description": "Solid-compatible Panes: applets and views for the mashlib and databrowser",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -15,9 +15,9 @@
15
15
  "clean": "rm -rf dist lib",
16
16
  "lint": "eslint 'src/**/*.js' 'src/**/*.ts'",
17
17
  "lint-fix": "eslint 'src/**/*.js' 'src/**/*.ts' --fix",
18
- "test": "npm run lint && jest",
18
+ "test": "npm run lint && jest src/**/*test*",
19
19
  "test-watch": "npm run lint && jest --onlyChanged --watch",
20
- "prepublishOnly": "npm test && npm run build",
20
+ "ignore:prepublishOnly": "npm test && npm run build",
21
21
  "postversion": "git push origin main --follow-tags",
22
22
  "start": "npm install && npm run build-version && npx webpack serve --open"
23
23
  },
@@ -46,47 +46,45 @@
46
46
  "homepage": "https://github.com/solidos/solid-panes",
47
47
  "dependencies": {
48
48
  "@solid/better-simple-slideshow": "^0.1.0",
49
- "activitystreams-pane": "0.6.8",
50
- "chat-pane": "2.4.20",
51
- "contacts-pane": "^2.6.6-alpha",
52
- "folder-pane": "^2.4.20",
53
- "issue-pane": "2.4.14",
54
- "marked": "^4.2.2",
55
- "meeting-pane": "^2.3.14",
49
+ "activitystreams-pane": "0.6.9",
50
+ "chat-pane": "2.4.21",
51
+ "contacts-pane": "^2.6.8",
52
+ "folder-pane": "^2.4.21",
53
+ "issue-pane": "2.4.15",
54
+ "marked": "^4.2.12",
55
+ "meeting-pane": "^2.3.15",
56
56
  "mime-types": "^2.1.35",
57
- "pane-registry": "2.4.13",
58
- "profile-pane": "^1.0.14-alpha.1",
59
- "rdflib": "^2.2.21",
60
- "solid-logic": "^2.0.1",
57
+ "profile-pane": "^1.0.15",
61
58
  "solid-namespace": "^0.5.2",
62
- "solid-ui": "2.4.24",
63
- "source-pane": "2.2.19"
59
+ "solid-ui": "2.4.25",
60
+ "source-pane": "^2.2.21"
64
61
  },
65
62
  "devDependencies": {
66
- "@babel/cli": "^7.19.3",
67
- "@babel/core": "^7.20.2",
63
+ "@babel/cli": "^7.20.7",
64
+ "@babel/core": "^7.20.12",
68
65
  "@babel/preset-env": "^7.20.2",
69
66
  "@babel/preset-typescript": "^7.18.6",
70
- "@testing-library/dom": "^8.19.0",
67
+ "@testing-library/dom": "^8.20.0",
71
68
  "@testing-library/jest-dom": "^5.16.5",
72
69
  "@types/jest": "^27.5.2",
73
70
  "@types/webpack-env": "^1.18.0",
74
- "@typescript-eslint/eslint-plugin": "^5.43.0",
75
- "@typescript-eslint/parser": "^5.43.0",
71
+ "@typescript-eslint/eslint-plugin": "^5.50.0",
72
+ "@typescript-eslint/parser": "^5.50.0",
76
73
  "babel-loader": "^8.3.0",
77
74
  "babel-plugin-inline-import": "^3.0.0",
78
75
  "buffer": "^6.0.3",
79
- "eslint": "^8.27.0",
76
+ "eslint": "^8.33.0",
80
77
  "html-webpack-plugin": "^5.5.0",
81
78
  "husky": "^7.0.4",
82
79
  "jest": "^27.5.1",
83
80
  "jest-fetch-mock": "^3.0.3",
84
81
  "lint-staged": "^12.5.0",
82
+ "node-polyfill-webpack-plugin": "^2.0.1",
85
83
  "path-browserify": "^1.0.1",
86
84
  "react": "^18.2.0",
87
85
  "react-dom": "^18.2.0",
88
86
  "ts-jest": "^27.1.5",
89
- "typescript": "^4.8.2",
87
+ "typescript": "^4.9.5",
90
88
  "webpack": "^5.75.0",
91
89
  "webpack-cli": "^4.10.0",
92
90
  "webpack-dev-server": "^4.11.1"
package/src/RDFXMLPane.js CHANGED
@@ -5,10 +5,10 @@
5
5
  ** in generated N3 syntax.
6
6
  */
7
7
 
8
- const UI = require('solid-ui')
8
+ import * as UI from 'solid-ui'
9
9
  const ns = UI.ns
10
10
 
11
- module.exports = {
11
+ export const RDFXMLPane = {
12
12
  icon: UI.icons.originalIconBase + '22-text-xml4.png',
13
13
 
14
14
  name: 'RDFXML',
@@ -11,7 +11,7 @@ import * as UI from 'solid-ui'
11
11
  import * as panes from 'pane-registry'
12
12
 
13
13
  // console.log('@@@ argument pane icon at ' + (module.__dirname || __dirname) + '/icon_argument.png')
14
- module.exports = {
14
+ export default {
15
15
  icon: (module.__dirname || __dirname) + '/icon_argument.png', // @@ fix fro mashlib version
16
16
 
17
17
  name: 'argument',
File without changes
File without changes
File without changes
@@ -8,10 +8,10 @@
8
8
  **
9
9
  */
10
10
 
11
- const UI = require('solid-ui')
12
- const $rdf = require('rdflib')
11
+ import * as UI from 'solid-ui'
12
+ import * as $rdf from 'rdflib'
13
13
 
14
- module.exports = {
14
+ export default {
15
15
  icon: UI.icons.iconBase + 'noun_25830.svg', // noun_25830
16
16
 
17
17
  name: 'attachments',
File without changes
File without changes
File without changes
@@ -1,11 +1,11 @@
1
1
  /* Single audio play Pane
2
2
  **
3
3
  */
4
- const UI = require('solid-ui')
5
- const $rdf = require('rdflib')
4
+ import * as UI from 'solid-ui'
5
+ import * as $rdf from 'rdflib'
6
6
  const ns = UI.ns
7
7
 
8
- module.exports = {
8
+ export default {
9
9
  icon: UI.icons.iconBase + 'noun_534313.svg',
10
10
 
11
11
  name: 'audio',
File without changes
@@ -3,12 +3,12 @@
3
3
  ** This outline pane lists the members of a class
4
4
  */
5
5
 
6
- const UI = require('solid-ui')
7
- const $rdf = require('rdflib')
6
+ import * as UI from 'solid-ui'
7
+ import * as $rdf from 'rdflib'
8
8
 
9
9
  const ns = UI.ns
10
10
 
11
- module.exports = {
11
+ export const classInstancePane = {
12
12
  icon: UI.icons.originalIconBase + 'tango/22-folder-open.png',
13
13
 
14
14
  name: 'classInstance',
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
@@ -9,11 +9,10 @@
9
9
  // - Expand automatically all the way down
10
10
  // - original source view? Use ffox view source
11
11
 
12
- const UI = require('solid-ui')
13
- const $rdf = require('rdflib')
12
+ import * as UI from 'solid-ui'
14
13
  const ns = UI.ns
15
14
 
16
- module.exports = {
15
+ export const dataContentPane = {
17
16
  icon: UI.icons.originalIconBase + 'rdf_flyer.24.gif',
18
17
 
19
18
  name: 'dataContents',
@@ -280,7 +279,7 @@ module.exports = {
280
279
  // or we could keep all the pre-smushed triples.
281
280
  const sts = kb.statementsMatching(undefined, undefined, undefined, subject) // @@ slow with current store!
282
281
 
283
- if ($rdf.keepThisCodeForLaterButDisableFerossConstantConditionPolice) {
282
+ if (false) { // keep code
284
283
  alternativeRendering()
285
284
  } else {
286
285
  mainRendering()
@@ -5,11 +5,11 @@
5
5
  ** This pane hides the ones considered too low-level for the normal user.
6
6
  */
7
7
 
8
- const UI = require('solid-ui')
9
- const $rdf = require('rdflib')
8
+ import * as UI from 'solid-ui'
9
+ import * as $rdf from 'rdflib'
10
10
  const ns = UI.ns
11
11
 
12
- module.exports = {
12
+ export const defaultPane = {
13
13
  icon: UI.icons.originalIconBase + 'about.png',
14
14
 
15
15
  name: 'default',
File without changes
@@ -5,15 +5,15 @@
5
5
  ** review. It does not use turtle, but RDF/a
6
6
  */
7
7
 
8
- const UI = require('solid-ui')
9
- const $rdf = require('rdflib')
10
- const mime = require('mime-types')
8
+ import * as UI from 'solid-ui'
9
+ import * as $rdf from 'rdflib'
10
+ import * as mime from 'mime-types'
11
11
 
12
12
  // const DOKIELI_TEMPLATE_URI = 'https://dokie.li/new' // Copy to make new dok
13
13
 
14
- const DOKIELI_TEMPLATE = require('./new.js') // Distributed with this library
14
+ import * as DOKIELI_TEMPLATE from './new.js' // Distributed with this library
15
15
 
16
- module.exports = {
16
+ export default {
17
17
  icon: UI.icons.iconBase + 'dokieli-logo.png', // @@ improve? more like doccument?
18
18
 
19
19
  name: 'Dokieli',
File without changes
@@ -1,4 +1,4 @@
1
- module.exports = `
1
+ export default `
2
2
  <!DOCTYPE html>
3
3
  <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
4
4
  <head>
File without changes
File without changes
File without changes
package/src/form/form.png CHANGED
File without changes
package/src/form/pane.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- ** Pane for running existing forms for any object
2
+ ** Pane for running existing forms for any object
3
3
  **
4
4
  */
5
5
 
@@ -8,7 +8,7 @@ import { authn } from 'solid-logic'
8
8
  import * as $rdf from 'rdflib'
9
9
  const ns = UI.ns
10
10
 
11
- module.exports = {
11
+ export const formPane = {
12
12
  icon: UI.icons.iconBase + 'noun_122196.svg',
13
13
 
14
14
  name: 'form',
File without changes
package/src/global.d.ts CHANGED
File without changes
@@ -56,20 +56,7 @@ const HomePaneSource: PaneDefinition = {
56
56
  )
57
57
  create.newThingUI(creationContext, context, relevantPanes) // newUI Have to pass panes down
58
58
 
59
- div.appendChild(dom.createElement('h4')).textContent = 'Private things'
60
- // TODO: Replace by a common, representative interface
61
- login
62
- .registrationList(homePaneContext, { private: true })
63
- .then(function (authContext) {
64
- div.appendChild(dom.createElement('h4')).textContent = 'Public things'
65
- div.appendChild(dom.createElement('p')).textContent =
66
- 'Things in this list are visible to others.'
67
- login
68
- .registrationList(authContext, { public: true })
69
- .then(function () {
70
- // done
71
- })
72
- })
59
+ login.registrationList(homePaneContext, {}).then(function () {})
73
60
  }
74
61
 
75
62
  const div = dom.createElement('div')
File without changes
package/src/imagePane.js CHANGED
@@ -2,9 +2,9 @@
2
2
  **
3
3
  ** This outline pane contains the document contents for an Image document
4
4
  */
5
- const UI = require('solid-ui')
5
+ import * as UI from 'solid-ui'
6
6
 
7
- module.exports = {
7
+ export const imagePane = {
8
8
  icon: UI.icons.originalIconBase + 'tango/22-image-x-generic.png',
9
9
 
10
10
  name: 'image',
package/src/index.ts CHANGED
@@ -15,7 +15,7 @@ import * as UI from 'solid-ui'
15
15
  import { LiveStore } from 'rdflib'
16
16
  import { solidLogicSingleton, store } from 'solid-logic'
17
17
  import OutlineManager from './outline/manager.js'
18
- import registerPanes from './registerPanes.js'
18
+ import { registerPanes } from './registerPanes.js'
19
19
  import {
20
20
  list,
21
21
  paneForIcon,
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
@@ -6,7 +6,7 @@
6
6
  import { authn, store } from 'solid-logic'
7
7
  import * as UI from 'solid-ui'
8
8
 
9
- module.exports = {
9
+ export default {
10
10
  icon: UI.icons.originalIconBase + 'microblog/microblog.png',
11
11
  name: 'microblogPane',
12
12
  label: function (subject) {
package/src/n3Pane.js CHANGED
@@ -4,10 +4,10 @@
4
4
  ** or at least the RDF semantics we attribute to that resource,
5
5
  ** in generated N3 syntax.
6
6
  */
7
- const UI = require('solid-ui')
7
+ import * as UI from 'solid-ui'
8
8
  const ns = UI.ns
9
9
 
10
- module.exports = {
10
+ export const n3Pane = {
11
11
  icon: UI.icons.originalIconBase + 'w3c/n3_smaller.png',
12
12
 
13
13
  name: 'n3',
File without changes
@@ -1,12 +1,11 @@
1
1
  // This was a student project to
2
- // allow the user to chose favoite CC licence terms and have them highlighted
2
+ // allow the user to chose favoite CC license terms and have them highlighted
3
3
 
4
4
  // tabulator.options becaome UI.licenseOptions
5
- // Possible future alternative directoons: Store licence preferences in a solid preferences file
6
- import * as UI from 'solid-ui'
5
+ // Possible future alternative directoons: Store license preferences in a solid preferences file
7
6
  import { store } from 'solid-logic'
8
7
 
9
- const licenseURI = [
8
+ export const licenseURI = [
10
9
  'http://creativecommons.org/licenses/by-nc-nd/3.0/',
11
10
  'http://creativecommons.org/licenses/by-nc-sa/3.0/',
12
11
  'http://creativecommons.org/licenses/by-nc/3.0/',
@@ -17,7 +16,7 @@ const licenseURI = [
17
16
 
18
17
  const names = ['BY-NC-ND', 'BY-NC-SA', 'BY-NC', 'BY-ND', 'BY-SA', 'BY']
19
18
 
20
- module.exports = function licenseOptions () {
19
+ export function licenseOptions () {
21
20
  this.options = {}
22
21
  this.references = []
23
22
  this.checkedLicenses = []
@@ -81,12 +80,14 @@ module.exports = function licenseOptions () {
81
80
  }
82
81
  }
83
82
 
84
- this.checkLicence = function checkLicense (statement) {
83
+ this.checkLicense = function checkLicense (statement) {
85
84
  const licenses = store.each(
86
85
  statement.why,
87
- store.sym('http://creativecommons.org/ns#license')
86
+ store.sym('http://creativecommons.org/ns#license'),
87
+ null,
88
+ statement.why
88
89
  )
89
- UI.log.info('licenses:' + statement.why + ': ' + licenses)
90
+ // UI.log.info('licenses:' + statement.why + ': ' + licenses)
90
91
  for (let i = 0; i < licenses.length; i++) {
91
92
  for (let j = 0; j < this.checkedLicenses.length; j++) {
92
93
  if (this.checkedLicenses[j] && licenses[i].uri === licenseURI[j]) {
@@ -6,11 +6,12 @@ import * as paneRegistry from 'pane-registry'
6
6
  import * as $rdf from 'rdflib'
7
7
  import * as UI from 'solid-ui'
8
8
  import { authn, authSession, store } from 'solid-logic'
9
- import propertyViews from './propertyViews'
9
+ import { propertyViews } from './propertyViews'
10
+ import { licenseOptions } from './licenseOptions'
10
11
 
11
- const outlineIcons = require('./outlineIcons.js')
12
- const UserInput = require('./userInput.js')
13
- const queryByExample = require('./queryByExample.js')
12
+ import { outlineIcons } from './outlineIcons.js' // @@ chec
13
+ import { UserInput } from './userInput.js'
14
+ import * as queryByExample from './queryByExample.js'
14
15
 
15
16
  /* global alert XPathResult sourceWidget */
16
17
  // XPathResult?
@@ -180,7 +181,7 @@ export default function (context) {
180
181
 
181
182
  // check the IPR on the data. Ok if there is any checked license which is one the document has.
182
183
  if (statement && statement.why) {
183
- if (UI.licenceOptions && UI.licenceOptions.checkLicence()) {
184
+ if (licenseOptions && licenseOptions.checklicense && licenseOptions.checklicense()) {
184
185
  theClass += ' licOkay' // flag as light green etc .licOkay {background-color: #dfd}
185
186
  }
186
187
  }
@@ -646,23 +647,20 @@ export default function (context) {
646
647
  const renderPane = function (pane) {
647
648
  let paneDiv
648
649
  UI.log.info('outline: Rendering pane (2): ' + pane.name)
649
- if (UI.no_catch_pane_errors) {
650
- // for debugging
650
+
651
+ try {
651
652
  paneDiv = pane.render(subject, context, options)
652
- } else {
653
- try {
654
- paneDiv = pane.render(subject, context, options)
655
- } catch (e) {
656
- // Easier debugging for pane developers
657
- paneDiv = dom.createElement('div')
658
- paneDiv.setAttribute('class', 'exceptionPane')
659
- const pre = dom.createElement('pre')
660
- paneDiv.appendChild(pre)
661
- pre.appendChild(
662
- dom.createTextNode(UI.utils.stackString(e))
663
- )
664
- }
653
+ } catch (e) {
654
+ // Easier debugging for pane developers
655
+ paneDiv = dom.createElement('div')
656
+ paneDiv.setAttribute('class', 'exceptionPane')
657
+ const pre = dom.createElement('pre')
658
+ paneDiv.appendChild(pre)
659
+ pre.appendChild(
660
+ dom.createTextNode(UI.utils.stackString(e))
661
+ )
665
662
  }
663
+
666
664
  if (
667
665
  pane.requireQueryButton &&
668
666
  dom.getElementById('queryButton')
@@ -1,4 +1,10 @@
1
1
  /* eslint-env jest */
2
+
3
+ import { TextEncoder, TextDecoder } from 'util'
4
+ global.TextEncoder = TextEncoder as any
5
+ global.TextDecoder = TextDecoder as any
6
+
7
+
2
8
  import OutlineManager from './manager'
3
9
 
4
10
  import { lit, NamedNode, sym, blankNode } from 'rdflib'
@@ -1,7 +1,9 @@
1
1
  // This is a system of tracking tooltip phrases used by the tabulator outliner
2
2
 
3
- const outlineIcons = (module.exports = {}) // was tabulator.Icon
4
- const UI = require('solid-ui')
3
+ import * as UI from 'solid-ui'
4
+
5
+
6
+ export const outlineIcons = {}
5
7
 
6
8
  outlineIcons.src = [] // collect the URIs of the icon filterColumns
7
9
  outlineIcons.tooltips = [] // look up tool tips from URL
@@ -1,6 +1,12 @@
1
1
  /* eslint-env jest */
2
+
3
+ import { TextEncoder, TextDecoder } from 'util'
4
+ global.TextEncoder = TextEncoder as any
5
+ global.TextDecoder = TextDecoder as any
6
+
7
+
2
8
  import { sym } from 'rdflib'
3
- import propertyViews from './propertyViews'
9
+ import { propertyViews } from './propertyViews'
4
10
 
5
11
  describe('property views', () => {
6
12
  it.each([
@@ -4,7 +4,7 @@ import viewAsMbox from './viewAsMbox'
4
4
 
5
5
  /** some builtin simple views **/
6
6
 
7
- export default (dom) => {
7
+ export function propertyViews (dom) {
8
8
  // view that applies to items that are objects of certain properties.
9
9
  const views = {
10
10
  properties: [],
@@ -25,7 +25,7 @@ export default (dom) => {
25
25
  }
26
26
 
27
27
  /** add a property view function **/
28
- function viewsAddPropertyView (views, property, pviewfunc, isDefault) {
28
+ export function viewsAddPropertyView (views, property, pviewfunc, isDefault) {
29
29
  if (!views.properties[property]) {
30
30
  views.properties[property] = []
31
31
  }
@@ -34,4 +34,4 @@ function viewsAddPropertyView (views, property, pviewfunc, isDefault) {
34
34
  // will override an existing default!
35
35
  views.defaults[property] = pviewfunc
36
36
  }
37
- } // addPropertyView
37
+ } // viewsAddPropertyView