forked from colinhicks/onyx-blueprint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
deaffa4
commit e1bdfbd
Showing
7 changed files
with
78 additions
and
11 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
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 was deleted.
Oops, something went wrong.
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,15 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" href="css/codemirror.css"> | ||
<link rel="stylesheet" href="css/tutorial.css"> | ||
</head> | ||
<body> | ||
<h1>Onyx tutorial</h1> | ||
<div id="app"></div> | ||
<script src="dist/js/cytoscape.js" type="text/javascript"></script> | ||
<script src="tutorial/js/tutorial.js" type="text/javascript"></script> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
(ns onyx-tutorial.core | ||
(:require [goog.dom :as gdom] | ||
[onyx-blueprint.api :as api] | ||
[onyx-tutorial.workflow-basics :as workflow-basics])) | ||
|
||
|
||
(def components | ||
(concat | ||
workflow-basics/components)) | ||
|
||
(def sections | ||
[workflow-basics/section]) | ||
|
||
(api/render-tutorial! components sections (gdom/getElement "app")) |
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,29 @@ | ||
(ns onyx-tutorial.workflow-basics) | ||
|
||
(defn text | ||
([id txt] (text :text/body id text)) | ||
([type id txt] | ||
{:component/id id | ||
:component/type type | ||
:content/text txt})) | ||
|
||
(def components | ||
[{:component/id ::title | ||
:component/type :text/header | ||
:content/text "Workflows"} | ||
|
||
(text ::intro "In Onyx, we represent data control flow using workflows.") | ||
|
||
(text ::denoting "Denote a workflow using a vector of vectors.") | ||
|
||
(text ::structure-inner "For each inner vector, the first element is a source, and the second element is a destination.") | ||
|
||
(text ::structure "The roots of the graph must be input tasks, and the leaves must be output tasks.") | ||
]) | ||
|
||
(def section | ||
{:section/id :workflow-basics | ||
:section/layout [[::title] | ||
[::intro]]}) | ||
|
||
|