-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stablishing develop branch and enabling build workflow trigger
- Loading branch information
Showing
154 changed files
with
2,674 additions
and
2,621 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.github/workflows/delploy.yml → .github/workflows/_disabled_delploy.yml
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,4 +1,4 @@ | ||
name: deploy | ||
name: Deploy | ||
|
||
on: | ||
workflow_dispatch: | ||
|
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,75 @@ | ||
name: Build artifacts | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
workflow_dispatch: | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
REPOSITORY_OWNER: wkspower | ||
KEYCLOAK_URL: http://localhost:8082 | ||
WKS_API_URL: http://localhost:8081 | ||
WKS_STORAGE_API_URL: http://localhost:8085 | ||
WEBSOCKET_ENABLED: false | ||
WEBSOCKET_URL: ws://localhost:8484 | ||
TOPIC_CASE_CREATE: case-create | ||
TOPIC_CREATE_HUMAN_TASK: human-task-create | ||
NOVU_ENABLED: false | ||
NOVU_PUBLISHER_API_URL: http://localhost:3002 | ||
|
||
jobs: | ||
checkout-repo: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
id: checkout | ||
uses: actions/checkout@v3 | ||
|
||
build-java: | ||
runs-on: ubuntu-latest | ||
needs: checkout-repo | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- name: Set up jdk 18 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: "18" | ||
distribution: "temurin" | ||
|
||
- name: Set up maven | ||
uses: stCarolas/[email protected] | ||
with: | ||
maven-version: 3.8.2 | ||
|
||
- name: Build all for backend api | ||
run: mvn -B package --file ./apps/java/pom.xml | ||
|
||
build-react: | ||
runs-on: ubuntu-latest | ||
needs: checkout-repo | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- name: Install dependencies for case-portal | ||
run: yarn --cwd ./apps/react/case-portal install | ||
|
||
- name: Build for case-portal | ||
env: | ||
NODE_OPTIONS: "--max_old_space_size=4096" | ||
run: | | ||
export REACT_APP_KEYCLOAK_URL="${{ env.KEYCLOAK_URL }}" | ||
export REACT_APP_API_URL="${{ env.WKS_API_URL }}" | ||
export REACT_APP_STORAGE_URL="${{ env.WKS_STORAGE_API_URL }}" | ||
export REACT_APP_WEBSOCKETS_ENABLED="${{ env.WEBSOCKET_ENABLED }}" | ||
export REACT_APP_WEBSOCKETS_URL="${{ env.WEBSOCKET_URL }}" | ||
export REACT_APP_WEBSOCKETS_CASE_CREATED="${{ env.TOPIC_CASE_CREATE }}" | ||
export REACT_APP_WEBSOCKETS_HUMAN_TASK_CREATED="${{ env.TOPIC_CREATE_HUMAN_TASK }}" | ||
export REACT_APP_NOVU_ENABLED="${{ env.NOVU_ENABLED }}" | ||
export REACT_APP_NOVU_PUBLISHER_API_URL="${{ env.NOVU_PUBLISHER_API_URL }}" | ||
yarn --cwd ./apps/react/case-portal build |
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
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,33 +1,33 @@ | ||
import React, { useContext } from 'react'; | ||
import React, { useContext } from 'react' | ||
|
||
const SessionStoreContext = React.createContext({}); | ||
export const SessionStoreProvider = SessionStoreContext.Provider; | ||
export const SessionStoreConsumer = SessionStoreContext.Consumer; | ||
const SessionStoreContext = React.createContext({}) | ||
export const SessionStoreProvider = SessionStoreContext.Provider | ||
export const SessionStoreConsumer = SessionStoreContext.Consumer | ||
|
||
export function withStore(WrappedComponent) { | ||
function WithStoreComponent(props) { | ||
return ( | ||
<SessionStoreConsumer> | ||
{(stores) => <WrappedComponent {...props} {...stores} />} | ||
</SessionStoreConsumer> | ||
); | ||
) | ||
} | ||
return WithStoreComponent; | ||
return WithStoreComponent | ||
} | ||
|
||
export const useSession = () => { | ||
const attrs = useContext(SessionStoreContext); | ||
return attrs['keycloak']; | ||
}; | ||
const attrs = useContext(SessionStoreContext) | ||
return attrs['keycloak'] | ||
} | ||
|
||
export const useMenu = () => { | ||
const attrs = useContext(SessionStoreContext); | ||
return attrs['menu']; | ||
}; | ||
const attrs = useContext(SessionStoreContext) | ||
return attrs['menu'] | ||
} | ||
|
||
export const useBpmEngine = () => { | ||
const attrs = useContext(SessionStoreContext); | ||
return attrs['bpmEngine']; | ||
}; | ||
const attrs = useContext(SessionStoreContext) | ||
return attrs['bpmEngine'] | ||
} | ||
|
||
export default SessionStoreContext; | ||
export default SessionStoreContext |
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
Oops, something went wrong.