forked from django-cms/django-filer
-
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.
CMS-735: Implement FE part of sidebar image settings
- Loading branch information
Evgeniy Negometyanov
committed
Nov 23, 2015
1 parent
7dd0647
commit 4609532
Showing
14 changed files
with
237 additions
and
8 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div class="js-focal-point" id="container"> | ||
<img src="image.url" data-ratio="4.638095" width="210" height="266" class="js-focal-point-image" id="image"> | ||
<div class="js-focal-point-circle hidden" id="circle"></div> | ||
<input type="hidden" class="js-focal-point-location" id="location"> | ||
</div> |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
'use strict'; | ||
|
||
// ############################################################################# | ||
// CONFIGURATION | ||
|
||
// rake spec:javascript loads specs relative to the tmp/jasmine/runner.html, need to override: | ||
module.exports = function (config) { | ||
var browsers = { | ||
'PhantomJS': 'used for local testing' | ||
}; | ||
|
||
var settings = { | ||
// base path that will be used to resolve all patterns (eg. files, exclude) | ||
basePath: '..', | ||
|
||
// frameworks to use | ||
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter | ||
frameworks: ['jasmine', 'fixture'], | ||
|
||
// list of files / patterns to load in the browser | ||
// tests/${path} | ||
files: [ | ||
// the current order meets the dependency requirements | ||
// dependency loading is not handled yet | ||
'../static/filer/js/libs/jquery.min.js', | ||
'../static/filer/js/libs/!(jquery.min)*.js', | ||
'../static/filer/js/addons/mediator.min.js', | ||
|
||
'frontend/unit/mocks.js', | ||
'frontend/unit/mock-ajax.js', | ||
|
||
'../static/filer/js/addons/!(mediator.min)*.js', | ||
|
||
// tests themselves | ||
'frontend/unit/*.js', | ||
|
||
// fixture patterns | ||
{ | ||
pattern: 'frontend/fixtures/**/*' | ||
} | ||
], | ||
|
||
// list of files to exclude | ||
exclude: [], | ||
|
||
// preprocess matching files before serving them to the browser | ||
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor | ||
preprocessors: { | ||
// for fixtures | ||
'**/*.html': ['html2js'], | ||
'**/*.json': ['json_fixtures'] | ||
}, | ||
|
||
// fixtures dependency | ||
// https://github.com/billtrik/karma-fixture | ||
jsonFixturesPreprocessor: { | ||
variableName: '__json__' | ||
}, | ||
|
||
// web server port | ||
port: 9876, | ||
|
||
// enable / disable colors in the output (reporters and logs) | ||
colors: true, | ||
|
||
// level of logging | ||
// possible values: | ||
// config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG | ||
logLevel: config.LOG_INFO, | ||
|
||
// enable / disable watching file and executing tests whenever any file changes | ||
autoWatch: true, | ||
|
||
// start these browsers | ||
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher | ||
browsers: Object.keys(browsers), | ||
|
||
// Continuous Integration mode | ||
// if true, Karma captures browsers, runs the tests and exits | ||
singleRun: false | ||
}; | ||
|
||
config.set(settings); | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.