2020-05-05 01:34:31 +12:00
|
|
|
<div class="cover">
|
|
|
|
<h1 class="zone xl margin-bottom-large">
|
|
|
|
<a data-ls-attrs="href=/console/home?project={{router.params.project}}" class="back text-size-small"><i class="icon-left-open"></i> Home</a>
|
|
|
|
<br />
|
|
|
|
|
|
|
|
<span>Functions</span>
|
|
|
|
</h1>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="zone xl">
|
|
|
|
<ul class="phases clear" data-ui-phases data-selected="{{router.params.tab}}">
|
|
|
|
<li data-state="/console/functions?project={{router.params.project}}">
|
|
|
|
<h2>Functions</h2>
|
2020-05-11 08:44:28 +12:00
|
|
|
|
|
|
|
<div class="zone xl"
|
|
|
|
data-service="functions.list"
|
|
|
|
data-scope="sdk"
|
|
|
|
data-event="load,functions.create,functions.update,functions.delete"
|
|
|
|
data-name="project-functions"
|
|
|
|
data-param-project-id="{{router.params.project}}"
|
|
|
|
data-success="trigger"
|
|
|
|
data-success-param-trigger-events="functions.list">
|
|
|
|
|
|
|
|
<div data-ls-if="0 == {{project-functions.functions.length}} || undefined == {{project-functions.functions.length}}" class="box margin-top margin-bottom">
|
|
|
|
<h3 class="margin-bottom-small text-bold">No Functions Found</h3>
|
|
|
|
|
|
|
|
<p class="margin-bottom-no">You haven't created any functions for your project yet.</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="box margin-bottom" data-ls-if="0 != {{project-functions.functions.length}}">
|
2020-05-11 16:39:00 +12:00
|
|
|
<ul data-ls-loop="project-functions.functions" data-ls-as="function" class="list">
|
2020-05-11 08:44:28 +12:00
|
|
|
<li class="clear">
|
|
|
|
|
2020-05-11 16:39:00 +12:00
|
|
|
<a data-ls-attrs="href=/console/functions/function?id={{function.$id}}&project={{router.params.project}}" class="button pull-end">Settings</a>
|
2020-05-11 08:44:28 +12:00
|
|
|
|
|
|
|
<span data-ls-bind="{{function.name}}"></span> (<span data-ls-bind="{{function.events.length}}"></span> events)
|
2020-05-11 16:39:00 +12:00
|
|
|
|
2020-05-11 08:44:28 +12:00
|
|
|
<span data-ls-if="0 == {{function.security}}">
|
|
|
|
<small class="text-danger">(SSL/TLS Disabled)</small>
|
|
|
|
</span>
|
2020-05-11 16:39:00 +12:00
|
|
|
|
2020-05-11 08:44:28 +12:00
|
|
|
<div class="margin-top-tiny">
|
|
|
|
<a data-ls-attrs="href={{function.url}}" data-ls-bind="{{function.url}}" target="_blank" class="text-one-liner"></a>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="clear">
|
|
|
|
<div data-ui-modal class="modal close box sticky-footer" data-button-text="Add Function">
|
|
|
|
<button type="button" class="close pull-end" data-ui-modal-close=""><i class="icon-cancel"></i></button>
|
|
|
|
|
|
|
|
<h1>Add Function</h1>
|
|
|
|
|
|
|
|
<form
|
|
|
|
data-analytics-event="submit"
|
|
|
|
data-analytics-category="console"
|
|
|
|
data-analytics-label="Create Project Function"
|
2020-05-11 16:39:00 +12:00
|
|
|
data-service="functions.create"
|
|
|
|
data-scope="sdk"
|
2020-05-11 08:44:28 +12:00
|
|
|
data-event="submit"
|
|
|
|
data-success="alert,trigger,reset"
|
|
|
|
data-success-param-alert-text="Created function successfully"
|
2020-05-11 16:39:00 +12:00
|
|
|
data-success-param-trigger-events="functions.create"
|
2020-05-11 08:44:28 +12:00
|
|
|
data-failure="alert"
|
|
|
|
data-failure-param-alert-text="Failed to create function"
|
|
|
|
data-failure-param-alert-classname="error">
|
|
|
|
|
|
|
|
<label for="name">Name</label>
|
|
|
|
<input type="text" id="name" name="name" required autocomplete="off" class="margin-bottom-xl" />
|
|
|
|
|
|
|
|
<footer>
|
|
|
|
<button type="submit">Create</button> <button data-ui-modal-close="" type="button" class="reverse">Cancel</button>
|
|
|
|
</footer>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-05-05 01:34:31 +12:00
|
|
|
</li>
|
|
|
|
|
2020-05-11 08:44:28 +12:00
|
|
|
<!-- <li data-state="/console/users/teams?project={{router.params.project}}">
|
2020-05-05 01:34:31 +12:00
|
|
|
<h2>Teams</h2>
|
2020-05-11 08:44:28 +12:00
|
|
|
</li> -->
|
2020-05-05 01:34:31 +12:00
|
|
|
</ul>
|
|
|
|
</div>
|