Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
ulakbus-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ulakbus
ulakbus-ui
Commits
aeb8c045
Commit
aeb8c045
authored
Feb 19, 2016
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIX fail to sleep so did some optimizations
parent
54e4b73e
Changes
21
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
73 additions
and
122 deletions
+73
-122
app.js
app/app.js
+1
-3
app_routes.js
app/app_routes.js
+10
-10
auth_controller.js
app/components/auth/auth_controller.js
+4
-1
auth_test.js
app/components/auth/auth_test.js
+2
-2
crud_controller.js
app/components/crud/crud_controller.js
+5
-5
crud_controller_test.js
app/components/crud/crud_controller_test.js
+12
-12
dashboard_controller.js
app/components/dashboard/dashboard_controller.js
+1
-1
dashboard_test.js
app/components/dashboard/dashboard_test.js
+4
-4
debug_controller.js
app/components/debug/debug_controller.js
+1
-1
devSettings_controller.js
app/components/devSettings/devSettings_controller.js
+1
-1
error_controller.js
app/components/error_pages/error_controller.js
+4
-4
index.html
app/index.html
+4
-6
main.html
app/main.html
+4
-6
main.js
app/main.js
+1
-3
directives.js
app/shared/directives.js
+4
-49
action_service.js
app/zetalib/action_service.js
+3
-3
form_service.js
app/zetalib/form_service.js
+4
-4
app.js
dist/app.js
+3
-3
components.js
dist/bower_components/components.js
+1
-1
index.html
dist/index.html
+2
-2
karma.conf.js
karma.conf.js
+2
-1
No files found.
app/app.js
View file @
aeb8c045
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
*/
*/
angular
.
module
(
angular
.
module
(
'ulakbus'
,
[
'ulakbus'
,
[
'ui.bootstrap'
,
//
'ui.bootstrap',
'angular-loading-bar'
,
'angular-loading-bar'
,
'ngRoute'
,
'ngRoute'
,
'ngSanitize'
,
'ngSanitize'
,
...
@@ -35,9 +35,7 @@ angular.module(
...
@@ -35,9 +35,7 @@ angular.module(
'ulakbus.debug'
,
'ulakbus.debug'
,
'ulakbus.devSettings'
,
'ulakbus.devSettings'
,
'ulakbus.version'
,
'ulakbus.version'
,
//'schemaForm',
'gettext'
,
'gettext'
,
'ulakbus.uitemplates'
])
])
/**
/**
* @memberof ulakbus
* @memberof ulakbus
...
...
app/app_routes.js
View file @
aeb8c045
...
@@ -5,46 +5,46 @@ angular.module('ulakbus')
...
@@ -5,46 +5,46 @@ angular.module('ulakbus')
$routeProvider
$routeProvider
.
when
(
'/login'
,
{
.
when
(
'/login'
,
{
templateUrl
:
'components/auth/login.html'
,
templateUrl
:
'components/auth/login.html'
,
controller
:
'LoginC
trl
'
controller
:
'LoginC
ontroller
'
})
})
.
when
(
'/dashboard'
,
{
.
when
(
'/dashboard'
,
{
templateUrl
:
'components/dashboard/dashboard.html'
,
templateUrl
:
'components/dashboard/dashboard.html'
,
controller
:
'DashC
trl
'
controller
:
'DashC
ontroller
'
})
})
.
when
(
'/dev/settings'
,
{
.
when
(
'/dev/settings'
,
{
templateUrl
:
'components/devSettings/devSettings.html'
,
templateUrl
:
'components/devSettings/devSettings.html'
,
controller
:
'DevSettingsC
trl
'
controller
:
'DevSettingsC
ontroller
'
})
})
.
when
(
'/debug/list'
,
{
.
when
(
'/debug/list'
,
{
templateUrl
:
'components/debug/debug.html'
,
templateUrl
:
'components/debug/debug.html'
,
controller
:
'DebugC
trl
'
controller
:
'DebugC
ontroller
'
})
})
// use crud without selected user
// use crud without selected user
// important: regex urls must be defined later than static ones
// important: regex urls must be defined later than static ones
.
when
(
'/:wf/'
,
{
.
when
(
'/:wf/'
,
{
templateUrl
:
'components/crud/templates/crud.html'
,
templateUrl
:
'components/crud/templates/crud.html'
,
controller
:
'CRUDC
trl
'
controller
:
'CRUDC
ontroller
'
})
})
.
when
(
'/:wf/do/:cmd'
,
{
.
when
(
'/:wf/do/:cmd'
,
{
templateUrl
:
'components/crud/templates/crud.html'
,
templateUrl
:
'components/crud/templates/crud.html'
,
controller
:
'CRUDListFormC
trl
'
controller
:
'CRUDListFormC
ontroller
'
})
})
.
when
(
'/:wf/do/:cmd/:key'
,
{
.
when
(
'/:wf/do/:cmd/:key'
,
{
templateUrl
:
'components/crud/templates/crud.html'
,
templateUrl
:
'components/crud/templates/crud.html'
,
controller
:
'CRUDListFormC
trl
'
controller
:
'CRUDListFormC
ontroller
'
})
})
.
when
(
'/:wf/:model'
,
{
.
when
(
'/:wf/:model'
,
{
templateUrl
:
'components/crud/templates/crud.html'
,
templateUrl
:
'components/crud/templates/crud.html'
,
controller
:
'CRUDC
trl
'
controller
:
'CRUDC
ontroller
'
})
})
.
when
(
'/:wf/:model/do/:cmd'
,
{
.
when
(
'/:wf/:model/do/:cmd'
,
{
templateUrl
:
'components/crud/templates/crud.html'
,
templateUrl
:
'components/crud/templates/crud.html'
,
controller
:
'CRUDListFormC
trl
'
controller
:
'CRUDListFormC
ontroller
'
})
})
.
when
(
'/:wf/:model/do/:cmd/:key'
,
{
.
when
(
'/:wf/:model/do/:cmd/:key'
,
{
templateUrl
:
'components/crud/templates/crud.html'
,
templateUrl
:
'components/crud/templates/crud.html'
,
controller
:
'CRUDListFormC
trl
'
controller
:
'CRUDListFormC
ontroller
'
})
})
.
otherwise
({
redirectTo
:
'/dashboard'
});
.
otherwise
({
redirectTo
:
'/dashboard'
});
...
...
app/components/auth/auth_controller.js
View file @
aeb8c045
...
@@ -25,7 +25,7 @@ angular.module('ulakbus.auth', ['ngRoute', 'ngCookies'])
...
@@ -25,7 +25,7 @@ angular.module('ulakbus.auth', ['ngRoute', 'ngCookies'])
* @description LoginCtrl responsible to handle login process.<br>
* @description LoginCtrl responsible to handle login process.<br>
* Using 'ulakbus.formService.get_form' function generates the login form and post it to the API with input datas.
* Using 'ulakbus.formService.get_form' function generates the login form and post it to the API with input datas.
*/
*/
.
controller
(
'LoginC
trl
'
,
function
(
$scope
,
$q
,
$timeout
,
$routeParams
,
$rootScope
,
$log
,
Generator
,
AuthService
)
{
.
controller
(
'LoginC
ontroller
'
,
function
(
$scope
,
$q
,
$timeout
,
$routeParams
,
$rootScope
,
$log
,
Generator
,
AuthService
)
{
$scope
.
url
=
'login'
;
$scope
.
url
=
'login'
;
$scope
.
form_params
=
{};
$scope
.
form_params
=
{};
$scope
.
form_params
[
'clear_wf'
]
=
1
;
$scope
.
form_params
[
'clear_wf'
]
=
1
;
...
@@ -35,6 +35,9 @@ angular.module('ulakbus.auth', ['ngRoute', 'ngCookies'])
...
@@ -35,6 +35,9 @@ angular.module('ulakbus.auth', ['ngRoute', 'ngCookies'])
{
key
:
"password"
,
type
:
"password"
,
title
:
"Şifre"
},
{
key
:
"password"
,
type
:
"password"
,
title
:
"Şifre"
},
{
type
:
'submit'
,
title
:
'Giriş Yap'
}
{
type
:
'submit'
,
title
:
'Giriş Yap'
}
];
];
// to show page items showApp must be set to true
// it prevents to show empty nonsense page items when http401/403
$rootScope
.
showApp
=
true
;
});
});
$scope
.
loggingIn
=
false
;
$scope
.
loggingIn
=
false
;
$scope
.
onSubmit
=
function
(
form
)
{
$scope
.
onSubmit
=
function
(
form
)
{
...
...
app/components/auth/auth_test.js
View file @
aeb8c045
...
@@ -33,7 +33,7 @@ describe('ulakbus.auth module', function () {
...
@@ -33,7 +33,7 @@ describe('ulakbus.auth module', function () {
describe
(
'login controller and service'
,
function
()
{
describe
(
'login controller and service'
,
function
()
{
it
(
'should have a login controller'
,
inject
(
function
()
{
it
(
'should have a login controller'
,
inject
(
function
()
{
expect
(
'ulakbus.auth.LoginC
trl
'
).
toBeDefined
();
expect
(
'ulakbus.auth.LoginC
ontroller
'
).
toBeDefined
();
}));
}));
it
(
'should get login form'
,
inject
(
it
(
'should get login form'
,
inject
(
...
@@ -44,7 +44,7 @@ describe('ulakbus.auth module', function () {
...
@@ -44,7 +44,7 @@ describe('ulakbus.auth module', function () {
var
$scope
=
$rootScope
.
$new
();
var
$scope
=
$rootScope
.
$new
();
$scope
[
'url'
]
=
'login'
;
$scope
[
'url'
]
=
'login'
;
$scope
[
'form_params'
]
=
{
clear_wf
:
1
};
$scope
[
'form_params'
]
=
{
clear_wf
:
1
};
var
controller
=
$controller
(
'LoginC
trl
'
,
{
$scope
:
$scope
});
var
controller
=
$controller
(
'LoginC
ontroller
'
,
{
$scope
:
$scope
});
expect
(
$scope
.
onSubmit
).
toBeDefined
();
expect
(
$scope
.
onSubmit
).
toBeDefined
();
})
})
...
...
app/components/crud/crud_controller.js
View file @
aeb8c045
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
* @requires ulakbus.formService
* @requires ulakbus.formService
* @type {ng.$compileProvider|*}
* @type {ng.$compileProvider|*}
*/
*/
angular
.
module
(
'ulakbus.crud'
,
[
'
ui.bootstrap'
,
'
schemaForm'
,
'ulakbus.formService'
])
angular
.
module
(
'ulakbus.crud'
,
[
'schemaForm'
,
'ulakbus.formService'
])
.
config
(
function
(
sfErrorMessageProvider
)
{
.
config
(
function
(
sfErrorMessageProvider
)
{
sfErrorMessageProvider
.
setDefaultMessage
(
302
,
'Bu alan zorunludur.'
);
sfErrorMessageProvider
.
setDefaultMessage
(
302
,
'Bu alan zorunludur.'
);
sfErrorMessageProvider
.
setDefaultMessage
(
200
,
'En az {{schema.minLength}} değer giriniz.'
);
sfErrorMessageProvider
.
setDefaultMessage
(
200
,
'En az {{schema.minLength}} değer giriniz.'
);
...
@@ -128,7 +128,7 @@ angular.module('ulakbus.crud', ['ui.bootstrap', 'schemaForm', 'ulakbus.formServi
...
@@ -128,7 +128,7 @@ angular.module('ulakbus.crud', ['ui.bootstrap', 'schemaForm', 'ulakbus.formServi
*
*
* @returns {object}
* @returns {object}
*/
*/
.
controller
(
'CRUDC
trl
'
,
function
(
$scope
,
$routeParams
,
Generator
,
CrudUtility
)
{
.
controller
(
'CRUDC
ontroller
'
,
function
(
$scope
,
$routeParams
,
Generator
,
CrudUtility
)
{
// get required params by calling CrudUtility.generateParam function
// get required params by calling CrudUtility.generateParam function
CrudUtility
.
generateParam
(
$scope
,
$routeParams
);
CrudUtility
.
generateParam
(
$scope
,
$routeParams
);
Generator
.
get_wf
(
$scope
);
Generator
.
get_wf
(
$scope
);
...
@@ -137,8 +137,8 @@ angular.module('ulakbus.crud', ['ui.bootstrap', 'schemaForm', 'ulakbus.formServi
...
@@ -137,8 +137,8 @@ angular.module('ulakbus.crud', ['ui.bootstrap', 'schemaForm', 'ulakbus.formServi
/**
/**
* @memberof ulakbus.crud
* @memberof ulakbus.crud
* @ngdoc controller
* @ngdoc controller
* @name CRUDListFormC
trl
* @name CRUDListFormC
ontroller
* @description CRUDListFormC
trl
is the main controller for crud module
* @description CRUDListFormC
ontroller
is the main controller for crud module
* Based on the client_cmd parameter it generates its scope items.
* Based on the client_cmd parameter it generates its scope items.
* client_cmd can be in ['show', 'list', 'form', 'reload', 'refresh']
* client_cmd can be in ['show', 'list', 'form', 'reload', 'refresh']
* There are 3 directives to manipulate controllers scope objects in crud.html
* There are 3 directives to manipulate controllers scope objects in crud.html
...
@@ -152,7 +152,7 @@ angular.module('ulakbus.crud', ['ui.bootstrap', 'schemaForm', 'ulakbus.formServi
...
@@ -152,7 +152,7 @@ angular.module('ulakbus.crud', ['ui.bootstrap', 'schemaForm', 'ulakbus.formServi
*
*
* @returns {object}
* @returns {object}
*/
*/
.
controller
(
'CRUDListFormC
trl
'
,
function
(
$scope
,
$rootScope
,
$location
,
$http
,
$log
,
$uibModal
,
$timeout
,
Generator
,
$routeParams
,
CrudUtility
)
{
.
controller
(
'CRUDListFormC
ontroller
'
,
function
(
$scope
,
$rootScope
,
$location
,
$http
,
$log
,
$uibModal
,
$timeout
,
Generator
,
$routeParams
,
CrudUtility
)
{
// reloadData must be a json object
// reloadData must be a json object
$scope
.
reload
=
function
(
reloadData
)
{
$scope
.
reload
=
function
(
reloadData
)
{
$scope
.
form_params
.
cmd
=
$scope
.
reload_cmd
;
$scope
.
form_params
.
cmd
=
$scope
.
reload_cmd
;
...
...
app/components/crud/crud_controller_test.js
View file @
aeb8c045
...
@@ -29,8 +29,8 @@ describe('crud controller module', function () {
...
@@ -29,8 +29,8 @@ describe('crud controller module', function () {
describe
(
'crud controller'
,
function
()
{
describe
(
'crud controller'
,
function
()
{
it
(
'should have CRUDListFormC
trl
'
,
inject
(
function
()
{
it
(
'should have CRUDListFormC
ontroller
'
,
inject
(
function
()
{
expect
(
'ulakbus.crud.CRUDListFormC
trl
'
).
toBeDefined
();
expect
(
'ulakbus.crud.CRUDListFormC
ontroller
'
).
toBeDefined
();
}));
}));
it
(
'should have CRUDCtrl'
,
inject
(
function
()
{
it
(
'should have CRUDCtrl'
,
inject
(
function
()
{
...
@@ -52,24 +52,24 @@ describe('crud controller module', function () {
...
@@ -52,24 +52,24 @@ describe('crud controller module', function () {
expect
(
$controller
).
toBeDefined
();
expect
(
$controller
).
toBeDefined
();
}]));
}]));
it
(
'should execute CRUDListFormC
trl
with form cms'
,
inject
(
function
(
$rootScope
,
RESTURL
)
{
it
(
'should execute CRUDListFormC
ontroller
with form cms'
,
inject
(
function
(
$rootScope
,
RESTURL
)
{
$httpBackend
.
expectGET
(
RESTURL
.
url
+
'ara/personel/123'
)
$httpBackend
.
expectGET
(
RESTURL
.
url
+
'ara/personel/123'
)
.
respond
(
200
,
{});
.
respond
(
200
,
{});
var
$scope
=
$rootScope
.
$new
();
var
$scope
=
$rootScope
.
$new
();
var
$routeParams
=
{
cmd
:
'form'
};
var
$routeParams
=
{
cmd
:
'form'
};
var
controller
=
$controller
(
'CRUDListFormC
trl
'
,
{
$scope
:
$scope
,
$routeParams
:
$routeParams
});
var
controller
=
$controller
(
'CRUDListFormC
ontroller
'
,
{
$scope
:
$scope
,
$routeParams
:
$routeParams
});
}));
}));
it
(
'should execute CRUDListFormC
trl
with list cmd'
,
inject
(
function
(
$rootScope
,
RESTURL
)
{
it
(
'should execute CRUDListFormC
ontroller
with list cmd'
,
inject
(
function
(
$rootScope
,
RESTURL
)
{
$httpBackend
.
expectGET
(
RESTURL
.
url
+
'ara/personel/123'
)
$httpBackend
.
expectGET
(
RESTURL
.
url
+
'ara/personel/123'
)
.
respond
(
200
,
{});
.
respond
(
200
,
{});
var
$scope
=
$rootScope
.
$new
();
var
$scope
=
$rootScope
.
$new
();
$scope
.
meta
=
{
'allow_filters'
:
true
};
$scope
.
meta
=
{
'allow_filters'
:
true
};
var
$routeParams
=
{
cmd
:
'list'
};
var
$routeParams
=
{
cmd
:
'list'
};
var
controller
=
$controller
(
'CRUDListFormC
trl
'
,
{
$scope
:
$scope
,
$routeParams
:
$routeParams
});
var
controller
=
$controller
(
'CRUDListFormC
ontroller
'
,
{
$scope
:
$scope
,
$routeParams
:
$routeParams
});
$scope
.
$broadcast
(
'reload_cmd'
,
'list'
);
$scope
.
$broadcast
(
'reload_cmd'
,
'list'
);
$scope
.
$broadcast
(
'updateObjects'
,
[
'test'
,
'headers'
]);
$scope
.
$broadcast
(
'updateObjects'
,
[
'test'
,
'headers'
]);
...
@@ -83,23 +83,23 @@ describe('crud controller module', function () {
...
@@ -83,23 +83,23 @@ describe('crud controller module', function () {
$scope
.
resetCmd
();
$scope
.
resetCmd
();
}));
}));
it
(
'should execute CRUDListFormC
trl
with show cmd'
,
inject
(
function
(
$rootScope
,
Generator
)
{
it
(
'should execute CRUDListFormC
ontroller
with show cmd'
,
inject
(
function
(
$rootScope
,
Generator
)
{
var
$scope
=
$rootScope
.
$new
();
var
$scope
=
$rootScope
.
$new
();
var
$routeParams
=
{
cmd
:
'show'
};
var
$routeParams
=
{
cmd
:
'show'
};
$scope
.
object
=
[];
$scope
.
object
=
[];
var
controller
=
$controller
(
'CRUDListFormC
trl
'
,
{
$scope
:
$scope
,
$routeParams
:
$routeParams
});
var
controller
=
$controller
(
'CRUDListFormC
ontroller
'
,
{
$scope
:
$scope
,
$routeParams
:
$routeParams
});
$scope
.
object
=
{
test
:
{}};
$scope
.
object
=
{
test
:
{}};
var
controller
=
$controller
(
'CRUDListFormC
trl
'
,
{
$scope
:
$scope
,
$routeParams
:
$routeParams
});
var
controller
=
$controller
(
'CRUDListFormC
ontroller
'
,
{
$scope
:
$scope
,
$routeParams
:
$routeParams
});
$scope
.
pageData
=
true
;
$scope
.
pageData
=
true
;
Generator
.
setPageData
(
$scope
);
Generator
.
setPageData
(
$scope
);
var
controller
=
$controller
(
'CRUDListFormC
trl
'
,
{
$scope
:
$scope
,
$routeParams
:
$routeParams
});
var
controller
=
$controller
(
'CRUDListFormC
ontroller
'
,
{
$scope
:
$scope
,
$routeParams
:
$routeParams
});
}));
}));
it
(
'should execute CRUDListFormC
trl
with relad cmd'
,
inject
(
function
(
$rootScope
,
RESTURL
)
{
it
(
'should execute CRUDListFormC
ontroller
with relad cmd'
,
inject
(
function
(
$rootScope
,
RESTURL
)
{
$httpBackend
.
expectGET
(
RESTURL
.
url
+
'ara/personel/123'
)
$httpBackend
.
expectGET
(
RESTURL
.
url
+
'ara/personel/123'
)
.
respond
(
200
,
{});
.
respond
(
200
,
{});
...
@@ -107,7 +107,7 @@ describe('crud controller module', function () {
...
@@ -107,7 +107,7 @@ describe('crud controller module', function () {
$scope
.
form_params
=
{};
$scope
.
form_params
=
{};
$scope
.
reload_cmd
=
'list'
;
$scope
.
reload_cmd
=
'list'
;
var
$routeParams
=
{
cmd
:
'reload'
};
var
$routeParams
=
{
cmd
:
'reload'
};
var
controller
=
$controller
(
'CRUDListFormC
trl
'
,
{
$scope
:
$scope
,
$routeParams
:
$routeParams
});
var
controller
=
$controller
(
'CRUDListFormC
ontroller
'
,
{
$scope
:
$scope
,
$routeParams
:
$routeParams
});
}));
}));
...
...
app/components/dashboard/dashboard_controller.js
View file @
aeb8c045
...
@@ -21,7 +21,7 @@ angular.module('ulakbus.dashboard', [])
...
@@ -21,7 +21,7 @@ angular.module('ulakbus.dashboard', [])
$uibTooltipProvider
.
setTriggers
({
'click'
:
'mouseleave'
});
$uibTooltipProvider
.
setTriggers
({
'click'
:
'mouseleave'
});
})
})
.
controller
(
'DashC
trl
'
,
function
(
$scope
,
$rootScope
,
$timeout
,
$http
,
$cookies
,
RESTURL
,
Generator
)
{
.
controller
(
'DashC
ontroller
'
,
function
(
$scope
,
$rootScope
,
$timeout
,
$http
,
$cookies
,
RESTURL
,
Generator
)
{
$scope
.
section
=
function
(
section_index
)
{
$scope
.
section
=
function
(
section_index
)
{
$rootScope
.
section
=
section_index
;
$rootScope
.
section
=
section_index
;
};
};
...
...
app/components/dashboard/dashboard_test.js
View file @
aeb8c045
...
@@ -26,17 +26,17 @@ describe('dashboard controller module', function () {
...
@@ -26,17 +26,17 @@ describe('dashboard controller module', function () {
}));
}));
describe
(
'dashboard controller'
,
function
()
{
describe
(
'dashboard controller'
,
function
()
{
it
(
'should define DashC
trl
'
,
inject
(
function
()
{
it
(
'should define DashC
ontroller
'
,
inject
(
function
()
{
expect
(
'ulakbus.dashboard.DashC
trl
'
).
toBeDefined
();
expect
(
'ulakbus.dashboard.DashC
ontroller
'
).
toBeDefined
();
}));
}));
// todo: complete dashboard tests
// todo: complete dashboard tests
it
(
'should execute DashC
trl
functions'
,
inject
(
function
(
$rootScope
,
RESTURL
)
{
it
(
'should execute DashC
ontroller
functions'
,
inject
(
function
(
$rootScope
,
RESTURL
)
{
$httpBackend
.
expectGET
(
RESTURL
.
url
+
'ara/personel/123'
)
$httpBackend
.
expectGET
(
RESTURL
.
url
+
'ara/personel/123'
)
.
respond
(
200
,
{});
.
respond
(
200
,
{});
var
$scope
=
$rootScope
.
$new
();
var
$scope
=
$rootScope
.
$new
();
var
controller
=
$controller
(
'DashC
trl
'
,
{
$scope
:
$scope
});
var
controller
=
$controller
(
'DashC
ontroller
'
,
{
$scope
:
$scope
});
$scope
.
student_kw
=
"123"
;
$scope
.
student_kw
=
"123"
;
$scope
.
staff_kw
=
"123"
;
$scope
.
staff_kw
=
"123"
;
...
...
app/components/debug/debug_controller.js
View file @
aeb8c045
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
'use strict'
;
'use strict'
;
angular
.
module
(
'ulakbus.debug'
,
[
'ngRoute'
])
angular
.
module
(
'ulakbus.debug'
,
[
'ngRoute'
])
.
controller
(
'DebugC
trl
'
,
function
(
$scope
,
$rootScope
,
$location
)
{
.
controller
(
'DebugC
ontroller
'
,
function
(
$scope
,
$rootScope
,
$location
)
{
$scope
.
debug_queries
=
$rootScope
.
debug_queries
;
$scope
.
debug_queries
=
$rootScope
.
debug_queries
;
...
...
app/components/devSettings/devSettings_controller.js
View file @
aeb8c045
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
angular
.
module
(
'ulakbus.devSettings'
,
[
'ngRoute'
])
angular
.
module
(
'ulakbus.devSettings'
,
[
'ngRoute'
])
.
controller
(
'DevSettingsC
trl
'
,
function
(
$scope
,
$cookies
,
$rootScope
,
RESTURL
)
{
.
controller
(
'DevSettingsC
ontroller
'
,
function
(
$scope
,
$cookies
,
$rootScope
,
RESTURL
)
{
$scope
.
backendurl
=
$cookies
.
get
(
"backendurl"
);
$scope
.
backendurl
=
$cookies
.
get
(
"backendurl"
);
$scope
.
notificate
=
$cookies
.
get
(
"notificate"
)
||
"on"
;
$scope
.
notificate
=
$cookies
.
get
(
"notificate"
)
||
"on"
;
//$scope.querydebug = $cookies.get("querydebug") || "on";
//$scope.querydebug = $cookies.get("querydebug") || "on";
...
...
app/components/error_pages/error_controller.js
View file @
aeb8c045
...
@@ -12,18 +12,18 @@ angular.module('ulakbus').config(['$routeProvider', function ($routeProvider) {
...
@@ -12,18 +12,18 @@ angular.module('ulakbus').config(['$routeProvider', function ($routeProvider) {
$routeProvider
$routeProvider
.
when
(
'/error/500'
,
{
.
when
(
'/error/500'
,
{
templateUrl
:
'components/error_pages/500.html'
,
templateUrl
:
'components/error_pages/500.html'
,
controller
:
'500C
trl
'
controller
:
'500C
ontroller
'
})
})
.
when
(
'/error/404'
,
{
.
when
(
'/error/404'
,
{
templateUrl
:
'components/error_pages/404.html'
,
templateUrl
:
'components/error_pages/404.html'
,
controller
:
'404C
trl
'
controller
:
'404C
ontroller
'
});
});
}]);
}]);
angular
.
module
(
'ulakbus.error_pages'
,
[
'ngRoute'
])
angular
.
module
(
'ulakbus.error_pages'
,
[
'ngRoute'
])
.
controller
(
'500C
trl
'
,
function
(
$scope
,
$rootScope
,
$location
)
{
.
controller
(
'500C
ontroller
'
,
function
(
$scope
,
$rootScope
,
$location
)
{
})
})
.
controller
(
'404C
trl
'
,
function
(
$scope
,
$rootScope
,
$location
)
{
.
controller
(
'404C
ontroller
'
,
function
(
$scope
,
$rootScope
,
$location
)
{
});
});
\ No newline at end of file
app/index.html
View file @
aeb8c045
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<link
rel=
"stylesheet"
href=
"bower_components/intro.js/themes/introjs-nassim.css"
type=
"text/css"
>
<link
rel=
"stylesheet"
href=
"bower_components/intro.js/themes/introjs-nassim.css"
type=
"text/css"
>
</head>
</head>
<body
ng-controller=
"
keyListen"
ng-keydown=
"down($event)
"
>
<body
ng-controller=
"
KeyListenController"
ng-keydown=
"down($event)"
ng-show=
"$root.showApp
"
>
<nav
class=
"navbar navbar-default navbar-static-top"
role=
"navigation"
style=
"margin-bottom: 0"
ng-if=
"$root.loggedInUser"
>
<nav
class=
"navbar navbar-default navbar-static-top"
role=
"navigation"
style=
"margin-bottom: 0"
ng-if=
"$root.loggedInUser"
>
<collapse-menu></collapse-menu>
<collapse-menu></collapse-menu>
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
<!--</ul>-->
<!--</ul>-->
<div
class=
"navbar-header"
>
<div
class=
"navbar-header"
>
<div
class=
"brand"
>
<div
class=
"brand"
>
<a
href=
"#/dashboard"
ng-click=
"$root.breadcrumbLinks = ['Panel']"
class=
"logo"
><img
src=
"/img/brand-logo.png"
/></a>
<a
href=
"#/dashboard"
class=
"logo"
><img
src=
"/img/brand-logo.png"
/></a>
</div>
</div>
<button
type=
"button"
class=
"navbar-toggle"
data-toggle=
"collapse"
data-target=
".navbar-collapse"
>
<button
type=
"button"
class=
"navbar-toggle"
data-toggle=
"collapse"
data-target=
".navbar-collapse"
>
<span
class=
"sr-only"
>
Toggle navigation
</span>
<span
class=
"sr-only"
>
Toggle navigation
</span>
...
@@ -78,8 +78,8 @@
...
@@ -78,8 +78,8 @@
<script
src=
"bower_components/bootstrap/dist/js/bootstrap.min.js"
></script>
<script
src=
"bower_components/bootstrap/dist/js/bootstrap.min.js"
></script>
<script
src=
"bower_components/angular-route/angular-route.min.js"
></script>
<script
src=
"bower_components/angular-route/angular-route.min.js"
></script>
<script
src=
"bower_components/angular-cookies/angular-cookies.min.js"
></script>
<script
src=
"bower_components/angular-cookies/angular-cookies.min.js"
></script>
<
script
src=
"bower_components/angular-resource/angular-resource.min.js"
></script
>
<
!--<script src="bower_components/angular-resource/angular-resource.min.js"></script>--
>
<
script
src=
"bower_components/angular-bootstrap/ui-bootstrap.min.js"
></script
>
<
!--<script src="bower_components/angular-bootstrap/ui-bootstrap.min.js"></script>--
>
<script
src=
"bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js"
></script>
<script
src=
"bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js"
></script>
<script
src=
"bower_components/angular-sanitize/angular-sanitize.min.js"
></script>
<script
src=
"bower_components/angular-sanitize/angular-sanitize.min.js"
></script>
<script
src=
"bower_components/tv4/tv4.js"
></script>
<script
src=
"bower_components/tv4/tv4.js"
></script>
...
@@ -97,7 +97,6 @@
...
@@ -97,7 +97,6 @@
<script
src=
"bower_components/intro.js/intro.js"
></script>
<script
src=
"bower_components/intro.js/intro.js"
></script>
<!--<script src="bower_components/Chart.js/Chart.js"></script>-->
<!--<script src="bower_components/Chart.js/Chart.js"></script>-->
<script
src=
"shared/translations.js"
></script>
<script
src=
"shared/translations.js"
></script>
<script
src=
"tmp/templates.js"
></script>
<script
src=
"app.js"
></script>
<script
src=
"app.js"
></script>
<script
src=
"app_routes.js"
></script>
<script
src=
"app_routes.js"
></script>
<script
src=
"shared/scripts/highlight.pack.js"
></script>
<script
src=
"shared/scripts/highlight.pack.js"
></script>
...
@@ -114,7 +113,6 @@
...
@@ -114,7 +113,6 @@
<script
src=
"components/crud/crud_controller.js"
></script>
<script
src=
"components/crud/crud_controller.js"
></script>
<script
src=
"components/debug/debug_controller.js"
></script>
<script
src=
"components/debug/debug_controller.js"
></script>
<script
src=
"components/devSettings/devSettings_controller.js"
></script>
<script
src=
"components/devSettings/devSettings_controller.js"
></script>
<script
src=
"components/uitemplates/uitemplates.js"
></script>
<script
src=
"components/error_pages/error_controller.js"
></script>
<script
src=
"components/error_pages/error_controller.js"
></script>
<script
src=
"components/version/interpolate-filter.js"
></script>
<script
src=
"components/version/interpolate-filter.js"
></script>
<script
src=
"components/version/version-directive.js"
></script>
<script
src=
"components/version/version-directive.js"
></script>
...
...
app/main.html
View file @
aeb8c045
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<link
rel=
"stylesheet"
href=
"css/jquery-ui.min.css"
>
<link
rel=
"stylesheet"
href=
"css/jquery-ui.min.css"
>
<!-- @endif -->
<!-- @endif -->
</head>
</head>
<body
ng-controller=
"
keyListen"
ng-keydown=
"down($event)
"
>
<body
ng-controller=
"
KeyListenController"
ng-keydown=
"down($event)"
ng-show=
"$root.showApp
"
>
<nav
class=
"navbar navbar-default navbar-static-top"
role=
"navigation"
style=
"margin-bottom: 0"
ng-if=
"$root.loggedInUser"
>
<nav
class=
"navbar navbar-default navbar-static-top"
role=
"navigation"
style=
"margin-bottom: 0"
ng-if=
"$root.loggedInUser"
>
<collapse-menu></collapse-menu>
<collapse-menu></collapse-menu>
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
<!--</ul>-->
<!--</ul>-->
<div
class=
"navbar-header"
>
<div
class=
"navbar-header"
>
<div
class=
"brand"
>
<div
class=
"brand"
>
<a
href=
"#/dashboard"
ng-click=
"$root.breadcrumbLinks = ['Panel']"
class=
"logo"
><img
src=
"/img/brand-logo.png"
/></a>
<a
href=
"#/dashboard"
class=
"logo"
><img
src=
"/img/brand-logo.png"
/></a>
</div>
</div>
<button
type=
"button"
class=
"navbar-toggle"
data-toggle=
"collapse"
data-target=
".navbar-collapse"
>
<button
type=
"button"
class=
"navbar-toggle"
data-toggle=
"collapse"
data-target=
".navbar-collapse"
>
<span
class=
"sr-only"
>
Toggle navigation
</span>
<span
class=
"sr-only"
>
Toggle navigation
</span>
...
@@ -86,8 +86,8 @@
...
@@ -86,8 +86,8 @@
<script
src=
"bower_components/bootstrap/dist/js/bootstrap.min.js"
></script>
<script
src=
"bower_components/bootstrap/dist/js/bootstrap.min.js"
></script>
<script
src=
"bower_components/angular-route/angular-route.min.js"
></script>
<script
src=
"bower_components/angular-route/angular-route.min.js"
></script>
<script
src=
"bower_components/angular-cookies/angular-cookies.min.js"
></script>
<script
src=
"bower_components/angular-cookies/angular-cookies.min.js"
></script>
<
script
src=
"bower_components/angular-resource/angular-resource.min.js"
></script
>
<
!--<script src="bower_components/angular-resource/angular-resource.min.js"></script>--
>
<
script
src=
"bower_components/angular-bootstrap/ui-bootstrap.min.js"
></script
>
<
!--<script src="bower_components/angular-bootstrap/ui-bootstrap.min.js"></script>--
>
<script
src=
"bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js"
></script>
<script
src=
"bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js"
></script>
<script
src=
"bower_components/angular-sanitize/angular-sanitize.min.js"
></script>
<script
src=
"bower_components/angular-sanitize/angular-sanitize.min.js"
></script>
<script
src=
"bower_components/tv4/tv4.js"
></script>
<script
src=
"bower_components/tv4/tv4.js"
></script>
...
@@ -105,7 +105,6 @@
...
@@ -105,7 +105,6 @@
<script
src=
"bower_components/intro.js/intro.js"
></script>
<script
src=
"bower_components/intro.js/intro.js"
></script>
<!--<script src="bower_components/Chart.js/Chart.js"></script>-->
<!--<script src="bower_components/Chart.js/Chart.js"></script>-->
<script
src=
"shared/translations.js"
></script>
<script
src=
"shared/translations.js"
></script>
<script
src=
"tmp/templates.js"
></script>
<script
src=
"app.js"
></script>
<script
src=
"app.js"
></script>
<script
src=
"app_routes.js"
></script>
<script
src=
"app_routes.js"
></script>
<script
src=
"shared/scripts/highlight.pack.js"
></script>
<script
src=
"shared/scripts/highlight.pack.js"
></script>
...
@@ -122,7 +121,6 @@
...
@@ -122,7 +121,6 @@
<script
src=
"components/crud/crud_controller.js"
></script>
<script
src=
"components/crud/crud_controller.js"
></script>
<script
src=
"components/debug/debug_controller.js"
></script>
<script
src=
"components/debug/debug_controller.js"
></script>
<script
src=
"components/devSettings/devSettings_controller.js"
></script>
<script
src=
"components/devSettings/devSettings_controller.js"
></script>
<script
src=
"components/uitemplates/uitemplates.js"
></script>
<script
src=
"components/error_pages/error_controller.js"
></script>
<script
src=
"components/error_pages/error_controller.js"
></script>
<script
src=
"components/version/interpolate-filter.js"
></script>
<script
src=
"components/version/interpolate-filter.js"
></script>
<script
src=
"components/version/version-directive.js"
></script>
<script
src=
"components/version/version-directive.js"
></script>
...
...
app/main.js
View file @
aeb8c045
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
*/
*/
angular
.
module
(
angular
.
module
(
'ulakbus'
,
[
'ulakbus'
,
[
'ui.bootstrap'
,
//
'ui.bootstrap',
'angular-loading-bar'
,
'angular-loading-bar'
,
'ngRoute'
,
'ngRoute'
,
'ngSanitize'
,
'ngSanitize'
,
...
@@ -35,13 +35,11 @@ angular.module(
...
@@ -35,13 +35,11 @@ angular.module(
'ulakbus.debug'
,
'ulakbus.debug'
,
'ulakbus.devSettings'
,
'ulakbus.devSettings'
,
'ulakbus.version'
,
'ulakbus.version'
,
//'schemaForm',
'gettext'
,
'gettext'
,
// @if NODE_ENV='PRODUCTION'
// @if NODE_ENV='PRODUCTION'
'templates-prod'
,
'templates-prod'
,
// @endif
// @endif
// @if NODE_ENV='DEVELOPMENT'
// @if NODE_ENV='DEVELOPMENT'
'ulakbus.uitemplates'
// @endif
// @endif
])
])
/**
/**
...
...
app/shared/directives.js
View file @
aeb8c045
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
*
*
* This file is licensed under the GNU General Public License v3
* This file is licensed under the GNU General Public License v3
* (GPLv3). See LICENSE.txt for details.
* (GPLv3). See LICENSE.txt for details.
* @type {ng.$compileProvider|*}
*/
*/
angular
.
module
(
'ulakbus'
)
angular
.
module
(
'ulakbus'
)
...
@@ -221,7 +220,7 @@ angular.module('ulakbus')
...
@@ -221,7 +220,7 @@ angular.module('ulakbus')
scope
:
{},
scope
:
{},
controller
:
function
(
$scope
,
$rootScope
)
{
controller
:
function
(
$scope
,
$rootScope
)
{
$rootScope
.
collapsed
=
false
;
$rootScope
.
collapsed
=
false
;
$rootScope
.
sidebarPinned
=
$cookies
.
get
(
'sidebarPinned'
)
||
0
;
$rootScope
.
sidebarPinned
=
$cookies
.
get
(
'sidebarPinned'
)
||
1
;
$scope
.
collapseToggle
=
function
()
{
$scope
.
collapseToggle
=
function
()
{
if
(
$window
.
innerWidth
>
'768'
)
{
if
(
$window
.
innerWidth
>
'768'
)
{
...
@@ -287,41 +286,6 @@ angular.module('ulakbus')
...
@@ -287,41 +286,6 @@ angular.module('ulakbus')
}
}
};
};
})
})
/**
* @memberof ulakbus
* @ngdoc directive
* @name selectedUser
* @description Selected user on which the current job done is hold in this directive.
* @deprecated
*/
.
directive
(
'selectedUser'
,
function
(
$http
,
RESTURL
)
{
return
{
templateUrl
:
'shared/templates/directives/selected-user.html'
,
restrict
:
'E'
,
replace
:
true
,
link
:
function
(
$scope
,
$rootScope
)
{
$scope
.
$on
(
'selectedUser'
,
function
(
$event
,
data
)
{
$scope
.
selectedUser
=
data
;
$scope
.
dynamicPopover
=
{
content
:
''
,
name
:
data
.
name
,
tcno
:
data
.
tcno
,
key
:
data
.
key
,
templateUrl
:
'shared/templates/directives/selectedUserPopover.html'
,
title
:
'İşlem Yapılan Kişi'
};
});
$scope
.
$on
(
'selectedUserTrigger'
,
function
(
$event
,
data
)
{
var
postToApi
=
{
model
:
'Personel'
,
cmd
:
'show'
,
id
:
data
[
1
]};
//postToApi[data[0]]=data[1];
$http
.
get
(
RESTURL
.
url
+
'ara/personel/'
+
data
[
1
]).
success
(
function
(
data
)
{
}
);
})
}
};
})
/**
/**
* @memberof ulakbus
* @memberof ulakbus
* @ngdoc directive
* @ngdoc directive
...
@@ -347,7 +311,6 @@ angular.module('ulakbus')
...
@@ -347,7 +311,6 @@ angular.module('ulakbus')
};
};
var
sidebarmenu
=
$
(
'#side-menu'
);
var
sidebarmenu
=
$
(
'#side-menu'
);
//var sidebarUserMenu = $('#side-user-menu');
sidebarmenu
.
metisMenu
();
sidebarmenu
.
metisMenu
();
$http
.
get
(
RESTURL
.
url
+
'menu/'
)
$http
.
get
(
RESTURL
.
url
+
'menu/'
)
.
success
(
function
(
data
)
{
.
success
(
function
(
data
)
{
...
@@ -390,15 +353,11 @@ angular.module('ulakbus')
...
@@ -390,15 +353,11 @@ angular.module('ulakbus')
$scope
.
menuItems
=
$scope
.
prepareMenu
({
other
:
$scope
.
allMenuItems
.
other
});
$scope
.
menuItems
=
$scope
.
prepareMenu
({
other
:
$scope
.
allMenuItems
.
other
});
// if selecteduser on cookie then add related part to the menu
//if ($cookies.get("selectedUserType")) {
// $scope.menuItems[$cookies.get("selectedUserType")] = $scope.allMenuItems[$cookies.get("selectedUserType")];
//}
$timeout
(
function
()
{
$timeout
(
function
()
{
sidebarmenu
.
metisMenu
();
sidebarmenu
.
metisMenu
();
//sidebarUserMenu.metisMenu();
// to show page items showApp must be set to true
// it prevents to show empty nonsense page items when http401/403
$rootScope
.
showApp
=
true
;
});
});
});
});
...
@@ -408,10 +367,6 @@ angular.module('ulakbus')
...
@@ -408,10 +367,6 @@ angular.module('ulakbus')
var
menu
=
{};
var
menu
=
{};
menu
[
data
]
=
$scope
.
allMenuItems
[
data
];
menu
[
data
]
=
$scope
.
allMenuItems
[
data
];
$rootScope
.
$broadcast
(
"usermenuitems"
,
$scope
.
prepareMenu
(
menu
));
$rootScope
.
$broadcast
(
"usermenuitems"
,
$scope
.
prepareMenu
(
menu
));
//$timeout(function () {
// sidebarmenu.metisMenu();
// sidebarUserMenu.metisMenu();
//});
});
});
$scope
.
$on
(
'selectedUser'
,
function
(
$event
,
data
)
{
$scope
.
$on
(
'selectedUser'
,
function
(
$event
,
data
)
{
...
...
app/zetalib/action_service.js
View file @
aeb8c045
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*/
*/
angular
.
module
(
'ulakbus'
)
angular
.
module
(
'ulakbus'
)
.
controller
(
'
keyListen
'
,
function
(
$scope
,
action_service
)
{
.
controller
(
'
KeyListenController
'
,
function
(
$scope
,
action_service
)
{
$scope
.
keylog
=
[
0
,
1
];
$scope
.
keylog
=
[
0
,
1
];
$scope
.
down
=
function
(
e
)
{
$scope
.
down
=
function
(
e
)
{
angular
.
forEach
(
action_service
.
combinations
,
function
(
value
,
key
)
{
angular
.
forEach
(
action_service
.
combinations
,
function
(
value
,
key
)
{
...
@@ -32,7 +32,7 @@ angular.module('ulakbus')
...
@@ -32,7 +32,7 @@ angular.module('ulakbus')
var
modalInstance
=
$uibModal
.
open
({
var
modalInstance
=
$uibModal
.
open
({
animation
:
true
,
animation
:
true
,
templateUrl
:
'shared/templates/actionsModalContent.html'
,
templateUrl
:
'shared/templates/actionsModalContent.html'
,
controller
:
'ActionsModalC
trl
'
,
controller
:
'ActionsModalC
ontroller
'
,
resolve
:
{
resolve
:
{
items
:
function
()
{
items
:
function
()
{
return
document
.
querySelectorAll
(
'.navbar-collapse a, #side-user-menu a, .dropdown-menu li a'
);
return
document
.
querySelectorAll
(
'.navbar-collapse a, #side-user-menu a, .dropdown-menu li a'
);
...
@@ -48,7 +48,7 @@ angular.module('ulakbus')
...
@@ -48,7 +48,7 @@ angular.module('ulakbus')
};
};
return
actions
;
return
actions
;
})
})
.
controller
(
'ActionsModalC
trl
'
,
function
(
$scope
,
$uibModalInstance
,
items
)
{
.
controller
(
'ActionsModalC
ontroller
'
,
function
(
$scope
,
$uibModalInstance
,
items
)
{
$scope
.
actions
=
[];
$scope
.
actions
=
[];
angular
.
forEach
(
items
,
function
(
value
,
key
)
{
angular
.
forEach
(
items
,
function
(
value
,
key
)
{
if
(
!
value
.
children
[
1
])
{
if
(
!
value
.
children
[
1
])
{
...
...
app/zetalib/form_service.js
View file @
aeb8c045
...
@@ -1092,7 +1092,7 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
...
@@ -1092,7 +1092,7 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
/**
/**
* @memberof ulakbus.formService
* @memberof ulakbus.formService
* @ngdoc controller
* @ngdoc controller
* @name ModalC
trl
* @name ModalC
ontroller
* @description controller for listnode, node and linkedmodel modal and save data of it
* @description controller for listnode, node and linkedmodel modal and save data of it
* @param {Object} items
* @param {Object} items
* @param {Object} $scope
* @param {Object} $scope
...
@@ -1100,7 +1100,7 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
...
@@ -1100,7 +1100,7 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
* @param {Object} $route
* @param {Object} $route
* @returns {Object} returns value for modal
* @returns {Object} returns value for modal
*/
*/
.
controller
(
'ModalC
trl
'
,
function
(
$scope
,
$uibModalInstance
,
Generator
,
items
)
{
.
controller
(
'ModalC
ontroller
'
,
function
(
$scope
,
$uibModalInstance
,
Generator
,
items
)
{
angular
.
forEach
(
items
,
function
(
value
,
key
)
{
angular
.
forEach
(
items
,
function
(
value
,
key
)
{
$scope
[
key
]
=
items
[
key
];
$scope
[
key
]
=
items
[
key
];
});
});
...
@@ -1160,7 +1160,7 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
...
@@ -1160,7 +1160,7 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
backdrop
:
'static'
,
backdrop
:
'static'
,
keyboard
:
false
,
keyboard
:
false
,
templateUrl
:
'shared/templates/listnodeModalContent.html'
,
templateUrl
:
'shared/templates/listnodeModalContent.html'
,
controller
:
'ModalC
trl
'
,
controller
:
'ModalC
ontroller
'
,
size
:
'lg'
,
size
:
'lg'
,
resolve
:
{
resolve
:
{
items
:
function
()
{
items
:
function
()
{
...
@@ -1282,7 +1282,7 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
...
@@ -1282,7 +1282,7 @@ angular.module('ulakbus.formService', ['ui.bootstrap'])
backdrop
:
'static'
,
backdrop
:
'static'
,
keyboard
:
false
,
keyboard
:
false
,
templateUrl
:
'shared/templates/linkedModelModalContent.html'
,
templateUrl
:
'shared/templates/linkedModelModalContent.html'
,
controller
:
'ModalC
trl
'
,
controller
:
'ModalC
ontroller
'
,
size
:
'lg'
,
size
:
'lg'
,
resolve
:
{
resolve
:
{
items
:
function
()
{
items
:
function
()
{
...
...
dist/app.js
View file @
aeb8c045
This diff is collapsed.
Click to expand it.
dist/bower_components/components.js
View file @
aeb8c045
This diff is collapsed.
Click to expand it.
dist/index.html
View file @
aeb8c045
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<link
rel=
"stylesheet"
href=
"css/roboto/roboto.css"
>
<link
rel=
"stylesheet"
href=
"css/roboto/roboto.css"
>
<link
rel=
"stylesheet"
href=
"css/jquery-ui.min.css"
>
<link
rel=
"stylesheet"
href=
"css/jquery-ui.min.css"
>
</head>
</head>
<body
ng-controller=
"
keyListen"
ng-keydown=
"down($event)
"
>
<body
ng-controller=
"
KeyListenController"
ng-keydown=
"down($event)"
ng-show=
"$root.showApp
"
>
<nav
class=
"navbar navbar-default navbar-static-top"
role=
"navigation"
style=
"margin-bottom: 0"
ng-if=
"$root.loggedInUser"
>
<nav
class=
"navbar navbar-default navbar-static-top"
role=
"navigation"
style=
"margin-bottom: 0"
ng-if=
"$root.loggedInUser"
>
<collapse-menu></collapse-menu>
<collapse-menu></collapse-menu>
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<!--</ul>-->
<!--</ul>-->
<div
class=
"navbar-header"
>
<div
class=
"navbar-header"
>
<div
class=
"brand"
>
<div
class=
"brand"
>
<a
href=
"#/dashboard"
ng-click=
"$root.breadcrumbLinks = ['Panel']"
class=
"logo"
><img
src=
"/img/brand-logo.png"
/></a>
<a
href=
"#/dashboard"
class=
"logo"
><img
src=
"/img/brand-logo.png"
/></a>
</div>
</div>
<button
type=
"button"
class=
"navbar-toggle"
data-toggle=
"collapse"
data-target=
".navbar-collapse"
>
<button
type=
"button"
class=
"navbar-toggle"
data-toggle=
"collapse"
data-target=
".navbar-collapse"
>
<span
class=
"sr-only"
>
Toggle navigation
</span>
<span
class=
"sr-only"
>
Toggle navigation
</span>
...
...
karma.conf.js
View file @
aeb8c045
...
@@ -37,7 +37,8 @@ module.exports = function (config) {
...
@@ -37,7 +37,8 @@ module.exports = function (config) {
frameworks
:
[
'jasmine'
],
frameworks
:
[
'jasmine'
],
browsers
:
[
'PhantomJS'
,
'Chrome'
,
'Firefox'
,
'Safari'
],
//browsers: ['PhantomJS', 'Chrome', 'Firefox', 'Safari'],
browsers
:
[
'PhantomJS'
],
customLaunchers
:
{
customLaunchers
:
{
'PhantomJS_custom'
:
{
'PhantomJS_custom'
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment