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

Convert remaining components to ts #328

Closed
wants to merge 137 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
7dd6884
Update @types/lodash to version 4.14.189
depfu[bot] Nov 15, 2022
3838e95
Merge pull request #274 from dehydr8/depfu/update/npm/eslint-plugin-r…
ChristophNiehoff Nov 21, 2022
2092224
Merge pull request #272 from dehydr8/depfu/update/npm/@types/lodash-4…
ChristophNiehoff Nov 21, 2022
088a006
First steps for adding new game mode 'cumulus'
ChristophNiehoff Nov 16, 2022
d6f599a
Added preliminary version of cumulus cards
ChristophNiehoff Nov 17, 2022
aa71e63
Update to cumulus v0.1.1
ChristophNiehoff Dec 12, 2022
1bbb51a
Fix failing test after updating to latest cumulus cards
ChristophNiehoff Dec 12, 2022
7053eea
Update to latest cumulus version
ChristophNiehoff Jan 30, 2023
7486b40
Added latest version of cumulus cards
ChristophNiehoff Feb 7, 2023
d8230c7
Change trump suit of cumulus
ChristophNiehoff Feb 7, 2023
390da09
bump version
ChristophNiehoff Feb 10, 2023
bad110c
Updated Readme with news about Cumulus
ChristophNiehoff Feb 21, 2023
90d6026
Added dependabot config
ChristophNiehoff Mar 15, 2023
ac5d634
Bump @fortawesome/react-fontawesome from 0.1.18 to 0.2.0
dependabot[bot] Mar 16, 2023
d83d6b5
Bump eslint-plugin-react from 7.31.11 to 7.32.2
dependabot[bot] Mar 16, 2023
ab55f00
Merge pull request #3 from TNG/dependabot/npm_and_yarn/eslint-plugin-…
ChristophNiehoff Mar 21, 2023
d03f27c
Merge pull request #2 from TNG/dependabot/npm_and_yarn/fortawesome/re…
ChristophNiehoff Mar 21, 2023
1f73db9
Bump cookiejar from 2.1.3 to 2.1.4
dependabot[bot] Mar 21, 2023
8fcc9f3
Convert CopyButton to TypeScript
ghost91- Mar 24, 2023
9f3cee5
Convert Timer component to TypeScript
ghost91- Mar 24, 2023
1cde1f1
Merge pull request #17 from TNG/convert-copybutton-to-ts
ChristophNiehoff Mar 31, 2023
e76f555
Merge pull request #16 from TNG/convert-timer-to-ts
ChristophNiehoff Mar 31, 2023
5b6339d
Convert DownloadButton to TypeScript
ghost91- Apr 14, 2023
52c6801
Convert Footer to TypeScript
ghost91- Apr 14, 2023
c0ddf99
Convert ImageModel to TypeScript
ghost91- Apr 14, 2023
4abaee4
Merge pull request #22 from TNG/convert-image-model-to-ts
ChristophNiehoff Apr 18, 2023
6defd52
Merge pull request #21 from TNG/convert-footer-to-ts
ChristophNiehoff Apr 18, 2023
5406937
Merge pull request #20 from TNG/migrate-download-button-to-ts
ChristophNiehoff Apr 18, 2023
727b65a
Bump glob-parent and react-scripts
dependabot[bot] Feb 7, 2023
17cd553
Rename components .js -> .jsx
ChristophNiehoff Mar 11, 2023
deb26c8
Fix properties in test case
ChristophNiehoff Mar 11, 2023
c0d4a70
Fix error in autoprefixer dependency, See https://stackoverflow.com/q…
ChristophNiehoff Mar 11, 2023
62ca2d3
Update eslint
ChristophNiehoff Mar 11, 2023
0862585
Make Docker build working again
ChristophNiehoff Mar 11, 2023
eb16efd
Switch base64 encoding from Buffer.from(...).toString('base64') to bt…
ChristophNiehoff Mar 24, 2023
e08a42a
Move threat-bar sligthly to left
ChristophNiehoff Mar 24, 2023
b4687ea
Fix error when trying to load threat models
ghost91- Apr 14, 2023
84d25f1
Change order of docker layers for faster rebuild if there are only co…
ChristophNiehoff Apr 18, 2023
abd12e6
Added missing library. (Probably got lost during resolving merge conf…
ChristophNiehoff Apr 18, 2023
85686b9
Merge pull request #23 from TNG/update
ChristophNiehoff Apr 18, 2023
8cd06bd
Bump webpack from 5.75.0 to 5.79.0
dependabot[bot] Apr 18, 2023
6d4c719
Merge pull request #24 from TNG/dependabot/npm_and_yarn/webpack-5.79.0
ChristophNiehoff Apr 18, 2023
736ba48
Merge pull request #12 from TNG/dependabot/npm_and_yarn/cookiejar-2.1.4
ChristophNiehoff Apr 18, 2023
8fa59c9
Update cookiejar dependency
ChristophNiehoff Apr 18, 2023
8087d47
Switch base64 encoding from Buffer.from(...).toString('base64') to bt…
ChristophNiehoff Apr 18, 2023
31dd6aa
update boardgame-io
ChristophNiehoff Apr 18, 2023
135bb0d
Bump supertest from 6.3.1 to 6.3.3
dependabot[bot] Apr 19, 2023
f481b76
Bump eslint from 8.36.0 to 8.38.0
dependabot[bot] Apr 19, 2023
c2df096
Bump @babel/eslint-parser from 7.19.1 to 7.21.3
dependabot[bot] Apr 19, 2023
90f4b9b
Bump version
ChristophNiehoff Apr 19, 2023
8a526b2
Merge pull request #27 from TNG/dependabot/npm_and_yarn/eslint-8.38.0
ChristophNiehoff Apr 19, 2023
6c85d98
Merge pull request #26 from TNG/dependabot/npm_and_yarn/supertest-6.3.3
ChristophNiehoff Apr 19, 2023
a8fda6c
Merge pull request #28 from TNG/dependabot/npm_and_yarn/babel/eslint-…
ChristophNiehoff Apr 19, 2023
48bd2f8
Bump koa-router from 10.1.1 to 12.0.0
dependabot[bot] Apr 19, 2023
61320b6
Merge pull request #25 from TNG/dependabot/npm_and_yarn/koa-router-12…
ChristophNiehoff Apr 19, 2023
00e135a
Bump @types/react-helmet from 6.1.5 to 6.1.6
dependabot[bot] Apr 20, 2023
0126965
Bump @types/seedrandom from 3.0.2 to 3.0.5
dependabot[bot] Apr 20, 2023
75046f2
Bump jointjs from 3.6.2 to 3.7.1
dependabot[bot] May 1, 2023
2aacc00
Update to Cumulus v1.1.0
ChristophNiehoff May 9, 2023
ceacf80
Fix failing test
ChristophNiehoff May 9, 2023
31afc36
Merge pull request #33 from TNG/dependabot/npm_and_yarn/types/seedran…
ChristophNiehoff May 9, 2023
e29ddc5
Merge pull request #31 from TNG/dependabot/npm_and_yarn/types/react-h…
ChristophNiehoff May 9, 2023
dd0ba55
Merge pull request #34 from TNG/dependabot/npm_and_yarn/jointjs-3.7.1
ChristophNiehoff May 9, 2023
39f8e88
Bump react-countdown-circle-timer from 2.5.4 to 3.2.1
dependabot[bot] May 9, 2023
ddd17a7
adapt to breaking changes in react-countdown-circle-timer
ChristophNiehoff May 9, 2023
385290c
Merge pull request #29 from TNG/dependabot/npm_and_yarn/react-countdo…
ChristophNiehoff May 9, 2023
57b8ee0
bump version
ChristophNiehoff May 9, 2023
a3f9ef7
Bump @babel/eslint-parser from 7.21.3 to 7.21.8
dependabot[bot] May 10, 2023
e2bea56
Bump node-persist from 3.1.0 to 3.1.3
dependabot[bot] May 10, 2023
e402bb5
Bump bootstrap from 4.6.0 to 5.3.0
dependabot[bot] May 31, 2023
fc156a1
Merge pull request #36 from TNG/dependabot/npm_and_yarn/babel/eslint-…
ChristophNiehoff Jun 8, 2023
5e7a025
Merge pull request #39 from TNG/dependabot/npm_and_yarn/bootstrap-5.3.0
ChristophNiehoff Jun 8, 2023
1574fe9
Merge pull request #37 from TNG/dependabot/npm_and_yarn/node-persist-…
ChristophNiehoff Jun 8, 2023
1f9e7ab
Added threat category to markdown export
ChristophNiehoff Jun 9, 2023
519faee
If a threat from a ThreatDragon model already contains a type, reuse …
ChristophNiehoff Jun 9, 2023
b83fd81
Merge pull request #43 from TNG/category_in_threat_download
ChristophNiehoff Jul 6, 2023
71b65da
Added privacy enhanced mode
ChristophNiehoff Aug 8, 2022
fe074d1
Rename modelType
ChristophNiehoff Aug 10, 2022
f9e44a8
Added some tests
ChristophNiehoff Aug 11, 2022
3147106
Change placeholder title
ChristophNiehoff Jun 9, 2023
5b45dcb
Remove testcase that is not applicable anymore
ChristophNiehoff Jun 9, 2023
f3ee26f
Fix review findings
ChristophNiehoff Jul 6, 2023
d2e22fc
Merge pull request #45 from TNG/privacy_enhanced_mode
ChristophNiehoff Jul 6, 2023
d20cf89
Show timer also for spectator
ChristophNiehoff Jun 9, 2023
dd49d10
Fix review findings
ChristophNiehoff Jul 6, 2023
fbd1d6d
Merge pull request #44 from TNG/show_timer_in_spectator_mode
ChristophNiehoff Jul 6, 2023
5fc64c9
Bump superagent from 6.1.0 to 8.0.9
dependabot[bot] Jul 6, 2023
a8fab64
Bump jointjs from 3.7.1 to 3.7.4
dependabot[bot] Jul 6, 2023
df39893
Bump tough-cookie from 4.1.2 to 4.1.3
dependabot[bot] Jul 10, 2023
aa06a12
Merge pull request #50 from TNG/dependabot/npm_and_yarn/tough-cookie-…
ChristophNiehoff Jul 10, 2023
b764710
Merge pull request #47 from TNG/dependabot/npm_and_yarn/jointjs-3.7.4
ChristophNiehoff Jul 10, 2023
b3b6846
Merge pull request #41 from TNG/dependabot/npm_and_yarn/superagent-8.0.9
ChristophNiehoff Jul 10, 2023
9b3cfa4
Revert "Merge pull request #39 from TNG/dependabot/npm_and_yarn/boots…
ChristophNiehoff Jul 10, 2023
bb20ac1
npm audit fix
ChristophNiehoff Jul 10, 2023
124023c
Change Cumulus trump suit and use OWASP name
ChristophNiehoff Jul 10, 2023
2b000ee
bump version
ChristophNiehoff Jul 10, 2023
0f6ff66
Bump uuid and @types/uuid
dependabot[bot] Jul 11, 2023
dd907ea
Convert Leaderboard to TypeScript
ghost91- Jul 11, 2023
821b429
Bump semver from 5.7.1 to 5.7.2
dependabot[bot] Jul 13, 2023
326d3c1
Bump word-wrap from 1.2.3 to 1.2.4
dependabot[bot] Jul 20, 2023
3c7139b
Merge pull request #53 from TNG/convert-leaderboard-to-typescript
ChristophNiehoff Jul 20, 2023
e0f10e9
Merge pull request #54 from TNG/dependabot/npm_and_yarn/semver-5.7.2
ghost91- Aug 11, 2023
f2cbebd
Merge pull request #51 from TNG/dependabot/npm_and_yarn/uuid-and-type…
ghost91- Aug 11, 2023
bc469a3
Merge pull request #55 from TNG/dependabot/npm_and_yarn/word-wrap-1.2.4
ghost91- Aug 11, 2023
9badf61
Migrate Sidebar to TypeScript
ghost91- Aug 11, 2023
1b2c90d
Remove obsolete downloadbutton.jsx
ghost91- Aug 11, 2023
20d942b
Added possibility for imprint and privacy statement on front footer
ChristophNiehoff Aug 2, 2023
fc44b44
Also add imprint and privacy statement to board
ChristophNiehoff Aug 3, 2023
fc174f1
Added tests and documentation
ChristophNiehoff Aug 4, 2023
a4a1557
Review comments: https://github.com/TNG/elevation-of-privilege/pull/57
ChristophNiehoff Aug 11, 2023
666f8ce
Revert back to mocking in test, because otherwise the CI tests fail
ChristophNiehoff Aug 11, 2023
5afc78a
Fix test
ChristophNiehoff Aug 11, 2023
98ff46d
Added possibiity to add a demo disclaimer banner
ChristophNiehoff Aug 3, 2023
3ccd23e
Added tests
ChristophNiehoff Aug 4, 2023
f6c6aa5
refine CSS
ChristophNiehoff Aug 10, 2023
9cd89ca
Review comments: https://github.com/TNG/elevation-of-privilege/pull/58
ChristophNiehoff Aug 11, 2023
08a5cca
Change location of in-filesystem storage to avoid file permission iss…
ChristophNiehoff Aug 14, 2023
4770a57
Bump boardgame.io from 0.49.13 to 0.50.2
dependabot[bot] Aug 11, 2023
02f9aa1
Bump koa from 2.13.4 to 2.14.2
dependabot[bot] Aug 17, 2023
9fe4201
Merge pull request #61 from TNG/dependabot/npm_and_yarn/koa-2.14.2
ChristophNiehoff Aug 17, 2023
ab8da38
Add @babel/plugin-proposal-private-property-in-object as devDependenc…
ghost91- Aug 11, 2023
07fa80c
Merge pull request #60 from TNG/fix-babel-CRA-warning
ChristophNiehoff Aug 17, 2023
d299016
bump version
ChristophNiehoff Aug 17, 2023
e08c71e
npm audit fix
ChristophNiehoff Aug 17, 2023
d558051
Bump @testing-library/react from 12.1.4 to 12.1.5
dependabot[bot] Aug 18, 2023
8c1aa5d
Create codeql.yml
ChristophNiehoff Aug 18, 2023
af03395
Added link to demo instance
ChristophNiehoff Aug 18, 2023
0d24b82
Bump @babel/traverse from 7.22.8 to 7.23.2
dependabot[bot] Oct 19, 2023
d68858b
Bump @babel/eslint-parser from 7.22.7 to 7.23.3
dependabot[bot] Nov 10, 2023
9fc33a8
Merge pull request #62 from TNG/dependabot/npm_and_yarn/testing-libra…
ghost91- Nov 24, 2023
20259ff
Merge pull request #71 from TNG/dependabot/npm_and_yarn/babel/travers…
ghost91- Nov 24, 2023
7a10ed2
Merge pull request #72 from TNG/dependabot/npm_and_yarn/babel/eslint-…
ghost91- Nov 24, 2023
922d3ed
Import @testing-library/jest-dom centrally for tests
ghost91- Nov 24, 2023
f10c333
Migrate Board to TypeScript
ghost91- Nov 24, 2023
49b3939
Small cleanups
ghost91- Nov 24, 2023
ba1c7c9
Migrate Status to TypeScript
ghost91- Dec 9, 2023
1fb4bec
Format everything and add format check to CI
ghost91- Dec 9, 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
Prev Previous commit
Next Next commit
Create codeql.yml
  • Loading branch information
ChristophNiehoff authored Aug 18, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 8c1aa5d69c97ac11c64697064ec3dfa1415ea589
82 changes: 82 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ "master" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
schedule:
- cron: '24 2 * * 3'

jobs:
analyze:
name: Analyze
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners
# Consider using larger runners for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
# Use only 'java' to analyze code written in Java, Kotlin or both
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

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

# Initializes the CodeQL tools for scanning.
- 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.

# For more 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, Java, or Swift).
# 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}}"