Skip to content

Commit

Permalink
chore: remove references to consortia envs (#106)
Browse files Browse the repository at this point in the history
- remove consortia dev env from default env settings for portal-backend and centralidp
- change docs links to new directory structure (and update pr template): introduced with eclipse-tractusx/portal-assets#226
  • Loading branch information
evegufy authored Jan 30, 2024
1 parent 5c02f13 commit cd87498
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Link to Github issue.

Please delete options that are not relevant.

- [ ] I have followed the [contributing guidelines](https://github.com/eclipse-tractusx/portal-assets/blob/main/developer/Technical%20Documentation/Dev%20Process/How%20to%20contribute.md#commit-and-pr-guidelines)
- [ ] I have followed the [contributing guidelines](https://github.com/eclipse-tractusx/portal-assets/blob/main/docs/developer/Technical%20Documentation/Dev%20Process/How%20to%20contribute.md#commit-and-pr-guidelines)
- [ ] I have performed [IP checks](https://eclipse-tractusx.github.io/docs/release/trg-7/trg-7-04#checking-libraries-using-the-eclipse-dash-license-tool) for added or updated 3rd party libraries
- [ ] I have created and linked IP issues or requested their creation by a committer
- [ ] I have performed a self-review of my own code
Expand Down
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<div id="root" style='width:100%; height:100%'></div>
<!-- Do NOT change 'ENV' without changing 'custom_env_vars_anchor' in scripts/inject-dynamic-env.sh as well -->
<script>
const ENV = {PORTAL_ASSETS_URL:"http://localhost:3000/assets",PORTAL_BACKEND_URL:"https://portal-backend.dev.demo.catena-x.net",CENTRALIDP_URL:"https://centralidp.dev.demo.catena-x.net/auth",}
const ENV = {PORTAL_ASSETS_URL:"http://localhost:3000/assets",PORTAL_BACKEND_URL:"https://portal-backend.example.org",CENTRALIDP_URL:"https://centralidp.example.org/auth"}
</script>
</body>

Expand Down
2 changes: 1 addition & 1 deletion scripts/inject-dynamic-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
###############################################################

custom_env_vars='{PORTAL_ASSETS_URL:"'$PORTAL_ASSETS_URL'",PORTAL_BACKEND_URL:"'$PORTAL_BACKEND_URL'",CENTRALIDP_URL:"'$CENTRALIDP_URL'"}'
custom_env_vars_anchor='{PORTAL_ASSETS_URL:"http://localhost:3000/assets",PORTAL_BACKEND_URL:"https://portal-backend.dev.demo.catena-x.net",CENTRALIDP_URL:"https://centralidp.dev.demo.catena-x.net/auth"}'
custom_env_vars_anchor='{PORTAL_ASSETS_URL:"http://localhost:3000/assets",PORTAL_BACKEND_URL:"https://portal-backend.example.org",CENTRALIDP_URL:"https://centralidp.example.org/auth"}'
index_html_reference=`cat /usr/share/nginx/html/index.html.reference`
index_html=${index_html_reference//$custom_env_vars_anchor/$custom_env_vars}
echo "$index_html" > /usr/share/nginx/html/index.html
2 changes: 1 addition & 1 deletion src/components/cax-companyData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ export const CompanyDataCax = () => {
errors.identifierNumber !== ''
}
helpUrl={
'/documentation/?path=docs%2F01.+Onboarding%2F02.+Registration%2F02.+Add+Company+Data.md'
'/documentation/?path=user%2F01.+Onboarding%2F02.+Registration%2F02.+Add+Company+Data.md'
}
/>
</>
Expand Down
2 changes: 1 addition & 1 deletion src/components/cax-companyRole.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export const CompanyRoleCax = () => {
handleBackClick={() => backClick()}
handleNextClick={() => nextClick()}
helpUrl={
'/documentation/?path=docs%2F01.+Onboarding%2F02.+Registration%2F04.+Company+Role+%26+Consent.md'
'/documentation/?path=user%2F01.+Onboarding%2F02.+Registration%2F04.+Company+Role+%26+Consent.md'
}
/>
</>
Expand Down
2 changes: 1 addition & 1 deletion src/components/cax-responsibilities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export const ResponsibilitiesCax = () => {
handleBackClick={() => backClick()}
handleNextClick={() => nextClick()}
helpUrl={
'/documentation/?path=docs%2F01.+Onboarding%2F02.+Registration%2F03.+Add+Additional+User%28s%29.md'
'/documentation/?path=user%2F01.+Onboarding%2F02.+Registration%2F03.+Add+Additional+User%28s%29.md'
}
/>
</>
Expand Down
2 changes: 1 addition & 1 deletion src/components/dragdrop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export const DragDrop = () => {
handleBackClick={() => backClick()}
handleNextClick={() => nextClick()}
helpUrl={
'/documentation/?path=docs%2F01.+Onboarding%2F02.+Registration%2F05.+Document+Upload.md'
'/documentation/?path=user%2F01.+Onboarding%2F02.+Registration%2F05.+Document+Upload.md'
}
/>
</>
Expand Down
2 changes: 1 addition & 1 deletion src/components/finish.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const Finish = () => {
<a
href={window.location.pathname.replace(
window.location.pathname,
'/documentation/?path=docs%2F01.+Onboarding%2F02.+Registration%2F07.+FAQ.md#what-will-happen-after-the-registration'
'/documentation/?path=user%2F01.+Onboarding%2F02.+Registration%2F07.+FAQ.md#what-will-happen-after-the-registration'
)}
target="_blank"
rel="noreferrer"
Expand Down
2 changes: 1 addition & 1 deletion src/components/landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const Landing = () => {
target="_blank"
href={window.location.pathname.replace(
window.location.pathname,
'/documentation/?path=docs%2F01.+Onboarding%2F02.+Registration'
'/documentation/?path=user%2F01.+Onboarding%2F02.+Registration'
)}
>
{' '}
Expand Down
2 changes: 1 addition & 1 deletion src/components/verifyRegistration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export const VerifyRegistration = () => {
handleNextClick={() => nextClick()}
tooltip={getTooltip()}
helpUrl={
'/documentation/?path=docs%2F01.+Onboarding%2F02.+Registration%2F06.+Verify+Registration+Data.md'
'/documentation/?path=user%2F01.+Onboarding%2F02.+Registration%2F06.+Verify+Registration+Data.md'
}
/>
</>
Expand Down

0 comments on commit cd87498

Please sign in to comment.