Alex Trofimov 7 rokov pred
rodič
commit
43cc6b212d
24 zmenil súbory, kde vykonal 363 pridanie a 96 odobranie
  1. 0 14
      index.php
  2. 1 2
      install/sql/system.sql
  3. 0 17
      modules/boonex/decorous/data/template/system/scripts/BxTemplServiceMobileApps.php
  4. 0 17
      modules/boonex/lucid/data/template/system/scripts/BxTemplServiceMobileApps.php
  5. 38 0
      modules/boonex/mobile_apps/classes/BxMobileAppsAlerts.php
  6. 20 0
      modules/boonex/mobile_apps/classes/BxMobileAppsConfig.php
  7. 20 0
      modules/boonex/mobile_apps/classes/BxMobileAppsDb.php
  8. 13 11
      modules/boonex/mobile_apps/classes/BxMobileAppsModule.php
  9. 30 0
      modules/boonex/mobile_apps/classes/BxMobileAppsPage.php
  10. 20 0
      modules/boonex/mobile_apps/classes/BxMobileAppsTemplate.php
  11. 68 0
      modules/boonex/mobile_apps/install/config.php
  12. 20 0
      modules/boonex/mobile_apps/install/installer.php
  13. 18 0
      modules/boonex/mobile_apps/install/langs/en.xml
  14. 15 0
      modules/boonex/mobile_apps/install/sql/disable.sql
  15. 29 0
      modules/boonex/mobile_apps/install/sql/enable.sql
  16. 15 0
      modules/boonex/mobile_apps/install/sql/install.sql
  17. 7 0
      modules/boonex/mobile_apps/install/sql/uninstall.sql
  18. 0 0
      modules/boonex/mobile_apps/js/pulltorefresh.min.js
  19. 20 0
      modules/boonex/mobile_apps/request.php
  20. 26 0
      modules/boonex/mobile_apps/template/images/icons/std-icon.svg
  21. 3 1
      modules/boonex/mobile_apps/template/mobile_apps_js.html
  22. 0 0
      modules/boonex/mobile_apps/template/mobile_apps_styles.html
  23. 0 17
      modules/boonex/ocean/data/template/system/scripts/BxTemplServiceMobileApps.php
  24. 0 17
      modules/boonex/protean/data/template/system/scripts/BxTemplServiceMobileApps.php

+ 0 - 14
index.php

@@ -28,20 +28,6 @@ require_once(BX_DIRECTORY_PATH_INC . "profiles.inc.php");
 
 
 $_GET['i'] = 'home';
 $_GET['i'] = 'home';
 
 
-if (!isLogged() && false !== strpos($_SERVER['HTTP_USER_AGENT'], 'UNAMobileApp')) {
-
-    require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
-    
-    $sLoginForm = BxDolService::call('system', 'login_form', array('ajax_form'), 'TemplServiceLogin');
-
-    $oTemplate = BxDolTemplate::getInstance();
-    $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
-    $oTemplate->setPageContent ('page_main_code', DesignBoxContent('', $sLoginForm, BX_DB_PADDING_NO_CAPTION)); 
-    $oTemplate->getPageCode();
-    
-    exit;
-}
-
 if (!isLogged() && getParam('sys_site_splash_enabled')) {
 if (!isLogged() && getParam('sys_site_splash_enabled')) {
     require_once("./splash.php");
     require_once("./splash.php");
     exit;
     exit;

+ 1 - 2
install/sql/system.sql

@@ -1372,8 +1372,7 @@ CREATE TABLE `sys_injections` (
 INSERT INTO `sys_injections`(`name`, `page_index`, `key`, `type`, `data`, `replace`, `active`) VALUES
 INSERT INTO `sys_injections`(`name`, `page_index`, `key`, `type`, `data`, `replace`, `active`) VALUES
 ('update_cache', 150, 'injection_head', 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:17:"get_cache_updater";s:6:"params";a:0:{}s:5:"class";s:19:"TemplStudioLauncher";}', 0, 1),
 ('update_cache', 150, 'injection_head', 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:17:"get_cache_updater";s:6:"params";a:0:{}s:5:"class";s:19:"TemplStudioLauncher";}', 0, 1),
 ('sys_head', 0, 'injection_head', 'text', '', 0, 1),
 ('sys_head', 0, 'injection_head', 'text', '', 0, 1),
-('sys_body', 0, 'injection_footer', 'text', '', 0, 1),
-('sys_mobile_apps', 0, 'injection_head', 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:9:"injection";s:6:"params";a:0:{}s:5:"class";s:22:"TemplServiceMobileApps";}', 0, 1);
+('sys_body', 0, 'injection_footer', 'text', '', 0, 1);
 
 
 -- --------------------------------------------------------
 -- --------------------------------------------------------
 
 

+ 0 - 17
modules/boonex/decorous/data/template/system/scripts/BxTemplServiceMobileApps.php

@@ -1,17 +0,0 @@
-<?php defined('BX_DOL') or die('hack attempt');
-/**
- * Copyright (c) UNA, Inc - https://una.io
- * MIT License - https://opensource.org/licenses/MIT
- *
- * @defgroup    UnaTemplate UNA Template Classes
- * @{
- */
-
-/**
- * @see BxBaseServiceMobileApps
- */
-class BxTemplServiceMobileApps extends BxBaseServiceMobileApps
-{
-}
-
-/** @} */

+ 0 - 17
modules/boonex/lucid/data/template/system/scripts/BxTemplServiceMobileApps.php

@@ -1,17 +0,0 @@
-<?php defined('BX_DOL') or die('hack attempt');
-/**
- * Copyright (c) UNA, Inc - https://una.io
- * MIT License - https://opensource.org/licenses/MIT
- *
- * @defgroup    UnaTemplate UNA Template Classes
- * @{
- */
-
-/**
- * @see BxBaseServiceMobileApps
- */
-class BxTemplServiceMobileApps extends BxBaseServiceMobileApps
-{
-}
-
-/** @} */

+ 38 - 0
modules/boonex/mobile_apps/classes/BxMobileAppsAlerts.php

@@ -0,0 +1,38 @@
+<?php defined('BX_DOL') or die('hack attempt');
+/**
+ * Copyright (c) UNA, Inc - https://una.io
+ * MIT License - https://opensource.org/licenses/MIT
+ *
+ * @defgroup    MobileApps Mobile Apps
+ * @ingroup     UnaModules
+ *
+ * @{
+ */
+
+class BxMobileAppsAlerts extends BxDolAlertsResponse
+{
+    protected $_oModule;
+    function __construct()
+    {
+        parent::__construct();
+    }
+
+    public function response($o)
+    {
+        if ('system' == $o->sUnit && 'page_output' == $o->sAction && 'sys_home' == $o->aExtras['page_name'] && !isLogged() && false !== strpos($_SERVER['HTTP_USER_AGENT'], 'UNAMobileApp')) {
+
+            // require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
+    
+            $sLoginForm = BxDolService::call('system', 'login_form', array('ajax_form'), 'TemplServiceLogin');
+
+            $oTemplate = BxDolTemplate::getInstance();
+            $oTemplate->setPageNameIndex (BX_PAGE_DEFAULT);
+            $oTemplate->setPageContent ('page_main_code', DesignBoxContent('', $sLoginForm, BX_DB_PADDING_NO_CAPTION)); 
+            $oTemplate->getPageCode();
+            
+            exit;
+        }
+    }    
+}
+
+/** @} */

+ 20 - 0
modules/boonex/mobile_apps/classes/BxMobileAppsConfig.php

@@ -0,0 +1,20 @@
+<?php defined('BX_DOL') or die('hack attempt');
+/**
+ * Copyright (c) UNA, Inc - https://una.io
+ * MIT License - https://opensource.org/licenses/MIT
+ *
+ * @defgroup    MobileApps Mobile Apps
+ * @ingroup     UnaModules
+ *
+ * @{
+ */
+
+class BxMobileAppsConfig extends BxDolModuleConfig
+{
+    function __construct($aModule)
+    {
+        parent::__construct($aModule);
+    }
+}
+
+/** @} */

+ 20 - 0
modules/boonex/mobile_apps/classes/BxMobileAppsDb.php

@@ -0,0 +1,20 @@
+<?php defined('BX_DOL') or die('hack attempt');
+/**
+ * Copyright (c) UNA, Inc - https://una.io
+ * MIT License - https://opensource.org/licenses/MIT
+ *
+ * @defgroup    MobileApps Mobile Apps
+ * @ingroup     UnaModules
+ *
+ * @{
+ */
+
+class BxMobileAppsDb extends BxDolModuleDb
+{
+    function __construct(&$oConfig)
+    {
+        parent::__construct($oConfig);
+    }
+}
+
+/** @} */

+ 13 - 11
template/scripts/BxBaseServiceMobileApps.php → modules/boonex/mobile_apps/classes/BxMobileAppsModule.php

@@ -3,18 +3,17 @@
  * Copyright (c) UNA, Inc - https://una.io
  * Copyright (c) UNA, Inc - https://una.io
  * MIT License - https://opensource.org/licenses/MIT
  * MIT License - https://opensource.org/licenses/MIT
  *
  *
- * @defgroup    UnaBaseView UNA Base Representation Classes
+ * @defgroup    MobileApps Mobile Apps
+ * @ingroup     UnaModules
+ *
  * @{
  * @{
  */
  */
 
 
-/**
- * System services for mobile apps.
- */
-class BxBaseServiceMobileApps extends BxDol
+class BxMobileAppsModule extends BxDolModule
 {
 {
-    public function __construct()
+    function __construct(&$aModule)
     {
     {
-        parent::__construct();
+        parent::__construct($aModule);
     }
     }
 
 
     /**
     /**
@@ -39,17 +38,20 @@ class BxBaseServiceMobileApps extends BxDol
             $iBubbles += $r['bx_if:addon']['content']['addon'];
             $iBubbles += $r['bx_if:addon']['content']['addon'];
         }
         }
 
 
-        $s  = BxDolTemplate::getInstance()->parseHtmlByName('mobile_apps_styles.html', array());
-        $s .= BxDolTemplate::getInstance()->parseHtmlByName('mobile_apps_js.html', array(
+        $s  = $this->_oTemplate->parseHtmlByName('mobile_apps_styles.html', array());
+        $s .= $this->_oTemplate->parseHtmlByName('mobile_apps_js.html', array(
             'msg' => json_encode(array(
             'msg' => json_encode(array(
                 'loggedin' => isLogged(),                
                 'loggedin' => isLogged(),                
                 'bubbles_num' => $iBubbles ? $iBubbles : '',
                 'bubbles_num' => $iBubbles ? $iBubbles : '',
                 'bubbles' => $aBubbles,
                 'bubbles' => $aBubbles,
                 'push_tags' => array('user' => bx_get_logged_profile_id())
                 'push_tags' => array('user' => bx_get_logged_profile_id())
-            ))
+            )),
+            'txt_pull_to_refresh' => bx_js_string(_t('_bx_mobileapps_pull_to_refresh')),
+            'txt_release_to_refresh' => bx_js_string(_t('_bx_mobileapps_release_to_refresh')),
+            'txt_refreshing' => bx_js_string(_t('_bx_mobileapps_refreshing')),
         ));
         ));
 
 
-        BxDolTemplate::getInstance()->addJs('pulltorefresh.min.js');
+        $this->_oTemplate->addJs('pulltorefresh.min.js');
 
 
         return $s;
         return $s;
     }
     }

+ 30 - 0
modules/boonex/mobile_apps/classes/BxMobileAppsPage.php

@@ -0,0 +1,30 @@
+<?php defined('BX_DOL') or die('hack attempt');
+/**
+ * Copyright (c) UNA, Inc - https://una.io
+ * MIT License - https://opensource.org/licenses/MIT
+ *
+ * @defgroup    MobileApps Mobile Apps
+ * @ingroup     UnaModules
+ *
+ * @{
+ */
+
+class BxMobileAppsStudioPage extends BxTemplStudioModule
+{
+    function __construct($sModule = "", $sPage = "")
+    {
+        parent::__construct($sModule, $sPage);
+
+        $this->aMenuItems = array(
+            array('name' => 'settings', 'icon' => 'cogs', 'title' => '_adm_lmi_cpt_settings'),
+            array('name' => 'help', 'icon' => 'question', 'title' => '_bx_mobileapps_information'),
+        );
+    }
+    
+    function getHelp ()
+    {
+        return _t('_bx_mobileapps_information_block');
+    }
+}
+
+/** @} */

+ 20 - 0
modules/boonex/mobile_apps/classes/BxMobileAppsTemplate.php

@@ -0,0 +1,20 @@
+<?php defined('BX_DOL') or die('hack attempt');
+/**
+ * Copyright (c) UNA, Inc - https://una.io
+ * MIT License - https://opensource.org/licenses/MIT
+ *
+ * @defgroup    MobileApps Mobile Apps
+ * @ingroup     UnaModules
+ *
+ * @{
+ */
+
+class BxMobileAppsTemplate extends BxDolModuleTemplate
+{
+    function __construct(&$oConfig, &$oDb)
+    {
+        parent::__construct($oConfig, $oDb);
+    }
+}
+
+/** @} */

+ 68 - 0
modules/boonex/mobile_apps/install/config.php

@@ -0,0 +1,68 @@
+<?php
+/**
+ * Copyright (c) UNA, Inc - https://una.io
+ * MIT License - https://opensource.org/licenses/MIT
+ *
+ * @defgroup    MobileApps Mobile Apps
+ * @ingroup     UnaModules
+ *
+ * @{
+ */
+
+$aConfig = array(
+    /**
+     * Main Section.
+     */
+    'type' => BX_DOL_MODULE_TYPE_MODULE,
+    'name' => 'bx_mobileapps',
+    'title' => 'Mobile Apps',
+    'note' => 'Mobile Apps.',
+    'version' => '9.0.0.DEV',
+    'vendor' => 'BoonEx',
+	'help_url' => 'http://feed.una.io/?section={module_name}',
+
+    'compatible_with' => array(
+        '9.0.x'
+    ),
+
+    /**
+     * 'home_dir' and 'home_uri' - should be unique. Don't use spaces in 'home_uri' and the other special chars.
+     */
+    'home_dir' => 'boonex/mobile_apps/',
+    'home_uri' => 'mobileapps',
+
+    'db_prefix' => 'bx_mobileapps_',
+    'class_prefix' => 'BxMobileApps',
+
+    /**
+     * Category for language keys.
+     */
+    'language_category' => 'Mobile Apps',
+    
+    /**
+     * Installation/Uninstallation Section.
+     */
+    'install' => array(
+        'execute_sql' => 1,
+        'update_languages' => 1,
+    ),
+    'uninstall' => array (
+        'execute_sql' => 1,
+        'update_languages' => 1,
+    ),
+    'enable' => array(
+        'execute_sql' => 1,
+        'clear_db_cache' => 1,
+    ),
+    'disable' => array(
+        'execute_sql' => 1,
+        'clear_db_cache' => 1,
+    ),
+
+    /**
+     * Dependencies Section
+     */
+    'dependencies' => array(),
+);
+
+/** @} */

+ 20 - 0
modules/boonex/mobile_apps/install/installer.php

@@ -0,0 +1,20 @@
+<?php defined('BX_DOL') or die('hack attempt');
+/**
+ * Copyright (c) UNA, Inc - https://una.io
+ * MIT License - https://opensource.org/licenses/MIT
+ *
+ * @defgroup    MobileApps Mobile Apps
+ * @ingroup     UnaModules
+ *
+ * @{
+ */
+
+class BxMobileAppsInstaller extends BxDolStudioInstaller
+{
+    function __construct($aConfig)
+    {
+        parent::__construct($aConfig);
+    }
+}
+
+/** @} */

+ 18 - 0
modules/boonex/mobile_apps/install/langs/en.xml

@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources name="en" flag="gb" title="English">
+	<string name="_sys_module_mobileapps"><![CDATA[Mobile Apps]]></string>
+	<string name="_bx_mobileapps"><![CDATA[Mobile Apps]]></string>
+
+	<string name="_bx_mobileapps_setting"><![CDATA[Mobile Apps Setting]]></string>
+    <string name="_bx_mobileapps_adm_stg_cpt_type"><![CDATA[Mobile Apps]]></string>
+    <string name="_bx_mobileapps_adm_stg_cpt_category_general"><![CDATA[General]]></string>
+    <string name="_bx_mobileapps_option_qwerty"><![CDATA[Qwerty]]></string>
+
+	<string name="_bx_mobileapps_information"><![CDATA[Information]]></string>
+    <string name="_bx_mobileapps_information_block"><![CDATA[This module adds neccesary styles and functionalty for proper functionality of UNA mobile apps. Installing this module isn't enough, you need to get source code of mobile apps modify it for your needs and publish in Google and Apple stores.]]></string>
+
+    <string name="_bx_mobileapps_pull_to_refresh"><![CDATA[Pull to refresh]]></string> <!-- потяни, чтобы обновить -->
+    <string name="_bx_mobileapps_release_to_refresh"><![CDATA[Release to refresh]]></string> <!-- отпусти, чтобы обновить -->
+    <string name="_bx_mobileapps_refreshing"><![CDATA[Refreshing]]></string> <!-- обновление -->
+
+</resources>

+ 15 - 0
modules/boonex/mobile_apps/install/sql/disable.sql

@@ -0,0 +1,15 @@
+
+-- Settings
+
+DELETE FROM `top`, `toc`, `to` USING `sys_options_types` AS `top` LEFT JOIN `sys_options_categories` AS `toc` ON `top`.`id`=`toc`.`type_id` LEFT JOIN `sys_options` AS `to` ON `toc`.`id`=`to`.`category_id` WHERE `top`.`name` = 'bx_mobileapps';
+
+-- Injections
+
+DELETE FROM `sys_injections` WHERE `name` IN('bx_mobileapps');
+
+-- Alerts
+
+SET @iHandlerId := (SELECT `id` FROM `sys_alerts_handlers` WHERE `name` = 'bx_mobileapps');
+
+DELETE FROM `sys_alerts_handlers` WHERE `id`  = @iHandlerId;
+DELETE FROM `sys_alerts` WHERE `handler_id` =  @iHandlerId ;

+ 29 - 0
modules/boonex/mobile_apps/install/sql/enable.sql

@@ -0,0 +1,29 @@
+
+-- Settings
+
+SET @iTypeOrder = (SELECT MAX(`order`) FROM `sys_options_types` WHERE `group` = 'modules');
+INSERT INTO `sys_options_types` (`group`, `name`, `caption`, `icon`, `order`) VALUES 
+('modules', 'bx_mobileapps', '_bx_mobileapps_adm_stg_cpt_type', 'bx_mobileapps@modules/boonex/mobile_apps/|std-icon.svg', IF(NOT ISNULL(@iTypeOrder), @iTypeOrder + 1, 1));
+SET @iTypeId = LAST_INSERT_ID();
+
+INSERT INTO `sys_options_categories` (`type_id`, `name`, `caption`, `order` )  
+VALUES (@iTypeId, 'bx_mobileapps_general', '_bx_mobileapps_adm_stg_cpt_category_general', 1);
+SET @iCategId = LAST_INSERT_ID();
+
+INSERT INTO `sys_options` (`name`, `value`, `category_id`, `caption`, `type`, `extra`, `check`, `check_error`, `order`) VALUES
+('bx_mobileapps_option_qwerty', '123', @iCategId, '_bx_mobileapps_option_qwerty', 'digit', '', '', '', 10);
+
+-- Injections
+
+INSERT INTO `sys_injections`(`name`, `page_index`, `key`, `type`, `data`, `replace`, `active`) VALUES
+('bx_mobileapps', 0, 'injection_head', 'service', 'a:2:{s:6:"module";s:13:"bx_mobileapps";s:6:"method";s:9:"injection";}', 0, 1);
+
+-- Alerts
+
+INSERT INTO `sys_alerts_handlers` SET `name` = 'bx_mobileapps', `class` = 'BxMobileAppsAlerts', `file` = 'modules/boonex/mobile_apps/classes/BxMobileAppsAlerts.php';
+
+SET @iHandlerId = LAST_INSERT_ID();
+
+INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
+('system', 'page_output', @iHandlerId);
+

+ 15 - 0
modules/boonex/mobile_apps/install/sql/install.sql

@@ -0,0 +1,15 @@
+
+
+-- Studio page and widget
+
+INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
+(3, 'bx_mobileapps', '_bx_mobileapps', '_bx_mobileapps', 'bx_mobileapps@modules/boonex/mobile_apps/|std-icon.svg');
+SET @iPageId = LAST_INSERT_ID();
+
+SET @iParentPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name` = 'home');
+SET @iParentPageOrder = (SELECT MAX(`order`) FROM `sys_std_pages_widgets` WHERE `page_id` = @iParentPageId);
+INSERT INTO `sys_std_widgets` (`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
+(@iPageId, 'bx_mobileapps', '{url_studio}module.php?name=bx_mobileapps', '', 'bx_mobileapps@modules/boonex/mobile_apps/|std-icon.svg', '_bx_mobileapps', '', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:11:"get_actions";s:6:"params";a:0:{}s:5:"class";s:18:"TemplStudioModules";}');
+INSERT INTO `sys_std_pages_widgets` (`page_id`, `widget_id`, `order`) VALUES
+(@iParentPageId, LAST_INSERT_ID(), IF(ISNULL(@iParentPageOrder), 1, @iParentPageOrder + 1));
+

+ 7 - 0
modules/boonex/mobile_apps/install/sql/uninstall.sql

@@ -0,0 +1,7 @@
+
+-- Studio page and widget
+
+DELETE FROM `tp`, `tw`, `tpw`
+USING `sys_std_pages` AS `tp`, `sys_std_widgets` AS `tw`, `sys_std_pages_widgets` AS `tpw`
+WHERE `tp`.`id` = `tw`.`page_id` AND `tw`.`id` = `tpw`.`widget_id` AND `tp`.`name` = 'bx_mobileapps';
+

+ 0 - 0
plugins_public/pulltorefresh.min.js → modules/boonex/mobile_apps/js/pulltorefresh.min.js


+ 20 - 0
modules/boonex/mobile_apps/request.php

@@ -0,0 +1,20 @@
+<?php
+/**
+ * Copyright (c) UNA, Inc - https://una.io
+ * MIT License - https://opensource.org/licenses/MIT
+ *
+ * @defgroup    MobileApps Mobile Apps
+ * @ingroup     UnaModules
+ *
+ * @{
+ */
+
+check_logged();
+
+if ( empty($aRequest) || empty($aRequest[0]) ) {
+    BxDolRequest::processAsFile($aModule, $aRequest);
+} else {
+    BxDolRequest::processAsAction($aModule, $aRequest);
+}
+
+/** @} */

+ 26 - 0
modules/boonex/mobile_apps/template/images/icons/std-icon.svg

@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="606px" height="606px" viewBox="0 0 606 606" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <title>Mobile Apps</title>
+    <defs>
+        <linearGradient id="linearGradient-1" y2="100%" x2="50%" y1="0%" x1="50%">
+            <stop offset="0%" stop-opacity="0.2" stop-color="#FFFFFF"/>
+            <stop offset="100%" stop-opacity="0.13887" stop-color="#000000"/>
+        </linearGradient>    
+        <path d="M552.268958,552.268958 C600,504.537813 600,431.458333 600,300 C600,168.541667 600,95.4621875 552.268958,47.7310417 C504.537813,0 431.458333,0 300,0 C168.541667,0 95.4621875,0 47.7310417,47.7310417 C0,95.4621875 0,168.541667 0,300 C0,431.458333 0,504.537813 47.7310417,552.268958 C95.4621875,600 168.541667,600 300,600 C431.458333,600 504.537813,600 552.268958,552.268958 Z" id="path-2"></path>
+    </defs>
+    <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g transform="translate(3.000000, 3.000000)">
+            <g id="Squircle2-Copy-6">
+                <g id="Shape">
+                    <use fill="#FF4D63" xlink:href="#path-2"></use>
+                    <use stroke="#000000" stroke-width="4.04" fill="url(#linearGradient-1)" xlink:href="#path-2"></use>
+                </g>
+            </g>
+            <g transform="translate(172.000000, 96.000000) scale(0.8, 0.8)" fill="#FFFFFF">
+
+<path fill="#fff" d="M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm112-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v312z"></path>
+
+            </g>
+        </g>
+    </g>
+</svg>

+ 3 - 1
template/mobile_apps_js.html → modules/boonex/mobile_apps/template/mobile_apps_js.html

@@ -25,7 +25,6 @@
     }
     }
 
 
     var sMsg = JSON.stringify(__msg__);
     var sMsg = JSON.stringify(__msg__);
-    console.log(sMsg);
     if ('undefined' !== typeof(window.ReactNativeWebView))
     if ('undefined' !== typeof(window.ReactNativeWebView))
         window.ReactNativeWebView.postMessage(sMsg);
         window.ReactNativeWebView.postMessage(sMsg);
     else
     else
@@ -33,6 +32,9 @@
 
 
     $(document).ready(function () {
     $(document).ready(function () {
         PullToRefresh.init({
         PullToRefresh.init({
+            instructionsPullToRefresh: '__txt_pull_to_refresh__',
+            instructionsReleaseToRefresh: '__txt_release_to_refresh__',
+            instructionsRefreshing: '__txt_refreshing__',
             onRefresh() {
             onRefresh() {
                 window.location.reload();
                 window.location.reload();
             },
             },

+ 0 - 0
template/mobile_apps_styles.html → modules/boonex/mobile_apps/template/mobile_apps_styles.html


+ 0 - 17
modules/boonex/ocean/data/template/system/scripts/BxTemplServiceMobileApps.php

@@ -1,17 +0,0 @@
-<?php defined('BX_DOL') or die('hack attempt');
-/**
- * Copyright (c) UNA, Inc - https://una.io
- * MIT License - https://opensource.org/licenses/MIT
- *
- * @defgroup    UnaTemplate UNA Template Classes
- * @{
- */
-
-/**
- * @see BxBaseServiceMobileApps
- */
-class BxTemplServiceMobileApps extends BxBaseServiceMobileApps
-{
-}
-
-/** @} */

+ 0 - 17
modules/boonex/protean/data/template/system/scripts/BxTemplServiceMobileApps.php

@@ -1,17 +0,0 @@
-<?php defined('BX_DOL') or die('hack attempt');
-/**
- * Copyright (c) UNA, Inc - https://una.io
- * MIT License - https://opensource.org/licenses/MIT
- *
- * @defgroup    UnaTemplate UNA Template Classes
- * @{
- */
-
-/**
- * @see BxBaseServiceMobileApps
- */
-class BxTemplServiceMobileApps extends BxBaseServiceMobileApps
-{
-}
-
-/** @} */