mirror of
https://github.com/bitwarden/web
synced 2026-01-11 04:53:14 +00:00
setup UI pages for sharing center
This commit is contained in:
6
src/app/shared/sharedFoldersController.js
Normal file
6
src/app/shared/sharedFoldersController.js
Normal file
@@ -0,0 +1,6 @@
|
||||
angular
|
||||
.module('bit.shared')
|
||||
|
||||
.controller('sharedFoldersController', function ($scope, apiService, cryptoService, cipherService, $analytics) {
|
||||
|
||||
});
|
||||
6
src/app/shared/sharedLoginsController.js
Normal file
6
src/app/shared/sharedLoginsController.js
Normal file
@@ -0,0 +1,6 @@
|
||||
angular
|
||||
.module('bit.shared')
|
||||
|
||||
.controller('sharedLoginsController', function ($scope, apiService, cryptoService, cipherService, $analytics) {
|
||||
|
||||
});
|
||||
6
src/app/shared/sharedMeController.js
Normal file
6
src/app/shared/sharedMeController.js
Normal file
@@ -0,0 +1,6 @@
|
||||
angular
|
||||
.module('bit.shared')
|
||||
|
||||
.controller('sharedMeController', function ($scope, apiService, cryptoService, cipherService, $analytics) {
|
||||
|
||||
});
|
||||
2
src/app/shared/sharedModule.js
Normal file
2
src/app/shared/sharedModule.js
Normal file
@@ -0,0 +1,2 @@
|
||||
angular
|
||||
.module('bit.shared', ['ui.bootstrap', 'ngclipboard']);
|
||||
39
src/app/shared/views/sharedFolders.html
Normal file
39
src/app/shared/views/sharedFolders.html
Normal file
@@ -0,0 +1,39 @@
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Sharing Center
|
||||
<small>folders I've shared</small>
|
||||
</h1>
|
||||
</section>
|
||||
<section class="content">
|
||||
<div ng-show="loading && !folders.length">
|
||||
<p>Loading...</p>
|
||||
</div>
|
||||
<div ng-show="!loading && !folders.length">
|
||||
<p>No shared folders.</p>
|
||||
</div>
|
||||
<div class="table-responsive" ng-show="folders.length">
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 75px; min-width: 75px;"></th>
|
||||
<th>Name</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="folder in folders">
|
||||
<td>
|
||||
<button type="button" ng-click="revoke(folder)" class="btn btn-link btn-table"
|
||||
uib-tooltip="Revoke Access">
|
||||
<i class="fa fa-lg fa-close"></i>
|
||||
</button>
|
||||
<button type="button" ng-click="edit(folder)" class="btn btn-link btn-table"
|
||||
uib-tooltip="View/Edit">
|
||||
<i class="fa fa-lg fa-pencil"></i>
|
||||
</button>
|
||||
</td>
|
||||
<td>{{folder.name}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
41
src/app/shared/views/sharedLogins.html
Normal file
41
src/app/shared/views/sharedLogins.html
Normal file
@@ -0,0 +1,41 @@
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Sharing Center
|
||||
<small>logins I've shared</small>
|
||||
</h1>
|
||||
</section>
|
||||
<section class="content">
|
||||
<div ng-show="loading && !logins.length">
|
||||
<p>Loading...</p>
|
||||
</div>
|
||||
<div ng-show="!loading && !logins.length">
|
||||
<p>No shared logins.</p>
|
||||
</div>
|
||||
<div class="table-responsive" ng-show="logins.length">
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 75px; min-width: 75px;"></th>
|
||||
<th>Name</th>
|
||||
<th style="width: 300px;">Username</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="login in logins">
|
||||
<td>
|
||||
<button type="button" ng-click="revoke(login)" class="btn btn-link btn-table"
|
||||
uib-tooltip="Revoke Access">
|
||||
<i class="fa fa-lg fa-close"></i>
|
||||
</button>
|
||||
<button type="button" ng-click="edit(login)" class="btn btn-link btn-table"
|
||||
uib-tooltip="View/Edit">
|
||||
<i class="fa fa-lg fa-pencil"></i>
|
||||
</button>
|
||||
</td>
|
||||
<td>{{login.name}}</td>
|
||||
<td>{{login.username}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
9
src/app/shared/views/sharedMe.html
Normal file
9
src/app/shared/views/sharedMe.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Sharing Center
|
||||
<small>shared with me</small>
|
||||
</h1>
|
||||
</section>
|
||||
<section class="content">
|
||||
TODO
|
||||
</section>
|
||||
Reference in New Issue
Block a user