@explorable-viz/fluid 0.12.2 → 0.12.3

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 (236) hide show
  1. package/dist/fluid/shared/fluid.mjs +478 -438
  2. package/dist/fluid/shared/load-figure.js +3193 -2969
  3. package/package.json +12 -26
  4. package/script/install-website.sh +27 -9
  5. package/web/lib/CodeMirror.svelte +19 -0
  6. package/web/lib/DataPane.svelte +46 -0
  7. package/web/lib/Figure.svelte +38 -0
  8. package/web/lib/FigureSrc.svelte +35 -0
  9. package/web/lib/Grid.svelte +32 -0
  10. package/web/lib/index.js +5 -0
  11. package/web/lib/view-styles.css +262 -0
  12. package/website/article/eslint.config.js +45 -0
  13. package/website/article/package.json +46 -0
  14. package/website/article/src/app.d.ts +13 -0
  15. package/website/article/src/app.html +12 -0
  16. package/website/article/src/lib/assets/css/styles.css +245 -0
  17. package/website/article/src/lib/assets/image/bristol.png +0 -0
  18. package/website/article/src/lib/assets/image/fluid.png +0 -0
  19. package/website/article/src/lib/assets/image/iccs.png +0 -0
  20. package/website/article/src/lib/assets/image/schmidt.png +0 -0
  21. package/website/article/src/lib/assets/image/turing.jpg +0 -0
  22. package/website/article/src/lib/config/nav.ts +7 -0
  23. package/website/article/src/lib/config/supporters.ts +27 -0
  24. package/website/article/src/routes/+layout.svelte +15 -0
  25. package/website/article/src/routes/+layout.ts +1 -0
  26. package/website/article/{index.html → src/routes/+page.svelte} +8 -17
  27. package/website/article/src/routes/convolution/+page.svelte +62 -0
  28. package/website/article/src/routes/energy-scatter/+page.svelte +34 -0
  29. package/website/article/src/routes/methane/+page.svelte +35 -0
  30. package/website/article/src/routes/moving-average/+page.svelte +57 -0
  31. package/website/article/src/routes/non-renewables/+page.svelte +40 -0
  32. package/website/article/src/routes/renewables-linked/+page.svelte +34 -0
  33. package/website/article/src/routes/scigen-1805.02474v1-10/+page.svelte +40 -0
  34. package/website/article/static/fluid/lib/graphics.fld +274 -0
  35. package/website/article/static/fluid/lib/matrix.fld +40 -0
  36. package/website/article/static/fluid/lib/prelude.fld +348 -0
  37. package/website/article/static/fluid/lib/stats.fld +83 -0
  38. package/website/article/svelte.config.js +13 -0
  39. package/website/article/test.mjs +66 -11
  40. package/website/article/tsconfig.json +20 -0
  41. package/website/article/vite.config.ts +6 -0
  42. package/.spago/aff/v7.1.0/.editorconfig +0 -13
  43. package/.spago/aff/v7.1.0/.eslintrc.json +0 -28
  44. package/.spago/aff/v7.1.0/.gitignore +0 -14
  45. package/.spago/aff/v7.1.0/.tidyrc.json +0 -10
  46. package/.spago/affjax/v13.0.0/.editorconfig +0 -13
  47. package/.spago/affjax/v13.0.0/.eslintrc.json +0 -28
  48. package/.spago/affjax/v13.0.0/.gitignore +0 -14
  49. package/.spago/affjax/v13.0.0/.tidyrc.json +0 -10
  50. package/.spago/affjax-web/v1.0.0/.editorconfig +0 -13
  51. package/.spago/affjax-web/v1.0.0/.eslintrc.json +0 -30
  52. package/.spago/affjax-web/v1.0.0/.gitignore +0 -14
  53. package/.spago/affjax-web/v1.0.0/.tidyrc.json +0 -10
  54. package/.spago/argonaut-codecs/v9.1.0/.editorconfig +0 -13
  55. package/.spago/argonaut-codecs/v9.1.0/.gitignore +0 -9
  56. package/.spago/argonaut-codecs/v9.1.0/.tidyrc.json +0 -10
  57. package/.spago/argonaut-core/v7.0.0/.editorconfig +0 -13
  58. package/.spago/argonaut-core/v7.0.0/.eslintrc.json +0 -29
  59. package/.spago/argonaut-core/v7.0.0/.gitignore +0 -14
  60. package/.spago/argonaut-core/v7.0.0/.tidyrc.json +0 -10
  61. package/.spago/arraybuffer-types/v3.0.2/.editorconfig +0 -13
  62. package/.spago/arraybuffer-types/v3.0.2/.gitignore +0 -9
  63. package/.spago/arraybuffer-types/v3.0.2/.tidyrc.json +0 -10
  64. package/.spago/arrays/v7.2.1/.eslintrc.json +0 -26
  65. package/.spago/arrays/v7.2.1/.gitignore +0 -9
  66. package/.spago/assert/v6.0.0/.eslintrc.json +0 -26
  67. package/.spago/assert/v6.0.0/.gitignore +0 -8
  68. package/.spago/bifunctors/v6.0.0/.gitignore +0 -7
  69. package/.spago/catenable-lists/v7.0.0/.gitignore +0 -7
  70. package/.spago/console/v6.1.0/.eslintrc.json +0 -30
  71. package/.spago/console/v6.1.0/.gitignore +0 -9
  72. package/.spago/const/v6.0.0/.gitignore +0 -7
  73. package/.spago/contravariant/v6.0.0/.gitignore +0 -7
  74. package/.spago/control/v6.0.0/.gitignore +0 -7
  75. package/.spago/datetime/v6.1.0/.eslintrc.json +0 -26
  76. package/.spago/datetime/v6.1.0/.gitignore +0 -8
  77. package/.spago/debug/v6.0.2/.eslintrc.json +0 -36
  78. package/.spago/debug/v6.0.2/.gitignore +0 -8
  79. package/.spago/distributive/v6.0.0/.gitignore +0 -7
  80. package/.spago/effect/v4.0.0/.eslintrc.json +0 -26
  81. package/.spago/effect/v4.0.0/.gitignore +0 -8
  82. package/.spago/either/v6.1.0/.gitignore +0 -7
  83. package/.spago/enums/v6.0.1/.gitignore +0 -7
  84. package/.spago/exceptions/v6.0.0/.eslintrc.json +0 -26
  85. package/.spago/exceptions/v6.0.0/.gitignore +0 -8
  86. package/.spago/exists/v6.0.0/.gitignore +0 -7
  87. package/.spago/filterable/v5.0.0/.gitignore +0 -11
  88. package/.spago/foldable-traversable/v6.0.0/.eslintrc.json +0 -26
  89. package/.spago/foldable-traversable/v6.0.0/.gitignore +0 -8
  90. package/.spago/foreign/v7.0.0/.eslintrc.json +0 -26
  91. package/.spago/foreign/v7.0.0/.gitignore +0 -8
  92. package/.spago/foreign-object/v4.1.0/.eslintrc.json +0 -26
  93. package/.spago/foreign-object/v4.1.0/.gitignore +0 -8
  94. package/.spago/form-urlencoded/v7.0.0/.editorconfig +0 -13
  95. package/.spago/form-urlencoded/v7.0.0/.gitignore +0 -9
  96. package/.spago/form-urlencoded/v7.0.0/.tidyrc.json +0 -10
  97. package/.spago/free/v7.1.0/.gitignore +0 -8
  98. package/.spago/functions/v6.0.0/.eslintrc.json +0 -26
  99. package/.spago/functions/v6.0.0/.gitignore +0 -8
  100. package/.spago/functors/v5.0.0/.gitignore +0 -7
  101. package/.spago/gen/v4.0.0/.gitignore +0 -8
  102. package/.spago/graphs/v8.1.0/.gitignore +0 -7
  103. package/.spago/http-methods/v6.0.0/.editorconfig +0 -13
  104. package/.spago/http-methods/v6.0.0/.gitignore +0 -9
  105. package/.spago/http-methods/v6.0.0/.tidyrc.json +0 -10
  106. package/.spago/identity/v6.0.0/.gitignore +0 -7
  107. package/.spago/integers/v6.0.0/.eslintrc.json +0 -26
  108. package/.spago/integers/v6.0.0/.gitignore +0 -8
  109. package/.spago/invariant/v6.0.0/.gitignore +0 -7
  110. package/.spago/js-date/v8.0.0/.editorconfig +0 -13
  111. package/.spago/js-date/v8.0.0/.eslintrc.json +0 -29
  112. package/.spago/js-date/v8.0.0/.gitignore +0 -14
  113. package/.spago/js-date/v8.0.0/.tidyrc.json +0 -10
  114. package/.spago/js-uri/v3.1.0/.eslintrc.json +0 -30
  115. package/.spago/js-uri/v3.1.0/.gitignore +0 -14
  116. package/.spago/js-uri/v3.1.0/.tidyrc.json +0 -10
  117. package/.spago/lazy/v6.0.0/.eslintrc.json +0 -26
  118. package/.spago/lazy/v6.0.0/.gitignore +0 -8
  119. package/.spago/lcg/v4.0.0/.gitignore +0 -8
  120. package/.spago/lists/v7.0.0/.gitignore +0 -7
  121. package/.spago/maybe/v6.0.0/.gitignore +0 -7
  122. package/.spago/media-types/v6.0.0/.editorconfig +0 -13
  123. package/.spago/media-types/v6.0.0/.gitignore +0 -9
  124. package/.spago/media-types/v6.0.0/.tidyrc.json +0 -10
  125. package/.spago/newtype/v5.0.0/.gitignore +0 -7
  126. package/.spago/node-buffer/v9.0.0/.eslintrc.json +0 -26
  127. package/.spago/node-buffer/v9.0.0/.gitignore +0 -8
  128. package/.spago/node-fs/v9.1.0/.eslintrc.json +0 -29
  129. package/.spago/node-fs/v9.1.0/.gitignore +0 -9
  130. package/.spago/node-path/v5.0.0/.eslintrc.json +0 -26
  131. package/.spago/node-path/v5.0.0/.gitignore +0 -8
  132. package/.spago/node-process/v11.2.0/.eslintrc.json +0 -29
  133. package/.spago/node-process/v11.2.0/.gitignore +0 -8
  134. package/.spago/node-streams/v9.0.0/.eslintrc.json +0 -29
  135. package/.spago/node-streams/v9.0.0/.gitignore +0 -8
  136. package/.spago/nonempty/v7.0.0/.gitignore +0 -7
  137. package/.spago/now/v6.0.0/.editorconfig +0 -13
  138. package/.spago/now/v6.0.0/.eslintrc.json +0 -29
  139. package/.spago/now/v6.0.0/.gitignore +0 -14
  140. package/.spago/now/v6.0.0/.tidyrc.json +0 -10
  141. package/.spago/nullable/v6.0.0/.editorconfig +0 -13
  142. package/.spago/nullable/v6.0.0/.eslintrc.json +0 -29
  143. package/.spago/nullable/v6.0.0/.gitignore +0 -14
  144. package/.spago/nullable/v6.0.0/.tidyrc.json +0 -10
  145. package/.spago/optparse/v6.0.0/.gitignore +0 -8
  146. package/.spago/optparse/v6.0.0/.npmrc +0 -1
  147. package/.spago/ordered-collections/v3.1.1/.gitignore +0 -8
  148. package/.spago/orders/v6.0.0/.gitignore +0 -7
  149. package/.spago/parallel/v7.0.0/.gitignore +0 -7
  150. package/.spago/parsing/v10.3.1/.editorconfig +0 -13
  151. package/.spago/parsing/v10.3.1/.gitignore +0 -12
  152. package/.spago/parsing/v10.3.1/.tidyoperators +0 -231
  153. package/.spago/parsing/v10.3.1/.tidyrc.json +0 -10
  154. package/.spago/partial/v4.0.0/.eslintrc.json +0 -26
  155. package/.spago/partial/v4.0.0/.gitignore +0 -8
  156. package/.spago/posix-types/v6.0.0/.gitignore +0 -7
  157. package/.spago/prelude/v6.0.1/.eslintrc.json +0 -26
  158. package/.spago/prelude/v6.0.1/.gitignore +0 -8
  159. package/.spago/profunctor/v6.0.0/.gitignore +0 -7
  160. package/.spago/psci-support/v6.0.0/.eslintrc.json +0 -28
  161. package/.spago/psci-support/v6.0.0/.gitignore +0 -8
  162. package/.spago/quickcheck/v8.0.1/.eslintrc.json +0 -26
  163. package/.spago/quickcheck/v8.0.1/.gitignore +0 -8
  164. package/.spago/random/v6.0.0/.eslintrc.json +0 -26
  165. package/.spago/random/v6.0.0/.gitignore +0 -8
  166. package/.spago/record/v4.0.0/.eslintrc.json +0 -26
  167. package/.spago/record/v4.0.0/.gitignore +0 -8
  168. package/.spago/refs/v6.0.0/.eslintrc.json +0 -26
  169. package/.spago/refs/v6.0.0/.gitignore +0 -8
  170. package/.spago/st/v6.2.0/.eslintrc.json +0 -26
  171. package/.spago/st/v6.2.0/.gitignore +0 -8
  172. package/.spago/strings/v6.0.1/.eslintrc.json +0 -26
  173. package/.spago/strings/v6.0.1/.gitignore +0 -8
  174. package/.spago/tailrec/v6.1.0/.gitignore +0 -7
  175. package/.spago/transformers/v6.0.0/.gitignore +0 -7
  176. package/.spago/tuples/v7.0.0/.gitignore +0 -7
  177. package/.spago/type-equality/v4.0.1/.gitignore +0 -7
  178. package/.spago/typelevel-prelude/v7.0.0/.gitignore +0 -8
  179. package/.spago/unfoldable/v6.0.0/.eslintrc.json +0 -26
  180. package/.spago/unfoldable/v6.0.0/.gitignore +0 -8
  181. package/.spago/unicode/v6.0.0/.editorconfig +0 -13
  182. package/.spago/unicode/v6.0.0/.gitattributes +0 -2
  183. package/.spago/unicode/v6.0.0/.gitignore +0 -19
  184. package/.spago/unicode/v6.0.0/.tidyrc.json +0 -10
  185. package/.spago/unsafe-coerce/v6.0.0/.eslintrc.json +0 -26
  186. package/.spago/unsafe-coerce/v6.0.0/.gitignore +0 -8
  187. package/.spago/web-dom/v6.0.0/.eslintrc.json +0 -29
  188. package/.spago/web-dom/v6.0.0/.gitignore +0 -9
  189. package/.spago/web-events/v4.0.0/.eslintrc.json +0 -29
  190. package/.spago/web-events/v4.0.0/.gitignore +0 -8
  191. package/.spago/web-file/v4.0.0/.eslintrc.json +0 -29
  192. package/.spago/web-file/v4.0.0/.gitignore +0 -8
  193. package/.spago/web-html/v4.1.0/.eslintrc.json +0 -29
  194. package/.spago/web-html/v4.1.0/.gitignore +0 -8
  195. package/.spago/web-storage/v5.0.0/.eslintrc.json +0 -29
  196. package/.spago/web-storage/v5.0.0/.gitignore +0 -8
  197. package/.spago/web-xhr/v5.0.1/.eslintrc.json +0 -29
  198. package/.spago/web-xhr/v5.0.1/.gitignore +0 -8
  199. package/LICENSE +0 -21
  200. package/README.md +0 -95
  201. package/dist/fluid/shared/website-test.js +0 -41
  202. package/dist/fluid/shared/webtest-lib.js +0 -300023
  203. package/script/bundle-website.sh +0 -52
  204. package/script/util/clean.sh +0 -5
  205. package/script/util/lisp-case.sh +0 -10
  206. package/website/article/convolution/index.html +0 -97
  207. package/website/article/css/styles.css +0 -325
  208. package/website/article/css/view-styles.css +0 -205
  209. package/website/article/energy-scatter/index.html +0 -47
  210. package/website/article/methane/index.html +0 -46
  211. package/website/article/moving-average/index.html +0 -64
  212. package/website/article/non-renewables/index.html +0 -52
  213. package/website/article/renewables-linked/index.html +0 -46
  214. package/website/article/scigen-1805.02474v1-10/index.html +0 -54
  215. package/website/article/shared/util.js +0 -15
  216. /package/website/article/{favicon.ico → src/lib/assets/image/favicon.ico} +0 -0
  217. /package/website/article/{dataset → static/dataset}/SciGen/1805.02474v1-10.json +0 -0
  218. /package/website/article/{dataset → static/dataset}/methane-emissions.json +0 -0
  219. /package/website/article/{dataset → static/dataset}/non-renewables.json +0 -0
  220. /package/website/article/{dataset → static/dataset}/renewable-new.json +0 -0
  221. /package/website/article/{dataset → static/dataset}/renewable.json +0 -0
  222. /package/website/article/{fluid → static/fluid}/1805.02474v1-10.fld +0 -0
  223. /package/website/article/{fluid → static/fluid}/bar-chart-line-chart.fld +0 -0
  224. /package/website/article/{fluid → static/fluid}/convolution/emboss.fld +0 -0
  225. /package/website/article/{fluid → static/fluid}/convolution/testImage.fld +0 -0
  226. /package/website/article/{fluid → static/fluid}/convolution.fld +0 -0
  227. /package/website/article/{fluid → static/fluid}/dataset/scigen/_1805_02474v1_10.fld +0 -0
  228. /package/website/article/{fluid → static/fluid}/energyscatter.fld +0 -0
  229. /package/website/article/{fluid → static/fluid}/methane.fld +0 -0
  230. /package/website/article/{fluid → static/fluid}/methane_data.fld +0 -0
  231. /package/website/article/{fluid → static/fluid}/moving-average.fld +0 -0
  232. /package/website/article/{fluid → static/fluid}/non-renewables.fld +0 -0
  233. /package/website/article/{fluid → static/fluid}/nonRenewables.fld +0 -0
  234. /package/website/article/{fluid → static/fluid}/renewables.fld +0 -0
  235. /package/website/article/{fluid → static/fluid}/scigen.fld +0 -0
  236. /package/website/article/{fluid → static/fluid}/util.fld +0 -0
@@ -1,13 +0,0 @@
1
- # https://editorconfig.org
2
- root = true
3
-
4
- [*]
5
- indent_style = space
6
- indent_size = 2
7
- end_of_line = lf
8
- charset = utf-8
9
- trim_trailing_whitespace = true
10
- insert_final_newline = true
11
-
12
- [*.md]
13
- trim_trailing_whitespace = false
@@ -1,2 +0,0 @@
1
- src/Data/CodePoint/Unicode/Internal.purs linguist-generated
2
- src/Data/CodePoint/Unicode/Internal/Casing.purs linguist-generated
@@ -1,19 +0,0 @@
1
- .*
2
- !.gitignore
3
- !.github
4
- !.editorconfig
5
- !.tidyrc.json
6
- !.eslintrc.json
7
- !.gitattributes
8
-
9
- output
10
- generated-docs
11
- bower_components
12
-
13
- UnicodeData.txt
14
- CaseFolding.txt
15
- SpecialCasing.txt
16
-
17
- node_modules
18
- package-lock.json
19
- *.lock
@@ -1,10 +0,0 @@
1
- {
2
- "importSort": "source",
3
- "importWrap": "source",
4
- "indent": 2,
5
- "operatorsFile": null,
6
- "ribbon": 1,
7
- "typeArrowPlacement": "first",
8
- "unicode": "never",
9
- "width": null
10
- }
@@ -1,26 +0,0 @@
1
- {
2
- "parserOptions": {
3
- "ecmaVersion": 6,
4
- "sourceType": "module"
5
- },
6
- "extends": "eslint:recommended",
7
- "rules": {
8
- "strict": [2, "global"],
9
- "block-scoped-var": 2,
10
- "consistent-return": 2,
11
- "eqeqeq": [2, "smart"],
12
- "guard-for-in": 2,
13
- "no-caller": 2,
14
- "no-extend-native": 2,
15
- "no-loop-func": 2,
16
- "no-new": 2,
17
- "no-param-reassign": 2,
18
- "no-return-assign": 2,
19
- "no-unused-expressions": 2,
20
- "no-use-before-define": 2,
21
- "radix": [2, "always"],
22
- "indent": [2, 2],
23
- "quotes": [2, "double"],
24
- "semi": [2, "always"]
25
- }
26
- }
@@ -1,8 +0,0 @@
1
- /.*
2
- !/.gitignore
3
- !/.eslintrc.json
4
- !/.github/
5
- /bower_components/
6
- /node_modules/
7
- /output/
8
- package-lock.json
@@ -1,29 +0,0 @@
1
- {
2
- "parserOptions": {
3
- "ecmaVersion": 6,
4
- "sourceType": "module"
5
- },
6
- "extends": "eslint:recommended",
7
- "env": {
8
- "browser": true
9
- },
10
- "rules": {
11
- "strict": [2, "global"],
12
- "block-scoped-var": 2,
13
- "consistent-return": 2,
14
- "eqeqeq": [2, "smart"],
15
- "guard-for-in": 2,
16
- "no-caller": 2,
17
- "no-extend-native": 2,
18
- "no-loop-func": 2,
19
- "no-new": 2,
20
- "no-param-reassign": 2,
21
- "no-return-assign": 2,
22
- "no-unused-expressions": 2,
23
- "no-use-before-define": 2,
24
- "radix": [2, "always"],
25
- "indent": [2, 2],
26
- "quotes": [2, "double"],
27
- "semi": [2, "always"]
28
- }
29
- }
@@ -1,9 +0,0 @@
1
- /.*
2
- !/.gitignore
3
- !/.eslintrc.json
4
- !/.github/
5
- package-lock.json
6
- /bower_components/
7
- /node_modules/
8
- /output/
9
- /generated-docs/
@@ -1,29 +0,0 @@
1
- {
2
- "parserOptions": {
3
- "ecmaVersion": 6,
4
- "sourceType": "module"
5
- },
6
- "extends": "eslint:recommended",
7
- "env": {
8
- "browser": true
9
- },
10
- "rules": {
11
- "strict": [2, "global"],
12
- "block-scoped-var": 2,
13
- "consistent-return": 2,
14
- "eqeqeq": [2, "smart"],
15
- "guard-for-in": 2,
16
- "no-caller": 2,
17
- "no-extend-native": 2,
18
- "no-loop-func": 2,
19
- "no-new": 2,
20
- "no-param-reassign": 2,
21
- "no-return-assign": 2,
22
- "no-unused-expressions": 2,
23
- "no-use-before-define": 2,
24
- "radix": [2, "always"],
25
- "indent": [2, 2],
26
- "quotes": [2, "double"],
27
- "semi": [2, "always"]
28
- }
29
- }
@@ -1,8 +0,0 @@
1
- /.*
2
- !/.gitignore
3
- !/.eslintrc.json
4
- !/.github/
5
- package-lock.json
6
- /bower_components/
7
- /node_modules/
8
- /output/
@@ -1,29 +0,0 @@
1
- {
2
- "parserOptions": {
3
- "ecmaVersion": 6,
4
- "sourceType": "module"
5
- },
6
- "extends": "eslint:recommended",
7
- "env": {
8
- "browser": true
9
- },
10
- "rules": {
11
- "strict": [2, "global"],
12
- "block-scoped-var": 2,
13
- "consistent-return": 2,
14
- "eqeqeq": [2, "smart"],
15
- "guard-for-in": 2,
16
- "no-caller": 2,
17
- "no-extend-native": 2,
18
- "no-loop-func": 2,
19
- "no-new": 2,
20
- "no-param-reassign": 2,
21
- "no-return-assign": 2,
22
- "no-unused-expressions": 2,
23
- "no-use-before-define": 2,
24
- "radix": [2, "always"],
25
- "indent": [2, 2],
26
- "quotes": [2, "double"],
27
- "semi": [2, "always"]
28
- }
29
- }
@@ -1,8 +0,0 @@
1
- /.*
2
- !/.gitignore
3
- !/.eslintrc.json
4
- !/.github/
5
- package-lock.json
6
- /bower_components/
7
- /node_modules/
8
- /output/
@@ -1,29 +0,0 @@
1
- {
2
- "parserOptions": {
3
- "ecmaVersion": 6,
4
- "sourceType": "module"
5
- },
6
- "extends": "eslint:recommended",
7
- "env": {
8
- "browser": true
9
- },
10
- "rules": {
11
- "strict": [2, "global"],
12
- "block-scoped-var": 2,
13
- "consistent-return": 2,
14
- "eqeqeq": [2, "smart"],
15
- "guard-for-in": 2,
16
- "no-caller": 2,
17
- "no-extend-native": 2,
18
- "no-loop-func": 2,
19
- "no-new": 2,
20
- "no-param-reassign": 2,
21
- "no-return-assign": 2,
22
- "no-unused-expressions": 2,
23
- "no-use-before-define": 2,
24
- "radix": [2, "always"],
25
- "indent": [2, 2],
26
- "quotes": [2, "double"],
27
- "semi": [2, "always"]
28
- }
29
- }
@@ -1,8 +0,0 @@
1
- /.*
2
- !/.gitignore
3
- !/.eslintrc.json
4
- !/.github/
5
- package-lock.json
6
- /bower_components/
7
- /node_modules/
8
- /output/
@@ -1,29 +0,0 @@
1
- {
2
- "parserOptions": {
3
- "ecmaVersion": 6,
4
- "sourceType": "module"
5
- },
6
- "extends": "eslint:recommended",
7
- "env": {
8
- "browser": true
9
- },
10
- "rules": {
11
- "strict": [2, "global"],
12
- "block-scoped-var": 2,
13
- "consistent-return": 2,
14
- "eqeqeq": [2, "smart"],
15
- "guard-for-in": 2,
16
- "no-caller": 2,
17
- "no-extend-native": 2,
18
- "no-loop-func": 2,
19
- "no-new": 2,
20
- "no-param-reassign": 2,
21
- "no-return-assign": 2,
22
- "no-unused-expressions": 2,
23
- "no-use-before-define": 2,
24
- "radix": [2, "always"],
25
- "indent": [2, 2],
26
- "quotes": [2, "double"],
27
- "semi": [2, "always"]
28
- }
29
- }
@@ -1,8 +0,0 @@
1
- /.*
2
- !/.gitignore
3
- !/.eslintrc.json
4
- !/.github/
5
- package-lock.json
6
- /bower_components/
7
- /node_modules/
8
- /output/
@@ -1,29 +0,0 @@
1
- {
2
- "parserOptions": {
3
- "ecmaVersion": 6,
4
- "sourceType": "module"
5
- },
6
- "extends": "eslint:recommended",
7
- "env": {
8
- "browser": true
9
- },
10
- "rules": {
11
- "strict": [2, "global"],
12
- "block-scoped-var": 2,
13
- "consistent-return": 2,
14
- "eqeqeq": [2, "smart"],
15
- "guard-for-in": 2,
16
- "no-caller": 2,
17
- "no-extend-native": 2,
18
- "no-loop-func": 2,
19
- "no-new": 2,
20
- "no-param-reassign": 2,
21
- "no-return-assign": 2,
22
- "no-unused-expressions": 2,
23
- "no-use-before-define": 2,
24
- "radix": [2, "always"],
25
- "indent": [2, 2],
26
- "quotes": [2, "double"],
27
- "semi": [2, "always"]
28
- }
29
- }
@@ -1,8 +0,0 @@
1
- /.*
2
- !/.gitignore
3
- !/.eslintrc.json
4
- !/.github/
5
- package-lock.json
6
- /bower_components/
7
- /node_modules/
8
- /output/
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2019-2025 Open Source Contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
package/README.md DELETED
@@ -1,95 +0,0 @@
1
- ## Fluid: Language-integrated data provenance
2
-
3
- Fluid is a pure functional programming language, with a provenance-tracking runtime and Pythonic syntax. Fluid is implemented in PureScript and runs in the browser.
4
-
5
- [![develop](https://github.com/explorable-viz/fluid/actions/workflows/develop.yml/badge.svg)](https://github.com/explorable-viz/fluid/actions/workflows/develop.yml)
6
- [![GitHub pages](https://github.com/explorable-viz/fluid/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/explorable-viz/fluid/actions/workflows/pages/pages-build-deployment)
7
-
8
- ## End-user setup
9
-
10
- ### Software required
11
- - Node.js >=18.0.0
12
- - yarn >= 1.22
13
-
14
- ### Initial configuration
15
-
16
- Building a Fluid website usually involves building a Node application:
17
-
18
- - `yarn add @explorable-viz/fluid`
19
- - `yarn install` to install Node dependencies
20
- - `yarn install-website article` to copy example article website from `@exploreable-viz/fluid`
21
- - Add `dist/` and `website/` folders to `.gitignore`
22
-
23
- ### Bundling and serving website
24
- - `yarn bundle-website $WEBSITE_NAME` to bundle website to `dist/$WEBSITE_NAME`
25
- - `npx http-serve dist/$WEBSITE_NAME -c-1` to serve website at localhost
26
-
27
- ## Development setup
28
-
29
- ### Additional software required
30
- - git
31
- - (Windows only) [Ubuntu WSL](https://ubuntu.com/desktop/wsl)
32
-
33
- ### Initial configuration
34
-
35
- - Clone repository (for Windows users, under Ubuntu WSL)
36
- - Run `./script/setup/dev-setup.sh` from the top-level directory
37
- - `yarn install` to install Node dependencies
38
-
39
- ## Use
40
-
41
- - `yarn build` to build interpreter
42
-
43
- ### Running programs from the command line
44
-
45
- Fluid examples in the `dist/fluid/fluid` can be evaluated from the command line as follows
46
- (from the top-level directory):
47
-
48
- ```
49
- npx fluid evaluate -f <path>
50
- ```
51
- Note that the path is relative and should not include the `.fld` extension, e.g. for the `range.fld` example:
52
- ```
53
- % npx fluid evaluate -f example/range
54
- ((0, 0) : ((0, 1) : ((1, 0) : ((1, 1) : []))))
55
- Success
56
- ```
57
-
58
- ### Running websites locally (as part of Fluid development)
59
- As an example, to build and run the website `literate-execution`:
60
- - `yarn build` to ensure Fluid source code has been compiled (can be skipped on subsequent runs)
61
- - `yarn bundle-website literate-execution` (can be skipped if the website being run is `fluid-org`)
62
- - `yarn serve literate-execution` (you may be prompted to proceed; press `y`)
63
- - Open a browser to the served URL (defaults to `127.0.0.1:8080`)
64
-
65
- Note: `yarn bundle-serve` is a convenient shorthand for `yarn bundle-website` followed by `yarn serve`
66
-
67
- ## Testing
68
-
69
- ### Running the tests from the command line
70
-
71
- After building, tests can be run from the command line via `yarn test-all`
72
-
73
- ### Running tests in browser
74
- - As per command-line tests above, but run `yarn test-browser`, which opens
75
- a browser window.
76
- - To observe the status of tests, click `Debug` in the browser window, and then open the JavaScript Console for your browser (e.g., via the Developer Tools).
77
-
78
- ### Run Puppeteer tests for website X
79
-
80
- - `yarn bundle-website X`
81
- - `yarn test-website X`
82
-
83
- Rebuild with `puppeteerTests.headless` set to `false` to run in browser.
84
-
85
- ## Development via VS Code
86
-
87
- The following are some notes on developing Fluid using VS Code.
88
-
89
- - Avoid having PureScript installed globally
90
- - Install the PureScript IDE extension
91
- - In the PureScript IDE extension settings, select `Add Npm Path`
92
-
93
- - For Windows users:
94
- - Launch VSCode through Ubuntu (WSL) terminal
95
- - Install WSL extension in VSCode
@@ -1,41 +0,0 @@
1
- #!/usr/bin/env node
2
- const express = require('express');
3
- const serve = require('express-static');
4
- require('http-shutdown').extend();
5
-
6
- const app = express();
7
-
8
- const root = process.cwd() + '/dist/' + process.argv[2];
9
- app.use(serve(root));
10
-
11
- const server = app.listen(8080, function() {
12
- console.log("Serving content from " + root);
13
- }).withShutdown();
14
-
15
- (async () => {
16
- try {
17
- if (process.argv.length == 4) {
18
- module = process.cwd() + process.argv[3];
19
- } else {
20
- module = root + '/test.mjs';
21
- }
22
- console.log('Loading Puppeteer test module:', module);
23
- import(module).then(({ main }) => {
24
- main().then(serverDown);
25
- }).catch(err => {
26
- console.error("Failed to load PureScript output:", err);
27
- });
28
- } catch (error) {
29
- console.error('Error:', error);
30
- }
31
- })();
32
-
33
- function serverDown() {
34
- console.log('Shutting down server')
35
- server.shutdown(function(err) {
36
- if (err) {
37
- return console.log('shutdown failed', err.message);
38
- }
39
- console.log('Everything is cleanly shut down.');
40
- });
41
- }