Results 1 to 3 of 3

Thread: sench app watch classic/modern not wroking

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha Premium Member
    Join Date
    Jan 2008
    Posts
    86
    Vote Rating
    0
      0  

    Default sench app watch classic/modern not wroking

    Hi,

    I am just playing around with ExtJS 6.0 trial and did the following:

    1. Downloaded and decompressed ext-premium-6.0.0-trial.zip
    2. Downloaded and installed SenchaCmd-6.0.0.202-linux-amd64.sh.zip
    3. Created new app:
    Code:
    $ sencha -sdk ext-premium-6.0.0/ext-6.0.0 generate app MyApp MyApp
    4. Made changes as below:
    Code:
    diff --git a/classic/src/view/main/Main.js b/classic/src/view/main/Main.js
    index 9bf1027..67982e1 100644
    --- a/classic/src/view/main/Main.js
    +++ b/classic/src/view/main/Main.js
    @@ -76,7 +76,7 @@ Ext.define('MyApp.view.main.Main', {
         },
     
         items: [{
    -        title: 'Home',
    +        title: 'Classic',
             iconCls: 'fa-home',
             // The following grid shares a store with the classic version's grid as well!
             items: [{
    diff --git a/modern/src/view/main/Main.js b/modern/src/view/main/Main.js
    index c7840d5..204a104 100644
    --- a/modern/src/view/main/Main.js
    +++ b/modern/src/view/main/Main.js
    @@ -31,7 +31,7 @@ Ext.define('MyApp.view.main.Main', {
     
         items: [
             {
    -            title: 'Home',
    +            title: 'Modern',
                 iconCls: 'x-fa fa-home',
                 layout: 'fit',
                 // The following grid shares a store with the classic version's grid as well!
    5. After running
    Code:
    sencha app watch modern
    and opening http://localhost:1841/ what I would expect to see as the first item in left navigation is "Modern", what I see instead is "Classic"


    Is it a bug or I am doing something wrong?

    Regards,
    Chris

  2. #2
    Sencha User joel.watson's Avatar
    Join Date
    Nov 2014
    Posts
    3,120
    Vote Rating
    187
      0  

    Default

    What are you viewing the url on? If it's on a desktop, this is the expected behavior as the "beforeLoad()" in index.html is matching the "desktop" tag and loading the classic manifest. If you emulate a tablet in Chrome (or pass ?modern" in the querystring), it will load the modern manifest.

    The important thing to remember is that sencha app watch is not going to dictate what the content of localhost:1841 is (e.g., classic or modern) , only which build is being monitored for changes so that they can be rebuilt. Any other profiles that have already been built will still work if the conditions for loading them are met.

    Thanks!
    Joel

  3. #3
    Sencha Premium User
    Join Date
    Aug 2013
    Posts
    1
    Vote Rating
    0
      0  

    Default

    Classic: localhost:1841/ or localhost:1841/?classic
    Modern: localhost:1841/?modern

Similar Threads

  1. Question on modern vs classic toolkits
    By jorgemanrubia in forum Ext JS 6.x Q&A
    Replies: 28
    Last Post: 10 May 2017, 3:08 AM
  2. Different folder name for classic/modern
    By demongloom in forum Ext JS 6.x Q&A
    Replies: 6
    Last Post: 29 May 2016, 11:26 PM
  3. Replies: 1
    Last Post: 26 Jul 2015, 5:07 AM
  4. Replies: 1
    Last Post: 22 Jul 2015, 2:29 PM
  5. Classic & Modern Merge
    By enagic in forum Ext JS 6.x Q&A
    Replies: 1
    Last Post: 26 Jun 2015, 12:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •