@explorable-viz/fluid 0.7.21 → 0.7.23

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 (34) hide show
  1. package/.spago/argonaut/v9.0.0/.editorconfig +13 -0
  2. package/.spago/argonaut/v9.0.0/.gitignore +9 -0
  3. package/.spago/argonaut/v9.0.0/.tidyrc.json +10 -0
  4. package/.spago/argonaut-codecs/v9.0.0/.editorconfig +13 -0
  5. package/.spago/argonaut-codecs/v9.0.0/.gitignore +9 -0
  6. package/.spago/argonaut-codecs/v9.0.0/.tidyrc.json +10 -0
  7. package/.spago/argonaut-traversals/v10.0.0/.editorconfig +13 -0
  8. package/.spago/argonaut-traversals/v10.0.0/.gitignore +9 -0
  9. package/.spago/argonaut-traversals/v10.0.0/.tidyrc.json +10 -0
  10. package/.spago/profunctor-lenses/v8.0.0/.editorconfig +13 -0
  11. package/.spago/profunctor-lenses/v8.0.0/.gitignore +9 -0
  12. package/.spago/profunctor-lenses/v8.0.0/.tidyrc.json +10 -0
  13. package/dist/fluid/css/styles.css +343 -0
  14. package/dist/fluid/css/view-styles.css +182 -0
  15. package/dist/fluid/favicon.ico +0 -0
  16. package/dist/fluid/fluid.mjs +3 -3
  17. package/dist/fluid/font/GraphikLight.woff2 +0 -0
  18. package/dist/fluid/font/GraphikLightItalic.woff2 +0 -0
  19. package/dist/fluid/font/GraphikMedium.woff2 +0 -0
  20. package/dist/fluid/font/GraphikMediumItalic.woff2 +0 -0
  21. package/dist/fluid/font/OdiseanTech.woff2 +0 -0
  22. package/dist/fluid/load-fig.js +44294 -0
  23. package/dist/fluid/shared/footer.html +6 -0
  24. package/dist/fluid/shared/header.html +26 -0
  25. package/dist/fluid/shared/sub-header.html +12 -0
  26. package/dist/fluid/shared/util.js +72 -0
  27. package/index.js +42757 -26748
  28. package/package.json +4 -4
  29. package/script/rebundle-website.sh +81 -0
  30. package/script/bundle-page.sh +0 -21
  31. package/script/bundle-website.sh +0 -44
  32. package/script/util/bundle.sh +0 -3
  33. package/script/util/compile.sh +0 -7
  34. package/script/util/lisp-case.sh +0 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explorable-viz/fluid",
3
- "version": "0.7.21",
3
+ "version": "0.7.23",
4
4
  "description": "Fluid is an experimental programming language which integrates a bidirectional dynamic analysis to connect outputs to data sources in a fine-grained way. Fluid is implemented in PureScript and runs in the browser.",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -19,9 +19,9 @@
19
19
  "homepage": "https://f.luid.org",
20
20
  "files": [
21
21
  "dist/fluid/",
22
- "script/bundle-website.sh",
23
- "script/util/",
24
- "script/bundle-page.sh"
22
+ "script/rebundle-website.sh",
23
+ "script/util/clean.sh",
24
+ "script/util/lisp_case.sh"
25
25
  ],
26
26
  "scripts": {
27
27
  "tidy": "./script/tidy.sh",
@@ -0,0 +1,81 @@
1
+ #!/usr/bin/env bash
2
+ set -xe
3
+
4
+ WEBSITE="Misc"
5
+
6
+ while getopts "w:" opt; do
7
+ case $opt in
8
+ w) WEBSITE="$OPTARG";;
9
+ esac
10
+ done
11
+
12
+ SRC_PATH=${WEBSITE//./\/}
13
+ SRC_PATH_LISP_CASE=$(./script/util/lisp-case.sh "$SRC_PATH")
14
+ echo "$SRC_PATH -> $SRC_PATH_LISP_CASE"
15
+
16
+ shopt -s nullglob
17
+
18
+ set +x
19
+ PAGES=($(for FILE in website/$WEBSITE/*.html; do
20
+ basename "$FILE" | sed 's/\.[^.]*$//'
21
+ done | sort -u))
22
+ set -x
23
+ for PAGE in "${PAGES[@]}"; do
24
+ MODULE=$WEBSITE.$PAGE
25
+ SRC_PATH=${MODULE//./\/}
26
+ SRC_PATH_LISP_CASE=$(./script/util/lisp-case.sh "$SRC_PATH")
27
+ echo "$SRC_PATH -> $SRC_PATH_LISP_CASE"
28
+
29
+ if [[ ! -e "website/$SRC_PATH.purs" ]]; then
30
+ ./script/util/clean.sh $SRC_PATH_LISP_CASE
31
+
32
+ cp website/$SRC_PATH.html dist/$SRC_PATH_LISP_CASE/index.html
33
+ else
34
+ if [[ -e "website/$SRC_PATH.html" ]]; then
35
+ ./script/util/clean.sh $SRC_PATH_LISP_CASE
36
+
37
+ cp website/$SRC_PATH.html dist/$SRC_PATH_LISP_CASE/index.html
38
+ fi
39
+ fi
40
+
41
+ if [[ -e "website/$SRC_PATH.json" ]]; then
42
+ echo "exists"
43
+ cp website/$SRC_PATH.json dist/$SRC_PATH_LISP_CASE/spec.json
44
+ else
45
+ if [[ ! -e "website/$SRC_PATH.json" ]]; then
46
+ echo "doesn't exist"
47
+ fi
48
+ fi
49
+ done
50
+
51
+
52
+ WEBSITE_LISP_CASE=$(./script/util/lisp-case.sh "$WEBSITE")
53
+
54
+ set +x
55
+ TO_COPY=()
56
+ for CHILD in website/$WEBSITE/*; do
57
+ BASENAME="$(basename "$CHILD")"
58
+ if [[ "$BASENAME" =~ ^[a-z] ]]; then
59
+ TO_COPY+=("$CHILD")
60
+ fi
61
+ done
62
+ set -x
63
+
64
+ echo "Processing shared files:"
65
+ cp -r dist/fluid/shared dist/$WEBSITE_LISP_CASE/shared
66
+ cp dist/fluid/load-fig.js dist/$WEBSITE_LISP_CASE/shared/load-fig.js
67
+
68
+ cp -r dist/fluid/font dist/$WEBSITE_LISP_CASE/font
69
+ cp -r dist/fluid/css dist/$WEBSITE_LISP_CASE/css
70
+ cp dist/fluid/favicon.ico dist/$WEBSITE_LISP_CASE/favicon.ico
71
+
72
+ echo "Processing static files:"
73
+
74
+ for CHILD in "${TO_COPY[@]}"; do
75
+ BASENAME="$(basename "$CHILD")"
76
+ cp -r "$CHILD" "dist/$WEBSITE_LISP_CASE/$BASENAME"
77
+ done
78
+
79
+ shopt -u nullglob
80
+ cp -r fluid dist/$WEBSITE_LISP_CASE
81
+ echo "Bundled website $WEBSITE"
@@ -1,21 +0,0 @@
1
- #!/usr/bin/env bash
2
- # run from project root
3
- set -xe
4
-
5
- MODULE=$1
6
- SRC_PATH=${MODULE//./\/}
7
- SRC_PATH_LISP_CASE=$(./script/util/lisp-case.sh "$SRC_PATH")
8
- echo "$SRC_PATH -> $SRC_PATH_LISP_CASE"
9
-
10
- if [[ ! -e "website/$SRC_PATH.purs" ]]; then
11
- ./script/util/clean.sh $SRC_PATH_LISP_CASE
12
- cp website/$SRC_PATH.html dist/$SRC_PATH_LISP_CASE/index.html
13
- else
14
- ./script/util/bundle.sh $SRC_PATH_LISP_CASE Website.$MODULE
15
-
16
- if [[ -e "website/$SRC_PATH.html" ]]; then
17
- cp website/$SRC_PATH.html dist/$SRC_PATH_LISP_CASE/index.html
18
- else
19
- cp website/FluidOrg/template.html dist/$SRC_PATH_LISP_CASE/index.html
20
- fi
21
- fi
@@ -1,44 +0,0 @@
1
- #!/usr/bin/env bash
2
- # run from project root
3
- set -xe
4
-
5
- WEBSITE=$1
6
- . script/bundle-page.sh $WEBSITE
7
-
8
- # Only support one level of nesting for now
9
- shopt -s nullglob
10
-
11
- set +x
12
- PAGES=($(for FILE in website/$WEBSITE/*.purs; do
13
- basename "$FILE" | sed 's/\.[^.]*$//'
14
- done | sort -u))
15
- set -x
16
-
17
- echo "Processing ${WEBSITE} pages: ${PAGES[@]}"
18
-
19
- for PAGE in "${PAGES[@]}"; do
20
- . script/bundle-page.sh $WEBSITE.$PAGE
21
- done
22
-
23
- WEBSITE_LISP_CASE=$(./script/util/lisp-case.sh "$WEBSITE")
24
-
25
- set +x
26
- TO_COPY=()
27
- for CHILD in website/$WEBSITE/*; do
28
- BASENAME="$(basename "$CHILD")"
29
- if [[ "$BASENAME" =~ ^[a-z] ]]; then
30
- TO_COPY+=("$CHILD")
31
- fi
32
- done
33
- set -x
34
-
35
- echo "Processing static files:"
36
-
37
- for CHILD in "${TO_COPY[@]}"; do
38
- BASENAME="$(basename "$CHILD")"
39
- cp -rL "$CHILD" "dist/$WEBSITE_LISP_CASE/$BASENAME"
40
- done
41
-
42
- shopt -u nullglob
43
- cp -r fluid dist/$WEBSITE_LISP_CASE
44
- echo "Bundled website $WEBSITE"
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -xe
3
- yarn purs-backend-es bundle-app --main $2 --to dist/$1/fluid.js ${@:3} > /dev/null
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -xe
3
-
4
- rm -rf output
5
- rm -rf output-es
6
- yarn tidy
7
- yarn spago build --purs-args '--strict --censor-codes=UserDefinedWarning'
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
-
4
- toLispCase() {
5
- INPUT="$1"
6
- RESULT=$(echo "$INPUT" | sed -E 's/([a-z0-9])([A-Z])/\1-\2/g' | tr '[:upper:]' '[:lower:]')
7
- echo "$RESULT"
8
- }
9
-
10
- toLispCase "$1"