passman/templates/main.php

147 lines
5.8 KiB
PHP
Raw Normal View History

2016-09-09 23:36:35 +08:00
<?php
/*
* Javascripts
*/
script('passman', 'vendor/angular/angular.min');
script('passman', 'vendor/angular-animate/angular-animate.min');
script('passman', 'vendor/angular-cookies/angular-cookies.min');
script('passman', 'vendor/angular-resource/angular-resource.min');
script('passman', 'vendor/angular-route/angular-route.min');
script('passman', 'vendor/angular-sanitize/angular-sanitize.min');
script('passman', 'vendor/angular-touch/angular-touch.min');
script('passman', 'vendor/angular-local-storage/angular-local-storage.min');
2016-09-12 04:14:11 +08:00
script('passman', 'vendor/angular-off-click/angular-off-click.min');
script('passman', 'vendor/angularjs-datetime-picker/angularjs-datetime-picker.min');
2016-09-12 05:40:06 +08:00
script('passman', 'vendor/ng-password-meter/ng-password-meter');
2016-09-12 01:45:20 +08:00
script('passman', 'vendor/sjcl/sjcl');
2016-09-12 06:23:06 +08:00
script('passman', 'vendor/zxcvbn/zxcvbn');
script('passman', 'vendor/ng-clipboard/clipboard.min');
script('passman', 'vendor/ng-clipboard/ngclipboard');
2016-09-16 03:21:34 +08:00
script('passman', 'vendor/ng-tags-input/ng-tags-input.min');
2016-09-14 05:03:12 +08:00
script('passman', 'vendor/angular-xeditable/xeditable.min');
script('passman', 'vendor/sha/sha');
script('passman', 'vendor/llqrcode/llqrcode');
script('passman', 'vendor/forge.0.6.9.min');
script('passman', 'lib/promise');
script('passman', 'lib/crypto_wrap');
2016-09-14 05:03:12 +08:00
script('passman', 'app/app');
script('passman', 'templates');
script('passman', 'app/controllers/main');
2016-09-12 04:57:55 +08:00
script('passman', 'app/controllers/menu');
2016-09-11 05:30:17 +08:00
script('passman', 'app/controllers/vault');
2016-09-12 02:47:29 +08:00
script('passman', 'app/controllers/credential');
script('passman', 'app/controllers/edit_credential');
2016-09-21 02:03:37 +08:00
script('passman', 'app/controllers/share');
script('passman', 'app/controllers/share_settings');
2016-09-24 17:00:16 +08:00
script('passman', 'app/controllers/revision');
2016-09-25 02:16:57 +08:00
script('passman', 'app/controllers/settings');
script('passman', 'app/controllers/import');
script('passman', 'app/controllers/export');
2016-09-13 22:31:07 +08:00
script('passman', 'app/filters/range');
2016-09-11 05:30:17 +08:00
script('passman', 'app/filters/propsfilter');
script('passman', 'app/filters/byte');
script('passman', 'app/filters/tagfilter');
2016-09-21 00:38:49 +08:00
script('passman', 'app/filters/as');
script('passman', 'app/filters/credentialsearch');
2016-09-11 05:30:17 +08:00
script('passman', 'app/services/cacheservice');
script('passman', 'app/services/vaultservice');
script('passman', 'app/services/credentialservice');
script('passman', 'app/services/settingsservice');
2016-09-15 00:57:38 +08:00
script('passman', 'app/services/fileservice');
2016-09-12 01:45:20 +08:00
script('passman', 'app/services/encryptservice');
2016-09-16 03:21:34 +08:00
script('passman', 'app/services/tagservice');
script('passman', 'app/services/notificationservice');
script('passman', 'app/services/shareservice');
script('passman', 'app/factory/sharingacl');
script('passman', 'app/directives/passwordgen');
2016-09-14 05:03:12 +08:00
script('passman', 'app/directives/fileselect');
script('passman', 'app/directives/progressbar');
script('passman', 'app/directives/otp');
script('passman', 'app/directives/qrreader');
2016-09-14 21:09:55 +08:00
script('passman', 'app/directives/tooltip');
script('passman', 'app/directives/use-theme');
script('passman', 'app/directives/credentialfield');
2016-09-16 03:21:34 +08:00
script('passman', 'app/directives/ngenter');
2016-09-25 22:18:18 +08:00
script('passman', 'app/directives/autoscroll');
2016-09-26 16:37:43 +08:00
script('passman', 'app/directives/clickselect');
2016-09-28 06:14:32 +08:00
script('passman', 'app/directives/colorfromstring');
2016-09-25 06:01:23 +08:00
script('passman', 'importers/import-main');
script('passman', 'importers/importer-keepasscsv');
2016-09-25 16:29:48 +08:00
script('passman', 'importers/importer-lastpasscsv');
2016-09-25 17:21:04 +08:00
script('passman', 'importers/importer-dashlanecsv');
2016-09-25 22:18:18 +08:00
script('passman', 'importers/importer-zohocsv');
script('passman', 'importers/importer-passmanjson');
2016-09-26 03:01:26 +08:00
script('passman', 'importers/importer-clipperz');
2016-09-26 05:05:12 +08:00
script('passman', 'importers/importer-passpackcsv');
script('passman', 'importers/importer-randomdata');
/*
* Styles
*/
2016-09-12 05:40:06 +08:00
style('passman', 'vendor/ng-password-meter/ng-password-meter');
style('passman', 'vendor/bootstrap/bootstrap.min');
style('passman', 'vendor/bootstrap/bootstrap-theme.min');
style('passman', 'vendor/font-awesome/font-awesome.min');
2016-09-14 05:03:12 +08:00
style('passman', 'vendor/angular-xeditable/xeditable.min');
2016-09-16 03:21:34 +08:00
style('passman', 'vendor/ng-tags-input/ng-tags-input.min');
style('passman', 'vendor/angularjs-datetime-picker/angularjs-datetime-picker');
2016-09-16 03:21:34 +08:00
style('passman', 'app');
2016-09-09 23:36:35 +08:00
?>
2016-09-11 05:30:17 +08:00
<div id="app" ng-app="passmanApp" ng-controller="MainCtrl">
2016-10-01 04:31:46 +08:00
<div class="warning_bar" ng-if="using_http && http_warning_hidden == false">
Warning! Using http with passman can be insecure!
<i class="fa fa-times fa-2x" alt="Close" ng-click="setHttpWarning(true);"></i>
</div>
2016-09-12 04:57:55 +08:00
<div id="app-navigation" ng-if="selectedVault" ng-controller="MenuCtrl">
<ul>
<li class="taginput">
<a class="taginput">
<tags-input ng-model="selectedTags" replace-spaces-with-dashes="false">
<auto-complete source="getTags($query)" min-length="0"></auto-complete>
</tags-input>
</a>
</li>
2016-09-26 06:30:38 +08:00
<li ng-repeat="tag in available_tags | orderBy:'text'" ng-if="selectedTags.indexOf(tag) == -1">
<a ng-click="tagClicked(tag)">{{tag.text}}</a>
</li>
<li data-id="trashbin" class="nav-trashbin">
<a ng-click="toggleDeleteTime()"
ng-class="{'active': delete_time > 0}">
<i href="#" class="fa fa-trash"></i>
Deleted credentials
</a>
</li>
</ul>
2016-09-12 04:57:55 +08:00
<div id="app-settings" ng-init="settingsShown = false;">
<div id="app-settings-header">
<button class="settings-button"
2016-09-12 04:57:55 +08:00
ng-click="settingsShown = !settingsShown"
>Settings
</button>
</div>
2016-09-12 04:57:55 +08:00
<div id="app-settings-content" ng-show="settingsShown">
<!-- Your settings in here -->
2016-09-12 04:57:55 +08:00
<div class="settings-container">
2016-09-25 02:16:57 +08:00
<div><a class="link" ng-href="#/vault/{{active_vault.vault_id}}/settings">Settings</a></div>
2016-09-24 04:43:36 +08:00
<div><span class="link" ng-click="logout()">Logout</span></div>
<div><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6YS8F97PETVU2" target="_blank" class="link">Donate</a></div>
2016-09-12 04:57:55 +08:00
</div>
</div>
</div>
2016-09-09 23:36:35 +08:00
</div>
2016-09-28 06:14:32 +08:00
<div id="app-content">
2016-09-21 02:51:41 +08:00
<div id="app-content-wrapper">
<div id="content" ng-view="">
2016-09-21 02:51:41 +08:00
</div>
2016-09-09 23:36:35 +08:00
</div>
</div>
</div>