Commit Graph

174 Commits

Author SHA1 Message Date
surtur d2353d3851
feat: generalise && simplify MegaUpload
All checks were successful
continuous-integration/drone/push Build is passing
* ...+ related edits in {Products,Carousel}Controller
2021-01-26 23:13:34 +01:00
surtur d8cecc6194
chore: rm bogus reviews and repurpose button
All checks were successful
continuous-integration/drone/push Build is passing
2021-01-26 22:00:15 +01:00
surtur 8cd0f66e6d
chore: add Product Detail boilerplate
All checks were successful
continuous-integration/drone/push Build is passing
2021-01-26 21:39:27 +01:00
surtur 8c64353e1e
chore: add the product Details route to Startup.cs
All checks were successful
continuous-integration/drone/push Build is passing
2021-01-26 21:14:17 +01:00
surtur 2d2a7f4745
chore: add main page product boilerplate
All checks were successful
continuous-integration/drone/push Build is passing
2021-01-26 21:13:33 +01:00
surtur 880de828cb
chore: rm landing page .net promo code
All checks were successful
continuous-integration/drone/push Build is passing
2021-01-26 20:41:51 +01:00
surtur 9dcd80ac58
chore: add style section dev/prod separator
All checks were successful
continuous-integration/drone/push Build is passing
* contains the same stylesheet and no bundling pipeline is in place atm
2021-01-26 18:49:19 +01:00
surtur bb189cac7f
feat: add hadolint Dockerfile linting
All checks were successful
continuous-integration/drone/push Build is passing
commit 5acb4e2ba773d312c6b5159011ef415af53f8f71
Author: surtur <a_mirre@utb.cz>
Date:   Tue Jan 26 16:28:10 2021 +0100

    chore: rework ci pipeline logic

    * run {debug,release} builds after clone, then lint Dockerfile{,.dev}
      and finally run kaniko builds ({debug,release}) in parallel

commit 1e16f72eb4957b14c7fb316282d4cefae0811871
Author: surtur <a_mirre@utb.cz>
Date:   Tue Jan 26 16:19:50 2021 +0100

    feat: add hadolint Dockerfile linting

    to conform the linter and best practices:
    * add a FROM alias
    * quote variables (even though they're single-word and known in
      advance, might actually change it to ignore the warning)
2021-01-26 17:35:44 +01:00
surtur 4c78f0e417
chore: proper column count (bootstrap 12)
All checks were successful
continuous-integration/drone/push Build is passing
2021-01-26 16:07:01 +01:00
surtur a5ebd88141
chore: edit table style
All checks were successful
continuous-integration/drone/push Build is passing
2021-01-26 15:41:52 +01:00
wanderer bd42a0f845
merge: 'add custom attribute for file mime type validation' (#6)
All checks were successful
continuous-integration/drone/push Build is passing
from feature-custom-attr-validation into master

6f6ebaa cleanup: rm redundant ids
9e90f3e chore: reword attr err msg + add help link
7644066 chore: add Product validation
cf223da chore: more carousel validation goodies
b19c4a7 fix: typo and missing using
484d9a2 chore: add image validation

Reviewed-on: #6
2021-01-26 15:24:06 +01:00
surtur 6f6ebaa6fa
cleanup: rm redundant ids
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2021-01-26 15:08:12 +01:00
surtur 9e90f3ee28
chore: reword attr err msg + add help link
All checks were successful
continuous-integration/drone/push Build is passing
2021-01-26 14:57:41 +01:00
surtur 7644066138
chore: add Product validation
All checks were successful
continuous-integration/drone/push Build is passing
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
surtur cf223daf81
chore: more carousel validation goodies
All checks were successful
continuous-integration/drone/push Build is passing
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
surtur b19c4a7c00
fix: typo and missing using
All checks were successful
continuous-integration/drone/push Build is passing
2021-01-25 16:30:37 +01:00
surtur 484d9a2db5
chore: add image validation 2021-01-24 19:31:56 +01:00
surtur ff301397ff
chore: make Created attr read-only
All checks were successful
continuous-integration/drone/push Build is passing
2021-01-23 14:44:15 +01:00
surtur be090f643f
chore: add server-side validation as per #5
All checks were successful
continuous-integration/drone/push Build is passing
* for {Carouse,Product}
2021-01-23 14:43:42 +01:00
surtur a863e396e9
chore: add Carousel,Product client-side validation
All checks were successful
continuous-integration/drone/push Build is passing
2021-01-23 14:31:52 +01:00
surtur fa9880d242
chore: defer validation js loading 2021-01-23 14:26:57 +01:00
surtur 0741deaff9
chore: change compose targets
* update Makefile and README
* [skip ci]
2021-01-23 14:25:24 +01:00
surtur d660c59cf7
chore: add response compression
All checks were successful
continuous-integration/drone/push Build is passing
2021-01-23 14:24:02 +01:00
surtur d9a31187ad
chore: update {About,Contact} pages
All checks were successful
continuous-integration/drone/push Build is passing
* rm generic stuff, replace it with our goodness
* use emoji!
2021-01-22 20:55:08 +01:00
surtur 902250c471
chore: take into account 2020
* update footer partial view
2021-01-22 20:51:52 +01:00
surtur ed3557de11
chore: update README.md [skip ci]
close #4
2021-01-21 22:02:13 +01:00
surtur 41b2056cca
chore: rm commented using
All checks were successful
continuous-integration/drone/push Build is passing
2021-01-21 21:19:30 +01:00
surtur 4ba9949cc7
chore: Index --> Order Index 2021-01-21 21:19:02 +01:00
surtur 031ed0a2c0
chore: don't show db-bound fields
All checks were successful
continuous-integration/drone/push Build is passing
* this still needs to be dealt with server-side, but at least don't
  present the user a form in which they could edit created/updated
  fields
2021-01-21 21:14:49 +01:00
surtur 3bb964e6f2
update README.md: rm dev branch reference
All checks were successful
continuous-integration/drone/push Build is passing
2021-01-03 11:03:38 +01:00
surtur 1442a2a664
chore: bind the new."attr" as we're using postgres
All checks were successful
continuous-integration/drone/push Build is passing
closes #2
  closes #3
  accompanied by create_triggers script that creates triggers in the
  subject columns to update the "Updated" value just before the column
  update occurs
2021-01-03 02:38:26 +01:00
surtur 8dda15cfac
chore: rework dbinit slightly
All checks were successful
continuous-integration/drone/push Build is passing
* fill the tables only if there's nothing in them already
2020-12-31 11:28:56 +01:00
surtur 0779d07d84
fix: model validation failing on required attr
All checks were successful
continuous-integration/drone/push Build is passing
* fixes #2
2020-12-31 11:25:11 +01:00
surtur 6949461bed
merge: feature-admin-views-spaces-to-tabs
All checks were successful
continuous-integration/drone/push Build is passing
commit 43ceea436cf04ed259d5e094e3e003da630d3dce
Author: surtur <a_mirre@utb.cz>
Date:   Thu Dec 31 01:57:48 2020 +0100

    chore: spaces to tabs in admin views

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:11:14 +01:00
surtur 1445207ca3
merge: feature-update-timestamp-onaddorupdate
All checks were successful
continuous-integration/drone/push Build is passing
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
surtur df9f0b36c4
merge: bring in feature-netcore-scaffolding-pain
All checks were successful
continuous-integration/drone/push Build is passing
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:01:45 +01:00
surtur 421a8f5f62
merge: bring in feature-add-shared-base-entity
All checks were successful
continuous-integration/drone/push Build is passing
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
surtur 37cfb08acb
chore: update footer w/ project and author details
All checks were successful
continuous-integration/drone/push Build is passing
* link to source at https://git.dotya.ml/wanderer/pwt-0x01-ng
2020-12-29 02:26:36 +01:00
surtur cbbcc36286
chore: move footer to a partial view
All checks were successful
continuous-integration/drone/push Build is passing
* also generate the year next to copyright dynamically
2020-12-29 02:17:50 +01:00
surtur 0afdebe155
chore: defer script loading (performance)
All checks were successful
continuous-integration/drone/push Build is passing
2020-12-29 02:02:00 +01:00
surtur 5c9546b9be
feat: add product CRUD functionality
All checks were successful
continuous-integration/drone/push Build is passing
* 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
surtur 2258ca0f6a
chore: add error handling for 40{3,4} and 500
All checks were successful
continuous-integration/drone/push Build is passing
2020-12-28 22:28:41 +01:00
surtur b35b3d6ce7
refactor: spaces --> tabs
All checks were successful
continuous-integration/drone/push Build is passing
2020-12-28 14:50:19 +01:00
surtur 4b6e560e6d
chore: replace legacy routing code with proper 3.1
All checks were successful
continuous-integration/drone/push Build is passing
2020-12-28 14:36:36 +01:00
surtur f0535f7797
chore: conditional razor runtime compilation
All checks were successful
continuous-integration/drone/push Build is passing
* enabled in dev mode
2020-12-27 16:22:27 +01:00
surtur dfeb6156e9
chore: add stuff to the list of the ignored
* [skip ci]
2020-12-27 05:37:43 +01:00
surtur 9cf87e8a22
chore: follow-up of 1bb9a07
All checks were successful
continuous-integration/drone/push Build is passing
2020-12-27 05:35:02 +01:00
surtur 9ef5f543f7
chore: only inlude the id (hidden) when editing
All checks were successful
continuous-integration/drone/push Build is passing
2020-12-27 05:30:37 +01:00
surtur e8b4625165
chore: setting this never gets old
* env var to disable dotnet calling home
* [skip ci]
2020-12-27 05:29:33 +01:00
surtur 1bb9a07bfa
chore: dbfake --> real db in controllers
All checks were successful
continuous-integration/drone/push Build is passing
2020-12-27 05:28:27 +01:00