Skip to content

Refactor model#407

Merged
stefanoborini merged 13 commits into
switch_to_vuefrom
refactor_model2
Apr 28, 2017
Merged

Refactor model#407
stefanoborini merged 13 commits into
switch_to_vuefrom
refactor_model2

Conversation

@martinRenou

@martinRenou martinRenou commented Apr 27, 2017

Copy link
Copy Markdown
Member
  • The loading property now belongs to the model
  • The application list is sorted by application name
  • The views are correctly instantiated with the right model instead of a "default" model
  • The start_application and stop_application methods are in the model

@codecov-io

codecov-io commented Apr 27, 2017

Copy link
Copy Markdown

Codecov Report

Merging #407 into switch_to_vue will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff               @@
##           switch_to_vue     #407   +/-   ##
==============================================
  Coverage          95.15%   95.15%           
==============================================
  Files                 94       94           
  Lines               4047     4047           
  Branches             254      254           
==============================================
  Hits                3851     3851           
  Misses               143      143           
  Partials              53       53

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 062c8c7...f037ab8. Read the comment docs.

"use strict";

var Status = utils.Status;
// var ga = gamodule.init();

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this.

// Add the options for some image types
app_data.forEach(function(application_data, data_idx) {
this.app_list[data_idx] = { app_data: application_data };
this.app_list.push({

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can set the value in a single shot, saves in performance.

app_list_view.model = model;
app_view.model = model;
new application_view.ApplicationView({ // jshint ignore:line
el: 'div.content-wrapper',

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add an ID to that specific snippet.

'../../components/vue/dist/vue.min',
"jsapi/v1/resources"
], function ($, urlutils, utils, gamodule, dialogs, models, Vue, resources) {
'../../components/vue/dist/vue.min'

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use vue instead of vue.min

@stefanoborini stefanoborini merged commit b961a44 into switch_to_vue Apr 28, 2017
@stefanoborini stefanoborini deleted the refactor_model2 branch April 28, 2017 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants