Commit 6ceee54c authored by Evren Kutar's avatar Evren Kutar

ADD docs.md and grunt configuration to generate docs

parent fe0aeb76
......@@ -370,7 +370,8 @@ module.exports = function (grunt) {
src: 'api-docs-source',
target: 'api-docs',
options: {
title: 'Ulakbus UI'
title: 'Ulakbus UI',
readme: './docs/DOCS.md'
//theme: 'cayman'
}
}
......
......@@ -68,25 +68,7 @@ angular.module(
}
return {url: backendurl};
})()).
/**
* USER_ROLES and AUTH_EVENTS are constant for auth functions
*/
constant("USER_ROLES", {
all: "*",
admin: "admin",
student: "student",
staff: "staff",
dean: "dean"
})
.constant('AUTH_EVENTS', {
loginSuccess: 'auth-login-success',
loginFailed: 'auth-login-failed',
logoutSuccess: 'auth-logout-success',
sessionTimeout: 'auth-session-timeout',
notAuthenticated: 'auth-not-authenticated',
notAuthorized: 'auth-not-authorized'
})
})())
.config(function ($logProvider) {
$logProvider.debugEnabled(true);
});
\ No newline at end of file
......@@ -73,25 +73,7 @@ angular.module(
}
return {url: backendurl};
})()).
/**
* USER_ROLES and AUTH_EVENTS are constant for auth functions
*/
constant("USER_ROLES", {
all: "*",
admin: "admin",
student: "student",
staff: "staff",
dean: "dean"
})
.constant('AUTH_EVENTS', {
loginSuccess: 'auth-login-success',
loginFailed: 'auth-login-failed',
logoutSuccess: 'auth-logout-success',
sessionTimeout: 'auth-session-timeout',
notAuthenticated: 'auth-not-authenticated',
notAuthorized: 'auth-not-authorized'
})
})())
.config(function ($logProvider) {
// @if NODE_ENV='PRODUCTION'
$logProvider.debugEnabled(false);
......
This diff is collapsed.
This diff is collapsed.
#UI API Docs
UI Application consists of those elements:
- `app.js`: Main module of the app.
- `crud_controller.js`: The module of controllers for CRUD works.
- `auth_controller.js`: The module of controllers for authorization.
- `auth_service.js`: The module of service for authorization.
- `form_service.js`: The service that handles dynamically form generation, prepare input types, validation, redirection of related crud page and form submiting.
- `directives.js`: Carries app-wide directives.
- `interceptors.js`: Module for configure request and response objects of http functions.
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment