-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
208 changed files
with
24,433 additions
and
71,312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
**/xtscancodes.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es2020": true | ||
}, | ||
"parserOptions": { | ||
"sourceType": "module", | ||
"ecmaVersion": 2020 | ||
}, | ||
"extends": "eslint:recommended", | ||
"rules": { | ||
// Unsafe or confusing stuff that we forbid | ||
|
||
"no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": true }], | ||
"no-constant-condition": ["error", { "checkLoops": false }], | ||
"no-var": "error", | ||
"no-useless-constructor": "error", | ||
"object-shorthand": ["error", "methods", { "avoidQuotes": true }], | ||
"prefer-arrow-callback": "error", | ||
"arrow-body-style": ["error", "as-needed", { "requireReturnForObjectLiteral": false } ], | ||
"arrow-parens": ["error", "as-needed", { "requireForBlockBody": true }], | ||
"arrow-spacing": ["error"], | ||
"no-confusing-arrow": ["error", { "allowParens": true }], | ||
|
||
// Enforced coding style | ||
|
||
"brace-style": ["error", "1tbs", { "allowSingleLine": true }], | ||
"indent": ["error", 4, { "SwitchCase": 1, | ||
"VariableDeclarator": "first", | ||
"FunctionDeclaration": { "parameters": "first" }, | ||
"FunctionExpression": { "parameters": "first" }, | ||
"CallExpression": { "arguments": "first" }, | ||
"ArrayExpression": "first", | ||
"ObjectExpression": "first", | ||
"ImportDeclaration": "first", | ||
"ignoreComments": true }], | ||
"comma-spacing": ["error"], | ||
"comma-style": ["error"], | ||
"curly": ["error", "multi-line"], | ||
"func-call-spacing": ["error"], | ||
"func-names": ["error"], | ||
"func-style": ["error", "declaration", { "allowArrowFunctions": true }], | ||
"key-spacing": ["error"], | ||
"keyword-spacing": ["error"], | ||
"no-trailing-spaces": ["error"], | ||
"semi": ["error"], | ||
"space-before-blocks": ["error"], | ||
"space-before-function-paren": ["error", { "anonymous": "always", | ||
"named": "never", | ||
"asyncArrow": "always" }], | ||
"switch-colon-spacing": ["error"], | ||
"camelcase": ["error", { allow: ["^XK_", "^XF86XK_"] }], | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Client (please complete the following information):** | ||
- OS: [e.g. iOS] | ||
- Browser: [e.g. chrome, safari] | ||
- Browser version: [e.g. 22] | ||
|
||
**Server (please complete the following information):** | ||
- noVNC version: [e.g. 1.0.0 or git commit id] | ||
- VNC server: [e.g. QEMU, TigerVNC] | ||
- WebSocket proxy: [e.g. websockify] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Question or discussion | ||
url: https://groups.google.com/forum/?fromgroups#!forum/novnc | ||
about: Ask a question or start a discussion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
pull_request: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
npm: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
GITREV=$(git rev-parse --short HEAD) | ||
echo $GITREV | ||
sed -i "s/^\(.*\"version\".*\)\"\([^\"]\+\)\"\(.*\)\$/\1\"\2-g$GITREV\"\3/" package.json | ||
if: github.event_name != 'release' | ||
- uses: actions/setup-node@v4 | ||
with: | ||
# Needs to be explicitly specified for auth to work | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: npm install | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: npm | ||
path: lib | ||
- run: npm publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
if: | | ||
github.repository == 'novnc/noVNC' && | ||
github.event_name == 'release' && | ||
!github.event.release.prerelease | ||
- run: npm publish --access public --tag beta | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
if: | | ||
github.repository == 'novnc/noVNC' && | ||
github.event_name == 'release' && | ||
github.event.release.prerelease | ||
- run: npm publish --access public --tag dev | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
if: | | ||
github.repository == 'novnc/noVNC' && | ||
github.event_name == 'push' && | ||
github.event.ref == 'refs/heads/master' | ||
snap: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
GITREV=$(git rev-parse --short HEAD) | ||
echo $GITREV | ||
sed -i "s/^\(.*\"version\".*\)\"\([^\"]\+\)\"\(.*\)\$/\1\"\2-g$GITREV\"\3/" package.json | ||
if: github.event_name != 'release' | ||
- run: | | ||
VERSION=$(grep '"version"' package.json | cut -d '"' -f 4) | ||
echo $VERSION | ||
sed -i "s/^version:.*/version: '$VERSION'/" snap/snapcraft.yaml | ||
- uses: snapcore/action-build@v1 | ||
id: snapcraft | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: snap | ||
path: ${{ steps.snapcraft.outputs.snap }} | ||
- uses: snapcore/action-publish@v1 | ||
with: | ||
snap: ${{ steps.snapcraft.outputs.snap }} | ||
release: stable | ||
env: | ||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }} | ||
if: | | ||
github.repository == 'novnc/noVNC' && | ||
github.event_name == 'release' && | ||
!github.event.release.prerelease | ||
- uses: snapcore/action-publish@v1 | ||
with: | ||
snap: ${{ steps.snapcraft.outputs.snap }} | ||
release: beta | ||
env: | ||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }} | ||
if: | | ||
github.repository == 'novnc/noVNC' && | ||
github.event_name == 'release' && | ||
github.event.release.prerelease | ||
- uses: snapcore/action-publish@v1 | ||
with: | ||
snap: ${{ steps.snapcraft.outputs.snap }} | ||
release: edge | ||
env: | ||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }} | ||
if: | | ||
github.repository == 'novnc/noVNC' && | ||
github.event_name == 'push' && | ||
github.event.ref == 'refs/heads/master' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Lint | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
eslint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
- run: npm update | ||
- run: npm run lint | ||
html: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
- run: npm update | ||
- run: git ls-tree --name-only -r HEAD | grep -E "[.](html|css)$" | xargs ./utils/validate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Test | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- windows-latest | ||
browser: | ||
- ChromeHeadless | ||
- FirefoxHeadless | ||
include: | ||
- os: macos-latest | ||
browser: Safari | ||
- os: windows-latest | ||
browser: EdgeHeadless | ||
fail-fast: false | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
- run: npm update | ||
- run: npm run test | ||
env: | ||
TEST_BROWSER_NAME: ${{ matrix.browser }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Translate | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
translate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
- run: npm update | ||
- run: sudo apt-get install gettext | ||
- run: make -C po update-pot | ||
- run: make -C po update-po | ||
- run: make -C po update-js |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
maintainers: | ||
- Samuel Mannehed for Cendio AB (@samhed) | ||
- Pierre Ossman for Cendio AB (@CendioOssman) | ||
maintainersEmeritus: | ||
- Joel Martin (@kanaka) | ||
- Solly Ross (@directxman12) | ||
- @astrand | ||
contributors: | ||
# There are a bunch of people that should be here. | ||
# If you want to be on this list, feel free send a PR | ||
# to add yourself. | ||
- jalf <[email protected]> | ||
- NTT corp. |
Oops, something went wrong.