Skip to content

Commit

Permalink
feat: merge branch 'staging' into deployments/arbitrum
Browse files Browse the repository at this point in the history
# Conflicts:
#	.env
#	.github/workflows/build-and-deploy-arbitrum-prod.yaml
#	package-lock.json
#	package.json
  • Loading branch information
acaldas committed May 28, 2024
2 parents 12f08f5 + f7b9c7d commit 9dfbf09
Show file tree
Hide file tree
Showing 38 changed files with 6,516 additions and 3,685 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/build-and-deploy-arbitrum-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,21 @@ jobs:
email: ${{ secrets.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
docker_options: "--build-arg BASE_PATH=/arbitrum/connect --build-arg VITE_BASE_HREF=/arbitrum/connect/ --build-arg VITE_ROUTER_BASENAME=/arbitrum/connect --build-arg VITE_SENTRY_DSN=${{ secrets.SENTRY_DSN }} --build-arg VITE_SENTRY_ENV=${{ secrets.SENTRY_ENV }} --build-arg VITE_ENABLED_EDITORS=ARBLTIPGrantee --build-arg VITE_DISABLE_ADD_PUBLIC_DRIVES=true --build-arg VITE_DISABLE_ADD_CLOUD_DRIVES=true --build-arg VITE_DISABLE_ADD_LOCAL_DRIVES=true --build-arg VITE_DISABLE_DELETE_PUBLIC_DRIVES=true --build-arg VITE_DISABLE_DELETE_CLOUD_DRIVES=true --build-arg VITE_DISABLE_DELETE_LOCAL_DRIVES=true --build-arg VITE_LOCAL_DRIVES_ENABLED=false --build-arg VITE_DEFAULT_DRIVE_URL=https://apps.powerhouse.io/arbitrum/switchboard/d/arbitrum2 --build-arg VITE_RENOWN_CHAIN_ID=42161 --build-arg VITE_HIDE_DOCUMENT_MODEL_SELECTION_SETTINGS=true"
docker_options: >-
--build-arg BASE_PATH=/arbitrum/connect
--build-arg VITE_BASE_HREF=/arbitrum/connect/
--build-arg VITE_ROUTER_BASENAME=/arbitrum/connect
--build-arg VITE_SENTRY_DSN=${{ secrets.SENTRY_DSN }}
--build-arg VITE_SENTRY_ENV=${{ secrets.SENTRY_ENV }}
--build-arg VITE_ENABLED_EDITORS=ARBLTIPGrantee
--build-arg VITE_DISABLE_ADD_PUBLIC_DRIVES=true
--build-arg VITE_DISABLE_ADD_CLOUD_DRIVES=true
--build-arg VITE_DISABLE_ADD_LOCAL_DRIVES=true
--build-arg VITE_DISABLE_DELETE_PUBLIC_DRIVES=true
--build-arg VITE_DISABLE_DELETE_CLOUD_DRIVES=true
--build-arg VITE_DISABLE_DELETE_LOCAL_DRIVES=true
--build-arg VITE_LOCAL_DRIVES_ENABLED=false
--build-arg VITE_DEFAULT_DRIVE_URL=https://apps.powerhouse.io/arbitrum/switchboard/d/arbitrum
--build-arg VITE_RENOWN_CHAIN_ID=42161
--build-arg VITE_HIDE_DOCUMENT_MODEL_SELECTION_SETTINGS=true
process_type: web
19 changes: 18 additions & 1 deletion .github/workflows/build-and-deploy-arbitrum-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,22 @@ jobs:
email: ${{ secrets.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
docker_options: "--build-arg BASE_PATH=/alpha/arbitrum/connect --build-arg VITE_BASE_HREF=/alpha/arbitrum/connect/ --build-arg VITE_ROUTER_BASENAME=/alpha/arbitrum/connect --build-arg VITE_ENABLED_EDITORS=ARBLTIPGrantee --build-arg VITE_DISABLE_ADD_PUBLIC_DRIVES=true --build-arg VITE_DISABLE_ADD_CLOUD_DRIVES=true --build-arg VITE_DISABLE_ADD_LOCAL_DRIVES=true --build-arg VITE_DISABLE_DELETE_PUBLIC_DRIVES=true --build-arg VITE_DISABLE_DELETE_CLOUD_DRIVES=true --build-arg VITE_DISABLE_DELETE_LOCAL_DRIVES=true --build-arg VITE_LOCAL_DRIVES_ENABLED=false --build-arg VITE_DEFAULT_DRIVE_URL=https://apps.powerhouse.io/alpha/arbitrum/switchboard/d/arbitrum --build-arg VITE_RENOWN_CHAIN_ID=42161 --build-arg VITE_SENTRY_DSN=${{ secrets.SENTRY_DSN }} --build-arg VITE_SENTRY_ENV=${{ secrets.SENTRY_ENV }} --build-arg VITE_CREATE_DOCUMENT_ALLOW_LIST=${{secrets.VITE_CREATE_DOCUMENT_ALLOW_LIST}} --build-arg VITE_HIDE_DOCUMENT_MODEL_SELECTION_SETTINGS=true"
docker_options: >-
--build-arg BASE_PATH=/alpha/arbitrum/connect
--build-arg VITE_BASE_HREF=/alpha/arbitrum/connect/
--build-arg VITE_ROUTER_BASENAME=/alpha/arbitrum/connect
--build-arg VITE_ENABLED_EDITORS=ARBLTIPGrantee
--build-arg VITE_DISABLE_ADD_PUBLIC_DRIVES=true
--build-arg VITE_DISABLE_ADD_CLOUD_DRIVES=true
--build-arg VITE_DISABLE_ADD_LOCAL_DRIVES=true
--build-arg VITE_DISABLE_DELETE_PUBLIC_DRIVES=true
--build-arg VITE_DISABLE_DELETE_CLOUD_DRIVES=true
--build-arg VITE_DISABLE_DELETE_LOCAL_DRIVES=true
--build-arg VITE_LOCAL_DRIVES_ENABLED=false
--build-arg VITE_DEFAULT_DRIVE_URL=https://apps.powerhouse.io/alpha/arbitrum/switchboard/d/arbitrum
--build-arg VITE_RENOWN_CHAIN_ID=42161
--build-arg VITE_SENTRY_DSN=${{ secrets.SENTRY_DSN }}
--build-arg VITE_SENTRY_ENV=${{ secrets.SENTRY_ENV }}
--build-arg VITE_ARBITRUM_ALLOW_LIST=${{secrets.VITE_ARBITRUM_ALLOW_LIST}}
--build-arg VITE_HIDE_DOCUMENT_MODEL_SELECTION_SETTINGS=true
process_type: web
8 changes: 7 additions & 1 deletion .github/workflows/build-and-deploy-makerdao-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,11 @@ jobs:
email: ${{ secrets.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
docker_options: "--build-arg BASE_PATH=/makerdao/connect --build-arg VITE_BASE_HREF=/makerdao/connect/ --build-arg VITE_ROUTER_BASENAME=/makerdao/connect --build-arg VITE_SENTRY_DSN=${{ secrets.SENTRY_DSN }} --build-arg VITE_SENTRY_ENV=${{ secrets.SENTRY_ENV }} --build-arg VITE_DEFAULT_DRIVE_URL=https://apps.powerhouse.io/makerdao/switchboard/d/monetalis"
docker_options: >-
--build-arg BASE_PATH=/makerdao/connect
--build-arg VITE_BASE_HREF=/makerdao/connect/
--build-arg VITE_ROUTER_BASENAME=/makerdao/connect
--build-arg VITE_SENTRY_DSN=${{ secrets.SENTRY_DSN }}
--build-arg VITE_SENTRY_ENV=${{ secrets.SENTRY_ENV }}
--build-arg VITE_DEFAULT_DRIVE_URL=https://apps.powerhouse.io/makerdao/switchboard/d/monetalis
process_type: web
8 changes: 7 additions & 1 deletion .github/workflows/build-and-deploy-makerdao-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,11 @@ jobs:
email: ${{ secrets.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
docker_options: "--build-arg BASE_PATH=/alpha/makerdao/connect --build-arg VITE_BASE_HREF=/alpha/makerdao/connect/ --build-arg VITE_ROUTER_BASENAME=/alpha/makerdao/connect --build-arg VITE_SENTRY_DSN=${{ secrets.SENTRY_DSN }} --build-arg VITE_SENTRY_ENV=${{ secrets.SENTRY_ENV }} --build-arg VITE_DEFAULT_DRIVE_URL=https://apps.powerhouse.io/alpha/makerdao/switchboard/d/monetalis --build-arg VITE_CREATE_DOCUMENT_ALLOW_LIST=${{secrets.VITE_CREATE_DOCUMENT_ALLOW_LIST}}"
docker_options: >-
--build-arg BASE_PATH=/alpha/makerdao/connect
--build-arg VITE_BASE_HREF=/alpha/makerdao/connect/
--build-arg VITE_ROUTER_BASENAME=/alpha/makerdao/connect
--build-arg VITE_SENTRY_DSN=${{ secrets.SENTRY_DSN }}
--build-arg VITE_SENTRY_ENV=${{ secrets.SENTRY_ENV }}
--build-arg VITE_DEFAULT_DRIVE_URL=https://apps.powerhouse.io/alpha/makerdao/switchboard/d/monetalis
process_type: web
8 changes: 7 additions & 1 deletion .github/workflows/build-and-deploy-powerhouse-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,11 @@ jobs:
email: ${{ secrets.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
docker_options: "--build-arg BASE_PATH=/powerhouse/connect --build-arg VITE_BASE_HREF=/powerhouse/connect/ --build-arg VITE_ROUTER_BASENAME=/powerhouse/connect --build-arg VITE_SENTRY_DSN=${{ secrets.SENTRY_DSN }} --build-arg VITE_SENTRY_ENV=${{ secrets.SENTRY_ENV }} VITE_DEFAULT_DRIVE_URL=https://apps.powerhouse.io/powerhouse/switchboard/d/powerhouse"
docker_options: >-
--build-arg BASE_PATH=/powerhouse/connect
--build-arg VITE_BASE_HREF=/powerhouse/connect/
--build-arg VITE_ROUTER_BASENAME=/powerhouse/connect
--build-arg VITE_SENTRY_DSN=${{ secrets.SENTRY_DSN }}
--build-arg VITE_SENTRY_ENV=${{ secrets.SENTRY_ENV }}
--build-arg VITE_DEFAULT_DRIVE_URL=https://apps.powerhouse.io/powerhouse/switchboard/d/powerhouse
process_type: web
8 changes: 7 additions & 1 deletion .github/workflows/build-and-deploy-powerhouse-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,11 @@ jobs:
email: ${{ secrets.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
docker_options: "--build-arg BASE_PATH=/alpha/powerhouse/connect --build-arg VITE_BASE_HREF=/alpha/powerhouse/connect/ --build-arg VITE_ROUTER_BASENAME=/alpha/powerhouse/connect --build-arg VITE_SENTRY_DSN=${{ secrets.SENTRY_DSN }} --build-arg VITE_SENTRY_ENV=${{ secrets.SENTRY_ENV }} --build-arg VITE_DEFAULT_DRIVE_URL=https://apps.powerhouse.io/alpha/powerhouse/switchboard/d/powerhouse"
docker_options: >-
--build-arg BASE_PATH=/alpha/powerhouse/connect
--build-arg VITE_BASE_HREF=/alpha/powerhouse/connect/
--build-arg VITE_ROUTER_BASENAME=/alpha/powerhouse/connect
--build-arg VITE_SENTRY_DSN=${{ secrets.SENTRY_DSN }}
--build-arg VITE_SENTRY_ENV=${{ secrets.SENTRY_ENV }}
--build-arg VITE_DEFAULT_DRIVE_URL=https://apps.powerhouse.io/alpha/powerhouse/switchboard/d/powerhouse
process_type: web
13 changes: 8 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,26 @@ ENV VITE_DISABLE_DELETE_CLOUD_DRIVES=${VITE_DISABLE_DELETE_CLOUD_DRIVES}
ARG VITE_DISABLE_DELETE_LOCAL_DRIVES=false
ENV VITE_DISABLE_DELETE_LOCAL_DRIVES=${VITE_DISABLE_DELETE_LOCAL_DRIVES}

ARG VITE_LOCAL_DRIVES_ENABLED=false
ARG VITE_LOCAL_DRIVES_ENABLED=true
ENV VITE_LOCAL_DRIVES_ENABLED=${VITE_LOCAL_DRIVES_ENABLED}

ARG VITE_CREATE_DOCUMENT_ALLOW_LIST=""
ENV VITE_CREATE_DOCUMENT_ALLOW_LIST=${VITE_CREATE_DOCUMENT_ALLOW_LIST}
ARG VITE_ARBITRUM_ALLOW_LIST=""
ENV VITE_ARBITRUM_ALLOW_LIST=${VITE_ARBITRUM_ALLOW_LIST}

ARG VITE_RWA_ALLOW_LIST=""
ENV VITE_RWA_ALLOW_LIST=${VITE_RWA_ALLOW_LIST}

ARG VITE_HIDE_DOCUMENT_MODEL_SELECTION_SETTINGS=true
ENV VITE_HIDE_DOCUMENT_MODEL_SELECTION_SETTINGS=${VITE_HIDE_DOCUMENT_MODEL_SELECTION_SETTINGS}

WORKDIR /opt/app
COPY . .
RUN npm install -g husky vite
RUN npm install --frozen-lockfile
RUN npm install --frozen-lockfile --force
RUN npm run build:web -- --base ${BASE_PATH}

# Production image, copy all the files and run next
FROM nginx:latest AS runner
FROM macbre/nginx-brotli:latest AS runner

ARG X_TAG
WORKDIR /opt/app
Expand Down
71 changes: 71 additions & 0 deletions arbitrum.client.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
export default {
meta: [
{
tag: 'meta',
attrs: {
property: 'og:title',
content: 'Arbitrum Grants Platform',
},
},
{
tag: 'meta',
attrs: {
property: 'og:type',
content: 'website',
},
},
{
tag: 'meta',
attrs: {
property: 'og:url',
content: 'https://www.arbgrants.com',
},
},
{
tag: 'meta',
attrs: {
property: 'og:description',
content:
'Connect offers participants to the Arbitrum DAO Grant programs an easy and convenient way to report on their grant progress with their arbitrum address.',
},
},
{
tag: 'meta',
attrs: {
property: 'og:image',
content:
'https://cf-ipfs.com/ipfs/bafkreidah6wctc2y4h2n7q7ci6twvgbwbhptfywpy5btwhsm4gucubedhy',
},
},
{
tag: 'meta',
attrs: {
name: 'twitter:card',
content: 'summary_large_image',
},
},
{
tag: 'meta',
attrs: {
name: 'twitter:image',
content:
'https://cf-ipfs.com/ipfs/bafkreidah6wctc2y4h2n7q7ci6twvgbwbhptfywpy5btwhsm4gucubedhy',
},
},
{
tag: 'meta',
attrs: {
name: 'twitter:title',
content: 'Arbitrum Grants Platform',
},
},
{
tag: 'meta',
attrs: {
name: 'twitter:description',
content:
'Connect offers participants to the Arbitrum DAO Grant programs an easy and convenient way to report on their grant progress with their arbitrum address.',
},
},
],
};
71 changes: 71 additions & 0 deletions client.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
export default {
meta: [
{
tag: 'meta',
attrs: {
property: 'og:title',
content: 'Connect',
},
},
{
tag: 'meta',
attrs: {
property: 'og:type',
content: 'website',
},
},
{
tag: 'meta',
attrs: {
property: 'og:url',
content: 'https://apps.powerhouse.io/powerhouse/connect/',
},
},
{
tag: 'meta',
attrs: {
property: 'og:description',
content:
'Navigate your organisation’s toughest operational challenges and steer your contributors to success with Connect. A navigation, collaboration and reporting tool for decentralised and open organisation.',
},
},
{
tag: 'meta',
attrs: {
property: 'og:image',
content:
'https://cf-ipfs.com/ipfs/bafkreigrmclndf2jpbolaq22535q2sw5t44uad3az3dpvkzrnt4lpjt63e',
},
},
{
tag: 'meta',
attrs: {
name: 'twitter:card',
content: 'summary_large_image',
},
},
{
tag: 'meta',
attrs: {
name: 'twitter:image',
content:
'https://cf-ipfs.com/ipfs/bafkreigrmclndf2jpbolaq22535q2sw5t44uad3az3dpvkzrnt4lpjt63e',
},
},
{
tag: 'meta',
attrs: {
name: 'twitter:title',
content: 'Connect',
},
},
{
tag: 'meta',
attrs: {
name: 'twitter:description',
content:
'Navigate your organisation’s toughest operational challenges and steer your contributors to success with Connect. A navigation, collaboration and reporting tool for decentralised and open organisation.',
},
},
],
};
71 changes: 71 additions & 0 deletions connect.client.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
export default {
meta: [
{
tag: 'meta',
attrs: {
property: 'og:title',
content: 'Connect',
},
},
{
tag: 'meta',
attrs: {
property: 'og:type',
content: 'website',
},
},
{
tag: 'meta',
attrs: {
property: 'og:url',
content: 'https://apps.powerhouse.io/powerhouse/connect/',
},
},
{
tag: 'meta',
attrs: {
property: 'og:description',
content:
'Navigate your organisation’s toughest operational challenges and steer your contributors to success with Connect. A navigation, collaboration and reporting tool for decentralised and open organisation.',
},
},
{
tag: 'meta',
attrs: {
property: 'og:image',
content:
'https://cf-ipfs.com/ipfs/bafkreigrmclndf2jpbolaq22535q2sw5t44uad3az3dpvkzrnt4lpjt63e',
},
},
{
tag: 'meta',
attrs: {
name: 'twitter:card',
content: 'summary_large_image',
},
},
{
tag: 'meta',
attrs: {
name: 'twitter:image',
content:
'https://cf-ipfs.com/ipfs/bafkreigrmclndf2jpbolaq22535q2sw5t44uad3az3dpvkzrnt4lpjt63e',
},
},
{
tag: 'meta',
attrs: {
name: 'twitter:title',
content: 'Connect',
},
},
{
tag: 'meta',
attrs: {
name: 'twitter:description',
content:
'Navigate your organisation’s toughest operational challenges and steer your contributors to success with Connect. A navigation, collaboration and reporting tool for decentralised and open organisation.',
},
},
],
};
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Powerhouse Connect</title>
<base href="%VITE_BASE_HREF%">
</head>
Expand Down
Loading

0 comments on commit 9dfbf09

Please sign in to comment.