Skip to content

Commit

Permalink
actualisation 10 09 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbansart committed Sep 10, 2024
2 parents 4d31067 + c6019f6 commit f351f97
Show file tree
Hide file tree
Showing 283 changed files with 60,514 additions and 40,765 deletions.
23 changes: 10 additions & 13 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@
// "methods": [
// "createHTML",
// "mathfield.config.createHTML",
// "MathfieldPrivate.config.createHTML"
// "_Mathfield.config.createHTML"
// ]
// }
// }
// ],
"@typescript-eslint/triple-slash-reference": 0,
"no-restricted-globals": [
"error",
"postMessage",
Expand Down Expand Up @@ -246,18 +247,14 @@
"no-this-before-super": "warn",
// "no-undef": "warn",
"no-unreachable": "warn",
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-unused-vars": [
"warn",
{ "argsIgnorePattern": "^_" }
],
"no-unused-vars": 0, // ["warn", { "argsIgnorePattern": "^_" }],
"constructor-super": "warn",

"block-scoped-var": "error",

"array-bracket-spacing": ["error", "never"],
"block-spacing": ["error", "always"],
"brace-style": ["warn", "1tbs", { "allowSingleLine": true }],
"brace-style": 0, //["warn", "1tbs", { "allowSingleLine": true }],
"prefer-const": "warn",

"valid-typeof": "error",
Expand Down Expand Up @@ -297,13 +294,13 @@
"files": ["*.ts"],
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
"warn",
{
"argsIgnorePattern": "^_"
// "varsIgnorePattern": "^_",
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
// "vars": "all",
// "args": "after-used",
// "ignoreRestSiblings": false
"args": "after-used",
"ignoreRestSiblings": false
}
],
// We use @ts-ignore to generate the .d.ts files using tsc, even though
Expand All @@ -313,7 +310,7 @@
// When used with optional chaining, eslint can give an incorrect warning
"@typescript-eslint/no-unused-expressions": "warn",
"@typescript-eslint/prefer-optional-chain": "warn",
"@typescript-eslint/prefer-nullish-coalescing": "warn",
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/naming-convention": [
"warn",
Expand Down
3 changes: 1 addition & 2 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# These are supported funding model platforms

patreon: arnog
custom: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CCB2LY5M6SM5W&source=url
custom: https://www.paypal.com/donate/?hosted_button_id=3HDGGW42AGMQN
66 changes: 38 additions & 28 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,50 +1,60 @@
## Description
> Following the template below will ensure that your issue is addressed as quickly as possible.
> If you don't follow the template, it may be closed without being addressed.
> Include code fragments or CodePen.io links to illustrate the issue. Do not include screenshots of code.
> Simplify the code fragment as much as possible. Remove anything that is not directly related to the issue.
> If you get a runtime or TypeScript error, copy the text of the error message, from the JavaScript console, for example. Do not include a screenshot of the error message.
> If the issue is with rendering of the math, please include the LaTeX code that is causing the issue as text. Do not include a screenshot of LaTeX code.
[If the issue has to do with MathJSON or the Compute Engine, please report it
here: https://github.com/cortex-js/compute-engine/issues]

[Describe the bug or feature]
> Screenshots or recording can be useful to illustrate a visual or interactive issue, however also provide a description of the problem in text.
[Include code fragments or CodePen. If you get an error, copy the text of the
error message (from the JavaScript console, for example). Include screenshots or
screen recordings to illustrate a visual or interactive issue.]
> Do not include screenshots of code, error messages or LaTeX.
[If you use Vue, React or some other framework, include a link to a minimal
project demonstrating the issue.]

[To quickly build a demo project, consider
> If you use React, Vue or some other framework, try to provide some code that replicates the issue using only plain JavaScript.
> If you can't, then include a link to a minimal project demonstrating the issue.
> This will make it **much** easier to reproduce the issue and fix it.
- (https://github.com/mindreframer/mathlive-bug-issue-templates)
- (https://github.com/mindreframer/mathlive-create-app) ]
> If the issue has to do with the Compute Engine or MathJSON, please report it
here: https://github.com/cortex-js/compute-engine/issues

## Steps to Reproduce
> If the issue is related to the documentation on cortexjs.io or the behavior of cortexjs.io, please report it here: https://github.com/cortex-js/cortexjs.io/issues
## Description

[Provide steps that are specific and repeatable]
> (Optional) Provide a brief summary of the issue.
1. [First Step]
2. [Second Step]
### Steps to Reproduce

> (Required) Provide steps that are specific and repeatable
1. [First I did this...]
2. [Then I did that...]
3. [And so on...]

### Actual Behavior

[What happens when you follow the steps above?]

[If there are any error messages, include the exact text shown. Some error
messages may be displayed in the Javascript console. Copy and paste them. Do not
include a screenshot of the error messages.]
> (Required) What happens when you follow the steps above?
### Expected Behavior

[What did you expect to happen instead?]
> (Required) What did you expect to happen instead?
> It may be obvious to you what should have happened, but if you don't state it explicitly it may not be obvious to others.
[Is this a regression: did it use to work in a previous version?]

### Environment

**MathLive version**
**MathLive version** _If using the cortexjs.io site, the version is displayed
at the bottom of the page. If using the library, the version is available by
typing `console.log(MathfieldElement.version)` in the console. Include the
output of that command here.

> Is this a regression: did it use to work in a previous version?
**Operating System** [macOS, Windows, iOS. Include the version]
**Operating System** _macOS, Windows, iOS. Include the version_

**Browser** [Safari, Chrome, IE, Firefox, etc... Try several browsers and note
if there are differences between browsers. Include the version number of the
browsers.]
**Browser** _Safari, Chrome, Edge, Firefox, etc... Try several browsers and note
if there are differences between browsers._
190 changes: 85 additions & 105 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,107 +1,87 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
day: saturday
time: "07:07"
timezone: America/Los_Angeles
open-pull-requests-limit: 10
versioning-strategy: increase
ignore:
- dependency-name: husky
versions:
- ">= 6.a, < 7"
- dependency-name: postcss
versions:
- 8.2.10
- 8.2.12
- 8.2.6
- 8.2.7
- 8.2.8
- 8.2.9
- dependency-name: rollup
versions:
- 2.38.0
- 2.38.1
- 2.38.5
- 2.39.0
- 2.40.0
- 2.41.2
- 2.42.1
- 2.43.0
- 2.44.0
- 2.45.1
- 2.45.2
- dependency-name: "@types/jest"
versions:
- 26.0.21
- 26.0.22
- dependency-name: eslint
versions:
- 7.22.0
- 7.23.0
- 7.24.0
- dependency-name: "@typescript-eslint/eslint-plugin"
versions:
- 4.14.1
- 4.15.0
- 4.15.1
- 4.15.2
- 4.16.1
- 4.17.0
- 4.18.0
- 4.19.0
- 4.20.0
- 4.21.0
- 4.22.0
- dependency-name: husky
versions:
- 5.0.9
- 5.1.1
- 5.1.3
- 5.2.0
- dependency-name: typescript
versions:
- 4.1.5
- 4.2.2
- 4.2.3
- dependency-name: ts-jest
versions:
- 26.5.0
- 26.5.1
- 26.5.2
- 26.5.3
- dependency-name: rollup-plugin-typescript2
versions:
- 0.30.0
- dependency-name: check-node-version
versions:
- 4.1.0
- dependency-name: lint-staged
versions:
- 10.5.4
- dependency-name: "@types/node"
versions:
- 14.14.22
- 14.14.27
- dependency-name: autoprefixer
versions:
- 10.2.3
- 10.2.4
- dependency-name: "@typescript-eslint/parser"
versions:
- 4.14.1
- 4.18.0
- 4.19.0
- 4.20.0
- 4.21.0
- 4.22.0
- dependency-name: "@rollup/plugin-node-resolve"
versions:
- 11.1.1
- 11.2.1
- dependency-name: "@typescript-eslint/typescript-estree"
versions:
- 4.14.1
- package-ecosystem: npm
directory: '/'
schedule:
interval: weekly
day: saturday
time: '07:07'
timezone: America/Los_Angeles
open-pull-requests-limit: 10
versioning-strategy: increase
ignore:
- dependency-name: husky
versions:
- '>= 6.a, < 7'
- dependency-name: postcss
versions:
- 8.2.10
- 8.2.12
- 8.2.6
- 8.2.7
- 8.2.8
- 8.2.9
- dependency-name: '@types/jest'
versions:
- 26.0.21
- 26.0.22
- dependency-name: eslint
versions:
- 7.22.0
- 7.23.0
- 7.24.0
- dependency-name: '@typescript-eslint/eslint-plugin'
versions:
- 4.14.1
- 4.15.0
- 4.15.1
- 4.15.2
- 4.16.1
- 4.17.0
- 4.18.0
- 4.19.0
- 4.20.0
- 4.21.0
- 4.22.0
- dependency-name: husky
versions:
- 5.0.9
- 5.1.1
- 5.1.3
- 5.2.0
- dependency-name: typescript
versions:
- 4.1.5
- 4.2.2
- 4.2.3
- dependency-name: ts-jest
versions:
- 26.5.0
- 26.5.1
- 26.5.2
- 26.5.3
- dependency-name: check-node-version
versions:
- 4.1.0
- dependency-name: lint-staged
versions:
- 10.5.4
- dependency-name: '@types/node'
versions:
- 14.14.22
- 14.14.27
- dependency-name: autoprefixer
versions:
- 10.2.3
- 10.2.4
- dependency-name: '@typescript-eslint/parser'
versions:
- 4.14.1
- 4.18.0
- 4.19.0
- 4.20.0
- 4.21.0
- 4.22.0
- dependency-name: '@typescript-eslint/typescript-estree'
versions:
- 4.14.1
27 changes: 27 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
Loading

0 comments on commit f351f97

Please sign in to comment.