Skip to content

Commit 9484495

Browse files
authored
Add Sourdough Module (#150)
1 parent 990d8c9 commit 9484495

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+991
-0
lines changed

sourdough/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
plugins {
2+
id 'org.labkey.build.fileModule'
3+
}

sourdough/gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
buildFromSource=true

sourdough/module.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Name: Sourdough
2+
ModuleClass: org.labkey.api.module.SimpleModule

sourdough/resources/data/rises.csv

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
X,starter1,starter2,starter3
2+
0,0,0,0
3+
1,120,110,0
4+
2,160,110,0
5+
3,200,120,0
6+
4,310,140,110
7+
5,380,170,130
8+
6,390,250,160
9+
7,380,300,210
10+
8,320,340,250
11+
9,280,360,280
12+
10,220,380,320
13+
11,200,360,350
14+
12,180,320,380
15+
13,170,280,400
16+
14,160,220,300
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<templates
3+
xmlns="http://labkey.org/data/xml/domainTemplate"
4+
xmlns:dat="http://labkey.org/data/xml"
5+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
6+
7+
<template xsi:type="ListTemplateType">
8+
<table tableName="DailyLog" tableDbType="NOT_IN_DB">
9+
<dat:columns>
10+
<dat:column columnName="autoIntKey">
11+
<dat:rangeURI>int</dat:rangeURI>
12+
</dat:column>
13+
<dat:column columnName="Date" mandatory="true">
14+
<dat:rangeURI>dateTime</dat:rangeURI>
15+
</dat:column>
16+
<dat:column columnName="Comment">
17+
<dat:rangeURI>multiLine</dat:rangeURI>
18+
</dat:column>
19+
<dat:column columnName="Picture">
20+
<dat:rangeURI>http://www.labkey.org/exp/xml#attachment</dat:rangeURI>
21+
</dat:column>
22+
</dat:columns>
23+
</table>
24+
<options>
25+
<keyCol>autoIntKey</keyCol>
26+
</options>
27+
</template>
28+
29+
<template xsi:type="ListTemplateType">
30+
<table tableName="Rises" tableDbType="NOT_IN_DB">
31+
<dat:columns>
32+
<dat:column columnName="X" mandatory="true">
33+
<dat:rangeURI>int</dat:rangeURI>
34+
</dat:column>
35+
<dat:column columnName="starter1">
36+
<dat:rangeURI>int</dat:rangeURI>
37+
</dat:column>
38+
<dat:column columnName="starter2">
39+
<dat:rangeURI>int</dat:rangeURI>
40+
</dat:column>
41+
<dat:column columnName="starter3">
42+
<dat:rangeURI>int</dat:rangeURI>
43+
</dat:column>
44+
</dat:columns>
45+
</table>
46+
<initialData>
47+
<file>/data/rises.csv</file>
48+
</initialData>
49+
<options>
50+
<keyCol>X</keyCol>
51+
</options>
52+
</template>
53+
54+
55+
</templates>
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<ft:folderType xmlns:ft="http://labkey.org/data/xml/folderType">
2+
<ft:name>Sourdough</ft:name>
3+
<ft:description>A demonstration of defining a tabbed folder type in an XML file</ft:description>
4+
<ft:folderTabs>
5+
<ft:folderTab>
6+
<ft:name>Overview</ft:name>
7+
<ft:caption>Overview</ft:caption>
8+
<ft:requiredWebParts>
9+
<ft:webPart>
10+
<ft:name>Sourdough Overview</ft:name>
11+
<ft:location>body</ft:location>
12+
</ft:webPart>
13+
<ft:webPart>
14+
<ft:name>Further Reading</ft:name>
15+
<ft:location>right</ft:location>
16+
</ft:webPart>
17+
</ft:requiredWebParts>
18+
</ft:folderTab>
19+
<ft:folderTab>
20+
<ft:name>ViewsAndWebparts</ft:name>
21+
<ft:caption>Views and Webparts</ft:caption>
22+
<ft:requiredWebParts>
23+
<ft:webPart>
24+
<ft:name>Daily Log</ft:name>
25+
<ft:location>body</ft:location>
26+
</ft:webPart>
27+
<ft:webPart>
28+
<ft:name>Documentation: Views and Webparts</ft:name>
29+
<ft:location>right</ft:location>
30+
</ft:webPart>
31+
</ft:requiredWebParts>
32+
</ft:folderTab>
33+
<ft:folderTab>
34+
<ft:name>QueriesAndReports</ft:name>
35+
<ft:caption>Queries and Reports</ft:caption>
36+
<ft:requiredWebParts>
37+
<ft:webPart>
38+
<ft:name>Dashboard</ft:name>
39+
<ft:location>body</ft:location>
40+
</ft:webPart>
41+
<ft:webPart>
42+
<ft:name>Documentation: Queries and Reports</ft:name>
43+
<ft:location>right</ft:location>
44+
</ft:webPart>
45+
</ft:requiredWebParts>
46+
</ft:folderTab>
47+
<ft:folderTab>
48+
<ft:name>StylingAndAppearance</ft:name>
49+
<ft:caption>Styling and Appearance</ft:caption>
50+
<ft:requiredWebParts>
51+
<ft:webPart>
52+
<ft:name>Styling</ft:name>
53+
<ft:location>body</ft:location>
54+
</ft:webPart>
55+
<ft:webPart>
56+
<ft:name>Documentation: Styling and Appearance</ft:name>
57+
<ft:location>right</ft:location>
58+
</ft:webPart>
59+
</ft:requiredWebParts>
60+
</ft:folderTab>
61+
</ft:folderTabs>
62+
<ft:modules>
63+
<ft:moduleName>sourdough</ft:moduleName>
64+
</ft:modules>
65+
<ft:defaultModule>Core</ft:defaultModule>
66+
</ft:folderType>
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<query xmlns="http://labkey.org/data/xml/query">
2+
<metadata>
3+
<tables xmlns="http://labkey.org/data/xml">
4+
<table tableName="RisesQuery" tableDbType="NOT_IN_DB">
5+
<columns>
6+
<column columnName="starter1">
7+
<conditionalFormats>
8+
<conditionalFormat>
9+
<filters>
10+
<filter operator="gt" value="320"/>
11+
</filters>
12+
<backgroundColor>a4dd00</backgroundColor>
13+
<bold> true </bold>
14+
</conditionalFormat>
15+
</conditionalFormats>
16+
</column>
17+
<column columnName="starter2">
18+
<conditionalFormats>
19+
<conditionalFormat>
20+
<filters>
21+
<filter operator="gt" value="320"/>
22+
</filters>
23+
<backgroundColor>a4dd00</backgroundColor>
24+
<bold> true </bold>
25+
</conditionalFormat>
26+
</conditionalFormats>
27+
</column>
28+
<column columnName="starter3">
29+
<conditionalFormats>
30+
<conditionalFormat>
31+
<filters>
32+
<filter operator="gt" value="320"/>
33+
</filters>
34+
<backgroundColor>a4dd00</backgroundColor>
35+
<bold> true </bold>
36+
</conditionalFormat>
37+
</conditionalFormats>
38+
</column>
39+
</columns>
40+
</table>
41+
</tables>
42+
</metadata>
43+
</query>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
SELECT Rises.X,
2+
Rises.starter1,
3+
Rises.starter2,
4+
Rises.starter3
5+
FROM Rises
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
png(filename="${imgout:a}", width=900);
2+
plot(labkey.data$x, labkey.data$starter1, type = "b", frame = FALSE, col = "red", xlab = "time elapsed (hrs)", ylab = "volume increase (%)");
3+
lines(labkey.data$x, labkey.data$starter2, col = "blue", type = "b");
4+
lines(labkey.data$x, labkey.data$starter3, col = "green", type = "b");
5+
legend(1, 400, legend=c("starter1", "starter2", "starter3"), fill = c("red", "blue", "green"));
6+
dev.off();
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div style="text-align: center;">
2+
<img src="https://media.tenor.com/TTTGbs0vtOEAAAAi/bread-spin.gif" alt="spinning bread" style="width:30px;height:30px;margin-bottom:5px;margin-right:15px;">
3+
<a href="http://labkey.com" target="_blank">Powered by LabKey and Yeast </a>
4+
<img src="https://media.tenor.com/TTTGbs0vtOEAAAAi/bread-spin.gif" alt="spinning bread" style="width:30px;height:30px;margin-bottom: 5px;">
5+
</div>

0 commit comments

Comments
 (0)