Workflows
--
-
-
-
Local Release - 20a838ab
- --
-
-
-
Fetch blob - 20a838ab
- Status: created -
-
- -
-
diff --git a/cmd/relui/main.go b/cmd/relui/main.go
index 57e52bb79d..e20c6fb80c 100644
--- a/cmd/relui/main.go
+++ b/cmd/relui/main.go
@@ -11,7 +11,10 @@ import (
)
func main() {
- http.Handle("/", fileServerHandler(relativeFile("./static"), http.HandlerFunc(homeHandler)))
+ s := &server{store: &memoryStore{}}
+ http.Handle("/workflows/create", http.HandlerFunc(s.createWorkflowHandler))
+ http.Handle("/workflows/new", http.HandlerFunc(s.newWorkflowHandler))
+ http.Handle("/", fileServerHandler(relativeFile("./static"), http.HandlerFunc(s.homeHandler)))
port := os.Getenv("PORT")
if port == "" {
port = "8080"
diff --git a/cmd/relui/static/styles.css b/cmd/relui/static/styles.css
index 3d6217a3b9..e92e8e26dc 100644
--- a/cmd/relui/static/styles.css
+++ b/cmd/relui/static/styles.css
@@ -51,3 +51,68 @@ h6 {
font-size: 1.5rem;
margin: 0;
}
+@media only screen and (min-width: 75rem) {
+ .Workflows,
+ .NewWorkflow {
+ width: 74.75rem;
+ }
+}
+@media only screen and (min-width: 48rem) {
+ .Workflows,
+ .NewWorkflow {
+ margin: 0 auto;
+ }
+}
+.Workflows-header {
+ align-items: center;
+ display: flex;
+ justify-content: space-between;
+}
+.WorkflowList,
+.TaskList {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+}
+.WorkflowList-sectionTitle {
+ margin-bottom: 0.5rem;
+ font-weight: normal;
+}
+.TaskList {
+ border: 1px solid #d6d6d6;
+ border-radius: 0.25rem;
+}
+.TaskList-item {
+ display: flex;
+ align-items: center;
+ padding: 0.5rem;
+ justify-content: space-between;
+}
+.TaskList-item + .TaskList-item {
+ border-top: 0.0625rem solid #d6d6d6;
+}
+.Button {
+ background: #375eab;
+ border-radius: 0.1875rem;
+ box-shadow: 0 0.1875rem 0.0625rem -0.125rem rgba(0, 0, 0, 0.2),
+ 0 0.125rem 0.125rem 0 rgba(0, 0, 0, 0.14),
+ 0 0.0625rem 0.3125rem 0 rgba(0, 0, 0, 0.12);
+ color: #fff;
+ font-size: 0.875rem;
+ min-width: 4rem;
+ padding: 0.5rem 1rem;
+ text-decoration: none;
+}
+.Button:hover,
+.Button:focus {
+ background: #3b65b3;
+ box-shadow: 0 0.125rem 0.25rem -0.0625rem rgba(0, 0, 0, 0.2),
+ 0 0.25rem 0.3125rem 0 rgba(0, 0, 0, 0.14),
+ 0 0.0625rem 0.625rem 0 rgba(0, 0, 0, 0.12);
+}
+.Button:active {
+ background: #4373cc;
+ box-shadow: 0 0.3125rem 0.3125rem -0.1875rem rgba(0, 0, 0, 0.2),
+ 0 0.5rem 0.625rem 0.0625rem rgba(0, 0, 0, 0.14),
+ 0 0.1875rem 0.875rem 0.125rem rgba(0, 0, 0, 0.12);
+}
diff --git a/cmd/relui/templates/home.html b/cmd/relui/templates/home.html
new file mode 100644
index 0000000000..7cd9342a16
--- /dev/null
+++ b/cmd/relui/templates/home.html
@@ -0,0 +1,33 @@
+
+{{define "content"}}
+Workflows
+ New
+
+ {{range $workflow := .Workflows}}
+
+{{$workflow.Title}}
+ Tasks
+
+ {{range $task := $workflow.Tasks}}
+
+