Skip to content

Commit

Permalink
change code style to jshttp
Browse files Browse the repository at this point in the history
close verdaccio#155, see reasons there

This is a huge commit, so let me know if it will cause
any trouble, I might consider reverting it if it's the case.
  • Loading branch information
rlidwka committed Nov 12, 2014
1 parent bac62f6 commit 6a778e8
Show file tree
Hide file tree
Showing 51 changed files with 4,767 additions and 4,784 deletions.
11 changes: 1 addition & 10 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,7 @@ root = true
end_of_line = lf
insert_final_newline = true

# Tab indentation (no size specified)
[*.js]
indent_style = tab

# 2 space indentation
[{.,}*.y{a,}ml]
[{.,}*.{js,yml,yaml}]
indent_style = space
indent_size = 2

# Indentation override for Gruntfile
[Gruntfile.js]
indent_style = space
indent_size = 4
66 changes: 33 additions & 33 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readYAML('package.yaml'),
browserify: {
dist: {
files: {
'lib/static/main.js': ['lib/GUI/js/main.js']
},
options: {
debug: true,
transform: ['browserify-handlebars']
}
}
grunt.initConfig({
pkg: grunt.file.readYAML('package.yaml'),
browserify: {
dist: {
files: {
'lib/static/main.js': [ 'lib/GUI/js/main.js' ]
},
less: {
dist: {
files: {
'lib/static/main.css': ['lib/GUI/css/main.less']
},
options: {
sourceMap: true
}
}
options: {
debug: true,
transform: [ 'browserify-handlebars' ]
}
}
},
less: {
dist: {
files: {
'lib/static/main.css': [ 'lib/GUI/css/main.less' ]
},
watch: {
files: [ "lib/GUI/**/*"],
tasks: [ 'default' ]
options: {
sourceMap: true
}
});
}
},
watch: {
files: [ 'lib/GUI/**/*' ],
tasks: [ 'default' ]
}
})

grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-browserify')
grunt.loadNpmTasks('grunt-contrib-watch')
grunt.loadNpmTasks('grunt-contrib-less')

grunt.registerTask('default', [
'browserify',
'less'
]);
};
grunt.registerTask('default', [
'browserify',
'less'
])
}
58 changes: 29 additions & 29 deletions lib/GUI/css/responsive.less
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
@media (max-width: 992px) {
.body {
.main-header {
.npm-logo {
width: 100px;
float: left;
}
.body {
.main-header {
.npm-logo {
width: 100px;
float: left;
}

.packages-header {
border-bottom: none;
}
}
}
.packages-header {
border-bottom: none;
}
}
}
}

@media (max-width: 768px) {
.body {
.content {
padding-top: @mainHeaderHeight + @packagesHeaderHeight + @smRegistryInfoHeight + 10;
.body {
.content {
padding-top: @mainHeaderHeight + @packagesHeaderHeight + @smRegistryInfoHeight + 10;

.entry {
.title {
margin-bottom: 0;
}
.entry {
.title {
margin-bottom: 0;
}

.author {
float: none !important;
clear: both;
padding: 0 0 5px 18px;
}
}
}
.author {
float: none !important;
clear: both;
padding: 0 0 5px 18px;
}
}
}

.no-results {
margin: 10px 0 0;
}
}
.no-results {
margin: 10px 0 0;
}
}
}
Loading

0 comments on commit 6a778e8

Please sign in to comment.