1 /**
2 Copyright: Copyright (c) 2018, Joakim Brännström. All rights reserved.
3 License: MPL-2
4 Author: Joakim Brännström (joakim.brannstrom@gmx.com)
5 
6 This Source Code Form is subject to the terms of the Mozilla Public License,
7 v.2.0. If a copy of the MPL was not distributed with this file, You can obtain
8 one at http://mozilla.org/MPL/2.0/.
9 */
10 module dextool.plugin.mutate.backend.report.html.constants;
11 
12 import arsd.dom : Element;
13 
14 struct Html {
15     static immutable ext = ".html";
16     static immutable dir = "html";
17     static immutable fileDir = "files";
18     static immutable testCaseDir = "test_cases";
19 }
20 
21 // CSS style
22 
23 struct TableStat {
24     static immutable style = "stat_tbl";
25 }
26 
27 struct Table {
28     static immutable hdrStyle = "tg-g59y";
29     static immutable rowStyle = "tg-0lax";
30     static immutable rowDarkStyle = "tg-0lax_dark";
31 }
32 
33 struct MatrixTable {
34     static immutable style = "vertical_tbl";
35     static immutable hdrStyle = "tg";
36 }
37 
38 struct DashboardCss {
39     static Element h2(Element root, string txt) @trusted {
40         return root.addChild("h2", txt).addClass("sub-header");
41     }
42 
43     static Element h3(Element root, string txt) @trusted {
44         return root.addChild("h3", txt).addClass("sub-header");
45     }
46 
47     static Element defaultTable(Element root) @trusted {
48         return root.addClass("table table-striped");
49     }
50 
51     static Element sortableTableDiv(Element root) @trusted {
52         return root.addClass("table-sortable-div");
53     }
54 
55     static Element sortableTable(Element root) @trusted {
56         return root.addClass("table-sortable");
57     }
58 
59     static Element sortableTableCol(Element root) @trusted {
60         return root.addClass("table-col-sortable");
61     }
62 }