forked from vitalets/bootstrap-editable
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
62 changed files
with
2,097 additions
and
1,669 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,2 +1,3 @@ | |||
node_modules | node_modules | ||
dist | dist | ||
test/instrumented/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,56 @@ | |||
Bootstrap-editable change log | |||
============================= | |||
|
|||
Version 1.1.0 Aug 26, 2012 | |||
---------------------------- | |||
Enh #23: Added event 'update' (@vitalets) | |||
Enh: When 'toggle' option defined, no 'editable' css set to element (@vitalets) | |||
Enh: Smart autotext option for select, loads text only if source defined as object (@vitalets) | |||
Enh #5: Replace jQuery-ui datepicker with bootstrap-datepicker (@vitalets) | |||
Enh #22: Select: convert 'source' from native array to object (@vitalets) | |||
Enh #21: Default value of 'enablefocus' set to false (@vitalets) | |||
Enh #20: More RESTful: when http status != 200 popover shows responseText (@vitalets) | |||
Bug #19: Zip opens incorrectly on Mac OS (@vitalets) | |||
|
|||
|
|||
Version 1.0.5 Aug 8, 2012 | |||
---------------------------- | |||
Bug #18: In submit method value should be set by getInputValue (@vitalets) | |||
Enh #17: Show response text in error when HTTP != 200 (@vitalets) | |||
Enh #16: SELECT: set link text according to value (@vitalets) | |||
Enh #15: Generate release notes (@vitalets) | |||
Enh #14: Disable focus management (@vitalets) | |||
Enh #13: Json in html data-* attributes (@vitalets) | |||
Bug #12: When text contains escaped html it is processed incorrectly (@vitalets) | |||
Enh #11: Add to dist all required libs (jquery, bootstrap, jquery-ui + theme) (@vitalets) | |||
Enh #10: SELECT: cache and share source data between selects (@vitalets) | |||
Enh #9: Pk function in element context (@vitalets) | |||
Enh #8: Method to customize text render (@vitalets) | |||
Enh #7: Add empty value to SELECT list (@vitalets) | |||
|
|||
|
|||
Version 1.0.4 Aug 2, 2012 | |||
---------------------------- | |||
Enh #1: Trigger popover by click on another element (@vitalets) | |||
Enh #6: Allow inline source for select (@fdev) | |||
|
|||
|
|||
Version 1.0.3 Jul 20, 2012 | |||
---------------------------- | |||
Enh #3: Tabbular input without mouse (@vitalets) | |||
Enh #4: Arrange build on Grunt.js (@vitalets) | |||
|
|||
|
|||
Version 1.0.2 Jul 19, 2012 | |||
---------------------------- | |||
Enh: Close all popovers when openning new one (@vitalets) | |||
|
|||
|
|||
Version 1.0.1 Jul 18, 2012 | |||
---------------------------- | |||
Bug: Ajax not sent properly (@vitalets) | |||
|
|||
|
|||
Version 1.0.0 Jul 18, 2012 | |||
---------------------------- | |||
Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,114 +1,131 @@ | |||
/*global module:false*/ | /*global module:false*/ | ||
module.exports = function(grunt) { | module.exports = function(grunt) { | ||
|
|
||
grunt.loadNpmTasks('grunt-contrib'); | grunt.loadNpmTasks('grunt-contrib'); | ||
|
|
||
grunt.loadTasks('tasks/'); | //grunt.loadTasks('tasks/'); | ||
|
|
||
// Project configuration. | // Project configuration. | ||
grunt.initConfig({ | grunt.initConfig({ | ||
pkg: '<json:package.json>', | pkg: '<json:package.json>', | ||
dist: 'dist', | dist: 'dist', | ||
dist_source: '<%= dist %>/bootstrap-editable', | dist_source: '<%= dist %>/bootstrap-editable', | ||
meta: { | meta: { | ||
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> \n' + | banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> \n' + | ||
'* <%= pkg.description %>\n' + | '* <%= pkg.description %>\n' + | ||
'* <%= pkg.homepage %>\n\n' + | '* <%= pkg.homepage %>\n' + | ||
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' + | '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' + | ||
' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */' | ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */' | ||
}, | }, | ||
clean: ['<config:dist>'], | clean: ['<config:dist>'], | ||
concat: { | concat: { | ||
dist_js: { | dist_js: { | ||
src: ['<banner:meta.banner>', '<file_strip_banner:src/js/<%= pkg.name %>.js>'], | src: ['<banner:meta.banner>', '<file_strip_banner:src/js/bootstrap-editable.js>', '<file_strip_banner:src/js/bootstrap-datepicker.js>'], | ||
dest: '<%= dist_source %>/js/<%= pkg.name %>.js' | dest: '<%= dist_source %>/js/<%= pkg.name %>.js' | ||
}, | }, | ||
dist_css: { | dist_css: { | ||
src: ['<banner:meta.banner>', '<file_strip_banner:src/css/<%= pkg.name %>.css>'], | src: ['<banner:meta.banner>', '<file_strip_banner:src/css/bootstrap-editable.css>', '<file_strip_banner:src/css/datepicker.css>'], | ||
dest: '<%= dist_source %>/css/<%= pkg.name %>.css' | dest: '<%= dist_source %>/css/<%= pkg.name %>.css' | ||
} | } | ||
}, | }, | ||
changelog: { | /* disable that task as it's better to write changelog manualy | ||
user: 'vitalets', | changelog: { | ||
repo: 'bootstrap-editable' | user: 'vitalets', | ||
}, | repo: 'bootstrap-editable', | ||
min: { | dest: 'CHANGELOG.txt' | ||
dist: { | }, | ||
src: ['<banner:meta.banner>', '<config:concat.dist_js.dest>'], | */ | ||
dest: '<%= dist_source %>/js/<%= pkg.name %>.min.js' | min: { | ||
} | dist: { | ||
}, | src: ['<banner:meta.banner>', '<config:concat.dist_js.dest>'], | ||
qunit: { | dest: '<%= dist_source %>/js/<%= pkg.name %>.min.js' | ||
files: ['test/index.html'] | } | ||
}, | }, | ||
lint: { | qunit: { | ||
//TODO: lint tests files | files: ['test/index.html'] | ||
//files: ['grunt.js', 'src/js/*.js', 'test/**/*.js'] | }, | ||
files: ['grunt.js', 'src/js/*.js'] | lint: { | ||
}, | //TODO: lint tests files | ||
watch: { | //files: ['grunt.js', 'src/js/*.js', 'test/**/*.js'] | ||
files: '<config:lint.files>', | // files: ['grunt.js', 'src/js/*.js'] | ||
tasks: 'lint qunit' | files: ['grunt.js', 'src/js/bootstrap-editable.js'] | ||
}, | }, | ||
jshint: { | watch: { | ||
options: { | files: '<config:lint.files>', | ||
curly: true, | tasks: 'lint qunit' | ||
eqeqeq: true, | }, | ||
immed: true, | jshint: { | ||
latedef: true, | options: { | ||
newcap: true, | curly: true, | ||
noarg: true, | eqeqeq: true, | ||
sub: true, | immed: true, | ||
undef: true, | latedef: true, | ||
boss: true, | newcap: true, | ||
eqnull: true, | noarg: true, | ||
browser: true, | sub: true, | ||
evil: true //allow eval | undef: true, | ||
}, | boss: true, | ||
globals: { | eqnull: true, | ||
jQuery: true | browser: true, | ||
} | evil: false //allow eval | ||
}, | }, | ||
copy: { | globals: { | ||
dist: { | jQuery: true | ||
files: { | } | ||
'<%= dist_source %>/img' : 'src/img/*', | }, | ||
'<%= dist_source %>': ['LICENSE-GPL', 'LICENSE-MIT', 'README.md', 'CHANGELOG'] | copy: { | ||
}, | dist: { | ||
options: { | files: { | ||
flatten: true | '<%= dist_source %>/img' : 'src/img/*', | ||
} | '<%= dist_source %>': ['LICENSE-GPL', 'LICENSE-MIT', 'README.md', 'CHANGELOG.txt'] | ||
}, | }, | ||
libs: { | options: { | ||
files: { | flatten: true | ||
'<%= dist %>/libs': ['libs/bootstrap/**', 'libs/jquery/**', 'libs/jquery-ui/**'] | } | ||
}, | }, | ||
options: { | libs: { | ||
basePath: 'libs', | files: { | ||
flatten: false | '<%= dist %>/libs': ['libs/bootstrap/**', 'libs/jquery/**'] | ||
} | }, | ||
} | options: { | ||
}, | basePath: 'libs', | ||
compress: { | flatten: false | ||
zip: { | } | ||
options: { | } | ||
mode: "zip", | }, | ||
//TODO: unfortunatly here <%= dist_source %> and <config:dist_source> does not work | //compress does not work properly for MAC OS (see https://github.com/vitalets/bootstrap-editable/issues/19) | ||
basePath: "dist" | //zip will be created manually | ||
}, | /* | ||
files: { | compress: { | ||
"<%= dist %>/bootstrap-editable-v<%= pkg.version %>.zip": "<%= dist %>/**" | zip: { | ||
} | options: { | ||
} | mode: "zip", | ||
}, | //TODO: unfortunatly here <%= dist_source %> and <config:dist_source> does not work | ||
uglify: {} | basePath: "dist" | ||
}); | }, | ||
|
files: { | ||
// Default task. | "<%= dist %>/bootstrap-editable-v<%= pkg.version %>.zip": ["<%= dist_source %>/ **", "<%= dist %>/libs/ **"] | ||
grunt.registerTask('default', 'lint qunit'); | } | ||
|
}, | ||
// build | tgz: { | ||
grunt.registerTask('build', 'clean lint qunit concat min copy compress'); | options: { | ||
|
mode: "tgz", | ||
//to run particular task use ":", e.g. copy:libs | basePath: "dist" | ||
}; | }, | ||
files: { | |||
"<%= dist %>/bootstrap-editable-v<%= pkg.version %>.tar.gz": ["<%= dist_source %>/ **", "<%= dist %>/libs/ **"] | |||
} | |||
} | |||
}, | |||
*/ | |||
uglify: {} | |||
}); | |||
|
|||
// Default task. | |||
grunt.registerTask('default', 'lint qunit'); | |||
|
|||
// build | |||
grunt.registerTask('build', 'clean lint qunit concat min copy'); | |||
|
|||
//to run particular task use ":", e.g. copy:libs | |||
}; |
Binary file removed
BIN
-180 Bytes
libs/jquery-ui/bootstrap-theme/images/ui-bg_flat_0_aaaaaa_40x100.png
Binary file not shown.
Binary file removed
BIN
-120 Bytes
libs/jquery-ui/bootstrap-theme/images/ui-bg_glass_55_fbf9ee_1x400.png
Binary file not shown.
Binary file removed
BIN
-105 Bytes
libs/jquery-ui/bootstrap-theme/images/ui-bg_glass_65_ffffff_1x400.png
Binary file not shown.
Binary file removed
BIN
-111 Bytes
libs/jquery-ui/bootstrap-theme/images/ui-bg_glass_75_dadada_1x400.png
Binary file not shown.
Binary file removed
BIN
-110 Bytes
libs/jquery-ui/bootstrap-theme/images/ui-bg_glass_75_e6e6e6_1x400.png
Binary file not shown.
Binary file removed
BIN
-107 Bytes
libs/jquery-ui/bootstrap-theme/images/ui-bg_glass_75_ffffff_1x400.png
Binary file not shown.
Binary file removed
BIN
-101 Bytes
libs/jquery-ui/bootstrap-theme/images/ui-bg_highlight-soft_75_cccccc_1x100.png
Binary file not shown.
Binary file removed
BIN
-123 Bytes
libs/jquery-ui/bootstrap-theme/images/ui-bg_inset-soft_95_fef1ec_1x100.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.