Skip to content

Commit

Permalink
Include missing libraries for the bootstrap demo
Browse files Browse the repository at this point in the history
  • Loading branch information
hikalkan committed Jul 4, 2018
1 parent 80b1d7e commit fddcbd1
Show file tree
Hide file tree
Showing 139 changed files with 3,274 additions and 337 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
<MvcRazorExcludeRefAssembliesFromPublish>false</MvcRazorExcludeRefAssembliesFromPublish>
<MvcRazorCompileOnPublish>true</MvcRazorCompileOnPublish>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
module.exports = {
imports: [
"node_modules/@abp/aspnetcore.mvc.ui.theme.shared/abp.resourcemapping.js"
],
aliases: { //TODO: Make some aliases default: node_modules, libs
"@node_modules": "./node_modules",
"@libs": "./wwwroot/libs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var gulp = require("gulp"),
path = require('path'),
copyResources = require('./node_modules/@abp/aspnetcore.mvc.ui/gulp/copy-resources.js');

copyResources.init(path.resolve('./abp.resourcemapping.js'));
copyResources.init(path.resolve('./'));

gulp.task('default', [copyResources.taskName], function () {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "asp.net",
"private": true,
"dependencies": {
"@abp/aspnetcore.mvc.ui.theme.shared": "^0.2.3"
"@abp/aspnetcore.mvc.ui.theme.shared": "^0.3.5"
},
"devDependencies": {
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var abp = abp || {};
(function ($) {
(function () {

/* Application paths *****************************************/

Expand Down Expand Up @@ -187,57 +187,39 @@ var abp = abp || {};

abp.message = abp.message || {};

var showMessage = function (message, title) {
abp.message._showMessage = function (message, title) {
alert((title || '') + ' ' + message);

if (!$) {
abp.log.warn('abp.message can not return promise since jQuery is not defined!');
return null;
}

return $.Deferred(function ($dfd) {
$dfd.resolve();
});
};

abp.message.info = function (message, title) {
abp.log.warn('abp.message.info is not implemented!');
return showMessage(message, title);
return abp.message._showMessage(message, title);
};

abp.message.success = function (message, title) {
abp.log.warn('abp.message.success is not implemented!');
return showMessage(message, title);
return abp.message._showMessage(message, title);
};

abp.message.warn = function (message, title) {
abp.log.warn('abp.message.warn is not implemented!');
return showMessage(message, title);
return abp.message._showMessage(message, title);
};

abp.message.error = function (message, title) {
abp.log.warn('abp.message.error is not implemented!');
return showMessage(message, title);
return abp.message._showMessage(message, title);
};

abp.message.confirm = function (message, titleOrCallback, callback) {
abp.log.warn('abp.message.confirm is not implemented!');
abp.log.warn('abp.message.confirm is not properly implemented!');

if (titleOrCallback && !(typeof titleOrCallback == 'string')) {
callback = titleOrCallback;
}

var result = confirm(message);
callback && callback(result);

if (!$) {
abp.log.warn('abp.message can not return promise since jQuery is not defined!');
return null;
}

return $.Deferred(function ($dfd) {
$dfd.resolve(result);
});
};

/* UI *******************************************************/
Expand Down Expand Up @@ -422,12 +404,6 @@ var abp = abp || {};
};

abp.utils.isFunction = function (obj) {
if ($) {
//Prefer to use jQuery if possible
return $.isFunction(obj);
}

//alternative for $.isFunction
return !!(obj && obj.constructor && obj.call && obj.apply);
};

Expand Down

This file was deleted.

Loading

0 comments on commit fddcbd1

Please sign in to comment.