-
Notifications
You must be signed in to change notification settings - Fork 30
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
0 parents
commit 67443a1
Showing
1,423 changed files
with
124,326 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# EditorConfig | ||
|
||
# This is the top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[Makefile] | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
# All shell scripts are Bash scripts. | ||
[*.sh] | ||
shell_variant = bash | ||
switch_case_indent = true |
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,40 @@ | ||
# Twitter Token & App Name for follower counts | ||
TWITTER_APP_BEARER_TOKEN= | ||
TWITTER_APP_NAME= | ||
# Twitter Consumer Keys for ecosystem SSO | ||
TWITTER_CONSUMER_KEY= | ||
TWITTER_CONSUMER_SECRET= | ||
# YouTube keys for getting videos & info from channel | ||
YOUTUBE_CHANNEL_ID= | ||
YOUTUBE_API_KEY= | ||
# Database URLs for prisma (ecosystem SSO & Projects) | ||
DATABASE_URL= | ||
SHADOW_DATABASE_URL= | ||
# NextAuth variables (Session handling) | ||
NEXTAUTH_URL= | ||
NEXTAUTH_SECRET= | ||
NEXTAUTH_EMAIL_SERVER= | ||
NEXTAUTH_EMAIL_FROM= | ||
# hCaptcha variables (frontend captcha & server side verification) | ||
HCAPTCHA_KEY= | ||
HCAPTCHA_SECRET= | ||
# Cronjob secrets | ||
ECOPURGE_CRON= | ||
# Simplecast | ||
SIMPLECAST_PODCAST_ID= | ||
SIMPLECAST_API_KEY= | ||
# Sentry | ||
SENTRY_ORG= | ||
SENTRY_PROJECT= | ||
SENTRY_AUTH_TOKEN= | ||
SENTRY_DSN= | ||
# Developer Content API | ||
DEVELOPER_CONTENT_GH_ORG= | ||
DEVELOPER_CONTENT_GH_REPO= | ||
DEVELOPER_CONTENT_API_KEY= | ||
NEXT_PUBLIC_DEVELOPER_CONTENT_API_URL= | ||
# LUMA | ||
LUMA_PRIVATE_API_KEY= | ||
# Builder | ||
NEXT_PUBLIC_BUILDER_API_KEY= | ||
NEXT_PUBLIC_BUILDER_NEWS_SETTINGS_ID= |
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,4 @@ | ||
public | ||
packages | ||
api/auth* | ||
coverage |
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,24 @@ | ||
{ | ||
"extends": "next/core-web-vitals", | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"es6": true | ||
}, | ||
"rules": { | ||
"@next/next/no-img-element": 0, | ||
"@next/next/no-sync-scripts": 0, | ||
"jsx-a11y/alt-text": 0, | ||
"strict": 0, | ||
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }], | ||
"react/display-name": 0, | ||
"react-hooks/exhaustive-deps": 1, | ||
"react/prop-types": 0, | ||
"react/react-in-jsx-scope": 0 | ||
}, | ||
"settings": { | ||
"react": { | ||
"version": "detect" | ||
} | ||
} | ||
} |
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,12 @@ | ||
--- | ||
name: "🐛 Bug Report" | ||
about: Report a reproducible bug or regression. | ||
title: "Bug: " | ||
labels: "Status: Unconfirmed" | ||
--- | ||
|
||
## Steps To Reproduce | ||
|
||
## The current behavior | ||
|
||
## The expected behavior |
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,56 @@ | ||
name: node_js | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
jobs: | ||
Format: | ||
name: Test formatting... | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Use Node.js node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "18" | ||
- name: before_install | ||
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | ||
- name: installing_yarn | ||
run: yarn install | ||
- name: formatting | ||
run: yarn format | ||
stage: | ||
name: Test linting... | ||
needs: Format | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Use Node.js node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "18" | ||
- name: before_install | ||
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | ||
- name: installing_yarn & lint | ||
run: | | ||
yarn install | ||
yarn run lint | ||
test: | ||
name: Unit testing... | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Use Node.js node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "18" | ||
- name: before_install | ||
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | ||
- name: installing_yarn | ||
run: yarn install | ||
- name: testing | ||
run: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Daily cronjob purging upvotes from UpvoteFilter older than a month | ||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
jobs: | ||
cron: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Daily cronjob purging upvotes from UpvoteFilter older than a month | ||
run: | | ||
curl --request POST \ | ||
--url 'https://solana.com/api/vote/ecofilterpurge' \ | ||
--header 'Authorization: Bearer ${{ secrets.ECOPURGE_CRON }}' |
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,31 @@ | ||
name: Cypress End-to-end tests | ||
on: [deployment_status] | ||
jobs: | ||
cypress-run: | ||
# run this job on successful deploy only | ||
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: GitHub context | ||
env: | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
run: | | ||
echo "$GITHUB_CONTEXT" | ||
- name: Node version | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "18" | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Cypress install | ||
uses: cypress-io/github-action@v6 | ||
with: | ||
# just perform install | ||
runTests: false | ||
|
||
- name: Cypress run | ||
uses: cypress-io/github-action@v4 | ||
with: | ||
wait-on: ${{ github.event.deployment_status.target_url }} | ||
env: | ||
CYPRESS_BASE_URL: ${{ github.event.deployment_status.target_url }} |
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,42 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# Dependency directories | ||
node_modules/ | ||
|
||
# TypeScript cache | ||
*.tsbuildinfo | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# dotenv environment variables file | ||
.env | ||
!.env.example | ||
|
||
# Next.js build output | ||
.next | ||
|
||
# Mac | ||
.DS_Store | ||
|
||
# Vercel configurations | ||
.vercel | ||
|
||
# Template outputs | ||
templates/*.html | ||
|
||
# Sitemap (generated on postbuild) | ||
public/sitemap* | ||
|
||
coverage |
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,5 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
yarn format | ||
yarn lint |
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,5 @@ | ||
public | ||
packages | ||
.vercel | ||
.next | ||
coverage |
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,5 @@ | ||
{ | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"trailingComma": "all" | ||
} |
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,3 @@ | ||
org: solana | ||
database: solana-ecosystem | ||
branch: logline-to-text |
Oops, something went wrong.