diff --git a/package.json b/package.json index 863686e..f288cf8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "anubias", - "version": "0.4.0", + "version": "0.4.1", "private": false, "description": "anubias desktop application", "author": { diff --git a/src/assets/js/winVars.js b/src/assets/js/winVars.js index adbb66c..7e92d89 100644 --- a/src/assets/js/winVars.js +++ b/src/assets/js/winVars.js @@ -1,3 +1,15 @@ +/** + * ide version :) + * @type {{}} + */ +window.ide = { + majorVersion: 0, + minorVersion: 4, + patchVersion: 1, + version:function () { + return this.majorVersion + '.' + this.minorVersion + '.' + this.patchVersion; + } +}; /** * sample application date */ @@ -12,7 +24,8 @@ window.sample = { bgColor: '#ffffff', mainPage: 0 }, - pages: [] + pages: [], + version: window.ide.version() }; /** * main application data diff --git a/src/components/elements/AppMenuElement.vue b/src/components/elements/AppMenuElement.vue index 48b77e2..e2e4bbf 100644 --- a/src/components/elements/AppMenuElement.vue +++ b/src/components/elements/AppMenuElement.vue @@ -83,6 +83,7 @@ export default { return false; } // otherwise try to save + window.appData.version = window.ide.version(); var data = { project: window.project, data: window.appData @@ -96,8 +97,8 @@ export default { // prepare new empty project window.project = { - 'folder': '', - 'file': '', + folder: '', + file: '', isSave: false, }; window.appData = fnc.clone(window.sample); @@ -111,6 +112,7 @@ export default { return false; } + window.appData.version = window.ide.version(); // prepare save dialog and appDate to save as var data = { dialog: { diff --git a/src/components/elements/CodeEditor.vue b/src/components/elements/CodeEditor.vue index 56971a5..a9c7fee 100644 --- a/src/components/elements/CodeEditor.vue +++ b/src/components/elements/CodeEditor.vue @@ -17,23 +17,6 @@ export default { require("@/assets/js/xscript"); require("@/assets/js/xScriptSnipts"); require('brace/theme/dracula'); - // let snippetManager = ace.acequire('ace/snippets').snippetManager; - // editor.setValue([ - // '// JavaScript' - // , 'var a = 3;' - // , '' - // , '// below line has an error which is annotated' - // , 'var b =' - // ].join('\n') - // ); - // editor.clearSelection(); - - - // console.log('hello'); - // console.log(snippetManager); - // console.log('bye'); - // let customSnippet = snippetManager.parseSnippetFile(xscript, 'xscript'); - // let editor = ace.edit('codeEditor'); editor.getSession().setMode('ace/mode/xscript'); @@ -45,12 +28,11 @@ export default { highlightActiveLine: false, enableSnippets: true, showLineNumbers: true, - tabSize: 2, + tabSize: 4, showPrintMargin: false, showGutter: true, }); - // snippetManager.register(editor, editor.session, customSnippet, 'xscript'); - // console.log(xscript); + } } diff --git a/src/components/pages/AboutPage.vue b/src/components/pages/AboutPage.vue index ac48f0e..71d1d06 100644 --- a/src/components/pages/AboutPage.vue +++ b/src/components/pages/AboutPage.vue @@ -5,7 +5,7 @@