Skip to content

Commit

Permalink
Merge pull request #52 from itering/v2
Browse files Browse the repository at this point in the history
V2 website
  • Loading branch information
snoopy1412 authored Oct 11, 2024
2 parents 3d00291 + ba74309 commit 0004c46
Show file tree
Hide file tree
Showing 260 changed files with 6,746 additions and 18,043 deletions.
8 changes: 0 additions & 8 deletions .dockerignore

This file was deleted.

1 change: 0 additions & 1 deletion .env

This file was deleted.

3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["next/core-web-vitals", "next/typescript"]
}
13 changes: 3 additions & 10 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,16 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: actions/checkout@v2
with:
repository: itering/actions
path: .github/actions
persist-credentials: false
ssh-key: "${{ secrets.ITERING_ACTIONS_DEPLOY_KEY }}"

- uses: ./.github/actions/smart-vercel
- uses: darwinia-network/devops/actions/smart-vercel@main
name: Deploy to Vercel
id: smart-vercel
with:
vercel_token: ${{ secrets.VERCEL_TOKEN }}
vercel_group: itering
preview_output: true
project_name: home-io
dist_path: out
enable_cache: true
enable_notify_comment: true
enable_notify_slack: true
slack_channel: public-darwinia-devs
slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }}
slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }}
12 changes: 2 additions & 10 deletions .github/workflows/deploy-prd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,16 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: actions/checkout@v2
with:
repository: itering/actions
path: .github/actions
persist-credentials: false
ssh-key: "${{ secrets.ITERING_ACTIONS_DEPLOY_KEY }}"

- uses: ./.github/actions/smart-vercel
- uses: darwinia-network/devops/actions/smart-vercel@main
name: Deploy to Vercel
id: smart-vercel
with:
vercel_token: ${{ secrets.VERCEL_TOKEN }}
vercel_group: itering
preview_output: true
project_name: home-io
dist_path: out
prod_mode: true
enable_cache: true
enable_notify_slack: true
slack_channel: public-darwinia-devs
slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }}

12 changes: 2 additions & 10 deletions .github/workflows/deploy-stg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,15 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: actions/checkout@v2
with:
repository: itering/actions
path: .github/actions
persist-credentials: false
ssh-key: "${{ secrets.ITERING_ACTIONS_DEPLOY_KEY }}"

- uses: ./.github/actions/smart-vercel
- uses: darwinia-network/devops/actions/smart-vercel@main
name: Deploy to Vercel
id: smart-vercel
with:
vercel_token: ${{ secrets.VERCEL_TOKEN }}
vercel_group: itering
preview_output: true
project_name: home-io
dist_path: out
enable_cache: true
enable_notify_slack: true
slack_channel: public-darwinia-devs
slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }}

23 changes: 17 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,34 @@
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

.idea
.vscode
# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
out
12 changes: 12 additions & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
arrowParens: 'always',
semi: true,
singleQuote: true,
jsxSingleQuote: false,
bracketSpacing: true,
printWidth: 100,
useTabs: false,
tabWidth: 2,
trailingComma: 'none',
plugins: ['prettier-plugin-tailwindcss']
};
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
# itering-io-site

13 changes: 0 additions & 13 deletions babel.config.js

This file was deleted.

20 changes: 0 additions & 20 deletions config-overrides.js

This file was deleted.

18 changes: 18 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
images: {
unoptimized: true
},
webpack: (config, { isServer }) => {
if (isServer) {
config.externals = config.externals.filter(
(external) => typeof external !== 'function' || external.toString().indexOf('sharp') === -1
);
}
config.resolve.fallback = { fs: false, net: false, tls: false };
return config;
}
};

export default nextConfig;
69 changes: 23 additions & 46 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,53 +2,30 @@
"name": "itering.io",
"version": "0.1.0",
"private": true,
"dependencies": {
"@babel/core": "^7.6.0",
"@babel/node": "^7.6.1",
"@babel/preset-env": "^7.1.0",
"antd": "^4.5.2",
"body-scroll-lock": "^2.6.1",
"bootstrap": "^4.5.0",
"classnames": "^2.3.1",
"gh-pages": "^2.1.1",
"glob": "^7.1.3",
"history": "^4.9.0",
"i18next": "^15.0.9",
"i18next-browser-languagedetector": "^3.0.1",
"lottie-web": "^5.7.3",
"mkdirp": "^0.5.1",
"node-fetch": "^2.2.0",
"react": "^16.8.6",
"react-bootstrap": "^1.3.0",
"react-dom": "^16.8.6",
"react-i18next": "^10.8.1",
"react-router-dom": "^5.0.0",
"react-scripts": "^5.0.1",
"rimraf": "^2.6.2",
"sass": "^1.62.0",
"three": "^0.125.0"
},
"devDependencies": {
"prerender-spa-plugin": "^3.4.0",
"react-app-rewired": "^2.2.1"
},
"scripts": {
"start": "react-app-rewired start",
"build": "yarn && react-app-rewired build",
"test": "react-app-rewired test",
"eject": "react-scripts eject",
"render": "babel-node tools/run render",
"serve": "serve -s build",
"deploy": "babel-node tools/run deploy"
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"eslintConfig": {
"extends": "react-app"
"dependencies": {
"clsx": "^2.1.1",
"framer-motion": "^11.11.7",
"next": "14.2.15",
"react": "^18",
"react-dom": "^18",
"tailwind-merge": "^2.5.3"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
],
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
"devDependencies": {
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.2.15",
"postcss": "^8",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.8",
"tailwindcss": "^3.4.1",
"typescript": "^5"
}
}
Loading

0 comments on commit 0004c46

Please sign in to comment.