Skip to content

Commit

Permalink
style: formated the whole project
Browse files Browse the repository at this point in the history
  • Loading branch information
usantos-at-wiris committed May 14, 2024
1 parent f5b0da7 commit 9904699
Show file tree
Hide file tree
Showing 330 changed files with 81,086 additions and 10,208 deletions.
24 changes: 12 additions & 12 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,32 @@ assignees: ""

## Description

*What does the bug consist in?*
_What does the bug consist in?_

## Environment

*Which version of MathType does this happen in?*
_Which version of MathType does this happen in?_

*What is the relevant software and their versions?*
_What is the relevant software and their versions?_

- *Editor (CKEditor, Froala, TinyMCE, etc.)*
- *Framework (Angular, React, etc.)*
- *Browser (Chrome, Firefox, etc.)*
- *Operating System (Windows, macOS, Ubuntu, etc.)*
- _Editor (CKEditor, Froala, TinyMCE, etc.)_
- _Framework (Angular, React, etc.)_
- _Browser (Chrome, Firefox, etc.)_
- _Operating System (Windows, macOS, Ubuntu, etc.)_

## Steps to reproduce

*What are the steps needed to reproduce the bug?*
*Please be specific.*
_What are the steps needed to reproduce the bug?_
_Please be specific._

## Expected result

*What is the expected outcome of the steps above?*
_What is the expected outcome of the steps above?_

## Actual result

*What is the actual outcome of the steps above?*
_What is the actual outcome of the steps above?_

## Other details

*Is there anything else to consider?*
_Is there anything else to consider?_
8 changes: 4 additions & 4 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
## Description

*What does this PR fix or add?*
_What does this PR fix or add?_

## Steps to reproduce

*If this PR solves a bug, include a short summary of the bug and the steps to reproduce it.*
_If this PR solves a bug, include a short summary of the bug and the steps to reproduce it._

---

Closes #X (*Associated GitHub issue, if any*)
Closes #X (_Associated GitHub issue, if any_)

[#taskid X](https://wiris.kanbanize.com/ctrl_board/2/cards/X/details/) (*Associated Kanbanize card, if any*)
[#taskid X](https://wiris.kanbanize.com/ctrl_board/2/cards/X/details/) (_Associated Kanbanize card, if any_)
14 changes: 6 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@

version: 2
updates:

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
target-branch: "master"
versioning-strategy: increase # Stategy that'll increase the version number in package.json instead of the package-lock.json
reviewers:
- "wiris/integrations"
- "wiris/integrations"
commit-message:
prefix: "npm prod" # Prefix to PR title in updating dependencies
prefix-development: "npm dev" # Prefix to PR title in updating devDependencies
include: "scope" # It'll include all the reviews and changes proposal
prefix: "npm prod" # Prefix to PR title in updating dependencies
prefix-development: "npm dev" # Prefix to PR title in updating devDependencies
include: "scope" # It'll include all the reviews and changes proposal
labels:
- "type:dependencies"
- "type:dependencies"
ignore:
- dependency-name: "@ckeditor/ckeditor5-core"
- dependency-name: "@ckeditor/ckeditor5-engine"
Expand All @@ -26,4 +24,4 @@ updates:
- dependency-name: "@ckeditor/ckeditor5-editor-classic"
- dependency-name: "@ckeditor/ckeditor5-essentials"
- dependency-name: "@ckeditor/ckeditor5-paragraph"
- dependency-name: "@ckeditor/ckeditor5-theme-lark"
- dependency-name: "@ckeditor/ckeditor5-theme-lark"
18 changes: 11 additions & 7 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,16 @@
name: Deploy staging

# Controls when the action will run
on:
push
on: push

# Array of jobs to run in this workflow
jobs:

prepare:
name: Prepare the workflow
runs-on: ubuntu-latest
outputs:
branches: ${{ steps.get_branches.outputs.branches }}
steps:

- name: Checkout
uses: actions/checkout@v2

Expand All @@ -46,7 +43,6 @@ jobs:
matrix:
branch: ${{ fromJson(needs.prepare.outputs.branches) }}
steps:

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
Expand Down Expand Up @@ -120,7 +116,16 @@ jobs:
fail-fast: false
matrix:
branch: ${{ fromJson(needs.prepare.outputs.branches) }}
editor: ["ckeditor4", "ckeditor5", "froala", "generic", "tinymce5", "tinymce6", "viewer"]
editor:
[
"ckeditor4",
"ckeditor5",
"froala",
"generic",
"tinymce5",
"tinymce6",
"viewer",
]
framework: ["html", "vue"]
exclude:
- framework: vue
Expand Down Expand Up @@ -221,7 +226,6 @@ jobs:
- deploy-staging-common
- deploy-staging
steps:

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/dismantle-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,14 @@
name: Dismantle staging

# Controls when the action will run
on:
delete
on: delete

# Array of jobs to run in this workflow
jobs:

delete:
if: github.event.ref_type == 'branch'
runs-on: ubuntu-latest
steps:

- name: Delete S3 files
run: |
echo "Clean up for branch ${{ github.event.ref }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jsdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
uses: actions/github-script@v3
with:
script: |
core.setFailed('jsdoc: main index file is empty')
core.setFailed('jsdoc: main index file is empty')
# 06. Upload the jsdoc site to github artifacts
- name: Upload artifacts
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/publish-wordpress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ on:
Type `publish_aws` to do publish to S3, any other value otherwise.
required: false
default: ""

4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
runs-on: ubuntu-latest

# If we want to publish the WordPress plugin, which is not needed on npm.
if: contains(github.event.inputs, 'wordpress')
if: contains(github.event.inputs, 'wordpress')

steps:
- uses: actions/checkout@v3
Expand All @@ -72,7 +72,7 @@ jobs:
- name: Create Icons folder inside the build one
run: |
cp -a packages/wordpress/src/icons/ packages/wordpress/build/icons/
# Create a zip file with the files needed to integrate
# Mathtype for WordPress
- name: Zip integration
Expand Down
22 changes: 10 additions & 12 deletions .htmlvalidate.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
module.exports = {
"extends": [
"htmlvalidate:recommended"
],
extends: ["htmlvalidate:recommended"],

"rules": {
// Throws error if the closure is bad: wrong order, not closed, closed but
// not initialyzed, etc.
"close-order": "error",
// Disables having some elements to be stricted with the closure for react html.
// TODO: Study a better wat to do it in react apps and delete the rule.
"void-style": "off"
}
}
rules: {
// Throws error if the closure is bad: wrong order, not closed, closed but
// not initialyzed, etc.
"close-order": "error",
// Disables having some elements to be stricted with the closure for react html.
// TODO: Study a better wat to do it in react apps and delete the rule.
"void-style": "off",
},
};

0 comments on commit 9904699

Please sign in to comment.