Skip to content

Commit 3b5d1e2

Browse files
committed
reset to the latest app blueprint
1 parent a66e6bc commit 3b5d1e2

18 files changed

+559
-361
lines changed

.ember-cli

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{
22
/**
3-
Ember CLI sends analytics information by default. The data is completely
4-
anonymous, but there are times when you might want to disable this behavior.
5-
6-
Setting `disableAnalytics` to true will prevent any data from being sent.
3+
Setting `isTypeScriptProject` to true will force the blueprint generators to generate TypeScript
4+
rather than JavaScript by default, when a TypeScript version of a given blueprint is available.
75
*/
8-
"disableAnalytics": false
6+
"isTypeScriptProject": false
97
}

.gitignore

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,28 @@
1+
# compiled output
2+
/dist/
3+
/declarations/
14
/target
25
.cargo
36

4-
# compiled output
5-
/dist
6-
/tmp
77

88
# dependencies
99
node_modules/
10-
/bower_components
11-
package-lock.json
12-
yarn.lock
1310

1411
# misc
12+
/.env*
13+
/.pnp*
1514
/.eslintcache
16-
/.sass-cache
17-
/connect.lock
18-
/coverage/*
19-
/coverage_*
20-
/local_uploads
21-
/libpeerconnection.log
22-
npm-debug.log
23-
yarn-error.log
24-
testem.log
25-
.env
26-
docker-compose.override.yml
27-
*~
28-
src/schema.rs.orig
15+
/coverage/
16+
/npm-debug.log*
17+
/testem.log
18+
/yarn-error.log
2919

30-
# playwright
31-
/test-results/
32-
/playwright-report/
33-
/blob-report/
34-
/playwright/.cache/
20+
# ember-try
21+
/.node_modules.ember-try/
22+
/npm-shrinkwrap.json.ember-try
23+
/package.json.ember-try
24+
/package-lock.json.ember-try
25+
/yarn.lock.ember-try
3526

27+
# broccoli-debug
28+
/DEBUG/

.prettierignore

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,16 @@
1-
dist/
1+
# unconventional js
2+
/blueprints/*/files/
3+
4+
# compiled output
5+
/dist/
6+
7+
# misc
8+
/coverage/
9+
!.*
10+
.*/
11+
/pnpm-lock.yaml
12+
ember-cli-update.json
13+
*.html
14+
15+
# ember-try
16+
/.node_modules.ember-try/

.prettierrc.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
'use strict';
2+
3+
module.exports = {
4+
plugins: ['prettier-plugin-ember-template-tag'],
5+
overrides: [
6+
{
7+
files: '*.{js,gjs,ts,gts,mjs,mts,cjs,cts}',
8+
options: {
9+
singleQuote: true,
10+
templateSingleQuote: false,
11+
},
12+
},
13+
],
14+
};

.stylelintignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# unconventional files
2+
/blueprints/*/files/
3+
4+
# compiled output
5+
/dist/
6+
7+
# addons
8+
/.node_modules.ember-try/

.stylelintrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use strict';
2+
3+
module.exports = {
4+
extends: ['stylelint-config-standard'],
5+
};

app/app.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
import Application from '@ember/application';
2-
3-
import loadInitializers from 'ember-load-initializers';
42
import Resolver from 'ember-resolver';
3+
import loadInitializers from 'ember-load-initializers';
4+
import config from 'crates-io/config/environment';
5+
import { importSync, isDevelopingApp, macroCondition } from '@embroider/macros';
56

6-
import config from './config/environment';
77
import * as Sentry from './sentry';
88

99
// eslint-disable-next-line unicorn/prefer-add-event-listener
1010
window.onerror = undefined;
1111
Sentry.init();
12+
if (macroCondition(isDevelopingApp())) {
13+
importSync('./deprecation-workflow');
14+
}
1215

1316
export default class App extends Application {
1417
modulePrefix = config.modulePrefix;

app/deprecation-workflow.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import setupDeprecationWorkflow from 'ember-cli-deprecation-workflow';
2+
3+
/**
4+
* Docs: https://github.com/ember-cli/ember-cli-deprecation-workflow
5+
*/
6+
setupDeprecationWorkflow({
7+
/**
8+
false by default, but if a developer / team wants to be more aggressive about being proactive with
9+
handling their deprecations, this should be set to "true"
10+
*/
11+
throwOnUnhandled: false,
12+
workflow: [
13+
/* ... handlers ... */
14+
/* to generate this list, run your app for a while (or run the test suite),
15+
* and then run in the browser console:
16+
*
17+
* deprecationWorkflow.flushDeprecations()
18+
*
19+
* And copy the handlers here
20+
*/
21+
/* example: */
22+
/* { handler: 'silence', matchId: 'template-action' }, */
23+
],
24+
});

app/index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
<html lang="en" class="notranslate" translate="no">
33
<head>
44
<meta charset="utf-8">
5-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
5+
<meta name="description" content="">
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77

88
<title>crates.io: Rust Package Registry</title>
9+
{{content-for "head"}}
910

10-
{{content-for 'head'}}
11+
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/vendor.css">
12+
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/crates-io.css">
1113

12-
<link rel="stylesheet" href="{{rootURL}}assets/vendor.css">
13-
<link rel="stylesheet" href="{{rootURL}}assets/crates-io.css">
1414
<link rel="stylesheet" href="https://code.cdn.mozilla.net/fonts/fira.css">
1515

1616
<link rel="manifest" href="{{rootURL}}manifest.webmanifest">
1717
<meta name="msapplication-config" content="{{rootURL}}browserconfig.xml">
1818

19-
{{content-for 'head-footer'}}
19+
{{content-for "head-footer"}}
2020
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
2121
<link rel="icon" href="/assets/cargo.png" type="image/png">
2222
<link rel="search" href="/opensearch.xml" type="application/opensearchdescription+xml" title="crates.io">
@@ -30,14 +30,14 @@
3030
<noscript>
3131
For full functionality of this site it is necessary to enable JavaScript.
3232
</noscript>
33+
{{content-for "body"}}
3334

34-
{{content-for 'body'}}
3535

3636
<!-- if you change the following inline script make sure to change the CSP settings of nginx! -->
3737
<script>window.onerror=function(){document.body.innerHTML='<p style="width: 70%;background: var(--main-bg);padding: 10px;">Sorry, it looks like we were not able to load the page. Please make sure your network connection works and you are using an up-to-date browser. If the issue persists, please visit our <a href="https://github.com/rust-lang/crates.io/issues/new/choose">issue tracker</a> to report the problem.</p>'}</script>
3838
<script src="{{rootURL}}assets/vendor.js"></script>
3939
<script src="{{rootURL}}assets/crates-io.js"></script>
4040

41-
{{content-for 'body-footer'}}
41+
{{content-for "body-footer"}}
4242
</body>
4343
</html>

app/router.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import EmberRouter from '@ember/routing/router';
2-
3-
import config from './config/environment';
2+
import config from 'crates-io/config/environment';
43

54
export default class Router extends EmberRouter {
65
location = config.locationType;

0 commit comments

Comments
 (0)