removed unnecessary json url extension

This commit is contained in:
Sebastian Sdorra
2017-06-28 22:01:11 +02:00
parent 97abf3de0e
commit e734ff8268
5 changed files with 10 additions and 10 deletions

View File

@@ -60,7 +60,7 @@ Sonia.git.ConfigPanel = Ext.extend(Sonia.config.SimpleConfigForm, {
var config = { var config = {
title : this.titleText, title : this.titleText,
configUrl: restUrl + 'config/repositories/git.json', configUrl: restUrl + 'config/repositories/git',
items : [{ items : [{
xtype: 'textfield', xtype: 'textfield',
name: 'repositoryDirectory', name: 'repositoryDirectory',

View File

@@ -136,7 +136,7 @@ Sonia.hg.ConfigWizardPanel = Ext.extend(Ext.Panel,{
var packageStore = new Ext.data.JsonStore({ var packageStore = new Ext.data.JsonStore({
storeId: 'pkgStore', storeId: 'pkgStore',
proxy: new Ext.data.HttpProxy({ proxy: new Ext.data.HttpProxy({
url: restUrl + 'config/repositories/hg/packages.json', url: restUrl + 'config/repositories/hg/packages',
disableCaching: false disableCaching: false
}), }),
fields: [ 'id', 'hg-version', 'python-version', 'size' ], fields: [ 'id', 'hg-version', 'python-version', 'size' ],
@@ -151,7 +151,7 @@ Sonia.hg.ConfigWizardPanel = Ext.extend(Ext.Panel,{
var hgInstallationStore = new Ext.data.Store({ var hgInstallationStore = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({ proxy: new Ext.data.HttpProxy({
url: restUrl + 'config/repositories/hg/installations/hg.json' url: restUrl + 'config/repositories/hg/installations/hg'
}), }),
fields: [ 'path' ], fields: [ 'path' ],
reader: new Sonia.hg.InstallationJsonReader(), reader: new Sonia.hg.InstallationJsonReader(),
@@ -161,7 +161,7 @@ Sonia.hg.ConfigWizardPanel = Ext.extend(Ext.Panel,{
var pythonInstallationStore = new Ext.data.Store({ var pythonInstallationStore = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({ proxy: new Ext.data.HttpProxy({
url: restUrl + 'config/repositories/hg/installations/python.json' url: restUrl + 'config/repositories/hg/installations/python'
}), }),
fields: [ 'path' ], fields: [ 'path' ],
reader: new Sonia.hg.InstallationJsonReader(), reader: new Sonia.hg.InstallationJsonReader(),
@@ -370,7 +370,7 @@ Sonia.hg.ConfigWizardPanel = Ext.extend(Ext.Panel,{
}); });
Ext.Ajax.request({ Ext.Ajax.request({
url: restUrl + 'config/repositories/hg/packages/' + pkg + '.json', url: restUrl + 'config/repositories/hg/packages/' + pkg,
method: 'POST', method: 'POST',
scope: this, scope: this,
timeout: 900000, // 15min timeout: 900000, // 15min

View File

@@ -125,7 +125,7 @@ Sonia.hg.ConfigPanel = Ext.extend(Sonia.config.ConfigForm, {
if (debug){ if (debug){
console.debug( 'load config from wizard and submit to server' ); console.debug( 'load config from wizard and submit to server' );
} }
self.loadConfig( self.el, 'config/repositories/hg/auto-configuration.json', 'POST', config ); self.loadConfig( self.el, 'config/repositories/hg/auto-configuration', 'POST', config );
} else { } else {
if (debug){ if (debug){
console.debug( 'reload config' ); console.debug( 'reload config' );
@@ -146,7 +146,7 @@ Sonia.hg.ConfigPanel = Ext.extend(Sonia.config.ConfigForm, {
onSubmit: function(values){ onSubmit: function(values){
this.el.mask(this.submitText); this.el.mask(this.submitText);
Ext.Ajax.request({ Ext.Ajax.request({
url: restUrl + 'config/repositories/hg.json', url: restUrl + 'config/repositories/hg',
method: 'POST', method: 'POST',
jsonData: values, jsonData: values,
scope: this, scope: this,
@@ -162,7 +162,7 @@ Sonia.hg.ConfigPanel = Ext.extend(Sonia.config.ConfigForm, {
}, },
onLoad: function(el){ onLoad: function(el){
this.loadConfig(el, 'config/repositories/hg.json', 'GET'); this.loadConfig(el, 'config/repositories/hg', 'GET');
}, },
loadConfig: function(el, url, method, config){ loadConfig: function(el, url, method, config){

View File

@@ -55,7 +55,7 @@ Sonia.svn.ConfigPanel = Ext.extend(Sonia.config.SimpleConfigForm, {
var config = { var config = {
title : this.titleText, title : this.titleText,
configUrl: restUrl + 'config/repositories/svn.json', configUrl: restUrl + 'config/repositories/svn',
items : [{ items : [{
xtype: 'textfield', xtype: 'textfield',
name: 'repositoryDirectory', name: 'repositoryDirectory',

View File

@@ -45,7 +45,7 @@ Sonia.group.Grid = Ext.extend(Sonia.rest.Grid, {
initComponent: function(){ initComponent: function(){
var groupStore = new Sonia.rest.JsonStore({ var groupStore = new Sonia.rest.JsonStore({
proxy: new Ext.data.HttpProxy({ proxy: new Ext.data.HttpProxy({
url: restUrl + 'groups.json', url: restUrl + 'groups',
disableCaching: false disableCaching: false
}), }),
idProperty: 'name', idProperty: 'name',