Skip to content

Commit

Permalink
Remove Deprecated Apps (#1888)
Browse files Browse the repository at this point in the history
  • Loading branch information
AtelyPham authored Dec 11, 2023
1 parent 62daf3d commit ec5a636
Show file tree
Hide file tree
Showing 209 changed files with 126 additions and 15,103 deletions.
14 changes: 0 additions & 14 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
# For marketing sites
SENDINBLUE_API_KEY="<SENDINBLUE_API_KEY>"

PRIVACY_POLICY_PAGE_ID="<YOUR_PRIVACY_POLICY_PAGE_ID>"
TERMS_AND_CONDITIONS_PAGE_ID="<TERMS_AND_CONDITIONS_PAGE_ID>"

NOTION_TOKEN_V2="<NOTION_TOKEN_V2>"
NOTION_ACTIVE_USER="<NOTION_ACTIVE_USER>"

NOTION_BLOG_INTEGRATION_POSTS_DATABASE_ID="<NOTION_BLOG_INTEGRATION_POSTS_DATABASE_ID>"
NOTION_BLOG_INTEGRATION_TOKEN="<NOTION_BLOG_INTEGRATION_TOKEN>"
NOTION_BLOG_INTEGRATION_VIDEOS_DATABASE_ID="<NOTION_BLOG_INTEGRATION_VIDEOS_DATABASE_ID>"
NOTION_API_KEY="<NOTION_API_KEY>"

# Faucet DApp
NEXT_PUBLIC_AMOUNT="20"
NEXT_PUBLIC_NATIVE_AMOUNT="0.5"
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/deploy-stats-dapp-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
name: deploy-stats-dapp 🌐

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches: [develop, feature/**]
paths:
- 'apps/stats-dapp/**'
# Temporary disable as the backend has been changed and it breaks the build
# pull_request:
# types: [opened, synchronize, reopened, ready_for_review]
# branches: [develop, feature/**]
# paths:
# - 'apps/stats-dapp/**'

workflow_dispatch:

Expand Down
42 changes: 6 additions & 36 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,41 +41,25 @@ jobs:
with:
paths: apps/bridge-dapp

- uses: marceloprado/has-changed-path@v1
id: changed-stats
with:
paths: apps/stats-dapp
# Temporary disable as the backend has been changed and it breaks the build
# - uses: marceloprado/has-changed-path@v1
# id: changed-stats
# with:
# paths: apps/stats-dapp

- uses: marceloprado/has-changed-path@v1
id: changed-faucet
with:
paths: apps/faucet

# - uses: marceloprado/has-changed-path@v1
# id: changed-webbsite
# with:
# paths: apps/webbsite

# - uses: marceloprado/has-changed-path@v1
# id: changed-tangle
# with:
# paths: apps/tangle-website

- uses: marceloprado/has-changed-path@v1
id: changed-hubble-stats
with:
paths: apps/hubble-stats

- name: create env file for webbsite, tangle-site and faucet
- name: create env file for faucet
run: |
touch .env
echo PRIVACY_POLICY_PAGE_ID=${{ secrets.PRIVACY_POLICY_PAGE_ID }} >> .env
echo TERMS_AND_CONDITIONS_PAGE_ID=${{ secrets.TERMS_AND_CONDITIONS_PAGE_ID }} >> .env
echo NOTION_TOKEN_V2=${{ secrets.NOTION_TOKEN_V2 }} >> .env
echo NOTION_ACTIVE_USER=${{ secrets.NOTION_ACTIVE_USER }} >> .env
echo NOTION_BLOG_INTEGRATION_POSTS_DATABASE_ID=${{ secrets.NOTION_BLOG_INTEGRATION_POSTS_DATABASE_ID }} >> .env
echo NOTION_BLOG_INTEGRATION_TOKEN=${{ secrets.NOTION_BLOG_INTEGRATION_TOKEN }} >> .env
echo NOTION_BLOG_INTEGRATION_VIDEOS_DATABASE_ID=${{ secrets.NOTION_BLOG_INTEGRATION_VIDEOS_DATABASE_ID }} >> .env
echo NEXT_PUBLIC_FAUCET_BACKEND_URL=${{ secrets.NEXT_PUBLIC_FAUCET_BACKEND_URL }} >> .env
echo NEXT_PUBLIC_TWITTER_CLIENT_ID=${{ secrets.NEXT_PUBLIC_TWITTER_CLIENT_ID }} >> .env
echo TWITTER_CLIENT_SECRET=${{ secrets.TWITTER_CLIENT_SECRET }} >> .env
Expand Down Expand Up @@ -120,20 +104,6 @@ jobs:
package-path: apps/faucet
repo-token: ${{ secrets.REPO_TOKEN }}

# - name: Release webbsite
# if: steps.changed-webbsite.outputs.changed == 'true'
# uses: ./.github/actions/create-release
# with:
# package-path: apps/webbsite
# repo-token: ${{ secrets.REPO_TOKEN }}

# - name: Release tangle
# if: steps.changed-tangle.outputs.changed == 'true'
# uses: ./.github/actions/create-release
# with:
# package-path: apps/tangle-website
# repo-token: ${{ secrets.REPO_TOKEN }}

- name: Release hubble stats
if: steps.changed-hubble-stats.outputs.changed == 'true'
uses: ./.github/actions/create-release
Expand Down
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
/build
/apps/bridge-dapp/build/**/*
/apps/stats-dapp/build/**/*
/apps/webbsite/build/**/*
/node_modules
/.vscode
/**/.next
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ Great! Now your **Node** environment is ready!
- [faucet](./apps/faucet/README.md): an interface for requesting cryptocurrencies (assets) on the Webb Protocol System.
- [hubble-stats](./apps/hubble-stats/README.md): an interface for displaying statistical data of the Cross-chain Bridging System.
- [stats-dapp](./apps/stats-dapp/README.md): an interface for displaying statistical data of Webb's Tangle Network (DKG system).
- [tangle-website](./apps/tangle-website/README.md): an interface for the Tangle ecosystem and development.
- [webbsite](./apps/webbsite/README.md): an interface for the Webb ecosystem and development.

<div align="right"><a href="#table-of-contents">↑ Back to top ↑</a></div>

Expand Down
2 changes: 1 addition & 1 deletion apps/faucet/src/styles/globals.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Font Family Satoshi Variable */

/** TODO: Consider moving this to tailwind-preset if these classes share with the tangle-website */
/** TODO: Consider moving this to tailwind-preset if these classes is shared with other apps */

.input-height {
@apply h-[74px];
Expand Down
47 changes: 0 additions & 47 deletions apps/stats-dapp/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,53 +5,6 @@
"sourceRoot": "apps/stats-dapp/src",
"tags": [],
"targets": {
"build": {
"executor": "@nx/webpack:webpack",
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "development",
"dependsOn": ["gql-codegen", "^build"],
"options": {
"outputPath": "dist/apps/stats-dapp",
"compiler": "babel",
"main": "apps/stats-dapp/src/index.tsx",
"tsConfig": "apps/stats-dapp/tsconfig.app.json",
"assets": [
"apps/stats-dapp/src/public/favicon.png",
"apps/stats-dapp/src/public/logo.png"
],
"index": "apps/stats-dapp/src/public/index.html",
"generateIndexHtml": false,
"baseHref": "/",
"scripts": [],
"postcssConfig": "apps/stats-dapp/postcss.config.js",
"webpackConfig": "apps/stats-dapp/webpack.config.js"
},
"configurations": {
"production": {
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"fileReplacements": [
{
"replace": "apps/stats-dapp/src/environments/environment.ts",
"with": "apps/stats-dapp/src/environments/environment.prod.ts"
}
]
},
"development": {
"optimization": false,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"nodeEnv": "development"
}
}
},
"serve": {
"executor": "@nx/webpack:dev-server",
"dependsOn": ["gql-codegen"],
Expand Down
34 changes: 0 additions & 34 deletions apps/tangle-website/.eslintrc.json

This file was deleted.

87 changes: 0 additions & 87 deletions apps/tangle-website/CHANGELOG.md

This file was deleted.

55 changes: 0 additions & 55 deletions apps/tangle-website/README.md

This file was deleted.

6 changes: 0 additions & 6 deletions apps/tangle-website/index.d.ts

This file was deleted.

11 changes: 0 additions & 11 deletions apps/tangle-website/jest.config.ts

This file was deleted.

6 changes: 0 additions & 6 deletions apps/tangle-website/netlify.toml

This file was deleted.

5 changes: 0 additions & 5 deletions apps/tangle-website/next-env.d.ts

This file was deleted.

Loading

0 comments on commit ec5a636

Please sign in to comment.