mermaid/cypress/platform/gitgraph.html

176 lines
4.8 KiB
HTML
Raw Normal View History

2020-10-22 21:40:08 +02:00
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Montserrat&display=swap" rel="stylesheet" />
2020-10-22 21:40:08 +02:00
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/font-awesome.min.css"
/>
<link
href="https://fonts.googleapis.com/css?family=Noto+Sans+SC&display=swap"
2020-10-22 21:40:08 +02:00
rel="stylesheet"
/>
<style>
body {
2022-03-03 19:58:43 +01:00
/* background: rgb(221, 208, 208); */
/* background:#111; */
2022-03-17 20:07:27 +01:00
/* background:#333; */
2020-10-22 21:40:08 +02:00
font-family: 'Arial';
}
2022-03-03 19:58:43 +01:00
/* h1 { color: white;} */
2020-10-22 21:40:08 +02:00
.mermaid2 {
display: none;
}
.customCss > rect,
.customCss {
fill: #ff0000 !important;
stroke: #ffff00 !important;
stroke-width: 4px !important;
}
2020-10-22 21:40:08 +02:00
</style>
</head>
<body>
<h1>info below</h1>
2022-09-13 18:23:24 +02:00
<pre class="mermaid" style="width: 100%; height: 20%">
2022-09-13 18:23:24 +02:00
%%{init: { "logLevel": "debug", "theme": "default" , "gitGraph" : {"showBranches":"false","rotateCommitLabel":"true"},"themeVariables": {
"gitBranchLabel0": "#ff0000",
"gitBranchLabel1": "#00ff00",
"gitBranchLabel2": "#0000ff",
"git0": "#550055"
} } }%%
gitGraph
commit
branch develop
commit
commit
branch release/1.0.0
checkout release/1.0.0
commit tag:"1.0.0-beta1"
checkout develop
commit
commit
commit
commit
checkout release/1.0.0
merge develop tag: "1.0.0-beta2"
</pre>
<pre class="mermaid2" style="width: 100%; height: 20%">
2022-04-07 20:13:15 +02:00
%%{init: { "logLevel": "debug", "theme": "default" , "gitGraph" : {"showBranches":"false"},"themeVariables": {
"gitBranchLabel0": "#ff0000",
"gitBranchLabel1": "#00ff00",
"gitBranchLabel2": "#0000ff",
"git0": "#550055"
} } }%%
gitGraph
accTitle: "Git Graph"
accDescr {
Git Graph description.
Multiline description
}
2022-04-07 20:13:15 +02:00
commit
branch develop
commit tag:"v1.0.0"
commit
2022-03-24 17:32:50 +01:00
checkout main
2020-10-22 21:40:08 +02:00
commit type: HIGHLIGHT
commit
2022-04-07 20:13:15 +02:00
merge develop
2020-10-22 21:40:08 +02:00
commit
2022-04-07 20:13:15 +02:00
branch featureA
2020-10-22 21:40:08 +02:00
commit
</pre>
<pre class="mermaid2" style="width: 100%; height: 20%">
gitGraph
commit type:HIGHLIGHT
2022-03-03 17:29:14 +01:00
branch hotfix
checkout hotfix
commit type:HIGHLIGHT
2022-02-24 18:40:22 +01:00
branch develop
checkout develop
commit id:"ash" tag:"abc" type:HIGHLIGHT
2022-02-24 18:40:22 +01:00
branch featureB
checkout featureB
commit type:HIGHLIGHT
2022-03-24 17:32:50 +01:00
checkout main
2022-02-24 18:40:22 +01:00
checkout hotfix
commit type:HIGHLIGHT
2022-02-24 18:40:22 +01:00
checkout develop
commit type:REVERSE
2022-02-24 18:40:22 +01:00
checkout featureB
commit type:HIGHLIGHT
2022-03-24 17:32:50 +01:00
checkout main
2022-02-24 18:40:22 +01:00
merge hotfix
checkout featureB
commit type:HIGHLIGHT
2022-02-24 18:40:22 +01:00
checkout develop
branch featureA
commit type:HIGHLIGHT
2022-02-24 18:40:22 +01:00
checkout develop
checkout featureA
commit
checkout featureB
commit
checkout develop
merge featureA
branch release
checkout release
commit type:HIGHLIGHT
2022-03-24 17:32:50 +01:00
checkout main
2022-02-24 18:40:22 +01:00
commit
checkout release
2022-03-24 17:32:50 +01:00
merge main
2022-02-24 18:40:22 +01:00
checkout develop
merge release
</pre>
<pre class="mermaid2" style="width: 100%; height: 20%">
2020-10-22 21:40:08 +02:00
gitGraph:
commit
commit
branch newbranch
commit
2022-03-24 17:43:23 +01:00
merge main
</pre>
2023-02-19 09:33:11 +01:00
<script type="module">
import mermaid from './mermaid.esm.mjs';
2020-10-22 21:40:08 +02:00
mermaid.parseError = function (err, hash) {
2022-02-24 18:40:22 +01:00
// console.error('Mermaid error: ', err);
};
2020-10-22 21:40:08 +02:00
mermaid.initialize({
2022-04-07 20:13:15 +02:00
//theme: 'dark',
themeVariables: {
commitLabelColor: '#9400D3',
commitLabelBackground: '#FFFFFF',
// darkMode: true,
// background: '#222',
// // textColor: 'white',
// // primaryTextColor: '#f4f4f4',
2022-03-17 20:07:27 +01:00
// // // nodeBkg: '#ff0000',
// // // mainBkg: '#0000ff',
// // // tertiaryColor: '#ffffcc',
},
2022-03-17 20:07:27 +01:00
// theme: 'forest',
// theme: 'neutral',
// theme: 'dark',
2020-10-22 21:40:08 +02:00
// arrowMarkerAbsolute: true,
// themeCSS: '.edgePath .path {stroke: red;} .arrowheadPath {fill: red;}',
2022-02-24 18:40:22 +01:00
logLevel: 1,
2022-09-16 09:25:22 +02:00
gitGraph: { rotateCommitLabel: false },
2022-02-24 18:40:22 +01:00
flowchart: { curve: 'linear', htmlLabels: true },
2020-10-22 21:40:08 +02:00
// gantt: { axisFormat: '%m/%d/%Y' },
sequence: { actorMargin: 50, showSequenceNumbers: true },
// sequenceDiagram: { actorMargin: 300 } // deprecated
// fontFamily: '"arial", sans-serif',
// themeVariables: {
// fontFamily: '"arial", sans-serif',
// },
curve: 'linear',
2022-02-24 18:40:22 +01:00
securityLevel: 'loose',
2020-10-22 21:40:08 +02:00
});
2022-02-24 18:40:22 +01:00
function callback() {
alert('It worked');
}
2020-10-22 21:40:08 +02:00
</script>
</body>
</html>