Commit 4dcfeb0f 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@55771 954022d7-b5bf-4e40-9824-e11837661b57
parent dece3767
/**
* app.js
*
* Created by Alexander Yuzhin on 12/27/13
* Copyright (c) 2013 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'
},
// urlArgs: "_dc=" + (new Date()).getTime(), // debug only, be sure to remove it before deploying your code.
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 DE namespace defined
*/
var app = new Backbone.Application({
nameSpace: 'DE',
autoCreate: false,
controllers : [
'Viewport',
'DocumentHolder',
'Toolbar',
'Statusbar',
'RightMenu',
'LeftMenu',
'Main',
'Common.Controllers.Fonts'
/** proprietary begin **/
,'Common.Controllers.Chat',
'Common.Controllers.Comments',
'Common.Controllers.ExternalDiagramEditor'
/** proprietary end **/
]
});
Common.Locale.apply();
require([
'documenteditor/main/app/controller/Viewport',
'documenteditor/main/app/controller/DocumentHolder',
'documenteditor/main/app/controller/Toolbar',
'documenteditor/main/app/controller/Statusbar',
'documenteditor/main/app/controller/RightMenu',
'documenteditor/main/app/controller/LeftMenu',
'documenteditor/main/app/controller/Main',
'documenteditor/main/app/view/ParagraphSettings',
'documenteditor/main/app/view/HeaderFooterSettings',
'documenteditor/main/app/view/ImageSettings',
'documenteditor/main/app/view/TableSettings',
/** proprietary begin **/
'documenteditor/main/app/view/ChartSettings',
/** proprietary end **/
'documenteditor/main/app/view/ShapeSettings',
'common/main/lib/util/utils',
'common/main/lib/controller/Fonts'
/** proprietary begin **/
,'common/main/lib/controller/Comments',
'common/main/lib/controller/Chat',
'common/main/lib/controller/ExternalDiagramEditor'
/** proprietary end **/
], function() {
app.start();
});
});
\ No newline at end of file
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<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/header.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="../../common/main/resources/css/jquery.jscrollpane.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/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/de-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">
<title>TeamLab Documents</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="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<link rel="icon" href="resources/img/favicon.ico" type="image/x-icon">
<!-- debug begin -->
<link rel="stylesheet/less" type="text/css" href="resources/less/app.less" />
<!-- debug end -->
<!-- splash -->
......@@ -72,7 +53,6 @@
</style>
</head>
<body>
<div id="loading-mask" class="loadmask">
<div class="loadmask-body" align="center">
<div class="loadmask-logo">
......@@ -81,22 +61,24 @@
</div>
</div>
<!-- 3rdparty -->
<div id="viewport"></div>
<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/mousewheel/jquery.mousewheel.js"></script>
<script type="text/javascript" src="../../../3rdparty/jquery/jscrollpane/jquery.jscrollpane.js"></script>
<script type="text/javascript" src="../../../3rdparty/sockjs/sockjs-0.3.min.js"></script>
<script type="text/javascript" src="../../../3rdparty/xregexp/xregexp-all-min.js"></script>
<script type="text/javascript" src="../../../3rdparty/underscore/underscore-min.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 -->
<!-- sdk -->
<script type="text/javascript" src="../../../sdk/Common/docscoapisettings.js"></script>
<!--<script type="text/javascript" src="../../../sdk/Word/sdk-all.js"></script>-->
<!-- 3rdparty -->
<script type="text/javascript" src="../../../../Application/3rdparty/jquery/jquery-1.7.1.js"></script>
<script type="text/javascript" src="../../../../OfficeWeb/Common/3rdparty/sockjs/sockjs-0.3.min.js"></script>
<script type="text/javascript" src="../../../../OfficeWeb/Common/3rdparty/xregexp/xregexp-all-min.js"></script>
<script type="text/javascript" src="../../../../OfficeWeb/Common/3rdparty/underscore/underscore-min.js"></script>
<!-- application -->
<!-- sdk -->
<script type="text/javascript" src="../../../../OfficeWeb/Common/docscoapisettings.js"></script>
<script type="text/javascript" src="../../../../OfficeWeb/Common/AllFonts.js"></script>
<!-- -->
<script type="text/javascript" src="../../../../OfficeWeb/Common/browser.js"></script>
<script type="text/javascript" src="../../../../OfficeWeb/Common/editorscommon.js"></script>
<script type="text/javascript" src="../../../../OfficeWeb/Common/downloaderfiles.js"></script>
......@@ -258,16 +240,8 @@
<script type="text/javascript" src="../../../../OfficeWeb/Word/Math/borderBox.js"></script>
<script type="text/javascript" src="../../../../OfficeWeb/Word/Math/test_composition.js"></script>
<script type="text/javascript" src="../../api/documents/api.js"></script>
<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>
<!-- application -->
<script type="text/javascript" src="../../../sdk/Common/docscoapisettings.js"></script>
<script data-main="app" src="../../../vendor/requirejs/require.js"></script>
</body>
</html>
\ No newline at end of file
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