Skip to content

Commit

Permalink
EthColombia site with status round data
Browse files Browse the repository at this point in the history
  • Loading branch information
yuetloo committed Jan 29, 2023
1 parent 24be6d6 commit 6110ddf
Show file tree
Hide file tree
Showing 186 changed files with 14,044 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Ethereum Mainnet provider (used for ENS lookups)
VITE_ETHEREUM_MAINNET_API_URL=

# IPFS gateway for loading project logos
VITE_IPFS_GATEWAY_URL=https://ipfs.io
25 changes: 25 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')

module.exports = {
root: true,
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier',
],
parserOptions: {
ecmaVersion: 'latest',
},
rules: {
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/no-undef': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-use-before-define': ['error', { functions: false }],
'vue/script-setup-uses-vars': 'error',
},
}
50 changes: 50 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build and deploy

on:
push:
branches: [main]

env:
NODE_VERSION: 16.x

jobs:

build:
runs-on: ubuntu-latest
env:
CI: true
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install, build
run: |
yarn install --frozen-lockfile
yarn build
- name: Cache build
uses: actions/cache@v2
with:
path: ./*
key: ${{ github.sha }}

deploy-website:
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- name: Restore build cache
uses: actions/cache@v2
with:
path: ./*
key: ${{ github.sha }}
- name: Push to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
coverage
*.local

/cypress/videos/
/cypress/screenshots/

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
.env
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": false,
"singleQuote": true,
"trailingComma": "es5"
}
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
}
37 changes: 35 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,35 @@
# ethcolombia
QF @ Devcon for the LatAm Community!
# EthColombia

This is a static site for the EthColombia CLRfund round. The round data is stored in the `src/rounds` folder. The data were extracted using the `fetch-round` hardhat task in the contract folder of the `monorepo` repository.

This can be used as a template for any rounds that are finalized. The site does not have connection to smart contracts (other than resolving ENS names) or the subgrapth.

The `deploy` github action will deploy the site to the github pages on push to the `main` branch.

# Development

### Install Node with nvm

```sh
nvm install 16
nvm use 16
```

### Install the dependencies

```sh
yarn
```

### Setup env

```sh
cp .env.example .env # adjust if necessary
```

## Start the web app in development mode (hot-code reloading, error reporting, etc.)

```sh
yarn dev
```

1 change: 1 addition & 0 deletions env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
16 changes: 16 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="description" content="Permissionless quadratic funding for public goods">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>clr.fund</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
52 changes: 52 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"name": "ethcolombia",
"homepage": "https://clrfund.github.io/ethcolombia",
"version": "1.0.0",
"private": true,
"license": "GPL-3.0",
"scripts": {
"dev": "vite",
"build": "run-p type-check build-only",
"preview": "vite preview",
"build-only": "vite build",
"type-check": "vue-tsc --noEmit",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"check-i18n": "vue-i18n-extract report --vueFiles 'src/**/*.?(vue)' --languageFiles 'src/locales/*.?(json)' --exclude dynamic"
},
"dependencies": {
"@openfonts/inter_all": "^1.0.2",
"ethers": "^5.7.2",
"floating-vue": "^2.0.0-beta.20",
"luxon": "^3.2.1",
"markdown-it": "^13.0.1",
"markdown-it-link-attributes": "^4.0.1",
"pinia": "^2.0.28",
"vue": "^3.2.45",
"vue-i18n": "^9.2.2",
"vue-meta": "3.0.0-alpha.7",
"vue-router": "^4.1.6"
},
"devDependencies": {
"@rollup/plugin-inject": "^5.0.3",
"@rushstack/eslint-patch": "^1.1.4",
"@types/luxon": "^3.2.0",
"@types/markdown-it": "^12.2.3",
"@types/markdown-it-link-attributes": "^3.0.1",
"@types/node": "^18.11.12",
"@vitejs/plugin-vue": "^4.0.0",
"@vue/eslint-config-prettier": "^7.0.0",
"@vue/eslint-config-typescript": "^11.0.0",
"@vue/tsconfig": "^0.1.3",
"eslint": "^8.22.0",
"eslint-plugin-vue": "^9.3.0",
"node-stdlib-browser": "^1.2.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.7.1",
"sass": "^1.57.1",
"sass-loader": "^13.2.0",
"typescript": "~4.7.4",
"vite": "^4.0.0",
"vue-i18n-extract": "^2.0.7",
"vue-tsc": "^1.0.12"
}
}
Binary file added public/favicon.ico
Binary file not shown.
2 changes: 2 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow:
Loading

0 comments on commit 6110ddf

Please sign in to comment.