mirror of
https://github.com/sismics/docs.git
synced 2024-11-25 23:27:57 +01:00
#84: Init 2FA view + controllers refactoring
This commit is contained in:
parent
b33b7115ef
commit
e616add75a
@ -22,7 +22,7 @@ module.exports = function(grunt) {
|
|||||||
separator: ';'
|
separator: ';'
|
||||||
},
|
},
|
||||||
src: ['src/lib/jquery.js','src/lib/jquery.ui.js','src/lib/underscore.js','src/lib/colorpicker.js', 'src/lib/angular.js', 'src/lib/angular.*.js',
|
src: ['src/lib/jquery.js','src/lib/jquery.ui.js','src/lib/underscore.js','src/lib/colorpicker.js', 'src/lib/angular.js', 'src/lib/angular.*.js',
|
||||||
'dist/app/docs/app.js', 'dist/app/docs/controller/*.js', 'dist/app/docs/directive/*.js', 'dist/app/docs/filter/*.js', 'dist/app/docs/service/*.js'],
|
'dist/app/docs/app.js', 'dist/app/docs/controller/**/*.js', 'dist/app/docs/directive/*.js', 'dist/app/docs/filter/*.js', 'dist/app/docs/service/*.js'],
|
||||||
dest: 'dist/docs.js'
|
dest: 'dist/docs.js'
|
||||||
},
|
},
|
||||||
share: {
|
share: {
|
||||||
|
@ -61,6 +61,15 @@ angular.module('docs',
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.state('settings.security', {
|
||||||
|
url: '/security',
|
||||||
|
views: {
|
||||||
|
'settings': {
|
||||||
|
templateUrl: 'partial/docs/settings.security.html',
|
||||||
|
controller: 'SettingsSecurity'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
.state('settings.session', {
|
.state('settings.session', {
|
||||||
url: '/session',
|
url: '/session',
|
||||||
views: {
|
views: {
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Settings security controller.
|
||||||
|
*/
|
||||||
|
angular.module('docs').controller('SettingsSecurity', function() {
|
||||||
|
});
|
@ -40,33 +40,34 @@
|
|||||||
<script src="lib/angular.ngprogress.js" type="text/javascript"></script>
|
<script src="lib/angular.ngprogress.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/app.js" type="text/javascript"></script>
|
<script src="app/docs/app.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/Main.js" type="text/javascript"></script>
|
<script src="app/docs/controller/Main.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/Document.js" type="text/javascript"></script>
|
<script src="app/docs/controller/document/Document.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/DocumentDefault.js" type="text/javascript"></script>
|
<script src="app/docs/controller/document/DocumentDefault.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/DocumentEdit.js" type="text/javascript"></script>
|
<script src="app/docs/controller/document/DocumentEdit.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/DocumentView.js" type="text/javascript"></script>
|
<script src="app/docs/controller/document/DocumentView.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/DocumentViewContent.js" type="text/javascript"></script>
|
<script src="app/docs/controller/document/DocumentViewContent.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/DocumentViewPermissions.js" type="text/javascript"></script>
|
<script src="app/docs/controller/document/DocumentViewPermissions.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/DocumentViewActivity.js" type="text/javascript"></script>
|
<script src="app/docs/controller/document/DocumentViewActivity.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/DocumentModalShare.js" type="text/javascript"></script>
|
<script src="app/docs/controller/document/DocumentModalShare.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/DocumentModalPdf.js" type="text/javascript"></script>
|
<script src="app/docs/controller/document/DocumentModalPdf.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/FileView.js" type="text/javascript"></script>
|
<script src="app/docs/controller/document/FileView.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/FileModalView.js" type="text/javascript"></script>
|
<script src="app/docs/controller/document/FileModalView.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/Login.js" type="text/javascript"></script>
|
<script src="app/docs/controller/Login.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/Tag.js" type="text/javascript"></script>
|
<script src="app/docs/controller/tag/Tag.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/Navigation.js" type="text/javascript"></script>
|
<script src="app/docs/controller/Navigation.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/Settings.js" type="text/javascript"></script>
|
<script src="app/docs/controller/settings/Settings.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/SettingsDefault.js" type="text/javascript"></script>
|
<script src="app/docs/controller/settings/SettingsDefault.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/SettingsAccount.js" type="text/javascript"></script>
|
<script src="app/docs/controller/settings/SettingsAccount.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/SettingsSession.js" type="text/javascript"></script>
|
<script src="app/docs/controller/settings/SettingsSecurity.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/SettingsLog.js" type="text/javascript"></script>
|
<script src="app/docs/controller/settings/SettingsSession.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/SettingsUser.js" type="text/javascript"></script>
|
<script src="app/docs/controller/settings/SettingsLog.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/SettingsUserEdit.js" type="text/javascript"></script>
|
<script src="app/docs/controller/settings/SettingsUser.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/SettingsGroup.js" type="text/javascript"></script>
|
<script src="app/docs/controller/settings/SettingsUserEdit.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/SettingsGroupEdit.js" type="text/javascript"></script>
|
<script src="app/docs/controller/settings/SettingsGroup.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/SettingsVocabulary.js" type="text/javascript"></script>
|
<script src="app/docs/controller/settings/SettingsGroupEdit.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/UserGroup.js" type="text/javascript"></script>
|
<script src="app/docs/controller/settings/SettingsVocabulary.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/UserProfile.js" type="text/javascript"></script>
|
<script src="app/docs/controller/usergroup/UserGroup.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/controller/GroupProfile.js" type="text/javascript"></script>
|
<script src="app/docs/controller/usergroup/UserProfile.js" type="text/javascript"></script>
|
||||||
|
<script src="app/docs/controller/usergroup/GroupProfile.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/service/User.js" type="text/javascript"></script>
|
<script src="app/docs/service/User.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/service/Tag.js" type="text/javascript"></script>
|
<script src="app/docs/service/Tag.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/filter/Newline.js" type="text/javascript"></script>
|
<script src="app/docs/filter/Newline.js" type="text/javascript"></script>
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-4">
|
<div class="col-md-3">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading"><strong>Personal settings</strong></div>
|
<div class="panel-heading"><strong>Personal settings</strong></div>
|
||||||
<ul class="list-group">
|
<ul class="list-group">
|
||||||
<a class="list-group-item" ng-class="{active: $uiRoute}" ui-route="/settings/account" href="#/settings/account">User account</a>
|
<a class="list-group-item" ng-class="{active: $uiRoute}" ui-route="/settings/account" href="#/settings/account">User account</a>
|
||||||
|
<a class="list-group-item" ng-class="{active: $uiRoute}" ui-route="/settings/security" href="#/settings/security">Two-factor authentication</a>
|
||||||
<a class="list-group-item" ng-class="{active: $uiRoute}" ui-route="/settings/session" href="#/settings/session">Opened sessions</a>
|
<a class="list-group-item" ng-class="{active: $uiRoute}" ui-route="/settings/session" href="#/settings/session">Opened sessions</a>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
@ -19,7 +20,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-8">
|
<div class="col-md-9">
|
||||||
<div ui-view="settings"></div>
|
<div ui-view="settings"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
@ -0,0 +1 @@
|
|||||||
|
<h1>Two-factor <small>authentication</small></h1>
|
Loading…
Reference in New Issue
Block a user