-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #220 from ror-community/ember-upgrade-without-v1
Ember upgrade without v1
- Loading branch information
Showing
26 changed files
with
1,406 additions
and
1,746 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
API_URL_V1=https://api.dev.ror.org/v1 | ||
API_URL_V2=https://api.dev.ror.org/v2 | ||
API_URL=https://api.dev.ror.org/v2 | ||
SENTRY_DSN=https://[email protected]/1422597 | ||
BASE_URL=https://dev.ror.org | ||
LAUNCH_DARKLY_CLIENT_SIDE_ID=6390f62d05087a11e466bfc9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
API_URL_V1=https://api.ror.org/v1 | ||
API_URL_V2=https://api.ror.org/v2 | ||
API_URL=https://api.ror.org/v2 | ||
SENTRY_DSN=https://[email protected]/1422597 | ||
BASE_URL=https://ror.org | ||
LAUNCH_DARKLY_CLIENT_SIDE_ID=636d08a3d56cf611cc88019d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
API_URL_V1=https://api.staging.ror.org/v1 | ||
API_URL_V2=https://api.staging.ror.org/v2 | ||
API_URL=https://api.staging.ror.org/v2 | ||
SENTRY_DSN=https://[email protected]/1422597 | ||
BASE_URL=https://staging.ror.org | ||
LAUNCH_DARKLY_CLIENT_SIDE_ID=636d08a3d56cf611cc88019c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
module.exports = { | ||
root: true, | ||
parser: "babel-eslint", | ||
parserOptions: { | ||
ecmaVersion: 2017, | ||
sourceType: 'module' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
import JSONAPIAdapter from '@ember-data/adapter/json-api'; | ||
import ENV from 'ror-app/config/environment'; | ||
import { inject as service } from '@ember/service'; | ||
import { computed } from '@ember/object'; | ||
|
||
export default JSONAPIAdapter.extend({ | ||
launchDarkly: service(), | ||
host: computed('launchDarkly.variation', function() { | ||
return this.launchDarkly.variation('v2_ui') ? ENV.API_URL_V2 : ENV.API_URL_V1; | ||
}), | ||
host: ENV.API_URL | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,4 @@ | ||
import Route from '@ember/routing/route'; | ||
|
||
export default Route.extend({ | ||
beforeModel(){ | ||
let user = { | ||
key: 'user-key-123abc', | ||
anonymous: true | ||
}; | ||
return this.launchDarkly.initialize(user); | ||
} | ||
}); | ||
export default class ApplicationRoute extends Route { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import Route from '@ember/routing/route'; | ||
import ENV from 'ror-app/config/environment'; | ||
|
||
export default Route.extend({ | ||
redirect: function() { | ||
window.location.replace(ENV.BASE_URL + "/error"); | ||
} | ||
}); | ||
export default class ErrorRoute extends Route { | ||
redirect() { | ||
window.location.replace(ENV.BASE_URL + "/error"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import Route from '@ember/routing/route'; | ||
|
||
export default Route.extend({ | ||
}); | ||
export default class IndexRoute extends Route { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
import Route from '@ember/routing/route'; | ||
import { inject as service } from '@ember/service'; | ||
|
||
export default class OrganizationsShowRoute extends Route { | ||
@service store; | ||
|
||
export default Route.extend({ | ||
model(params) { | ||
//let self = this; | ||
return this.store.findRecord('organization', params.organization_id).then(function(organization) { | ||
return organization; | ||
}) | ||
}, | ||
actions: { | ||
queryParamsDidChange() { | ||
this.refresh(); | ||
} | ||
const { organization_id } = params; | ||
return this.store.findRecord('organization', organization_id); | ||
} | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.