Skip to content

Commit

Permalink
Merge pull request '[ve] Rename draw -> visio' (#156) from feature/dr…
Browse files Browse the repository at this point in the history
…aw-rename into release/v8.3.0
  • Loading branch information
Julia Radzhabova committed Dec 4, 2024
2 parents bab43a6 + 8a1c27b commit 4d2e40a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/visioeditor/main/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ require.config({
xregexp : '../vendor/xregexp/xregexp-all-min',
socketio : '../vendor/socketio/socket.io.min',
allfonts : '../../sdkjs/common/AllFonts',
sdk : '../../sdkjs/draw/sdk-all-min',
sdk : '../../sdkjs/visio/sdk-all-min',
api : 'api/documents/api',
core : 'common/main/lib/core/application',
notification : 'common/main/lib/core/NotificationCenter',
Expand Down
2 changes: 1 addition & 1 deletion apps/visioeditor/main/app/controller/Viewport.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ define([
// Create and render main view
this.viewport = this.createView('Viewport').render();

this.api = new Asc.asc_docs_api({
this.api = new Asc.VisioEditorApi({
'id-view' : 'editor_sdk',
'translate': this.getApplication().getController('Main').translationTable
});
Expand Down
2 changes: 1 addition & 1 deletion apps/visioeditor/main/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@
<script src="../../../vendor/less/dist/less.js" type="text/javascript"></script>
<!-- debug end -->

<script type="text/javascript" src="../../../../sdkjs/develop/sdkjs/draw/scripts.js"></script>
<script type="text/javascript" src="../../../../sdkjs/develop/sdkjs/visio/scripts.js"></script>
<script>
window.sdk_scripts.forEach(function(item){
document.write('<script type="text/javascript" src="' + item + '"><\/script>');
Expand Down
2 changes: 1 addition & 1 deletion apps/visioeditor/main/index_loader.html
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@
<script src="../../../vendor/less/dist/less.js" type="text/javascript"></script>
<!-- debug end -->

<script type="text/javascript" src="../../../../sdkjs/develop/sdkjs/draw/scripts.js"></script>
<script type="text/javascript" src="../../../../sdkjs/develop/sdkjs/visio/scripts.js"></script>
<script>
window.sdk_scripts.forEach(function(item){
document.write('<script type="text/javascript" src="' + item + '"><\/script>');
Expand Down
6 changes: 3 additions & 3 deletions apps/visioeditor/mobile/src/controller/Main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class MainController extends Component {
initSdk () {
const on_script_load = () => {
!window.sdk_scripts && (window.sdk_scripts = ['../../../../sdkjs/common/AllFonts.js',
'../../../../sdkjs/draw/sdk-all-min.js']);
'../../../../sdkjs/visio/sdk-all-min.js']);
let dep_scripts = ['../../../vendor/xregexp/xregexp-all-min.js',
'../../../vendor/socketio/socket.io.min.js'];
dep_scripts.push(...window.sdk_scripts);
Expand Down Expand Up @@ -198,7 +198,7 @@ class MainController extends Component {
_translate = this.fallbackSdkTranslations
}

this.api = new Asc.asc_docs_api({
this.api = new Asc.VisioEditorApi({
'id-view': 'editor_sdk',
'mobile': true,
'translate': _translate
Expand Down Expand Up @@ -239,7 +239,7 @@ class MainController extends Component {

if ( About.developVersion() ) {
const script = document.createElement("script");
script.src = "../../../../sdkjs/develop/sdkjs/draw/scripts.js";
script.src = "../../../../sdkjs/develop/sdkjs/visio/scripts.js";
script.async = true;
script.onload = on_script_load;
script.onerror = () => {
Expand Down

0 comments on commit 4d2e40a

Please sign in to comment.