├── .editorconfig ├── .gitignore ├── .nvmrc ├── .watchmanconfig ├── LICENSE ├── README.md ├── config ├── environment.js ├── module-map.d.ts └── resolver-configuration.d.ts ├── ember-cli-build.js ├── package.json ├── public ├── b.svg ├── bubble-lamp.svg ├── footer-logo.svg ├── icons │ ├── android-icon-144x144.png │ ├── android-icon-192x192.png │ ├── android-icon-36x36.png │ ├── android-icon-48x48.png │ ├── android-icon-72x72.png │ ├── android-icon-96x96.png │ ├── apple-icon-114x114.png │ ├── apple-icon-120x120.png │ ├── apple-icon-144x144.png │ ├── apple-icon-152x152.png │ ├── apple-icon-180x180.png │ ├── apple-icon-57x57.png │ ├── apple-icon-60x60.png │ ├── apple-icon-72x72.png │ ├── apple-icon-76x76.png │ ├── apple-icon-precomposed.png │ ├── apple-icon.png │ ├── browserconfig.xml │ ├── favicon-16x16.png │ ├── favicon-32x32.png │ ├── favicon-96x96.png │ ├── favicon.ico │ ├── manifest.json │ ├── ms-icon-144x144.png │ ├── ms-icon-150x150.png │ ├── ms-icon-310x310.png │ └── ms-icon-70x70.png ├── logo.svg ├── robots.txt ├── short-tomster-diff.png ├── subway-lines.png ├── tomster-diff.png └── tomster.svg ├── showcase.png ├── src ├── index.ts ├── main.ts ├── ui │ ├── components │ │ ├── ember-cli-diff │ │ │ ├── component.ts │ │ │ └── template.hbs │ │ └── zero-state │ │ │ ├── component.ts │ │ │ └── template.hbs │ ├── index.html │ └── styles │ │ ├── app.scss │ │ ├── footer.scss │ │ ├── form.scss │ │ ├── header.scss │ │ ├── select.scss │ │ ├── variables.scss │ │ └── zero-state.scss └── utils │ └── session-storage.ts ├── tsconfig.json └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig helps developers define and maintain consistent 2 | # coding styles between different editors and IDEs 3 | # editorconfig.org 4 | 5 | root = true 6 | 7 | 8 | [*] 9 | end_of_line = lf 10 | charset = utf-8 11 | trim_trailing_whitespace = true 12 | insert_final_newline = true 13 | indent_style = space 14 | indent_size = 2 15 | 16 | [*.hbs] 17 | insert_final_newline = false 18 | 19 | [*.{diff,md}] 20 | trim_trailing_whitespace = false 21 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | tmp 3 | dist 4 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | v6.9.5 2 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | { 2 | "ignore_dirs": ["tmp", "dist"] 3 | } 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Marcelo Dominguez 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Ember CLI diff 2 | 3 | See the changes between new ember apps 4 | [http://www.ember-cli-diff.org/](http://www.ember-cli-diff.org) 5 | 6 | ![showcase](showcase.png) 7 | 8 | ## License 9 | 10 | ember-cli-diff is licensed under the MIT license. 11 | 12 | See [LICENSE](./LICENSE) for the full license text. 13 | -------------------------------------------------------------------------------- /config/environment.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function(environment) { 4 | let ENV = { 5 | modulePrefix: 'ember-cli-diff', 6 | environment: environment 7 | }; 8 | 9 | return ENV; 10 | }; 11 | -------------------------------------------------------------------------------- /config/module-map.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This is just a placeholder file to keep TypeScript aware editors happy. At build time, 3 | * it will be replaced with a complete map of resolvable module paths => rolled up contents. 4 | */ 5 | 6 | export interface Dict { 7 | [index: string]: T; 8 | } 9 | 10 | declare let map: Dict; 11 | export default map; 12 | -------------------------------------------------------------------------------- /config/resolver-configuration.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This is just a placeholder file to keep TypeScript aware editors happy. At build time, 3 | * it will be replaced with a resolver configuration composed from your application's 4 | * `config/environment.js` (and supplemented with default settings as possible). 5 | */ 6 | 7 | import { ResolverConfiguration } from '@glimmer/resolver'; 8 | declare var _default: ResolverConfiguration; 9 | export default _default; 10 | -------------------------------------------------------------------------------- /ember-cli-build.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const GlimmerApp = require('@glimmer/application-pipeline').GlimmerApp; 4 | 5 | module.exports = function(defaults) { 6 | let app = new GlimmerApp(defaults, { 7 | // Add options here 8 | }); 9 | 10 | // Use `app.import` to add additional libraries to the generated 11 | // output files. 12 | // 13 | // If you need to use different assets in different 14 | // environments, specify an object as the first parameter. That 15 | // object's keys should be the environment name and the values 16 | // should be the asset to use in that environment. 17 | // 18 | // If the library that you are including contains AMD or ES6 19 | // modules that you would like to import into your application 20 | // please specify an object with the list of modules as keys 21 | // along with the exports of each module as its value. 22 | 23 | return app.toTree(); 24 | }; 25 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ember-cli-diff", 3 | "version": "0.0.0", 4 | "description": "A brand new Glimmer app.", 5 | "directories": { 6 | "doc": "doc", 7 | "test": "tests" 8 | }, 9 | "scripts": { 10 | "build": "ember build", 11 | "start": "ember server", 12 | "test": "ember test" 13 | }, 14 | "devDependencies": { 15 | "@glimmer/application": "^0.6.0", 16 | "@glimmer/application-pipeline": "^0.7.3", 17 | "@glimmer/blueprint": "^0.2.1", 18 | "@glimmer/resolver": "^0.3.0", 19 | "broccoli-asset-rev": "^2.5.0", 20 | "ember-cli": "^2.14.0-beta.2", 21 | "ember-cli-inject-live-reload": "^1.6.1", 22 | "ember-cli-sass": "^6.2.0", 23 | "ember-cli-uglify": "^1.2.0", 24 | "navigo": "^5.2.0", 25 | "typescript": "^2.2.2" 26 | }, 27 | "engines": { 28 | "node": ">= 4.0 < 8.0" 29 | }, 30 | "private": true 31 | } 32 | -------------------------------------------------------------------------------- /public/b.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /public/bubble-lamp.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /public/footer-logo.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /public/icons/android-icon-144x144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/icons/android-icon-144x144.png -------------------------------------------------------------------------------- /public/icons/android-icon-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/icons/android-icon-192x192.png -------------------------------------------------------------------------------- /public/icons/android-icon-36x36.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/icons/android-icon-36x36.png -------------------------------------------------------------------------------- /public/icons/android-icon-48x48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/icons/android-icon-48x48.png -------------------------------------------------------------------------------- /public/icons/android-icon-72x72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/icons/android-icon-72x72.png -------------------------------------------------------------------------------- /public/icons/android-icon-96x96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/icons/android-icon-96x96.png -------------------------------------------------------------------------------- /public/icons/apple-icon-114x114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/icons/apple-icon-114x114.png -------------------------------------------------------------------------------- /public/icons/apple-icon-120x120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/icons/apple-icon-120x120.png -------------------------------------------------------------------------------- /public/icons/apple-icon-144x144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/icons/apple-icon-144x144.png -------------------------------------------------------------------------------- /public/icons/apple-icon-152x152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/icons/apple-icon-152x152.png -------------------------------------------------------------------------------- /public/icons/apple-icon-180x180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/icons/apple-icon-180x180.png -------------------------------------------------------------------------------- /public/icons/apple-icon-57x57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/icons/apple-icon-57x57.png -------------------------------------------------------------------------------- /public/icons/apple-icon-60x60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/icons/apple-icon-60x60.png -------------------------------------------------------------------------------- /public/icons/apple-icon-72x72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/icons/apple-icon-72x72.png -------------------------------------------------------------------------------- /public/icons/apple-icon-76x76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/icons/apple-icon-76x76.png -------------------------------------------------------------------------------- /public/icons/apple-icon-precomposed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/icons/apple-icon-precomposed.png -------------------------------------------------------------------------------- /public/icons/apple-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/icons/apple-icon.png -------------------------------------------------------------------------------- /public/icons/browserconfig.xml: -------------------------------------------------------------------------------- 1 | 2 | #ffffff -------------------------------------------------------------------------------- /public/icons/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/icons/favicon-16x16.png -------------------------------------------------------------------------------- /public/icons/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/icons/favicon-32x32.png -------------------------------------------------------------------------------- /public/icons/favicon-96x96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/icons/favicon-96x96.png -------------------------------------------------------------------------------- /public/icons/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/icons/favicon.ico -------------------------------------------------------------------------------- /public/icons/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "App", 3 | "icons": [ 4 | { 5 | "src": "\/android-icon-36x36.png", 6 | "sizes": "36x36", 7 | "type": "image\/png", 8 | "density": "0.75" 9 | }, 10 | { 11 | "src": "\/android-icon-48x48.png", 12 | "sizes": "48x48", 13 | "type": "image\/png", 14 | "density": "1.0" 15 | }, 16 | { 17 | "src": "\/android-icon-72x72.png", 18 | "sizes": "72x72", 19 | "type": "image\/png", 20 | "density": "1.5" 21 | }, 22 | { 23 | "src": "\/android-icon-96x96.png", 24 | "sizes": "96x96", 25 | "type": "image\/png", 26 | "density": "2.0" 27 | }, 28 | { 29 | "src": "\/android-icon-144x144.png", 30 | "sizes": "144x144", 31 | "type": "image\/png", 32 | "density": "3.0" 33 | }, 34 | { 35 | "src": "\/android-icon-192x192.png", 36 | "sizes": "192x192", 37 | "type": "image\/png", 38 | "density": "4.0" 39 | } 40 | ] 41 | } -------------------------------------------------------------------------------- /public/icons/ms-icon-144x144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/icons/ms-icon-144x144.png -------------------------------------------------------------------------------- /public/icons/ms-icon-150x150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/icons/ms-icon-150x150.png -------------------------------------------------------------------------------- /public/icons/ms-icon-310x310.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/icons/ms-icon-310x310.png -------------------------------------------------------------------------------- /public/icons/ms-icon-70x70.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/icons/ms-icon-70x70.png -------------------------------------------------------------------------------- /public/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # http://www.robotstxt.org 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /public/short-tomster-diff.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/short-tomster-diff.png -------------------------------------------------------------------------------- /public/subway-lines.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/subway-lines.png -------------------------------------------------------------------------------- /public/tomster-diff.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/public/tomster-diff.png -------------------------------------------------------------------------------- /public/tomster.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | 538 | 539 | 540 | 541 | 542 | 543 | 544 | 545 | 546 | 547 | 548 | 549 | 550 | 551 | 552 | 553 | 554 | 555 | 556 | 557 | 558 | 559 | 560 | 561 | 562 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570 | 571 | 572 | 573 | 574 | 575 | 576 | 577 | 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | -------------------------------------------------------------------------------- /showcase.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvdwg/ember-cli-diff/bd72e71c7e7f681bac1ecd35374ba7fd3bfce84c/showcase.png -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | import App from './main'; 2 | import { ComponentManager, setPropertyDidChange } from '@glimmer/component'; 3 | 4 | const app = new App(); 5 | const containerElement = document.getElementById('app'); 6 | 7 | setPropertyDidChange(() => { 8 | app.scheduleRerender(); 9 | }); 10 | 11 | app.registerInitializer({ 12 | initialize(registry) { 13 | registry.register(`component-manager:/${app.rootName}/component-managers/main`, ComponentManager); 14 | } 15 | }); 16 | 17 | app.renderComponent('ember-cli-diff', containerElement, null); 18 | 19 | app.boot(); 20 | -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- 1 | import Application from '@glimmer/application'; 2 | import Resolver, { BasicModuleRegistry } from '@glimmer/resolver'; 3 | import moduleMap from '../config/module-map'; 4 | import resolverConfiguration from '../config/resolver-configuration'; 5 | 6 | export default class App extends Application { 7 | constructor() { 8 | let moduleRegistry = new BasicModuleRegistry(moduleMap); 9 | let resolver = new Resolver(resolverConfiguration, moduleRegistry); 10 | 11 | super({ 12 | rootName: resolverConfiguration.app.rootName, 13 | resolver 14 | }); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/ui/components/ember-cli-diff/component.ts: -------------------------------------------------------------------------------- 1 | import Component, { tracked } from '@glimmer/component'; 2 | import Navigo from 'navigo'; 3 | import { setItem, getItem } from '../../../utils/session-storage'; 4 | 5 | declare const $, Diff2HtmlUI; 6 | 7 | const router = new Navigo(null, true); 8 | 9 | export default class EmberCliDiff extends Component { 10 | @tracked 11 | from: any; 12 | @tracked 13 | to: any; 14 | @tracked 15 | downloadDiffUrl: any; 16 | @tracked 17 | hasSelection: boolean; 18 | 19 | json: any; 20 | 21 | constructor(options) { 22 | super(options); 23 | 24 | this.hasSelection = false; 25 | 26 | this.json = ["v2.15.0-beta.1", "v2.14.0", "v2.14.0-beta.2", "v2.14.0-beta.1", "v2.13.3", "v2.13.2", "v2.13.1", "v2.13.0", "v2.13.0-beta.4", "v2.13.0-beta.3", "v2.13.0-beta.2", "v2.13.0-beta.1", "v2.12.3", "v2.12.2", "v2.12.1", "v2.12.0", "v2.12.0-beta.2", "v2.12.0-beta.1", "v2.11.1", "v2.11.0", "v2.11.0-beta.2", "v2.11.0-beta.1", "v2.10.1", "v2.10.0", "v2.10.0-beta.2", "v2.10.0-beta.1", "v2.9.1", "v2.9.0", "v2.9.0-beta.2", "v2.9.0-beta.1", "v2.8.0", "v2.8.0-beta.3", "v2.8.0-beta.2", "v2.8.0-beta.1", "v2.7.0", "v2.7.0-beta.6", "v2.7.0-beta.5", "v2.7.0-beta.4", "v2.7.0-beta.3", "v2.7.0-beta.2", "v2.7.0-beta.1", "v2.6.3", "v2.6.2", "v2.6.1", "v2.6.0", "v2.6.0-beta.3", "v2.6.0-beta.2", "v2.6.0-beta.1", "v2.5.1", "v2.5.0", "v2.4.3", "v2.4.2", "v2.4.1", "v2.4.0", "v2.3.0", "v2.3.0-beta.2", "v2.3.0-beta.1", "v2.2.0-beta.6", "v2.2.0-beta.5", "v2.2.0-beta.4", "v2.2.0-beta.3", "v2.2.0-beta.2", "v2.2.0-beta.1", "v1.13.15", "v1.13.14", "v1.13.13", "v1.13.12", "v1.13.11", "v1.13.10", "v1.13.8", "v1.13.7", "v1.13.6", "v1.13.5", "v1.13.1", "v1.13.0", "v0.2.7", "v0.2.6", "v0.2.5", "v0.2.4", "v0.2.3", "v0.2.2", "v0.2.1", "v0.2.0", "v0.2.0-beta.1", "v0.1.15", "v0.1.14", "v0.1.13", "v0.1.12", "v0.1.11", "v0.1.10", "v0.1.9", "v0.1.8", "v0.1.7", "v0.1.6", "v0.1.5", "v0.1.4", "v0.1.3", "v0.1.2", "v0.1.1", "v0.1.0", "v0.0.47", "v0.0.46", "v0.0.45"] 27 | 28 | router 29 | .on({ 30 | '/:from/:to': (params, query) => { 31 | this.from = params.from; 32 | this.to = params.to; 33 | this.hasSelection = true; 34 | }, 35 | }) 36 | .resolve(); 37 | } 38 | 39 | createHashForSelect2(versions) { 40 | return versions.map(function(version) { 41 | return { id: version, text: version }; 42 | }); 43 | } 44 | 45 | didInsertElement() { 46 | this.loadTags().then((tags) => { 47 | $("select").select2({ 48 | data: this.createHashForSelect2(tags) 49 | }); 50 | 51 | $("#from").val(this.from).trigger("change"); 52 | $("#to").val(this.to).trigger("change"); 53 | 54 | if (this.from && this.to) { 55 | this.loadDiff(); 56 | } 57 | }); 58 | } 59 | 60 | loadTags() { 61 | return new Promise((resolve) => { 62 | var tags = getItem('tags'); 63 | 64 | if (tags) { 65 | resolve(tags); 66 | } else { 67 | fetch(`https://api.github.com/repos/ember-cli/ember-new-output/tags?per_page=100`) 68 | .then(request => request.json()) 69 | .then((tags) => { 70 | let versionTags = tags.map((tag) => { 71 | return tag.name; 72 | }); 73 | 74 | setItem('tags', versionTags); 75 | 76 | resolve(versionTags); 77 | }); 78 | } 79 | }); 80 | } 81 | 82 | loadVersion(key, e) { 83 | this[key] = e.target.value; 84 | 85 | if (key === "from") { 86 | this.loadTags().then((tags) => { 87 | let greaterThanFromVersion = tags.slice(0, tags.indexOf(this.from)); 88 | $("#to").empty().prepend('