Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
catalinred committed Jul 11, 2024
0 parents commit 67443a1
Show file tree
Hide file tree
Showing 1,423 changed files with 124,326 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .editorconfig
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
40 changes: 40 additions & 0 deletions .env.example
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=
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
public
packages
api/auth*
coverage
24 changes: 24 additions & 0 deletions .eslintrc.json
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"
}
}
}
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE.md
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
56 changes: 56 additions & 0 deletions .github/workflows/action.yml
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
13 changes: 13 additions & 0 deletions .github/workflows/ecopurgecron.yaml
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 }}'
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
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 }}
42 changes: 42 additions & 0 deletions .gitignore
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
5 changes: 5 additions & 0 deletions .husky/pre-commit
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
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
public
packages
.vercel
.next
coverage
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"tabWidth": 2,
"useTabs": false,
"trailingComma": "all"
}
3 changes: 3 additions & 0 deletions .pscale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
org: solana
database: solana-ecosystem
branch: logline-to-text
Loading

0 comments on commit 67443a1

Please sign in to comment.