mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 11:51:02 +00:00
style mods to the login page
This commit is contained in:
parent
67b7803a4e
commit
7d446459d3
5 changed files with 26 additions and 11 deletions
|
@ -14,7 +14,7 @@ Some of the fundamental changes include
|
|||
5. github, bitbucket, etc native permissions are used. No more teams or permissions in Drone
|
||||
6. github, bitbucket, etc authentication is used. No more drone password
|
||||
7. github, bitbucket, etc repository data is cached upon login (and subsequent logins)
|
||||
8. angularjs user interface with modified reactive design
|
||||
8. angularjs user interface with modified responsive design
|
||||
|
||||
... probably more that I'm forgetting
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('app').controller("SetupController", function($scope, $http, $routeParams, $window) {
|
||||
angular.module('app').controller("SetupController", function($scope, $http, $routeParams, $window, $location) {
|
||||
|
||||
// create a remote that will be populated
|
||||
// and persisted to the database.
|
||||
|
@ -24,17 +24,16 @@ angular.module('app').controller("SetupController", function($scope, $http, $rou
|
|||
break;
|
||||
}
|
||||
|
||||
// todo(bradrydzewski) move this to the remote.js service.
|
||||
$scope.save = function() {
|
||||
// request to create a new repository
|
||||
$http({method: 'POST', url: '/v1/remotes', data: $scope.remote }).
|
||||
success(function(data, status, headers, config) {
|
||||
delete $scope.failure;
|
||||
$scope.remote = data;
|
||||
$window.location.href="/login/"+data.type;
|
||||
$location.path("/login");
|
||||
}).
|
||||
error(function(data, status, headers, config) {
|
||||
$scope.failure = data;
|
||||
console.log('failure', $scope.failure);
|
||||
});
|
||||
};
|
||||
});
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
angular.module('app').controller("SyncController", function($scope, $http, $interval, $location, users) {
|
||||
var stop = $interval(function() {
|
||||
// todo(bradrydzewski) We should poll the user to see
|
||||
// if the sync process is complete.
|
||||
// todo(bradrydzewski) We should poll the user to see if the
|
||||
// sync process is complete, using the user.syncing variable.
|
||||
$interval.cancel(stop);
|
||||
$location.path("/");
|
||||
}, 5000);
|
||||
|
|
|
@ -1,3 +1,12 @@
|
|||
<!--
|
||||
minor modifications to the style that only apply to this view
|
||||
-->
|
||||
<style>
|
||||
#container { padding-top: 155px; }
|
||||
#header { height: 150px; }
|
||||
.brand { margin-top:55px ; }
|
||||
</style>
|
||||
|
||||
<article id="loginpage">
|
||||
<div class="pure-g">
|
||||
<div class="pure-u-1" ng-if="state == 1 && remotes.length != 0" ng-repeat="remote in remotes">
|
||||
|
|
|
@ -55,7 +55,6 @@ func main() {
|
|||
|
||||
log.SetPriority(log.LOG_NOTICE)
|
||||
|
||||
// parse command line flags
|
||||
flag.StringVar(&port, "port", ":8080", "")
|
||||
flag.StringVar(&driver, "driver", "sqlite3", "")
|
||||
flag.StringVar(&datasource, "datasource", "drone.sqlite", "")
|
||||
|
@ -143,14 +142,22 @@ func main() {
|
|||
}
|
||||
}
|
||||
|
||||
func setupDatabase() {
|
||||
func init() {
|
||||
|
||||
}
|
||||
|
||||
func setupQueue() {
|
||||
func init_flags() {
|
||||
|
||||
}
|
||||
|
||||
func setupHandlers() {
|
||||
func init_database() {
|
||||
|
||||
}
|
||||
|
||||
func init_workers() {
|
||||
|
||||
}
|
||||
|
||||
func init_handlers() {
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue