diff --git a/aUsefulTmuxScript.sh b/aUsefulTmuxScript.sh new file mode 100755 index 000000000..97058f7f5 --- /dev/null +++ b/aUsefulTmuxScript.sh @@ -0,0 +1,25 @@ +#!/bin/zsh + +SESSIONNAME="sprocket" +tmux has-session -t $SESSIONNAME &> /dev/null + +if [ $? != 0 ] + then + tmux new-session -s $SESSIONNAME -n script -d + tmux split-window -h + tmux selectp -t 0 + tmux send-keys 'npm run build --workspaces --if-present' C-m + tmux split-window -v + tmux selectp -t 1 + tmux send-keys 'cd $PWD/core' C-m + tmux send-keys 'sleep 120; npm run dev;' C-m + tmux selectp -t 2 + tmux send-keys 'cd $PWD/clients/web' C-m 'reset' C-m + tmux send-keys 'export PUBLIC_GQL_URL=http://localhost:3001; sleep 240; npm run dev' C-m + tmux split-window -v + tmux selectp -t 3 + tmux send-keys 'cd $PWD/common' C-m 'reset' C-m + tmux selectp -t 0 +fi + +tmux attach -t $SESSIONNAME diff --git a/clients/web/package.json b/clients/web/package.json index 8bb1cf43b..b72298ead 100644 --- a/clients/web/package.json +++ b/clients/web/package.json @@ -53,6 +53,7 @@ "@faker-js/faker": "^7.6.0", "@fontsource/montserrat": "^4.5.14", "@sveltejs/adapter-node": "^1.0.0-next.106", + "@tanstack/svelte-table": "^8.9.3", "echarts": "^5.4.1", "jwt-decode": "^3.1.2", "lodash.startcase": "^4.4.0", diff --git a/package-lock.json b/package-lock.json index 9be2a7678..88a56bca2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -305,6 +305,7 @@ "@faker-js/faker": "^7.6.0", "@fontsource/montserrat": "^4.5.14", "@sveltejs/adapter-node": "^1.0.0-next.106", + "@tanstack/svelte-table": "^8.9.3", "echarts": "^5.4.1", "jwt-decode": "^3.1.2", "lodash.startcase": "^4.4.0", @@ -6421,11 +6422,11 @@ } }, "node_modules/@tanstack/svelte-table": { - "version": "8.7.9", - "resolved": "https://registry.npmjs.org/@tanstack/svelte-table/-/svelte-table-8.7.9.tgz", - "integrity": "sha512-URouNiViWNi+XzJhjf5sn+wV/xmfOFanXWCldshENqRzegppYlFFb9t+0Y8fozsgWxKBFwfvT86ZEJfzOTencw==", + "version": "8.9.3", + "resolved": "https://registry.npmjs.org/@tanstack/svelte-table/-/svelte-table-8.9.3.tgz", + "integrity": "sha512-A8tqYTycmEUUKNU66SWWFzFN9oIMO6Yn4/4Gz9lihKiAAQNIRbFtuoeA44oxd46UWqyuOCEm4x7xgVhNoF01AA==", "dependencies": { - "@tanstack/table-core": "8.7.9" + "@tanstack/table-core": "8.9.3" }, "engines": { "node": ">=12" @@ -6439,9 +6440,9 @@ } }, "node_modules/@tanstack/table-core": { - "version": "8.7.9", - "resolved": "https://registry.npmjs.org/@tanstack/table-core/-/table-core-8.7.9.tgz", - "integrity": "sha512-4RkayPMV1oS2SKDXfQbFoct1w5k+pvGpmX18tCXMofK/VDRdA2hhxfsQlMvsJ4oTX8b0CI4Y3GDKn5T425jBCw==", + "version": "8.9.3", + "resolved": "https://registry.npmjs.org/@tanstack/table-core/-/table-core-8.9.3.tgz", + "integrity": "sha512-NpHZBoHTfqyJk0m/s/+CSuAiwtebhYK90mDuf5eylTvgViNOujiaOaxNDxJkQQAsVvHWZftUGAx1EfO1rkKtLg==", "engines": { "node": ">=12" }, @@ -23296,17 +23297,17 @@ } }, "@tanstack/svelte-table": { - "version": "8.7.9", - "resolved": "https://registry.npmjs.org/@tanstack/svelte-table/-/svelte-table-8.7.9.tgz", - "integrity": "sha512-URouNiViWNi+XzJhjf5sn+wV/xmfOFanXWCldshENqRzegppYlFFb9t+0Y8fozsgWxKBFwfvT86ZEJfzOTencw==", + "version": "8.9.3", + "resolved": "https://registry.npmjs.org/@tanstack/svelte-table/-/svelte-table-8.9.3.tgz", + "integrity": "sha512-A8tqYTycmEUUKNU66SWWFzFN9oIMO6Yn4/4Gz9lihKiAAQNIRbFtuoeA44oxd46UWqyuOCEm4x7xgVhNoF01AA==", "requires": { - "@tanstack/table-core": "8.7.9" + "@tanstack/table-core": "8.9.3" } }, "@tanstack/table-core": { - "version": "8.7.9", - "resolved": "https://registry.npmjs.org/@tanstack/table-core/-/table-core-8.7.9.tgz", - "integrity": "sha512-4RkayPMV1oS2SKDXfQbFoct1w5k+pvGpmX18tCXMofK/VDRdA2hhxfsQlMvsJ4oTX8b0CI4Y3GDKn5T425jBCw==" + "version": "8.9.3", + "resolved": "https://registry.npmjs.org/@tanstack/table-core/-/table-core-8.9.3.tgz", + "integrity": "sha512-NpHZBoHTfqyJk0m/s/+CSuAiwtebhYK90mDuf5eylTvgViNOujiaOaxNDxJkQQAsVvHWZftUGAx1EfO1rkKtLg==" }, "@tootallnate/once": { "version": "1.1.2" @@ -31897,7 +31898,8 @@ "@sveltejs/adapter-auto": "^1.0.1", "@sveltejs/adapter-node": "^1.0.0-next.106", "@sveltejs/kit": "^1.1.1", - "@types/lodash.startcase": "*", + "@tanstack/svelte-table": "*", + "@types/lodash.startcase": "^4.4.7", "@types/lodash.times": "^4.3.7", "@typescript-eslint/eslint-plugin": "^5.27.0", "@typescript-eslint/parser": "^5.27.0", diff --git a/startTmuxAndBuildSprocket.sh b/startTmuxAndBuildSprocket.sh new file mode 100755 index 000000000..97058f7f5 --- /dev/null +++ b/startTmuxAndBuildSprocket.sh @@ -0,0 +1,25 @@ +#!/bin/zsh + +SESSIONNAME="sprocket" +tmux has-session -t $SESSIONNAME &> /dev/null + +if [ $? != 0 ] + then + tmux new-session -s $SESSIONNAME -n script -d + tmux split-window -h + tmux selectp -t 0 + tmux send-keys 'npm run build --workspaces --if-present' C-m + tmux split-window -v + tmux selectp -t 1 + tmux send-keys 'cd $PWD/core' C-m + tmux send-keys 'sleep 120; npm run dev;' C-m + tmux selectp -t 2 + tmux send-keys 'cd $PWD/clients/web' C-m 'reset' C-m + tmux send-keys 'export PUBLIC_GQL_URL=http://localhost:3001; sleep 240; npm run dev' C-m + tmux split-window -v + tmux selectp -t 3 + tmux send-keys 'cd $PWD/common' C-m 'reset' C-m + tmux selectp -t 0 +fi + +tmux attach -t $SESSIONNAME