Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
web-apps
Commits
463231ee
Commit
463231ee
authored
Nov 28, 2017
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename view view_folder
parent
4b630912
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
61 additions
and
0 deletions
+61
-0
apps/common/main/lib/view_folder
apps/common/main/lib/view_folder
+1
-0
apps/documenteditor/main/app/view_folder
apps/documenteditor/main/app/view_folder
+1
-0
apps/presentationeditor/main/app/view_folder
apps/presentationeditor/main/app/view_folder
+1
-0
apps/spreadsheeteditor/main/app/view_folder
apps/spreadsheeteditor/main/app/view_folder
+1
-0
erp5_/erp5.json
erp5_/erp5.json
+6
-0
onlyoffice.gadget.js
onlyoffice.gadget.js
+51
-0
No files found.
apps/common/main/lib/view_folder
0 → 120000
View file @
463231ee
view
\ No newline at end of file
apps/documenteditor/main/app/view_folder
0 → 120000
View file @
463231ee
view
\ No newline at end of file
apps/presentationeditor/main/app/view_folder
0 → 120000
View file @
463231ee
view
\ No newline at end of file
apps/spreadsheeteditor/main/app/view_folder
0 → 120000
View file @
463231ee
view
\ No newline at end of file
erp5_/erp5.json
View file @
463231ee
...
...
@@ -12,6 +12,12 @@
"scopes"
:
[
{
"prefix"
:
"onlyoffice/web-apps/"
,
"excluded_paths"
:
[
"apps/common/main/lib/view/"
,
"apps/documenteditor/main/app/view/"
,
"apps/presentationeditor/main/app/view/"
,
"apps/spreadsheeteditor/main/app/view/"
],
"paths"
:
[
"apps/css.js"
,
"apps/promise.js"
,
...
...
onlyoffice.gadget.js
View file @
463231ee
...
...
@@ -319,6 +319,57 @@ DocsAPI.DocEditor.version = function () {
}
}
})
.
push
(
function
()
{
return
jIO
.
util
.
ajax
({
type
:
"
GET
"
,
url
:
"
onlyoffice.gadget.appcache
"
});
})
.
push
(
undefined
,
function
(
error
)
{
return
;
})
.
push
(
function
(
response
)
{
/*configure requeryjs for rename
view and edit to view_folder and edit_folder
in dependencies
*/
if
(
!
response
)
{
return
;
}
var
text
=
response
.
target
.
responseText
,
relative_url_list
=
text
.
split
(
'
\r\n
'
),
i
,
new_url
,
old_url
,
config
=
{};
if
(
relative_url_list
.
length
===
1
)
{
relative_url_list
=
text
.
split
(
'
\n
'
);
}
if
(
relative_url_list
.
length
===
1
)
{
relative_url_list
=
text
.
split
(
'
\r
'
);
}
for
(
i
=
0
;
i
<
relative_url_list
.
length
;
i
+=
1
)
{
if
(
relative_url_list
[
i
]
!==
""
&&
relative_url_list
[
i
].
charAt
(
0
)
!==
'
#
'
&&
relative_url_list
[
i
].
charAt
(
0
)
!==
'
'
)
{
relative_url_list
[
i
].
replace
(
"
\r
"
,
""
);
new_url
=
relative_url_list
[
i
]
.
replace
(
'
onlyoffice/web-apps/apps/
'
,
''
)
.
replace
(
/
\.[^
.
]
*$/
,
''
);
old_url
=
new_url
.
replace
(
/
(
^|
\/)
view_folder
\/
/g
,
"
$1view/
"
)
.
replace
(
/
(
^|
\/)
edit_folder
\/
/g
,
"
$1edit/
"
);
if
(
old_url
!==
new_url
)
{
config
[
old_url
]
=
[
new_url
,
old_url
];
}
}
}
require
.
config
({
paths
:
config
});
})
.
push
(
function
()
{
var
app_url
,
sdk_deps
=
[
"
promise!sdk_async_loader
"
];
if
(
!
g
.
props
.
value_zip_storage
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment