fixed assets path

main
Robert 3 years ago
parent cabc87fce2
commit 7c22efcdb0
  1. 2
      .gitignore
  2. 3
      public/assets/mockup/css/style.css
  3. 9
      public/assets/mockup/js/testing.js
  4. 2
      public/assets/mockup/js/tts.min.js
  5. 1
      public/assets/mockup/js/tts.min.js
  6. 141
      src/configs/mockup/loadall.php
  7. 3
      src/configs/mockup/on_html.php
  8. 10
      src/mockup/views/default/app/footer.php

2
.gitignore vendored

@ -1,3 +1,5 @@
/src/logs/ /src/logs/
tts_framework/ tts_framework/
/src/tmp/ /src/tmp/
public/assets/mockup/js/tts.min.js
public/assets/mockup/js/tts.min.map

@ -0,0 +1,3 @@
h2 {
color: red;
}

@ -1 +1,8 @@
//alert('hi');
tts.Router.get('Testing/:filter?', function(req) {
//console.log(req);
tts.getAsset({name: 'testing.js', path: '/assets/mockup/ajax/'});
});
tts(function() {
});

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
/var/www/frames/tts_js/assets/dist/tts.min.js

@ -2,74 +2,75 @@
/* /*
* This file is Auto-Generated, Do NOT Modify!!! Please Delete this file to update configuration! * This file is Auto-Generated, Do NOT Modify!!! Please Delete this file to update configuration!
*/ */
/* Contents of : on_email.php */ /* Contents of : on_email.php */
\tts\main\configure::set('email', array( \tts\main\configure::set('email', array(
// 'host' => '', // SMTP Hosts - seperated by ; // 'host' => '', // SMTP Hosts - seperated by ;
// 'username' => '', // 'username' => '',
// 'password' => '', // 'password' => '',
'send_emails' => false, // Enable emails 'send_emails' => false, // Enable emails
'email_on_errors' => false, 'email_on_errors' => false,
'admin_emails' => array('Bob'=>'bob@localost', 'Chris'=>'chris@localhost'), // Email Admins on error 'admin_emails' => array('Bob'=>'bob@localost', 'Chris'=>'chris@localhost'), // Email Admins on error
)); ));
/* Contents of : on_html.php */ /* Contents of : on_html.php */
\tts\main\configure::set('html', array( \tts\main\configure::set('html', array(
'title' => 'In Mockup...', 'title' => 'In Mockup...',
'author' => 'Robert Strutts', 'author' => 'Robert Strutts',
'javascript' => array('js/error_handler.js'=>'tts', 'js/store.js'=>'tts'), //'js/analytics.js'=>'project' 'javascript' => array('js/tts.min.js'=>'project'), //'js/analytics.js'=>'project'
'robots' => 'noindex', 'css' => array('css/style.css'=>['path'=>'project', 'media'=>'all']),
'keywords' => '', 'robots' => 'noindex',
'description' => '', 'keywords' => '',
)); 'description' => '',
/* Contents of : on_http_request.php */ ));
/* Contents of : on_http_request.php */
\tts\main\configure::set('http_request', array(
'use' => 'sockets', // curl or sockets \tts\main\configure::set('http_request', array(
)); 'use' => 'sockets', // curl or sockets
));
/* Contents of : on_security.php */
/* Contents of : on_security.php */
\tts\main\configure::set('security', array(
'show_dumps' => true, \tts\main\configure::set('security', array(
'key' => 'y8+HSfrO8wFknxND8SA2mQZBoYpPDeK+2FmIzdxFU9EmTsZ2rdo7GED0nt4DsKoHmbiBBIoNTMAfl+eEMv6qeA==', 'show_dumps' => true,
'main_salt' => 'e6fde23484881a29f7b6c6459456f3e1', 'key' => 'y8+HSfrO8wFknxND8SA2mQZBoYpPDeK+2FmIzdxFU9EmTsZ2rdo7GED0nt4DsKoHmbiBBIoNTMAfl+eEMv6qeA==',
'csrf_security_level' => 'high', // Stop Attacks at what cost?? 'main_salt' => 'e6fde23484881a29f7b6c6459456f3e1',
'retries_allowed_before_throttling' => 3, // Reties attempts allowed for login, before it throttles it... 'csrf_security_level' => 'high', // Stop Attacks at what cost??
'throttling_login_seconds' => 20, // Seconds to deny more login attempts 'retries_allowed_before_throttling' => 3, // Reties attempts allowed for login, before it throttles it...
'password_hash' => PASSWORD_BCRYPT, 'throttling_login_seconds' => 20, // Seconds to deny more login attempts
'password_hash_options' => ['cost' => 10], // Default=10. This is a good baseline cost, but you may want to consider increasing it depending on your hardware. 'password_hash' => PASSWORD_BCRYPT,
)); 'password_hash_options' => ['cost' => 10], // Default=10. This is a good baseline cost, but you may want to consider increasing it depending on your hardware.
));
/* Contents of : on_sessions.php */
/* Contents of : on_sessions.php */
\tts\main\configure::set('sessions', array(
'engine' => 'php', // php, db \tts\main\configure::set('sessions', array(
'type' => 'none', // Session Type: files, database, or cache 'engine' => 'php', // php, db
'session_variable' => 'ses_app_aaa_', // set session variable name for project 'type' => 'none', // Session Type: files, database, or cache
'session_name' => 'aaa_sys_342_', // More secure then PHPSESSID 'session_variable' => 'ses_app_aaa_', // set session variable name for project
'session_table' => false, // DB PHP Session Table name, false = USE FILES 'session_name' => 'aaa_sys_342_', // More secure then PHPSESSID
'session_security_level' => 'blaze', // Faster Reqests keep at: blaze 'session_table' => false, // DB PHP Session Table name, false = USE FILES
'session_key' => '6cb0d56f2345917624f2c5473e4d32cd', 'session_security_level' => 'blaze', // Faster Reqests keep at: blaze
)); 'session_key' => '6cb0d56f2345917624f2c5473e4d32cd',
/* Contents of : on_tts.php */ ));
/* Contents of : on_tts.php */
\tts\main\configure::set_key('important', 'private_ip_as_local', false);
\tts\main\configure::set_key('important', 'private_ip_as_local', false);
\tts\main\configure::set('tts', array(
'error_page' => 'tts', // or project \tts\main\configure::set('tts', array(
'404_page' => 'tts', // or project 'error_page' => 'tts', // or project
'ui_kit' => 'tts', // or project '404_page' => 'tts', // or project
'site_name' => 'Testing', 'ui_kit' => 'tts', // or project
'short_url' => true, 'site_name' => 'Testing',
'default_project' => 'home', 'short_url' => true,
'check_HTML_tags' => true, 'default_project' => 'home',
'live' => false, //(! \tts\security::is_localhost() ) // Is this Production?? 'check_HTML_tags' => true,
)); 'live' => false, //(! \tts\security::is_localhost() ) // Is this Production??
));
/* Contents of : on_view_mode.php */
/* Contents of : on_view_mode.php */
\tts\main\configure::set('view_mode', array(
'default_paths' => array('json', 'common', 'flexbox', 'default') \tts\main\configure::set('view_mode', array(
'default_paths' => array('json', 'common', 'flexbox', 'default')
)); ));

@ -3,7 +3,8 @@
\tts\main\configure::set('html', array( \tts\main\configure::set('html', array(
'title' => 'In Mockup...', 'title' => 'In Mockup...',
'author' => 'Robert Strutts', 'author' => 'Robert Strutts',
'javascript' => array('js/error_handler.js'=>'tts', 'js/store.js'=>'tts'), //'js/analytics.js'=>'project' 'javascript' => array('js/tts.min.js'=>'project'), //'js/analytics.js'=>'project'
'css' => array('css/style.css'=>'project'),
'robots' => 'noindex', 'robots' => 'noindex',
'keywords' => '', 'keywords' => '',
'description' => '', 'description' => '',

@ -1,5 +1,5 @@
<?php <?php
$AJAX_FOLDER = \tts\site_helper::get_project() ."ajax"; $AJAX_FOLDER = "ajax";
const JS_CDN_FILES = [ const JS_CDN_FILES = [
"https://cdn.metroui.org.ua/v4/js/metro.min.js" => [], "https://cdn.metroui.org.ua/v4/js/metro.min.js" => [],
@ -9,12 +9,12 @@ const JS_FILES = [
"js/testing.js" => [], "js/testing.js" => [],
]; ];
$JS = "tts_set_project(\"" . rtrim(\tts\site_helper::get_project(), '/') ."\");" . PHP_EOL; /* Set JS Error Handler */ ///$JS = "tts_set_project(\"" . rtrim(\tts\site_helper::get_project(), '/') ."\");" . PHP_EOL; /* Set JS Error Handler */
$JS .= "var ajax_folder = \"" . $AJAX_FOLDER . "\"" . PHP_EOL; /* assets AJAX foldername and path */ $JS = "var ajax_folder = \"" . $AJAX_FOLDER . "\"" . PHP_EOL; /* assets AJAX foldername and path */
$JS .= "var debug = 1; /* Debug mode 1 = true */" . PHP_EOL; $JS .= "var debug = 1; /* Debug mode 1 = true */" . PHP_EOL;
$JS .= "function debug_print(msg) { if (debug === 1) console.log(msg); }" . PHP_EOL; $JS .= "function debug_print(msg) { if (debug === 1) console.log(msg); }" . PHP_EOL;
$JS .= \tts\assets::get_ajax_files(PROJECT_ASSETS_DIR . $AJAX_FOLDER . "/"); $JS .= \tts\assets::get_ajax_files(PROJECT_ASSETS_DIR . '/' . $AJAX_FOLDER . "/");
$html->add_to_javascript($JS); $html->add_to_javascript($JS);
$html->set_assets_from_array(JS_CDN_FILES, 'main_js', 'cdn'); $html->set_assets_from_array(JS_CDN_FILES, 'main_js', 'cdn');
//$html->set_assets_from_array(JS_FILES, 'main_js'); $html->set_assets_from_array(JS_FILES, 'js', 'project');
Loading…
Cancel
Save