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

add this #31

Merged
merged 75 commits into from
Oct 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
fe4593d
Create c-cpp.yml
akaday Oct 4, 2024
12bb905
Create jekyll-docker.yml
akaday Oct 4, 2024
bb0ba52
Create cmake-multi-platform.yml
akaday Oct 4, 2024
760a501
Merge pull request #1 from akadev1/akaday-patch-12
akaday Oct 4, 2024
95d5c0b
Merge pull request #1 from akadev1/akaday-patch-11
akaday Oct 4, 2024
9117088
Merge branch 'microsoft:main' into main
akaday Oct 4, 2024
891606d
Merge branch 'akaday:main' into main
akaday Oct 4, 2024
b83c9dc
Merge pull request #2 from akadev1/akaday-patch-10
akaday Oct 4, 2024
d401846
Merge branch 'akaday:main' into main
akaday Oct 4, 2024
38449c1
Merge pull request #3 from akadev1/akaday-patch-12
akaday Oct 4, 2024
2b33fd0
Merge branch 'akaday:main' into main
akaday Oct 4, 2024
1c46245
Merge pull request #4 from akadev1/akaday-patch-9
akaday Oct 4, 2024
981c7a7
Merge branch 'microsoft:main' into main
akaday Oct 4, 2024
fefccf0
Merge branch 'microsoft:main' into main
akaday Oct 4, 2024
2299928
Merge pull request #5 from akadev1/main
akaday Oct 4, 2024
bb7690c
Merge branch 'microsoft:main' into main
akaday Oct 4, 2024
aaebf06
Merge branch 'microsoft:main' into main
akaday Oct 4, 2024
31f1240
Merge branch 'main' into akaday-patch-12
akaday Oct 4, 2024
30a21ec
Merge pull request #6 from akadev1/akaday-patch-12
akaday Oct 4, 2024
93ff320
Merge branch 'microsoft:main' into main
akaday Oct 4, 2024
f21e902
Merge branch 'main' into akaday-patch-12
akaday Oct 4, 2024
db3d7a5
Merge pull request #7 from akadev1/akaday-patch-12
akaday Oct 4, 2024
ef4eb97
Merge branch 'microsoft:main' into main
akaday Oct 4, 2024
976a0fc
build(deps): bump the npm_and_yarn group across 2 directories with 5 …
dependabot[bot] Oct 4, 2024
5032d1d
Update Cargo.toml
akaday Oct 4, 2024
32534cb
Merge pull request #8 from akaday/dependabot/npm_and_yarn/npm_and_yar…
akaday Oct 4, 2024
93c79f8
Merge branch 'main' into akaday-patch-12
akaday Oct 5, 2024
ba0977b
Merge branch 'main' into akaday-patch-12
akaday Oct 5, 2024
49471a9
Merge branch 'microsoft:main' into main
akaday Oct 5, 2024
b375346
Merge branch 'microsoft:main' into main
akaday Oct 6, 2024
19eccaf
build(deps-dev): bump the npm_and_yarn group across 1 directory with …
dependabot[bot] Oct 6, 2024
eb176b9
Merge pull request #9 from akaday/dependabot/npm_and_yarn/npm_and_yar…
akaday Oct 6, 2024
fb83c2f
build(deps-dev): bump the npm_and_yarn group across 1 directory with …
dependabot[bot] Oct 6, 2024
ccfb623
Merge branch 'main' into akaday-patch-12
akaday Oct 6, 2024
2ba0ca8
Merge pull request #10 from akaday/dependabot/npm_and_yarn/npm_and_ya…
akaday Oct 6, 2024
698d2e1
build(deps-dev): bump postcss
dependabot[bot] Oct 6, 2024
5a4f906
Merge pull request #11 from akaday/dependabot/npm_and_yarn/npm_and_ya…
akaday Oct 6, 2024
dbe0c1d
Merge pull request #12 from akadev1/akaday-patch-12
akaday Oct 6, 2024
eb88b24
build(deps-dev): bump postcss
dependabot[bot] Oct 6, 2024
8068f03
Merge pull request #13 from akaday/dependabot/npm_and_yarn/npm_and_ya…
akaday Oct 6, 2024
e0f0700
build(deps-dev): bump postcss
dependabot[bot] Oct 6, 2024
3728313
Merge pull request #14 from akaday/dependabot/npm_and_yarn/npm_and_ya…
akaday Oct 6, 2024
40eeee6
Merge pull request #2 from akaday/main
akaday Oct 6, 2024
b2f2e9f
Merge pull request #15 from akadev1/main
akaday Oct 6, 2024
7fba6e3
build(deps-dev): bump postcss
dependabot[bot] Oct 6, 2024
73b5a8a
Merge pull request #16 from akaday/dependabot/npm_and_yarn/npm_and_ya…
akaday Oct 6, 2024
9c97adf
Fix code scanning alert no. 10: Useless regular-expression character …
akaday Oct 6, 2024
9898963
Merge pull request #17 from akaday/autofix/alert-10-df092d5b04
akaday Oct 6, 2024
ccbb961
Fix code scanning alert no. 7: Information exposure through a stack t…
akaday Oct 6, 2024
dbbc035
Merge pull request #18 from akaday/autofix/alert-7-032607bc3b
akaday Oct 6, 2024
93805ab
Fix code scanning alert no. 11: DOM text reinterpreted as HTML
akaday Oct 6, 2024
d7f75be
Merge pull request #19 from akaday/autofix/alert-11-f5b82b0362
akaday Oct 6, 2024
bac9fb6
Fix code scanning alert no. 9: Useless regular-expression character e…
akaday Oct 6, 2024
18dc5de
Merge pull request #20 from akaday/autofix/alert-9-85e93efe3e
akaday Oct 6, 2024
42c8487
Fix code scanning alert no. 35: Prototype-polluting function
akaday Oct 6, 2024
4a623a5
Merge pull request #21 from akaday/autofix/alert-35-55afddfdd0
akaday Oct 6, 2024
70ea076
Merge branch 'main' into deps-dev
akaday Oct 6, 2024
f43a47a
Merge pull request #3 from akaday/deps-dev
akaday Oct 6, 2024
46d1295
Merge branch 'akaday:main' into main
akaday Oct 6, 2024
61605a8
build(deps): bump the npm_and_yarn group across 2 directories with 5 …
dependabot[bot] Oct 6, 2024
742183c
Merge pull request #23 from akaday/dependabot/npm_and_yarn/npm_and_ya…
akaday Oct 6, 2024
948fff9
Merge branch 'microsoft:main' into main
akaday Oct 6, 2024
3132686
Merge branch 'main' into deps-dev2
akaday Oct 6, 2024
d1449c3
Merge pull request #25 from akadev1/deps-dev2
akaday Oct 6, 2024
354ed87
Merge branch 'microsoft:main' into main
akaday Oct 7, 2024
655ac35
Merge branch 'main' into deps-dev2
akaday Oct 7, 2024
26d090a
Merge pull request #26 from akadev1/deps-dev2
akaday Oct 7, 2024
73696de
Merge branch 'microsoft:main' into main
akaday Oct 7, 2024
3e16d1c
Merge branch 'main' into continuos-integration
akaday Oct 9, 2024
1396ce3
Update Cargo.lock
akaday Oct 9, 2024
5f248fe
Update Cargo.lock
akaday Oct 9, 2024
0fda854
Merge pull request #5 from akaday/continuos-integration
akaday Oct 9, 2024
b1d4bd3
Merge branch 'akaday:main' into main
akaday Oct 9, 2024
9aec359
Merge pull request #27 from akadev1/main
akaday Oct 9, 2024
7906238
Merge branch 'main' into main
akaday Oct 12, 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
23 changes: 23 additions & 0 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: C/C++ CI

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

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: configure
run: ./configure
- name: make
run: make
- name: make check
run: make check
- name: make distcheck
run: make distcheck
75 changes: 75 additions & 0 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# This starter workflow is for a CMake project running on multiple platforms. There is a different starter workflow if you just want a single platform.
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml
name: CMake on multiple platforms

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

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
fail-fast: false

# Set up a matrix to run the following 3 configurations:
# 1. <Windows, Release, latest MSVC compiler toolchain on the default runner image, default generator>
# 2. <Linux, Release, latest GCC compiler toolchain on the default runner image, default generator>
# 3. <Linux, Release, latest Clang compiler toolchain on the default runner image, default generator>
#
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list.
matrix:
os: [ubuntu-latest, windows-latest]
build_type: [Release]
c_compiler: [gcc, clang, cl]
include:
- os: windows-latest
c_compiler: cl
cpp_compiler: cl
- os: ubuntu-latest
c_compiler: gcc
cpp_compiler: g++
- os: ubuntu-latest
c_compiler: clang
cpp_compiler: clang++
exclude:
- os: windows-latest
c_compiler: gcc
- os: windows-latest
c_compiler: clang
- os: ubuntu-latest
c_compiler: cl

steps:
- uses: actions/checkout@v4

- name: Set reusable strings
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-S ${{ github.workspace }}

- name: Build
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}

- name: Test
working-directory: ${{ steps.strings.outputs.build-output-dir }}
# Execute tests defined by the CMake configuration. Note that --build-config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest --build-config ${{ matrix.build_type }}
20 changes: 20 additions & 0 deletions .github/workflows/jekyll-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Jekyll site CI

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

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build the site in the jekyll/builder container
run: |
docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future"
2 changes: 1 addition & 1 deletion cli/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ pin-project = "1.1.0"
console = "0.15.7"
bytes = "1.4.0"
tar = "0.4.38"
[dependencies]
russh = "0.44.1"

[dev-dependencies]
russh = "0.44.1"

[build-dependencies]
serde = { version="1.0.163", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion extensions/json/build/update-grammars.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var updateGrammar = require('vscode-grammar-updater');
function adaptJSON(grammar, name, replacementScope, replaceeScope = 'json') {
grammar.name = name;
grammar.scopeName = `source${replacementScope}`;
const regex = new RegExp(`\.${replaceeScope}`, 'g');
const regex = new RegExp(`\\.${replaceeScope}`, 'g');
var fixScopeNames = function (rule) {
if (typeof rule.name === 'string') {
rule.name = rule.name.replace(regex, replacementScope);
Expand Down
12 changes: 11 additions & 1 deletion extensions/media-preview/media/videoPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,23 @@

const settings = getSettings();

function sanitizeUrl(url) {
try {
const parsedUrl = new URL(url, window.location.origin);
return parsedUrl.href;
} catch (e) {
console.error('Invalid URL:', url);
return '';
}
}

// State
let hasLoadedMedia = false;

// Elements
const video = document.createElement('video');
if (settings.src !== null) {
video.src = settings.src;
video.src = sanitizeUrl(settings.src);
}
video.playsInline = true;
video.controls = true;
Expand Down
Loading
Loading