From 777ae559589c319ad4f206bbf28501fb1e7b5126 Mon Sep 17 00:00:00 2001 From: Brian Clark Date: Sun, 5 Sep 2021 23:53:09 -0400 Subject: [PATCH] v1.0.3 (#144) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Master (#111) * 0.2.2 Release (#103) * HOTFIX: Fixed a registration error with the TreeView containers * bump version and log changes * add launch for runnin with extensions * Major Upgrade (#123) * Redesigned the entire extension (#112) * Refactored enum types into an enums folder. * Generating 'types' so we can provide types for our API we'll be exposing. * API interface has been added * Started initial refactor to App and expose API * App class is now working. * Twitch chat client is now working * Old credentials removed by default * Added an API entry to verify if a user is following the channel * Fixed an error with the twitch login on linux * Twitch Authentication server callback port is now a setting * Fixed inconsistency in command titles * Fixed bearer token issue * Removed 'token' requirement for followers check, not required * Reverted server port back to static 5544. Must match registered app with Twitch * Updated changelog for 0.5.0 * Context menu support (#115) * Remove highlights by context-menu * Updated changelog * Updated node_modules to fix security vulnerabilities (#113) * Remove Types folder (#116) * Ignore types * Removed types folder * Cleanup and fixed some issues (#122) * Fixed a high vulnerability in node * Fixed authentication issues and updated packages * Fixed promise issues in the highlight * Removed declaration generation * Updated webpack plugins and options * Redesigned the entire extension (#112) * Refactored enum types into an enums folder. * Generating 'types' so we can provide types for our API we'll be exposing. * API interface has been added * Started initial refactor to App and expose API * App class is now working. * Twitch chat client is now working * Old credentials removed by default * Added an API entry to verify if a user is following the channel * Fixed an error with the twitch login on linux * Twitch Authentication server callback port is now a setting * Fixed inconsistency in command titles * Fixed bearer token issue * Removed 'token' requirement for followers check, not required * Reverted server port back to static 5544. Must match registered app with Twitch * Updated changelog for 0.5.0 * Context menu support (#115) * Remove highlights by context-menu * Updated changelog * Updated node_modules to fix security vulnerabilities (#113) * Remove Types folder (#116) * Ignore types * Removed types folder * Cleanup and fixed some issues (#122) * Fixed a high vulnerability in node * Fixed authentication issues and updated packages * Fixed promise issues in the highlight * Removed declaration generation * Updated webpack plugins and options * clarify status bar item actions * No longer alert about saving token, log it! * Updated copyfiles to 2.3.0 to hopefully solve linux issue * Fixed some casing issues for references on linux * fix: change casing of 'twitch' Co-authored-by: clarkio * Bump elliptic from 6.4.1 to 6.5.3 (#124) Bumps [elliptic](https://github.com/indutny/elliptic) from 6.4.1 to 6.5.3. - [Release notes](https://github.com/indutny/elliptic/releases) - [Commits](https://github.com/indutny/elliptic/compare/v6.4.1...v6.5.3) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * πŸ’― 1.0.0 ReleaseπŸŽ‰πŸŽŠβœ¨πŸŽ† * Update README.md * hotfix(correct reading of settings by name) * remove tmi token from readme requirements * update version for patch * fix(only reconnect on config change if previously connected) * sec: fix deps from audit * 1.0.2 Release * fix: adjust whitespace * AddWebTrends-2020-11 (#131) * Added Web Trends * Added Web Trends * Added Web Trends * Added Web Trends * Added Web Trends * Added Web Trends * Create codeql-analysis.yml * fix: move app to use new twitch app client id (#141) * docs: add parithon as a contributor for code (#145) * docs: update README.md [skip ci] * docs: create .all-contributorsrc [skip ci] Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> * docs: add MatthewKosloski as a contributor for code (#146) * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> * docs: add yoannfleurydev as a contributor for code (#147) * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> * fix build badge Co-authored-by: Anthony Conrad (parithon) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Bit Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> --- .all-contributorsrc | 42 +++++++++++++++++ .github/workflows/codeql-analysis.yml | 67 +++++++++++++++++++++++++++ README.md | 31 +++++++++++-- package-lock.json | 2 +- package.json | 2 +- src/enums/TwitchKeys.ts | 4 +- src/ttvchat/api/API.ts | 1 + 7 files changed, 142 insertions(+), 7 deletions(-) create mode 100644 .all-contributorsrc create mode 100644 .github/workflows/codeql-analysis.yml diff --git a/.all-contributorsrc b/.all-contributorsrc new file mode 100644 index 0000000..2ad05ec --- /dev/null +++ b/.all-contributorsrc @@ -0,0 +1,42 @@ +{ + "files": [ + "README.md" + ], + "imageSize": 100, + "commit": false, + "contributors": [ + { + "login": "parithon", + "name": "Anthony Conrad (parithon)", + "avatar_url": "https://avatars.githubusercontent.com/u/8602418?v=4", + "profile": "https://github.com/parithon", + "contributions": [ + "code" + ] + }, + { + "login": "MatthewKosloski", + "name": "Matthew Kosloski", + "avatar_url": "https://avatars.githubusercontent.com/u/1219553?v=4", + "profile": "https://matthewkosloski.me/", + "contributions": [ + "code" + ] + }, + { + "login": "yoannfleurydev", + "name": "Yoann Fleury", + "avatar_url": "https://avatars.githubusercontent.com/u/3920615?v=4", + "profile": "http://blog.yoannfleury.dev", + "contributions": [ + "code" + ] + } + ], + "contributorsPerLine": 7, + "projectName": "vscode-twitch-highlighter", + "projectOwner": "clarkio", + "repoType": "github", + "repoHost": "https://github.com", + "skipCi": true +} diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 0000000..27c58ed --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,67 @@ +# 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: [ vnext, master ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ vnext ] + schedule: + - cron: '34 9 * * 5' + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + language: [ 'javascript' ] + # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] + # Learn more: + # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + 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. + # queries: ./path/to/local/query, your-org/your-repo/queries@main + + # Autobuild attempts to build any compiled languages (C/C++, C#, 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@v1 + + # ℹ️ Command-line programs to run using the OS shell. + # πŸ“š https://git.io/JvXDl + + # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines + # and modify them (or add more) to build your code if your project + # uses a compiled language + + #- run: | + # make bootstrap + # make release + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v1 diff --git a/README.md b/README.md index 45728d3..c9cf4cb 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ # Twitch Line Highlighter VS Code Extension + +[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors-) + -[![Build Status](https://clarkcode.visualstudio.com/vscode-line-highlighter-extension/_apis/build/status/Production%20Test%20%26%20Build%20-%20VS%20Code%20Line%20Highlighter%20Extension?branchName=refs%2Fpull%2F125%2Fmerge)](https://clarkcode.visualstudio.com/vscode-line-highlighter-extension/_build/latest?definitionId=23&branchName=refs%2Fpull%2F125%2Fmerge) +[![Build Status](https://clarkcode.visualstudio.com/vscode-line-highlighter-extension/_apis/build/status/Production%20Test%20%26%20Build%20-%20VS%20Code%20Line%20Highlighter%20Extension?branchName=master)](https://clarkcode.visualstudio.com/vscode-line-highlighter-extension/_build/latest?definitionId=23&branchName=master) A VS Code extension to allow your Twitch viewers to help in spotting bugs, typos, etc. by sending a command in chat that will highlight the line of code they want you to check. @@ -10,12 +13,12 @@ A VS Code extension to allow your Twitch viewers to help in spotting bugs, typos In order to use this extension you will need the following things before going to the [Getting Started](#getting-started) section: -- An installed version of [VS Code](https://code.visualstudio.com) +- An installed version of [VS Code](https://code.visualstudio.com/?WT.mc_id=academic-0000-brcl) - A Twitch account for yourself or a separate one to be used as a chat bot ([sign up here](https://www.twitch.tv/signup)) ## Getting Started -1. Install the extension from the [marketplace](https://marketplace.visualstudio.com/items?itemName=clarkio.twitch-highlighter) +1. Install the extension from the [marketplace](https://marketplace.visualstudio.com/items?itemName=clarkio.twitch-highlighter&WT.mc_id=academic-0000-brcl) 2. Open your VS Code settings - Keyboard shortcut: `CTRL/CMD + ,` @@ -86,3 +89,25 @@ Some of the code in this extension has been adapted from the [twitchlint extensi ## Release Notes See [CHANGELOG.md](CHANGELOG.md) + +## Contributors ✨ + +Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)): + + + + + + + + + + +

Anthony Conrad (parithon)

πŸ’»

Matthew Kosloski

πŸ’»

Yoann Fleury

πŸ’»
+ + + + + + +This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome! diff --git a/package-lock.json b/package-lock.json index 9aecea7..a651c2d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "twitch-highlighter", - "version": "1.0.1", + "version": "1.0.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index b74d5e5..b839cf5 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "twitch-highlighter", "displayName": "Twitch Highlighter", "description": "Allow your Twitch viewers to help in spotting bugs, typos, etc. by sending a command in chat that will highlight the line of code they want you to check.", - "version": "1.0.2", + "version": "1.0.3", "preview": false, "publisher": "clarkio", "engines": { diff --git a/src/enums/TwitchKeys.ts b/src/enums/TwitchKeys.ts index a758f6a..138da76 100644 --- a/src/enums/TwitchKeys.ts +++ b/src/enums/TwitchKeys.ts @@ -1,4 +1,4 @@ export enum TwitchKeys { - "clientId" = "hhxtni83sibk1278lmv6bwye1pnurt", - "scope" = "chat:read chat:edit" + "clientId" = "83juwb58ggj9s7l7nf9ngyill70tem", + "scope" = "chat:read chat:edit", } diff --git a/src/ttvchat/api/API.ts b/src/ttvchat/api/API.ts index ee4c3a8..835350c 100644 --- a/src/ttvchat/api/API.ts +++ b/src/ttvchat/api/API.ts @@ -49,6 +49,7 @@ export class API { } }); }); + return result; } public static async revokeToken(token: string) {