change routes to use the full route for OC7
This commit is contained in:
parent
a571330331
commit
9fbae4fc81
4 changed files with 34 additions and 34 deletions
|
@ -49,7 +49,7 @@ if(\OCP\App::isEnabled('appframework') && \OCP\App::isEnabled('calendar')){
|
|||
|
||||
// the title of your application. This will be used in the
|
||||
// navigation or on the settings page of your app
|
||||
'name' => $api->getTrans()->t('Tasks 2')
|
||||
'name' => $api->getTrans()->t('Tasks')
|
||||
|
||||
));
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ angular.module('Tasks').factory 'Persistence',
|
|||
routeParams:
|
||||
request: which
|
||||
|
||||
@_request.get 'getLists', params
|
||||
@_request.get '/apps/tasks_enhanced/lists', params
|
||||
|
||||
addList: (list, onSuccess=null, onFailure=null) ->
|
||||
onSuccess or= ->
|
||||
|
@ -73,7 +73,7 @@ angular.module('Tasks').factory 'Persistence',
|
|||
onSuccess: onSuccess
|
||||
onFailure: onFailure
|
||||
|
||||
@_request.post 'list_add', params
|
||||
@_request.post '/apps/tasks_enhanced/lists/add/{name}', params
|
||||
|
||||
setListName: (list) ->
|
||||
params =
|
||||
|
@ -82,14 +82,14 @@ angular.module('Tasks').factory 'Persistence',
|
|||
data:
|
||||
name: list.displayname
|
||||
|
||||
@_request.post 'list_name', params
|
||||
@_request.post '/apps/tasks_enhanced/lists/{listID}/name', params
|
||||
|
||||
deleteList: (listID) ->
|
||||
params =
|
||||
routeParams:
|
||||
listID: listID
|
||||
|
||||
@_request.post 'list_delete', params
|
||||
@_request.post '/apps/tasks_enhanced/lists/{listID}/delete', params
|
||||
|
||||
getTasks: (onSuccess, showLoading=true) ->
|
||||
onSuccess or= ->
|
||||
|
@ -110,35 +110,35 @@ angular.module('Tasks').factory 'Persistence',
|
|||
onSuccess: successCallbackWrapper
|
||||
onFailure: failureCallbackWrapper
|
||||
|
||||
@_request.get 'getTasks', params
|
||||
@_request.get '/apps/tasks_enhanced/tasks', params
|
||||
|
||||
starTask: (taskID) ->
|
||||
params =
|
||||
routeParams:
|
||||
taskID: taskID
|
||||
|
||||
@_request.post 'task_star', params
|
||||
@_request.post '/apps/tasks_enhanced/tasks/{taskID}/star', params
|
||||
|
||||
unstarTask: (taskID) ->
|
||||
params =
|
||||
routeParams:
|
||||
taskID: taskID
|
||||
|
||||
@_request.post 'task_unstar', params
|
||||
@_request.post '/apps/tasks_enhanced/tasks/{taskID}/unstar', params
|
||||
|
||||
completeTask: (taskID) ->
|
||||
params =
|
||||
routeParams:
|
||||
taskID: taskID
|
||||
|
||||
@_request.post 'task_complete', params
|
||||
@_request.post '/apps/tasks_enhanced/tasks/{taskID}/complete', params
|
||||
|
||||
uncompleteTask: (taskID) ->
|
||||
params =
|
||||
routeParams:
|
||||
taskID: taskID
|
||||
|
||||
@_request.post 'task_uncomplete', params
|
||||
@_request.post '/apps/tasks_enhanced/tasks/{taskID}/uncomplete', params
|
||||
|
||||
addTask: (task, onSuccess=null, onFailure=null) ->
|
||||
onSuccess or= ->
|
||||
|
@ -154,14 +154,14 @@ angular.module('Tasks').factory 'Persistence',
|
|||
onSuccess: onSuccess
|
||||
onFailure: onFailure
|
||||
|
||||
@_request.post 'task_add', params
|
||||
@_request.post '/apps/tasks_enhanced/tasks/add/{calendarID}/{name}', params
|
||||
|
||||
deleteTask: (taskID) ->
|
||||
params =
|
||||
routeParams:
|
||||
taskID: taskID
|
||||
|
||||
@_request.post 'task_delete', params
|
||||
@_request.post '/apps/tasks_enhanced/tasks/{taskID}/delete', params
|
||||
|
||||
setDueDate: (taskID, due) ->
|
||||
params =
|
||||
|
@ -170,7 +170,7 @@ angular.module('Tasks').factory 'Persistence',
|
|||
data:
|
||||
due: due
|
||||
|
||||
@_request.post 'task_due', params
|
||||
@_request.post '/apps/tasks_enhanced/tasks/{taskID}/due', params
|
||||
|
||||
setReminderDate: (taskID, reminder) ->
|
||||
params =
|
||||
|
@ -179,7 +179,7 @@ angular.module('Tasks').factory 'Persistence',
|
|||
data:
|
||||
reminder: reminder
|
||||
|
||||
@_request.post 'task_reminder', params
|
||||
@_request.post '/apps/tasks_enhanced/tasks/{taskID}/reminder', params
|
||||
|
||||
changeCalendarId: (taskID, calendarID) ->
|
||||
params =
|
||||
|
@ -188,7 +188,7 @@ angular.module('Tasks').factory 'Persistence',
|
|||
data:
|
||||
calendarID: calendarID
|
||||
|
||||
@_request.post 'task_calendar', params
|
||||
@_request.post '/apps/tasks_enhanced/tasks/{taskID}/calendar', params
|
||||
|
||||
setTaskName: (taskID, name) ->
|
||||
params =
|
||||
|
@ -197,7 +197,7 @@ angular.module('Tasks').factory 'Persistence',
|
|||
data:
|
||||
name: name
|
||||
|
||||
@_request.post 'task_name', params
|
||||
@_request.post '/apps/tasks_enhanced/tasks/{taskID}/name', params
|
||||
|
||||
setTaskNote: (taskID, note) ->
|
||||
params =
|
||||
|
@ -206,7 +206,7 @@ angular.module('Tasks').factory 'Persistence',
|
|||
data:
|
||||
note: note
|
||||
|
||||
@_request.post 'task_note', params
|
||||
@_request.post '/apps/tasks_enhanced/tasks/{taskID}/note', params
|
||||
|
||||
return new Persistence(Request, Loading, $rootScope)
|
||||
|
||||
|
|
|
@ -1475,7 +1475,7 @@
|
|||
request: which
|
||||
}
|
||||
};
|
||||
return this._request.get('getLists', params);
|
||||
return this._request.get('/apps/tasks_enhanced/lists', params);
|
||||
};
|
||||
|
||||
Persistence.prototype.addList = function(list, onSuccess, onFailure) {
|
||||
|
@ -1498,7 +1498,7 @@
|
|||
onSuccess: onSuccess,
|
||||
onFailure: onFailure
|
||||
};
|
||||
return this._request.post('list_add', params);
|
||||
return this._request.post('/apps/tasks_enhanced/lists/add/{name}', params);
|
||||
};
|
||||
|
||||
Persistence.prototype.setListName = function(list) {
|
||||
|
@ -1511,7 +1511,7 @@
|
|||
name: list.displayname
|
||||
}
|
||||
};
|
||||
return this._request.post('list_name', params);
|
||||
return this._request.post('/apps/tasks_enhanced/lists/{listID}/name', params);
|
||||
};
|
||||
|
||||
Persistence.prototype.deleteList = function(listID) {
|
||||
|
@ -1521,7 +1521,7 @@
|
|||
listID: listID
|
||||
}
|
||||
};
|
||||
return this._request.post('list_delete', params);
|
||||
return this._request.post('/apps/tasks_enhanced/lists/{listID}/delete', params);
|
||||
};
|
||||
|
||||
Persistence.prototype.getTasks = function(onSuccess, showLoading) {
|
||||
|
@ -1550,7 +1550,7 @@
|
|||
onSuccess: successCallbackWrapper,
|
||||
onFailure: failureCallbackWrapper
|
||||
};
|
||||
return this._request.get('getTasks', params);
|
||||
return this._request.get('/apps/tasks_enhanced/tasks', params);
|
||||
};
|
||||
|
||||
Persistence.prototype.starTask = function(taskID) {
|
||||
|
@ -1560,7 +1560,7 @@
|
|||
taskID: taskID
|
||||
}
|
||||
};
|
||||
return this._request.post('task_star', params);
|
||||
return this._request.post('/apps/tasks_enhanced/tasks/{taskID}/star', params);
|
||||
};
|
||||
|
||||
Persistence.prototype.unstarTask = function(taskID) {
|
||||
|
@ -1570,7 +1570,7 @@
|
|||
taskID: taskID
|
||||
}
|
||||
};
|
||||
return this._request.post('task_unstar', params);
|
||||
return this._request.post('/apps/tasks_enhanced/tasks/{taskID}/unstar', params);
|
||||
};
|
||||
|
||||
Persistence.prototype.completeTask = function(taskID) {
|
||||
|
@ -1580,7 +1580,7 @@
|
|||
taskID: taskID
|
||||
}
|
||||
};
|
||||
return this._request.post('task_complete', params);
|
||||
return this._request.post('/apps/tasks_enhanced/tasks/{taskID}/complete', params);
|
||||
};
|
||||
|
||||
Persistence.prototype.uncompleteTask = function(taskID) {
|
||||
|
@ -1590,7 +1590,7 @@
|
|||
taskID: taskID
|
||||
}
|
||||
};
|
||||
return this._request.post('task_uncomplete', params);
|
||||
return this._request.post('/apps/tasks_enhanced/tasks/{taskID}/uncomplete', params);
|
||||
};
|
||||
|
||||
Persistence.prototype.addTask = function(task, onSuccess, onFailure) {
|
||||
|
@ -1616,7 +1616,7 @@
|
|||
onSuccess: onSuccess,
|
||||
onFailure: onFailure
|
||||
};
|
||||
return this._request.post('task_add', params);
|
||||
return this._request.post('/apps/tasks_enhanced/tasks/add/{calendarID}/{name}', params);
|
||||
};
|
||||
|
||||
Persistence.prototype.deleteTask = function(taskID) {
|
||||
|
@ -1626,7 +1626,7 @@
|
|||
taskID: taskID
|
||||
}
|
||||
};
|
||||
return this._request.post('task_delete', params);
|
||||
return this._request.post('/apps/tasks_enhanced/tasks/{taskID}/delete', params);
|
||||
};
|
||||
|
||||
Persistence.prototype.setDueDate = function(taskID, due) {
|
||||
|
@ -1639,7 +1639,7 @@
|
|||
due: due
|
||||
}
|
||||
};
|
||||
return this._request.post('task_due', params);
|
||||
return this._request.post('/apps/tasks_enhanced/tasks/{taskID}/due', params);
|
||||
};
|
||||
|
||||
Persistence.prototype.setReminderDate = function(taskID, reminder) {
|
||||
|
@ -1652,7 +1652,7 @@
|
|||
reminder: reminder
|
||||
}
|
||||
};
|
||||
return this._request.post('task_reminder', params);
|
||||
return this._request.post('/apps/tasks_enhanced/tasks/{taskID}/reminder', params);
|
||||
};
|
||||
|
||||
Persistence.prototype.changeCalendarId = function(taskID, calendarID) {
|
||||
|
@ -1665,7 +1665,7 @@
|
|||
calendarID: calendarID
|
||||
}
|
||||
};
|
||||
return this._request.post('task_calendar', params);
|
||||
return this._request.post('/apps/tasks_enhanced/tasks/{taskID}/calendar', params);
|
||||
};
|
||||
|
||||
Persistence.prototype.setTaskName = function(taskID, name) {
|
||||
|
@ -1678,7 +1678,7 @@
|
|||
name: name
|
||||
}
|
||||
};
|
||||
return this._request.post('task_name', params);
|
||||
return this._request.post('/apps/tasks_enhanced/tasks/{taskID}/name', params);
|
||||
};
|
||||
|
||||
Persistence.prototype.setTaskNote = function(taskID, note) {
|
||||
|
@ -1691,7 +1691,7 @@
|
|||
note: note
|
||||
}
|
||||
};
|
||||
return this._request.post('task_note', params);
|
||||
return this._request.post('/apps/tasks_enhanced/tasks/{taskID}/note', params);
|
||||
};
|
||||
|
||||
return Persistence;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php $TRANSLATIONS = array(
|
||||
"Invalid date/time" => "Ungültige Datums-/Zeitangabe",
|
||||
"Search..." => "Suche...",
|
||||
"Tasks 2" => "Aufgaben 2",
|
||||
"Tasks" => "Aufgaben",
|
||||
"Today" => "Heute",
|
||||
"Important" => "Wichtig",
|
||||
"Done" => "Erledigt",
|
||||
|
|
Loading…
Reference in a new issue