Skip to content
Snippets Groups Projects
Commit 5dc06094 authored by Allan Blanchard's avatar Allan Blanchard
Browse files

Merge remote-tracking branch 'origin/master' into feature/bobot/jbuilder

parents 58e9f788 32820e26
No related branches found
No related tags found
No related merge requests found
...@@ -14,5 +14,6 @@ yarn-error.log ...@@ -14,5 +14,6 @@ yarn-error.log
/doc/html /doc/html
/src/renderer/loader.ts /src/renderer/loader.ts
/src/dome/doc/guides/icons.md /src/dome/doc/guides/icons.md
/Makefile.plugins
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
...@@ -83,37 +83,10 @@ $(LOADER): $(PACKAGES) ./configure.js ./Makefile ...@@ -83,37 +83,10 @@ $(LOADER): $(PACKAGES) ./configure.js ./Makefile
# --- Frama-C Source Distrib # --- Frama-C Source Distrib
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
.PHONY: update-distrib-files update-distrib-plugins .PHONY: update-distrib-files
SRC_DISTRIB=Makefile.distrib
SRC_HEADERS=headers/header_spec.txt
update-distrib-files: update-distrib-files:
@echo "Generating $(SRC_DISTRIB)" ./distrib.sh
@rm -f $(SRC_DISTRIB)
@rm -f $(SRC_HEADERS)
@for f in `git ls-files .` ;\
do \
echo "DISTRIB_FILES += ivette/$$f" >> $(SRC_DISTRIB) ;\
headers/register.sh "$$f" >> $(SRC_HEADERS) ; \
done
@chmod a-w $(SRC_DISTRIB)
@chmod a-w $(SRC_HEADERS)
update-distrib-plugins: update-distrib-files
@chmod a+w $(SRC_DISTRIB)
@chmod a+w $(SRC_HEADERS)
@for repo in `find . -type d -name ".git"` ;\
do \
echo "Distributing $$repo" ;\
for f in `git -C $$repo ls-files .` ;\
do \
echo "DISTRIB_FILES += ivette/$$f" >> $(SRC_DISTRIB) ;\
headers/register.sh "$$f" >> $(SRC_HEADERS) ; \
done \
done
@chmod a-w $(SRC_DISTRIB)
@chmod a-w $(SRC_HEADERS)
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
# --- Frama-C API # --- Frama-C API
......
HEADER_SPEC += ivette/./headers/header_spec.txt
DISTRIB_FILES += ivette/.babelrc DISTRIB_FILES += ivette/.babelrc
DISTRIB_FILES += ivette/.dome-pkg-app.lock DISTRIB_FILES += ivette/.dome-pkg-app.lock
DISTRIB_FILES += ivette/.dome-pkg-dev.lock DISTRIB_FILES += ivette/.dome-pkg-dev.lock
...@@ -7,15 +8,13 @@ DISTRIB_FILES += ivette/.gitignore ...@@ -7,15 +8,13 @@ DISTRIB_FILES += ivette/.gitignore
DISTRIB_FILES += ivette/CONTRIBUTING.md DISTRIB_FILES += ivette/CONTRIBUTING.md
DISTRIB_FILES += ivette/INSTALL.md DISTRIB_FILES += ivette/INSTALL.md
DISTRIB_FILES += ivette/Makefile DISTRIB_FILES += ivette/Makefile
DISTRIB_FILES += ivette/Makefile.distrib
DISTRIB_FILES += ivette/README.md DISTRIB_FILES += ivette/README.md
DISTRIB_FILES += ivette/configure.js DISTRIB_FILES += ivette/configure.js
DISTRIB_FILES += ivette/distrib.sh
DISTRIB_FILES += ivette/doc/pandoc/href.lua DISTRIB_FILES += ivette/doc/pandoc/href.lua
DISTRIB_FILES += ivette/doc/pandoc/index.json DISTRIB_FILES += ivette/doc/pandoc/index.json
DISTRIB_FILES += ivette/doc/pandoc/template.html DISTRIB_FILES += ivette/doc/pandoc/template.html
DISTRIB_FILES += ivette/electron-webpack.json DISTRIB_FILES += ivette/electron-webpack.json
DISTRIB_FILES += ivette/headers/header_spec.txt
DISTRIB_FILES += ivette/headers/register.sh
DISTRIB_FILES += ivette/package.json DISTRIB_FILES += ivette/package.json
DISTRIB_FILES += ivette/src/dome/.gitignore DISTRIB_FILES += ivette/src/dome/.gitignore
DISTRIB_FILES += ivette/src/dome/CONTRIBUTING.md DISTRIB_FILES += ivette/src/dome/CONTRIBUTING.md
......
#!/bin/sh -e
# --------------------------------------------------------------------------
# --- Generate Files for Ivette Distribution
# --------------------------------------------------------------------------
Distribute() {
repo=$1
Distrib=$repo/Makefile.distrib
Headers=$repo/headers/header_spec.txt
rm -f $Distrib
rm -f $Headers
mkdir -p $1/headers
if [ "$repo" == "." ]
then
src=ivette
else
src=ivette/$repo
fi
echo "Distributing $src"
echo "HEADER_SPEC += $src/./headers/header_spec.txt" >> $Distrib
for f in $(git -C $repo ls-files .)
do
case $f in
Makefile.distrib | headers/* )
;;
*)
echo "DISTRIB_FILES += $src/$f" >> $Distrib
case $f in
*.sh | *.json | */dome/doc/* | configure.js | .* | webpack*.js )
echo "$f: .ignore" >> $Headers
;;
*Make* | *.js* | *.ts* | *.ml*)
echo "$f: CEA_LGPL" >> $Headers
;;
*)
echo "$f: .ignore" >> $Headers
;;
esac
esac
done
chmod a-w $Distrib
chmod a-w $Headers
if [ "$repo" != "." ]
then
echo "include ivette/$Distrib" >> Makefile.plugins
fi
}
## Distribute Core Ivette Files
Distribute .
## Distribute Ivette Plugins Files
rm -f Makefile.plugins
for rgit in $(find src -type d -name ".git")
do
Distribute $(dirname $rgit)
done
if [ -f Makefile.plugins ]
then
chmod a-w Makefile.plugins
fi
## Terminated.
exit 0
# --------------------------------------------------------------------------
...@@ -7,15 +7,13 @@ ...@@ -7,15 +7,13 @@
CONTRIBUTING.md: .ignore CONTRIBUTING.md: .ignore
INSTALL.md: .ignore INSTALL.md: .ignore
Makefile: CEA_LGPL Makefile: CEA_LGPL
Makefile.distrib: .ignore
README.md: .ignore README.md: .ignore
configure.js: .ignore configure.js: .ignore
distrib.sh: .ignore
doc/pandoc/href.lua: .ignore doc/pandoc/href.lua: .ignore
doc/pandoc/index.json: .ignore doc/pandoc/index.json: .ignore
doc/pandoc/template.html: .ignore doc/pandoc/template.html: .ignore
electron-webpack.json: .ignore electron-webpack.json: .ignore
headers/header_spec.txt: .ignore
headers/register.sh: .ignore
package.json: .ignore package.json: .ignore
src/dome/.gitignore: .ignore src/dome/.gitignore: .ignore
src/dome/CONTRIBUTING.md: .ignore src/dome/CONTRIBUTING.md: .ignore
......
#!/bin/sh
case "$1" in
Makefile.distrib | *.json | src/dome/doc/* | */.eslintrc.js )
echo "$1: .ignore"
;;
*Make* | src/*/*.js* | src/*/*.ts* | src/*/*.ml*)
echo "$1: CEA_LGPL"
;;
*)
echo "$1: .ignore"
;;
esac
...@@ -13,12 +13,12 @@ ...@@ -13,12 +13,12 @@
}, },
"devDependencies": { "devDependencies": {
"@babel/cli": "", "@babel/cli": "",
"@babel/core": "^7.16.0", "@babel/core": "^7.17.5",
"@babel/plugin-proposal-class-properties": "", "@babel/plugin-proposal-class-properties": "",
"@babel/plugin-proposal-object-rest-spread": "^7.16.0", "@babel/plugin-proposal-object-rest-spread": "^7.17.3",
"@babel/plugin-transform-runtime": "", "@babel/plugin-transform-runtime": "",
"@babel/preset-env": "^7.16.4", "@babel/preset-env": "^7.16.11",
"@babel/preset-react": "^7.16.0", "@babel/preset-react": "^7.16.7",
"@babel/preset-typescript": "", "@babel/preset-typescript": "",
"@hot-loader/react-dom": "^16", "@hot-loader/react-dom": "^16",
"@types/codemirror": "", "@types/codemirror": "",
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
"babel-loader": "^8.2.3", "babel-loader": "^8.2.3",
"css-loader": "^5", "css-loader": "^5",
"electron": "^16", "electron": "^16",
"electron-builder": "^22.14.13",
"electron-devtools-installer": "^3.2.0", "electron-devtools-installer": "^3.2.0",
"electron-webpack": "^2.8.2", "electron-webpack": "^2.8.2",
"eslint": "", "eslint": "",
...@@ -57,7 +58,7 @@ ...@@ -57,7 +58,7 @@
"@fortawesome/fontawesome-free": "", "@fortawesome/fontawesome-free": "",
"@types/diff": "", "@types/diff": "",
"@types/react-window": "", "@types/react-window": "",
"codemirror": "^5.64.0", "codemirror": "^5.65.2",
"cytoscape": "", "cytoscape": "",
"cytoscape-cola": "", "cytoscape-cola": "",
"cytoscape-cose-bilkent": "", "cytoscape-cose-bilkent": "",
...@@ -67,7 +68,6 @@ ...@@ -67,7 +68,6 @@
"cytoscape-panzoom": "", "cytoscape-panzoom": "",
"cytoscape-popper": "", "cytoscape-popper": "",
"diff": "", "diff": "",
"electron-builder": "^22.14.5",
"immutable": "", "immutable": "",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"react": "^16", "react": "^16",
......
...@@ -32,6 +32,7 @@ import { LED } from 'dome/controls/displays'; ...@@ -32,6 +32,7 @@ import { LED } from 'dome/controls/displays';
import { Scroll } from 'dome/layout/boxes'; import { Scroll } from 'dome/layout/boxes';
import * as Status from 'frama-c/kernel/Status'; import * as Status from 'frama-c/kernel/Status';
import * as States from 'frama-c/states'; import * as States from 'frama-c/states';
import { GlobalState, useGlobalState } from 'dome/data/states';
import * as PivotState from 'frama-c/plugins/pivot/api/general'; import * as PivotState from 'frama-c/plugins/pivot/api/general';
import PivotTableUI from 'react-pivottable/PivotTableUI'; import PivotTableUI from 'react-pivottable/PivotTableUI';
import 'frama-c/kernel/PivotTable-style.css'; import 'frama-c/kernel/PivotTable-style.css';
...@@ -44,8 +45,10 @@ interface PivotTableProps { ...@@ -44,8 +45,10 @@ interface PivotTableProps {
data: string[][]; data: string[][];
} }
const PivotGlobalState = new GlobalState({});
export function Pivot(props: PivotTableProps): JSX.Element { export function Pivot(props: PivotTableProps): JSX.Element {
const [state, setState] = React.useState({}); const [state, setState] = useGlobalState(PivotGlobalState);
return ( return (
<PivotTableUI <PivotTableUI
data={props.data} data={props.data}
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment