html folder
This commit is contained in:
+4
-3
@@ -128,7 +128,7 @@ module.exports = function (grunt) {
|
|||||||
dest: 'build/tmp/client',
|
dest: 'build/tmp/client',
|
||||||
},
|
},
|
||||||
frontendHtml: {
|
frontendHtml: {
|
||||||
src: 'frontend/html/reset.html',
|
src: 'frontend/reset.html',
|
||||||
dest: 'build/tmp/reset.html'
|
dest: 'build/tmp/reset.html'
|
||||||
},
|
},
|
||||||
frontendLib: {
|
frontendLib: {
|
||||||
@@ -148,6 +148,7 @@ module.exports = function (grunt) {
|
|||||||
'data/.data',
|
'data/.data',
|
||||||
'install/**',
|
'install/**',
|
||||||
'vendor/**',
|
'vendor/**',
|
||||||
|
'html/**',
|
||||||
'bootstrap.php',
|
'bootstrap.php',
|
||||||
'cron.php',
|
'cron.php',
|
||||||
'rebuild.php',
|
'rebuild.php',
|
||||||
@@ -212,8 +213,8 @@ module.exports = function (grunt) {
|
|||||||
},
|
},
|
||||||
files: [
|
files: [
|
||||||
{
|
{
|
||||||
src: 'frontend/html/main.html',
|
src: 'build/tmp/html/main.html',
|
||||||
dest: 'build/tmp/main.html'
|
dest: 'build/tmp/html/main.html'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -35,9 +35,9 @@ class ClientManager
|
|||||||
|
|
||||||
private $config;
|
private $config;
|
||||||
|
|
||||||
protected $mainHtmlFilePath = 'main.html';
|
protected $mainHtmlFilePath = 'html/main.html';
|
||||||
|
|
||||||
protected $htmlFilePathForDeveloperMode = 'frontend/main.html';
|
protected $htmlFilePathForDeveloperMode = 'frontend/html/main.html';
|
||||||
|
|
||||||
protected $runScript = "app.start();";
|
protected $runScript = "app.start();";
|
||||||
|
|
||||||
|
|||||||
+24
-4
@@ -2,21 +2,41 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>EspoCRM</title>
|
<title>EspoCRM</title>
|
||||||
<script type="text/javascript" src="client/espo.min.js?r=@@timestamp"></script>
|
|
||||||
<link href="{{stylesheet}}?r=@@timestamp" rel="stylesheet" id='main-stylesheet'>
|
|
||||||
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
|
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
|
||||||
<meta content="utf-8" http-equiv="encoding">
|
<meta content="utf-8" http-equiv="encoding">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||||
<meta name="description" content="EspoCRM is Open Source CRM application. Increase profitability through customer loyalty!">
|
<meta name="description" content="EspoCRM is Open Source CRM application. Increase profitability through customer loyalty!">
|
||||||
|
|
||||||
|
<script type="text/javascript" src="client/lib/jquery-2.1.4.min.js"></script>
|
||||||
|
<script type="text/javascript" src="client/lib/underscore-min.js"></script>
|
||||||
|
<script type="text/javascript" src="client/lib/backbone-min.js"></script>
|
||||||
|
<script type="text/javascript" src="client/lib/handlebars.js"></script>
|
||||||
|
<script type="text/javascript" src="client/lib/base64.js"></script>
|
||||||
|
<script type="text/javascript" src="client/lib/jquery-ui.min.js"></script>
|
||||||
|
<script type="text/javascript" src="client/lib/moment.min.js"></script>
|
||||||
|
<script type="text/javascript" src="client/lib/moment-timezone-with-data.min.js"></script>
|
||||||
|
<script type="text/javascript" src="client/lib/jquery.timepicker.min.js"></script>
|
||||||
|
<script type="text/javascript" src="client/lib/jquery.autocomplete.js"></script>
|
||||||
|
<script type="text/javascript" src="client/lib/bootstrap.min.js"></script>
|
||||||
|
<script type="text/javascript" src="client/lib/bootstrap-datepicker.js"></script>
|
||||||
|
<script type="text/javascript" src="client/lib/bull.min.js"></script>
|
||||||
|
|
||||||
|
<script type="text/javascript" src="client/src/loader.js"></script>
|
||||||
|
<script type="text/javascript" src="client/src/utils.js"></script>
|
||||||
|
<script type="text/javascript" src="client/src/exceptions.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
<link href="{{stylesheet}}" rel="stylesheet" id='main-stylesheet'>
|
||||||
|
|
||||||
<link rel="icon" href="client/img/favicon.ico" type="image/x-icon">
|
<link rel="icon" href="client/img/favicon.ico" type="image/x-icon">
|
||||||
<link rel="shortcut icon" href="client/img/favicon.ico" type="image/x-icon">
|
<link rel="shortcut icon" href="client/img/favicon.ico" type="image/x-icon">
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function () {
|
$(function () {
|
||||||
Espo.require('app', function (App) {
|
Espo.require('app', function (App) {
|
||||||
var app = new App({
|
var app = new App({
|
||||||
useCache: {{useCache}},
|
useCache: false,
|
||||||
cacheTimestamp: {{cacheTimestamp}}
|
url: '../api/v1',
|
||||||
}, function (app) {
|
}, function (app) {
|
||||||
{{runScript}}
|
{{runScript}}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
<!doctype html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>EspoCRM</title>
|
|
||||||
</head>
|
|
||||||
<script type="text/javascript">
|
|
||||||
for (var i in localStorage) {
|
|
||||||
delete localStorage[i];
|
|
||||||
}
|
|
||||||
var link = window.location.href.replace('/reset', '');
|
|
||||||
|
|
||||||
document.write('Local storage has been cleared.<br><p><a href="'+link+'">Back to CRM</a></p>');
|
|
||||||
</script>
|
|
||||||
</html>
|
|
||||||
|
|
||||||
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
delete localStorage[i];
|
delete localStorage[i];
|
||||||
}
|
}
|
||||||
var link = window.location.href.replace('/reset', '');
|
var link = window.location.href.replace('/reset', '');
|
||||||
|
|
||||||
document.write('Local storage has been cleared.<br><p><a href="'+link+'">Back to CRM</a></p>');
|
document.write('Local storage has been cleared.<br><p><a href="'+link+'">Back to CRM</a></p>');
|
||||||
</script>
|
</script>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -0,0 +1,33 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>EspoCRM</title>
|
||||||
|
<script type="text/javascript" src="client/espo.min.js?r=@@timestamp"></script>
|
||||||
|
<link href="{{stylesheet}}?r=@@timestamp" rel="stylesheet" id='main-stylesheet'>
|
||||||
|
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
|
||||||
|
<meta content="utf-8" http-equiv="encoding">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||||
|
<meta name="description" content="EspoCRM is Open Source CRM application. Increase profitability through customer loyalty!">
|
||||||
|
|
||||||
|
<link rel="icon" href="client/img/favicon.ico" type="image/x-icon">
|
||||||
|
<link rel="shortcut icon" href="client/img/favicon.ico" type="image/x-icon">
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(function () {
|
||||||
|
Espo.require('app', function (App) {
|
||||||
|
var app = new App({
|
||||||
|
useCache: {{useCache}},
|
||||||
|
cacheTimestamp: {{cacheTimestamp}}
|
||||||
|
}, function (app) {
|
||||||
|
{{runScript}}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="container content"></div>
|
||||||
|
<footer>
|
||||||
|
<p class="credit small">© 2015 <a href="http://www.espocrm.com" title="Powered by EspoCRM" alt="Visit official EspoCRM website">EspoCRM</a></p>
|
||||||
|
</footer>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user