Skip to content

Commit

Permalink
Allowing write of style, updated version
Browse files Browse the repository at this point in the history
  • Loading branch information
robmoffat committed Jul 27, 2022
1 parent 00997ff commit a326edf
Show file tree
Hide file tree
Showing 68 changed files with 110 additions and 108 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ open class ReplaceTag : AbstractReplaceCommand<Element?, Element>() {
for (a in keptAttributes) {
if (e.hasAttribute(a)) {
n.setAttribute(a, e.getAttribute(a))
} else {
n.removeAttribute(a);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public String getTitle() {

@Override
public String getIcon() {
return "/github/kite9-org/kite9/templates/admin/icons/github.png?v=v0.10";
return "/github/kite9-org/kite9/templates/admin/icons/github.png?v=v0.11";
}

@Override
Expand Down Expand Up @@ -89,7 +89,7 @@ public String getTitle() {

@Override
public String getIcon() {
return "/github/kite9-org/kite9/templates/admin/icons/github.png?v=v0.10";
return "/github/kite9-org/kite9/templates/admin/icons/github.png?v=v0.11";
}

@Override
Expand Down Expand Up @@ -281,9 +281,9 @@ private String getIconUrl(Link l, GHContent c) {
if (fs.getFormatFor(c.getName()) instanceof DiagramFileFormat) {
return l.getHref();
} else if (hasIcon(c.getName())) {
return "/github/kite9-org/kite9/templates/admin/icons/"+getExtension(c.getName())+".svg?v=v0.10";
return "/github/kite9-org/kite9/templates/admin/icons/"+getExtension(c.getName())+".svg?v=v0.11";
} else {
return "/github/kite9-org/kite9/templates/admin/icons/unknown.svg?v=v0.10";
return "/github/kite9-org/kite9/templates/admin/icons/unknown.svg?v=v0.11";
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ private String getExtension(String name) {
@Override
public String getIcon() {
if (hasIcon(d.getFilename())) {
return "/github/kite9-org/kite9/templates/admin/icons/"+getExtension(d.getFilename())+".svg?v=v0.10";
return "/github/kite9-org/kite9/templates/admin/icons/"+getExtension(d.getFilename())+".svg?v=v0.11";
} else {
return "/github/kite9-org/kite9/templates/admin/icons/unknown.svg?v=v0.10";
return "/github/kite9-org/kite9/templates/admin/icons/unknown.svg?v=v0.11";
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ protected Document generateRestXML(RepresentationModel<?> t) throws XMLStreamExc
}

private void handleTemplateNaming(Document out) {
out.getDocumentElement().setAttributeNS(Kite9Namespaces.XSL_TEMPLATE_NAMESPACE, "xslt:template", "/github/kite9-org/kite9/templates/admin/admin-template.xsl?v=v0.10");
out.getDocumentElement().setAttributeNS(Kite9Namespaces.XSL_TEMPLATE_NAMESPACE, "xslt:template", "/github/kite9-org/kite9/templates/admin/admin-template.xsl?v=v0.11");
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<meta property="og:title" content="Kite9 Diagrams" />
<meta property="og:description"
content="Kite9 draws diagrams, automatically. UML, Risk-First, Templated, SVG, Flow-Charts, System Diagrams." />
<meta property="og:image" content="https://www.kite9.org/github/kite9-org/kite9/templates/admin/kite9-preview.png?v=v0.10" />
<meta property="og:image" content="https://www.kite9.org/github/kite9-org/kite9/templates/admin/kite9-preview.png?v=v0.11" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="718" />
<meta property="og:image:height" content="372" />
Expand All @@ -18,7 +18,7 @@
<meta property="twitter:title" content="Kite9" />
<meta property="twitter:description"
content="Kite9 draws diagrams, automatically. UML, Risk-First, Templated, SVG, Flow-Charts, System Diagrams." />
<meta property="twitter:image:src" content="https://www.kite9.org/github/kite9-org/kite9/templates/admin/kite9-preview.png?v=v0.10" />
<meta property="twitter:image:src" content="https://www.kite9.org/github/kite9-org/kite9/templates/admin/kite9-preview.png?v=v0.11" />
<meta property="twitter:image:width" content="718" />
<meta property="twitter:image:height" content="372" />
<meta charset="UTF-8" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function createAdlToSVGResolver(transition, command, metadata) {

const XSL_TEMPLATE_NAMESPACE = "http://www.kite9.org/schema/xslt";
const ADL_NAMESPACE = "http://www.kite9.org/schema/adl";
const DEFAULT_TEMPLATE = "/github/kite9-org/kite9/templates/basic/basic-template.xsl?v=v0.10";
const DEFAULT_TEMPLATE = "/github/kite9-org/kite9/templates/basic/basic-template.xsl?v=v0.11";
const META_NAMESPACE = "http://www.kite9.org/schema/metadata";


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<diagram xslt:template="/github/kite9-org/kite9/templates/basic/basic-template.xsl?v=v0.10"
<diagram xslt:template="/github/kite9-org/kite9/templates/basic/basic-template.xsl?v=v0.11"
xmlns="http://www.kite9.org/schema/adl"
xmlns:xslt="http://www.kite9.org/schema/xslt" id="dia">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<svg:defs>
<svg:style type="text/css">
@import url('/github/kite9-org/kite9/templates/formats/formats-textures.css?v=v0.10');
@import url('/github/kite9-org/kite9/templates/formats/formats-textures.css?v=v0.11');
</svg:style>
</svg:defs>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@ContextConfiguration
public class PrivateGithubIT extends AbstractRestIT {

public static final String JS = "/github/kite9-org/examples/some.js?v=v0.10";
public static final String JS = "/github/kite9-org/examples/some.js?v=v0.11";
public static final String DIR = "/github/kite9-org/examples";


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
import org.springframework.boot.web.server.LocalServerPort;
import org.springframework.boot.test.web.server.LocalServerPort;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.RequestEntity;
Expand Down Expand Up @@ -101,8 +101,8 @@ public void testReplaceTag() throws Exception {
ReplaceTag replace = new ReplaceTag();
replace.fragmentId = "link";
replace.from= Base64.getEncoder().encodeToString(("<link id=\"link\" rank=\"4\"></link>").getBytes());
replace.to= Base64.getEncoder().encodeToString(("<glyph id=\"The Diagram\"></glyph>").getBytes());
replace.keptAttributes = Arrays.asList("rank", "id");
replace.to= Base64.getEncoder().encodeToString(("<glyph id=\"The Diagram\" style=\"raw: fish\"></glyph>").getBytes());
replace.keptAttributes = Arrays.asList("rank", "id", "style");

testDoAndUndo(replace, "replaceTag");
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
};
</script>
<script xlink:actuate="onLoad" xlink:type="simple" xlink:show="other" type="module" xmlns:xlink="http://www.w3.org/1999/xlink">
import '/github/kite9-org/kite9/templates/risk-first/risk-first.js?v=v0.10'
import '/github/kite9-org/kite9/templates/risk-first/risk-first.js?v=v0.11'
</script>
</defs>
</svg>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
};
</script>
<script xlink:actuate="onLoad" xlink:type="simple" xlink:show="other" type="module" xmlns:xlink="http://www.w3.org/1999/xlink">
import '/github/kite9-org/kite9/templates/risk-first/risk-first.js?v=v0.10'
import '/github/kite9-org/kite9/templates/risk-first/risk-first.js?v=v0.11'
</script>
</defs>
</svg>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 a326edf

Please sign in to comment.