Skip to content

Commit

Permalink
Run octane blueprint, bump deps (emberjs#1036)
Browse files Browse the repository at this point in the history
* Run octane blueprint, bump deps

* Skip highlight preview test
  • Loading branch information
RobbieTheWagner authored and patricklx committed Sep 19, 2022
1 parent b3b0074 commit 2933c43
Show file tree
Hide file tree
Showing 21 changed files with 2,121 additions and 473 deletions.
9 changes: 0 additions & 9 deletions .ember-cli

This file was deleted.

15 changes: 15 additions & 0 deletions .ember-cli.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
'use strict';

const { setEdition } = require('@ember/edition-utils');

setEdition('octane');

module.exports = {
/**
Ember CLI sends analytics information by default. The data is completely
anonymous, but there are times when you might want to disable this behavior.
Setting `disableAnalytics` to true will prevent any data from being sent.
*/
'disableAnalytics': false
};
8 changes: 7 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module'
Expand Down Expand Up @@ -29,6 +30,7 @@ module.exports = {
// node files
{
files: [
'.ember-cli.js',
'.eslintrc.js',
'.stylelintrc.js',
'.template-lintrc.js',
Expand All @@ -39,8 +41,12 @@ module.exports = {
'lib/*/index.js',
'server/**/*.js'
],
excludedFiles: [
'app/**',
],
parserOptions: {
sourceType: 'script'
sourceType: 'script',
ecmaVersion: 2015
},
env: {
browser: false,
Expand Down
13 changes: 5 additions & 8 deletions app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,12 @@ import config from './config/environment';

const version = '{{EMBER_INSPECTOR_VERSION}}';

const App = Application.extend({
modulePrefix: config.modulePrefix,
podModulePrefix: config.podModulePrefix,
Resolver
});
export default class App extends Application {
modulePrefix = config.modulePrefix;
podModulePrefix = config.podModulePrefix;
Resolver = Resolver;
}

config.VERSION = version;

loadInitializers(App, config.modulePrefix);


export default App;
File renamed without changes.
1 change: 1 addition & 0 deletions app/resolver.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Resolver from 'ember-resolver';

export default Resolver;

11 changes: 4 additions & 7 deletions app/router.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import EmberRouter from '@ember/routing/router';
import config from './config/environment';

const Router = EmberRouter.extend({
location: config.locationType,
rootURL: config.rootURL
});
export default class Router extends EmberRouter {
location = config.locationType;
rootURL = config.rootURL;
}

Router.map(function() {
this.route('app-detected', { path: '/', resetNamespace: true }, function() {
Expand Down Expand Up @@ -35,7 +35,4 @@ Router.map(function() {

this.route('deprecations', { resetNamespace: true });
});

});

export default Router;
152 changes: 77 additions & 75 deletions app/templates/application.hbs
Original file line number Diff line number Diff line change
@@ -1,82 +1,84 @@
{{#x-app
active=this.active
isDragging=this.isDragging
}}
{{#if isEmberApplication}}
<div class="split">
<div class="split__panel">
{{!-- Begin main --}}
<div class="split split--main">
{{#draggable-column
width=this.navWidth
classes="split__panel split__panel--sidebar-1"
setIsDragging=(action "setIsDragging")
}}
<div class="split__panel__hd">
{{app-picker}}
</div>
<div class="split__panel__bd">
<SideNav @deprecationCount={{this.deprecationCount}} />
</div>
<div class="split__panel__ft">
<a target="_blank" href="https://github.com/emberjs/ember-inspector/issues">
Submit an Issue
</a>
</div>
{{/draggable-column}}
<div class="ember-view">
{{#x-app
active=this.active
isDragging=this.isDragging
}}
{{#if isEmberApplication}}
<div class="split">
<div class="split__panel">
{{!-- Begin main --}}
<div class="split split--main">
{{#draggable-column
width=this.navWidth
classes="split__panel split__panel--sidebar-1"
setIsDragging=(action "setIsDragging")
}}
<div class="split__panel__hd">
{{app-picker}}
</div>
<div class="split__panel__bd">
<SideNav @deprecationCount={{this.deprecationCount}} />
</div>
<div class="split__panel__ft">
<a target="_blank" href="https://github.com/emberjs/ember-inspector/issues">
Submit an Issue
</a>
</div>
{{/draggable-column}}

<div class="split__panel">
<div class="split__panel__hd">
{{outlet "toolbar"}}
<button
class="sidebar-toggle toolbar__icon-button {{if this.inspectorExpanded "flip"}}"
{{on "click" this.toggleInspector}}
>
{{svg-jar "sidebar-toggle" width="16" height="16"}}
</button>
</div>
<div class="split__panel">
<div class="split__panel__hd">
{{outlet "toolbar"}}
<button
class="sidebar-toggle toolbar__icon-button {{if this.inspectorExpanded "flip"}}"
{{on "click" this.toggleInspector}}
>
{{svg-jar "sidebar-toggle" width="16" height="16"}}
</button>
</div>

{{#main-content class="split__panel__bd"}}
{{outlet}}
{{/main-content}}
{{#main-content class="split__panel__bd"}}
{{outlet}}
{{/main-content}}
</div>
</div>

{{!-- End main --}}
</div>

{{!-- End main --}}
{{#if this.inspectorExpanded}}
{{#draggable-column
side="right"
width=this.inspectorWidth
classes="split__panel"
setIsDragging=(action "setIsDragging")
}}
<ObjectInspector
@popMixinDetails={{this.popMixinDetails}}
@model={{this.mixinStack}}
@mixinDetails={{this.mixinDetails}}
/>
{{/draggable-column}}
{{/if}}
</div>
{{else}}
<Ui::ErrorPage @description="Ember application not detected!">
<ul>
<li>This is not an Ember application.</li>
<li>You are using an old version of Ember (&lt; rc5).</li>
{{#if this.isChrome}}
<li>
You are using the file:// protocol (instead of http://), in which case:

{{#if this.inspectorExpanded}}
{{#draggable-column
side="right"
width=this.inspectorWidth
classes="split__panel"
setIsDragging=(action "setIsDragging")
}}
<ObjectInspector
@popMixinDetails={{this.popMixinDetails}}
@model={{this.mixinStack}}
@mixinDetails={{this.mixinDetails}}
/>
{{/draggable-column}}
{{/if}}
</div>
{{else}}
<Ui::ErrorPage @description="Ember application not detected!">
<ul>
<li>This is not an Ember application.</li>
<li>You are using an old version of Ember (&lt; rc5).</li>
{{#if this.isChrome}}
<li>
You are using the file:// protocol (instead of http://), in which case:

<ul>
<li>Visit the URL: chrome://extensions.</li>
<li>Find the Ember Inspector.</li>
<li>Make sure "Allow access to file URLs" is checked.</li>
</ul>
</li>
{{/if}}
</ul>
</Ui::ErrorPage>
{{/if}}
{{/x-app}}
<ul>
<li>Visit the URL: chrome://extensions.</li>
<li>Find the Ember Inspector.</li>
<li>Make sure "Allow access to file URLs" is checked.</li>
</ul>
</li>
{{/if}}
</ul>
</Ui::ErrorPage>
{{/if}}
{{/x-app}}
</div>
4 changes: 2 additions & 2 deletions config/environment.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict';

/* eslint-env node */
let packageJson = require('../package.json');

module.exports = function(environment) {
Expand All @@ -14,7 +13,8 @@ module.exports = function(environment) {
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. EMBER_NATIVE_DECORATOR_SUPPORT: true
// e.g. EMBER_MODULE_UNIFICATION: true
EMBER_METAL_TRACKED_PROPERTIES: true
},
EXTEND_PROTOTYPES: {
// Prevent Ember Data from overriding Date.parse.
Expand Down
1 change: 1 addition & 0 deletions config/optional-features.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"application-template-wrapper": false,
"jquery-integration": false,
"template-only-glimmer-components": true
}
6 changes: 6 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"compilerOptions": {
"experimentalDecorators": true
},
"exclude": ["node_modules", "dist"]
}
30 changes: 17 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@
"2.7.0"
],
"devDependencies": {
"@ember/optional-features": "^0.7.0",
"@ember/edition-utils": "^1.1.1",
"@ember/optional-features": "^1.0.0",
"@glimmer/component": "^0.14.0-alpha.12",
"@html-next/vertical-collection": "^1.0.0",
"amd-name-resolver": "^1.2.1",
"aws-sdk": "^2.518.0",
"aws-sdk": "^2.533.0",
"babel-eslint": "^10.0.3",
"babel-plugin-transform-es2015-modules-amd": "^6.24.0",
"basiccontext": "^3.5.1",
Expand All @@ -50,14 +52,15 @@
"codeclimate-test-reporter": "^0.5.1",
"compare-versions": "^3.5.0",
"del": "^5.1.0",
"ember-cli": "~3.12.0",
"ember-auto-import": "^1.2.20",
"ember-cli": "~3.13.0-beta.1",
"ember-cli-app-version": "^3.2.0",
"ember-cli-babel": "^7.7.3",
"ember-cli-babel": "^7.11.0",
"ember-cli-code-coverage": "^1.0.0-beta.8",
"ember-cli-dependency-checker": "^3.1.0",
"ember-cli-eslint": "^5.1.0",
"ember-cli-htmlbars": "^3.0.1",
"ember-cli-htmlbars-inline-precompile": "^2.1.0",
"ember-cli-htmlbars": "github:ember-cli/ember-cli-htmlbars#253503f1cda5bce173d65fd7b15de1f447cfa5e7",
"ember-cli-htmlbars-inline-precompile": "^3.0.0",
"ember-cli-inject-live-reload": "^2.0.1",
"ember-cli-moment-shim": "^3.7.1",
"ember-cli-pretender": "^3.1.1",
Expand All @@ -76,16 +79,17 @@
"ember-math-helpers": "^2.11.2",
"ember-maybe-import-regenerator": "^0.1.6",
"ember-qunit": "^4.4.1",
"ember-resolver": "^5.0.1",
"ember-source": "~3.12.0",
"ember-resolver": "^5.2.1",
"ember-source": "https://s3.amazonaws.com/builds.emberjs.com/beta/shas/96e569c6a3dca9e68b34d04c4cbbb5215aaf9270.tgz",
"ember-source-channel-url": "^2.0.1",
"ember-svg-jar": "^2.1.0",
"ember-table": "^2.1.2",
"ember-svg-jar": "^2.2.2",
"ember-table": "^2.1.3",
"ember-template-lint": "^1.5.0",
"ember-test-selectors": "^2.1.0",
"ember-truth-helpers": "^2.1.0",
"ember-try": "^1.1.0",
"eslint-plugin-ember": "^7.0.0",
"eslint-plugin-node": "^9.0.1",
"eslint-plugin-ember": "^7.1.0",
"eslint-plugin-node": "^10.0.0",
"fstream": "^1.0.8",
"gulp": "^4.0.2",
"gulp-zip": "^5.0.0",
Expand All @@ -95,7 +99,7 @@
"qunit-dom": "^0.9.0",
"rimraf": "^3.0.0",
"sass": "^1.22.10",
"stylelint": "^10.1.0",
"stylelint": "^11.0.0",
"stylelint-config-ship-shape": "^0.6.0",
"yauzl": "^2.10.0"
},
Expand Down
4 changes: 2 additions & 2 deletions tests/ember_debug/view-debug-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Route from '@ember/routing/route';
import EmberObject from '@ember/object';
import Controller from '@ember/controller';
import { inspect } from '@ember/debug';
import { module, test } from 'qunit';
import { module, skip, test } from 'qunit';
import hbs from 'htmlbars-inline-precompile';
import require from 'require';
import { destroyEIApp, setupEIApp } from '../helpers/setup-destroy-ei-app';
Expand Down Expand Up @@ -161,7 +161,7 @@ module('Ember Debug - View', function(hooks) {
assert.equal(component.value.viewClass, 'App.TestFooComponent');
});

test('Highlighting Views on hover', async function t(assert) {
skip('Highlighting Views on hover', async function t(assert) {
let name, message;
port.reopen({
send(n, m) {
Expand Down
Loading

0 comments on commit 2933c43

Please sign in to comment.