forked from uncch-rdmc/dataverse-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request IQSS#112 from IQSS/feature/95-invoke-js-dataverse-…
…use-cases-in-the-dataset-page 95 - Invoke js dataverse use cases in the dataset page
- Loading branch information
Showing
75 changed files
with
8,744 additions
and
4,599 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
VITE_DATAVERSE_BACKEND_URL=https://demo.dataverse.org | ||
VITE_DATAVERSE_BACKEND_URL=http://localhost:8000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
legacy-peer-deps=true | ||
registry=https://npm.pkg.github.com/IQSS | ||
//npm.pkg.github.com/:_authToken=<YOUR_GITHUB_AUTH_TOKEN> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
POSTGRES_VERSION=13 | ||
DATAVERSE_DB_USER=dataverse | ||
SOLR_VERSION=8.11.1 | ||
REGISTRY=ghcr.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo "INFO - Cloning Dataverse sample data repository..." | ||
git clone https://github.com/IQSS/dataverse-sample-data.git | ||
|
||
echo "INFO - Configuring Dataverse sample data repository..." | ||
cd dataverse-sample-data | ||
python3 -m venv venv | ||
source venv/bin/activate | ||
pip install -r requirements.txt | ||
cp ../dvconfig.py ./dvconfig.py | ||
curl -X PUT -d 'true' ${DATAVERSE_API_BASE_URL}/admin/settings/:AllowApiTokenLookupViaApi | ||
dataverse_api_token=$(python3 get_api_token.py) | ||
sed -i '' "s/<DATAVERSE_API_TOKEN>/${dataverse_api_token}/g" dvconfig.py | ||
|
||
echo "INFO - Creating sample data..." | ||
python3 create_sample_data.py | ||
|
||
echo "INFO - Cleaning up repository..." | ||
cd .. | ||
rm -rf dataverse-sample-data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
|
||
docker-compose -f "./docker-compose-dev.yml" down | ||
rm -rf ./docker-dev-volumes | ||
rm -rf ./dataverse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { defineConfig } from 'vite' | ||
import react from '@vitejs/plugin-react' | ||
import istanbul from 'vite-plugin-istanbul' | ||
|
||
export default defineConfig({ | ||
plugins: [ | ||
react(), | ||
istanbul({ | ||
cypress: true, | ||
requireEnv: false | ||
}) | ||
], | ||
preview: { | ||
port: 5173 | ||
}, | ||
server: { | ||
//https://github.com/vitejs/vite/discussions/3396 | ||
host: true, | ||
port: 5173, | ||
hmr: { | ||
clientPort: 8000 // nginx reverse proxy port | ||
} | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,19 @@ | ||
FROM node:19.6.1 | ||
FROM node:19.6.1-alpine as BUILD_IMAGE | ||
|
||
WORKDIR /usr/src/app/packages/design-system | ||
COPY ./packages/design-system ./ | ||
RUN npm install | ||
RUN npm run build | ||
|
||
WORKDIR /usr/src/app | ||
COPY package.json ./ | ||
COPY .npmrc ./ | ||
RUN npm install | ||
|
||
FROM node:19.6.1-alpine | ||
|
||
WORKDIR /usr/src/app | ||
COPY --from=BUILD_IMAGE /usr/src/app/node_modules ./node_modules | ||
|
||
EXPOSE 5173 | ||
CMD ["npm", "start"] |
Binary file not shown.
Oops, something went wrong.