Commit dece3767 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

add new menu index.html + app.js

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55770 954022d7-b5bf-4e40-9824-e11837661b57
parent 86038795
/**
* app.js
*
* Created by Maxim Kadushkin on 21 March 2014
* Copyright (c) 2014 Ascensio System SIA. All rights reserved.
*
*/
'use strict';
require.config({
// The shim config allows us to configure dependencies for
// scripts that do not call define() to register a module
baseUrl: '../../',
paths: {
jquery : '../vendor/jquery/jquery',
underscore : '../vendor/underscore/underscore',
backbone : '../vendor/backbone/backbone',
bootstrap : '../vendor/bootstrap/dist/js/bootstrap',
text : '../vendor/requirejs-text/text',
perfectscrollbar: '../vendor/perfect-scrollbar/src/perfect-scrollbar',
jmousewheel : '../vendor/perfect-scrollbar/src/jquery.mousewheel',
xregexp : '../vendor/xregexp/xregexp-all-min',
sockjs : '../vendor/sockjs/sockjs.min',
api : 'api/documents/api',
core : 'common/main/lib/core/application',
notification : 'common/main/lib/core/NotificationCenter',
keymaster : 'common/main/lib/core/keymaster',
tip : 'common/main/lib/util/Tip',
analytics : 'common/Analytics',
gateway : 'common/Gateway',
locale : 'common/locale',
irregularstack : 'common/IrregularStack'
},
shim: {
underscore: {
exports: '_'
},
backbone: {
deps: [
'underscore',
'jquery'
],
exports: 'Backbone'
},
bootstrap: {
deps: [
'jquery'
]
},
perfectscrollbar: {
deps: [
'jmousewheel'
]
},
notification: {
deps: [
'backbone'
]
},
core: {
deps: [
'backbone',
'notification',
'irregularstack'
]
},
gateway: {
deps: [
'jquery'
]
},
analytics: {
deps: [
'jquery'
]
}
}
});
require([
'backbone',
'bootstrap',
'core',
'api',
'analytics',
'gateway',
'locale'
], function (Backbone, Bootstrap, Core) {
Backbone.history.start();
/**
* Application instance with SSE namespace defined
*/
var app = new Backbone.Application({
nameSpace: 'SSE',
autoCreate: false,
controllers : [
'Viewport',
'DocumentHolder',
'CellEditor',
'FormulaDialog',
'Print',
'Toolbar',
'Statusbar',
'RightMenu',
'LeftMenu',
'Main',
'Common.Controllers.Fonts',
'Common.Controllers.Chat',
'Common.Controllers.Comments'
]
});
Common.Locale.apply();
require([
'spreadsheeteditor/main/app/controller/Viewport',
'spreadsheeteditor/main/app/controller/DocumentHolder',
'spreadsheeteditor/main/app/controller/CellEditor',
'spreadsheeteditor/main/app/controller/Toolbar',
'spreadsheeteditor/main/app/controller/Statusbar',
'spreadsheeteditor/main/app/controller/RightMenu',
'spreadsheeteditor/main/app/controller/LeftMenu',
'spreadsheeteditor/main/app/controller/Main',
'spreadsheeteditor/main/app/controller/Print',
'spreadsheeteditor/main/app/view/ParagraphSettings',
'spreadsheeteditor/main/app/view/ImageSettings',
'spreadsheeteditor/main/app/view/ChartSettings',
'spreadsheeteditor/main/app/view/ShapeSettings',
'common/main/lib/util/utils',
'common/main/lib/controller/Fonts',
'common/main/lib/controller/Comments',
'common/main/lib/controller/Chat'
], function() {
app.start();
});
});
\ No newline at end of file
......@@ -4,35 +4,13 @@
<title>TeamLab Document Editor</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=IE8"/>
<meta name="description" content="" />
<meta name="keywords" content="" />
<link rel="icon" href="resources/img/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="../../../3rdparty/extjs/resources/css/ext-all.css">
<link rel="stylesheet" type="text/css" href="../../common/main/resources/css/asc.css">
<link rel="stylesheet" type="text/css" href="../../common/main/resources/css/header.css">
<link rel="stylesheet" type="text/css" href="../../common/main/resources/css/participantspanel.css">
<link rel="stylesheet" type="text/css" href="../../common/main/resources/css/searchfield.css">
<link rel="stylesheet" type="text/css" href="../../common/main/resources/css/searchdialog.css">
<link rel="stylesheet" type="text/css" href="../../common/main/resources/css/about.css">
<link rel="stylesheet" type="text/css" href="resources/css/ss-main-colors.css">
<link rel="stylesheet" type="text/css" href="resources/css/header.css">
<link rel="stylesheet" type="text/css" href="resources/css/document-holder.css">
<link rel="stylesheet" type="text/css" href="resources/css/document-statusinfo.css">
<link rel="stylesheet" type="text/css" href="resources/css/main-menu.css">
<link rel="stylesheet" type="text/css" href="resources/css/file.css">
<link rel="stylesheet" type="text/css" href="resources/css/file-create-new.css">
<link rel="stylesheet" type="text/css" href="resources/css/file-open-recent.css">
<link rel="stylesheet" type="text/css" href="resources/css/tab-bar.css">
<link rel="stylesheet" type="text/css" href="resources/css/general.css">
<link rel="stylesheet" type="text/css" href="../../common/main/resources/css/jquery.jscrollpane.css">
<link rel="stylesheet" type="text/css" href="../../common/main/resources/css/load-mask.css">
<link rel="stylesheet" type="text/css" href="../../common/main/resources/css/chat-panel.css">
<!--<link rel="stylesheet" type="text/css" href="../../../sdk/Excel/css/main.css"/>-->
<link rel="stylesheet" type="text/css" href="../../../../OfficeWeb/Excel/css/main.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<link rel="stylesheet" type="text/css" href="../../../sdk/Excel/css/main.css"/>
<!-- debug begin -->
<link rel="stylesheet/less" type="text/css" href="resources/less/app.less" />
<!-- debug end -->
<!-- splash -->
......@@ -85,34 +63,19 @@
</div>
</div>
<!-- 3rdparty -->
<script type="text/javascript" src="../../../3rdparty/extjs/ext-debug.js"></script>
<script type="text/javascript" src="../../../3rdparty/jquery/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="../../../3rdparty/jquery/jscrollpane/jquery.jscrollpane.js"></script>
<script type="text/javascript" src="../../../3rdparty/xregexp/xregexp-all-min.js"></script>
<script type="text/javascript" src="../../../3rdparty/sockjs/sockjs-0.3.min.js"></script>
<script type="text/javascript" src="../../../3rdparty/underscore/underscore-min.js"></script>
<script type="text/javascript" src="../../../../OfficeWeb/Common/3rdparty/perfect-scrollbar/jquery.mousewheel.js"></script>
<script type="text/javascript" src="../../../../OfficeWeb/Common/3rdparty/perfect-scrollbar/perfect-scrollbar.js"></script>
<!-- application -->
<script type="text/javascript" src="../../common/Analytics.js"></script>
<script type="text/javascript" src="../../common/Gateway.js"></script>
<script type="text/javascript" src="../../common/IrregularStack.js"></script>
<script type="text/javascript" src="../../common/main/loader.js"></script>
<script type="text/javascript" src="../../common/main/lib/component/util/MetricSettings.js"></script>
<script type="text/javascript" src="app.js"></script>
<script type="text/javascript" src="restrictions.js"></script>
<script type="text/javascript" src="environment.js"></script>
<script type="text/javascript" src="../../common/locale.js"></script>
<!-- sdk -->
<div id="viewport"></div>
<!-- sdk -->
<script type="text/javascript" src="../../../sdk/Common/docscoapisettings.js"></script>
<script type="text/javascript" src="../../../sdk/Common/AllFonts.js"></script>
<!--<script type="text/javascript" src="../../../sdk/Excel/sdk-all.js"></script>-->
<script type="text/javascript" src="../../../vendor/jquery/jquery.min.js"></script>
<script type="text/javascript" src="../../../vendor/xregexp/xregexp-all-min.js"></script>
<script type="text/javascript" src="../../../vendor/sockjs/sockjs.min.js"></script>
<script type="text/javascript" src="../../../vendor/underscore/underscore-min.js"></script>
<script type="text/css" src="../../../vendor/perfect-scrollbar/src/perfect-scrollbar.css"></script>
<script type="text/javascript" src="../../../vendor/perfect-scrollbar/src/jquery.mousewheel.js"></script>
<script type="text/javascript" src="../../../vendor/perfect-scrollbar/src/perfect-scrollbar.js"></script>
<script type="text/javascript">
window.g_debug_mode = true;
......@@ -245,6 +208,26 @@
<!--<script src="../../../../OfficeWeb/Word/Editor/CollaborativeEditing.js"></script>-->
<script type="text/javascript" src="../../../../OfficeWeb/Word/Math/mathTypes.js"></script>
<!--<script type="text/javascript" src="Math/print.js"></script>-->
<script type="text/javascript" src="../../../../OfficeWeb/Word/Math/mathText.js"></script>
<script type="text/javascript" src="../../../../OfficeWeb/Word/Math/mathContent.js"></script>
<!--<script type="text/javascript" src="Math/actions.js"></script>-->
<script type="text/javascript" src="../../../../OfficeWeb/Word/Math/base.js"></script>
<!--<script type="text/javascript" src="Math/subBase.js"></script>-->
<script type="text/javascript" src="../../../../OfficeWeb/Word/Math/fraction.js"></script>
<script type="text/javascript" src="../../../../OfficeWeb/Word/Math/degree.js"></script>
<script type="text/javascript" src="../../../../OfficeWeb/Word/Math/matrix.js"></script>
<script type="text/javascript" src="../../../../OfficeWeb/Word/Math/limit.js"></script>
<script type="text/javascript" src="../../../../OfficeWeb/Word/Math/nary.js"></script>
<script type="text/javascript" src="../../../../OfficeWeb/Word/Math/radical.js"></script>
<script type="text/javascript" src="../../../../OfficeWeb/Word/Math/operators.js"></script>
<script type="text/javascript" src="../../../../OfficeWeb/Word/Math/accent.js"></script>
<!--<script type="text/javascript" src="Math/drawingUnion.js"></script>-->
<script type="text/javascript" src="../../../../OfficeWeb/Word/Math/borderBox.js"></script>
<!--script type="text/javascript" src="Math/test_composition.js"></script>-->
<script src="../../../../OfficeWeb/Excel/model/DrawingObjects/DrawingDocument.js"></script>
<script src="../../../../OfficeWeb/Excel/model/DrawingObjects/GlobalLoaders.js"></script>
......@@ -298,5 +281,15 @@
<script src="../../../../OfficeWeb/Word/Math/test_composition.js"></script>
<script src="../../../../OfficeWeb/Excel/model/DrawingObjects/GlobalCounters.js"></script>
<!-- debug begin -->
<script type="text/javascript">var less=less||{};less.env='development';</script>
<script src="../../../vendor/less/dist/less-1.5.1.js" type="text/javascript"></script>
<!-- debug end -->
<!-- application -->
<script type="text/javascript" src="../../../sdk/Common/docscoapisettings.js"></script>
<script data-main="app" src="../../../vendor/requirejs/require.js"></script>
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment