Skip to content

Commit

Permalink
refactor(dev-portal-web): rename app
Browse files Browse the repository at this point in the history
  • Loading branch information
SavelevMatthew committed Feb 5, 2025
1 parent 61df0c7 commit b2b739d
Show file tree
Hide file tree
Showing 207 changed files with 20 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy_development.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
WERF_SET_CI_CLASSIFIER_URL: "global.ci_classifier_url=ml.d.doma.ai"
WERF_SET_CI_ADDRESS_SERVICE_URL: "global.ci_address_service_url=address-service.d.doma.ai"
WERF_SET_CI_TELEPHONY_URL: "global.ci_telephony_url=telephony.d.doma.ai"
WERF_SET_CI_DEVPORTAL_URL: "global.ci_devportal_url=developers.d.doma.ai"
WERF_SET_CI_DEV_PORTAL_WEB_URL: "global.ci_dev_portal_web_url=developers.d.doma.ai"
WERF_SET_CI_PASSAPP_URL: "global.ci_passapp_url=miniapp-pass.d.doma.ai"
WERF_SET_CI_DOCUMENTS_URL: "global.ci_documents_url=documents.d.doma.ai"
WERF_SET_CI_DEVPORTALAPI_URL: "global.ci_devportalapi_url=developers-api.d.doma.ai"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
WERF_SET_CI_CLASSIFIER_URL: "global.ci_classifier_url=ml.doma.ai"
WERF_SET_CI_ADDRESS_SERVICE_URL: "global.ci_address_service_url=address-service.doma.ai"
WERF_SET_CI_TELEPHONY_URL: "global.ci_telephony_url=telephony.doma.ai"
WERF_SET_CI_DEVPORTAL_URL: "global.ci_devportal_url=developers.doma.ai"
WERF_SET_CI_DEV_PORTAL_WEB_URL: "global.ci_dev_portal_web_url=developers.doma.ai"
WERF_SET_CI_PASSAPP_URL: "global.ci_passapp_url=miniapp-pass.doma.ai"
WERF_SET_CI_DEVPORTALAPI_URL: "global.ci_devportalapi_url=developers-api.doma.ai"
WERF_SET_CI_EMPLOYEE_BOT_URL: "global.ci_employee_bot_url=telegram-employee-bot.doma.ai"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
WERF_SET_CI_CLASSIFIER_URL: "global.ci_classifier_url=review-${{ env.REVIEW_URL_PREFIX }}-ml.r.doma.ai"
WERF_SET_CI_ADDRESS_SERVICE_URL: "global.ci_address_service_url=review-${{ env.REVIEW_URL_PREFIX }}-address-service.r.doma.ai"
WERF_SET_CI_TELEPHONY_URL: "global.ci_telephony_url=review-${{ env.REVIEW_URL_PREFIX }}-telephony.r.doma.ai"
WERF_SET_CI_DEVPORTAL_URL: "global.ci_devportal_url=review-${{ env.REVIEW_URL_PREFIX }}-developers.r.doma.ai"
WERF_SET_CI_DEV_PORTAL_WEB_URL: "global.ci_dev_portal_web_url=review-${{ env.REVIEW_URL_PREFIX }}-developers.r.doma.ai"
WERF_SET_CI_PASSAPP_URL: "global.ci_passapp_url=review-${{ env.REVIEW_URL_PREFIX }}-miniapp-pass.r.doma.ai"
WERF_SET_CI_NEWS_GREENHOUSE_URL: "global.ci_news_greenhouse_url=news-sharing-greendom.r.doma.ai"
WERF_SET_CI_METERS_BILLING_INTEGRATION_URL: "global.ci_meters_billing_integration_url=meters-billing-integration.r.doma.ai"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
WERF_SET_CI_CLASSIFIER_URL: "global.ci_classifier_url=ml.s1.doma.ai"
WERF_SET_CI_ADDRESS_SERVICE_URL: "global.ci_address_service_url=address-service.s1.doma.ai"
WERF_SET_CI_TELEPHONY_URL: "global.ci_telephony_url=telephony.s1.doma.ai"
WERF_SET_CI_DEVPORTAL_URL: "global.ci_devportal_url=developers.s1.doma.ai"
WERF_SET_CI_DEV_PORTAL_WEB_URL: "global.ci_dev_portal_web_url=developers.s1.doma.ai"
WERF_SET_CI_PASSAPP_URL: "global.ci_passapp_url=miniapp-pass.s1.doma.ai"
WERF_SET_CI_DOCUMENTS_URL: "global.ci_documents_url=documents.s1.doma.ai"
WERF_SET_CI_DEVPORTALAPI_URL: "global.ci_devportalapi_url=developers-api.s1.doma.ai"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gitexporter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ cat > ${SOURCE_FOLDER}.config.json <<EOF
"apps/condo/*",
"apps/miniapp/*",
"apps/address-service/*",
"apps/dev-portal/*",
"apps/dev-portal-web/*",
"packages/*",
"bin/*",
"docs/*",
Expand Down
2 changes: 1 addition & 1 deletion .helm
Submodule .helm updated from e4e45f to 1ae1ab
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
DOCS_ROOT_PATH='docs'
DOCS_ENTRY_ENDPOINT='/docs/index'
DOCS_REPO='https://github.com/open-condo-software/condo'
DOCS_REPO_DOCS_ROOT='apps/dev-portal/docs'
DOCS_REPO_DOCS_ROOT='apps/dev-portal-web/docs'
DOCS_EDIT_BRANCH='main'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
// https://github.com/vercel/next.js/discussions/11493#discussioncomment-14606
export const DOCS_ROOT_PATH = process.env.DOCS_ROOT_PATH || 'docs'
export const DOCS_REPO = process.env.DOCS_REPO || 'https://github.com/open-condo-software/condo'
export const DOCS_REPO_DOCS_ROOT = process.env.DOCS_REPO_DOCS_ROOT || 'apps/dev-portal/docs'
export const DOCS_REPO_DOCS_ROOT = process.env.DOCS_REPO_DOCS_ROOT || 'apps/dev-portal-web/docs'
export const DOCS_EDIT_BRANCH = process.env.DOCS_EDIT_BRANCH || 'main'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const DOCS_ENTRY_ENDPOINT = conf['DOCS_ENTRY_ENDPOINT'] || '/docs/index'
// NOTE: Url of API server
const SERVER_URL = conf['DEV_API_DOMAIN'] || 'http://localhost:4006'
// NOTE: Url of current service
const SERVICE_URL = conf['DEV_PORTAL_DOMAIN'] || 'http://localhost:3000'
const SERVICE_URL = conf['DEV_PORTAL_WEB_DOMAIN'] || 'http://localhost:3000'
const ADDRESS_SERVICE_URL = conf['ADDRESS_SERVICE_DOMAIN'] || 'http://localhost:4001'
// NOTE: Value to override via headers
const GRAPHQL_PROXY_NAME = conf['GRAPHQL_PROXY_NAME'] || 'Next'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@app/dev-portal",
"name": "@app/dev-portal-web",
"version": "0.0.0-development",
"installConfig": {
"hoistingLimits": "workspaces"
},
"scripts": {
"build:deps": "turbo build --filter=@app/dev-portal^... --filter=!@app/dev-api --filter=!@app/condo",
"build:deps": "turbo build --filter=@app/dev-portal-web^... --filter=!@app/dev-api --filter=!@app/condo",
"dev": "yarn build:deps && next dev & yarn types:watch",
"build": "next build",
"start": "next start",
Expand All @@ -19,7 +19,6 @@
"@babel/core": "7.20.12",
"@babel/preset-env": "7.20.2",
"@babel/preset-typescript": "7.18.6",
"@dev-portal/domains": "link:./domains",
"@open-condo/cli": "workspace:^",
"@open-condo/config": "workspace:^",
"@open-condo/icons": "workspace:^",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
14 changes: 7 additions & 7 deletions werf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ docker:
ENV:
LANG: C.UTF-8
---
image: devportal
image: dev_portal_web
fromImage: base
fromCacheVersion: "1"
git:
Expand Down Expand Up @@ -601,12 +601,12 @@ shell:
setup:
- "cd /app"
#NOTE: Next.js is picking .env only from package-level envs during build time
- "echo '# Build time .env config!' >> /app/apps/dev-portal/.env"
- "echo 'NODE_ENV=production' >> /app/apps/dev-portal/.env"
- "yarn workspace @app/dev-portal next telemetry disable"
- "yarn workspace @app/dev-portal build:deps"
- "yarn workspace @app/dev-portal build"
- "rm -rf /app/apps/dev-portal/.env"
- "echo '# Build time .env config!' >> /app/apps/dev-portal-web/.env"
- "echo 'NODE_ENV=production' >> /app/apps/dev-portal-web/.env"
- "yarn workspace @app/dev-portal-web next telemetry disable"
- "yarn workspace @app/dev-portal-web build:deps"
- "yarn workspace @app/dev-portal-web build"
- "rm -rf /app/apps/dev-portal-web/.env"
- "rm -rf /app/.config"


Expand Down
11 changes: 2 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1091,17 +1091,16 @@ __metadata:
languageName: unknown
linkType: soft

"@app/dev-portal@workspace:apps/dev-portal":
"@app/dev-portal-web@workspace:apps/dev-portal-web":
version: 0.0.0-use.local
resolution: "@app/dev-portal@workspace:apps/dev-portal"
resolution: "@app/dev-portal-web@workspace:apps/dev-portal-web"
dependencies:
"@ant-design/cssinjs": ^1.18.5
"@apollo/client": ^3.11.8
"@app/dev-api": "workspace:^"
"@babel/core": 7.20.12
"@babel/preset-env": 7.20.2
"@babel/preset-typescript": 7.18.6
"@dev-portal/domains": "link:./domains"
"@graphql-codegen/cli": ^5.0.2
"@graphql-codegen/client-preset": 4.1.0
"@graphql-codegen/typescript": ^4.0.1
Expand Down Expand Up @@ -8428,12 +8427,6 @@ __metadata:
languageName: node
linkType: soft

"@dev-portal/domains@link:./domains::locator=%40app%2Fdev-portal%40workspace%3Aapps%2Fdev-portal":
version: 0.0.0-use.local
resolution: "@dev-portal/domains@link:./domains::locator=%40app%2Fdev-portal%40workspace%3Aapps%2Fdev-portal"
languageName: node
linkType: soft

"@discoveryjs/json-ext@npm:0.5.7, @discoveryjs/json-ext@npm:^0.5.0, @discoveryjs/json-ext@npm:^0.5.3, @discoveryjs/json-ext@npm:^0.5.7":
version: 0.5.7
resolution: "@discoveryjs/json-ext@npm:0.5.7"
Expand Down

0 comments on commit b2b739d

Please sign in to comment.