-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
624 changed files
with
35,780 additions
and
6,578 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
### AUTOGENERATED FILE | ||
### Run `yarn codeowners` to update | ||
./apps/web/ @base-org/based-apps-fe-reviewers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
name: File Size Checker | ||
|
||
# Add required permissions | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
statuses: write | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
|
||
jobs: | ||
check-file-sizes: | ||
name: File Size Check | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# - name: Setup environment | ||
# run: | | ||
# apt-get update | ||
# apt-get install -y git bc | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Check file sizes | ||
id: check-sizes | ||
run: | | ||
# Initialize variables for tracking findings | ||
large_files="" | ||
huge_files="" | ||
# Get all files in the PR | ||
echo "Files changed in PR:" | ||
git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} | ||
for file in $(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}); do | ||
if [ -f "$file" ]; then | ||
size=$(stat -c%s "$file") | ||
size_mb=$(echo "scale=2; $size/1048576" | bc) | ||
echo "Checking $file: ${size_mb}MB" | ||
# Check for files over 40MB | ||
if (( $(echo "$size_mb > 40" | bc -l) )); then | ||
huge_files="${huge_files}* ${file} (${size_mb}MB)\n" | ||
# Check for files over 10MB | ||
elif (( $(echo "$size_mb > 10" | bc -l) )); then | ||
large_files="${large_files}* ${file} (${size_mb}MB)\n" | ||
fi | ||
fi | ||
done | ||
# Print findings for debugging | ||
echo "Large files found:" | ||
echo -e "$large_files" | ||
echo "Huge files found:" | ||
echo -e "$huge_files" | ||
# Set outputs for use in next steps | ||
echo "large_files<<EOF" >> $GITHUB_OUTPUT | ||
echo -e "$large_files" >> $GITHUB_OUTPUT | ||
echo "EOF" >> $GITHUB_OUTPUT | ||
echo "huge_files<<EOF" >> $GITHUB_OUTPUT | ||
echo -e "$huge_files" >> $GITHUB_OUTPUT | ||
echo "EOF" >> $GITHUB_OUTPUT | ||
# Fail if huge files are found | ||
if [ ! -z "$huge_files" ]; then | ||
echo "❌ Files over 40MB found!" | ||
exit 1 | ||
fi | ||
- name: Update Status and Comment | ||
if: always() | ||
uses: actions/github-script@v7 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
const hugeFiles = `${{ steps.check-sizes.outputs.huge_files }}`; | ||
const largeFiles = `${{ steps.check-sizes.outputs.large_files }}`; | ||
try { | ||
// Only create status check if we have permission (not a fork PR) | ||
if (context.payload.pull_request.head.repo.full_name === context.payload.repository.full_name) { | ||
await github.rest.repos.createCommitStatus({ | ||
owner: context.payload.repository.owner.login, | ||
repo: context.payload.repository.name, | ||
sha: context.payload.pull_request.head.sha, | ||
state: hugeFiles ? 'failure' : 'success', | ||
context: 'File Size Check', | ||
description: hugeFiles ? 'Files over 40MB found' : 'All files within size limits', | ||
target_url: `https://github.com/${context.payload.repository.owner.login}/${context.payload.repository.name}/actions/runs/${context.runId}` | ||
}); | ||
} | ||
// Comments should work for both fork and non-fork PRs | ||
if (hugeFiles || largeFiles) { | ||
let comment = '## ⚠️ File Size Check Results\n\n'; | ||
if (hugeFiles) { | ||
comment += '### 🚫 Files over 40MB (Not Allowed):\n' + hugeFiles + '\n'; | ||
comment += '**These files must be removed from git history before the PR can be merged.**\n\n'; | ||
} | ||
if (largeFiles) { | ||
comment += '### ⚠️ Large Files (Over 10MB):\n' + largeFiles + '\n'; | ||
comment += 'Consider reducing the size of these files if possible.\n'; | ||
} | ||
await github.rest.issues.createComment({ | ||
issue_number: context.payload.pull_request.number, | ||
owner: context.payload.repository.owner.login, | ||
repo: context.payload.repository.name, | ||
body: comment | ||
}); | ||
} | ||
} catch (error) { | ||
console.error('Error:', error); | ||
console.error('Context:', JSON.stringify(context.payload, null, 2)); | ||
// Only ignore status check permission errors for fork PRs | ||
if (error.status === 403 && context.payload.pull_request.head.repo.full_name !== context.payload.repository.full_name) { | ||
console.log('Ignoring status check permission error for fork PR'); | ||
} else { | ||
core.setFailed(error.message); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Unit Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
Jest: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Run Tests | ||
run: | | ||
yarn install | ||
yarn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+619 KB
apps/base-docs/assets/images/basenames-tutorial/basename-profile-home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+535 KB
apps/base-docs/assets/images/basenames-tutorial/basenames-frame-final.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+698 KB
apps/base-docs/assets/images/basenames-tutorial/basenames-homepage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+641 KB
apps/base-docs/assets/images/basenames-tutorial/confirm-textrecord-update.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+325 KB
apps/base-docs/assets/images/basenames-tutorial/edit-basename-profile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+231 KB
apps/base-docs/assets/images/basenames-tutorial/profile-component-dropdown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+111 KB
apps/base-docs/assets/images/onchainkit-tutorials/fund-funding-options.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+45.3 KB
apps/base-docs/assets/images/onchainkit-tutorials/fund-onramp-config.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+190 KB
apps/base-docs/assets/images/onchainkit-tutorials/fund-wallet-balance.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+229 KB
apps/base-docs/assets/images/onchainkit-tutorials/pay-commerce-products.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+479 KB
apps/base-docs/assets/images/onchainkit-tutorials/pay-copy-product-link.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+424 KB
apps/base-docs/assets/images/onchainkit-tutorials/pay-create-product-details.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+197 KB
apps/base-docs/assets/images/onchainkit-tutorials/pay-final-product.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+179 KB
apps/base-docs/assets/images/openframes-fc/debugger-of-not-valid-zoom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+78.1 KB
apps/base-docs/assets/images/openframes-fc/debugger-protocol-selector.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+590 KB
apps/base-docs/assets/images/resend-email-campaigns/ock-use-template.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+165 KB
apps/base-docs/assets/images/resend-email-campaigns/resend-api-keys.png
Oops, something went wrong.
Binary file added
BIN
+770 KB
apps/base-docs/assets/images/resend-email-campaigns/resend-contact-added.png
Oops, something went wrong.
Binary file added
BIN
+797 KB
apps/base-docs/assets/images/resend-email-campaigns/resend-mailing-list-prompt.png
Oops, something went wrong.
Binary file added
BIN
+177 KB
apps/base-docs/assets/images/resend-email-campaigns/resend-user-subscribed.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+415 KB
apps/base-docs/assets/images/resend-email-campaigns/vercel-import-project.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+160 KB
apps/base-docs/assets/images/resend-email-campaigns/wc-project-page.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+111 KB
apps/base-docs/assets/images/smart-wallet/onchainkit-default-smart.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+136 KB
apps/base-docs/assets/images/verify-with-basescan-api/basescan-apikey-page-add.png
Oops, something went wrong.
Binary file added
BIN
+135 KB
apps/base-docs/assets/images/verify-with-basescan-api/basescan-apikey-page.png
Oops, something went wrong.
Binary file added
BIN
+81.3 KB
apps/base-docs/assets/images/verify-with-basescan-api/basescan-menu.png
Oops, something went wrong.
Binary file added
BIN
+79.6 KB
apps/base-docs/assets/images/verify-with-basescan-api/cbw-show-private-key.png
Oops, something went wrong.
Binary file added
BIN
+442 KB
apps/base-docs/assets/images/verify-with-basescan-api/cdp-node-full.png
Oops, something went wrong.
Binary file added
BIN
+71.6 KB
apps/base-docs/assets/images/verify-with-basescan-api/cdp-rpc-url.png
Oops, something went wrong.
Binary file added
BIN
+109 KB
...e-docs/base-learn/assets/images/deployment-to-testnet/add-injected-provider.png
Oops, something went wrong.
Binary file modified
BIN
-5.9 KB
(97%)
...ase-learn/assets/images/ethereum-virtual-machine/evm-architecture-execution.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.