Skip to content

Commit

Permalink
Merge branch 'master' into daisyUI
Browse files Browse the repository at this point in the history
* master: (25 commits)
  chore(deps-dev): bump typescript from 4.4.2 to 4.4.3
  chore(deps-dev): bump svelte from 3.42.4 to 3.42.5
  chore(deps): bump js-base64 from 3.6.2 to 3.7.0
  chore(deps): bump node from 16.8.0 to 16.9.0
  Skip beta deploy
  [ImgBot] Optimize images
  Dont allow lookbehind in regexp
  Fix no lookbehinds in comments
  chore(deps-dev): bump tailwindcss from 2.2.11 to 2.2.15
  chore(deps-dev): bump eslint-plugin-svelte3 from 3.2.0 to 3.2.1
  chore(deps-dev): bump prettier from 2.3.2 to 2.4.0
  Test deploy on PRs
  Fix manifest issue
  Update node
  Add back Highlighting. mermaid-js#340
  chore(deps-dev): bump @typescript-eslint/eslint-plugin
  chore(deps-dev): bump @typescript-eslint/parser from 4.30.0 to 4.31.0
  chore(deps): bump js-base64 from 3.6.1 to 3.6.2
  chore(deps-dev): bump tailwindcss from 2.2.9 to 2.2.11
  chore(deps): bump node from 14.17.0 to 16.8.0
  ...
  • Loading branch information
sidharthv96 committed Sep 17, 2021
2 parents 2b757cc + 548f320 commit d2673d5
Show file tree
Hide file tree
Showing 14 changed files with 268 additions and 108 deletions.
5 changes: 3 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
// 'plugin:@typescript-eslint/recommended-requiring-type-checking',
'prettier'
],
plugins: ['svelte3', 'tailwindcss', '@typescript-eslint'],
plugins: ['svelte3', 'tailwindcss', '@typescript-eslint', 'es'],
ignorePatterns: [
'docs/*',
'*.cjs',
Expand Down Expand Up @@ -42,6 +42,7 @@ module.exports = {
}
],
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off'
'@typescript-eslint/no-unsafe-assignment': 'off',
'es/no-regexp-lookbehind-assertions': 'error'
}
};
22 changes: 17 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
version: 2
updates:
- package-ecosystem: 'npm'
directory: '/'
target-branch: 'develop'
- package-ecosystem: docker
directory: /
target-branch: develop
schedule:
interval: 'weekly'
day: 'friday'
interval: weekly
day: friday
- package-ecosystem: github-actions
directory: /
target-branch: develop
schedule:
interval: weekly
day: friday
- package-ecosystem: npm
directory: /
target-branch: develop
schedule:
interval: weekly
day: friday
1 change: 1 addition & 0 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
jobs:
cypress-run:
runs-on: ubuntu-latest
# Update after https://github.com/cypress-io/cypress-docker-images/issues/487
container: cypress/browsers:node14.16.0-chrome90-ff88

steps:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ on:
pull_request:
branches:
- master
- develop
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '16'

- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -45,6 +46,7 @@ jobs:
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
- uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
exempt-issue-labels: 'retained'
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Stop : press ctrl + c
# or
# docker stop mermaid-live-editor
FROM node:14.17.0 as mermaid-live-editor-builder
FROM node:16.9.0 as mermaid-live-editor-builder
COPY --chown=node:node . /home
WORKDIR /home
RUN yarn install
Expand Down
21 changes: 11 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,43 +15,44 @@
},
"devDependencies": {
"@cypress/snapshot": "^2.1.7",
"@sveltejs/adapter-static": "1.0.0-next.17",
"@sveltejs/adapter-static": "1.0.0-next.18",
"@sveltejs/kit": "1.0.0-next.147",
"@types/mermaid": "^8.2.7",
"@typescript-eslint/eslint-plugin": "^4.30.0",
"@typescript-eslint/parser": "^4.30.0",
"autoprefixer": "^10.3.3",
"@typescript-eslint/eslint-plugin": "^4.31.0",
"@typescript-eslint/parser": "^4.31.0",
"autoprefixer": "^10.3.4",
"chai": "^4.3.4",
"cssnano": "^5.0.8",
"cypress": "8.3.1",
"cypress-localstorage-commands": "^1.5.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-cypress": "^2.11.3",
"eslint-plugin-es": "^4.1.0",
"eslint-plugin-mocha": "^9.0.0",
"eslint-plugin-postcss-modules": "^1.2.1",
"eslint-plugin-svelte3": "^3.2.0",
"eslint-plugin-svelte3": "^3.2.1",
"eslint-plugin-tailwindcss": "^1.14.3",
"husky": "^7.0.2",
"lint-staged": "^11.1.2",
"mocha": "^9.1.1",
"postcss": "^8.3.6",
"postcss-load-config": "^3.1.0",
"prettier": "~2.3.2",
"prettier": "~2.4.0",
"prettier-plugin-svelte": "^2.4.0",
"svelte": "^3.42.4",
"svelte": "^3.42.5",
"svelte-preprocess": "^4.8.0",
"tailwindcss": "^2.2.9",
"tailwindcss": "^2.2.15",
"tslib": "^2.3.1",
"typescript": "^4.4.2"
"typescript": "^4.4.3"
},
"type": "module",
"dependencies": {
"@analytics/google-analytics": "^0.5.3",
"@macfja/svelte-persistent-store": "^1.2.0",
"daisyui": "^1.14.0",
"analytics": "^0.7.14",
"js-base64": "^3.6.1",
"js-base64": "^3.7.0",
"mermaid": "^8.12.1",
"moment": "^2.29.1",
"monaco-editor": "^0.27.0",
Expand Down
2 changes: 1 addition & 1 deletion src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
name="og:image"
content="https://github.com/mermaid-js/mermaid/raw/develop/img/header.png"
/>
<link rel="canonical" href="https://mermaid-js.github.io/mermaid-live-editor/" />
<link rel="canonical" href="https://mermaid.live" />
<meta
name="description"
content="Simplify documentation and avoid heavy tools. Open source Visio Alternative. Commonly used for explaining your code! Mermaid is a simple markdown-like script language for generating charts from text via javascript."
Expand Down
22 changes: 11 additions & 11 deletions src/lib/components/editor/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export const initEditor = (monacoEditor): void => {
[/^\s*stateDiagram(-v2)?/, 'typeKeyword', 'stateDiagram'],
[/^\s*erDiagram/, 'typeKeyword', 'erDiagram'],
[/^\s*requirement(Diagram)?/, 'typeKeyword', 'requirementDiagram'],
[/%%.*(?<!%%)$/, 'comment']
[/%%[^$]([^%]*(?!%%$)%?)*$/, 'comment']
],
gitGraph: [
[/option(?=s)/, { token: 'typeKeyword', next: 'optionsGitGraph' }],
Expand All @@ -170,7 +170,7 @@ export const initEditor = (monacoEditor): void => {
}
}
],
[/%%.*(?<!%%)$/, 'comment'],
[/%%[^$]([^%]*(?!%%$)%?)*$/, 'comment'],
[/".*?"/, 'string'],
[/\^/, 'delimiter.bracket']
],
Expand Down Expand Up @@ -203,7 +203,7 @@ export const initEditor = (monacoEditor): void => {
[/".*?"/, 'string'],
[/\s*\d+/, 'number'],
[/:/, 'delimiter.bracket'],
[/%%.*(?<!%%)$/, 'comment']
[/%%[^$]([^%]*(?!%%$)%?)*$/, 'comment']
],
flowchart: [
[/[ox]?(--+|==+)[ox]/, 'transition'],
Expand All @@ -229,7 +229,7 @@ export const initEditor = (monacoEditor): void => {
[/:::/, 'transition'],
[/[;&]/, 'delimiter.bracket'],
[/".*?"/, 'string'],
[/%%.*(?<!%%)$/, 'comment']
[/%%[^$]([^%]*(?!%%$)%?)*$/, 'comment']
],
sequenceDiagram: [
[
Expand All @@ -244,7 +244,7 @@ export const initEditor = (monacoEditor): void => {
],
[/(--?>?>|--?[)x])[+-]?/, 'transition'],
[/(:)([^:\n]*?$)/, ['delimiter.bracket', 'string']],
[/%%.*(?<!%%)$/, 'comment']
[/%%[^$]([^%]*(?!%%$)%?)*$/, 'comment']
],
classDiagram: [
[/(?!class\s)([a-zA-Z]+)(\s+[a-zA-Z]+)/, ['type', 'variable']],
Expand All @@ -260,7 +260,7 @@ export const initEditor = (monacoEditor): void => {
}
}
],
[/%%.*(?<!%%)$/, 'comment'],
[/%%[^$]([^%]*(?!%%$)%?)*$/, 'comment'],
[/(<<)(.+?)(>>)/, ['delimiter.bracket', 'annotation', 'delimiter.bracket']],
[/".*?"/, 'string'],
[/:::/, 'transition'],
Expand Down Expand Up @@ -292,7 +292,7 @@ export const initEditor = (monacoEditor): void => {
],
[/,/, 'delimiter.bracket'],
[/(^\s*.+?)(:)([^:]*?)$/, ['string', 'delimiter.bracket', 'variable']],
[/%%.*(?<!%%)$/, 'comment']
[/%%[^$]([^%]*(?!%%$)%?)*$/, 'comment']
],
gantt: [
[/(title)(.*)/, ['keyword', 'string']],
Expand All @@ -307,7 +307,7 @@ export const initEditor = (monacoEditor): void => {
}
],
[/(^\s*.*?)(:)/, ['string', 'delimiter.bracket']],
[/%%.*(?<!%%)$/, 'comment'],
[/%%[^$]([^%]*(?!%%$)%?)*$/, 'comment'],
[/:/, 'delimiter.bracket']
],
stateDiagram: [
Expand All @@ -329,7 +329,7 @@ export const initEditor = (monacoEditor): void => {
[/".*?"/, 'string'],
[/(:)([^:\n]*?$)/, ['delimiter.bracket', 'string']],
[/{|}/, 'delimiter.bracket'],
[/%%.*(?<!%%)$/, 'comment'],
[/%%[^$]([^%]*(?!%%$)%?)*$/, 'comment'],
[/-->/, 'transition'],
[/\[.*?]/, 'string']
],
Expand All @@ -343,7 +343,7 @@ export const initEditor = (monacoEditor): void => {
[/(:)(.*?$)/, ['delimiter.bracket', 'string']],
[/:|{|}/, 'delimiter.bracket'],
[/([a-zA-Z]+)(\s+[a-zA-Z]+)/, ['type', 'variable']],
[/%%.*(?<!%%)$/, 'comment'],
[/%%[^$]([^%]*(?!%%$)%?)*$/, 'comment'],
[/[a-zA-Z_-][\w$]*/, 'variable']
],
requirementDiagram: [
Expand All @@ -359,7 +359,7 @@ export const initEditor = (monacoEditor): void => {
}
],
[/:|{|}|\//, 'delimiter.bracket'],
[/%%.*(?<!%%)$/, 'comment'],
[/%%[^$]([^%]*(?!%%$)%?)*$/, 'comment'],
[/".*?"/, 'string']
]
}
Expand Down
2 changes: 2 additions & 0 deletions src/routes/[fallback]/manifest.json.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { get as manifestGet } from '../manifest.json';
export const get = manifestGet;
Binary file modified static/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/icon-192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/icon-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d2673d5

Please sign in to comment.