Skip to content

Commit 2feb7ef

Browse files
authored
Merge pull request #155 from cnblogs/dev
feat: extract image from img tag
2 parents b6c1101 + 898422a commit 2feb7ef

File tree

196 files changed

+6884
-6905
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+6884
-6905
lines changed

.eslintrc.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"prettier/prettier": [
1313
"error",
1414
{
15-
"endOfLine": "auto"
15+
"endOfLine": "auto",
16+
"semi": false
1617
}
1718
]
1819
},
@@ -24,5 +25,5 @@
2425
"node": true
2526
}
2627
}
27-
]
28+
]
2829
}

.github/workflows/build-check.yml

Lines changed: 104 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -1,114 +1,114 @@
11
name: Build and check the code format
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request_target:
8-
types:
9-
- opened
10-
- synchronize
11-
- reopened
12-
- edited
4+
push:
5+
branches:
6+
- main
7+
pull_request_target:
8+
types:
9+
- opened
10+
- synchronize
11+
- reopened
12+
- edited
1313
env:
14-
GITLAB_NPM_TOKEN: ${{secrets.GITLAB_NPM_TOKEN}}
14+
GITLAB_NPM_TOKEN: ${{secrets.GITLAB_NPM_TOKEN}}
1515
jobs:
16-
lint:
17-
permissions: read-all
18-
runs-on: ubuntu-latest
19-
strategy:
20-
matrix:
21-
node-version: [16.x]
22-
steps:
23-
- uses: actions/checkout@v2
24-
with:
25-
ref: ${{ github.event.pull_request.head.sha }}
26-
- name: Use Node.js ${{ matrix.node-version }}
27-
uses: actions/setup-node@v2
28-
with:
29-
node-version: ${{ matrix.node-version }}
30-
cache: "npm"
31-
- name: "Installing Dependencies"
32-
run: npm ci
33-
- name: "Linting"
34-
run: npm run lint
35-
- name: "Testing(Unit)"
36-
run: npm run test:unit
37-
package:
38-
strategy:
39-
matrix:
40-
include:
41-
- os: windows-latest
42-
platform: win32
43-
arch: x64
44-
npm_config_arch: x64
45-
- os: windows-latest
46-
platform: win32
47-
arch: ia32
48-
npm_config_arch: ia32
49-
- os: windows-latest
50-
platform: win32
51-
arch: arm64
52-
npm_config_arch: arm
53-
- os: ubuntu-latest
54-
platform: linux
55-
arch: x64
56-
npm_config_arch: x64
57-
- os: ubuntu-latest
58-
platform: linux
59-
arch: arm64
60-
npm_config_arch: arm64
61-
- os: ubuntu-latest
62-
platform: linux
63-
arch: armhf
64-
npm_config_arch: arm
65-
- os: ubuntu-latest
66-
platform: alpine
67-
arch: x64
68-
npm_config_arch: x64
69-
- os: macos-latest
70-
platform: darwin
71-
arch: x64
72-
npm_config_arch: x64
73-
- os: macos-latest
74-
platform: darwin
75-
arch: arm64
76-
npm_config_arch: arm64
77-
runs-on: ${{ matrix.os }}
78-
needs: lint
79-
env:
80-
npm_config_arch: ${{ matrix.npm_config_arch }}
81-
steps:
82-
- uses: actions/checkout@v2
83-
with:
84-
ref: ${{ github.event.pull_request.head.sha }}
85-
- name: Use Node.js
86-
uses: actions/setup-node@v2
87-
with:
88-
node-version: 16.x
89-
cache: "npm"
16+
lint:
17+
permissions: read-all
18+
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
node-version: [16.x]
22+
steps:
23+
- uses: actions/checkout@v2
24+
with:
25+
ref: ${{ github.event.pull_request.head.sha }}
26+
- name: Use Node.js ${{ matrix.node-version }}
27+
uses: actions/setup-node@v2
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
cache: 'npm'
31+
- name: 'Installing Dependencies'
32+
run: npm ci
33+
- name: 'Linting'
34+
run: npm run lint
35+
- name: 'Testing(Unit)'
36+
run: npm run test:unit
37+
package:
38+
strategy:
39+
matrix:
40+
include:
41+
- os: windows-latest
42+
platform: win32
43+
arch: x64
44+
npm_config_arch: x64
45+
- os: windows-latest
46+
platform: win32
47+
arch: ia32
48+
npm_config_arch: ia32
49+
- os: windows-latest
50+
platform: win32
51+
arch: arm64
52+
npm_config_arch: arm
53+
- os: ubuntu-latest
54+
platform: linux
55+
arch: x64
56+
npm_config_arch: x64
57+
- os: ubuntu-latest
58+
platform: linux
59+
arch: arm64
60+
npm_config_arch: arm64
61+
- os: ubuntu-latest
62+
platform: linux
63+
arch: armhf
64+
npm_config_arch: arm
65+
- os: ubuntu-latest
66+
platform: alpine
67+
arch: x64
68+
npm_config_arch: x64
69+
- os: macos-latest
70+
platform: darwin
71+
arch: x64
72+
npm_config_arch: x64
73+
- os: macos-latest
74+
platform: darwin
75+
arch: arm64
76+
npm_config_arch: arm64
77+
runs-on: ${{ matrix.os }}
78+
needs: lint
79+
env:
80+
npm_config_arch: ${{ matrix.npm_config_arch }}
81+
steps:
82+
- uses: actions/checkout@v2
83+
with:
84+
ref: ${{ github.event.pull_request.head.sha }}
85+
- name: Use Node.js
86+
uses: actions/setup-node@v2
87+
with:
88+
node-version: 16.x
89+
cache: 'npm'
9090

91-
- name: "Installing Dependencies"
92-
run: npm ci
91+
- name: 'Installing Dependencies'
92+
run: npm ci
9393

94-
- name: Building
95-
run: npm run package -- --env CLIENTID=${{ secrets.OAUTHCLIENTID }} --env CLIENTSECRET=${{ secrets.OAUTHCLIENTSECRET }} && npm run ui:package
94+
- name: Building
95+
run: npm run package -- --env CLIENTID=${{ secrets.OAUTHCLIENTID }} --env CLIENTSECRET=${{ secrets.OAUTHCLIENTSECRET }} && npm run ui:package
9696

97-
- name: "Versioning"
98-
id: version
99-
shell: bash
100-
run: echo "VERSION=1.0.0-beta.$(date +%s)" >> $GITHUB_OUTPUT
97+
- name: 'Versioning'
98+
id: version
99+
shell: bash
100+
run: echo "VERSION=1.0.0-beta.$(date +%s)" >> $GITHUB_OUTPUT
101101

102-
- id: targeting
103-
name: Targeting
104-
shell: pwsh
105-
run: echo "target=${{ matrix.platform }}-${{ matrix.arch }}" >> $env:GITHUB_OUTPUT
102+
- id: targeting
103+
name: Targeting
104+
shell: pwsh
105+
run: echo "target=${{ matrix.platform }}-${{ matrix.arch }}" >> $env:GITHUB_OUTPUT
106106

107-
- name: Packaging
108-
id: packaging
109-
run: |
110-
npx @vscode/vsce package --pre-release --target ${{ steps.targeting.outputs.target }} --no-update-package-json --no-git-tag-version ${{ steps.version.outputs.VERSION }}
111-
- uses: actions/upload-artifact@v2
112-
with:
113-
name: ${{ steps.targeting.outputs.target }}
114-
path: "*.vsix"
107+
- name: Packaging
108+
id: packaging
109+
run: |
110+
npx @vscode/vsce package --pre-release --target ${{ steps.targeting.outputs.target }} --no-update-package-json --no-git-tag-version ${{ steps.version.outputs.VERSION }}
111+
- uses: actions/upload-artifact@v2
112+
with:
113+
name: ${{ steps.targeting.outputs.target }}
114+
path: '*.vsix'

0 commit comments

Comments
 (0)