@explorable-viz/fluid 0.12.1 → 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.
- package/dist/fluid/shared/fluid.mjs +478 -438
- package/dist/fluid/shared/load-figure.js +3199 -2975
- package/package.json +12 -26
- package/script/install-website.sh +27 -9
- package/web/lib/CodeMirror.svelte +19 -0
- package/web/lib/DataPane.svelte +46 -0
- package/web/lib/Figure.svelte +38 -0
- package/web/lib/FigureSrc.svelte +35 -0
- package/web/lib/Grid.svelte +32 -0
- package/web/lib/index.js +5 -0
- package/web/lib/view-styles.css +262 -0
- package/website/article/eslint.config.js +45 -0
- package/website/article/package.json +46 -0
- package/website/article/src/app.d.ts +13 -0
- package/website/article/src/app.html +12 -0
- package/website/article/src/lib/assets/css/styles.css +245 -0
- package/website/article/src/lib/assets/image/bristol.png +0 -0
- package/website/article/src/lib/assets/image/fluid.png +0 -0
- package/website/article/src/lib/assets/image/iccs.png +0 -0
- package/website/article/src/lib/assets/image/schmidt.png +0 -0
- package/website/article/src/lib/assets/image/turing.jpg +0 -0
- package/website/article/src/lib/config/nav.ts +7 -0
- package/website/article/src/lib/config/supporters.ts +27 -0
- package/website/article/src/routes/+layout.svelte +15 -0
- package/website/article/src/routes/+layout.ts +1 -0
- package/website/article/{index.html → src/routes/+page.svelte} +8 -17
- package/website/article/src/routes/convolution/+page.svelte +62 -0
- package/website/article/src/routes/energy-scatter/+page.svelte +34 -0
- package/website/article/src/routes/methane/+page.svelte +35 -0
- package/website/article/src/routes/moving-average/+page.svelte +57 -0
- package/website/article/src/routes/non-renewables/+page.svelte +40 -0
- package/website/article/src/routes/renewables-linked/+page.svelte +34 -0
- package/website/article/src/routes/scigen-1805.02474v1-10/+page.svelte +40 -0
- package/website/article/static/fluid/lib/graphics.fld +274 -0
- package/website/article/static/fluid/lib/matrix.fld +40 -0
- package/website/article/static/fluid/lib/prelude.fld +348 -0
- package/website/article/static/fluid/lib/stats.fld +83 -0
- package/website/article/svelte.config.js +13 -0
- package/website/article/test.mjs +66 -11
- package/website/article/tsconfig.json +20 -0
- package/website/article/vite.config.ts +6 -0
- package/.spago/aff/v7.1.0/.editorconfig +0 -13
- package/.spago/aff/v7.1.0/.eslintrc.json +0 -28
- package/.spago/aff/v7.1.0/.gitignore +0 -14
- package/.spago/aff/v7.1.0/.tidyrc.json +0 -10
- package/.spago/affjax/v13.0.0/.editorconfig +0 -13
- package/.spago/affjax/v13.0.0/.eslintrc.json +0 -28
- package/.spago/affjax/v13.0.0/.gitignore +0 -14
- package/.spago/affjax/v13.0.0/.tidyrc.json +0 -10
- package/.spago/affjax-web/v1.0.0/.editorconfig +0 -13
- package/.spago/affjax-web/v1.0.0/.eslintrc.json +0 -30
- package/.spago/affjax-web/v1.0.0/.gitignore +0 -14
- package/.spago/affjax-web/v1.0.0/.tidyrc.json +0 -10
- package/.spago/argonaut-codecs/v9.1.0/.editorconfig +0 -13
- package/.spago/argonaut-codecs/v9.1.0/.gitignore +0 -9
- package/.spago/argonaut-codecs/v9.1.0/.tidyrc.json +0 -10
- package/.spago/argonaut-core/v7.0.0/.editorconfig +0 -13
- package/.spago/argonaut-core/v7.0.0/.eslintrc.json +0 -29
- package/.spago/argonaut-core/v7.0.0/.gitignore +0 -14
- package/.spago/argonaut-core/v7.0.0/.tidyrc.json +0 -10
- package/.spago/arraybuffer-types/v3.0.2/.editorconfig +0 -13
- package/.spago/arraybuffer-types/v3.0.2/.gitignore +0 -9
- package/.spago/arraybuffer-types/v3.0.2/.tidyrc.json +0 -10
- package/.spago/arrays/v7.2.1/.eslintrc.json +0 -26
- package/.spago/arrays/v7.2.1/.gitignore +0 -9
- package/.spago/assert/v6.0.0/.eslintrc.json +0 -26
- package/.spago/assert/v6.0.0/.gitignore +0 -8
- package/.spago/bifunctors/v6.0.0/.gitignore +0 -7
- package/.spago/catenable-lists/v7.0.0/.gitignore +0 -7
- package/.spago/console/v6.1.0/.eslintrc.json +0 -30
- package/.spago/console/v6.1.0/.gitignore +0 -9
- package/.spago/const/v6.0.0/.gitignore +0 -7
- package/.spago/contravariant/v6.0.0/.gitignore +0 -7
- package/.spago/control/v6.0.0/.gitignore +0 -7
- package/.spago/datetime/v6.1.0/.eslintrc.json +0 -26
- package/.spago/datetime/v6.1.0/.gitignore +0 -8
- package/.spago/debug/v6.0.2/.eslintrc.json +0 -36
- package/.spago/debug/v6.0.2/.gitignore +0 -8
- package/.spago/distributive/v6.0.0/.gitignore +0 -7
- package/.spago/effect/v4.0.0/.eslintrc.json +0 -26
- package/.spago/effect/v4.0.0/.gitignore +0 -8
- package/.spago/either/v6.1.0/.gitignore +0 -7
- package/.spago/enums/v6.0.1/.gitignore +0 -7
- package/.spago/exceptions/v6.0.0/.eslintrc.json +0 -26
- package/.spago/exceptions/v6.0.0/.gitignore +0 -8
- package/.spago/exists/v6.0.0/.gitignore +0 -7
- package/.spago/filterable/v5.0.0/.gitignore +0 -11
- package/.spago/foldable-traversable/v6.0.0/.eslintrc.json +0 -26
- package/.spago/foldable-traversable/v6.0.0/.gitignore +0 -8
- package/.spago/foreign/v7.0.0/.eslintrc.json +0 -26
- package/.spago/foreign/v7.0.0/.gitignore +0 -8
- package/.spago/foreign-object/v4.1.0/.eslintrc.json +0 -26
- package/.spago/foreign-object/v4.1.0/.gitignore +0 -8
- package/.spago/form-urlencoded/v7.0.0/.editorconfig +0 -13
- package/.spago/form-urlencoded/v7.0.0/.gitignore +0 -9
- package/.spago/form-urlencoded/v7.0.0/.tidyrc.json +0 -10
- package/.spago/free/v7.1.0/.gitignore +0 -8
- package/.spago/functions/v6.0.0/.eslintrc.json +0 -26
- package/.spago/functions/v6.0.0/.gitignore +0 -8
- package/.spago/functors/v5.0.0/.gitignore +0 -7
- package/.spago/gen/v4.0.0/.gitignore +0 -8
- package/.spago/graphs/v8.1.0/.gitignore +0 -7
- package/.spago/http-methods/v6.0.0/.editorconfig +0 -13
- package/.spago/http-methods/v6.0.0/.gitignore +0 -9
- package/.spago/http-methods/v6.0.0/.tidyrc.json +0 -10
- package/.spago/identity/v6.0.0/.gitignore +0 -7
- package/.spago/integers/v6.0.0/.eslintrc.json +0 -26
- package/.spago/integers/v6.0.0/.gitignore +0 -8
- package/.spago/invariant/v6.0.0/.gitignore +0 -7
- package/.spago/js-date/v8.0.0/.editorconfig +0 -13
- package/.spago/js-date/v8.0.0/.eslintrc.json +0 -29
- package/.spago/js-date/v8.0.0/.gitignore +0 -14
- package/.spago/js-date/v8.0.0/.tidyrc.json +0 -10
- package/.spago/js-uri/v3.1.0/.eslintrc.json +0 -30
- package/.spago/js-uri/v3.1.0/.gitignore +0 -14
- package/.spago/js-uri/v3.1.0/.tidyrc.json +0 -10
- package/.spago/lazy/v6.0.0/.eslintrc.json +0 -26
- package/.spago/lazy/v6.0.0/.gitignore +0 -8
- package/.spago/lcg/v4.0.0/.gitignore +0 -8
- package/.spago/lists/v7.0.0/.gitignore +0 -7
- package/.spago/maybe/v6.0.0/.gitignore +0 -7
- package/.spago/media-types/v6.0.0/.editorconfig +0 -13
- package/.spago/media-types/v6.0.0/.gitignore +0 -9
- package/.spago/media-types/v6.0.0/.tidyrc.json +0 -10
- package/.spago/newtype/v5.0.0/.gitignore +0 -7
- package/.spago/node-buffer/v9.0.0/.eslintrc.json +0 -26
- package/.spago/node-buffer/v9.0.0/.gitignore +0 -8
- package/.spago/node-fs/v9.1.0/.eslintrc.json +0 -29
- package/.spago/node-fs/v9.1.0/.gitignore +0 -9
- package/.spago/node-path/v5.0.0/.eslintrc.json +0 -26
- package/.spago/node-path/v5.0.0/.gitignore +0 -8
- package/.spago/node-process/v11.2.0/.eslintrc.json +0 -29
- package/.spago/node-process/v11.2.0/.gitignore +0 -8
- package/.spago/node-streams/v9.0.0/.eslintrc.json +0 -29
- package/.spago/node-streams/v9.0.0/.gitignore +0 -8
- package/.spago/nonempty/v7.0.0/.gitignore +0 -7
- package/.spago/now/v6.0.0/.editorconfig +0 -13
- package/.spago/now/v6.0.0/.eslintrc.json +0 -29
- package/.spago/now/v6.0.0/.gitignore +0 -14
- package/.spago/now/v6.0.0/.tidyrc.json +0 -10
- package/.spago/nullable/v6.0.0/.editorconfig +0 -13
- package/.spago/nullable/v6.0.0/.eslintrc.json +0 -29
- package/.spago/nullable/v6.0.0/.gitignore +0 -14
- package/.spago/nullable/v6.0.0/.tidyrc.json +0 -10
- package/.spago/optparse/v6.0.0/.gitignore +0 -8
- package/.spago/optparse/v6.0.0/.npmrc +0 -1
- package/.spago/ordered-collections/v3.1.1/.gitignore +0 -8
- package/.spago/orders/v6.0.0/.gitignore +0 -7
- package/.spago/parallel/v7.0.0/.gitignore +0 -7
- package/.spago/parsing/v10.3.1/.editorconfig +0 -13
- package/.spago/parsing/v10.3.1/.gitignore +0 -12
- package/.spago/parsing/v10.3.1/.tidyoperators +0 -231
- package/.spago/parsing/v10.3.1/.tidyrc.json +0 -10
- package/.spago/partial/v4.0.0/.eslintrc.json +0 -26
- package/.spago/partial/v4.0.0/.gitignore +0 -8
- package/.spago/posix-types/v6.0.0/.gitignore +0 -7
- package/.spago/prelude/v6.0.1/.eslintrc.json +0 -26
- package/.spago/prelude/v6.0.1/.gitignore +0 -8
- package/.spago/profunctor/v6.0.0/.gitignore +0 -7
- package/.spago/psci-support/v6.0.0/.eslintrc.json +0 -28
- package/.spago/psci-support/v6.0.0/.gitignore +0 -8
- package/.spago/quickcheck/v8.0.1/.eslintrc.json +0 -26
- package/.spago/quickcheck/v8.0.1/.gitignore +0 -8
- package/.spago/random/v6.0.0/.eslintrc.json +0 -26
- package/.spago/random/v6.0.0/.gitignore +0 -8
- package/.spago/record/v4.0.0/.eslintrc.json +0 -26
- package/.spago/record/v4.0.0/.gitignore +0 -8
- package/.spago/refs/v6.0.0/.eslintrc.json +0 -26
- package/.spago/refs/v6.0.0/.gitignore +0 -8
- package/.spago/st/v6.2.0/.eslintrc.json +0 -26
- package/.spago/st/v6.2.0/.gitignore +0 -8
- package/.spago/strings/v6.0.1/.eslintrc.json +0 -26
- package/.spago/strings/v6.0.1/.gitignore +0 -8
- package/.spago/tailrec/v6.1.0/.gitignore +0 -7
- package/.spago/transformers/v6.0.0/.gitignore +0 -7
- package/.spago/tuples/v7.0.0/.gitignore +0 -7
- package/.spago/type-equality/v4.0.1/.gitignore +0 -7
- package/.spago/typelevel-prelude/v7.0.0/.gitignore +0 -8
- package/.spago/unfoldable/v6.0.0/.eslintrc.json +0 -26
- package/.spago/unfoldable/v6.0.0/.gitignore +0 -8
- package/.spago/unicode/v6.0.0/.editorconfig +0 -13
- package/.spago/unicode/v6.0.0/.gitattributes +0 -2
- package/.spago/unicode/v6.0.0/.gitignore +0 -19
- package/.spago/unicode/v6.0.0/.tidyrc.json +0 -10
- package/.spago/unsafe-coerce/v6.0.0/.eslintrc.json +0 -26
- package/.spago/unsafe-coerce/v6.0.0/.gitignore +0 -8
- package/.spago/web-dom/v6.0.0/.eslintrc.json +0 -29
- package/.spago/web-dom/v6.0.0/.gitignore +0 -9
- package/.spago/web-events/v4.0.0/.eslintrc.json +0 -29
- package/.spago/web-events/v4.0.0/.gitignore +0 -8
- package/.spago/web-file/v4.0.0/.eslintrc.json +0 -29
- package/.spago/web-file/v4.0.0/.gitignore +0 -8
- package/.spago/web-html/v4.1.0/.eslintrc.json +0 -29
- package/.spago/web-html/v4.1.0/.gitignore +0 -8
- package/.spago/web-storage/v5.0.0/.eslintrc.json +0 -29
- package/.spago/web-storage/v5.0.0/.gitignore +0 -8
- package/.spago/web-xhr/v5.0.1/.eslintrc.json +0 -29
- package/.spago/web-xhr/v5.0.1/.gitignore +0 -8
- package/LICENSE +0 -21
- package/README.md +0 -95
- package/dist/fluid/shared/website-test.js +0 -41
- package/dist/fluid/shared/webtest-lib.js +0 -300023
- package/script/bundle-website.sh +0 -52
- package/script/util/clean.sh +0 -5
- package/script/util/lisp-case.sh +0 -10
- package/website/article/convolution/index.html +0 -97
- package/website/article/css/styles.css +0 -325
- package/website/article/css/view-styles.css +0 -205
- package/website/article/energy-scatter/index.html +0 -47
- package/website/article/methane/index.html +0 -46
- package/website/article/moving-average/index.html +0 -64
- package/website/article/non-renewables/index.html +0 -52
- package/website/article/renewables-linked/index.html +0 -46
- package/website/article/scigen-1805.02474v1-10/index.html +0 -54
- package/website/article/shared/util.js +0 -15
- /package/website/article/{favicon.ico → src/lib/assets/image/favicon.ico} +0 -0
- /package/website/article/{dataset → static/dataset}/SciGen/1805.02474v1-10.json +0 -0
- /package/website/article/{dataset → static/dataset}/methane-emissions.json +0 -0
- /package/website/article/{dataset → static/dataset}/non-renewables.json +0 -0
- /package/website/article/{dataset → static/dataset}/renewable-new.json +0 -0
- /package/website/article/{dataset → static/dataset}/renewable.json +0 -0
- /package/website/article/{fluid → static/fluid}/1805.02474v1-10.fld +0 -0
- /package/website/article/{fluid → static/fluid}/bar-chart-line-chart.fld +0 -0
- /package/website/article/{fluid → static/fluid}/convolution/emboss.fld +0 -0
- /package/website/article/{fluid → static/fluid}/convolution/testImage.fld +0 -0
- /package/website/article/{fluid → static/fluid}/convolution.fld +0 -0
- /package/website/article/{fluid → static/fluid}/dataset/scigen/_1805_02474v1_10.fld +0 -0
- /package/website/article/{fluid → static/fluid}/energyscatter.fld +0 -0
- /package/website/article/{fluid → static/fluid}/methane.fld +0 -0
- /package/website/article/{fluid → static/fluid}/methane_data.fld +0 -0
- /package/website/article/{fluid → static/fluid}/moving-average.fld +0 -0
- /package/website/article/{fluid → static/fluid}/non-renewables.fld +0 -0
- /package/website/article/{fluid → static/fluid}/nonRenewables.fld +0 -0
- /package/website/article/{fluid → static/fluid}/renewables.fld +0 -0
- /package/website/article/{fluid → static/fluid}/scigen.fld +0 -0
- /package/website/article/{fluid → static/fluid}/util.fld +0 -0
|
@@ -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,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,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,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,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,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,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,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
|
-
}
|
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
|
-
[](https://github.com/explorable-viz/fluid/actions/workflows/develop.yml)
|
|
6
|
-
[](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
|
-
}
|