Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
b5e99f5
omg sysml spec pdf customiztion
Jul 19, 2018
d47f765
try to remove spaces after view links, use Clause for top level secti…
Aug 16, 2018
827db48
Merge commit '885f7749c68ecc629ce61043dbf7465e7a996f60' into temp/omg
Aug 16, 2018
6985d20
count   as spaces
Aug 16, 2018
8caae8f
account for section pe and not found pe
Aug 20, 2018
a958da6
handle annex, more page numbering
Aug 22, 2018
51d7d45
left align images and figcaptions
Sep 18, 2018
582b9fd
release 3.4
Sep 22, 2018
45dc10a
update docs
Sep 22, 2018
3784e42
Merge pull request #93 from Open-MBEE/release/3.4.0
shakeh Sep 23, 2018
210e98e
Merge commit '3784e422b5693ad7670df394496b709547c7a8c2' into temp/omg
Sep 26, 2018
92e105f
fix comment
Sep 26, 2018
681ff55
fix related docs in spec
Sep 26, 2018
df8fa1a
Merge branch 'hotfix/related'
Sep 26, 2018
bb5af57
Merge branch 'master' into temp/omg
Sep 26, 2018
8c8f436
fix version
Sep 26, 2018
b7e4d9f
Merge branch 'master' into temp/omg
Sep 26, 2018
26267ab
remove jobs and share button
Sep 26, 2018
2ce182b
Merge branch 'master' into release/3.5.0
shakeh Jan 22, 2019
99a4b90
release 3.5
Jan 22, 2019
8f02efc
Merge branch 'release/3.5.0' of github.com:Open-MBEE/ve into release/…
Jan 22, 2019
09a8677
3.5.1 release
Feb 21, 2019
ff66ead
Merge branch 'release/3.5.1'
Feb 21, 2019
aa97fb0
Merge branch 'master' into temp/omg
Feb 21, 2019
e83ed2f
remove uat button for public
Mar 22, 2019
469a86d
update public links
Mar 22, 2019
6772d12
Merge branch 'master' into release/3.5.2
shakeh Apr 8, 2019
9aefacc
Merge pull request #127 from Open-MBEE/release/3.5.2
shakeh Apr 8, 2019
f711f88
update version for master release
shakeh May 28, 2019
c816377
Merge pull request #411 from CAE/release/internal-3.5.4
shakeh May 28, 2019
78b2192
reuse 3.5.4 release
Jun 24, 2019
e2e68eb
Merge branch 'release/3.5.4'
Jun 24, 2019
4a69ac4
Merge branch 'release/3.5.5'
Sep 16, 2019
6c129e0
up version
Jan 15, 2020
5ad2d6b
Merge branch 'release/3.6.0'
Jan 16, 2020
903d5fa
release
Feb 4, 2020
1acf5f6
Merge branch 'release/3.6.1'
Feb 4, 2020
603fbe2
Merge branch 'master' into temp/omg
Feb 7, 2020
837d166
use combo styles for ckeditor, add code inline style
May 4, 2020
ec2a827
view link always links to current doc
May 5, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ module.exports = function(grunt) {
artifactory: {
options: {
url: artifactoryUrl,
repository: snapshotRepo, //releaseRepo,
repository: releaseRepo,
username: artifactoryUser,
password: artifactoryPassword
},
Expand All @@ -364,7 +364,7 @@ module.exports = function(grunt) {
options: {
publish: [{
id: groupId + ':ve:zip',
version: '3.6.1-SNAPSHOT',
version: '3.6.1',
path: 'deploy/'
}]
}
Expand Down
2 changes: 1 addition & 1 deletion app/js/mms/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ angular.module('mmsApp', ['mms', 'mms.directives', 'app.tpls', 'fa.directive.bor

var mmsHost = window.location.protocol + '//' + window.location.host;
URLServiceProvider.setMmsUrl(mmsHost);
//URLServiceProvider.setMmsUrl('https://opencae-uat.jpl.nasa.gov');
//URLServiceProvider.setMmsUrl('https://mms.openmbee.org');

$httpProvider.defaults.withCredentials = true;
// Check if user is logged in, if so redirect to select page otherwise go to login if the url isn't mapped
Expand Down
2 changes: 1 addition & 1 deletion app/js/mms/controllers/toolbar.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function($scope, $rootScope, $state, UxService, refOb, documentOb) {
tbApi.addButton(UxService.getToolbarButton("element-history"));
tbApi.addButton(UxService.getToolbarButton("tags"));
// if ($state.includes('project.ref.document')) {
tbApi.addButton(UxService.getToolbarButton("jobs"));
//tbApi.addButton(UxService.getToolbarButton("jobs"));
// }
if ($state.includes('project.ref') && !$state.includes('project.ref.document')) {
editable = documentOb._editable && refOb.type === 'Branch';
Expand Down
2 changes: 1 addition & 1 deletion app/mms.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<!--endbuild-->
<link rel="stylesheet" href="css/ve-mms.min.css" type="text/css">
<link rel="stylesheet" href="lib/flatpickr/flatpickr.css" type="text/css">
<link href="/mms-ts/tsperspectives/TSWebView.css" rel="stylesheet" type="text/css">
<!--<link href="/mms-ts/tsperspectives/TSWebView.css" rel="stylesheet" type="text/css"> -->
<link rel="icon" type="image/png" href="assets/favicon.png" />
<link rel="icon" type="image/png" href="assets/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="assets/favicon-16x16.png" sizes="16x16" />
Expand Down
2 changes: 2 additions & 0 deletions app/partials/mms/pane-center.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
<a type="button" class="btn btn-tools btn-sm" target="_blank" rel="noopener noreferrer" ng-href="{{docLibLink}}" uib-tooltip="Manage files" tooltip-placement="bottom" tooltip-popup-delay="100">
<img src="assets/alfresco-icon-sm.png">DocLib
</a>
<!--
<button type="button" class="btn btn-tools btn-sm share-url" ng-if="!ve_fn" ng-click="handleShareURL()" uib-tooltip="Share Page" tooltip-placement="bottom" tooltip-popup-delay="100"
popover-trigger="outsideClick" uib-popover-template="dynamicPopover.templateUrl" popover-title="{{dynamicPopover.title}}" popover-placement="bottom-left">
<i class="fa fa-share-alt"></i></button>
-->
</div>
<div class="pane-center-btn-group">
<mms-button-bar buttons="buttons" mms-bb-api="bbApi" class="bordered-button-bar"></mms-button-bar>
Expand Down
6 changes: 3 additions & 3 deletions app/partials/mms/veNav.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</div>
</form>
<ul class="nav navbar-nav global-menu">
<!--<li><span><a ng-click="stagingView()">UAT</a></span></li>-->

<li class="dropdown">
<span class="dropdown ve-dark-dropdown-nav fixed-content-dropdown" uib-dropdown on-toggle="toggled(open)">
<a href id="help-dropdown" class="dropdown-toggle" uib-dropdown-toggle>
Expand All @@ -36,10 +36,10 @@
</li>
<li class="divider"></li>
<li>
<a href="https://wiki.jpl.nasa.gov/display/opencae/View+Editor+User+Guide" target="_blank">View Editor User Guide</a>
<a href="https://github.com/Open-MBEE/ve/blob/develop/Documents/ViewEditorUserGuide.pdf" target="_blank">View Editor Help</a>
</li>
<li>
<a href="https://jira.jpl.nasa.gov/servicedesk/customer/portal/5" target="_blank">Report Issue</a>
<a href="https://openmbee.atlassian.net/secure/Dashboard.jspa" target="_blank">Report Issue</a>
</li>
<li class="divider"></li>
<li class="list-section-bottom">
Expand Down
2 changes: 1 addition & 1 deletion src/directives/mmsCkEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ function mmsCkeditor($uibModal, $templateCache, $timeout, growl, CKEDITOR, _, Ca
};

// Formatting editor toolbar
var stylesToolbar = { name: 'styles', items : ['Format','FontSize','TextColor','BGColor' ] };
var stylesToolbar = { name: 'styles', items : ['Styles',/*'Format',*/'FontSize','TextColor','BGColor'] };
var basicStylesToolbar = { name: 'basicstyles', items : [ 'Bold','Italic','Underline', 'mmsExtraFormat'] };
var clipboardToolbar = { name: 'clipboard', items : [ 'Undo','Redo' ] };
var justifyToolbar = { name: 'paragraph', items : [ 'JustifyLeft','JustifyCenter','JustifyRight' ] };
Expand Down
6 changes: 6 additions & 0 deletions src/directives/mmsTranscludeDoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ function mmsTranscludeDoc(Utils, ElementService, UtilsService, ViewService, UxSe
var fixPreSpanRegex = /<\/span>\s*<mms-cf/g;
var fixPostSpanRegex = /<\/mms-cf>\s*<span[^>]*>/g;
var emptyRegex = /^\s*$/;
var spacePeriod = />(?:\s|&nbsp;)\./g;
var spaceSpace = />(?:\s|&nbsp;)(?:\s|&nbsp;)/g;
var spaceComma = />(?:\s|&nbsp;),/g;

var mmsTranscludeDocCtrl = function($scope) {

Expand Down Expand Up @@ -93,6 +96,9 @@ function mmsTranscludeDoc(Utils, ElementService, UtilsService, ViewService, UxSe
}
doc = doc.replace(fixPreSpanRegex, "<mms-cf");
doc = doc.replace(fixPostSpanRegex, "</mms-cf>");
doc = doc.replace(spacePeriod, '>.');
doc = doc.replace(spaceSpace, '> ');
doc = doc.replace(spaceComma, '>,');
if (preview) {
domElement[0].innerHTML = '<div class="panel panel-info">'+doc+'</div>';
} else {
Expand Down
6 changes: 6 additions & 0 deletions src/directives/mmsTranscludeVal.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ function mmsTranscludeVal(ElementService, UtilsService, UxService, Utils, URLSer
var frameTemplate = $templateCache.get('mms/templates/mmsTranscludeValFrame.html');
var editTemplate = $templateCache.get('mms/templates/mmsTranscludeValEdit.html');
var emptyRegex = /^\s*$/;
var spacePeriod = />(?:\s|&nbsp;)\./g;
var spaceSpace = />(?:\s|&nbsp;)(?:\s|&nbsp;)/g;
var spaceComma = />(?:\s|&nbsp;),/g;

var mmsTranscludeCtrl = function ($scope, $rootScope) {

Expand Down Expand Up @@ -119,6 +122,9 @@ function mmsTranscludeVal(ElementService, UtilsService, UxService, Utils, URLSer
domElement[0].innerHTML = '<span class="no-print placeholder">(no value)</span>';
return;
}
toCompile = toCompile.replace(spacePeriod, '>.');
toCompile = toCompile.replace(spaceSpace, '> ');
toCompile = toCompile.replace(spaceComma, '>,');
if (preview) {
domElement[0].innerHTML = '<div class="panel panel-info">'+toCompile+'</div>';
} else {
Expand Down
7 changes: 6 additions & 1 deletion src/directives/mmsTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ function mmsTree(ApplicationService, $timeout, $log, $templateCache, $filter, Ut
children: branch.children
});
if (branch.children) {
var alpha = false;
if (scope.options.sort) {
branch.children.sort(scope.options.sort);
}
Expand All @@ -366,8 +367,12 @@ function mmsTree(ApplicationService, $timeout, $log, $templateCache, $filter, Ut
add_branch_to_list(level + 1, section, branch.children[i], child_visible, peNums);
} else {
if (scope.options.sectionNumbering) {
if (branch.children[i].data._isAppendix) {
alpha = true;
j = 0;
}
var nextSection = section.slice();
nextSection.push(j);
nextSection.push(alpha ? String.fromCharCode(j + 65) : j);
if (nextSection.length <= scope.options.numberingDepth) {
peNums.table = 0; peNums.figure = 0; peNums.equaton = 0;
}
Expand Down
27 changes: 26 additions & 1 deletion src/directives/mmsViewLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function mmsViewLink(ElementService, UtilsService, $compile, growl, ViewService,
.then(function(data) {
scope.element = data;
scope.name = data.name;
scope.type = 'Section ';
scope.type = 'Clause ';
scope.suffix = '';
scope.hash = '#' + data.id;
if (scope.mmsPeId && scope.mmsPeId !== '') {
Expand All @@ -92,13 +92,33 @@ function mmsViewLink(ElementService, UtilsService, $compile, growl, ViewService,
} else if (ViewService.isEquation(pe)) {
scope.type = "Eq. (";
scope.suffix = ')';
} else if (ViewService.isSection(pe)) {
scope.type = '';
}
if (ApplicationService.getState().fullDoc) {
scope.href = UtilsService.PROJECT_URL_PREFIX + scope.projectId + '/' + scope.refId + '/documents/' + scope.docid + "/full" + scope.hash;
} else {
scope.href = UtilsService.PROJECT_URL_PREFIX + scope.projectId + '/' + scope.refId + '/documents/' + scope.docid + '/views/' + scope.vid + scope.hash;
}
}, function() {
if (data._veNumber) {
var numbers = data._veNumber.split('.');
if (numbers.length > 1) {
scope.type = '';
} else if (isNaN(parseInt(numbers[0]))) {
scope.type = 'Annex ';
}
}
});
} else {
if (data._veNumber) {
var numbers = data._veNumber.split('.');
if (numbers.length > 1) {
scope.type = '';
} else if (isNaN(parseInt(numbers[0]))) {
scope.type = 'Annex ';
}
}
}
if (UtilsService.isDocument(data)) {
docid = data.id;
Expand All @@ -114,6 +134,11 @@ function mmsViewLink(ElementService, UtilsService, $compile, growl, ViewService,
element.html("<span class=\"mms-error\">view link doesn't refer to a view</span>");
}
scope.loading = false;
//for omg doc - if we're in a doc, just assume the link is within current doc
if (ApplicationService.getState().inDoc) {
scope.docid = ApplicationService.getState().currentDoc;
}
//end omg specific fix
if (ApplicationService.getState().fullDoc) {
scope.href = UtilsService.PROJECT_URL_PREFIX + scope.projectId + '/' + scope.refId + '/documents/' + scope.docid + '/full' + scope.hash;
} else {
Expand Down
14 changes: 13 additions & 1 deletion src/lib/ckeditor/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ CKEDITOR.editorConfig = function( config ) {
//config.tabSpaces = 4;
//config.height = 350;
// config.extraPlugins = 'autosave,iframe,mediaembed,embed,
config.extraPlugins = 'liststyle,colordialog,autosave,autogrow,mmscf,mmscomment,mmsvlink,mmsreset,mmssignature,mmsdropdown';
config.extraPlugins = 'liststyle,colordialog,autosave,autogrow,stylescombo,mmscf,mmscomment,mmsvlink,mmsreset,mmssignature,mmsdropdown';
config.autoGrow_minHeight = 200;
config.autoGrow_maxHeight = 600;
config.autoGrow_bottomSpace = 50;
Expand All @@ -40,4 +40,16 @@ CKEDITOR.editorConfig = function( config ) {

// Simplify the dialog windows.
config.removeDialogTabs = 'image:advanced;link:advanced';

config.stylesSet = [
{ name: 'Paragraph', element: 'p' },
{ name: 'Heading 1', element: 'h1' },
{ name: 'Heading 2', element: 'h2' },
{ name: 'Heading 3', element: 'h3' },
{ name: 'Heading 4', element: 'h4' },
{ name: 'Heading 5', element: 'h5' },
{ name: 'Heading 6', element: 'h6' },
{ name: 'Preformatted Text',element: 'pre' },
{ name: 'Computer Code', element: 'code' }
];
};
11 changes: 11 additions & 0 deletions src/lib/ckeditor/plugins/stylescombo/lang/en.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'en', {
label: 'Styles',
panelTitle: 'Formatting Styles',
panelTitle1: 'Block Styles',
panelTitle2: 'Inline Styles',
panelTitle3: 'Object Styles'
} );
Loading