-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into task/WG-208--file-listing-component
- Loading branch information
Showing
29 changed files
with
583 additions
and
178 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,2 +1,9 @@ | ||
node_modules/ | ||
.git | ||
**/node_modules | ||
**/build | ||
|
||
# Angular jwt file | ||
**/jwt.ts | ||
|
||
# React project secrets | ||
**/secret_local.ts |
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 |
---|---|---|
@@ -1,11 +1,20 @@ | ||
TAG := $(shell git log --format=%h -1) | ||
IMAGE ?= taccaci/hazmapper:$(TAG) | ||
|
||
.PHONY: build-angular | ||
build-angular: | ||
docker build -t taccaci/hazmapper:$(TAG) -f angular/Dockerfile . | ||
docker tag taccaci/hazmapper:$(TAG) taccaci/hazmapper:latest | ||
|
||
.PHONY: build-react | ||
build-react: | ||
docker build -t taccaci/hazmapper-react:$(TAG) -f react/Dockerfile . | ||
docker tag taccaci/hazmapper-react:$(TAG) taccaci/hazmapper-react:latest | ||
|
||
.PHONY: build | ||
build: | ||
docker build -t $(IMAGE) -f angular/Dockerfile . | ||
docker tag taccaci/hazmapper:${TAG} taccaci/hazmapper:latest | ||
make build-angular && make build-react | ||
|
||
.PHONY: deploy | ||
deploy: | ||
docker push $(IMAGE) | ||
.PHONY: publish | ||
publish: | ||
docker push taccaci/hazmapper:$(TAG) | ||
docker push taccaci/hazmapper-react:$(TAG) |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -25,3 +25,4 @@ dist-ssr | |
|
||
# Environment | ||
.env | ||
secret_local.ts |
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,16 @@ | ||
FROM node:20.10.0-alpine3.18 as node | ||
|
||
RUN mkdir /www | ||
COPY react /www | ||
WORKDIR /www | ||
|
||
# Creating dummy local file as it is not dynamically loaded; not actually used in prod TODO_REACT | ||
COPY react/src/secret_local.example.ts src/secret_local.ts | ||
|
||
RUN npm ci | ||
RUN npm run build | ||
|
||
FROM nginx:1.24-alpine | ||
WORKDIR / | ||
COPY nginx.conf /etc/nginx/conf.d/default.conf | ||
COPY --from=node /www/dist/ /usr/share/nginx/html |
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,32 @@ | ||
import { | ||
GeoapiBackendEnvironment, | ||
AppConfiguration, | ||
MapillaryConfiguration, | ||
} from '../types'; | ||
|
||
const clientId = 'abc_123_JWT'; | ||
const jwtId = 'abc_123_client_id'; | ||
|
||
export const mapillaryConfig: MapillaryConfiguration = { | ||
authUrl: 'https://www.mapillary.com/connect', | ||
tokenUrl: 'https://graph.mapillary.com/token', | ||
apiUrl: 'https://graph.mapillary.com/', | ||
tileUrl: 'https://tiles.mapillary.com/', | ||
scope: | ||
'user:email+user:read+user:write+public:write+public:upload+private:read+private:write+private:upload', | ||
clientSecret: '', | ||
clientId: '', | ||
clientToken: '', | ||
}; | ||
|
||
export const localDevConfiguration: AppConfiguration = { | ||
basePath: '/', | ||
clientId: clientId, | ||
geoapiBackend: GeoapiBackendEnvironment.Local, | ||
geoapiUrl: 'http://localhost:8888', | ||
designSafeUrl: 'https://agave.designsafe-ci.org/', | ||
designsafePortalUrl: 'https://designsafeci-dev.tacc.utexas.edu/', | ||
mapillary: mapillaryConfig, | ||
taggitUrl: 'http://localhost:4200/taggit-staging', | ||
jwt: jwtId, | ||
}; |
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,17 @@ | ||
import { AuthState } from '../types'; | ||
|
||
export const authenticatedUser: AuthState = { | ||
user: { | ||
username: 'user', | ||
email: '[email protected]', | ||
}, | ||
token: { | ||
token: 'auth-token', | ||
expires: 3153600000000, // 2070 | ||
}, | ||
}; | ||
|
||
export const unauthenticatedUser: AuthState = { | ||
user: null, | ||
token: null, | ||
}; |
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,2 @@ | ||
export { default as useBasePath } from './useBasePath'; | ||
export { default as useAppConfiguration } from './useAppConfiguration'; |
Oops, something went wrong.