2017-02-23 01:48:34 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html ng-app="com.daplie.cloud" ng-strict>
|
|
|
|
<head>
|
2017-02-28 01:22:25 +00:00
|
|
|
<link type="text/css" rel="stylesheet" href="/assets/com.bootstrapcdn/spacelab/bootstrap.css">
|
2017-02-23 01:48:34 +00:00
|
|
|
</head>
|
2017-02-28 01:22:25 +00:00
|
|
|
<body class="fade" ng-class="[ 'in' ]">
|
2017-02-23 01:48:34 +00:00
|
|
|
|
2017-03-04 07:25:20 +00:00
|
|
|
<ul>
|
|
|
|
<li>Change API format to verbose arrays and nested objects</li>
|
|
|
|
<li>Set Default Path, Module (dir, api)</li>
|
|
|
|
<li>Set Hostname, Path, Module (dir, api)</li>
|
|
|
|
<li>Show Device Name</li>
|
|
|
|
<li>Login to Daplie</li>
|
|
|
|
<li>Show domains (or ask purchase)</li>
|
|
|
|
<li>Tunnel On</li>
|
|
|
|
<li>Show configured domains</li>
|
|
|
|
</ul>
|
|
|
|
|
2017-03-02 07:58:45 +00:00
|
|
|
<div class="container" ng-controller="LoginController as vm" ng-init="vm.setSimple()">
|
2017-02-28 21:55:48 +00:00
|
|
|
<h1 ng-if="!vm.authnUpdated">Initializing... {{vm.hello}}</h1>
|
|
|
|
<div ng-if="!vm.authnUpdated">
|
2017-02-28 01:22:25 +00:00
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="btn btn-link"
|
|
|
|
ng-if="!vm.advanced"
|
|
|
|
ng-click="vm.setAdvanced()"
|
|
|
|
>advanced</button>
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="btn btn-link"
|
|
|
|
ng-if="vm.advanced"
|
|
|
|
ng-click="vm.setSimple();"
|
|
|
|
>simple</button>
|
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
ng-if="vm.advanced"
|
|
|
|
ng-change="vm.checkProviderUri(vm.myProviderUri)"
|
|
|
|
ng-model="vm.myProviderUri">
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="btn btn-default"
|
|
|
|
ng-disabled="vm.advanced && !vm.providerUri"
|
|
|
|
ng-click="vm.authenticate()"
|
|
|
|
>Login</button>
|
2017-02-28 21:55:48 +00:00
|
|
|
</div>
|
2017-02-23 01:48:34 +00:00
|
|
|
|
2017-03-02 07:58:45 +00:00
|
|
|
<div ng-if="vm.config">
|
2017-03-04 07:25:20 +00:00
|
|
|
<div class="input-group" ng-init="siteconf = vm.config.global">
|
|
|
|
<h1>Global Settings:</h1>
|
|
|
|
<br/>
|
2017-03-13 22:39:43 +00:00
|
|
|
<div ng-repeat="path in siteconf.paths">Pathname:
|
|
|
|
<input class="form-control" ng-model="path.$id" />
|
|
|
|
<div ng-repeat="module in path.modules">Modulename: {{module.$id}}
|
|
|
|
<div ng-repeat="(key, value) in module">{{key}}:
|
|
|
|
<input class="form-control" ng-model="value" />
|
2017-03-04 07:25:20 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h1>Per-Domain Settings:</h1>
|
2017-03-13 22:39:43 +00:00
|
|
|
<div class="input-group" ng-repeat="siteconf in vm.config.sites">
|
2017-03-02 07:58:45 +00:00
|
|
|
<label>Hostname:</label> <input class="form-control" ng-model="sitename" />
|
|
|
|
<br/>
|
2017-03-13 22:39:43 +00:00
|
|
|
<div ng-repeat="path in siteconf.paths">Pathname:
|
|
|
|
<input class="form-control" ng-model="path.$id" />
|
|
|
|
<div ng-repeat="module in path.modules">Modulename: {{module.$id}}
|
|
|
|
<div ng-repeat="(key, value) in module">{{key}}:
|
|
|
|
<input class="form-control" ng-model="value" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="input-group" ng-init="defaultsconf = vm.config.defaults">
|
|
|
|
<h1>Fallback Settings:</h1>
|
|
|
|
<br/>
|
|
|
|
<div ng-repeat="path in defaultsconf.paths">Pathname:
|
|
|
|
<input class="form-control" ng-model="path.$id" />
|
|
|
|
<div ng-repeat="module in path.modules">Modulename: {{module.$id}}
|
|
|
|
<div ng-repeat="(key, value) in module">{{key}}:
|
|
|
|
<input class="form-control" ng-model="value" />
|
2017-03-02 07:58:45 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-03-13 22:39:43 +00:00
|
|
|
<div ng-if="!vm._showvmconfig">
|
|
|
|
<button class="btn-link" ng-click="vm._showvmconfig = true">show config as json</button>
|
|
|
|
</div>
|
|
|
|
<div ng-if="vm._showvmconfig">
|
|
|
|
<button class="btn-link" ng-click="vm._showvmconfig = false">hide config</button>
|
|
|
|
<pre><code ng-bind="vm.config | json">{{vm.config}}</code></pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-02 07:58:45 +00:00
|
|
|
|
|
|
|
</div>
|
2017-02-23 01:48:34 +00:00
|
|
|
|
|
|
|
<script src="/assets/com.jquery/jquery-3.1.1.js"></script>
|
|
|
|
<script src="/assets/com.google/angular.1.6.2.min.js"></script>
|
|
|
|
<script src="/assets/org.oauth3/oauth3.core.js"></script>
|
2017-02-28 01:22:25 +00:00
|
|
|
<script src="/assets/org.oauth3/oauth3.ng.js"></script>
|
|
|
|
<script src="/assets/org.oauth3/oauth3.domains.js"></script>
|
2017-02-23 01:48:34 +00:00
|
|
|
<script src="/js/app.js"></script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|