Skip to content
This repository was archived by the owner on Jan 23, 2024. It is now read-only.

Commit 8eea2a5

Browse files
committed
Merge pull request #33 from gbhasha/master
Made changes to work with latest node(v0.12.4) and latest angular (v1.4)
2 parents 8bb071b + 990fbeb commit 8eea2a5

File tree

12 files changed

+53
-53
lines changed

12 files changed

+53
-53
lines changed

_footer.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
</script>
1515
<script src="theme-build/js/main.js"></script>
1616
<script type="text/javascript">
17-
function TypeaheadCtrl($scope) {
17+
18+
angular.module("cortana").controller("TypeaheadCtrl", function($scope) {
1819
$scope.selected = undefined;
1920
$scope.searchData =
2021
<%= "[" %>
@@ -35,7 +36,8 @@
3536
$scope.onSelect = function ($item, $model, $label) {
3637
window.location.replace($item.path);
3738
};
38-
}
39+
});
40+
3941
</script>
4042
<script type="text/ng-template" id="customTemplate.html">
4143
<a href="{{match.model.path}}">

assets/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
========================================================== */
1010

1111
(function(){
12-
var app = angular.module('cortana', ['mgcrea.ngStrap', 'ui.bootstrap']);
12+
var app = angular.module('cortana', ['ui.bootstrap']);
1313

1414
app.controller('MainController', function($scope) {
1515
});

assets/js/slidenav.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// });
1717
$('#open-left').on('click', function(event) {
1818
event.preventDefault();
19-
cortanaSlidebars.toggle('left');
19+
cortanaSlidebars.slidebars.toggle('left');
2020
});
2121

2222
});

assets/sass/search.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
border: 1px solid $silver !important;
5252
border-radius: 3px !important;
5353
box-shadow: 0 5px 10px rgba(0,0,0,.2) !important;
54+
position: absolute;
55+
list-style: none;
5456
}
5557

5658
.cortana-search-wrapper li {

bower.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,13 @@
55
"**/.*",
66
"gulpfile.js",
77
"assets",
8-
"package.json"
8+
"package.json",
9+
"vendors"
910
],
1011
"devDependencies": {
11-
"jquery": "1.10.*",
12-
"Slidebars": "~0.9.4",
13-
"angular": "1.2.*",
14-
"angular-strap": "2.0.*",
15-
"angular-bootstrap": "0.11.*"
16-
},
17-
"resolutions": {
18-
"angular": "1.3.0"
12+
"Slidebars": "~0.10.3",
13+
"angular": "~1.4.0",
14+
"angular-bootstrap": "~0.13.0",
15+
"jquery": "~2.1.4"
1916
}
2017
}

gulpfile.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ var gulp = require('gulp'),
1414

1515
// SASS compile, autoprefix and minify task
1616
gulp.task('styles', function() {
17-
return gulp.src('assets/sass/cortana.scss')
18-
.pipe(sass())
17+
return sass('assets/sass/cortana.scss')
1918
.on('error', gutil.beep)
2019
.on('error', notify.onError("Error: <%= error.message %>"))
2120
.pipe(autoprefixer('last 2 version', 'safari 5', 'ie 8', 'ie 9', 'opera 12.1'))
@@ -26,8 +25,8 @@ gulp.task('styles', function() {
2625
// CSS vendors concat and minify
2726
gulp.task('css_vendors', function() {
2827
gulp.src([
29-
'vendors/Slidebars/distribution/0.9.4/slidebars.css',
30-
'vendors/angular-motion/dist/angular-motion.css'
28+
'vendors/Slidebars/dist/slidebars.css',
29+
'vendors/angular-bootstrap/ui-bootstrap-csp.css'
3130
])
3231
.pipe(concat('vendors.css'))
3332
.pipe(minifycss())
@@ -49,12 +48,9 @@ gulp.task('scripts', function() {
4948
// JS vendors concat and minify
5049
gulp.task('js_vendors', function() {
5150
gulp.src([
52-
'vendors/jquery/jquery.js',
53-
'vendors/Slidebars/distribution/0.9.4/slidebars.min.js',
51+
'vendors/jquery/dist/jquery.js',
52+
'vendors/Slidebars/dist/slidebars.js',
5453
'vendors/angular/angular.js',
55-
'vendors/angular-animate/angular-animate.js',
56-
'vendors/angular-strap/dist/angular-strap.min.js',
57-
'vendors/angular-strap/dist/angular-strap.tpl.min.js',
5854
'vendors/angular-bootstrap/ui-bootstrap.js',
5955
'vendors/angular-bootstrap/ui-bootstrap-tpls.js'
6056
])

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
"version": "0.1.0",
44
"description": "A nice Hologram theme",
55
"devDependencies": {
6-
"gulp-minify-css": "~0.3.0",
7-
"gulp-ruby-sass": "~0.3.1",
8-
"gulp-autoprefixer": "0.0.6",
9-
"gulp-notify": "~1.0.0-beta",
10-
"gulp-util": "~2.2.14",
11-
"gulp": "~3.6.0",
12-
"gulp-jshint": "~1.4.2",
13-
"browser-sync": "~0.7.3",
14-
"gulp-rename": "~1.1.0",
15-
"gulp-uglify": "~0.2.1",
16-
"gulp-concat": "~2.1.7",
17-
"jshint-stylish": "~0.1.5",
18-
"gulp-shell": "~0.2.4"
6+
"gulp-minify-css": "~1.1.6",
7+
"gulp-ruby-sass": "~1.0.5",
8+
"gulp-autoprefixer": "2.3.1",
9+
"gulp-notify": "~2.2.0",
10+
"gulp-util": "~3.0.5",
11+
"gulp": "~3.9.0",
12+
"gulp-jshint": "~1.11.0",
13+
"browser-sync": "~2.7.7",
14+
"gulp-rename": "~1.2.2",
15+
"gulp-uglify": "~1.2.0",
16+
"gulp-concat": "~2.5.2",
17+
"jshint-stylish": "~2.0.0",
18+
"gulp-shell": "~0.4.2"
1919
}
2020
}

theme-build/css/cortana.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

theme-build/css/vendors.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

theme-build/js/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
========================================================== */
1010

1111
(function(){
12-
var app = angular.module('cortana', ['mgcrea.ngStrap', 'ui.bootstrap']);
12+
var app = angular.module('cortana', ['ui.bootstrap']);
1313

1414
app.controller('MainController', function($scope) {
1515
});
@@ -33,7 +33,7 @@
3333
// });
3434
$('#open-left').on('click', function(event) {
3535
event.preventDefault();
36-
cortanaSlidebars.toggle('left');
36+
cortanaSlidebars.slidebars.toggle('left');
3737
});
3838

3939
});

0 commit comments

Comments
 (0)