Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"plugins": ["typescript-sort-keys", "unused-imports"],
"rules": {
"react/prop-types": "off",
"prefer-rest-params": "off",
"prefer-rest-params": "off",
"typescript-sort-keys/string-enum": [
"error",
"asc",
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/check-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ env:
on:
push:

permissions: {}

jobs:
check-uniswap-benchmarks:
name: Check uniswap Benchmarks
Expand All @@ -14,10 +16,12 @@ jobs:
working-directory: ./
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false

- uses: actions/setup-node@v3
with:
node-version: 18.20.4
node-version: 20
cache: 'yarn'
cache-dependency-path: yarn.lock

Expand Down Expand Up @@ -69,6 +73,8 @@ jobs:
poll-interval: 15

- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Audit preview URL with Lighthouse (mobile)
id: lighthouse_audit_mobile
uses: treosh/lighthouse-ci-action@v9
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Lint

on: push

permissions: {}

jobs:
lint:
name: Run linters
Expand All @@ -10,11 +12,13 @@ jobs:
steps:
- name: Check out Git repository
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 18.20.4
node-version: 20

- name: Install dependencies
run: yarn --frozen-lockfile
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/search.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ on:
schedule:
- cron: '0 10 * * *'

permissions: {}

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Run Scraper
Expand Down
13 changes: 9 additions & 4 deletions api/feedback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export default async function handler(req: any, res: any) {
return res.status(405).json({ success: false, error: 'Method not allowed' })
}


try {
const body = typeof req.body === 'string' ? JSON.parse(req.body) : req.body || {}

Expand All @@ -40,7 +39,6 @@ export default async function handler(req: any, res: any) {
const pageUrl = sanitizeText(body.pageUrl, MAX_PAGE_URL_LENGTH)
const followUp = body.followUp


if (!email || !isValidEmail(email)) {
return res.status(400).json({ success: false, error: 'Invalid email' })
}
Expand All @@ -62,7 +60,14 @@ export default async function handler(req: any, res: any) {
{ name: 'type_of_feedback', value: feedbackType },
{ name: 'whats_the_issue_idea_or_question', value: issue },
{ name: 'can_we_follow_up_with_you_about_your_feedback', value: followUp ? 'Yes' : 'No' },
...(challenges ? [{ name: 'what_has_been_the_most_challenging_part_of_building_on_or_integrating_with_uniswap', value: challenges }] : []),
...(challenges
? [
{
name: 'what_has_been_the_most_challenging_part_of_building_on_or_integrating_with_uniswap',
value: challenges,
},
]
: []),
...(docsUsefulness ? [{ name: 'have_you_found_uniswap_docs_to_be_useful', value: docsUsefulness }] : []),
]

Expand Down Expand Up @@ -95,4 +100,4 @@ export default async function handler(req: any, res: any) {
} catch {
return res.status(500).json({ success: false, error: 'Internal server error' })
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"label": "Technical Reference",
"position": 9,
"collapsed": true
}
}
8 changes: 4 additions & 4 deletions docs/contracts/smart-wallet/advanced-usage/_category_.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"label": "Advanced Usage",
"position": 4,
"collapsed": true
}
"label": "Advanced Usage",
"position": 4,
"collapsed": true
}
8 changes: 4 additions & 4 deletions docs/contracts/smart-wallet/concepts/_category_.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"label": "Concepts",
"position": 3,
"collapsed": true
}
"label": "Concepts",
"position": 3,
"collapsed": true
}
9 changes: 4 additions & 5 deletions docs/contracts/uniswapx/fillers/arbitrum/_category_.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"label": "Arbitrum",
"position": 3,
"collapsed": true
}

"label": "Arbitrum",
"position": 3,
"collapsed": true
}
9 changes: 4 additions & 5 deletions docs/contracts/uniswapx/fillers/mainnet/_category_.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"label": "Mainnet",
"position": 2,
"collapsed": true
}

"label": "Mainnet",
"position": 2,
"collapsed": true
}
9 changes: 4 additions & 5 deletions docs/contracts/uniswapx/fillers/priority/_category_.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"label": "Unichain, Base",
"position": 4,
"collapsed": true
}

"label": "Unichain, Base",
"position": 4,
"collapsed": true
}
9 changes: 4 additions & 5 deletions docs/contracts/v3/reference/deployments/_category_.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"label": "Deployments",
"position": 5,
"collapsed": true
}

"label": "Deployments",
"position": 5,
"collapsed": true
}
Loading
Loading