Skip to content

Commit

Permalink
Merge pull request #74 from Geode-solutions/next
Browse files Browse the repository at this point in the history
Next
  • Loading branch information
JulienChampagnol authored Nov 8, 2024
2 parents af69fdc + f3a020d commit 00cb58b
Show file tree
Hide file tree
Showing 34 changed files with 208 additions and 172 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/CICD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
if: needs.semantic.outputs.new_release == 'true'
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-20.04, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -45,6 +45,7 @@ jobs:
cat package.json
rm -rf node_modules package-lock.json
npm install
npm run build_microservices
npm run package
shell: bash
env:
Expand Down
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ logs
# Other
/build
/dist-electron
/electron-server/dist_back
/electron-server/dist_viewer
/electron-server/venv_back
/electron-server/venv_viewer
/electron-server/back/dist
/electron-server/viewer/dist
/electron-server/back/venv
/electron-server/viewer/venv
/release
/uploads
vease-back*
Expand Down
2 changes: 1 addition & 1 deletion components/ImportFile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<v-progress-circular indeterminate size="20" color="white" width="3" />
</template>
</v-btn>
<v-btn variant="text" @click="$emit('decrement_step')"> Cancel </v-btn>
<v-btn variant="text" @click="UIState.setShowStepper(false)"> Cancel </v-btn>
</template>

<script setup>
Expand Down
2 changes: 1 addition & 1 deletion components/NewProject.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class="text-center"
>
<v-sheet border="md">
<v-card color="#3c9983">
<v-card color="primary">
<v-card-title>
<h3 class="mt-4">New Project</h3>
</v-card-title>
Expand Down
2 changes: 1 addition & 1 deletion components/OpenProject.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class="text-center"
>
<v-sheet border="md">
<v-card color="#3c9983">
<v-card color="primary">
<v-card-title>
<h3 class="mt-4">Open Project</h3>
</v-card-title>
Expand Down
5 changes: 4 additions & 1 deletion components/StepImport.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import ObjectSelector from "@geode/opengeodeweb-front/components/ObjectSelector.
import ImportFile from "@/components/ImportFile.vue";
const files = ref([]);
const auto_upload = ref(true);
const input_geode_object = ref("");
const additional_files = ref([]);
const supported_feature = "";
Expand All @@ -24,17 +25,19 @@ files.value = props.files;
const stepper_tree = reactive({
current_step_index: ref(0),
files,
auto_upload,
input_geode_object,
supported_feature,
steps: [
{
step_title: "Please select a file to convert",
step_title: "Please select file(s) to import",
component: {
component_name: shallowRef(FileSelector),
component_options: {
multiple: true,
supported_feature,
files,
auto_upload,
},
},
chips: computed(() => {
Expand Down
1 change: 0 additions & 1 deletion components/TopBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
import logo from "@/assets/img/logo.png";
const search = ref("");
const links = [{ title: "Account", to: "/account" }];
const userStore = useUserStore();
const { profileImagePath } = storeToRefs(userStore);
Expand Down
4 changes: 2 additions & 2 deletions electron-builder.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"./vease-viewer*"
],
"linux": {
"artifactName": "${productName}.${ext}",
"artifactName": "${productName}_${platform}.${ext}",
"category": "Science",
"target": [
"AppImage",
Expand All @@ -24,7 +24,7 @@
]
},
"win": {
"artifactName": "${productName}.${ext}",
"artifactName": "${productName}_${platform}.${ext}",
"sign": "./customSign.js",
"signingHashAlgorithms": [
"sha256"
Expand Down
9 changes: 9 additions & 0 deletions electron-server/back/build.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
echo "Building back microservice"
$back_path=".\electron-server\back"
$dist_path="$back_path\dist"
$venv_path="$back_path\venv"
. "$venv_path\Scripts\activate"
$site_packages_path="$venv_path\Lib\site-packages"
pip install pyinstaller
pyinstaller --onefile --collect-data opengeodeweb_back --collect-data vease_back "$site_packages_path\vease_back\app.py" --distpath $dist_path -n vease-back --clean
Copy-Item $dist_path\vease-back.exe .\
9 changes: 9 additions & 0 deletions electron-server/back/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
back_path=./electron-server/back
dist_path=$back_path/dist
venv_path=$back_path/venv
source $venv_path/bin/activate
site_packages_path=$venv_path/lib/python3.10/site-packages
pip install pyinstaller
pyinstaller --onefile --collect-data opengeodeweb_back $site_packages_path/vease_back/app.py --distpath $dist_path -n vease-back --clean
cp $dist_path/vease-back ./
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile electron-server/requirements_back.in
# pip-compile ./electron-server/back/requirements.in
#
asgiref==3.8.1
# via
Expand All @@ -25,8 +25,6 @@ click==8.1.7
# flask
# opengeodeweb-back
# vease-back
colorama==0.4.6
# via vease-back
flask[async]==3.0.3
# via
# flask-cors
Expand All @@ -36,14 +34,14 @@ flask-cors==5.0.0
# via
# opengeodeweb-back
# vease-back
geode-background==8.6.1
geode-background==8.7.0
# via
# geode-explicit
# geode-implicit
# geode-simplex
# opengeodeweb-back
# vease-back
geode-common==33.0.4
geode-common==33.0.9
# via
# geode-background
# geode-conversion
Expand All @@ -54,33 +52,33 @@ geode-common==33.0.4
# geode-viewables
# opengeodeweb-back
# vease-back
geode-conversion==6.0.10
geode-conversion==6.0.14
# via
# geode-explicit
# geode-implicit
# opengeodeweb-back
# vease-back
geode-explicit==6.1.9
geode-explicit==6.1.14
# via
# geode-implicit
# opengeodeweb-back
# vease-back
geode-implicit==3.2.4
geode-implicit==3.3.2
# via
# opengeodeweb-back
# vease-back
geode-numerics==5.1.3
geode-numerics==5.1.8
# via
# geode-implicit
# geode-simplex
# opengeodeweb-back
# vease-back
geode-simplex==8.2.10
geode-simplex==8.2.15
# via
# geode-implicit
# opengeodeweb-back
# vease-back
geode-viewables==3.0.5
geode-viewables==3.0.6
# via
# opengeodeweb-back
# vease-back
Expand All @@ -103,13 +101,13 @@ jsonschema-specifications==2024.10.1
# jsonschema
# opengeodeweb-back
# vease-back
markupsafe==3.0.1
markupsafe==3.0.2
# via
# jinja2
# opengeodeweb-back
# vease-back
# werkzeug
opengeode-core==15.5.0
opengeode-core==15.6.3
# via
# geode-background
# geode-common
Expand All @@ -125,41 +123,41 @@ opengeode-core==15.5.0
# opengeode-io
# opengeodeweb-back
# vease-back
opengeode-geosciences==8.1.0
opengeode-geosciences==8.1.1
# via
# geode-implicit
# geode-viewables
# opengeode-geosciencesio
# opengeodeweb-back
# vease-back
opengeode-geosciencesio==5.2.1
opengeode-geosciencesio==5.2.3
# via
# geode-implicit
# opengeodeweb-back
# vease-back
opengeode-inspector==6.1.4
opengeode-inspector==6.1.12
# via
# geode-explicit
# geode-implicit
# geode-simplex
# opengeodeweb-back
# vease-back
opengeode-io==7.0.3
opengeode-io==7.0.5
# via
# geode-implicit
# geode-viewables
# opengeode-geosciencesio
# opengeodeweb-back
# vease-back
opengeodeweb-back==5.3.1
opengeodeweb-back==5.3.2
# via vease-back
referencing==0.35.1
# via
# jsonschema
# jsonschema-specifications
# opengeodeweb-back
# vease-back
rpds-py==0.20.0
rpds-py==0.21.0
# via
# jsonschema
# opengeodeweb-back
Expand All @@ -170,9 +168,9 @@ typing-extensions==4.12.2
# asgiref
# opengeodeweb-back
# vease-back
vease-back==1.0.0
# via -r electron-server/requirements_back.in
werkzeug==3.0.4
vease-back==1.0.1
# via -r ./electron-server/back/requirements.in
werkzeug==3.1.2
# via
# flask
# opengeodeweb-back
Expand Down
9 changes: 9 additions & 0 deletions electron-server/compile.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
$microservice_name=$args[0]
echo "Compiling $args requirements"
$microservice_path=".\electron-server\$microservice_name"
$venv_path="$microservice_path\venv"
python -m venv $venv_path
Remove-Item -Recurse -Force "$microservice_path\requirements.txt" -ErrorAction:SilentlyContinue
. "$venv_path\Scripts\activate"
pip install pip-tools
pip-compile "$microservice_path\requirements.in"
11 changes: 11 additions & 0 deletions electron-server/compile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
set -e
microservice_name=$1
echo "Compiling $microservice_name requirements"
microservice_path="./electron-server/$microservice_name"
venv_path=$microservice_path/venv
python3 -m venv $venv_path
rm -rf $microservice_path/requirements.txt
source $venv_path/bin/activate
pip install pip-tools
pip-compile $microservice_path/requirements.in
3 changes: 0 additions & 3 deletions electron-server/compile_back.ps1

This file was deleted.

5 changes: 0 additions & 5 deletions electron-server/compile_back.sh

This file was deleted.

3 changes: 0 additions & 3 deletions electron-server/compile_viewer.ps1

This file was deleted.

5 changes: 0 additions & 5 deletions electron-server/compile_viewer.sh

This file was deleted.

11 changes: 11 additions & 0 deletions electron-server/install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
$microservice_name=$args[0]
echo "Installing $args requirements"
$microservice_path=".\electron-server\$microservice_name"
$venv_path="$microservice_path\venv"
echo "Installing in $venv_path"
Remove-Item -Recurse -Force $venv_path -ErrorAction:SilentlyContinue
Remove-Item -Recurse -Force "$microservice_path\dist\" -ErrorAction:SilentlyContinue
Remove-Item -Recurse -Force "$microservice_path\build\" -ErrorAction:SilentlyContinue
python -m venv $venv_path
. "$venv_path\Scripts\activate"
pip install -r "$microservice_path\requirements.txt"
10 changes: 10 additions & 0 deletions electron-server/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set -e
microservice_name=$1
echo "Installing $microservice_name requirements"
microservice_path="./electron-server/$microservice_name"
venv_path=$microservice_path/venv
rm -rf $venv_path $microservice_path/dist $microservice_path/build
python3 -m venv $venv_path
source $venv_path/bin/activate
pip install -r $microservice_path/requirements.txt
13 changes: 0 additions & 13 deletions electron-server/install_back.ps1

This file was deleted.

12 changes: 0 additions & 12 deletions electron-server/install_back.sh

This file was deleted.

Loading

0 comments on commit 00cb58b

Please sign in to comment.