Commit Graph

58 Commits

Author SHA1 Message Date
0dfead8388
deprecate Product in favour of SimilarProduct 2021-02-16 16:30:45 +01:00
7db10ab6c0
add SimilarProduct model class 2021-02-16 16:29:19 +01:00
7b536ba8f5
chore: add Similar parameter to Product model 2021-02-14 22:40:05 +01:00
2d8b31b6ff
rm: SimilarConf
since we don't plan to use {Created,Updated} for the Similar table
2021-02-13 17:40:39 +01:00
aa0196d168
chore: add "Similar" to mock product init 2021-02-13 17:37:23 +01:00
bf7f93c1df
add: not-mapped list "Similar' to product model 2021-02-13 17:36:03 +01:00
27a0f33744
chore: rm unused using in Similar.cs 2021-02-13 17:34:04 +01:00
dc7d505937
add: 'Similar' model and db conf 2021-02-12 22:50:03 +01:00
3ac4659680
add: UltimateViewModel (as per #11)
* consolidates {Carousel,Product}ViewModel in a single ViewModel since
  we're going to need both carousels and products in the index
2021-02-12 11:45:56 +01:00
21bfef1e8c
cleanup: remove unused SessionExtensions methods
* edit _Layout accordingly

as per #11
2021-02-12 11:43:48 +01:00
13b0ffffeb
refactor: use fully qualified class name in FK ref
as per #11
2021-02-12 11:32:58 +01:00
4eab6f8dc1
add: CustomerOrderViewModel 2021-02-10 12:11:12 +01:00
4b42658671
feat: add Customer area
* controller
* views
* SessionExtensions class
2021-02-10 12:01:59 +01:00
d3671871d2
chore: update Order model 2021-02-10 11:08:00 +01:00
72d4d71415
fix: identity application service missed values 2021-02-10 03:02:12 +01:00
a4c21dc643
chore: use literal min_passwd_length values
needs const values
2021-02-10 02:59:21 +01:00
8b4e8a45fb
fix: cover null input on UniqueCharsAttr 2021-02-10 02:27:07 +01:00
3de6d80f37
cleanup: remove unused usings throughout 2021-02-10 00:34:56 +01:00
633412ea0e
typo fix: use Roles enum 2021-02-09 20:31:15 +01:00
da67434379
chore: a file rename 2021-02-09 17:59:12 +01:00
714f2073ce
add: SecurityIdentityApplicationService 2021-02-08 23:15:26 +01:00
e89f450e13
add: {username,password} in user identity model 2021-02-08 23:11:46 +01:00
eff8d1f087
chore: change logout method type in interface 2021-02-08 23:10:46 +01:00
e07fe18c23
chore: use role in identity application service 2021-02-08 22:48:00 +01:00
c18a502192
add: ISecurityApplicationInterface 2021-02-07 22:26:26 +01:00
0a5eea2a5e
use UniqueCharsAttr for {Login,Register}ViewModel 2021-02-07 20:50:08 +01:00
345fc8d5e2
add: unique characters attribute
familiarly known as UniqueCharsAttr
2021-02-07 20:47:55 +01:00
90553d9ae9
chore: use min_passwd_length with attribute 2021-02-06 21:07:01 +01:00
bd6ce61990
chore: edit filetype attr usage
* allow on {field, property,parameter}
* allow attr to be used only once per item
2021-02-06 20:31:41 +01:00
ad427cae41
re-enable printing of role creation debug info 2021-02-06 14:48:52 +01:00
9cd1188714
chore: fix role creation on app startup
fixes #8
kudos to @FunTomOftheBlueScreen@utb.cz
2021-01-28 17:18:15 +01:00
24a830b523
merge: feature-add-identity
commit 47c8a3e8e27fb8a71e702232c681d588fa152bc0
Author: surtur <a_mirre@utb.cz>
Date:   Thu Jan 28 14:58:07 2021 +0100

    chore: register and login on the right

commit 3e32cd61c2436123887d78f4ae396577b378e53c
Author: surtur <a_mirre@utb.cz>
Date:   Thu Jan 28 14:43:07 2021 +0100

    chore: add {Login,Register}ViewModel

commit f82f12a5328f1500c3a58dccb3728dc86d1cc92c
Author: surtur <a_mirre@utb.cz>
Date:   Thu Jan 28 14:30:36 2021 +0100

    chore: libs and pkgs version bump

commit 202b06505c94817c7bc60b432a9320efce80afac
Author: surtur <a_mirre@utb.cz>
Date:   Thu Jan 28 14:29:40 2021 +0100

    chore: local post-kaniko convenience chown

    * [skip ci]

commit 7e4c4ccbbf4f7290d47c4c682f09ee508b34ae1e
Author: surtur <a_mirre@utb.cz>
Date:   Thu Jan 28 14:29:15 2021 +0100

    chore: add Manager on app start

commit 62e9d567c07794b821eb86e7dcff4ecbb6bbd47e
Author: surtur <a_mirre@utb.cz>
Date:   Thu Jan 28 14:12:24 2021 +0100

    chore: add Login page

    * include FontAwesome (atm from CDN, will fetch it later and bundle it
      here)

commit 3c899a2d024d8b74c7e28dfd4b86e1332d964129
Author: surtur <a_mirre@utb.cz>
Date:   Thu Jan 28 13:33:32 2021 +0100

    fix: use proper service provider

commit 88a6e0f45eae7d71cf352d01a693429246effd98
Author: surtur <a_mirre@utb.cz>
Date:   Thu Jan 28 12:26:41 2021 +0100

    chore: do creation async + s/FirstName/Name/

commit eaed0ec13c0dd3824802a698ac9ed30bffc52de9
Author: surtur <a_mirre@utb.cz>
Date:   Thu Jan 28 10:55:23 2021 +0100

    fix: err creating admin

    * cause of silly passwd requirements - require {upper,lower}case and
      non-alphanumeric characters is implicitly set to true

commit f55f8517f8f8516192b5d156c71596e7fcc55ad2
Author: surtur <a_mirre@utb.cz>
Date:   Wed Jan 27 23:11:06 2021 +0100

    feat: table renames+call role-creating methods

    * no "AspNet" prefix
    * actually call Ensure{Admin,Roles}Created on app start

commit 20d3458f281ec9478dc9b0fab3795556dcd0a78f
Author: surtur <a_mirre@utb.cz>
Date:   Wed Jan 27 22:05:11 2021 +0100

    fix typo: DbContext --> DBContext

commit f972ac83e7197813bf4c9b4d9bb44d640b5dd071
Author: surtur <a_mirre@utb.cz>
Date:   Wed Jan 27 20:55:22 2021 +0100

    chore: add login and usr mgmt logic

    * add login and registration views
    * add methods to create admin user on app start

commit b65a6d21f8dc5227a8da2d5040348e269c2f3711
Author: surtur <a_mirre@utb.cz>
Date:   Wed Jan 27 16:02:33 2021 +0100

    chore: add auth options

    * FIXME dev fun settings need to be replaced with proper settings

commit 8f84939c22ec96e0a143350b9b9ba3d738dfc149
Author: surtur <a_mirre@utb.cz>
Date:   Wed Jan 27 14:54:57 2021 +0100

    chore: adding identity roles (batch 1)

    * preparing Startup and DBContext to work with roles and auth
    * added Roles enum
    * added User model
    * added Microsoft.AspNetCore.Identity.EntityFrameworkCore v3.1.10 nuget

    * note: auth is not ready and working yet, this is batch one of the
      preparations
2021-01-28 15:27:25 +01:00
d2353d3851
feat: generalise && simplify MegaUpload
* ...+ related edits in {Products,Carousel}Controller
2021-01-26 23:13:34 +01:00
9e90f3ee28
chore: reword attr err msg + add help link 2021-01-26 14:57:41 +01:00
7644066138
chore: add Product validation
as per #5

commit d0b491d1dc289dedf242a974b1b42e021272234b
Author: surtur <a_mirre@utb.cz>
Date:   Tue Jan 26 14:35:05 2021 +0100

    chore: add proper Product validation

    * image file type checking with custom attr

commit 81a5fe36c2aef355aa71a6208acea096dd35d70e
Author: surtur <a_mirre@utb.cz>
Date:   Mon Jan 25 22:29:48 2021 +0100

    chore: add client-side carousel edit validation

commit 5cddb4bd9b55a514d9aa6f79f291678c88d33773
Author: surtur <a_mirre@utb.cz>
Date:   Mon Jan 25 22:27:38 2021 +0100

    chore: add carousel image file type checking

    * since image is not required, so isn't ImageSrc
2021-01-26 14:40:58 +01:00
cf223daf81
chore: more carousel validation goodies
commit 81a5fe36c2aef355aa71a6208acea096dd35d70e
Author: surtur <a_mirre@utb.cz>
Date:   Mon Jan 25 22:29:48 2021 +0100

    chore: add client-side carousel edit validation

commit 5cddb4bd9b55a514d9aa6f79f291678c88d33773
Author: surtur <a_mirre@utb.cz>
Date:   Mon Jan 25 22:27:38 2021 +0100

    chore: add carousel image file type checking

    * since image is not required, so isn't ImageSrc
2021-01-25 22:32:34 +01:00
b19c4a7c00
fix: typo and missing using 2021-01-25 16:30:37 +01:00
484d9a2db5
chore: add image validation 2021-01-24 19:31:56 +01:00
ff301397ff
chore: make Created attr read-only 2021-01-23 14:44:15 +01:00
be090f643f
chore: add server-side validation as per #5
* for {Carouse,Product}
2021-01-23 14:43:42 +01:00
41b2056cca
chore: rm commented using 2021-01-21 21:19:30 +01:00
8dda15cfac
chore: rework dbinit slightly
* fill the tables only if there's nothing in them already
2020-12-31 11:28:56 +01:00
0779d07d84
fix: model validation failing on required attr
* fixes #2
2020-12-31 11:25:11 +01:00
1445207ca3
merge: feature-update-timestamp-onaddorupdate
commit 0bc3345368826a6c6edae974ca4cb69f32134553
Author: surtur <a_mirre@utb.cz>
Date:   Thu Dec 31 01:41:12 2020 +0100

    chore: always update the updated timestamp

    * instruct db to update the updated timestamp both on create and edit,
      fixing a little bug that was preventing creation of items of any kind
      (since this behaviour has been used throughout the entity configs) due
      to the updated timestamp not being set (while db knows it's a not-null)

commit 34664fc9f3876605001b4c5294d3350a136f2997
Author: surtur <a_mirre@utb.cz>
Date:   Thu Dec 31 01:18:05 2020 +0100

    chore: edit the scaffolded views to use our layout

commit 6816006c09b5a3d79c489e3c27d7081b83e6195e
Author: surtur <a_mirre@utb.cz>
Date:   Thu Dec 31 01:14:17 2020 +0100

    chore: update Makefile "run" target+added targets

    * pgdba - start a dev db container in background
    * pgdbz - stop the dev db image
    * docker run db img args are configured via variables as seen fit
    * run is now more of a "watch run"

commit f1d87345ac2d7d9ce854a6c8bb37731ff0f8805c
Author: surtur <a_mirre@utb.cz>
Date:   Thu Dec 31 01:12:41 2020 +0100

    chore: add {OrderItem,Order} links to navbar

commit c214cf4fe6625ad312275432a8883a01e37f9cf0
Author: surtur <a_mirre@utb.cz>
Date:   Wed Dec 30 13:37:34 2020 +0100

    chore: add netcore-scaffolded controllers+views

    * Templates folder of the vs.web.codegenerators pkg (v3.1.4) had to be
      temporarily copied to the project directory for the scaffolding to
      work; unnecessary template folders had to be removed prior to running
      scaffold command
    * restored pkgs and clean built, then scaffolded using (var set for
      trace output of the command):
      make restore clean build; codegen_trace=1 dotnet-aspnet-codegenerator controller -p "." -actions --force -name OrdersController -dc pwt_0x01_ng.Models.Database.DBContext -async -m pwt_0x01_ng.Models.Order -namespace pwt_0x01_ng.Areas.Admin.Controllers -outDir Areas/Admin/Controllers --no-build
      make restore clean build; codegen_trace=1 dotnet-aspnet-codegenerator controller -p "." -actions --force -name OrderItemController -dc pwt_0x01_ng.Models.Database.DBContext -async -m pwt_0x01_ng.Models.OrderItem -namespace pwt_0x01_ng.Areas.Admin.Controllers -outDir Areas/Admin/Controllers --no-build
2020-12-31 02:03:34 +01:00
421a8f5f62
merge: bring in feature-add-shared-base-entity
commit 85cbab22a8d58acf53e32bc122329b50170de1a0
Author: surtur <a_mirre@utb.cz>
Date:   Wed Dec 30 00:53:27 2020 +0100

    chore: update proj file to include Migrations dir

commit 71bcd9fa486b761b83ad488d51e9fde5b5d8565f
Author: surtur <a_mirre@utb.cz>
Date:   Tue Dec 29 23:28:17 2020 +0100

    chore: prevent deletion of products used in orders

commit d9ddee09d78c8e50dbf4f5bcbe07b80294de62e8
Author: surtur <a_mirre@utb.cz>
Date:   Tue Dec 29 19:45:40 2020 +0100

    chore: add db conf for {Product,Carousel,Order}

    * csproj pkg cleanup

commit 66c9c1cb520373b91723e2f4ef8d4bc76e05d8a9
Author: surtur <a_mirre@utb.cz>
Date:   Tue Dec 29 17:48:09 2020 +0100

    chore: create a shared base entity
2020-12-30 03:40:50 +01:00
5c9546b9be
feat: add product CRUD functionality
* overload of MegaUpload has been added so that it could be used with
  Product as well as Carousel
* confirmation script appropriately edited to now also serve Product
2020-12-29 01:25:13 +01:00
b35b3d6ce7
refactor: spaces --> tabs 2020-12-28 14:50:19 +01:00
9cf87e8a22
chore: follow-up of 1bb9a07 2020-12-27 05:35:02 +01:00
a0cab2d46f
chore: rename namespace matching rest of the proj 2020-12-27 04:52:04 +01:00
83379ec335
chore: revert 61714e3d9e
* didn't work out so well, builds fine but refuses to run, stashing
  the idea for another time
2020-12-26 18:42:34 +01:00