Refactor upgrade ember 4 (#1501)

Upgrade Ember 4

Co-authored-by: Randall Morey <randall@randallmorey.com>
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
This commit is contained in:
authored and GitHub committed 2023-01-09 08:48:49 -08:00
1 parent ed91b26861
commit c21f011bb2
119 files changed
+1482 -496

No files matched your search

-1
View File
@@ -2,7 +2,6 @@
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Dummy</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
@@ -3,7 +3,7 @@
"packages": [
{
"name": "ember-cli",
"version": "3.24.0",
"version": "4.4.1",
"blueprints": [
{
"name": "addon",
+1 -1
View File
@@ -5,7 +5,7 @@ module.exports = function (environment) {
modulePrefix: 'dummy',
environment,
rootURL: '/',
locationType: 'auto',
locationType: 'history',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
+3 -20
View File
@@ -1,22 +1,5 @@
export default function () {
// These comments are here to help you get started. Feel free to delete them.
/*
Config (with defaults).
import { createServer } from 'miragejs';
Note: these only affect routes defined *after* them!
*/
// this.urlPrefix = ''; // make this `http://localhost:8080`, for example, if your API is on a different server
// this.namespace = ''; // make this `/api`, for example, if your API is namespaced
// this.timing = 400; // delay for each request, automatically set to 0 during testing
/*
Shorthand cheatsheet:
this.get('/posts');
this.post('/posts');
this.get('/posts/:id');
this.put('/posts/:id'); // or this.patch
this.del('/posts/:id');
https://www.ember-cli-mirage.com/docs/route-handlers/shorthands
*/
export default function (config) {
return createServer({ ...config });
}
@@ -1,3 +1,3 @@
import { JSONAPISerializer } from 'ember-cli-mirage';
import { JSONAPISerializer } from 'miragejs';
export default JSONAPISerializer.extend({});