Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update index.html #24

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 0 additions & 104 deletions .gitignore

This file was deleted.

21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

36 changes: 0 additions & 36 deletions README.md

This file was deleted.

12 changes: 12 additions & 0 deletions activity.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
var connection = new Postmonger.Session();

connection.trigger('ready');

connection.on('initActivity',function( data ){
document.getElementById('configuration').value = JSON.stringify(data,null,2);
});

connection.on('clickedNext', function(){
var configuration = JSON.parse(document.getElementById('configuration').value);
connection.trigger('updateActivity',configuration);
});
43 changes: 0 additions & 43 deletions app.js

This file was deleted.

14 changes: 14 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"workflowApiVersion": "1.1",
"metaData": {
"icon": "icon.png",
"category": "message"
},
"type": "REST",
"userInterfaces":{
"configInspector":{
"size": "medium"
}
}

}
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>

<title>Simple Journey Builder Activity</title>
<link rel="stylesheet" type="text/css" href="styles.css">



</head>
<body>
<h3>Configuration JSON</h3>
<textarea id="configuration"></textarea>
<script src="postmonger.js"></script>
<script src="activity.js"></script>
</body>
</html>
Loading