From 3f38fddc65ea9a48c3a6142797e596162c5987ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Mon, 27 Feb 2017 11:35:24 +0300 Subject: [PATCH] Added sample style for mongo blog. --- .gitignore | 3 +- .../Areas/Blog/Views/Posts/Index.cshtml | 16 ++++-- .../Areas/Blog/Views/Posts/Index.css | 7 +++ .../Areas/Blog/Views/Posts/Index.min.css | 1 + .../Areas/Blog/Views/Posts/Index.scss | 11 ++++ .../AbpDesk.MongoBlog/compilerconfig.json | 6 +++ .../compilerconfig.json.defaults | 49 ++++++++++++++++++ src/AbpDesk/AbpDesk.Web.Mvc/Startup.cs | 2 +- src/AbpDesk/Web_PlugIns/AbpDesk.MongoBlog.dll | Bin 15872 -> 16896 bytes 9 files changed, 88 insertions(+), 7 deletions(-) create mode 100644 src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.css create mode 100644 src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.min.css create mode 100644 src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.scss create mode 100644 src/AbpDesk/AbpDesk.MongoBlog/compilerconfig.json create mode 100644 src/AbpDesk/AbpDesk.MongoBlog/compilerconfig.json.defaults diff --git a/.gitignore b/.gitignore index e091af4b1c3..059f75f92f5 100644 --- a/.gitignore +++ b/.gitignore @@ -252,4 +252,5 @@ paket-files/ *.sln.iml # ABP -build/outputs \ No newline at end of file +build/outputs +src/AbpDesk/AbpDesk.Web.Mvc/Logs \ No newline at end of file diff --git a/src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.cshtml b/src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.cshtml index fd4730b7e9d..7c97a9306f1 100644 --- a/src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.cshtml +++ b/src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.cshtml @@ -2,6 +2,10 @@

Blog Posts

+@section styles { + +} + \ No newline at end of file diff --git a/src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.css b/src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.css new file mode 100644 index 00000000000..4a69c5b5c70 --- /dev/null +++ b/src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.css @@ -0,0 +1,7 @@ +.blog-post-list .post-comments { + margin-left: 10px; + border-left: 5px solid #ddd; + padding-left: 10px; } + .blog-post-list .post-comments .post-comment { + margin-bottom: 0.2em; } + diff --git a/src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.min.css b/src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.min.css new file mode 100644 index 00000000000..dcfa6d93d9b --- /dev/null +++ b/src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.min.css @@ -0,0 +1 @@ +.blog-post-list .post-comments{margin-left:10px;border-left:5px solid #ddd;padding-left:10px;}.blog-post-list .post-comments .post-comment{margin-bottom:.2em;} \ No newline at end of file diff --git a/src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.scss b/src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.scss new file mode 100644 index 00000000000..6f9a3df8787 --- /dev/null +++ b/src/AbpDesk/AbpDesk.MongoBlog/Areas/Blog/Views/Posts/Index.scss @@ -0,0 +1,11 @@ +.blog-post-list { + .post-comments { + margin-left: 10px; + border-left: 5px solid #ddd; + padding-left: 10px; + + .post-comment { + margin-bottom: 0.2em; + } + } +} diff --git a/src/AbpDesk/AbpDesk.MongoBlog/compilerconfig.json b/src/AbpDesk/AbpDesk.MongoBlog/compilerconfig.json new file mode 100644 index 00000000000..9d51e91a286 --- /dev/null +++ b/src/AbpDesk/AbpDesk.MongoBlog/compilerconfig.json @@ -0,0 +1,6 @@ +[ + { + "outputFile": "Areas/Blog/Views/Posts/Index.css", + "inputFile": "Areas/Blog/Views/Posts/Index.scss" + } +] \ No newline at end of file diff --git a/src/AbpDesk/AbpDesk.MongoBlog/compilerconfig.json.defaults b/src/AbpDesk/AbpDesk.MongoBlog/compilerconfig.json.defaults new file mode 100644 index 00000000000..c75eb7d519c --- /dev/null +++ b/src/AbpDesk/AbpDesk.MongoBlog/compilerconfig.json.defaults @@ -0,0 +1,49 @@ +{ + "compilers": { + "less": { + "autoPrefix": "", + "cssComb": "none", + "ieCompat": true, + "strictMath": false, + "strictUnits": false, + "relativeUrls": true, + "rootPath": "", + "sourceMapRoot": "", + "sourceMapBasePath": "", + "sourceMap": false + }, + "sass": { + "includePath": "", + "indentType": "space", + "indentWidth": 2, + "outputStyle": "nested", + "Precision": 5, + "relativeUrls": true, + "sourceMapRoot": "", + "sourceMap": false + }, + "stylus": { + "sourceMap": false + }, + "babel": { + "sourceMap": false + }, + "coffeescript": { + "bare": false, + "runtimeMode": "node", + "sourceMap": false + } + }, + "minifiers": { + "css": { + "enabled": true, + "termSemicolons": true, + "gzip": false + }, + "javascript": { + "enabled": true, + "termSemicolons": true, + "gzip": false + } + } +} \ No newline at end of file diff --git a/src/AbpDesk/AbpDesk.Web.Mvc/Startup.cs b/src/AbpDesk/AbpDesk.Web.Mvc/Startup.cs index 8269e6ad6b1..382df3dc772 100644 --- a/src/AbpDesk/AbpDesk.Web.Mvc/Startup.cs +++ b/src/AbpDesk/AbpDesk.Web.Mvc/Startup.cs @@ -40,7 +40,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF .AddDebug() .AddSerilog(new LoggerConfiguration() .Enrich.FromLogContext() - .WriteTo.RollingFile("logs.txt") + .WriteTo.RollingFile("Logs/logs.txt") .CreateLogger() ); diff --git a/src/AbpDesk/Web_PlugIns/AbpDesk.MongoBlog.dll b/src/AbpDesk/Web_PlugIns/AbpDesk.MongoBlog.dll index 11cba1ef034b0363f09a99c761f91bcedff389b2..13f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