Commit 97c53972 authored by Tristan Cavelier's avatar Tristan Cavelier

Components moved to src/

parent 8bfa00c7
...@@ -28,7 +28,7 @@ module.exports = function(grunt) { ...@@ -28,7 +28,7 @@ module.exports = function(grunt) {
files: [] files: []
}, },
lint: { lint: {
files: ['grunt.js','../src/**/*.js'] files: ['grunt.js','../src/js/**/*.js']
}, },
watch: { watch: {
files: '<config:lint.files>', files: '<config:lint.files>',
......
...@@ -48,6 +48,6 @@ ...@@ -48,6 +48,6 @@
</div> </div>
</div> </div>
<script type="text/javascript" src="src/officejs.js"></script> <script type="text/javascript" src="src/js/officejs.js"></script>
</body> </body>
</html> </html>
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////
OfficeJS.system.component_folder_path = 'src/component';
OfficeJS.system.preferences = {}; OfficeJS.system.preferences = {};
OfficeJS.system.applications = {}; OfficeJS.system.applications = {};
OfficeJS.system.mime = {}; OfficeJS.system.mime = {};
...@@ -25,7 +26,8 @@ ...@@ -25,7 +26,8 @@
// Top Nav Bar // // Top Nav Bar //
OfficeJS.system.applications['top_nav_bar'] = { OfficeJS.system.applications['top_nav_bar'] = {
name: 'top_nav_bar', name: 'top_nav_bar',
componentpath: 'component/top_nav_bar.html', componentpath: OfficeJS.system.component_folder_path +
'/top_nav_bar.html',
gadgetid: 'page-top_nav_bar', gadgetid: 'page-top_nav_bar',
varname: 'OfficeJS_top_nav_bar', varname: 'OfficeJS_top_nav_bar',
api: { api: {
...@@ -85,7 +87,8 @@ ...@@ -85,7 +87,8 @@
// Left Nav Bar // // Left Nav Bar //
OfficeJS.system.applications['left_nav_bar'] = { OfficeJS.system.applications['left_nav_bar'] = {
name: 'left_nav_bar', name: 'left_nav_bar',
componentpath: 'component/left_nav_bar.html', componentpath: OfficeJS.system.component_folder_path +
'/left_nav_bar.html',
gadgetid: 'page-left_nav_bar', gadgetid: 'page-left_nav_bar',
varname: 'OfficeJS_left_nav_bar', varname: 'OfficeJS_left_nav_bar',
api: { api: {
...@@ -137,7 +140,8 @@ ...@@ -137,7 +140,8 @@
// login // // login //
OfficeJS.system.applications['login'] = { OfficeJS.system.applications['login'] = {
name: 'login', name: 'login',
componentpath: 'component/login.html', componentpath: OfficeJS.system.component_folder_path +
'/login.html',
gadgetid: 'page-content', gadgetid: 'page-content',
varname: 'OfficeJS_login', varname: 'OfficeJS_login',
api: { api: {
...@@ -161,7 +165,8 @@ ...@@ -161,7 +165,8 @@
type: 'about', type: 'about',
'class': 'viewer', 'class': 'viewer',
name: 'about', name: 'about',
componentpath: 'component/about.html', componentpath: OfficeJS.system.component_folder_path +
'/about.html',
gadgetid: 'page-content' gadgetid: 'page-content'
}; };
// End about // // End about //
...@@ -171,7 +176,8 @@ ...@@ -171,7 +176,8 @@
type: 'contact', type: 'contact',
'class': 'viewer', 'class': 'viewer',
name: 'contact', name: 'contact',
componentpath: 'component/contact.html', componentpath: OfficeJS.system.component_folder_path +
'/contact.html',
gadgetid: 'page-content' gadgetid: 'page-content'
}; };
// End contact // // End contact //
...@@ -181,7 +187,8 @@ ...@@ -181,7 +187,8 @@
type: 'html-editor', type: 'html-editor',
name: 'elrte', name: 'elrte',
'class': 'editor', 'class': 'editor',
componentpath: 'component/elrte.html', componentpath: OfficeJS.system.component_folder_path +
'/elrte.html',
gadgetid: 'page-content', gadgetid: 'page-content',
varname: 'OfficeJS_elrte', varname: 'OfficeJS_elrte',
exts: ['html'], exts: ['html'],
...@@ -264,7 +271,8 @@ ...@@ -264,7 +271,8 @@
type: 'svg-editor', type: 'svg-editor',
name: 'svg-edit', name: 'svg-edit',
'class': 'editor', 'class': 'editor',
componentpath: 'component/svg-edit.html', componentpath: OfficeJS.system.component_folder_path +
'/svg-edit.html',
gadgetid: 'page-content', gadgetid: 'page-content',
varname: 'OfficeJS_svgedit', varname: 'OfficeJS_svgedit',
exts: ['svg'], exts: ['svg'],
...@@ -339,7 +347,8 @@ ...@@ -339,7 +347,8 @@
type: 'jqs-sheet', type: 'jqs-sheet',
name: 'jquery-sheet', name: 'jquery-sheet',
'class': 'editor', 'class': 'editor',
componentpath: 'component/jquery-sheet.html', componentpath: OfficeJS.system.component_folder_path +
'/jquery-sheet.html',
gadgetid: 'page-content', gadgetid: 'page-content',
varname: 'OfficeJS_jquerysheet', varname: 'OfficeJS_jquerysheet',
exts: ['jqs'], exts: ['jqs'],
...@@ -436,7 +445,8 @@ ...@@ -436,7 +445,8 @@
title: '', title: '',
inlineMenu: OfficeJS.system.applications[ inlineMenu: OfficeJS.system.applications[
'jquery-sheet'].lib.inlineMenu($.sheet.instance), 'jquery-sheet'].lib.inlineMenu($.sheet.instance),
urlGet: 'component/newspreadsheet.html', urlGet: OfficeJS.system.component_folder_path +
'/newspreadsheet.html',
// buildSheet: true, // buildSheet: true,
editable: true, editable: true,
autoFiller: true autoFiller: true
...@@ -483,7 +493,8 @@ ...@@ -483,7 +493,8 @@
type: 'documentlister', type: 'documentlister',
name: 'slickgrid', name: 'slickgrid',
'class': 'viewer', 'class': 'viewer',
componentpath: 'component/slickgrid_document_lister.html', componentpath: OfficeJS.system.component_folder_path +
'/slickgrid_document_lister.html',
gadgetid: 'page-content', gadgetid: 'page-content',
varname: 'OfficeJS_slickgrid', varname: 'OfficeJS_slickgrid',
list_elmnt: '#slickgrid_documentlist', list_elmnt: '#slickgrid_documentlist',
...@@ -688,7 +699,8 @@ ...@@ -688,7 +699,8 @@
type: 'activities', type: 'activities',
name: 'workinprogress', name: 'workinprogress',
'class': 'viewer', 'class': 'viewer',
componentpath: 'component/workinprogress.html', componentpath: OfficeJS.system.component_folder_path +
'/workinprogress.html',
gadgetid: 'page-content', gadgetid: 'page-content',
main_elmnt: '#workinprogress_activities', main_elmnt: '#workinprogress_activities',
api: {}, api: {},
...@@ -751,7 +763,8 @@ ...@@ -751,7 +763,8 @@
type: 'conflictsolver', type: 'conflictsolver',
'class': 'editor', 'class': 'editor',
name: 'basic_conflict_solver', name: 'basic_conflict_solver',
componentpath: 'component/basic_conflict_solver.html', componentpath: OfficeJS.system.component_folder_path +
'/basic_conflict_solver.html',
gadgetid: 'page-conflict', gadgetid: 'page-conflict',
varname: 'OfficeJS_basic_conflict_solver', varname: 'OfficeJS_basic_conflict_solver',
docid_elmnt: '#basic_conflict_solver_docid', docid_elmnt: '#basic_conflict_solver_docid',
...@@ -897,7 +910,8 @@ ...@@ -897,7 +910,8 @@
// End basic conflict solver // // End basic conflict solver //
OfficeJS.system.applications['close_conflict_solver'] = { OfficeJS.system.applications['close_conflict_solver'] = {
componentpath: 'component/empty.html', componentpath: OfficeJS.system.component_folder_path +
'/empty.html',
gadgetid: 'page-conflict' gadgetid: 'page-conflict'
}; };
////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////
......
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