##// END OF EJS Templates
components: whole settings panel componentized
ergo -
Show More

The requested changes are too big and content was truncated. Show full diff

1 NO CONTENT: new file 100644
NO CONTENT: new file 100644
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: new file 100644
NO CONTENT: new file 100644
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: new file 100644
NO CONTENT: new file 100644
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: new file 100644
NO CONTENT: new file 100644
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: new file 100644
NO CONTENT: new file 100644
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: new file 100644
NO CONTENT: new file 100644
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: new file 100644
NO CONTENT: new file 100644
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: new file 100644
NO CONTENT: new file 100644
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: modified file
NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
@@ -52,6 +52,18 b" angular.module('appenlight.components', ["
52 'appenlight.components.userAuthTokensView',
52 'appenlight.components.userAuthTokensView',
53 'appenlight.components.userAlertChannelsListView',
53 'appenlight.components.userAlertChannelsListView',
54 'appenlight.components.userAlertChannelsEmailNewView',
54 'appenlight.components.userAlertChannelsEmailNewView',
55 'appenlight.components.applicationsListView',
56 'appenlight.components.applicationsPurgeLogsView',
57 'appenlight.components.applicationsUpdateView',
58 'appenlight.components.integrationsListView',
59 'appenlight.components.bitbucketIntegrationConfigView',
60 'appenlight.components.campfireIntegrationConfigView',
61 'appenlight.components.flowdockIntegrationConfigView',
62 'appenlight.components.githubIntegrationConfigView',
63 'appenlight.components.hipchatIntegrationConfigView',
64 'appenlight.components.jiraIntegrationConfigView',
65 'appenlight.components.slackIntegrationConfigView',
66 'appenlight.components.webhooksIntegrationConfigView',
55 'appenlight.components.settingsView'
67 'appenlight.components.settingsView'
56 ]);
68 ]);
57 angular.module('appenlight.directives', [
69 angular.module('appenlight.directives', [
@@ -1,12 +1,12 b''
1 <ng-include src="'templates/loader.html'" ng-if="integrations.loading.application && $state.is('applications.integrations')"></ng-include>
1 <ng-include src="'templates/loader.html'" ng-if="$ctrl.loading.application && $state.is('applications.integrations')"></ng-include>
2
2
3 <ui-view>
3 <ui-view>
4 <div class="panel panel-default" ng-show="!integrations.loading.application">
4 <div class="panel panel-default" ng-show="!$ctrl.loading.application">
5 <div class="panel-heading" ng-include="'templates/applications/breadcrumbs.html'"></div>
5 <div class="panel-heading" ng-include="'templates/settings_breadcrumbs.html'"></div>
6 <div class="panel-body">
6 <div class="panel-body">
7
7
8 <a class="btn btn-default integration"
8 <a class="btn btn-default integration"
9 data-ui-sref="applications.integrations.edit({resourceId:integrations.resource.resource_id, integration:'bitbucket'})">
9 data-ui-sref="applications.integrations.edit({resourceId:$ctrl.resource.resource_id, integration:'bitbucket'})">
10 <span class="fa fa-fw fa-bitbucket fa-3x pull-left"></span>
10 <span class="fa fa-fw fa-bitbucket fa-3x pull-left"></span>
11 <strong>Bitbucket</strong>
11 <strong>Bitbucket</strong>
12
12
@@ -14,7 +14,7 b''
14 </a>
14 </a>
15
15
16 <a class="btn btn-default integration"
16 <a class="btn btn-default integration"
17 data-ui-sref="applications.integrations.edit({resourceId:integrations.resource.resource_id, integration:'campfire'})">
17 data-ui-sref="applications.integrations.edit({resourceId:$ctrl.resource.resource_id, integration:'campfire'})">
18 <span class="fa fa-fw fa-comment fa-3x pull-left"></span>
18 <span class="fa fa-fw fa-comment fa-3x pull-left"></span>
19 <strong>Campfire</strong>
19 <strong>Campfire</strong>
20
20
@@ -22,7 +22,7 b''
22 </a>
22 </a>
23
23
24 <a class="btn btn-default integration"
24 <a class="btn btn-default integration"
25 data-ui-sref="applications.integrations.edit({resourceId:integrations.resource.resource_id, integration:'flowdock'})">
25 data-ui-sref="applications.integrations.edit({resourceId:$ctrl.resource.resource_id, integration:'flowdock'})">
26 <span class="fa fa-fw fa-envelope fa-3x pull-left"></span>
26 <span class="fa fa-fw fa-envelope fa-3x pull-left"></span>
27 <strong>Flowdock</strong>
27 <strong>Flowdock</strong>
28
28
@@ -31,7 +31,7 b''
31 </a>
31 </a>
32
32
33 <a class="btn btn-default integration"
33 <a class="btn btn-default integration"
34 data-ui-sref="applications.integrations.edit({resourceId:integrations.resource.resource_id, integration:'github'})">
34 data-ui-sref="applications.integrations.edit({resourceId:$ctrl.resource.resource_id, integration:'github'})">
35 <span class="fa fa-fw fa-github fa-3x pull-left"></span>
35 <span class="fa fa-fw fa-github fa-3x pull-left"></span>
36 <strong>Github</strong>
36 <strong>Github</strong>
37
37
@@ -39,7 +39,7 b''
39 </a>
39 </a>
40
40
41 <a class="btn btn-default integration"
41 <a class="btn btn-default integration"
42 data-ui-sref="applications.integrations.edit({resourceId:integrations.resource.resource_id, integration:'hipchat'})">
42 data-ui-sref="applications.integrations.edit({resourceId:$ctrl.resource.resource_id, integration:'hipchat'})">
43 <span class="fa fa-fw fa-comment fa-3x pull-left"></span>
43 <span class="fa fa-fw fa-comment fa-3x pull-left"></span>
44 <strong>HipChat</strong>
44 <strong>HipChat</strong>
45
45
@@ -47,7 +47,7 b''
47 </a>
47 </a>
48
48
49 <a class="btn btn-default integration"
49 <a class="btn btn-default integration"
50 data-ui-sref="applications.integrations.edit({resourceId:integrations.resource.resource_id, integration:'jira'})">
50 data-ui-sref="applications.integrations.edit({resourceId:$ctrl.resource.resource_id, integration:'jira'})">
51 <span class="fa fa-fw fa-ticket fa-3x pull-left"></span>
51 <span class="fa fa-fw fa-ticket fa-3x pull-left"></span>
52 <strong>Jira</strong>
52 <strong>Jira</strong>
53
53
@@ -55,7 +55,7 b''
55 </a>
55 </a>
56
56
57 <a class="btn btn-default integration"
57 <a class="btn btn-default integration"
58 data-ui-sref="applications.integrations.edit({resourceId:integrations.resource.resource_id, integration:'slack'})">
58 data-ui-sref="applications.integrations.edit({resourceId:$ctrl.resource.resource_id, integration:'slack'})">
59 <span class="fa fa-fw fa-comment fa-3x pull-left"></span>
59 <span class="fa fa-fw fa-comment fa-3x pull-left"></span>
60 <strong>Slack</strong>
60 <strong>Slack</strong>
61
61
@@ -63,7 +63,7 b''
63 </a>
63 </a>
64
64
65 <a class="btn btn-default integration"
65 <a class="btn btn-default integration"
66 data-ui-sref="applications.integrations.edit({resourceId:integrations.resource.resource_id, integration:'webhooks'})">
66 data-ui-sref="applications.integrations.edit({resourceId:$ctrl.resource.resource_id, integration:'webhooks'})">
67 <span class="fa fa-fw fa-cloud-upload fa-3x pull-left"></span>
67 <span class="fa fa-fw fa-cloud-upload fa-3x pull-left"></span>
68 <strong>Webhooks</strong>
68 <strong>Webhooks</strong>
69
69
@@ -17,12 +17,15 b''
17 // # services, and proprietary license terms, please see
17 // # services, and proprietary license terms, please see
18 // # https://rhodecode.com/licenses/
18 // # https://rhodecode.com/licenses/
19
19
20 angular.module('appenlight.controllers')
20 angular.module('appenlight.components.integrationsListView', [])
21 .controller('IntegrationsListController', IntegrationsListController)
21 .component('integrationsListView', {
22 templateUrl: 'components/views/applications-integrations-view/applications-integrations-view.html',
23 controller: IntegrationsListViewController
24 });
22
25
23 IntegrationsListController.$inject = ['$state', 'applicationsResource'];
26 IntegrationsListViewController.$inject = ['$state', 'applicationsResource'];
24
27
25 function IntegrationsListController($state, applicationsResource) {
28 function IntegrationsListViewController($state, applicationsResource) {
26 console.debug('IntegrationsListController');
29 console.debug('IntegrationsListController');
27 var vm = this;
30 var vm = this;
28 vm.loading = {application: true};
31 vm.loading = {application: true};
@@ -1,14 +1,14 b''
1 <ng-include src="'templates/loader.html'" ng-if="applications.loading.applications"></ng-include>
1 <ng-include src="'templates/loader.html'" ng-if="$ctrl.loading.applications"></ng-include>
2
2
3 <div class="panel panel-default" ng-show="!applications.loading.applications">
3 <div class="panel panel-default" ng-show="!$ctrl.loading.applications">
4 <div class="panel-heading" ng-include="'templates/applications/breadcrumbs.html'"></div>
4 <div class="panel-heading" ng-include="'templates/settings_breadcrumbs.html'"></div>
5 <div class="panel-body" ng-if="applications.applications.length === 0 ">
5 <div class="panel-body" ng-if="$ctrl.applications.length === 0 ">
6
6
7 <p>You have to create a new application first.</p>
7 <p>You have to create a new application first.</p>
8
8
9 </div>
9 </div>
10
10
11 <table class="table table-striped" ng-if="applications.applications.length > 0">
11 <table class="table table-striped" ng-if="$ctrl.applications.length > 0">
12 <thead>
12 <thead>
13 <tr>
13 <tr>
14 <th class="resource_name">Resource Name</th>
14 <th class="resource_name">Resource Name</th>
@@ -17,7 +17,7 b''
17 </tr>
17 </tr>
18 </thead>
18 </thead>
19 <tbody>
19 <tbody>
20 <tr class="r{{$index+1}}" ng-repeat="application in applications.applications">
20 <tr class="r{{$index+1}}" ng-repeat="application in $ctrl.applications">
21 <td>{{application.resource_name}}</td>
21 <td>{{application.resource_name}}</td>
22 <td>{{application.domains}}</td>
22 <td>{{application.domains}}</td>
23 <td class="options">
23 <td class="options">
@@ -17,14 +17,18 b''
17 // # services, and proprietary license terms, please see
17 // # services, and proprietary license terms, please see
18 // # https://rhodecode.com/licenses/
18 // # https://rhodecode.com/licenses/
19
19
20 angular.module('appenlight.controllers')
20 angular.module('appenlight.components.applicationsListView', [])
21 .controller('ApplicationsListController', ApplicationsListController)
21 .component('applicationsListView', {
22 templateUrl: 'components/views/applications-list-view/applications-list-view.html',
23 controller: ApplicationsListViewController
24 });
22
25
23 ApplicationsListController.$inject = ['applicationsResource'];
26 ApplicationsListViewController.$inject = ['$state', 'applicationsResource'];
24
27
25 function ApplicationsListController(applicationsResource) {
28 function ApplicationsListViewController($state, applicationsResource) {
26 console.debug('ApplicationsListController');
29 console.debug('ApplicationsListController');
27 var vm = this;
30 var vm = this;
31 vm.$state = $state;
28 vm.loading = {applications: true};
32 vm.loading = {applications: true};
29 vm.applications = applicationsResource.query(null, function(){
33 vm.applications = applicationsResource.query(null, function(){
30 vm.loading.applications = false;
34 vm.loading.applications = false;
@@ -1,17 +1,17 b''
1 <ng-include src="'templates/loader.html'" ng-if="applications_purge.loading.applications"></ng-include>
1 <ng-include src="'templates/loader.html'" ng-if="$ctrl.loading.applications"></ng-include>
2
2
3 <div ng-show="!applications_purge.loading.applications">
3 <div ng-show="!$ctrl.loading.applications">
4 <div class="panel panel-default">
4 <div class="panel panel-default">
5 <div class="panel-heading" ng-include="'templates/applications/breadcrumbs.html'"></div>
5 <div class="panel-heading" ng-include="'templates/settings_breadcrumbs.html'"></div>
6 <div class="panel-body">
6 <div class="panel-body">
7
7
8 <form method="post" class="form-horizontal" name="applications_purge.form" ng-submit="applications_purge.purgeLogs()">
8 <form method="post" class="form-horizontal" name="$ctrl.form" ng-submit="$ctrl.purgeLogs()">
9 <div class="form-group">
9 <div class="form-group">
10 <label class="control-label col-sm-3 col-lg-2">Application:</label>
10 <label class="control-label col-sm-3 col-lg-2">Application:</label>
11
11
12 <div class="col-sm-9 col-lg-10 form-inline">
12 <div class="col-sm-9 col-lg-10 form-inline">
13 <select ng-model="applications_purge.selectedResource" ng-change="applications_purge.getCommonKeys()"
13 <select ng-model="$ctrl.selectedResource" ng-change="$ctrl.getCommonKeys()"
14 ng-options="r.resource_id as r.resource_name for r in applications_purge.applications" class="form-control"></select>
14 ng-options="r.resource_id as r.resource_name for r in $ctrl.applications" class="form-control"></select>
15 </div>
15 </div>
16 </div>
16 </div>
17
17
@@ -19,8 +19,8 b''
19 <label class="control-label col-sm-3 col-lg-2">Namespace:</label>
19 <label class="control-label col-sm-3 col-lg-2">Namespace:</label>
20
20
21 <div class="col-sm-9 col-lg-10">
21 <div class="col-sm-9 col-lg-10">
22 <input type="text" name="namespace" ng-model="applications_purge.namespace"
22 <input type="text" name="namespace" ng-model="$ctrl.namespace"
23 placeholder="Namespace to filter on" uib-typeahead="ns for ns in applications_purge.commonNamespaces"
23 placeholder="Namespace to filter on" uib-typeahead="ns for ns in $ctrl.commonNamespaces"
24 class="form-control">
24 class="form-control">
25 </div>
25 </div>
26 </div>
26 </div>
@@ -17,14 +17,18 b''
17 // # services, and proprietary license terms, please see
17 // # services, and proprietary license terms, please see
18 // # https://rhodecode.com/licenses/
18 // # https://rhodecode.com/licenses/
19
19
20 angular.module('appenlight.controllers')
20 angular.module('appenlight.components.applicationsPurgeLogsView', [])
21 .controller('ApplicationsPurgeLogsController', ApplicationsPurgeLogsController)
21 .component('applicationsPurgeLogsView', {
22 templateUrl: 'components/views/applications-purge-logs-view/applications-purge-logs-view.html',
23 controller: applicationsPurgeLogsViewController
24 });
22
25
23 ApplicationsPurgeLogsController.$inject = ['applicationsResource', 'sectionViewResource', 'logsNoIdResource'];
26 applicationsPurgeLogsViewController.$inject = ['$state' ,'applicationsResource', 'sectionViewResource', 'logsNoIdResource'];
24
27
25 function ApplicationsPurgeLogsController(applicationsResource, sectionViewResource, logsNoIdResource) {
28 function applicationsPurgeLogsViewController($state, applicationsResource, sectionViewResource, logsNoIdResource) {
26 console.debug('ApplicationsPurgeLogsController');
29 console.debug('applicationsPurgeLogsViewController');
27 var vm = this;
30 var vm = this;
31 vm.$state = $state;
28 vm.loading = {applications: true};
32 vm.loading = {applications: true};
29
33
30 vm.namespace = null;
34 vm.namespace = null;
1 NO CONTENT: file renamed from frontend/src/templates/applications/applications_update.html to frontend/src/components/views/applications-update-view/applications-update-view.html
NO CONTENT: file renamed from frontend/src/templates/applications/applications_update.html to frontend/src/components/views/applications-update-view/applications-update-view.html
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: file renamed from frontend/src/controllers/applications/applications_create.js to frontend/src/components/views/applications-update-view/applications-update-view.js
NO CONTENT: file renamed from frontend/src/controllers/applications/applications_create.js to frontend/src/components/views/applications-update-view/applications-update-view.js
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: file renamed from frontend/src/controllers/applications/integration.js to frontend/src/components/views/integrations/applications-integrations-edit-view.js
NO CONTENT: file renamed from frontend/src/controllers/applications/integration.js to frontend/src/components/views/integrations/applications-integrations-edit-view.js
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: file renamed from frontend/src/templates/applications/integrations/bitbucket.html to frontend/src/components/views/integrations/bitbucket-integration-config-view/bitbucket-integration-config-view.html
NO CONTENT: file renamed from frontend/src/templates/applications/integrations/bitbucket.html to frontend/src/components/views/integrations/bitbucket-integration-config-view/bitbucket-integration-config-view.html
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: file renamed from frontend/src/templates/applications/integrations/campfire.html to frontend/src/components/views/integrations/campfire-integration-config-view/campfire-integration-config-view.html
NO CONTENT: file renamed from frontend/src/templates/applications/integrations/campfire.html to frontend/src/components/views/integrations/campfire-integration-config-view/campfire-integration-config-view.html
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: file renamed from frontend/src/templates/applications/integrations/flowdock.html to frontend/src/components/views/integrations/flowdock-integration-config-view/flowdock-integration-config-view.html
NO CONTENT: file renamed from frontend/src/templates/applications/integrations/flowdock.html to frontend/src/components/views/integrations/flowdock-integration-config-view/flowdock-integration-config-view.html
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: file renamed from frontend/src/templates/applications/integrations/github.html to frontend/src/components/views/integrations/github-integration-config-view/github-integration-config-view.html
NO CONTENT: file renamed from frontend/src/templates/applications/integrations/github.html to frontend/src/components/views/integrations/github-integration-config-view/github-integration-config-view.html
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: file renamed from frontend/src/templates/applications/integrations/hipchat.html to frontend/src/components/views/integrations/hipchat-integration-config-view/hipchat-integration-config-view.html
NO CONTENT: file renamed from frontend/src/templates/applications/integrations/hipchat.html to frontend/src/components/views/integrations/hipchat-integration-config-view/hipchat-integration-config-view.html
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: file renamed from frontend/src/templates/applications/integrations/jira.html to frontend/src/components/views/integrations/jira-integration-config-view/jira-integration-config-view.html
NO CONTENT: file renamed from frontend/src/templates/applications/integrations/jira.html to frontend/src/components/views/integrations/jira-integration-config-view/jira-integration-config-view.html
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: file renamed from frontend/src/templates/applications/integrations/slack.html to frontend/src/components/views/integrations/slack-integration-config-view/slack-integration-config-view.html
NO CONTENT: file renamed from frontend/src/templates/applications/integrations/slack.html to frontend/src/components/views/integrations/slack-integration-config-view/slack-integration-config-view.html
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: file renamed from frontend/src/templates/applications/integrations/webhooks.html to frontend/src/components/views/integrations/webhooks-integration-config-view/webhooks-integration-config-view.html
NO CONTENT: file renamed from frontend/src/templates/applications/integrations/webhooks.html to frontend/src/components/views/integrations/webhooks-integration-config-view/webhooks-integration-config-view.html
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: modified file
NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: modified file
NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: modified file
NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: modified file
NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: modified file
NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: modified file
NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: modified file
NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: file renamed from frontend/src/templates/user/breadcrumbs.html to frontend/src/templates/settings_breadcrumbs.html
NO CONTENT: file renamed from frontend/src/templates/user/breadcrumbs.html to frontend/src/templates/settings_breadcrumbs.html
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: file was removed
NO CONTENT: file was removed
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: file was removed
NO CONTENT: file was removed
The requested commit or file is too big and content was truncated. Show full diff
General Comments 0
You need to be logged in to leave comments. Login now