mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-06-05 21:49:31 +02:00
ember.js v4.0.1 -> v4.1.0 (#826)
This commit is contained in:
@@ -380,7 +380,7 @@ https://cdnjs.cloudflare.com/ajax/libs/element-ui/2.15.7/theme-chalk/index.min.c
|
|||||||
https://cdnjs.cloudflare.com/ajax/libs/ember.js/1.13.13/ember.debug.js
|
https://cdnjs.cloudflare.com/ajax/libs/ember.js/1.13.13/ember.debug.js
|
||||||
https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.18.2/ember.debug.js
|
https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.18.2/ember.debug.js
|
||||||
https://cdnjs.cloudflare.com/ajax/libs/ember.js/3.28.8/ember.debug.js
|
https://cdnjs.cloudflare.com/ajax/libs/ember.js/3.28.8/ember.debug.js
|
||||||
https://cdnjs.cloudflare.com/ajax/libs/ember.js/4.0.1/ember.debug.js
|
https://cdnjs.cloudflare.com/ajax/libs/ember.js/4.1.0/ember.debug.js
|
||||||
https://cdnjs.cloudflare.com/ajax/libs/exif-js/2.3.0/exif.min.js
|
https://cdnjs.cloudflare.com/ajax/libs/exif-js/2.3.0/exif.min.js
|
||||||
https://cdnjs.cloudflare.com/ajax/libs/ext-core/3.1.0/ext-core.js
|
https://cdnjs.cloudflare.com/ajax/libs/ext-core/3.1.0/ext-core.js
|
||||||
https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.7/css/jquery.fancybox.min.css
|
https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.7/css/jquery.fancybox.min.css
|
||||||
|
@@ -182,7 +182,7 @@ targets.setLastVersion = function (type, version) {
|
|||||||
if (type.startsWith('/ember.js/1.')) return '1.13.13';
|
if (type.startsWith('/ember.js/1.')) return '1.13.13';
|
||||||
if (type.startsWith('/ember.js/2.')) return '2.18.2';
|
if (type.startsWith('/ember.js/2.')) return '2.18.2';
|
||||||
if (type.startsWith('/ember.js/3.')) return '3.28.8';
|
if (type.startsWith('/ember.js/3.')) return '3.28.8';
|
||||||
if (type.startsWith('/ember.js/4.')) return '4.0.1';
|
if (type.startsWith('/ember.js/4.')) return '4.1.0';
|
||||||
if (type.startsWith('/ethjs')) return '0.4.0';
|
if (type.startsWith('/ethjs')) return '0.4.0';
|
||||||
if (type.startsWith('/exif-js/2.')) return '2.3.0';
|
if (type.startsWith('/exif-js/2.')) return '2.3.0';
|
||||||
if (type.startsWith('/ext-core/3.')) return '3.1.0';
|
if (type.startsWith('/ext-core/3.')) return '3.1.0';
|
||||||
|
@@ -33,6 +33,7 @@
|
|||||||
<li>Chart.js v3.6.2 -> v3.7.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/821">#821</a>)</li>
|
<li>Chart.js v3.6.2 -> v3.7.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/821">#821</a>)</li>
|
||||||
<li>Swiper v7.3.3 -> v7.4.1 (<a href="https://codeberg.org/nobody/LocalCDN/issues/822">#822</a>)</li>
|
<li>Swiper v7.3.3 -> v7.4.1 (<a href="https://codeberg.org/nobody/LocalCDN/issues/822">#822</a>)</li>
|
||||||
<li>prop-types v15.7.2 -> v15.8.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/823">#823</a>)</li>
|
<li>prop-types v15.7.2 -> v15.8.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/823">#823</a>)</li>
|
||||||
|
<li>ember.js v4.0.1 -> v4.1.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/826">#826</a>)</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>Improved</p>
|
<p>Improved</p>
|
||||||
<ul>
|
<ul>
|
||||||
|
@@ -6,11 +6,13 @@
|
|||||||
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
|
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
|
||||||
* @license Licensed under MIT license
|
* @license Licensed under MIT license
|
||||||
* See https://raw.github.com/emberjs/ember.js/master/LICENSE
|
* See https://raw.github.com/emberjs/ember.js/master/LICENSE
|
||||||
* @version 4.0.1
|
* @version 4.1.0
|
||||||
*/
|
*/
|
||||||
/* eslint-disable no-var */
|
/* eslint-disable no-var */
|
||||||
|
|
||||||
/* globals global globalThis self */
|
/* globals global globalThis self */
|
||||||
|
|
||||||
|
/* eslint-disable-next-line no-unused-vars */
|
||||||
var define, require;
|
var define, require;
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
@@ -3326,7 +3328,7 @@ define("@ember/-internals/glimmer/index", ["exports", "@glimmer/opcode-compiler"
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
__decorate$2([(0, _service.inject)('-routing')], LinkTo.prototype, "routing", void 0);
|
__decorate$2([(0, _service.service)('-routing')], LinkTo.prototype, "routing", void 0);
|
||||||
|
|
||||||
__decorate$2([_object.action], LinkTo.prototype, "click", null);
|
__decorate$2([_object.action], LinkTo.prototype, "click", null);
|
||||||
|
|
||||||
@@ -4027,7 +4029,7 @@ define("@ember/-internals/glimmer/index", ["exports", "@glimmer/opcode-compiler"
|
|||||||
|
|
||||||
```app/controllers/application.js
|
```app/controllers/application.js
|
||||||
import Controller from '@ember/controller';
|
import Controller from '@ember/controller';
|
||||||
import { inject as service } from '@ember/service';
|
import { service } from '@ember/service';
|
||||||
|
|
||||||
export default class extends Controller {
|
export default class extends Controller {
|
||||||
@service someService;
|
@service someService;
|
||||||
@@ -5685,7 +5687,7 @@ define("@ember/-internals/glimmer/index", ["exports", "@glimmer/opcode-compiler"
|
|||||||
session service changes:
|
session service changes:
|
||||||
```app/helpers/current-user-email.js
|
```app/helpers/current-user-email.js
|
||||||
import Helper from '@ember/component/helper'
|
import Helper from '@ember/component/helper'
|
||||||
import { inject as service } from '@ember/service'
|
import { service } from '@ember/service'
|
||||||
import { observer } from '@ember/object'
|
import { observer } from '@ember/object'
|
||||||
export default Helper.extend({
|
export default Helper.extend({
|
||||||
session: service(),
|
session: service(),
|
||||||
@@ -9471,7 +9473,7 @@ define("@ember/-internals/metal/index", ["exports", "@ember/-internals/meta", "@
|
|||||||
return _validator.isConst;
|
return _validator.isConst;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
_exports.NAMESPACES_BY_ID = _exports.NAMESPACES = _exports.TrackedDescriptor = _exports.DEBUG_INJECTION_FUNCTIONS = _exports.Mixin = _exports.SYNC_OBSERVERS = _exports.ASYNC_OBSERVERS = _exports.Libraries = _exports.libraries = _exports.PROPERTY_DID_CHANGE = _exports.PROXY_CONTENT = _exports.ComputedProperty = void 0;
|
_exports.NAMESPACES_BY_ID = _exports.NAMESPACES = _exports.cached = _exports.TrackedDescriptor = _exports.DEBUG_INJECTION_FUNCTIONS = _exports.Mixin = _exports.SYNC_OBSERVERS = _exports.ASYNC_OBSERVERS = _exports.Libraries = _exports.libraries = _exports.PROPERTY_DID_CHANGE = _exports.PROXY_CONTENT = _exports.ComputedProperty = void 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@module @ember/object
|
@module @ember/object
|
||||||
@@ -11762,7 +11764,7 @@ define("@ember/-internals/metal/index", ["exports", "@ember/-internals/meta", "@
|
|||||||
return none;
|
return none;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof obj.size === 'number') {
|
if (typeof obj.unknownProperty !== 'function' && typeof obj.size === 'number') {
|
||||||
return !obj.size;
|
return !obj.size;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -13030,6 +13032,56 @@ define("@ember/-internals/metal/index", ["exports", "@ember/-internals/meta", "@
|
|||||||
this._set.call(obj, value);
|
this._set.call(obj, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // NOTE: copied from: https://github.com/glimmerjs/glimmer.js/pull/358
|
||||||
|
|
||||||
|
|
||||||
|
_exports.TrackedDescriptor = TrackedDescriptor;
|
||||||
|
|
||||||
|
var cached = (...args) => {
|
||||||
|
{
|
||||||
|
var [target, key, descriptor] = args; // Error on `@cached()`, `@cached(...args)`, and `@cached propName = value;`
|
||||||
|
|
||||||
|
if (true
|
||||||
|
/* DEBUG */
|
||||||
|
&& target === undefined) throwCachedExtraneousParens();
|
||||||
|
|
||||||
|
if (true
|
||||||
|
/* DEBUG */
|
||||||
|
&& (typeof target !== 'object' || typeof key !== 'string' || typeof descriptor !== 'object' || args.length !== 3)) {
|
||||||
|
throwCachedInvalidArgsError(args);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (true
|
||||||
|
/* DEBUG */
|
||||||
|
&& (!('get' in descriptor) || typeof descriptor.get !== 'function')) {
|
||||||
|
throwCachedGetterOnlyError(key);
|
||||||
|
}
|
||||||
|
|
||||||
|
var caches = new WeakMap();
|
||||||
|
var getter = descriptor.get;
|
||||||
|
|
||||||
|
descriptor.get = function () {
|
||||||
|
if (!caches.has(this)) {
|
||||||
|
caches.set(this, (0, _validator.createCache)(getter.bind(this)));
|
||||||
|
}
|
||||||
|
|
||||||
|
return (0, _validator.getValue)(caches.get(this));
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
_exports.cached = cached;
|
||||||
|
|
||||||
|
function throwCachedExtraneousParens() {
|
||||||
|
throw new Error('You attempted to use @cached(), which is not necessary nor supported. Remove the parentheses and you will be good to go!');
|
||||||
|
}
|
||||||
|
|
||||||
|
function throwCachedGetterOnlyError(key) {
|
||||||
|
throw new Error(`The @cached decorator must be applied to getters. '${key}' is not a getter.`);
|
||||||
|
}
|
||||||
|
|
||||||
|
function throwCachedInvalidArgsError(args = []) {
|
||||||
|
throw new Error(`You attempted to use @cached on with ${args.length > 1 ? 'arguments' : 'an argument'} ( @cached(${args.map(d => `'${d}'`).join(', ')}), which is not supported. Dependencies are automatically tracked, so you can just use ${'`@cached`'}`);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
Ember uses caching based on trackable values to avoid updating large portions
|
Ember uses caching based on trackable values to avoid updating large portions
|
||||||
@@ -13153,8 +13205,6 @@ define("@ember/-internals/metal/index", ["exports", "@ember/-internals/meta", "@
|
|||||||
@public
|
@public
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
_exports.TrackedDescriptor = TrackedDescriptor;
|
|
||||||
});
|
});
|
||||||
define("@ember/-internals/overrides/index", ["exports"], function (_exports) {
|
define("@ember/-internals/overrides/index", ["exports"], function (_exports) {
|
||||||
"use strict";
|
"use strict";
|
||||||
@@ -13545,6 +13595,7 @@ define("@ember/-internals/routing/lib/ext/controller", ["exports", "@ember/-inte
|
|||||||
@method replaceRoute
|
@method replaceRoute
|
||||||
@return {Transition} the transition object associated with this
|
@return {Transition} the transition object associated with this
|
||||||
attempted transition
|
attempted transition
|
||||||
|
@deprecated Use replaceWith from the Router service instead.
|
||||||
@public
|
@public
|
||||||
*/
|
*/
|
||||||
replaceRoute(...args) {
|
replaceRoute(...args) {
|
||||||
@@ -13655,6 +13706,15 @@ define("@ember/-internals/routing/lib/location/api", ["exports", "@ember/debug"]
|
|||||||
(true && !(Boolean(implementation)) && (0, _debug.assert)("Location.create: you must specify a 'implementation' option", Boolean(implementation)));
|
(true && !(Boolean(implementation)) && (0, _debug.assert)("Location.create: you must specify a 'implementation' option", Boolean(implementation)));
|
||||||
var implementationClass = this.implementations[implementation];
|
var implementationClass = this.implementations[implementation];
|
||||||
(true && !(Boolean(implementationClass)) && (0, _debug.assert)(`Location.create: ${implementation} is not a valid implementation`, Boolean(implementationClass)));
|
(true && !(Boolean(implementationClass)) && (0, _debug.assert)(`Location.create: ${implementation} is not a valid implementation`, Boolean(implementationClass)));
|
||||||
|
(true && !(false) && (0, _debug.deprecate)("Calling `create` on Location class is deprecated. Instead, use `container.lookup('location:my-location')` to lookup the location you need.", false, {
|
||||||
|
id: 'deprecate-auto-location',
|
||||||
|
until: '5.0.0',
|
||||||
|
url: 'https://emberjs.com/deprecations/v4.x#toc_deprecate-auto-location',
|
||||||
|
for: 'ember-source',
|
||||||
|
since: {
|
||||||
|
enabled: '4.1.0'
|
||||||
|
}
|
||||||
|
}));
|
||||||
return implementationClass.create(...arguments);
|
return implementationClass.create(...arguments);
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -14418,10 +14478,15 @@ define("@ember/-internals/routing/lib/location/none_location", ["exports", "@emb
|
|||||||
this.implementation = 'none';
|
this.implementation = 'none';
|
||||||
}
|
}
|
||||||
|
|
||||||
detect() {
|
initState() {
|
||||||
|
this._super(...arguments);
|
||||||
|
|
||||||
var {
|
var {
|
||||||
rootURL
|
rootURL
|
||||||
} = this;
|
} = this; // This assert doesn't have anything to do with state initialization,
|
||||||
|
// but we're hijacking this method since it's called after the route has
|
||||||
|
// set the rootURL property on its Location instance.
|
||||||
|
|
||||||
(true && !(rootURL.charAt(rootURL.length - 1) === '/') && (0, _debug.assert)('rootURL must end with a trailing forward slash e.g. "/app/"', rootURL.charAt(rootURL.length - 1) === '/'));
|
(true && !(rootURL.charAt(rootURL.length - 1) === '/') && (0, _debug.assert)('rootURL must end with a trailing forward slash e.g. "/app/"', rootURL.charAt(rootURL.length - 1) === '/'));
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@@ -14661,7 +14726,7 @@ define("@ember/-internals/routing/lib/services/router", ["exports", "@ember/-int
|
|||||||
```app/components/example.js
|
```app/components/example.js
|
||||||
import Component from '@glimmer/component';
|
import Component from '@glimmer/component';
|
||||||
import { action } from '@ember/object';
|
import { action } from '@ember/object';
|
||||||
import { inject as service } from '@ember/service';
|
import { service } from '@ember/service';
|
||||||
|
|
||||||
export default class ExampleComponent extends Component {
|
export default class ExampleComponent extends Component {
|
||||||
@service router;
|
@service router;
|
||||||
@@ -14711,7 +14776,7 @@ define("@ember/-internals/routing/lib/services/router", ["exports", "@ember/-int
|
|||||||
```app/components/example.js
|
```app/components/example.js
|
||||||
import Component from '@glimmer/component';
|
import Component from '@glimmer/component';
|
||||||
import { action } from '@ember/object';
|
import { action } from '@ember/object';
|
||||||
import { inject as service } from '@ember/service';
|
import { service } from '@ember/service';
|
||||||
export default class extends Component {
|
export default class extends Component {
|
||||||
@service router;
|
@service router;
|
||||||
@action
|
@action
|
||||||
@@ -14805,7 +14870,7 @@ define("@ember/-internals/routing/lib/services/router", ["exports", "@ember/-int
|
|||||||
```
|
```
|
||||||
```app/components/copy-link.js
|
```app/components/copy-link.js
|
||||||
import Component from '@glimmer/component';
|
import Component from '@glimmer/component';
|
||||||
import { inject as service } from '@ember/service';
|
import { service } from '@ember/service';
|
||||||
import { action } from '@ember/object';
|
import { action } from '@ember/object';
|
||||||
export default class CopyLinkComponent extends Component {
|
export default class CopyLinkComponent extends Component {
|
||||||
@service router;
|
@service router;
|
||||||
@@ -14827,7 +14892,7 @@ define("@ember/-internals/routing/lib/services/router", ["exports", "@ember/-int
|
|||||||
```
|
```
|
||||||
```app/components/copy-link.js
|
```app/components/copy-link.js
|
||||||
import Component from '@glimmer/component';
|
import Component from '@glimmer/component';
|
||||||
import { inject as service } from '@ember/service';
|
import { service } from '@ember/service';
|
||||||
import { action } from '@ember/object';
|
import { action } from '@ember/object';
|
||||||
export default class CopyLinkComponent extends Component {
|
export default class CopyLinkComponent extends Component {
|
||||||
@service router;
|
@service router;
|
||||||
@@ -14867,7 +14932,7 @@ define("@ember/-internals/routing/lib/services/router", ["exports", "@ember/-int
|
|||||||
In the following example, `isActive` will return `true` if the current route is `/posts`.
|
In the following example, `isActive` will return `true` if the current route is `/posts`.
|
||||||
```app/components/posts.js
|
```app/components/posts.js
|
||||||
import Component from '@glimmer/component';
|
import Component from '@glimmer/component';
|
||||||
import { inject as service } from '@ember/service';
|
import { service } from '@ember/service';
|
||||||
export default class extends Component {
|
export default class extends Component {
|
||||||
@service router;
|
@service router;
|
||||||
displayComments() {
|
displayComments() {
|
||||||
@@ -14879,7 +14944,7 @@ define("@ember/-internals/routing/lib/services/router", ["exports", "@ember/-int
|
|||||||
assuming the post has an id of 1:
|
assuming the post has an id of 1:
|
||||||
```app/components/posts.js
|
```app/components/posts.js
|
||||||
import Component from '@glimmer/component';
|
import Component from '@glimmer/component';
|
||||||
import { inject as service } from '@ember/service';
|
import { service } from '@ember/service';
|
||||||
export default class extends Component {
|
export default class extends Component {
|
||||||
@service router;
|
@service router;
|
||||||
displayComments(post) {
|
displayComments(post) {
|
||||||
@@ -14958,7 +15023,7 @@ define("@ember/-internals/routing/lib/services/router", ["exports", "@ember/-int
|
|||||||
application before transitioning to it.
|
application before transitioning to it.
|
||||||
```
|
```
|
||||||
import Component from '@ember/component';
|
import Component from '@ember/component';
|
||||||
import { inject as service } from '@ember/service';
|
import { service } from '@ember/service';
|
||||||
export default class extends Component {
|
export default class extends Component {
|
||||||
@service router;
|
@service router;
|
||||||
path = '/';
|
path = '/';
|
||||||
@@ -15008,7 +15073,7 @@ define("@ember/-internals/routing/lib/services/router", ["exports", "@ember/-int
|
|||||||
|
|
||||||
_exports.default = RouterService;
|
_exports.default = RouterService;
|
||||||
|
|
||||||
if (false
|
if (true
|
||||||
/* EMBER_ROUTING_ROUTER_SERVICE_REFRESH */
|
/* EMBER_ROUTING_ROUTER_SERVICE_REFRESH */
|
||||||
) {
|
) {
|
||||||
RouterService.reopen({
|
RouterService.reopen({
|
||||||
@@ -15155,7 +15220,7 @@ define("@ember/-internals/routing/lib/services/router", ["exports", "@ember/-int
|
|||||||
Usage example:
|
Usage example:
|
||||||
```app/components/header.js
|
```app/components/header.js
|
||||||
import Component from '@glimmer/component';
|
import Component from '@glimmer/component';
|
||||||
import { inject as service } from '@ember/service';
|
import { service } from '@ember/service';
|
||||||
import { notEmpty } from '@ember/object/computed';
|
import { notEmpty } from '@ember/object/computed';
|
||||||
export default class extends Component {
|
export default class extends Component {
|
||||||
@service router;
|
@service router;
|
||||||
@@ -15919,7 +15984,7 @@ define("@ember/-internals/routing/lib/system/route-info", [], function () {
|
|||||||
@public
|
@public
|
||||||
*/
|
*/
|
||||||
});
|
});
|
||||||
define("@ember/-internals/routing/lib/system/route", ["exports", "@ember/-internals/container", "@ember/-internals/metal", "@ember/-internals/owner", "@ember/-internals/runtime", "@ember/-internals/utils", "@ember/debug", "@ember/object/compat", "@ember/runloop", "router_js", "@ember/-internals/routing/lib/utils", "@ember/-internals/routing/lib/system/generate_controller"], function (_exports, _container, _metal, _owner, _runtime, _utils, _debug, _compat, _runloop, _router_js, _utils2, _generate_controller) {
|
define("@ember/-internals/routing/lib/system/route", ["exports", "@ember/-internals/container", "@ember/-internals/metal", "@ember/-internals/owner", "@ember/-internals/runtime", "@ember/-internals/utils", "@ember/debug", "@ember/object/compat", "@ember/runloop", "@ember/string", "router_js", "@ember/-internals/routing/lib/utils", "@ember/-internals/routing/lib/system/generate_controller"], function (_exports, _container, _metal, _owner, _runtime, _utils, _debug, _compat, _runloop, _string, _router_js, _utils2, _generate_controller) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(_exports, "__esModule", {
|
Object.defineProperty(_exports, "__esModule", {
|
||||||
@@ -16180,7 +16245,8 @@ define("@ember/-internals/routing/lib/system/route", ["exports", "@ember/-intern
|
|||||||
|
|
||||||
|
|
||||||
_optionsForQueryParam(qp) {
|
_optionsForQueryParam(qp) {
|
||||||
return (0, _metal.get)(this, `queryParams.${qp.urlKey}`) || (0, _metal.get)(this, `queryParams.${qp.prop}`) || {};
|
var queryParams = (0, _metal.get)(this, 'queryParams');
|
||||||
|
return (0, _metal.get)(queryParams, qp.urlKey) || (0, _metal.get)(queryParams, qp.prop) || queryParams[qp.urlKey] || queryParams[qp.prop] || {};
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
A hook you can use to reset controller values either when the model
|
A hook you can use to reset controller values either when the model
|
||||||
@@ -16674,6 +16740,7 @@ define("@ember/-internals/routing/lib/system/route", ["exports", "@ember/-intern
|
|||||||
@return {Transition} the transition object associated with this
|
@return {Transition} the transition object associated with this
|
||||||
attempted transition
|
attempted transition
|
||||||
@since 1.0.0
|
@since 1.0.0
|
||||||
|
@deprecated Use replaceWith from the Router service instead.
|
||||||
@public
|
@public
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -17210,7 +17277,7 @@ define("@ember/-internals/routing/lib/system/route", ["exports", "@ember/-intern
|
|||||||
```
|
```
|
||||||
```app/routes/application.js
|
```app/routes/application.js
|
||||||
import Route from '@ember/routing/route';
|
import Route from '@ember/routing/route';
|
||||||
import { inject as service } from '@ember/service';
|
import { service } from '@ember/service';
|
||||||
export default class ApplicationRoute extends Route {
|
export default class ApplicationRoute extends Route {
|
||||||
@service router
|
@service router
|
||||||
constructor() {
|
constructor() {
|
||||||
@@ -17255,17 +17322,18 @@ define("@ember/-internals/routing/lib/system/route", ["exports", "@ember/-intern
|
|||||||
get store() {
|
get store() {
|
||||||
var owner = (0, _owner.getOwner)(this);
|
var owner = (0, _owner.getOwner)(this);
|
||||||
var routeName = this.routeName;
|
var routeName = this.routeName;
|
||||||
|
var namespace = (0, _metal.get)(this, '_router.namespace');
|
||||||
return {
|
return {
|
||||||
find(name, value) {
|
find(name, value) {
|
||||||
var modelClass = owner.factoryFor(`model:${name}`);
|
var modelClass = owner.factoryFor(`model:${name}`);
|
||||||
(true && !(Boolean(modelClass)) && (0, _debug.assert)(`You used the dynamic segment \`${name}_id\` in your route ` + `\`${routeName}\` for which Ember requires you provide a ` + `data-loading implementation. Commonly, that is done by ` + `adding a model hook implementation on the route ` + `(\`model({${name}_id}) {\`) or by injecting an implemention of ` + `a data store: \`@service store;\`.`, Boolean(modelClass)));
|
(true && !(Boolean(modelClass)) && (0, _debug.assert)(`You used the dynamic segment ${name}_id in your route ${routeName}, but ${namespace}.${(0, _string.classify)(name)} did not exist and you did not override your route's \`model\` hook.`, Boolean(modelClass)));
|
||||||
|
|
||||||
if (!modelClass) {
|
if (!modelClass) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
modelClass = modelClass.class;
|
modelClass = modelClass.class;
|
||||||
(true && !(typeof modelClass.find === 'function') && (0, _debug.assert)(`You used the dynamic segment \`${name}_id\` in your route ` + `\`${routeName}\` for which Ember requires you provide a ` + `data-loading implementation. Commonly, that is done by ` + `adding a model hook implementation on the route ` + `(\`model({${name}_id}) {\`) or by injecting an implemention of ` + `a data store: \`@service store;\`.\n\n` + `Rarely, applications may attempt to use a legacy behavior where ` + `the model class (in this case \`${name}\`) is resolved and the ` + `\`find\` method on that class is invoked to load data. In this ` + `application, a model of \`${name}\` was found but it did not ` + `provide a \`find\` method. You should not add a \`find\` ` + `method to your model. Instead, please implement an appropriate ` + `\`model\` hook on the \`${routeName}\` route.`, typeof modelClass.find === 'function'));
|
(true && !(typeof modelClass.find === 'function') && (0, _debug.assert)(`${(0, _string.classify)(name)} has no method \`find\`.`, typeof modelClass.find === 'function'));
|
||||||
return modelClass.find(value);
|
return modelClass.find(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -18610,6 +18678,18 @@ define("@ember/-internals/routing/lib/system/router", ["exports", "@ember/-inter
|
|||||||
if ('string' === typeof location) {
|
if ('string' === typeof location) {
|
||||||
var resolvedLocation = owner.lookup(`location:${location}`);
|
var resolvedLocation = owner.lookup(`location:${location}`);
|
||||||
|
|
||||||
|
if (location === 'auto') {
|
||||||
|
(true && !(false) && (0, _debug.deprecate)("Router location 'auto' is deprecated. Most users will want to set `locationType` to 'history' in config/environment.js for no change in behavior. See deprecation docs for details.", false, {
|
||||||
|
id: 'deprecate-auto-location',
|
||||||
|
until: '5.0.0',
|
||||||
|
url: 'https://emberjs.com/deprecations/v4.x#toc_deprecate-auto-location',
|
||||||
|
for: 'ember-source',
|
||||||
|
since: {
|
||||||
|
enabled: '4.1.0'
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
if (resolvedLocation !== undefined) {
|
if (resolvedLocation !== undefined) {
|
||||||
location = (0, _metal.set)(this, 'location', resolvedLocation);
|
location = (0, _metal.set)(this, 'location', resolvedLocation);
|
||||||
} else {
|
} else {
|
||||||
@@ -18630,6 +18710,18 @@ define("@ember/-internals/routing/lib/system/router", ["exports", "@ember/-inter
|
|||||||
|
|
||||||
|
|
||||||
if (typeof location.detect === 'function') {
|
if (typeof location.detect === 'function') {
|
||||||
|
if (this.location !== 'auto') {
|
||||||
|
(true && !(false) && (0, _debug.deprecate)('The `detect` method on the Location object is deprecated. If you need detection you can run your detection code in app.js, before setting the location type.', false, {
|
||||||
|
id: 'deprecate-auto-location',
|
||||||
|
until: '5.0.0',
|
||||||
|
url: 'https://emberjs.com/deprecations/v4.x#toc_deprecate-auto-location',
|
||||||
|
for: 'ember-source',
|
||||||
|
since: {
|
||||||
|
enabled: '4.1.0'
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
location.detect();
|
location.detect();
|
||||||
} // ensure that initState is called AFTER the rootURL is set on
|
} // ensure that initState is called AFTER the rootURL is set on
|
||||||
// the location instance
|
// the location instance
|
||||||
@@ -29299,7 +29391,7 @@ define("@ember/application/lib/application", ["exports", "@ember/-internals/util
|
|||||||
```
|
```
|
||||||
```app/routes/post.js
|
```app/routes/post.js
|
||||||
import Route from '@ember/routing/route';
|
import Route from '@ember/routing/route';
|
||||||
import { inject as service } from '@ember/service';
|
import { service } from '@ember/service';
|
||||||
// An example of how the (hypothetical) service is used in routes.
|
// An example of how the (hypothetical) service is used in routes.
|
||||||
export default class IndexRoute extends Route {
|
export default class IndexRoute extends Route {
|
||||||
@service network;
|
@service network;
|
||||||
@@ -29563,7 +29655,7 @@ define("@ember/canary-features/index", ["exports", "@ember/-internals/environmen
|
|||||||
value: true
|
value: true
|
||||||
});
|
});
|
||||||
_exports.isEnabled = isEnabled;
|
_exports.isEnabled = isEnabled;
|
||||||
_exports.EMBER_ROUTING_ROUTER_SERVICE_REFRESH = _exports.EMBER_DYNAMIC_HELPERS_AND_MODIFIERS = _exports.EMBER_STRICT_MODE = _exports.EMBER_GLIMMER_INVOKE_HELPER = _exports.EMBER_GLIMMER_HELPER_MANAGER = _exports.EMBER_NAMED_BLOCKS = _exports.EMBER_IMPROVED_INSTRUMENTATION = _exports.EMBER_LIBRARIES_ISREGISTERED = _exports.FEATURES = _exports.DEFAULT_FEATURES = void 0;
|
_exports.EMBER_CACHED = _exports.EMBER_ROUTING_ROUTER_SERVICE_REFRESH = _exports.EMBER_DYNAMIC_HELPERS_AND_MODIFIERS = _exports.EMBER_STRICT_MODE = _exports.EMBER_GLIMMER_INVOKE_HELPER = _exports.EMBER_GLIMMER_HELPER_MANAGER = _exports.EMBER_NAMED_BLOCKS = _exports.EMBER_IMPROVED_INSTRUMENTATION = _exports.EMBER_LIBRARIES_ISREGISTERED = _exports.FEATURES = _exports.DEFAULT_FEATURES = void 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set `EmberENV.FEATURES` in your application's `config/environment.js` file
|
Set `EmberENV.FEATURES` in your application's `config/environment.js` file
|
||||||
@@ -29583,7 +29675,8 @@ define("@ember/canary-features/index", ["exports", "@ember/-internals/environmen
|
|||||||
EMBER_GLIMMER_INVOKE_HELPER: true,
|
EMBER_GLIMMER_INVOKE_HELPER: true,
|
||||||
EMBER_STRICT_MODE: true,
|
EMBER_STRICT_MODE: true,
|
||||||
EMBER_DYNAMIC_HELPERS_AND_MODIFIERS: true,
|
EMBER_DYNAMIC_HELPERS_AND_MODIFIERS: true,
|
||||||
EMBER_ROUTING_ROUTER_SERVICE_REFRESH: false
|
EMBER_ROUTING_ROUTER_SERVICE_REFRESH: true,
|
||||||
|
EMBER_CACHED: true
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
The hash of enabled Canary features. Add to this, any canary features
|
The hash of enabled Canary features. Add to this, any canary features
|
||||||
@@ -29651,6 +29744,8 @@ define("@ember/canary-features/index", ["exports", "@ember/-internals/environmen
|
|||||||
_exports.EMBER_DYNAMIC_HELPERS_AND_MODIFIERS = EMBER_DYNAMIC_HELPERS_AND_MODIFIERS;
|
_exports.EMBER_DYNAMIC_HELPERS_AND_MODIFIERS = EMBER_DYNAMIC_HELPERS_AND_MODIFIERS;
|
||||||
var EMBER_ROUTING_ROUTER_SERVICE_REFRESH = featureValue(FEATURES.EMBER_ROUTING_ROUTER_SERVICE_REFRESH);
|
var EMBER_ROUTING_ROUTER_SERVICE_REFRESH = featureValue(FEATURES.EMBER_ROUTING_ROUTER_SERVICE_REFRESH);
|
||||||
_exports.EMBER_ROUTING_ROUTER_SERVICE_REFRESH = EMBER_ROUTING_ROUTER_SERVICE_REFRESH;
|
_exports.EMBER_ROUTING_ROUTER_SERVICE_REFRESH = EMBER_ROUTING_ROUTER_SERVICE_REFRESH;
|
||||||
|
var EMBER_CACHED = featureValue(FEATURES.EMBER_CACHED);
|
||||||
|
_exports.EMBER_CACHED = EMBER_CACHED;
|
||||||
});
|
});
|
||||||
define("@ember/component/helper", ["exports", "@ember/-internals/glimmer"], function (_exports, _glimmer) {
|
define("@ember/component/helper", ["exports", "@ember/-internals/glimmer"], function (_exports, _glimmer) {
|
||||||
"use strict";
|
"use strict";
|
||||||
@@ -30680,7 +30775,9 @@ define("@ember/destroyable/index", ["exports", "@glimmer/destroyable"], function
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
class CustomSelect extends Component {
|
class CustomSelect extends Component {
|
||||||
constructor() {
|
constructor(...args) {
|
||||||
|
super(...args);
|
||||||
|
|
||||||
// obj is now a child of the component. When the component is destroyed,
|
// obj is now a child of the component. When the component is destroyed,
|
||||||
// obj will also be destroyed, and have all of its destructors triggered.
|
// obj will also be destroyed, and have all of its destructors triggered.
|
||||||
this.obj = associateDestroyableChild(this, {});
|
this.obj = associateDestroyableChild(this, {});
|
||||||
@@ -30811,12 +30908,15 @@ define("@ember/destroyable/index", ["exports", "@glimmer/destroyable"], function
|
|||||||
parent is destroyed, the destructor function will be called.
|
parent is destroyed, the destructor function will be called.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
import Component from '@glimmer/component';
|
||||||
import { registerDestructor } from '@ember/destroyable';
|
import { registerDestructor } from '@ember/destroyable';
|
||||||
|
|
||||||
class Modal extends Component {
|
class Modal extends Component {
|
||||||
@service resize;
|
@service resize;
|
||||||
|
|
||||||
constructor() {
|
constructor(...args) {
|
||||||
|
super(...args);
|
||||||
|
|
||||||
this.resize.register(this, this.layout);
|
this.resize.register(this, this.layout);
|
||||||
|
|
||||||
registerDestructor(this, () => this.resize.unregister(this));
|
registerDestructor(this, () => this.resize.unregister(this));
|
||||||
@@ -30833,6 +30933,7 @@ define("@ember/destroyable/index", ["exports", "@glimmer/destroyable"], function
|
|||||||
than creating a closure function per destroyable.
|
than creating a closure function per destroyable.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
import Component from '@glimmer/component';
|
||||||
import { registerDestructor } from '@ember/destroyable';
|
import { registerDestructor } from '@ember/destroyable';
|
||||||
|
|
||||||
function unregisterResize(instance) {
|
function unregisterResize(instance) {
|
||||||
@@ -30842,7 +30943,9 @@ define("@ember/destroyable/index", ["exports", "@glimmer/destroyable"], function
|
|||||||
class Modal extends Component {
|
class Modal extends Component {
|
||||||
@service resize;
|
@service resize;
|
||||||
|
|
||||||
constructor() {
|
constructor(...args) {
|
||||||
|
super(...args);
|
||||||
|
|
||||||
this.resize.register(this, this.layout);
|
this.resize.register(this, this.layout);
|
||||||
|
|
||||||
registerDestructor(this, unregisterResize);
|
registerDestructor(this, unregisterResize);
|
||||||
@@ -30865,12 +30968,15 @@ define("@ember/destroyable/index", ["exports", "@glimmer/destroyable"], function
|
|||||||
from the destroyable.
|
from the destroyable.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
import Component from '@glimmer/component';
|
||||||
import { registerDestructor, unregisterDestructor } from '@ember/destroyable';
|
import { registerDestructor, unregisterDestructor } from '@ember/destroyable';
|
||||||
|
|
||||||
class Modal extends Component {
|
class Modal extends Component {
|
||||||
@service modals;
|
@service modals;
|
||||||
|
|
||||||
constructor() {
|
constructor(...args) {
|
||||||
|
super(...args);
|
||||||
|
|
||||||
this.modals.add(this);
|
this.modals.add(this);
|
||||||
|
|
||||||
this.modalDestructor = registerDestructor(this, () => this.modals.remove(this));
|
this.modalDestructor = registerDestructor(this, () => this.modals.remove(this));
|
||||||
@@ -35467,6 +35573,7 @@ define("@ember/service/index", ["exports", "@ember/-internals/runtime", "@ember/
|
|||||||
value: true
|
value: true
|
||||||
});
|
});
|
||||||
_exports.inject = inject;
|
_exports.inject = inject;
|
||||||
|
_exports.service = service;
|
||||||
_exports.default = void 0;
|
_exports.default = void 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -35474,6 +35581,19 @@ define("@ember/service/index", ["exports", "@ember/-internals/runtime", "@ember/
|
|||||||
@public
|
@public
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
@method inject
|
||||||
|
@static
|
||||||
|
@since 1.10.0
|
||||||
|
@for @ember/service
|
||||||
|
@param {String} name (optional) name of the service to inject, defaults to
|
||||||
|
the property's name
|
||||||
|
@return {ComputedDecorator} injection decorator instance
|
||||||
|
@public
|
||||||
|
*/
|
||||||
|
function inject() {
|
||||||
|
return (0, _metal.inject)('service', ...arguments);
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
Creates a property that lazily looks up a service in the container. There are
|
Creates a property that lazily looks up a service in the container. There are
|
||||||
no restrictions as to what objects a service can be injected into.
|
no restrictions as to what objects a service can be injected into.
|
||||||
@@ -35482,7 +35602,7 @@ define("@ember/service/index", ["exports", "@ember/-internals/runtime", "@ember/
|
|||||||
|
|
||||||
```app/routes/application.js
|
```app/routes/application.js
|
||||||
import Route from '@ember/routing/route';
|
import Route from '@ember/routing/route';
|
||||||
import { inject as service } from '@ember/service';
|
import { service } from '@ember/service';
|
||||||
|
|
||||||
export default class ApplicationRoute extends Route {
|
export default class ApplicationRoute extends Route {
|
||||||
@service('auth') authManager;
|
@service('auth') authManager;
|
||||||
@@ -35497,7 +35617,7 @@ define("@ember/service/index", ["exports", "@ember/-internals/runtime", "@ember/
|
|||||||
|
|
||||||
```app/routes/application.js
|
```app/routes/application.js
|
||||||
import Route from '@ember/routing/route';
|
import Route from '@ember/routing/route';
|
||||||
import { inject as service } from '@ember/service';
|
import { service } from '@ember/service';
|
||||||
|
|
||||||
export default Route.extend({
|
export default Route.extend({
|
||||||
authManager: service('auth'),
|
authManager: service('auth'),
|
||||||
@@ -35512,16 +35632,18 @@ define("@ember/service/index", ["exports", "@ember/-internals/runtime", "@ember/
|
|||||||
that looks up the `auth` service in the container, making it easily accessible
|
that looks up the `auth` service in the container, making it easily accessible
|
||||||
in the `model` hook.
|
in the `model` hook.
|
||||||
|
|
||||||
@method inject
|
@method service
|
||||||
@static
|
@static
|
||||||
@since 1.10.0
|
@since 4.1.0
|
||||||
@for @ember/service
|
@for @ember/service
|
||||||
@param {String} name (optional) name of the service to inject, defaults to
|
@param {String} name (optional) name of the service to inject, defaults to
|
||||||
the property's name
|
the property's name
|
||||||
@return {ComputedDecorator} injection decorator instance
|
@return {ComputedDecorator} injection decorator instance
|
||||||
@public
|
@public
|
||||||
*/
|
*/
|
||||||
function inject() {
|
|
||||||
|
|
||||||
|
function service() {
|
||||||
return (0, _metal.inject)('service', ...arguments);
|
return (0, _metal.inject)('service', ...arguments);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@@ -49370,6 +49492,12 @@ define("@glimmer/tracking/index", ["exports", "@ember/-internals/metal"], functi
|
|||||||
return _metal.tracked;
|
return _metal.tracked;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Object.defineProperty(_exports, "cached", {
|
||||||
|
enumerable: true,
|
||||||
|
get: function () {
|
||||||
|
return _metal.cached;
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
define("@glimmer/tracking/primitives/cache", ["exports", "@ember/-internals/metal"], function (_exports, _metal) {
|
define("@glimmer/tracking/primitives/cache", ["exports", "@ember/-internals/metal"], function (_exports, _metal) {
|
||||||
"use strict";
|
"use strict";
|
||||||
@@ -53400,6 +53528,7 @@ define("ember-testing/lib/adapters/qunit", ["exports", "@ember/-internals/utils"
|
|||||||
asyncStart() {
|
asyncStart() {
|
||||||
if (typeof QUnit.stop === 'function') {
|
if (typeof QUnit.stop === 'function') {
|
||||||
// very old QUnit version
|
// very old QUnit version
|
||||||
|
// eslint-disable-next-line qunit/no-qunit-stop
|
||||||
QUnit.stop();
|
QUnit.stop();
|
||||||
} else {
|
} else {
|
||||||
this.doneCallbacks.push(QUnit.config.current ? QUnit.config.current.assert.async() : null);
|
this.doneCallbacks.push(QUnit.config.current ? QUnit.config.current.assert.async() : null);
|
||||||
@@ -54798,7 +54927,7 @@ define("ember/index", ["exports", "require", "@ember/-internals/environment", "@
|
|||||||
(true && !(false) && (0, EmberDebug.assert)(`Injected properties must be created through helpers, see '${Object.keys(inject).map(k => `'inject.${k}'`).join(' or ')}'`));
|
(true && !(false) && (0, EmberDebug.assert)(`Injected properties must be created through helpers, see '${Object.keys(inject).map(k => `'inject.${k}'`).join(' or ')}'`));
|
||||||
};
|
};
|
||||||
|
|
||||||
Ember.inject.service = _service.inject;
|
Ember.inject.service = _service.service;
|
||||||
Ember.inject.controller = _controller.inject;
|
Ember.inject.controller = _controller.inject;
|
||||||
Ember.Array = _runtime.Array;
|
Ember.Array = _runtime.Array;
|
||||||
Ember.Comparable = _runtime.Comparable;
|
Ember.Comparable = _runtime.Comparable;
|
||||||
@@ -55086,7 +55215,7 @@ define("ember/version", ["exports"], function (_exports) {
|
|||||||
value: true
|
value: true
|
||||||
});
|
});
|
||||||
_exports.default = void 0;
|
_exports.default = void 0;
|
||||||
var _default = "4.0.1";
|
var _default = "4.1.0";
|
||||||
_exports.default = _default;
|
_exports.default = _default;
|
||||||
});
|
});
|
||||||
define("route-recognizer", ["exports"], function (_exports) {
|
define("route-recognizer", ["exports"], function (_exports) {
|
Reference in New Issue
Block a user