|
Before Width: | Height: | Size: 123 KiB After Width: | Height: | Size: 123 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 8.4 KiB |
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 106 KiB |
|
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 7.9 KiB |
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 8.5 KiB |
|
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
@ -0,0 +1,13 @@ |
|||||
|
using Volo.Abp.AspNetCore.Mvc.UI.Bundling; |
||||
|
using System.Collections.Generic; |
||||
|
|
||||
|
namespace Volo.Abp.AspNetCore.Mvc.UI.Packages.CropperJs |
||||
|
{ |
||||
|
public class CropperJsScriptContributor : BundleContributor |
||||
|
{ |
||||
|
public override void ConfigureBundle(BundleConfigurationContext context) |
||||
|
{ |
||||
|
context.Files.AddIfNotContains("/libs/cropperjs/js/cropper.min.js"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,13 @@ |
|||||
|
using System.Collections.Generic; |
||||
|
using Volo.Abp.AspNetCore.Mvc.UI.Bundling; |
||||
|
|
||||
|
namespace Volo.Abp.AspNetCore.Mvc.UI.Packages.CropperJs |
||||
|
{ |
||||
|
public class CropperJsStyleContributor : BundleContributor |
||||
|
{ |
||||
|
public override void ConfigureBundle(BundleConfigurationContext context) |
||||
|
{ |
||||
|
context.Files.AddIfNotContains("/libs/cropperjs/css/cropper.min.css"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,16 @@ |
|||||
|
using System.Collections.Generic; |
||||
|
using Volo.Abp.AspNetCore.Mvc.UI.Bundling; |
||||
|
using Volo.Abp.AspNetCore.Mvc.UI.Packages.JQuery; |
||||
|
using Volo.Abp.Modularity; |
||||
|
|
||||
|
namespace Volo.Abp.AspNetCore.Mvc.UI.Packages.StarRatingSvg |
||||
|
{ |
||||
|
[DependsOn(typeof(JQueryScriptContributor))] |
||||
|
public class StarRatingSvgScriptContributor : BundleContributor |
||||
|
{ |
||||
|
public override void ConfigureBundle(BundleConfigurationContext context) |
||||
|
{ |
||||
|
context.Files.AddIfNotContains("/libs/star-rating-svg/js/jquery.star-rating-svg.min.js"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,13 @@ |
|||||
|
using System.Collections.Generic; |
||||
|
using Volo.Abp.AspNetCore.Mvc.UI.Bundling; |
||||
|
|
||||
|
namespace Volo.Abp.AspNetCore.Mvc.UI.Packages.StarRatingSvg |
||||
|
{ |
||||
|
public class StarRatingSvgStyleContributor : BundleContributor |
||||
|
{ |
||||
|
public override void ConfigureBundle(BundleConfigurationContext context) |
||||
|
{ |
||||
|
context.Files.AddIfNotContains("/libs/star-rating-svg/css/star-rating-svg.css"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,46 @@ |
|||||
|
var abp = abp || {}; |
||||
|
(function () { |
||||
|
|
||||
|
if (!luxon) { |
||||
|
throw "abp/luxon library requires the luxon library included to the page!"; |
||||
|
} |
||||
|
|
||||
|
/* TIMING *************************************************/ |
||||
|
|
||||
|
abp.timing = abp.timing || {}; |
||||
|
|
||||
|
var setObjectValue = function (obj, property, value) { |
||||
|
if (typeof property === "string") { |
||||
|
property = property.split('.'); |
||||
|
} |
||||
|
|
||||
|
if (property.length > 1) { |
||||
|
var p = property.shift(); |
||||
|
setObjectValue(obj[p], property, value); |
||||
|
} else { |
||||
|
obj[property[0]] = value; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
var getObjectValue = function (obj, property) { |
||||
|
return property.split('.').reduce((a, v) => a[v], obj) |
||||
|
} |
||||
|
|
||||
|
abp.timing.convertFieldsToIsoDate = function (form, fields) { |
||||
|
for (var field of fields) { |
||||
|
var dateTime = luxon.DateTime |
||||
|
.fromFormat( |
||||
|
getObjectValue(form, field), |
||||
|
abp.localization.currentCulture.dateTimeFormat.shortDatePattern, |
||||
|
{locale: abp.localization.currentCulture.cultureName} |
||||
|
); |
||||
|
|
||||
|
if (!dateTime.invalid) { |
||||
|
setObjectValue(form, field, dateTime.toFormat("yyyy-MM-dd HH:mm:ss")) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
return form; |
||||
|
} |
||||
|
|
||||
|
})(jQuery); |
||||
@ -0,0 +1,6 @@ |
|||||
|
module.exports = { |
||||
|
mappings: { |
||||
|
"@node_modules/cropperjs/dist/cropper.min.js": "@libs/cropperjs/js/", |
||||
|
"@node_modules/cropperjs/dist/cropper.min.css": "@libs/cropperjs/css/", |
||||
|
}, |
||||
|
}; |
||||
@ -0,0 +1,12 @@ |
|||||
|
{ |
||||
|
"version": "3.0.5", |
||||
|
"name": "@abp/cropperjs", |
||||
|
"publishConfig": { |
||||
|
"access": "public" |
||||
|
}, |
||||
|
"dependencies": { |
||||
|
"@abp/core": "~3.0.5", |
||||
|
"cropperjs": "^1.5.7" |
||||
|
}, |
||||
|
"gitHead": "bb4ea17d5996f01889134c138d00b6c8f858a431" |
||||
|
} |
||||
@ -0,0 +1,6 @@ |
|||||
|
module.exports = { |
||||
|
mappings: { |
||||
|
"@node_modules/star-rating-svg/dist/*.min.js": "@libs/star-rating-svg/js/", |
||||
|
"@node_modules/star-rating-svg/src/css/*.css": "@libs/star-rating-svg/css/", |
||||
|
}, |
||||
|
}; |
||||
@ -0,0 +1,12 @@ |
|||||
|
{ |
||||
|
"version": "3.1.0-rc.2", |
||||
|
"name": "@abp/star-rating-svg", |
||||
|
"publishConfig": { |
||||
|
"access": "public" |
||||
|
}, |
||||
|
"dependencies": { |
||||
|
"@abp/jquery": "~3.1.0-rc.2", |
||||
|
"star-rating-svg": "^3.5.0" |
||||
|
}, |
||||
|
"gitHead": "bb4ea17d5996f01889134c138d00b6c8f858a431" |
||||
|
} |
||||