forked from ZenUml/core
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
18 changed files
with
310 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0" /> | ||
<title>Self Sync Message at Root</title> | ||
<style> | ||
body { | ||
margin: 0; /* mostly for demo on mobile */ | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="diagram" class="diagram"> | ||
<pre class="zenuml" style="margin: 0"> | ||
@Starter(A) | ||
new B() | ||
</pre> | ||
</div> | ||
|
||
<!-- built files will be auto injected --> | ||
<script type="module" src="/src/main-cy.ts"></script> | ||
</body> | ||
</html> |
Binary file modified
BIN
+87 Bytes
(100%)
cypress/e2e/__image_snapshots__/Defect 406 Fragments under Creation #0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13.9 KB
cypress/e2e/__image_snapshots__/Smoke test Self Sync Message at Root #0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-10 Bytes
(100%)
cypress/e2e/__image_snapshots__/Smoke test fragmentIssue #0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3 Bytes
(100%)
cypress/e2e/__image_snapshots__/Smoke test interaction #0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+189 Bytes
(100%)
cypress/e2e/__image_snapshots__/Smoke test should load the home page #0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* eslint-disable no-undef */ | ||
import "cypress-plugin-snapshots/commands"; | ||
describe("Smoke test", function () { | ||
it("Self Sync Message at Root", function () { | ||
cy.visit("http://127.0.0.1:8080/cy/self-sync-message-at-root.html"); | ||
// This line is to make sure the privacy icon is loaded | ||
cy.get(".privacy>span>svg", { timeout: 5000 }).should("be.visible"); | ||
cy.document().toMatchImageSnapshot({ | ||
imageConfig: { threshold: 0.01 }, | ||
capture: "viewport", | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 24 additions & 11 deletions
35
src/components/DiagramFrame/SeqDiagram/MessageLayer/Block/Block.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,41 @@ | ||
<template> | ||
<div class="block"> | ||
<div class="statement-container mt-1" v-for="(stat, index) in statements" :key="index"> | ||
<Statement :context="stat" :collapsed="collapsed" :selfCallIndent="selfCallIndent" :number="getNumber(index)" /> | ||
<div | ||
class="statement-container mt-1" | ||
v-for="(stat, index) in statements" | ||
:key="index" | ||
> | ||
<Statement | ||
:inheritFromOccurrence="inheritFromOccurrence" | ||
:context="stat" | ||
:collapsed="collapsed" | ||
:selfCallIndent="selfCallIndent" | ||
:number="getNumber(index)" | ||
/> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { computed } from 'vue'; | ||
import Statement from './Statement/Statement.vue'; | ||
import { increaseNumber } from '@/utils/Numbering'; | ||
import { computed } from "vue"; | ||
import Statement from "./Statement/Statement.vue"; | ||
import { increaseNumber } from "@/utils/Numbering"; | ||
const props = defineProps<{ | ||
context?: any; | ||
selfCallIndent?: number; | ||
number?: string; | ||
incremental?: boolean; | ||
collapsed?:boolean; | ||
}>() | ||
const statements = computed(() => props.context?.stat() || []) | ||
collapsed?: boolean; | ||
inheritFromOccurrence?: boolean; | ||
}>(); | ||
const statements = computed(() => props.context?.stat() || []); | ||
const getNumber = (index: number) => { | ||
if (props.number) { | ||
return props.incremental ? increaseNumber(props.number, index) : `${props.number}.${index + 1}` | ||
return props.incremental | ||
? increaseNumber(props.number, index) | ||
: `${props.number}.${index + 1}`; | ||
} | ||
return String(index + 1) | ||
} | ||
return String(index + 1); | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.