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
26f5a91f
Commit
26f5a91f
authored
Oct 25, 2017
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added trial and developer mode.
parent
021ef020
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
28 additions
and
15 deletions
+28
-15
apps/documenteditor/main/app/controller/LeftMenu.js
apps/documenteditor/main/app/controller/LeftMenu.js
+2
-2
apps/documenteditor/main/app/controller/Main.js
apps/documenteditor/main/app/controller/Main.js
+1
-1
apps/documenteditor/main/app/view/LeftMenu.js
apps/documenteditor/main/app/view/LeftMenu.js
+3
-2
apps/documenteditor/main/locale/en.json
apps/documenteditor/main/locale/en.json
+1
-0
apps/documenteditor/main/locale/ru.json
apps/documenteditor/main/locale/ru.json
+2
-0
apps/presentationeditor/main/app/controller/LeftMenu.js
apps/presentationeditor/main/app/controller/LeftMenu.js
+2
-2
apps/presentationeditor/main/app/controller/Main.js
apps/presentationeditor/main/app/controller/Main.js
+1
-1
apps/presentationeditor/main/app/view/LeftMenu.js
apps/presentationeditor/main/app/view/LeftMenu.js
+3
-2
apps/presentationeditor/main/locale/en.json
apps/presentationeditor/main/locale/en.json
+1
-0
apps/presentationeditor/main/locale/ru.json
apps/presentationeditor/main/locale/ru.json
+2
-0
apps/spreadsheeteditor/main/app/controller/LeftMenu.js
apps/spreadsheeteditor/main/app/controller/LeftMenu.js
+2
-2
apps/spreadsheeteditor/main/app/controller/Main.js
apps/spreadsheeteditor/main/app/controller/Main.js
+1
-1
apps/spreadsheeteditor/main/app/view/LeftMenu.js
apps/spreadsheeteditor/main/app/view/LeftMenu.js
+3
-2
apps/spreadsheeteditor/main/locale/en.json
apps/spreadsheeteditor/main/locale/en.json
+1
-0
apps/spreadsheeteditor/main/locale/ru.json
apps/spreadsheeteditor/main/locale/ru.json
+3
-0
No files found.
apps/documenteditor/main/app/controller/LeftMenu.js
View file @
26f5a91f
...
...
@@ -174,7 +174,7 @@ define([
if
(
this
.
mode
.
canUseHistory
)
this
.
leftMenu
.
setOptionsPanel
(
'
history
'
,
this
.
getApplication
().
getController
(
'
Common.Controllers.History
'
).
getView
(
'
Common.Views.History
'
));
this
.
mode
.
isTrial
&&
this
.
leftMenu
.
setDeveloperMode
(
tru
e
);
this
.
mode
.
trialMode
&&
this
.
leftMenu
.
setDeveloperMode
(
this
.
mode
.
trialMod
e
);
Common
.
util
.
Shortcuts
.
resumeEvents
();
return
this
;
...
...
@@ -186,7 +186,7 @@ define([
this
.
leftMenu
.
setOptionsPanel
(
'
plugins
'
,
this
.
getApplication
().
getController
(
'
Common.Controllers.Plugins
'
).
getView
(
'
Common.Views.Plugins
'
));
}
else
this
.
leftMenu
.
btnPlugins
.
hide
();
this
.
mode
.
isTrial
&&
this
.
leftMenu
.
setDeveloperMode
(
tru
e
);
this
.
mode
.
trialMode
&&
this
.
leftMenu
.
setDeveloperMode
(
this
.
mode
.
trialMod
e
);
},
clickMenuFileItem
:
function
(
menu
,
action
,
isopts
)
{
...
...
apps/documenteditor/main/app/controller/Main.js
View file @
26f5a91f
...
...
@@ -1019,7 +1019,7 @@ define([
this
.
appOptions
.
canForcesave
=
this
.
appOptions
.
isEdit
&&
!
this
.
appOptions
.
isOffline
&&
(
typeof
(
this
.
editorConfig
.
customization
)
==
'
object
'
&&
!!
this
.
editorConfig
.
customization
.
forcesave
);
this
.
appOptions
.
forcesave
=
this
.
appOptions
.
canForcesave
;
this
.
appOptions
.
canEditComments
=
this
.
appOptions
.
isOffline
||
!
(
typeof
(
this
.
editorConfig
.
customization
)
==
'
object
'
&&
this
.
editorConfig
.
customization
.
commentAuthorOnly
);
this
.
appOptions
.
isTrial
=
params
.
asc_getTrial
();
this
.
appOptions
.
trialMode
=
params
.
asc_getLicenseMode
();
var
type
=
/^
(?:(
pdf|djvu|xps
))
$/
.
exec
(
this
.
document
.
fileType
);
this
.
appOptions
.
canDownloadOrigin
=
!
this
.
appOptions
.
nativeApp
&&
this
.
permissions
.
download
!==
false
&&
(
type
&&
typeof
type
[
1
]
===
'
string
'
);
...
...
apps/documenteditor/main/app/view/LeftMenu.js
View file @
26f5a91f
...
...
@@ -368,7 +368,7 @@ define([
if
(
!
this
.
$el
.
is
(
'
:visible
'
)
)
return
;
if
(
!
this
.
developerHint
)
{
this
.
developerHint
=
$
(
'
<div id="developer-hint">
'
+
this
.
txtDeveloper
+
'
</div>
'
).
appendTo
(
this
.
$el
);
this
.
developerHint
=
$
(
'
<div id="developer-hint">
'
+
((
mode
==
Asc
.
c_oLicenseMode
.
Trial
)
?
this
.
txtTrial
:
this
.
txtDeveloper
)
+
'
</div>
'
).
appendTo
(
this
.
$el
);
this
.
devHeight
=
this
.
developerHint
.
outerHeight
();
$
(
window
).
on
(
'
resize
'
,
_
.
bind
(
this
.
onWindowResize
,
this
));
}
...
...
@@ -391,6 +391,7 @@ define([
tipFile
:
'
File
'
,
tipSearch
:
'
Search
'
,
tipPlugins
:
'
Plugins
'
,
txtDeveloper
:
'
DEVELOPER MODE
'
txtDeveloper
:
'
DEVELOPER MODE
'
,
txtTrial
:
'
TRIAL MODE
'
},
DE
.
Views
.
LeftMenu
||
{}));
});
apps/documenteditor/main/locale/en.json
View file @
26f5a91f
...
...
@@ -1101,6 +1101,7 @@
"DE.Views.LeftMenu.tipSupport"
:
"Feedback & Support"
,
"DE.Views.LeftMenu.tipTitles"
:
"Titles"
,
"DE.Views.LeftMenu.txtDeveloper"
:
"DEVELOPER MODE"
,
"DE.Views.LeftMenu.txtTrial"
:
"TRIAL MODE"
,
"DE.Views.MailMergeEmailDlg.cancelButtonText"
:
"Cancel"
,
"DE.Views.MailMergeEmailDlg.filePlaceholder"
:
"PDF"
,
"DE.Views.MailMergeEmailDlg.okButtonText"
:
"Send"
,
...
...
apps/documenteditor/main/locale/ru.json
View file @
26f5a91f
...
...
@@ -952,6 +952,7 @@
"DE.Views.FileMenuPanels.Settings.strFontRender"
:
"Хинтинг шрифтов"
,
"DE.Views.FileMenuPanels.Settings.strForcesave"
:
"Всегда сохранять на сервере (в противном случае сохранять на сервере при закрытии документа)"
,
"DE.Views.FileMenuPanels.Settings.strInputMode"
:
"Включить иероглифы"
,
"DE.Views.FileMenuPanels.Settings.strInputSogou"
:
"Включить метод ввода Sogou Pinyin"
,
"DE.Views.FileMenuPanels.Settings.strLiveComment"
:
"Включить отображение комментариев в тексте"
,
"DE.Views.FileMenuPanels.Settings.strResolvedComment"
:
"Включить отображение решенных комментариев"
,
"DE.Views.FileMenuPanels.Settings.strShowChanges"
:
"Отображать изменения при совместной работе"
,
...
...
@@ -1101,6 +1102,7 @@
"DE.Views.LeftMenu.tipSupport"
:
"Обратная связь и поддержка"
,
"DE.Views.LeftMenu.tipTitles"
:
"Заголовки"
,
"DE.Views.LeftMenu.txtDeveloper"
:
"РЕЖИМ РАЗРАБОТЧИКА"
,
"DE.Views.LeftMenu.txtTrial"
:
"ПРОБНЫЙ РЕЖИМ"
,
"DE.Views.MailMergeEmailDlg.cancelButtonText"
:
"Отмена"
,
"DE.Views.MailMergeEmailDlg.filePlaceholder"
:
"PDF"
,
"DE.Views.MailMergeEmailDlg.okButtonText"
:
"Отправить"
,
...
...
apps/presentationeditor/main/app/controller/LeftMenu.js
View file @
26f5a91f
...
...
@@ -166,7 +166,7 @@ define([
this
.
leftMenu
.
btnChat
.
hide
();
this
.
leftMenu
.
btnComments
.
hide
();
}
this
.
mode
.
isTrial
&&
this
.
leftMenu
.
setDeveloperMode
(
tru
e
);
this
.
mode
.
trialMode
&&
this
.
leftMenu
.
setDeveloperMode
(
this
.
mode
.
trialMod
e
);
/** coauthoring end **/
Common
.
util
.
Shortcuts
.
resumeEvents
();
this
.
leftMenu
.
btnThumbs
.
toggle
(
true
);
...
...
@@ -179,7 +179,7 @@ define([
this
.
leftMenu
.
setOptionsPanel
(
'
plugins
'
,
this
.
getApplication
().
getController
(
'
Common.Controllers.Plugins
'
).
getView
(
'
Common.Views.Plugins
'
));
}
else
this
.
leftMenu
.
btnPlugins
.
hide
();
this
.
mode
.
isTrial
&&
this
.
leftMenu
.
setDeveloperMode
(
tru
e
);
this
.
mode
.
trialMode
&&
this
.
leftMenu
.
setDeveloperMode
(
this
.
mode
.
trialMod
e
);
},
clickMenuFileItem
:
function
(
menu
,
action
,
isopts
)
{
...
...
apps/presentationeditor/main/app/controller/Main.js
View file @
26f5a91f
...
...
@@ -787,7 +787,7 @@ define([
this
.
appOptions
.
canForcesave
=
this
.
appOptions
.
isEdit
&&
!
this
.
appOptions
.
isOffline
&&
(
typeof
(
this
.
editorConfig
.
customization
)
==
'
object
'
&&
!!
this
.
editorConfig
.
customization
.
forcesave
);
this
.
appOptions
.
forcesave
=
this
.
appOptions
.
canForcesave
;
this
.
appOptions
.
canEditComments
=
this
.
appOptions
.
isOffline
||
!
(
typeof
(
this
.
editorConfig
.
customization
)
==
'
object
'
&&
this
.
editorConfig
.
customization
.
commentAuthorOnly
);
this
.
appOptions
.
isTrial
=
params
.
asc_getTrial
();
this
.
appOptions
.
trialMode
=
params
.
asc_getLicenseMode
();
this
.
_state
.
licenseWarning
=
(
licType
===
Asc
.
c_oLicenseResult
.
Connections
)
&&
this
.
appOptions
.
canEdit
&&
this
.
editorConfig
.
mode
!==
'
view
'
;
...
...
apps/presentationeditor/main/app/view/LeftMenu.js
View file @
26f5a91f
...
...
@@ -377,7 +377,7 @@ define([
if
(
!
this
.
$el
.
is
(
'
:visible
'
)
)
return
;
if
(
!
this
.
developerHint
)
{
this
.
developerHint
=
$
(
'
<div id="developer-hint">
'
+
this
.
txtDeveloper
+
'
</div>
'
).
appendTo
(
this
.
$el
);
this
.
developerHint
=
$
(
'
<div id="developer-hint">
'
+
((
mode
==
Asc
.
c_oLicenseMode
.
Trial
)
?
this
.
txtTrial
:
this
.
txtDeveloper
)
+
'
</div>
'
).
appendTo
(
this
.
$el
);
this
.
devHeight
=
this
.
developerHint
.
outerHeight
();
$
(
window
).
on
(
'
resize
'
,
_
.
bind
(
this
.
onWindowResize
,
this
));
}
...
...
@@ -402,6 +402,7 @@ define([
tipSearch
:
'
Search
'
,
tipSlides
:
'
Slides
'
,
tipPlugins
:
'
Plugins
'
,
txtDeveloper
:
'
DEVELOPER MODE
'
txtDeveloper
:
'
DEVELOPER MODE
'
,
txtTrial
:
'
TRIAL MODE
'
},
PE
.
Views
.
LeftMenu
||
{}));
});
apps/presentationeditor/main/locale/en.json
View file @
26f5a91f
...
...
@@ -899,6 +899,7 @@
"PE.Views.LeftMenu.tipSupport"
:
"Feedback & Support"
,
"PE.Views.LeftMenu.tipTitles"
:
"Titles"
,
"PE.Views.LeftMenu.txtDeveloper"
:
"DEVELOPER MODE"
,
"PE.Views.LeftMenu.txtTrial"
:
"TRIAL MODE"
,
"PE.Views.ParagraphSettings.strLineHeight"
:
"Line Spacing"
,
"PE.Views.ParagraphSettings.strParagraphSpacing"
:
"Paragraph Spacing"
,
"PE.Views.ParagraphSettings.strSpacingAfter"
:
"After"
,
...
...
apps/presentationeditor/main/locale/ru.json
View file @
26f5a91f
...
...
@@ -820,6 +820,7 @@
"PE.Views.FileMenuPanels.Settings.strFast"
:
"Быстрый"
,
"PE.Views.FileMenuPanels.Settings.strForcesave"
:
"Всегда сохранять на сервере (в противном случае сохранять на сервере при закрытии документа)"
,
"PE.Views.FileMenuPanels.Settings.strInputMode"
:
"Включить иероглифы"
,
"PE.Views.FileMenuPanels.Settings.strInputSogou"
:
"Включить метод ввода Sogou Pinyin"
,
"PE.Views.FileMenuPanels.Settings.strShowChanges"
:
"Отображать изменения при совместной работе"
,
"PE.Views.FileMenuPanels.Settings.strSpellCheckMode"
:
"Включить проверку орфографии"
,
"PE.Views.FileMenuPanels.Settings.strStrict"
:
"Строгий"
,
...
...
@@ -899,6 +900,7 @@
"PE.Views.LeftMenu.tipSupport"
:
"Обратная связь и поддержка"
,
"PE.Views.LeftMenu.tipTitles"
:
"Заголовки"
,
"PE.Views.LeftMenu.txtDeveloper"
:
"РЕЖИМ РАЗРАБОТЧИКА"
,
"PE.Views.LeftMenu.txtTrial"
:
"ПРОБНЫЙ РЕЖИМ"
,
"PE.Views.ParagraphSettings.strLineHeight"
:
"Междустрочный интервал"
,
"PE.Views.ParagraphSettings.strParagraphSpacing"
:
"Интервал между абзацами"
,
"PE.Views.ParagraphSettings.strSpacingAfter"
:
"После"
,
...
...
apps/spreadsheeteditor/main/app/controller/LeftMenu.js
View file @
26f5a91f
...
...
@@ -174,7 +174,7 @@ define([
this
.
leftMenu
.
btnChat
.
hide
();
this
.
leftMenu
.
btnComments
.
hide
();
}
this
.
mode
.
isTrial
&&
this
.
leftMenu
.
setDeveloperMode
(
tru
e
);
this
.
mode
.
trialMode
&&
this
.
leftMenu
.
setDeveloperMode
(
this
.
mode
.
trialMod
e
);
/** coauthoring end **/
Common
.
util
.
Shortcuts
.
resumeEvents
();
if
(
!
this
.
mode
.
isEditMailMerge
&&
!
this
.
mode
.
isEditDiagram
)
...
...
@@ -188,7 +188,7 @@ define([
this
.
leftMenu
.
setOptionsPanel
(
'
plugins
'
,
this
.
getApplication
().
getController
(
'
Common.Controllers.Plugins
'
).
getView
(
'
Common.Views.Plugins
'
));
}
else
this
.
leftMenu
.
btnPlugins
.
hide
();
this
.
mode
.
isTrial
&&
this
.
leftMenu
.
setDeveloperMode
(
tru
e
);
this
.
mode
.
trialMode
&&
this
.
leftMenu
.
setDeveloperMode
(
this
.
mode
.
trialMod
e
);
},
clickMenuFileItem
:
function
(
menu
,
action
,
isopts
)
{
...
...
apps/spreadsheeteditor/main/app/controller/Main.js
View file @
26f5a91f
...
...
@@ -800,7 +800,7 @@ define([
this
.
appOptions
.
canComments
=
this
.
appOptions
.
canComments
&&
!
((
typeof
(
this
.
editorConfig
.
customization
)
==
'
object
'
)
&&
this
.
editorConfig
.
customization
.
comments
===
false
);
this
.
appOptions
.
canChat
=
this
.
appOptions
.
canLicense
&&
!
this
.
appOptions
.
isOffline
&&
!
((
typeof
(
this
.
editorConfig
.
customization
)
==
'
object
'
)
&&
this
.
editorConfig
.
customization
.
chat
===
false
);
this
.
appOptions
.
canRename
=
!!
this
.
permissions
.
rename
;
this
.
appOptions
.
isTrial
=
params
.
asc_getTrial
();
this
.
appOptions
.
trialMode
=
params
.
asc_getLicenseMode
();
this
.
appOptions
.
canBranding
=
(
licType
===
Asc
.
c_oLicenseResult
.
Success
)
&&
(
typeof
this
.
editorConfig
.
customization
==
'
object
'
);
if
(
this
.
appOptions
.
canBranding
)
...
...
apps/spreadsheeteditor/main/app/view/LeftMenu.js
View file @
26f5a91f
...
...
@@ -349,7 +349,7 @@ define([
if
(
!
this
.
$el
.
is
(
'
:visible
'
)
)
return
;
if
(
!
this
.
developerHint
)
{
this
.
developerHint
=
$
(
'
<div id="developer-hint">
'
+
this
.
txtDeveloper
+
'
</div>
'
).
appendTo
(
this
.
$el
);
this
.
developerHint
=
$
(
'
<div id="developer-hint">
'
+
((
mode
==
Asc
.
c_oLicenseMode
.
Trial
)
?
this
.
txtTrial
:
this
.
txtDeveloper
)
+
'
</div>
'
).
appendTo
(
this
.
$el
);
this
.
devHeight
=
this
.
developerHint
.
outerHeight
();
$
(
window
).
on
(
'
resize
'
,
_
.
bind
(
this
.
onWindowResize
,
this
));
}
...
...
@@ -373,6 +373,7 @@ define([
tipFile
:
'
File
'
,
tipSearch
:
'
Search
'
,
tipPlugins
:
'
Plugins
'
,
txtDeveloper
:
'
DEVELOPER MODE
'
txtDeveloper
:
'
DEVELOPER MODE
'
,
txtTrial
:
'
TRIAL MODE
'
},
SSE
.
Views
.
LeftMenu
||
{}));
});
apps/spreadsheeteditor/main/locale/en.json
View file @
26f5a91f
...
...
@@ -1229,6 +1229,7 @@
"SSE.Views.LeftMenu.tipSearch"
:
"Search"
,
"SSE.Views.LeftMenu.tipSupport"
:
"Feedback & Support"
,
"SSE.Views.LeftMenu.txtDeveloper"
:
"DEVELOPER MODE"
,
"SSE.Views.LeftMenu.txtTrial"
:
"TRIAL MODE"
,
"SSE.Views.MainSettingsPrint.okButtonText"
:
"Save"
,
"SSE.Views.MainSettingsPrint.strBottom"
:
"Bottom"
,
"SSE.Views.MainSettingsPrint.strLandscape"
:
"Landscape"
,
...
...
apps/spreadsheeteditor/main/locale/ru.json
View file @
26f5a91f
...
...
@@ -1086,6 +1086,7 @@
"SSE.Views.FileMenuPanels.MainSettingsGeneral.strForcesave"
:
"Всегда сохранять на сервере (в противном случае сохранять на сервере при закрытии документа)"
,
"SSE.Views.FileMenuPanels.MainSettingsGeneral.strFuncLocale"
:
"Язык формул"
,
"SSE.Views.FileMenuPanels.MainSettingsGeneral.strFuncLocaleEx"
:
"Пример: СУММ; МИН; МАКС; СЧЁТ"
,
"SSE.Views.FileMenuPanels.MainSettingsGeneral.strInputSogou"
:
"Включить метод ввода Sogou Pinyin"
,
"SSE.Views.FileMenuPanels.MainSettingsGeneral.strLiveComment"
:
"Включить отображение комментариев в тексте"
,
"SSE.Views.FileMenuPanels.MainSettingsGeneral.strRegSettings"
:
"Региональные параметры"
,
"SSE.Views.FileMenuPanels.MainSettingsGeneral.strRegSettingsEx"
:
"Пример:"
,
...
...
@@ -1106,6 +1107,7 @@
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtDe"
:
"Немецкий"
,
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtEn"
:
"Английский"
,
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtInch"
:
"Дюйм"
,
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtInput"
:
"Альтернативный ввод"
,
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtLiveComment"
:
"Отображение комментариев"
,
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtMac"
:
"как OS X"
,
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtNative"
:
"Собственный"
,
...
...
@@ -1229,6 +1231,7 @@
"SSE.Views.LeftMenu.tipSearch"
:
"Поиск"
,
"SSE.Views.LeftMenu.tipSupport"
:
"Обратная связь и поддержка"
,
"SSE.Views.LeftMenu.txtDeveloper"
:
"РЕЖИМ РАЗРАБОТЧИКА"
,
"SSE.Views.LeftMenu.txtTrial"
:
"ПРОБНЫЙ РЕЖИМ"
,
"SSE.Views.MainSettingsPrint.okButtonText"
:
"Сохранить"
,
"SSE.Views.MainSettingsPrint.strBottom"
:
"Снизу"
,
"SSE.Views.MainSettingsPrint.strLandscape"
:
"Альбомная"
,
...
...
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