-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
…d into pr/Yokozuna59/4751 * 'add-pie-langium-parser' of github.com:Yokozuna59/mermaid: (48 commits) make pie parser async Changes to gantt.html 1. Added a Gantt diagram that demonstrates to users that hashtages and semicolons can be added to titles, sections, and task data. Changes to gantt.spec.js 1. Added unit tests to ensure that semicolons and hashtags didn't break the functionality of the gantt diagram when used in titles, sections or task data. Changes to /parser/gantt.spec.js 1. Added rendering tests to ensure that semicolons and hashtags in titles, sections, and task data didn't break the rendering of Gantt diagrams. perf: prevent adding multiple DOMPurify hooks Update docs chore: Update tests Fix types refactor: Make parser.parse async refactor: Support async parsers Add `Diagram.fromText` Lint Remove echo RefTest Echo event Update cypress Fix applitools Fix applitools add sequenceDiagram link e2e test fix sequence diagram popup Changes to gantt.jison 1. Consistent spacing on line 30 Changes to gantt.jison 1. Removed typo Changes to gnatt.jison 1. Removed the hash and semicolon symbols from the title regex to allow for their use. 2. Removed the hash and semicolon symbols from the section regex to allow for their use. 3. Removed the hash and semicolon symbols for the taskTxt regex to allow for their use. I did not remove the colon because the parser fails to recognize when the actual taskData begins if that distinctions isn't kept. 4. Removed the regex \#[^\n]* which skipped comments to fix some bugs with hash symbols in the taskTxt. I tested this changed by putting it back and using the comment to see if it was recognized as a comment, but I would receive a syntax error and the diagram would not be rendered. So, I think we can safely remove that line, BUT it would be best practice if someone else tested this change to ensure that this will not break anyone's Gantt diagrams. ...
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ const MERMAID_CONFIG_DIAGRAM_KEYS = [ | |
'gitGraph', | ||
'c4', | ||
'sankey', | ||
'packet', | ||
] as const; | ||
|
||
/** | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { defineConfig } from 'cypress'; | ||
import { addMatchImageSnapshotPlugin } from 'cypress-image-snapshot/plugin'; | ||
import coverage from '@cypress/code-coverage/task'; | ||
import eyesPlugin from '@applitools/eyes-cypress'; | ||
export default eyesPlugin( | ||
defineConfig({ | ||
projectId: 'n2sma2', | ||
viewportWidth: 1440, | ||
viewportHeight: 1024, | ||
e2e: { | ||
specPattern: 'cypress/integration/**/*.{js,ts}', | ||
setupNodeEvents(on, config) { | ||
coverage(on, config); | ||
on('before:browser:launch', (browser, launchOptions) => { | ||
if (browser.name === 'chrome' && browser.isHeadless) { | ||
launchOptions.args.push('--window-size=1440,1024', '--force-device-scale-factor=1'); | ||
} | ||
return launchOptions; | ||
}); | ||
addMatchImageSnapshotPlugin(on, config); | ||
// copy any needed variables from process.env to config.env | ||
config.env.useAppli = process.env.USE_APPLI ? true : false; | ||
|
||
// do not forget to return the changed config object! | ||
return config; | ||
}, | ||
}, | ||
video: false, | ||
}) | ||
); |