Skip to content

Commit

Permalink
Change namespace prefix for all classes to Jarvus.apikit
Browse files Browse the repository at this point in the history
  • Loading branch information
themightychris committed May 3, 2018
1 parent 40c16aa commit 57391ae
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 23 deletions.
8 changes: 4 additions & 4 deletions src/proxy/API.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Ext.define('Jarvus.proxy.API', {
Ext.define('Jarvus.apikit.proxy.API', {
extend: 'Ext.data.proxy.Server',
alias: 'proxy.api',
requires: [
'Jarvus.util.API',
'Jarvus.writer.API'
'Jarvus.apikit.util.API',
'Jarvus.apikit.writer.API'
],

config: {
Expand All @@ -12,7 +12,7 @@ Ext.define('Jarvus.proxy.API', {
* @cfg The {Ext.data.Connection} instance that will process requests
* @required
*/
connection: 'Jarvus.util.API',
connection: 'Jarvus.apikit.util.API',

/**
* @cfg Whether simple remote filters should be written to params
Expand Down
2 changes: 1 addition & 1 deletion src/store/FieldValuesStore.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Ext.define('Jarvus.store.FieldValuesStore', {
Ext.define('Jarvus.apikit.store.FieldValuesStore', {
extend: 'Ext.data.Store',
alias: 'store.fieldvalues',

Expand Down
6 changes: 3 additions & 3 deletions src/util/API.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*jslint browser: true, undef: true*//*global Ext*/

/**
* A default singleton instance for {@link Jarvus.util.AbstractAPI}
* A default singleton instance for {@link Jarvus.apikit.util.AbstractAPI}
*/
Ext.define('Jarvus.util.API', {
extend: 'Jarvus.util.AbstractAPI',
Ext.define('Jarvus.apikit.util.API', {
extend: 'Jarvus.apikit.util.AbstractAPI',
singleton: true
});
14 changes: 7 additions & 7 deletions src/util/APIDomain.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@

/**
* This class implement an event domain for API wrappers. It was based on Ext.app.domain.Global
*
*
* After requiring this class into an app or controller, you can use Controller's `listen` config
* to catch events fired on your API singleton via the "api" domain
*/
Ext.define('Jarvus.util.APIDomain', {
Ext.define('Jarvus.apikit.util.APIDomain', {
extend: 'Ext.app.EventDomain',
singleton: true,
requires: [
'Jarvus.util.AbstractAPI'
'Jarvus.apikit.util.AbstractAPI'
],

type: 'api',

constructor: function() {
var me = this;

me.callParent();
me.monitor(Jarvus.util.AbstractAPI);
me.monitor(Jarvus.apikit.util.AbstractAPI);
},

listen: function(listeners, controller) {
return this.callParent([{'*': listeners}, controller]);
},
Expand Down
6 changes: 3 additions & 3 deletions src/util/AbstractAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
* - does the touch version use Ext.Ajax or parent.request?
* - pass through request options like touch version does
*/
Ext.define('Jarvus.util.AbstractAPI', {
Ext.define('Jarvus.apikit.util.AbstractAPI', {
extend: 'Ext.data.Connection',
requires: [
'Ext.Promise',

/* global Jarvus */
'Jarvus.view.LoginWindow'
'Jarvus.apikit.view.LoginWindow'
],


Expand Down Expand Up @@ -145,7 +145,7 @@ Ext.define('Jarvus.util.AbstractAPI', {
Ext.callback(options.abort, options.scope, [response]);
} else if (response.status == 401 || response.statusText.indexOf('Unauthorized') !== -1) {

Jarvus.view.LoginWindow.show({
Jarvus.apikit.view.LoginWindow.show({
loginUrl: me.buildUrl('/login'),
connection: me,
requestOptions: options
Expand Down
6 changes: 3 additions & 3 deletions src/util/DAVClient.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Ext.define('Jarvus.util.DAVClient', {
Ext.define('Jarvus.apikit.util.DAVClient', {
requires: [
'Jarvus.util.API'
'Jarvus.apikit.util.API'
],
mixins: [
'Ext.mixin.Observable'
Expand All @@ -12,7 +12,7 @@ Ext.define('Jarvus.util.DAVClient', {
* @cfg The {Ext.data.Connection} instance that will process requests
* @required
*/
connection: 'Jarvus.util.API',
connection: 'Jarvus.apikit.util.API',

/**
* @cfg Optional base URI to prepend DAV paths with
Expand Down
2 changes: 1 addition & 1 deletion src/view/LoginWindow.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Ext.define('Jarvus.view.LoginWindow', {
Ext.define('Jarvus.apikit.view.LoginWindow', {
extend: 'Ext.window.Window',
singleton: true,

Expand Down
2 changes: 1 addition & 1 deletion src/writer/API.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Ext.define('Jarvus.writer.API', {
Ext.define('Jarvus.apikit.writer.API', {
extend: 'Ext.data.writer.Json',
alias: 'writer.api',

Expand Down

0 comments on commit 57391ae

Please sign in to comment.