Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 12 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Midas Server. Copyright Kitware SAS. Licensed under the Apache License 2.0.

**/*.min.js
**/jqplot*.js
**/jquery*.js
bower_components/
library/SwaggerUI/
modules/{pvw,visualize}/public/js/jquery/colorpicker.js
modules/statistics/public/js/googlemaps/*.js
modules/visualize/public/js/{paraview,webgl}/*.js
node_modules/
vendor/
43 changes: 43 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#=============================================================================
# Midas Server
# Copyright Kitware SAS, 26 rue Louis Guérin, 69100 Villeurbanne, France.
# All rights reserved.
# For more information visit http://www.kitware.com/.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0.txt
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#=============================================================================

---
rules:
indent:
- 2
- 4
quotes:
- 2
- single
linebreak-style:
- 2
- unix
semi:
- 2
- always

no-unused-vars:
- 2
- argsIgnorePattern: ^_

env:
browser: true
jquery: true

extends: 'eslint:recommended'
55 changes: 55 additions & 0 deletions .scss-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
#=============================================================================
# Midas Server
# Copyright Kitware SAS, 26 rue Louis Guérin, 69100 Villeurbanne, France.
# All rights reserved.
# For more information visit http://www.kitware.com/.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0.txt
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#=============================================================================

---
scss_files: '**/public/scss/*.scss'

exclude:
- '**/public/**/*.css'
- 'core/public/scss/mixins/**'
- 'library/SwaggerUI/**'
- 'vendor/**'

linters:
ColorVariable:
enabled: false

HexNotation:
style: uppercase

IdSelector:
enabled: false

ImportantRule:
enabled: false

Indentation:
width: 4

NestingDepth:
max_depth: 4

QualifyingElement:
enabled: false

SelectorDepth:
max_depth: 4

SelectorFormat:
convention: camel_case
2 changes: 1 addition & 1 deletion core/public/css/admin/admin.dashboard.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/public/css/admin/admin.index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/public/css/admin/admin.migrate.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/public/css/admin/admin.upgrade.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
div.viewSideBar input.globalButton{margin-left:0 !important;}
div.viewSideBar input.globalButton{margin-left:0 !important}
2 changes: 1 addition & 1 deletion core/public/css/assetstore/assetstore.add.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/public/css/assetstore/assetstore.movedialog.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
div.bottomButtons{margin-top:15px;float:right;}#moveBitstreamsProgressBar{margin-bottom:6px;margin-top:6px;}
div.bottomButtons{float:right;margin-top:15px}#moveBitstreamsProgressBar{margin-bottom:6px;margin-top:6px}
2 changes: 1 addition & 1 deletion core/public/css/browse/browse.index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/public/css/browse/browse.movecopy.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/public/css/browse/browse.selectfolder.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/public/css/browse/browse.selectitem.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/public/css/common/common.browser.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/public/css/common/common.feed.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/public/css/common/common.genericPage.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/public/css/common/common.listfiles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/public/css/community/community.create.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/public/css/community/community.index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/public/css/community/community.invitation.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
input#urlInput{width:300px;}div#permissionsContent a{color:#56758b;cursor:pointer;font-weight:500;text-decoration:none;}div#permissionsContent a:hover{text-decoration:underline;}#live_invitation_search{width:100%;}
input#urlInput{width:300px}div#permissionsContent a{color:#56758b;cursor:pointer;font-weight:500;text-decoration:none}div#permissionsContent a:hover{text-decoration:underline}#live_invitation_search{width:100%}
2 changes: 1 addition & 1 deletion core/public/css/community/community.manage.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/public/css/community/community.promotedialog.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
input.addToGroupsSubmit{float:right;}img#promoteDialogLoading{float:left;}
input.addToGroupsSubmit{float:right}img#promoteDialogLoading{float:left}
2 changes: 1 addition & 1 deletion core/public/css/community/community.selectgroup.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
div.bottomButtons{float:right;margin-top:13px;}#groupSelect{margin-top:10px;width:100%;}
div.bottomButtons{float:right;margin-top:13px}#groupSelect{margin-top:10px;width:100%}
2 changes: 1 addition & 1 deletion core/public/css/community/community.view.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/public/css/error/error.error.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
div.errorMessage{margin-bottom:10px;margin-top:5px;}div.exceptionText{margin-top:20px;}
div.errorMessage{margin-bottom:10px;margin-top:5px}div.exceptionText{margin-top:20px}
2 changes: 1 addition & 1 deletion core/public/css/feed/feed.index.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
div.feedThumbnail img{display:none;height:31px;margin-right:4px;width:31px;}div.feedThumbnail a{border:0;}
div.feedThumbnail img{display:none;height:31px;margin-right:4px;width:31px}div.feedThumbnail a{border:0}
2 changes: 1 addition & 1 deletion core/public/css/folder/folder.createfolder.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
form#editFolderForm input[type="text"],form#editFolderForm input[type="password"]{width:350px !important;}form#editFolderForm textarea{width:350px !important;}
form#editFolderForm input[type='text'],form#editFolderForm input[type='password']{width:350px !important}form#editFolderForm textarea{width:350px !important}
Loading