-
-
Notifications
You must be signed in to change notification settings - Fork 68
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 #1261 from ember-learn/jw-cm-urls-versions
Make individual pages for deprecations
- Loading branch information
Showing
214 changed files
with
28,607 additions
and
25,926 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
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,42 +1,10 @@ | ||
import JSONAPIAdapter from '@ember-data/adapter/json-api'; | ||
import { inject as service } from '@ember/service'; | ||
import config from 'deprecation-app/config/environment'; | ||
|
||
export default class ApplicationAdapter extends JSONAPIAdapter { | ||
@service fastboot; | ||
|
||
/** | ||
* FastBoot shouldn't know the host since we use prember | ||
* & it can't find the resources at the API host during build time. | ||
*/ | ||
get host() { | ||
let isFastBoot = this.fastboot.isFastBoot; | ||
return isFastBoot ? '' : config.apiHost; | ||
urlForFindRecord(id, modelName) { | ||
return `/${modelName}/${id}.json`; | ||
} | ||
|
||
buildURL(modelName, id, snapshot, requestType, query) { | ||
let url; | ||
|
||
if (requestType === 'queryRecord') { | ||
url = [modelName, `${query.path}.json`]; | ||
} else if (requestType === 'query') { | ||
url = [modelName, `${query.path}-${query.version}.json`]; | ||
} else { | ||
return this.super; | ||
} | ||
|
||
let host = this.host; | ||
let prefix = this.urlPrefix(); | ||
|
||
if (prefix) { | ||
url.unshift(prefix); | ||
} | ||
|
||
url = url.join('/'); | ||
if (!host && url && url.charAt(0) !== '/') { | ||
url = '/' + url; | ||
} | ||
|
||
return url; | ||
urlForQuery(query, modelName) { | ||
return `/${modelName}/${query.path}-${query.version}.json`; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import Route from '@ember/routing/route'; | ||
import { inject as service } from '@ember/service'; | ||
|
||
export default class IdPRoute extends Route { | ||
@service store; | ||
|
||
model(params) { | ||
return this.store.findRecord('content', params.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
import JSONAPISerializer from '@ember-data/serializer/json-api'; | ||
|
||
export default class ApplicationSerializer extends JSONAPISerializer {} | ||
export default class ApplicationSerializer extends JSONAPISerializer { | ||
keyForAttribute(key) { | ||
return key; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{page-title @model.title}} | ||
<LinkTo @route="index">« All deprecation guides</LinkTo> | ||
<h1> | ||
Deprecation Guide for | ||
{{markdown-to-html | ||
@model.title | ||
extensions="no-wrapper" | ||
tagName="" | ||
}} | ||
</h1> | ||
<DeprecationArticle @model={{@model}} /> | ||
|
||
{{outlet}} |
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
6 changes: 3 additions & 3 deletions
6
content/ember-cli/v2/cli-base-url.md → content/ember-cli/v2/base-url.md
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
6 changes: 3 additions & 3 deletions
6
content/ember-cli/v2/cli-ui-deprecate.md → content/ember-cli/v2/deprecate-utility.md
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
6 changes: 3 additions & 3 deletions
6
...ent/ember-cli/v2/migrate-from-brocfile.md → ...from-brocfile-js-to-ember-cli-build-js.md
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
7 changes: 4 additions & 3 deletions
7
...i/v4/blacklist-whitelist-build-options.md → ...-cli-blacklist-whitelist-build-options.md
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
7 changes: 4 additions & 3 deletions
7
...blueprint.add-bower-package-to-project.md → ...blueprint-add-bower-package-to-project.md
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
7 changes: 4 additions & 3 deletions
7
...lueprint.add-bower-packages-to-project.md → ...lueprint-add-bower-packages-to-project.md
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
7 changes: 4 additions & 3 deletions
7
...t/ember-cli/v4/building-bower-packages.md → ...i/v4/ember-cli-building-bower-packages.md
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
7 changes: 4 additions & 3 deletions
7
.../ember-cli/v4/ember-cli-jshint-support.md → .../v4/ember-cli-ember-cli-jshint-support.md
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
7 changes: 4 additions & 3 deletions
7
...mber-cli/v4/project.bower-dependencies.md → ...4/ember-cli-project-bower-dependencies.md
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
7 changes: 4 additions & 3 deletions
7
...t/ember-cli/v4/project.bower-directory.md → ...i/v4/ember-cli-project-bower-directory.md
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
7 changes: 4 additions & 3 deletions
7
...ent/ember-cli/v4/vendor-shim-blueprint.md → ...cli/v4/ember-cli-vendor-shim-blueprint.md
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,9 +1,10 @@ | ||
--- | ||
id: ember-cli.vendor-shim-blueprint | ||
title: vendor-shim blueprint | ||
until: '5.0.0' | ||
since: '4.6.0' | ||
until: 5.0.0 | ||
since: 4.6.0 | ||
displayId: ember-cli.vendor-shim-blueprint | ||
--- | ||
|
||
|
||
The `vendor-shim` blueprint has been deprecated. Please use [ember-auto-import](https://github.com/ef4/ember-auto-import) | ||
instead to import normal npm packages. |
6 changes: 3 additions & 3 deletions
6
...ent/ember-data/v2/date-parse-deprecate.md → ...ember-data/v2/date-prototype-extension.md
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.