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

new deployment, with bugfixes #42

Closed
wants to merge 102 commits into from
Closed
Show file tree
Hide file tree
Changes from 92 commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
2b16710
Added `start_url`
Rudxain Jun 7, 2022
39291f7
Update README.md
Rudxain Jun 7, 2022
efb616e
Add files via upload
Rudxain Jun 9, 2022
b492eee
Delete docs directory
Rudxain Jun 9, 2022
1ccbb05
Fixed icon path
Rudxain Jun 9, 2022
a0ac08c
Shortened GitHub to GH
Rudxain Jun 22, 2022
3c0cf54
Add files via upload
Rudxain Jul 1, 2022
f826167
A LOT of changes
Rudxain Jul 1, 2022
68760b5
Replace anim.js by main.js
Rudxain Jul 1, 2022
1edf47d
Refactor
Rudxain Jul 24, 2022
1d296cb
Fix race condition and memory leak
Rudxain Jul 24, 2022
5bbec82
Change W & H to `viewbox`
Rudxain Jul 26, 2022
a690a09
Update icon.svg
Rudxain Jul 26, 2022
bbbcfe6
Update README.md
Rudxain Jul 26, 2022
a2af6a9
Fix attribute
Rudxain Jul 26, 2022
4bcdcaf
Fix scaling, I guess
Rudxain Jul 26, 2022
f07664e
Add files via upload
Rudxain Jul 27, 2022
48b276c
Update README.md
Rudxain Jul 27, 2022
d65eef8
Fix `viewBox` case
Rudxain Jul 31, 2022
9cbeb40
Fix weird icon
Rudxain Aug 2, 2022
3a814d6
Finally patch the icon
Rudxain Aug 2, 2022
dadb502
Move Apple-Icon comment to default `CONTRIBUTING`
Rudxain Aug 8, 2022
5ec5e79
Move Twitter comment to default CONTRIBUTNG
Rudxain Aug 8, 2022
9314f81
Now using ESlint. Did some refactoring
Rudxain Aug 8, 2022
27d4618
Fix HUMONGOUS isotype
Rudxain Aug 8, 2022
6f529c4
Create super-linter.yml
Rudxain Aug 9, 2022
067d120
Update README.md
Rudxain Aug 9, 2022
161d9ae
Update README.md
Rudxain Aug 9, 2022
8a49cc7
Update README.md
Rudxain Aug 9, 2022
7c0c220
Update README.md
Rudxain Aug 9, 2022
fcbe7fb
Delete package-lock.json
Rudxain Aug 9, 2022
abab3ed
Delete package.json
Rudxain Aug 9, 2022
e001468
Delete .eslintrc.json
Rudxain Aug 9, 2022
38e35f2
Delete .gitignore
Rudxain Aug 9, 2022
db4ab58
Refactor `main.js`
Rudxain Aug 13, 2022
00bab70
Update main.js
Rudxain Aug 13, 2022
3f17dcc
Support negative `dim_factor`
Rudxain Aug 13, 2022
4d95fbf
Support light scheme
Rudxain Aug 13, 2022
c96bfb7
Delete super-linter.yml
Rudxain Aug 13, 2022
7b78329
Update README.md
Rudxain Aug 19, 2022
0c4a05f
Update icon.svg
Rudxain Aug 19, 2022
9aa3a04
Refactor
Rudxain Aug 27, 2022
dbba054
Format with VScode
Rudxain Aug 27, 2022
cec5a2a
Update main.js
Rudxain Aug 27, 2022
227a58a
Refactor
Rudxain Aug 27, 2022
c749d60
Less global vars!
Rudxain Aug 27, 2022
f2f0f22
Global comment
Rudxain Aug 27, 2022
e226e3b
Format and refactor
Rudxain Aug 27, 2022
9f121a1
Update index.html
Rudxain Aug 27, 2022
4e1ce8a
Format manifest
Rudxain Aug 27, 2022
adf1bfe
Format icon
Rudxain Aug 27, 2022
d99a7b0
Moved CSS to its own external file
Rudxain Sep 4, 2022
7caaf1e
Center logo
Rudxain Sep 17, 2022
9b2ce37
remove redundancy in `main.js`
Rudxain Sep 17, 2022
082e63a
Update main.js
Rudxain Sep 17, 2022
e39d85d
Update README.md
Rudxain Oct 5, 2022
30d8871
add ESlint
Rudxain Nov 4, 2022
af9ddb5
refacor main, and add JSdoc
Rudxain Nov 4, 2022
4fce69a
Update main.js
Rudxain Nov 4, 2022
c3ee41a
add `sleep`
Rudxain Nov 4, 2022
442e95c
fix non-int index bug
Rudxain Nov 4, 2022
09d09c2
Update main.js
Rudxain Nov 4, 2022
1e00ef2
better comments
Rudxain Nov 4, 2022
2bcf96e
remove useless `sign`, sleep `O(n)` instead of `O(1)`
Rudxain Nov 6, 2022
68d5fd4
fix `sleep` bug
Rudxain Nov 11, 2022
f9907ee
Fix again
Rudxain Nov 11, 2022
266fdad
Create codeql.yml
Rudxain Nov 11, 2022
213a2c1
Create eslint.yml
Rudxain Nov 11, 2022
067b5e5
fmt and use TS-casting
Rudxain Dec 26, 2022
dce22e0
Delete eslint.yml
Rudxain Mar 1, 2023
f3e9fc6
Delete .eslintrc.yaml
Rudxain Mar 1, 2023
6d1e52e
Delete package-lock.json
Rudxain Mar 1, 2023
41c5070
Delete package.json
Rudxain Mar 1, 2023
b54a50c
Delete .gitignore
Rudxain Mar 1, 2023
cccc740
Update codeql.yml
Rudxain Mar 1, 2023
26c4e9f
delete more useless comments in codeql
Rudxain Mar 1, 2023
7a21a60
remove incorrect & unnecessary info
Rudxain Jul 6, 2023
529fef6
app found
Rudxain Nov 29, 2023
a7702fd
format, refactor, etc
Rudxain Jan 24, 2024
be0f3a4
`demo_horizontal` -> `demo`
Rudxain Jan 24, 2024
b30dafe
rm useles files
Mar 1, 2024
18a59e6
major bugfixes, refactoring, & optimization
Mar 2, 2024
aba9256
fix unused y offset
Rudxain Mar 2, 2024
63ca44d
resize displayed canvas once per debounce
Mar 5, 2024
4848713
fmt
Mar 5, 2024
ec7155b
switch from MIT to AGPLv3
Rudxain Mar 5, 2024
9558c41
add ESlint (again)
Mar 5, 2024
ac26d90
stricter linting
Mar 5, 2024
1951464
Create eslint.yml
Rudxain Mar 5, 2024
842fcf1
forgot sarif format in eslint.yml
Rudxain Mar 5, 2024
9da35d1
Closes #7
Mar 6, 2024
f86c4fc
Merge branch 'main' of https://github.com/Rudxain/RGB-digital-rain
Mar 6, 2024
ecf6810
optimize getting `canv` dimensions
Mar 6, 2024
01f2008
fixes #38
Mar 6, 2024
8d970fb
add jsconfig. convert .eslintrc from JSON to JS
Mar 6, 2024
80e077b
Create TS workflow
Mar 6, 2024
27d1932
Test TS workflow
Mar 6, 2024
fde03cf
TS test went as desired. Reverting...
Mar 6, 2024
8cae4fe
stricter lint; switch to `'`
Mar 7, 2024
31d28d4
forgor update `demo.png` size 💀
Mar 7, 2024
5910cae
restore canvas after resize
Mar 7, 2024
1fdccfc
rm unused lint disable
Mar 7, 2024
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
84 changes: 84 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"no-magic-numbers": [
"warn",
{
"ignore": [
-1,
0,
1,
2
],
"ignoreArrayIndexes": true,
"ignoreDefaultValues": true,
"enforceConst": true
}
],
"no-unused-vars": [
"warn",
{
"varsIgnorePattern": "^_$",
"argsIgnorePattern": "^_$"
}
],
"no-implicit-globals": [
"error",
{
"lexicalBindings": true
}
],
"no-empty-function": "error",
"no-loop-func": "error",
"no-lone-blocks": "error",
"no-constant-binary-expression": "error",
"no-self-compare": "error",
"no-unmodified-loop-condition": "error",
"no-unreachable-loop": "error",
"no-extra-label": "error",
"no-else-return": [
"error",
{
"allowElseIf": false
}
],
"require-atomic-updates": "error",
"no-eval": "error",
"no-implied-eval": "error",
"dot-notation": "error",
"no-array-constructor": "error",
"max-depth": "warn",
"max-nested-callbacks": [
"error",
3
],
"max-params": [
"error",
4
],
"indent": [
"error",
"tab"
],
"linebreak-style": [
"error",
"unix"
],
"no-template-curly-in-string": "warn",
"quotes": [
"error",
"single"
],
"semi": [
"error",
"never"
]
}
}
58 changes: 58 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: "CodeQL"

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
41 changes: 41 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: ESLint

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
eslint:
name: Run eslint scanning
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install ESLint
run: |
npm i eslint # this should sync with package-lock
npm i @microsoft/eslint-formatter-sarif@2.1.7
- name: Run ESLint
run: npx eslint .
--ext .js
--format @microsoft/eslint-formatter-sarif
--output-file eslint-results.sarif
continue-on-error: true

- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: eslint-results.sarif
wait-for-processing: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
Loading
Loading