Update files to upstream

1. update js file content.
2. remove scss file and add css file.
3. add the html template file.

Change-Id: I328b902b43def31d0f1e8a31da8c2c427c2bfa65
This commit is contained in:
Xinni Ge 2018-04-10 18:45:06 +09:00 committed by Akihiro Motoki
parent bd23c92975
commit 59bdf1db3a
3 changed files with 20 additions and 28 deletions

View File

@ -0,0 +1,20 @@
<div class="cg-notify-message" ng-class="[$classes,
$position === 'center' ? 'cg-notify-message-center' : '',
$position === 'left' ? 'cg-notify-message-left' : '',
$position === 'right' ? 'cg-notify-message-right' : '']"
ng-style="{'margin-left': $centerMargin}">
<div ng-show="!$messageTemplate">
{{$message}}
</div>
<div ng-show="$messageTemplate" class="cg-notify-message-template">
</div>
<button type="button" class="cg-notify-close" ng-click="$close()">
<span aria-hidden="true">&times;</span>
<span class="cg-notify-sr-only">Close</span>
</button>
</div>

View File

@ -154,31 +154,3 @@ angular.module('cgNotify', []).factory('notify',['$timeout','$http','$compile','
return notify;
}
]);
angular.module('cgNotify').run(['$templateCache', function($templateCache) {
'use strict';
$templateCache.put('angular-notify.html',
"<div class=\"cg-notify-message\" ng-class=\"[$classes, \n" +
" $position === 'center' ? 'cg-notify-message-center' : '',\n" +
" $position === 'left' ? 'cg-notify-message-left' : '',\n" +
" $position === 'right' ? 'cg-notify-message-right' : '']\"\n" +
" ng-style=\"{'margin-left': $centerMargin}\">\n" +
"\n" +
" <div ng-show=\"!$messageTemplate\">\n" +
" {$ $message $}\n" +
" </div>\n" +
"\n" +
" <div ng-show=\"$messageTemplate\" class=\"cg-notify-message-template\">\n" +
" \n" +
" </div>\n" +
"\n" +
" <button type=\"button\" class=\"cg-notify-close\" ng-click=\"$close()\">\n" +
" <span aria-hidden=\"true\">&times;</span>\n" +
" <span class=\"cg-notify-sr-only\">Close</span>\n" +
" </button>\n" +
"\n" +
"</div>"
);
}]);