Skip to content

Commit c3d9720

Browse files
committed
Merge branch 'main' into drag_offset
2 parents 9a25bf8 + d8ad8f4 commit c3d9720

File tree

401 files changed

+24712
-28482
lines changed

Some content is hidden

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

401 files changed

+24712
-28482
lines changed

.eslintignore

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
examples/
2+
node_modules
3+
review
4+
**/build
5+
**/dist
6+
**/lib
7+
**/node_modules
8+
**/static
9+
**/typings
10+
**/types
11+
coverage
12+
*.map.js
13+
*.bundle.js
14+
*.config.js
15+
.eslintrc.js
16+
17+
# jetbrains IDE stuff
18+
.idea/
19+
20+
# ms IDE stuff
21+
.history/
22+
.vscode/

.eslintrc.js

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es6: true,
5+
commonjs: true,
6+
node: true
7+
},
8+
globals: {
9+
context: 'readonly',
10+
describe: 'readonly',
11+
it: 'readonly',
12+
before: 'readonly',
13+
after: 'readonly',
14+
beforeAll: 'readonly',
15+
afterAll: 'readonly',
16+
beforeEach: 'readonly',
17+
afterEach: 'readonly'
18+
},
19+
root: true,
20+
extends: [
21+
'eslint:recommended',
22+
'plugin:@typescript-eslint/recommended',
23+
'prettier'
24+
],
25+
parser: '@typescript-eslint/parser',
26+
parserOptions: {
27+
ecmaVersion: 'ES6',
28+
project: ['./tsconfigbase.json']
29+
},
30+
plugins: ['@typescript-eslint'],
31+
rules: {
32+
'@typescript-eslint/no-unused-vars': ['warn', { args: 'none' }],
33+
'@typescript-eslint/no-use-before-define': 'off',
34+
'@typescript-eslint/no-explicit-any': 'off',
35+
'@typescript-eslint/no-non-null-assertion': 'off',
36+
'@typescript-eslint/no-namespace': 'off',
37+
'@typescript-eslint/interface-name-prefix': 'off',
38+
'@typescript-eslint/explicit-function-return-type': 'off',
39+
'@typescript-eslint/ban-ts-comment': ['warn', { 'ts-ignore': true }],
40+
'@typescript-eslint/ban-types': 'warn',
41+
'@typescript-eslint/no-non-null-asserted-optional-chain': 'warn',
42+
'@typescript-eslint/no-var-requires': 'off',
43+
'@typescript-eslint/no-empty-interface': 'off',
44+
'@typescript-eslint/triple-slash-reference': 'warn',
45+
'@typescript-eslint/no-inferrable-types': 'off',
46+
camelcase: 'warn',
47+
'no-inner-declarations': 'off',
48+
'no-prototype-builtins': 'off',
49+
'no-control-regex': 'warn',
50+
'no-undef': 'off',
51+
'no-case-declarations': 'warn',
52+
'no-useless-escape': 'off',
53+
'prefer-const': 'off',
54+
'sort-imports': [
55+
'error',
56+
{
57+
ignoreCase: true,
58+
ignoreDeclarationSort: true,
59+
ignoreMemberSort: false,
60+
memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
61+
allowSeparatedGroups: false
62+
}
63+
]
64+
}
65+
};

.git-blame-ignore-revs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
78028483abe79f559bcb789b94e067ce3d64624f

.github/scripts/verdaccio.yml

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#
2+
# This is based on verdaccio's default config file. It allows all users
3+
# to do anything, so don't use it on production systems.
4+
#
5+
# Look here for more config file examples:
6+
# https://github.com/verdaccio/verdaccio/tree/master/conf
7+
#
8+
9+
# path to a directory with all packages
10+
storage: ./storage
11+
12+
auth:
13+
htpasswd:
14+
file: ./htpasswd
15+
# Maximum amount of users allowed to register, defaults to "+inf".
16+
# You can set this to -1 to disable registration.
17+
#max_users: 1000
18+
19+
# a list of other known repositories we can talk to
20+
uplinks:
21+
npmjs:
22+
url: https://registry.npmjs.org/
23+
max_fails: 40
24+
maxage: 30m
25+
timeout: 60s
26+
agent_options:
27+
keepAlive: true
28+
# Avoid exceeding the max sockets that are allocated per VM.
29+
# https://docs.microsoft.com/en-us/azure/app-service/app-service-web-nodejs-best-practices-and-troubleshoot-guide#my-node-application-is-making-excessive-outbound-calls
30+
maxSockets: 40
31+
maxFreeSockets: 10
32+
33+
packages:
34+
'@*/*':
35+
# scoped packages
36+
access: $all
37+
publish: $all
38+
proxy: npmjs
39+
40+
'**':
41+
# allow all users (including non-authenticated users) to read and
42+
# publish all packages
43+
#
44+
# you can specify usernames/groupnames (depending on your auth plugin)
45+
# and three keywords: "$all", "$anonymous", "$authenticated"
46+
access: $all
47+
48+
# allow all known users to publish packages
49+
# (anyone can register by default, remember?)
50+
publish: $all
51+
52+
# if package is not available locally, proxy requests to 'npmjs' registry
53+
proxy: npmjs
54+
55+
# log settings
56+
logs:
57+
- { type: stdout, format: pretty, level: warn }
58+
#- {type: file, path: verdaccio.log, level: info}
59+
60+
# See https://github.com/verdaccio/verdaccio/issues/301
61+
server:
62+
keepAliveTimeout: 0

.github/workflows/enforce-label.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Enforce PR label
2+
3+
on:
4+
pull_request:
5+
types: [labeled, unlabeled, opened, edited, synchronize]
6+
jobs:
7+
enforce-label:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
pull-requests: write
11+
steps:
12+
- name: enforce-triage-label
13+
uses: jupyterlab/maintainer-tools/.github/actions/enforce-label@v1

.github/workflows/tests.yml

+200
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,200 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
name: JS
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os: [ubuntu-latest, windows-latest, macos-latest]
16+
browser: [chrome-headless, firefox-headless]
17+
exclude:
18+
# macos and firefox-headless seems to consistently fail.
19+
- os: macos-latest
20+
browser: firefox-headless
21+
runs-on: ${{ matrix.os }}
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Set up Node
25+
uses: actions/setup-node@v1
26+
with:
27+
node-version: '14.x'
28+
29+
# Cache yarn
30+
- name: Get yarn cache directory path
31+
id: yarn-cache-dir-path
32+
run: echo "::set-output name=dir::$(yarn cache dir)"
33+
- name: Cache yarn
34+
uses: actions/cache@v2
35+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
36+
with:
37+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
38+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
39+
restore-keys: |
40+
${{ runner.os }}-yarn-
41+
42+
- name: Install dependencies
43+
shell: bash
44+
run: |
45+
set -eux
46+
npm install -g yarn
47+
yarn
48+
49+
- name: Build Source
50+
shell: bash
51+
run: |
52+
set -eux
53+
yarn build
54+
yarn build:test
55+
56+
- name: Run Tests
57+
run: |
58+
yarn run test:${{ matrix.browser }}
59+
60+
build:
61+
runs-on: ubuntu-latest
62+
steps:
63+
- uses: actions/checkout@v2
64+
- name: Set up Node
65+
uses: actions/setup-node@v1
66+
with:
67+
node-version: '14.x'
68+
69+
# Cache yarn
70+
- name: Get yarn cache directory path
71+
id: yarn-cache-dir-path
72+
run: echo "::set-output name=dir::$(yarn cache dir)"
73+
- name: Cache yarn
74+
uses: actions/cache@v2
75+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
76+
with:
77+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
78+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
79+
restore-keys: |
80+
${{ runner.os }}-yarn-
81+
82+
- name: Install dependencies
83+
shell: bash
84+
run: |
85+
set -eux
86+
npm install -g yarn
87+
yarn
88+
89+
- name: Check linters
90+
shell: bash
91+
run: |
92+
set -eux
93+
yarn lint:check
94+
95+
- name: Build Source
96+
shell: bash
97+
run: |
98+
set -eux
99+
yarn build
100+
yarn build:test
101+
102+
- name: Test Examples
103+
shell: bash
104+
run: |
105+
set -eux
106+
yarn minimize
107+
yarn build:examples
108+
yarn test:examples
109+
110+
- name: Build Docs
111+
run: |
112+
set -eux
113+
yarn clean
114+
yarn docs
115+
116+
- name: Publish with Verdaccio
117+
run: |
118+
set -eux
119+
npm install -g verdaccio
120+
verdaccio --config .github/scripts/verdaccio.yml &
121+
npm set registry http://localhost:4873/
122+
yarn config set registry http://localhost:4873/
123+
git config --global user.email "[email protected]"
124+
git config --global user.name "Your Name"
125+
yarn run update:versions patch --yes
126+
git commit -a -m "Update versions"
127+
yarn run publish
128+
129+
check_release:
130+
runs-on: ubuntu-latest
131+
strategy:
132+
matrix:
133+
group: [check_release, link_check]
134+
steps:
135+
- name: Checkout
136+
uses: actions/checkout@v2
137+
138+
- name: Set up Node
139+
uses: actions/setup-node@v1
140+
with:
141+
node-version: '14.x'
142+
143+
- name: Install Python
144+
uses: actions/setup-python@v2
145+
with:
146+
python-version: 3.9
147+
architecture: "x64"
148+
149+
# Cache pip
150+
- name: Get Date
151+
id: get-date
152+
run: |
153+
echo "::set-output name=date::$(/bin/date -u "+%Y%m%d")"
154+
shell: bash
155+
156+
- name: Get pip cache dir
157+
id: pip-cache
158+
run: |
159+
echo "::set-output name=dir::$(pip cache dir)"
160+
161+
- name: Cache pip
162+
uses: actions/cache@v2
163+
with:
164+
path: ${{ steps.pip-cache.outputs.dir }}
165+
key: ${{ runner.os }}-pip-${{ steps.get-date.outputs.date }}
166+
restore-keys: |
167+
${{ runner.os }}-pip-
168+
${{ runner.os }}-pip-
169+
170+
# Cache yarn
171+
- name: Get yarn cache directory path
172+
id: yarn-cache-dir-path
173+
run: echo "::set-output name=dir::$(yarn cache dir)"
174+
- name: Cache yarn
175+
uses: actions/cache@v2
176+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
177+
with:
178+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
179+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
180+
restore-keys: |
181+
${{ runner.os }}-yarn-
182+
183+
- name: Cache checked links
184+
if: ${{ matrix.group == 'link_check' }}
185+
uses: actions/cache@v2
186+
with:
187+
path: ~/.cache/pytest-link-check
188+
key: ${{ runner.os }}-linkcheck-${{ hashFiles('**/*.md') }}-md-links
189+
restore-keys: |
190+
${{ runner.os }}-linkcheck-
191+
192+
- name: Check Release
193+
if: ${{ matrix.group == 'check_release' }}
194+
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v1
195+
with:
196+
token: ${{ secrets.GITHUB_TOKEN }}
197+
198+
- name: Run Link Check
199+
if: ${{ matrix.group == 'link_check' }}
200+
uses: jupyter-server/jupyter_releaser/.github/actions/check-links@v1

.gitignore

+11
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ build
99
review/api/temp
1010
*.tsbuildinfo
1111

12+
# copied changelog file
13+
docs/source/changelog.md
14+
15+
# generated api files
16+
docs/source/api
17+
18+
# generated example files
19+
docs/source/examples
20+
1221
# jetbrains ide stuff
1322
*.iml
1423
.idea/
@@ -18,3 +27,5 @@ review/api/temp
1827
.history
1928
.vscode
2029

30+
.jupyter_releaser_checkout
31+
.eslintcache

0 commit comments

Comments
 (0)