Skip to content
This repository was archived by the owner on Apr 7, 2020. It is now read-only.

Commit 01b89b9

Browse files
committed
update dependencies
1 parent 9fac032 commit 01b89b9

File tree

9 files changed

+11760
-48
lines changed

9 files changed

+11760
-48
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ bower_components
2929

3030
#editors
3131
.idea
32+
.vscode

bower.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,5 @@
2525
"test",
2626
"tests"
2727
],
28-
"dependencies": {
29-
"angular": "~1.3.20"
30-
}
28+
"dependencies": {}
3129
}

example/example.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
'use strict';
22

3-
angular.module('example', ['ui.mention']).run(function ($rootScope) {
3+
angular.module('example', ['ui.mention']).run(["$rootScope", function ($rootScope) {
44
$rootScope.post = {
55
message: 'hi there @k'
66
};
7-
}).directive('mentionExample', function () {
7+
}]).directive('mentionExample', function () {
88
return {
99
require: 'uiMention',
1010
link: function link($scope, $element, $attrs, uiMention) {

example/example.min.js

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

example/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8">
55
<title>AngularUI | ui-mention Example</title>
66
<link rel="stylesheet" href="styles.css">
7-
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
7+
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.20/angular.min.js"></script>
88
<!--<script src="../bower_components/angular/angular.min.js"></script>-->
99
<script src="../dist/mention.js"></script>
1010
<script src="example.js"></script>

example/styles.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ textarea[ui-mention] {
1818
z-index: 2;
1919
position: relative; }
2020
textarea[ui-mention][ui-mention] {
21-
background: transparent; }
21+
background: rgba(0, 0, 0, 0); }
2222

2323
a {
2424
color: blue;
@@ -39,9 +39,9 @@ a {
3939
border: 1px;
4040
padding: 2px;
4141
z-index: 1;
42-
color: transparent;
42+
color: rgba(0, 0, 0, 0);
4343
white-space: pre-wrap;
44-
border: 1px solid transparent;
44+
border: 1px solid rgba(0, 0, 0, 0);
4545
width: 100%; }
4646
.mention-highlight span {
4747
border-radius: 3px;

gulpfile.js

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,36 @@ var paths = {
2727
}
2828
};
2929

30-
gulp.task('default', ['scripts']);
30+
gulp.task('scripts', scripts(paths.scripts));
31+
gulp.task('scripts:example', scripts(paths.example.scripts));
32+
33+
gulp.task('styles', styles(paths.styles));
34+
gulp.task('styles:example', styles(paths.example.styles));
3135

32-
gulp.task('example', ['scripts:example', 'styles:example']);
36+
gulp.task('default', gulp.series('scripts'));
37+
gulp.task('example', gulp.series('scripts:example', 'styles:example'));
3338

3439
gulp.task('watch', function(){
35-
gulp.watch(paths.scripts.src, ['scripts']);
36-
gulp.watch(paths.styles.src, ['styles']);
40+
gulp.watch(paths.scripts.src, gulp.series('scripts'));
41+
gulp.watch(paths.styles.src, gulp.series('styles'));
3742
});
3843

3944
gulp.task('watch:example', function(){
40-
gulp.watch(paths.example.scripts.src, ['scripts:example']);
41-
gulp.watch(paths.example.styles.src, ['styles:example']);
45+
gulp.watch(paths.example.scripts.src, gulp.series('scripts:example'));
46+
gulp.watch(paths.example.styles.src, gulp.series('styles:example'));
4247
});
4348

44-
gulp.task('scripts', scripts(paths.scripts));
45-
gulp.task('scripts:example', scripts(paths.example.scripts));
49+
gulp.task('karma', karma());
50+
gulp.task('watch:karma', karma({ singleRun: false, autoWatch: true }));
51+
function karma (opts) {
52+
opts = opts || {};
53+
opts.configFile = __dirname + '/karma.conf.js';
54+
55+
return function (done) {
56+
return new Karma(opts, done).start();
57+
}
58+
}
59+
4660
function scripts(path, concat) {
4761
return function() {
4862
return gulp.src(path.src)
@@ -59,8 +73,6 @@ function scripts(path, concat) {
5973
}
6074
}
6175

62-
gulp.task('styles', styles(paths.styles));
63-
gulp.task('styles:example', styles(paths.example.styles));
6476
function styles(path) {
6577
return function() {
6678
return gulp.src(path.src)
@@ -70,14 +82,3 @@ function styles(path) {
7082
.pipe(plugins.sourcemaps.write('.'));
7183
}
7284
}
73-
74-
gulp.task('karma', karma());
75-
gulp.task('watch:karma', karma({ singleRun: false, autoWatch: true }));
76-
function karma (opts) {
77-
opts = opts || {};
78-
opts.configFile = __dirname + '/karma.conf.js';
79-
80-
return function (done) {
81-
return new Karma(opts, done).start();
82-
}
83-
}

0 commit comments

Comments
 (0)