RADIUSdesk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
user_guide:extjs:theme [2022/04/21 13:46] adminuser_guide:extjs:theme [2022/04/21 15:41] (current) – [Production built] admin
Line 8: Line 8:
 # We will check it out in the home directory of the **system** user. # We will check it out in the home directory of the **system** user.
 cd ~ cd ~
-sudo git clone https://github.com/RADIUSdesk/rdcore.git+git clone https://github.com/RADIUSdesk/rdcore.git 
 +</code> 
 +  * Check out the Ext JS GPL version SDK 
 +<code bash> 
 +cd ~ 
 +mkdir extjs-gpl 
 +cd extjs-gpl/ 
 +git clone https://github.com/tremez/extjs-gpl.git 
 +ln -s /home/system/extjs-gpl/extjs-gpl /home/system/rdcore/rd/ex
 </code> </code>
   * For this reference we will create a black theme with red lettering.   * For this reference we will create a black theme with red lettering.
Line 28: Line 36:
 </code> </code>
   * Now that the theme is completed we can build the RADIUSdesk production GUI to see how it looks.   * Now that the theme is completed we can build the RADIUSdesk production GUI to see how it looks.
- 
 ===== Creating A Custom Theme - Part 2 ===== ===== Creating A Custom Theme - Part 2 =====
-  Build the production ready optimized code+==== Development built ==== 
 +  One can create a development and/or a production built using the Sencha Command. 
 +  * To build the development code: 
 +<code bash> 
 +cd /home/system/rdcore/rd 
 +sencha app refresh 
 +sencha app build development 
 +</code> 
 +  * Create this built if you also want to modify some of the RADIUSdesk GUI code and you want to see the modifications before building the final built. 
 + 
 +==== Production built ==== 
 +  * To build the production ready optimized code
 <code bash> <code bash>
 cd /home/system/rdcore/rd cd /home/system/rdcore/rd
Line 36: Line 54:
 sencha app build production sencha app build production
 </code> </code>
 +  * This will now build the production ready code but we actually need to see how it looks in order to determine that the theme is in order.
 +  * The production ready code will sit in this directory /home/system/rdcore/rd/build/production/Rd
  
 +==== Looking At The Results  ====
 +
 +  * Link the rd directory to the rd_tmp directory served in the webroot of the Nginx web server.
 +<code bash>
 +sudo ln -s /home/system/rdcore/rd /var/www/html/rd_tmp
 </code> </code>
 +  * Then to view the theme you can navigate to these URLs
 +     * DEVELOPMENT http://server_ip_or_fqdn/rd_tmp
 +     * PRODUCTION http://server_ip_or_fqdn/rd_tmp/build/procution/Rd
 +