Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate input before constructing HTML #3481

Closed
wants to merge 29 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
918aaad
feature: adapt index to cloudflare workers
harryzcy Oct 29, 2023
ad17713
feature: add all other routes to cloudflare workers
harryzcy Oct 29, 2023
af4bb89
feature: add cloudflare wrangler folder to gitignore
harryzcy Oct 29, 2023
7371adb
feature: copy over env
harryzcy Oct 29, 2023
814c7c0
fix: module package not available in cloudflare workers
harryzcy Oct 29, 2023
28fd9eb
fix: axios doesn't support cloudflare workers
harryzcy Oct 29, 2023
ef1bb69
feature: updatre wrangler config
harryzcy Oct 29, 2023
83bd645
fix: typing
harryzcy Oct 29, 2023
b1c756f
chore: rename entrypoint to index
harryzcy Oct 29, 2023
755c1e7
docs: add cloudflare docs
harryzcy Oct 29, 2023
da939a7
chore: add comment
harryzcy Oct 29, 2023
ef5af95
Merge branch 'master' into cloudflare
harryzcy Oct 30, 2023
987b5dd
chore: set dependabot frequency to daily (#1)
harryzcy Oct 30, 2023
12ba10e
chore: remove pre-commit hook (#2)
harryzcy Oct 30, 2023
19137fb
Update workflows for this fork (#3)
harryzcy Oct 30, 2023
1785159
Remove deployment prep workflow (#7)
harryzcy Oct 30, 2023
4eb18d1
Fix overly permissive regular expression range (#9)
harryzcy Oct 30, 2023
06a9303
Merge remote-tracking branch 'upstream/master' into cloudflare
harryzcy Nov 2, 2023
60360a2
Add wrangler to dev dependencies (#11)
harryzcy Nov 2, 2023
aa51d68
Merge from upstream/master (#14)
harryzcy Nov 13, 2023
d9ab8d3
Build(deps): Bump axios from 1.6.0 to 1.6.1 (#13)
dependabot[bot] Nov 13, 2023
c23b5a8
Add deploy script for cloudflare (#15)
harryzcy Nov 13, 2023
f51447a
infra: enable no-caller eslint rule (#3473)
qwerty541 Nov 13, 2023
5bdfe8a
infra: enable no-alert eslint rule (#3472)
qwerty541 Nov 13, 2023
2d711c3
build(deps-dev): Bump lint-staged from 15.0.2 to 15.1.0 (#3477)
dependabot[bot] Nov 13, 2023
d59e71a
build(deps-dev): Bump prettier from 3.0.3 to 3.1.0 (#3476)
dependabot[bot] Nov 13, 2023
c55ce22
Add workflow to deploy to Cloudflare (#19)
harryzcy Nov 14, 2023
0fe9a1c
Mitigate server-side request forgery for wakatime domain (#10)
harryzcy Nov 14, 2023
24e494d
Validate message input
harryzcy Nov 14, 2023
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
15 changes: 7 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
// "dot-notation": "warn",
// "eqeqeq": [ "error", "smart" ],
// "guard-for-in": "warn",
// "no-alert": "error",
// "no-caller": "error",
"no-alert": "error",
"no-caller": "error",
// "no-case-declarations": "warn",
// "no-div-regex": "warn",
// "no-else-return": "warn",
Expand Down Expand Up @@ -113,7 +113,7 @@

// "init-declarations": [ "error", "always" ],
// "no-catch-shadow": "warn",
// "no-delete-var": "error",
"no-delete-var": "error",
// "no-label-var": "error",
// "no-shadow-restricted-names": "error",
// "no-shadow": "warn",
Expand Down Expand Up @@ -150,12 +150,12 @@
// "arrow-body-style": [ "error", "always" ],
// "arrow-parens": [ "error", "always" ],
// "arrow-spacing": [ "error", { "before": true, "after": true }],
// "constructor-super": "error",
"constructor-super": "error",
// "generator-star-spacing": [ "error", "before" ],
// "no-arrow-condition": "error",
"no-class-assign": "error",
"no-const-assign": "error",
// "no-dupe-class-members": "error",
"no-dupe-class-members": "error",
"no-this-before-super": "error",
// "no-var": "warn",
"object-shorthand": [ "warn" ],
Expand Down Expand Up @@ -217,14 +217,13 @@
"MethodDefinition": true,
"ClassDeclaration": false
}
}]
}],
// "semi-spacing": [ "warn", { "before": false, "after": true }],
// "semi": [ "error", "always" ],
// "sort-vars": "off",
// "space-after-keywords": [ "warn", "always" ],
"keyword-spacing": ["error", { "before": true, "after": true }]
// "space-before-blocks": [ "warn", "always" ],
// "space-before-function-paren": [ "warn", "never" ],
// "space-before-keywords": [ "warn", "always" ],
// "space-in-parens": [ "warn", "never" ],
// "space-infix-ops": [ "warn", { "int32Hint": true } ],
// "space-return-throw-case": "error",
Expand Down
14 changes: 2 additions & 12 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,12 @@ updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
interval: daily
open-pull-requests-limit: 10
commit-message:
prefix: "build(deps)"
prefix-development: "build(deps-dev)"
reviewers:
- "qwerty541"

# Maintain dependencies for GitHub Actions
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
interval: daily
open-pull-requests-limit: 10
commit-message:
prefix: "build(deps)"
prefix-development: "build(deps-dev)"
reviewers:
- "qwerty541"
12 changes: 3 additions & 9 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ name: "Static code analysis workflow (CodeQL)"

on:
push:
branches:
- master
pull_request:
branches:
- master

permissions:
actions: read
Expand All @@ -24,18 +20,16 @@ permissions:

jobs:
CodeQL-Build:
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@46a6823b81f2d7c67ddf123851eea88365bc8a67 # v2.13.5
uses: github/codeql-action/init@v2
with:
languages: javascript

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@46a6823b81f2d7c67ddf123851eea88365bc8a67 # v2.13.5
uses: github/codeql-action/analyze@v2
10 changes: 0 additions & 10 deletions .github/workflows/deploy-prep.py

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/deploy-prep.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Deploy

on:
push:
branches:
- cloudflare

jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
7 changes: 3 additions & 4 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,19 @@ permissions: read-all
jobs:
e2eTests:
if:
github.repository == 'anuraghazra/github-readme-stats' &&
github.event_name == 'deployment_status' &&
github.event.deployment_status.state == 'success'
name: Perform 2e2 tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
Expand Down
47 changes: 0 additions & 47 deletions .github/workflows/empty-issues-closer.yaml

This file was deleted.

58 changes: 0 additions & 58 deletions .github/workflows/generate-theme-doc.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/label-pr.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/ossf-analysis.yml

This file was deleted.

Loading