express-sweet 1.0.22 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +63 -25
- package/README.md +149 -12
- package/dist/build.common.js +2 -2
- package/dist/build.esm.js +2 -2
- package/docs/{templates → download/templates}/cjs/authentication.js +3 -3
- package/docs/{templates → download/templates}/cjs/config.js +0 -0
- package/docs/{templates → download/templates}/cjs/database.js +3 -3
- package/docs/{templates → download/templates}/cjs/view.js +0 -0
- package/docs/{templates → download/templates}/esm/authentication.js +3 -3
- package/docs/{templates → download/templates}/esm/config.js +0 -0
- package/docs/{templates → download/templates}/esm/database.js +3 -3
- package/docs/{templates → download/templates}/esm/view.js +0 -0
- package/docs/img/belongs-to-many.png +0 -0
- package/docs/img/belongs-to.png +0 -0
- package/docs/img/has-many.png +0 -0
- package/docs/img/has-one.png +0 -0
- package/docs/img/screencaps/login.png +0 -0
- package/docs/img/screencaps/personal-editing.png +0 -0
- package/docs/img/screencaps/personal.png +0 -0
- package/docs/img/screencaps/user-editing.png +0 -0
- package/docs/img/screencaps/users.png +0 -0
- package/docs/index.html +5647 -3104
- package/docs/theme/css/style.bundle.css +48542 -0
- package/docs/theme/js/scripts.bundle.js +7882 -0
- package/docs/theme/js/widgets.bundle.js +17949 -0
- package/docs/theme/media/svg/avatars/001-boy.svg +94 -0
- package/docs/theme/media/svg/avatars/002-girl.svg +139 -0
- package/docs/theme/media/svg/avatars/003-girl-1.svg +109 -0
- package/docs/theme/media/svg/avatars/004-boy-1.svg +109 -0
- package/docs/theme/media/svg/avatars/005-girl-2.svg +153 -0
- package/docs/theme/media/svg/avatars/006-girl-3.svg +120 -0
- package/docs/theme/media/svg/avatars/007-boy-2.svg +128 -0
- package/docs/theme/media/svg/avatars/008-boy-3.svg +106 -0
- package/docs/theme/media/svg/avatars/009-boy-4.svg +81 -0
- package/docs/theme/media/svg/avatars/010-girl-4.svg +107 -0
- package/docs/theme/media/svg/avatars/011-boy-5.svg +94 -0
- package/docs/theme/media/svg/avatars/012-girl-5.svg +114 -0
- package/docs/theme/media/svg/avatars/013-girl-6.svg +112 -0
- package/docs/theme/media/svg/avatars/014-girl-7.svg +89 -0
- package/docs/theme/media/svg/avatars/015-boy-6.svg +98 -0
- package/docs/theme/media/svg/avatars/016-boy-7.svg +109 -0
- package/docs/theme/media/svg/avatars/017-girl-8.svg +99 -0
- package/docs/theme/media/svg/avatars/018-girl-9.svg +92 -0
- package/docs/theme/media/svg/avatars/019-girl-10.svg +75 -0
- package/docs/theme/media/svg/avatars/020-girl-11.svg +89 -0
- package/docs/theme/media/svg/avatars/021-boy-8.svg +110 -0
- package/docs/theme/media/svg/avatars/022-girl-12.svg +91 -0
- package/docs/theme/media/svg/avatars/023-girl-13.svg +90 -0
- package/docs/theme/media/svg/avatars/024-boy-9.svg +123 -0
- package/docs/theme/media/svg/avatars/025-girl-14.svg +138 -0
- package/docs/theme/media/svg/avatars/026-boy-10.svg +110 -0
- package/docs/theme/media/svg/avatars/027-girl-15.svg +152 -0
- package/docs/theme/media/svg/avatars/028-girl-16.svg +97 -0
- package/docs/theme/media/svg/avatars/029-boy-11.svg +121 -0
- package/docs/theme/media/svg/avatars/030-girl-17.svg +115 -0
- package/docs/theme/media/svg/avatars/031-boy-12.svg +105 -0
- package/docs/theme/media/svg/avatars/032-boy-13.svg +101 -0
- package/docs/theme/media/svg/avatars/033-girl-18.svg +95 -0
- package/docs/theme/media/svg/avatars/034-boy-14.svg +84 -0
- package/docs/theme/media/svg/avatars/035-boy-15.svg +123 -0
- package/docs/theme/media/svg/avatars/036-girl-19.svg +119 -0
- package/docs/theme/media/svg/avatars/037-girl-20.svg +82 -0
- package/docs/theme/media/svg/avatars/038-boy-16.svg +78 -0
- package/docs/theme/media/svg/avatars/039-girl-21.svg +101 -0
- package/docs/theme/media/svg/avatars/040-boy-17.svg +83 -0
- package/docs/theme/media/svg/avatars/041-girl-22.svg +83 -0
- package/docs/theme/media/svg/avatars/042-girl-23.svg +86 -0
- package/docs/theme/media/svg/avatars/043-boy-18.svg +147 -0
- package/docs/theme/media/svg/avatars/044-boy-19.svg +116 -0
- package/docs/theme/media/svg/avatars/045-boy-20.svg +92 -0
- package/docs/theme/media/svg/avatars/046-girl-24.svg +114 -0
- package/docs/theme/media/svg/avatars/047-girl-25.svg +94 -0
- package/docs/theme/media/svg/avatars/048-boy-21.svg +91 -0
- package/docs/theme/media/svg/avatars/049-boy-22.svg +85 -0
- package/docs/theme/media/svg/avatars/050-girl-26.svg +87 -0
- package/docs/theme/media/svg/avatars/blank-dark.svg +5 -0
- package/docs/theme/media/svg/avatars/blank.svg +5 -0
- package/docs/theme/media/svg/brand-logos/adidas-9.svg +1 -0
- package/docs/theme/media/svg/brand-logos/adidas.svg +1 -0
- package/docs/theme/media/svg/brand-logos/airbnb-2.svg +1 -0
- package/docs/theme/media/svg/brand-logos/alcatel-mobile-3.svg +1 -0
- package/docs/theme/media/svg/brand-logos/amazon-dark.svg +13 -0
- package/docs/theme/media/svg/brand-logos/amazon.svg +1 -0
- package/docs/theme/media/svg/brand-logos/android-wordmark.svg +1 -0
- package/docs/theme/media/svg/brand-logos/angular-3.svg +1 -0
- package/docs/theme/media/svg/brand-logos/angular-icon-1.svg +1 -0
- package/docs/theme/media/svg/brand-logos/angular-icon.svg +1 -0
- package/docs/theme/media/svg/brand-logos/angular.svg +1 -0
- package/docs/theme/media/svg/brand-logos/aon.svg +18 -0
- package/docs/theme/media/svg/brand-logos/apigee.svg +1 -0
- package/docs/theme/media/svg/brand-logos/apple-black-dark.svg +10 -0
- package/docs/theme/media/svg/brand-logos/apple-black.svg +1 -0
- package/docs/theme/media/svg/brand-logos/apple-itunes.svg +1 -0
- package/docs/theme/media/svg/brand-logos/aries-2.svg +1 -0
- package/docs/theme/media/svg/brand-logos/asml-1.svg +1 -0
- package/docs/theme/media/svg/brand-logos/aspnetzero.svg +17 -0
- package/docs/theme/media/svg/brand-logos/atica.svg +16 -0
- package/docs/theme/media/svg/brand-logos/audi-11.svg +1 -0
- package/docs/theme/media/svg/brand-logos/aven.svg +20 -0
- package/docs/theme/media/svg/brand-logos/avis-1.svg +1 -0
- package/docs/theme/media/svg/brand-logos/avocode-inc.svg +1 -0
- package/docs/theme/media/svg/brand-logos/balloon.svg +1 -0
- package/docs/theme/media/svg/brand-logos/banco-santander-logo.svg +1 -0
- package/docs/theme/media/svg/brand-logos/beats-electronics.svg +1 -0
- package/docs/theme/media/svg/brand-logos/bebo.svg +42 -0
- package/docs/theme/media/svg/brand-logos/behance.svg +10 -0
- package/docs/theme/media/svg/brand-logos/biman-airlines-classic-logo.svg +1 -0
- package/docs/theme/media/svg/brand-logos/bookingcom-1.svg +1 -0
- package/docs/theme/media/svg/brand-logos/bootstrap-4.svg +1 -0
- package/docs/theme/media/svg/brand-logos/bootstrap-5.svg +1 -0
- package/docs/theme/media/svg/brand-logos/bootstrap5.svg +10 -0
- package/docs/theme/media/svg/brand-logos/bose.svg +1 -0
- package/docs/theme/media/svg/brand-logos/bp-2.svg +6 -0
- package/docs/theme/media/svg/brand-logos/bp-3.svg +1 -0
- package/docs/theme/media/svg/brand-logos/brantano.svg +1 -0
- package/docs/theme/media/svg/brand-logos/bride.svg +1 -0
- package/docs/theme/media/svg/brand-logos/british-council-1.svg +1 -0
- package/docs/theme/media/svg/brand-logos/brondi.svg +1 -0
- package/docs/theme/media/svg/brand-logos/campingaz-1.svg +1 -0
- package/docs/theme/media/svg/brand-logos/canon-logo.svg +1 -0
- package/docs/theme/media/svg/brand-logos/carrols.svg +1 -0
- package/docs/theme/media/svg/brand-logos/casio.svg +1 -0
- package/docs/theme/media/svg/brand-logos/caterpillar-2.svg +1 -0
- package/docs/theme/media/svg/brand-logos/citrix-6002.svg +1 -0
- package/docs/theme/media/svg/brand-logos/code-lab.svg +23 -0
- package/docs/theme/media/svg/brand-logos/codeigniter.svg +1 -0
- package/docs/theme/media/svg/brand-logos/comcast.svg +1 -0
- package/docs/theme/media/svg/brand-logos/conair.svg +1 -0
- package/docs/theme/media/svg/brand-logos/costa-2.svg +1 -0
- package/docs/theme/media/svg/brand-logos/costco-wholesale-logo.svg +1 -0
- package/docs/theme/media/svg/brand-logos/css-5.svg +1 -0
- package/docs/theme/media/svg/brand-logos/decathlon-logo.svg +1 -0
- package/docs/theme/media/svg/brand-logos/deloitte-1.svg +1 -0
- package/docs/theme/media/svg/brand-logos/depend.svg +1 -0
- package/docs/theme/media/svg/brand-logos/diesel-5.svg +1 -0
- package/docs/theme/media/svg/brand-logos/disqus.svg +49 -0
- package/docs/theme/media/svg/brand-logos/django-community.svg +1 -0
- package/docs/theme/media/svg/brand-logos/dribbble-icon-1.svg +1 -0
- package/docs/theme/media/svg/brand-logos/dribbble-pink.svg +1 -0
- package/docs/theme/media/svg/brand-logos/duolingo.svg +3 -0
- package/docs/theme/media/svg/brand-logos/dynamac.svg +1 -0
- package/docs/theme/media/svg/brand-logos/ebay.svg +1 -0
- package/docs/theme/media/svg/brand-logos/ember.svg +1 -0
- package/docs/theme/media/svg/brand-logos/envato.svg +1 -0
- package/docs/theme/media/svg/brand-logos/espacio-urbano.svg +1 -0
- package/docs/theme/media/svg/brand-logos/etoys-com.svg +1 -0
- package/docs/theme/media/svg/brand-logos/facebook-1.svg +1 -0
- package/docs/theme/media/svg/brand-logos/facebook-2.svg +1 -0
- package/docs/theme/media/svg/brand-logos/facebook-3.svg +1 -0
- package/docs/theme/media/svg/brand-logos/facebook-4.svg +4 -0
- package/docs/theme/media/svg/brand-logos/farmers-insurance-3.svg +1 -0
- package/docs/theme/media/svg/brand-logos/figma-1.svg +1 -0
- package/docs/theme/media/svg/brand-logos/foursquare.svg +1 -0
- package/docs/theme/media/svg/brand-logos/fox-hub.svg +6 -0
- package/docs/theme/media/svg/brand-logos/friday-s.svg +1 -0
- package/docs/theme/media/svg/brand-logos/fujifilm.svg +18 -0
- package/docs/theme/media/svg/brand-logos/funding-circle.svg +1 -0
- package/docs/theme/media/svg/brand-logos/garmin-1.svg +1 -0
- package/docs/theme/media/svg/brand-logos/general-electric.svg +1 -0
- package/docs/theme/media/svg/brand-logos/github-1.svg +12 -0
- package/docs/theme/media/svg/brand-logos/github-2.svg +1 -0
- package/docs/theme/media/svg/brand-logos/github-icon.svg +1 -0
- package/docs/theme/media/svg/brand-logos/github.svg +3 -0
- package/docs/theme/media/svg/brand-logos/gitlab.svg +1 -0
- package/docs/theme/media/svg/brand-logos/google-icon.svg +6 -0
- package/docs/theme/media/svg/brand-logos/google-photos.svg +1 -0
- package/docs/theme/media/svg/brand-logos/google-play-store.svg +1 -0
- package/docs/theme/media/svg/brand-logos/google-podcasts.svg +1 -0
- package/docs/theme/media/svg/brand-logos/google-tag-manager.svg +18 -0
- package/docs/theme/media/svg/brand-logos/gradiente-2.svg +1 -0
- package/docs/theme/media/svg/brand-logos/gulp-1.svg +1 -0
- package/docs/theme/media/svg/brand-logos/gulp.svg +1 -0
- package/docs/theme/media/svg/brand-logos/hbo.svg +1 -0
- package/docs/theme/media/svg/brand-logos/heavylift.svg +1 -0
- package/docs/theme/media/svg/brand-logos/hilton-buenos-aires.svg +1 -0
- package/docs/theme/media/svg/brand-logos/himel.svg +1 -0
- package/docs/theme/media/svg/brand-logos/honda-7.svg +1 -0
- package/docs/theme/media/svg/brand-logos/hp-2.svg +1 -0
- package/docs/theme/media/svg/brand-logos/hp-3.svg +4 -0
- package/docs/theme/media/svg/brand-logos/hp-hewlett-packard.svg +1 -0
- package/docs/theme/media/svg/brand-logos/html5.svg +1 -0
- package/docs/theme/media/svg/brand-logos/huggies-2.svg +1 -0
- package/docs/theme/media/svg/brand-logos/ikon-1.svg +1 -0
- package/docs/theme/media/svg/brand-logos/infography.svg +1 -0
- package/docs/theme/media/svg/brand-logos/instagram-2-1.svg +1 -0
- package/docs/theme/media/svg/brand-logos/instagram-2016.svg +1 -0
- package/docs/theme/media/svg/brand-logos/intermarche-2.svg +53 -0
- package/docs/theme/media/svg/brand-logos/invision.svg +1 -0
- package/docs/theme/media/svg/brand-logos/javascript-2.svg +1 -0
- package/docs/theme/media/svg/brand-logos/javascript-4.svg +1 -0
- package/docs/theme/media/svg/brand-logos/javascript.svg +1 -0
- package/docs/theme/media/svg/brand-logos/jelcz.svg +1 -0
- package/docs/theme/media/svg/brand-logos/jfits.svg +1 -0
- package/docs/theme/media/svg/brand-logos/jquery-2.svg +1 -0
- package/docs/theme/media/svg/brand-logos/jquery.svg +1 -0
- package/docs/theme/media/svg/brand-logos/kanba.svg +25 -0
- package/docs/theme/media/svg/brand-logos/keysight-logo.svg +1 -0
- package/docs/theme/media/svg/brand-logos/kickstarter.svg +23 -0
- package/docs/theme/media/svg/brand-logos/komatsu-3.svg +38 -0
- package/docs/theme/media/svg/brand-logos/koni-special.svg +1 -0
- package/docs/theme/media/svg/brand-logos/kpmg.svg +14 -0
- package/docs/theme/media/svg/brand-logos/laravel-2.svg +10 -0
- package/docs/theme/media/svg/brand-logos/last-fm-1.svg +1 -0
- package/docs/theme/media/svg/brand-logos/leaf.svg +24 -0
- package/docs/theme/media/svg/brand-logos/leclerc-1.svg +1 -0
- package/docs/theme/media/svg/brand-logos/legrand.svg +1 -0
- package/docs/theme/media/svg/brand-logos/leica-2.svg +1 -0
- package/docs/theme/media/svg/brand-logos/levis.svg +1 -0
- package/docs/theme/media/svg/brand-logos/lg-electronics.svg +1 -0
- package/docs/theme/media/svg/brand-logos/lidl-supermarkets.svg +1 -0
- package/docs/theme/media/svg/brand-logos/linkedin-1.svg +14 -0
- package/docs/theme/media/svg/brand-logos/linkedin-2.svg +11 -0
- package/docs/theme/media/svg/brand-logos/linkedin.svg +1 -0
- package/docs/theme/media/svg/brand-logos/lloyds-of-london-logo.svg +1 -0
- package/docs/theme/media/svg/brand-logos/mastercard-icon.svg +13 -0
- package/docs/theme/media/svg/brand-logos/maxis-communications-logo.svg +1 -0
- package/docs/theme/media/svg/brand-logos/metro-1.svg +1 -0
- package/docs/theme/media/svg/brand-logos/metro-4.svg +1 -0
- package/docs/theme/media/svg/brand-logos/metro-by-t-mobile.svg +1 -0
- package/docs/theme/media/svg/brand-logos/microsoft-5.svg +1 -0
- package/docs/theme/media/svg/brand-logos/miller-6.svg +1 -0
- package/docs/theme/media/svg/brand-logos/minol.svg +1 -0
- package/docs/theme/media/svg/brand-logos/mnd.svg +1 -0
- package/docs/theme/media/svg/brand-logos/msn.svg +1 -0
- package/docs/theme/media/svg/brand-logos/mysql-2.svg +1 -0
- package/docs/theme/media/svg/brand-logos/nasa.svg +21 -0
- package/docs/theme/media/svg/brand-logos/nestle-4.svg +1 -0
- package/docs/theme/media/svg/brand-logos/new-beko-logo.svg +1 -0
- package/docs/theme/media/svg/brand-logos/nike-4.svg +1 -0
- package/docs/theme/media/svg/brand-logos/node-sass.svg +1 -0
- package/docs/theme/media/svg/brand-logos/noht.svg +1 -0
- package/docs/theme/media/svg/brand-logos/npm.svg +1 -0
- package/docs/theme/media/svg/brand-logos/ocaml.svg +1 -0
- package/docs/theme/media/svg/brand-logos/oger-tours.svg +1 -0
- package/docs/theme/media/svg/brand-logos/origin-4.svg +1 -0
- package/docs/theme/media/svg/brand-logos/paypie.svg +1 -0
- package/docs/theme/media/svg/brand-logos/pinterest-p.svg +10 -0
- package/docs/theme/media/svg/brand-logos/pinterest.svg +1 -0
- package/docs/theme/media/svg/brand-logos/plurk.svg +47 -0
- package/docs/theme/media/svg/brand-logos/puma-logo.svg +1 -0
- package/docs/theme/media/svg/brand-logos/python-5.svg +1 -0
- package/docs/theme/media/svg/brand-logos/quilosa.svg +5 -0
- package/docs/theme/media/svg/brand-logos/react-native-firebase-1.svg +1 -0
- package/docs/theme/media/svg/brand-logos/react-router.svg +1 -0
- package/docs/theme/media/svg/brand-logos/react.svg +1 -0
- package/docs/theme/media/svg/brand-logos/redbull.svg +1 -0
- package/docs/theme/media/svg/brand-logos/reddit.svg +9 -0
- package/docs/theme/media/svg/brand-logos/rgb.svg +59 -0
- package/docs/theme/media/svg/brand-logos/sass-1.svg +1 -0
- package/docs/theme/media/svg/brand-logos/seat-pg.svg +1 -0
- package/docs/theme/media/svg/brand-logos/sentry-3.svg +1 -0
- package/docs/theme/media/svg/brand-logos/shell.svg +1 -0
- package/docs/theme/media/svg/brand-logos/siplast.svg +1 -0
- package/docs/theme/media/svg/brand-logos/slack-icon.svg +6 -0
- package/docs/theme/media/svg/brand-logos/slack-new-logo.svg +1 -0
- package/docs/theme/media/svg/brand-logos/slack.svg +1 -0
- package/docs/theme/media/svg/brand-logos/smartphone.svg +5 -0
- package/docs/theme/media/svg/brand-logos/snowbird.svg +1 -0
- package/docs/theme/media/svg/brand-logos/soriana-logo-1.svg +1 -0
- package/docs/theme/media/svg/brand-logos/sparkpost.svg +1 -0
- package/docs/theme/media/svg/brand-logos/spotify-2.svg +1 -0
- package/docs/theme/media/svg/brand-logos/spotify-logo.svg +1 -0
- package/docs/theme/media/svg/brand-logos/spotify.svg +13 -0
- package/docs/theme/media/svg/brand-logos/spring-3.svg +10 -0
- package/docs/theme/media/svg/brand-logos/sprint-nextel.svg +1 -0
- package/docs/theme/media/svg/brand-logos/stabilo.svg +1 -0
- package/docs/theme/media/svg/brand-logos/strava-wordmark-1.svg +1 -0
- package/docs/theme/media/svg/brand-logos/stream-1.svg +1 -0
- package/docs/theme/media/svg/brand-logos/super-cuts.svg +1 -0
- package/docs/theme/media/svg/brand-logos/suzuki-motor-corporation-logo.svg +1 -0
- package/docs/theme/media/svg/brand-logos/suzuki.svg +1 -0
- package/docs/theme/media/svg/brand-logos/swarm.svg +1 -0
- package/docs/theme/media/svg/brand-logos/syngenta.svg +1 -0
- package/docs/theme/media/svg/brand-logos/telegram-2.svg +24 -0
- package/docs/theme/media/svg/brand-logos/telegram.svg +4 -0
- package/docs/theme/media/svg/brand-logos/tempstar.svg +1 -0
- package/docs/theme/media/svg/brand-logos/the-blockchain-group-tbg.svg +1 -0
- package/docs/theme/media/svg/brand-logos/thomas-1.svg +1 -0
- package/docs/theme/media/svg/brand-logos/thuisbezorgd.svg +1 -0
- package/docs/theme/media/svg/brand-logos/thule-2.svg +1 -0
- package/docs/theme/media/svg/brand-logos/ticketmaster-5.svg +1 -0
- package/docs/theme/media/svg/brand-logos/tofas-logo.svg +1 -0
- package/docs/theme/media/svg/brand-logos/tower.svg +4 -0
- package/docs/theme/media/svg/brand-logos/treva.svg +11 -0
- package/docs/theme/media/svg/brand-logos/trimble-2.svg +55 -0
- package/docs/theme/media/svg/brand-logos/trivago.svg +1 -0
- package/docs/theme/media/svg/brand-logos/truman.svg +58 -0
- package/docs/theme/media/svg/brand-logos/tvit.svg +11 -0
- package/docs/theme/media/svg/brand-logos/twitch.svg +5 -0
- package/docs/theme/media/svg/brand-logos/twitter-2.svg +4 -0
- package/docs/theme/media/svg/brand-logos/twitter.svg +10 -0
- package/docs/theme/media/svg/brand-logos/typescript-1.svg +6 -0
- package/docs/theme/media/svg/brand-logos/unilever-2.svg +1 -0
- package/docs/theme/media/svg/brand-logos/university-of-cambridge.svg +1 -0
- package/docs/theme/media/svg/brand-logos/urw-software.svg +1 -0
- package/docs/theme/media/svg/brand-logos/verizon-2015.svg +1 -0
- package/docs/theme/media/svg/brand-logos/vimeo-icon.svg +1 -0
- package/docs/theme/media/svg/brand-logos/vimeo.svg +1 -0
- package/docs/theme/media/svg/brand-logos/visa-icon.svg +5 -0
- package/docs/theme/media/svg/brand-logos/visa.svg +1 -0
- package/docs/theme/media/svg/brand-logos/vodafone.svg +3 -0
- package/docs/theme/media/svg/brand-logos/volicity-9.svg +10 -0
- package/docs/theme/media/svg/brand-logos/vue-9.svg +1 -0
- package/docs/theme/media/svg/brand-logos/vype.svg +1 -0
- package/docs/theme/media/svg/brand-logos/webasto-logo.svg +1 -0
- package/docs/theme/media/svg/brand-logos/webpack-icon.svg +1 -0
- package/docs/theme/media/svg/brand-logos/webpack.svg +1 -0
- package/docs/theme/media/svg/brand-logos/west-marine.svg +1 -0
- package/docs/theme/media/svg/brand-logos/worth.svg +1 -0
- package/docs/theme/media/svg/brand-logos/xing-icon.svg +1 -0
- package/docs/theme/media/svg/brand-logos/youtube-3.svg +1 -0
- package/docs/theme/media/svg/brand-logos/youtube-play.svg +4 -0
- package/docs/theme/media/svg/brand-logos/youtube.svg +1 -0
- package/docs/theme/media/svg/brand-logos/ziprecruiter-blacktext.svg +1 -0
- package/docs/theme/media/svg/brand-logos/zurich-logo.svg +1 -0
- package/docs/theme/media/svg/card-logos/american-express-dark.svg +25 -0
- package/docs/theme/media/svg/card-logos/american-express.svg +32 -0
- package/docs/theme/media/svg/card-logos/bitcoin 1.svg +7 -0
- package/docs/theme/media/svg/card-logos/dark/american-express.svg +25 -0
- package/docs/theme/media/svg/card-logos/dark/mastercard.svg +6 -0
- package/docs/theme/media/svg/card-logos/dark/visa.svg +5 -0
- package/docs/theme/media/svg/card-logos/mastercard-dark.svg +6 -0
- package/docs/theme/media/svg/card-logos/mastercard.svg +13 -0
- package/docs/theme/media/svg/card-logos/visa-dark.svg +5 -0
- package/docs/theme/media/svg/card-logos/visa.svg +5 -0
- package/docs/theme/media/svg/coins/binance.svg +1 -0
- package/docs/theme/media/svg/coins/bitcoin.svg +2 -0
- package/docs/theme/media/svg/coins/chainlink.svg +1 -0
- package/docs/theme/media/svg/coins/coin.svg +1 -0
- package/docs/theme/media/svg/coins/ethereum.svg +1 -0
- package/docs/theme/media/svg/coins/filecoin.svg +1 -0
- package/docs/theme/media/svg/files/ai-dark.svg +9 -0
- package/docs/theme/media/svg/files/ai.svg +9 -0
- package/docs/theme/media/svg/files/blank-image-dark.svg +13 -0
- package/docs/theme/media/svg/files/blank-image.svg +13 -0
- package/docs/theme/media/svg/files/css-dark.svg +10 -0
- package/docs/theme/media/svg/files/css.svg +10 -0
- package/docs/theme/media/svg/files/dark/ai.svg +9 -0
- package/docs/theme/media/svg/files/dark/css.svg +10 -0
- package/docs/theme/media/svg/files/dark/doc.svg +10 -0
- package/docs/theme/media/svg/files/dark/folder-document.svg +10 -0
- package/docs/theme/media/svg/files/dark/pdf.svg +10 -0
- package/docs/theme/media/svg/files/dark/sql.svg +10 -0
- package/docs/theme/media/svg/files/dark/tif.svg +10 -0
- package/docs/theme/media/svg/files/dark/upload.svg +5 -0
- package/docs/theme/media/svg/files/dark/xml.svg +10 -0
- package/docs/theme/media/svg/files/doc-dark.svg +10 -0
- package/docs/theme/media/svg/files/doc.svg +10 -0
- package/docs/theme/media/svg/files/folder-document-dark.svg +10 -0
- package/docs/theme/media/svg/files/folder-document.svg +3 -0
- package/docs/theme/media/svg/files/pdf-dark.svg +10 -0
- package/docs/theme/media/svg/files/pdf.svg +10 -0
- package/docs/theme/media/svg/files/sql-dark.svg +10 -0
- package/docs/theme/media/svg/files/sql.svg +10 -0
- package/docs/theme/media/svg/files/tif-dark.svg +10 -0
- package/docs/theme/media/svg/files/tif.svg +10 -0
- package/docs/theme/media/svg/files/upload-dark.svg +5 -0
- package/docs/theme/media/svg/files/upload.svg +5 -0
- package/docs/theme/media/svg/files/xml-dark.svg +10 -0
- package/docs/theme/media/svg/files/xml.svg +10 -0
- package/docs/theme/media/svg/food-icons/cheeseburger.svg +42 -0
- package/docs/theme/media/svg/food-icons/cheesecake.svg +39 -0
- package/docs/theme/media/svg/food-icons/coffee.svg +25 -0
- package/docs/theme/media/svg/food-icons/salad.svg +27 -0
- package/docs/theme/media/svg/food-icons/spaghetti.svg +37 -0
- package/docs/theme/media/svg/general/rhone.svg +32 -0
- package/docs/theme/media/svg/humans/custom-1.svg +10 -0
- package/docs/theme/media/svg/illustrations/easy/1-dark.svg +9 -0
- package/docs/theme/media/svg/illustrations/easy/1.svg +9 -0
- package/docs/theme/media/svg/illustrations/easy/2-dark.svg +9 -0
- package/docs/theme/media/svg/illustrations/easy/2.svg +9 -0
- package/docs/theme/media/svg/illustrations/easy/3-dark.svg +11 -0
- package/docs/theme/media/svg/illustrations/easy/3.svg +11 -0
- package/docs/theme/media/svg/illustrations/easy/4.svg +8 -0
- package/docs/theme/media/svg/illustrations/easy/5.svg +8 -0
- package/docs/theme/media/svg/illustrations/easy/6.svg +9 -0
- package/docs/theme/media/svg/illustrations/easy/7.svg +8 -0
- package/docs/theme/media/svg/illustrations/landing.svg +50 -0
- package/docs/theme/media/svg/illustrations/sigma/illustration-realestate.svg +100 -0
- package/docs/theme/media/svg/illustrations/sigma/question.svg +87 -0
- package/docs/theme/media/svg/illustrations/sigma/volume-1-dark.svg +140 -0
- package/docs/theme/media/svg/illustrations/sigma/volume-1.svg +146 -0
- package/docs/theme/media/svg/misc/eolic-energy.svg +51 -0
- package/docs/theme/media/svg/misc/hot-air-balloon.svg +1 -0
- package/docs/theme/media/svg/misc/infography.svg +1 -0
- package/docs/theme/media/svg/misc/octagon.svg +3 -0
- package/docs/theme/media/svg/misc/puzzle.svg +1 -0
- package/docs/theme/media/svg/misc/recycling.svg +56 -0
- package/docs/theme/media/svg/misc/retweet.svg +55 -0
- package/docs/theme/media/svg/misc/smartphone-2-dark.svg +5 -0
- package/docs/theme/media/svg/misc/smartphone-2.svg +5 -0
- package/docs/theme/media/svg/misc/smartphone-dark.svg +5 -0
- package/docs/theme/media/svg/misc/smartphone.svg +5 -0
- package/docs/theme/media/svg/misc/taieri.svg +13 -0
- package/docs/theme/media/svg/misc/video-play.svg +17 -0
- package/docs/theme/media/svg/payment-methods/americanexpress.svg +14 -0
- package/docs/theme/media/svg/payment-methods/mastercard.svg +20 -0
- package/docs/theme/media/svg/payment-methods/paypal.svg +7 -0
- package/docs/theme/media/svg/payment-methods/visa.svg +4 -0
- package/docs/theme/media/svg/products-categories/gaming.svg +39 -0
- package/docs/theme/media/svg/products-categories/gloves.svg +17 -0
- package/docs/theme/media/svg/products-categories/shoes.svg +14 -0
- package/docs/theme/media/svg/products-categories/t-shirt.svg +15 -0
- package/docs/theme/media/svg/products-categories/watch.svg +16 -0
- package/docs/theme/media/svg/shapes/abstract-1-dark.svg +16 -0
- package/docs/theme/media/svg/shapes/abstract-1.svg +16 -0
- package/docs/theme/media/svg/shapes/abstract-10.svg +9 -0
- package/docs/theme/media/svg/shapes/abstract-2-dark.svg +12 -0
- package/docs/theme/media/svg/shapes/abstract-2.svg +5 -0
- package/docs/theme/media/svg/shapes/abstract-3-dark.svg +13 -0
- package/docs/theme/media/svg/shapes/abstract-3.svg +13 -0
- package/docs/theme/media/svg/shapes/abstract-4-dark.svg +11 -0
- package/docs/theme/media/svg/shapes/abstract-4.svg +11 -0
- package/docs/theme/media/svg/shapes/abstract-5-dark.svg +14 -0
- package/docs/theme/media/svg/shapes/abstract-5.svg +14 -0
- package/docs/theme/media/svg/shapes/abstract-6.svg +3 -0
- package/docs/theme/media/svg/shapes/abstract-7.svg +9 -0
- package/docs/theme/media/svg/shapes/abstract-8.svg +16 -0
- package/docs/theme/media/svg/shapes/abstract-9.svg +9 -0
- package/docs/theme/media/svg/shapes/bitcoin.svg +9 -0
- package/docs/theme/media/svg/shapes/dogecoin.svg +10 -0
- package/docs/theme/media/svg/shapes/ethereum.svg +8 -0
- package/docs/theme/media/svg/shapes/man-head.svg +0 -0
- package/docs/theme/media/svg/shapes/top-green.png +0 -0
- package/docs/theme/media/svg/shapes/wave-bg-dark.svg +14 -0
- package/docs/theme/media/svg/shapes/wave-bg-purple.svg +14 -0
- package/docs/theme/media/svg/shapes/wave-bg-red.svg +14 -0
- package/docs/theme/media/svg/shapes/widget-bg-1.png +0 -0
- package/docs/theme/media/svg/shapes/widget-bg-2.png +0 -0
- package/docs/theme/media/svg/social-logos/dribbble.svg +4 -0
- package/docs/theme/media/svg/social-logos/facebook.svg +4 -0
- package/docs/theme/media/svg/social-logos/github.svg +3 -0
- package/docs/theme/media/svg/social-logos/google.svg +6 -0
- package/docs/theme/media/svg/social-logos/instagram.svg +22 -0
- package/docs/theme/media/svg/social-logos/twitter.svg +10 -0
- package/docs/theme/media/svg/social-logos/youtube.svg +4 -0
- package/docs/theme/plugins/custom/prismjs/prismjs.bundle.css +192 -0
- package/docs/theme/plugins/custom/prismjs/prismjs.bundle.js +3485 -0
- package/docs/theme/plugins/global/fonts/@fortawesome/fa-brands-400.ttf +0 -0
- package/docs/theme/plugins/global/fonts/@fortawesome/fa-brands-400.woff2 +0 -0
- package/docs/theme/plugins/global/fonts/@fortawesome/fa-regular-400.ttf +0 -0
- package/docs/theme/plugins/global/fonts/@fortawesome/fa-regular-400.woff2 +0 -0
- package/docs/theme/plugins/global/fonts/@fortawesome/fa-solid-900.ttf +0 -0
- package/docs/theme/plugins/global/fonts/@fortawesome/fa-solid-900.woff2 +0 -0
- package/docs/theme/plugins/global/fonts/@fortawesome/fa-v4compatibility.ttf +0 -0
- package/docs/theme/plugins/global/fonts/@fortawesome/fa-v4compatibility.woff2 +0 -0
- package/docs/theme/plugins/global/fonts/bootstrap-icons/bootstrap-icons.woff +0 -0
- package/docs/theme/plugins/global/fonts/bootstrap-icons/bootstrap-icons.woff2 +0 -0
- package/docs/theme/plugins/global/fonts/fonticon/fonticon.css +235 -0
- package/docs/theme/plugins/global/fonts/fonticon/fonticon.eot +0 -0
- package/docs/theme/plugins/global/fonts/fonticon/fonticon.svg +225 -0
- package/docs/theme/plugins/global/fonts/fonticon/fonticon.ttf +0 -0
- package/docs/theme/plugins/global/fonts/fonticon/fonticon.woff +0 -0
- package/docs/theme/plugins/global/fonts/fonticon/fonticon.woff2 +0 -0
- package/docs/theme/plugins/global/fonts/line-awesome/la-brands-400.eot +0 -0
- package/docs/theme/plugins/global/fonts/line-awesome/la-brands-400.svg +1313 -0
- package/docs/theme/plugins/global/fonts/line-awesome/la-brands-400.ttf +0 -0
- package/docs/theme/plugins/global/fonts/line-awesome/la-brands-400.woff +0 -0
- package/docs/theme/plugins/global/fonts/line-awesome/la-brands-400.woff2 +0 -0
- package/docs/theme/plugins/global/fonts/line-awesome/la-regular-400.eot +0 -0
- package/docs/theme/plugins/global/fonts/line-awesome/la-regular-400.svg +467 -0
- package/docs/theme/plugins/global/fonts/line-awesome/la-regular-400.ttf +0 -0
- package/docs/theme/plugins/global/fonts/line-awesome/la-regular-400.woff +0 -0
- package/docs/theme/plugins/global/fonts/line-awesome/la-regular-400.woff2 +0 -0
- package/docs/theme/plugins/global/fonts/line-awesome/la-solid-900.eot +0 -0
- package/docs/theme/plugins/global/fonts/line-awesome/la-solid-900.svg +2894 -0
- package/docs/theme/plugins/global/fonts/line-awesome/la-solid-900.ttf +0 -0
- package/docs/theme/plugins/global/fonts/line-awesome/la-solid-900.woff +0 -0
- package/docs/theme/plugins/global/fonts/line-awesome/la-solid-900.woff2 +0 -0
- package/docs/theme/plugins/global/plugins.bundle.css +34622 -0
- package/docs/theme/plugins/global/plugins.bundle.js +71788 -0
- package/hero.svg +1 -0
- package/package.json +4 -2
- package/screencaps/login.png +0 -0
- package/screencaps/personal-editing.png +0 -0
- package/screencaps/personal.png +0 -0
- package/screencaps/user-editing.png +0 -0
- package/screencaps/users.png +0 -0
- package/types/interfaces/AuthenticationOptions.d.ts +5 -4
- package/types/interfaces/ViewOptions.d.ts +1 -1
- package/types/middlewares/Authentication.d.ts +8 -0
- package/docs/docs.css +0 -284
- package/docs/docs.js +0 -41
- package/docs/img/associations/belongs-to-many.png +0 -0
- package/docs/img/associations/belongs-to.png +0 -0
- package/docs/img/associations/has-many.png +0 -0
- package/docs/img/associations/has-one.png +0 -0
- package/docs/img/demos/login&users.jfif +0 -0
- package/docs/img/hero.svg +0 -1
- package/docs/img/logo.svg +0 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,43 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
-
## [1.0.
|
|
4
|
+
## [1.0.24] - 2022/10/20
|
|
5
|
+
### Fixed
|
|
6
|
+
- A request body object has been added to the parameters of the callback function for user authentication.
|
|
7
|
+
config/authentication.js:
|
|
8
|
+
```js
|
|
9
|
+
const UserModel = require('../models/UserModel');
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* User authentication configuration interface.
|
|
13
|
+
*/
|
|
14
|
+
module.exports = {
|
|
15
|
+
/**
|
|
16
|
+
* This hook is called when authenticating a user.
|
|
17
|
+
* Please find the user information that owns the credentials based on the user name and password you received and return it.
|
|
18
|
+
* If the user who owns the credentials cannot be found, return null.
|
|
19
|
+
*
|
|
20
|
+
* Note that the user information must include an ID value that can identify the user.
|
|
21
|
+
*
|
|
22
|
+
* @type {(username: string, password: string, req: express.Request) => Promise<{[key: string]: any}|null>}
|
|
23
|
+
*/
|
|
24
|
+
authenticate_user: async (username, password, req) => {
|
|
25
|
+
return UserModel.findOne({
|
|
26
|
+
where: {
|
|
27
|
+
email: username,
|
|
28
|
+
password
|
|
29
|
+
},
|
|
30
|
+
raw: true
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## [1.0.23] - 2022/10/5
|
|
37
|
+
### Fixed
|
|
38
|
+
- Methodical check of request URLs that do not require authentication.
|
|
39
|
+
|
|
40
|
+
## [1.0.22] - 2022/7/27
|
|
5
41
|
### Fixed
|
|
6
42
|
- You can now set hook functions that are called before the view is rendered.
|
|
7
43
|
Hook functions can be used, for example, to set local variables that can be used in the view.
|
|
@@ -15,17 +51,17 @@ All notable changes to this project will be documented in this file.
|
|
|
15
51
|
* @example
|
|
16
52
|
* // The message set here can be referenced in the view as {{message}}.
|
|
17
53
|
* beforeRender: res => {
|
|
18
|
-
* res.
|
|
54
|
+
* res.locals.message = 'Hello World';
|
|
19
55
|
* }
|
|
20
56
|
*
|
|
21
57
|
* @type {(res: express.Response) => void}
|
|
22
58
|
*/
|
|
23
59
|
beforeRender: res => {
|
|
24
|
-
res.
|
|
60
|
+
res.locals.message = 'Hello World';
|
|
25
61
|
}
|
|
26
62
|
```
|
|
27
63
|
|
|
28
|
-
## [1.0.21] - 2022
|
|
64
|
+
## [1.0.21] - 2022/526
|
|
29
65
|
### Fixed
|
|
30
66
|
- Added an option to the face indexing method to retrieve details (gender, emotion, age group) of indexed faces.
|
|
31
67
|
```js
|
|
@@ -69,7 +105,7 @@ All notable changes to this project will be documented in this file.
|
|
|
69
105
|
console.log(faceDetails);
|
|
70
106
|
```
|
|
71
107
|
|
|
72
|
-
## [1.0.20] - 2022
|
|
108
|
+
## [1.0.20] - 2022/5/25
|
|
73
109
|
### Fixed
|
|
74
110
|
- Added an option to get details (emotion, gender, age group) to the face detection method.
|
|
75
111
|
```js
|
|
@@ -128,7 +164,7 @@ All notable changes to this project will be documented in this file.
|
|
|
128
164
|
})();
|
|
129
165
|
```
|
|
130
166
|
|
|
131
|
-
## [1.0.19] - 2022
|
|
167
|
+
## [1.0.19] - 2022/5/20
|
|
132
168
|
### Fixed
|
|
133
169
|
- Add date format helper to view.
|
|
134
170
|
```html
|
|
@@ -137,7 +173,7 @@ All notable changes to this project will be documented in this file.
|
|
|
137
173
|
{{format_date 'YYYY/MM/DD' "2021-10-24T02:13:06.610Z" 'es'}} => 2021/10/24
|
|
138
174
|
```
|
|
139
175
|
|
|
140
|
-
## [1.0.18] - 2022
|
|
176
|
+
## [1.0.18] - 2022/5/18
|
|
141
177
|
### Fixed
|
|
142
178
|
- User authentication sessions can now be stored in redis.
|
|
143
179
|
To use redis for session storage, simply add the following option to config/authentication.js.
|
|
@@ -161,19 +197,19 @@ All notable changes to this project will be documented in this file.
|
|
|
161
197
|
redis_host: 'redis://localhost:6379'
|
|
162
198
|
```
|
|
163
199
|
|
|
164
|
-
## [1.0.17] - 2022
|
|
200
|
+
## [1.0.17] - 2022/5/17
|
|
165
201
|
### Fixed
|
|
166
202
|
- Updated documentation and refactored variable names.
|
|
167
203
|
|
|
168
|
-
## [1.0.16] - 2022
|
|
204
|
+
## [1.0.16] - 2022/2/14
|
|
169
205
|
### Fixed
|
|
170
206
|
- I forgot to include the build file, so I added the build file.
|
|
171
207
|
|
|
172
|
-
## [1.0.15] - 2022
|
|
208
|
+
## [1.0.15] - 2022/2/14
|
|
173
209
|
### Fixed
|
|
174
210
|
- Changed the type of 'config/authentication.js#allow_unauthenticated' from'string[]' to'(string|RegExp)[]}'.
|
|
175
211
|
|
|
176
|
-
## [1.0.14] - 2022
|
|
212
|
+
## [1.0.14] - 2022/1/17
|
|
177
213
|
### Fixed
|
|
178
214
|
- empty view helper can now check any type. Previously I could only check arrays.
|
|
179
215
|
```html
|
|
@@ -217,7 +253,7 @@ All notable changes to this project will be documented in this file.
|
|
|
217
253
|
{{not_empty value}} => false
|
|
218
254
|
```
|
|
219
255
|
|
|
220
|
-
## [1.0.13] - 2021
|
|
256
|
+
## [1.0.13] - 2021/12/13
|
|
221
257
|
### Fixed
|
|
222
258
|
- The model's begin method now accepts the transaction option.
|
|
223
259
|
See [Transaction | Sequelize](https://sequelize.org/master/class/lib/transaction.js~Transaction.html) for transaction options.
|
|
@@ -243,7 +279,7 @@ All notable changes to this project will be documented in this file.
|
|
|
243
279
|
}
|
|
244
280
|
```
|
|
245
281
|
|
|
246
|
-
## [1.0.12] - 2021
|
|
282
|
+
## [1.0.12] - 2021/11/16
|
|
247
283
|
### Fixed
|
|
248
284
|
- Added a method to the model that can execute raw SQL.
|
|
249
285
|
As there are often use cases in which it is just easier to execute raw / already prepared SQL queries, you can use the Model.query method.
|
|
@@ -258,11 +294,11 @@ All notable changes to this project will be documented in this file.
|
|
|
258
294
|
const users = await BookModel.query("SELECT * FROM book", {type: BookModel.QueryTypes.SELECT});
|
|
259
295
|
```
|
|
260
296
|
|
|
261
|
-
## [1.0.11] - 2021
|
|
297
|
+
## [1.0.11] - 2021/11/10
|
|
262
298
|
### Fixed
|
|
263
299
|
- Fixed a bug that the database config was read before NODE_ENV was set and the database config matching NODE_ENV could not be read.
|
|
264
300
|
|
|
265
|
-
## [1.0.10] - 2021
|
|
301
|
+
## [1.0.10] - 2021/10/19
|
|
266
302
|
### Fixed
|
|
267
303
|
- Added face similarity found to face search results in collection.
|
|
268
304
|
|
|
@@ -287,33 +323,33 @@ All notable changes to this project will be documented in this file.
|
|
|
287
323
|
console.log('Face search results:', res);
|
|
288
324
|
```
|
|
289
325
|
|
|
290
|
-
## [1.0.9] - 2021
|
|
326
|
+
## [1.0.9] - 2021/10/13
|
|
291
327
|
### Fixed
|
|
292
328
|
- Updated dependent package'sharp'from 0.25.4 to 0.29.1.
|
|
293
329
|
This update statically links sharp's pre-built libvips binaries, eliminating the need to install Phton.
|
|
294
330
|
Click [here](https://sharp.pixelplumbing.com/changelog) for sharp change log.
|
|
295
331
|
|
|
296
|
-
## [1.0.8] - 2021
|
|
332
|
+
## [1.0.8] - 2021/9/25
|
|
297
333
|
### Fixed
|
|
298
334
|
- Fixed a bug where the default router couldn't aqua from the endpoint URL.
|
|
299
335
|
|
|
300
|
-
## [1.0.7] - 2021
|
|
336
|
+
## [1.0.7] - 2021/8/13
|
|
301
337
|
### Fixed
|
|
302
338
|
- Added where member functions to Model class. Please see [here](https://takuya-motoshima.github.io/express-sweet/#model-class) for details.
|
|
303
339
|
|
|
304
|
-
## [1.0.6] - 2021
|
|
340
|
+
## [1.0.6] - 2021/8/13
|
|
305
341
|
### Fixed
|
|
306
342
|
- Added fn, col and literal member functions to Model class. Please see [here](https://takuya-motoshima.github.io/express-sweet/#model-class) for details.
|
|
307
343
|
|
|
308
|
-
## [1.0.5] - 2021
|
|
344
|
+
## [1.0.5] - 2021/8/12
|
|
309
345
|
### Fixed
|
|
310
346
|
- Changed the maximum size per field for multipart (multipart/form-data) requests from 1MB to unlimited.
|
|
311
347
|
|
|
312
|
-
## [1.0.4] - 2021
|
|
348
|
+
## [1.0.4] - 2021/6/13
|
|
313
349
|
### Fixed
|
|
314
350
|
- Fixed a bug where the referrer URL was set in app.locals.currentPath instead of the current URL.
|
|
315
351
|
|
|
316
|
-
## [1.0.3] - 2021
|
|
352
|
+
## [1.0.3] - 2021/6/13
|
|
317
353
|
### Fixed
|
|
318
354
|
- Change the current URL path of a local variable.app.locals.currentPath is a USVString containing an initial '/' followed by the path of the URL not including the query string or fragment.
|
|
319
355
|
|
|
@@ -322,12 +358,12 @@ All notable changes to this project will be documented in this file.
|
|
|
322
358
|
console.log(app.locals.currentPath);
|
|
323
359
|
```
|
|
324
360
|
|
|
325
|
-
## [1.0.2] - 2021
|
|
361
|
+
## [1.0.2] - 2021//6/10
|
|
326
362
|
### Fixed
|
|
327
363
|
- Updated rollup from version 2.44 to 2.51.
|
|
328
364
|
- Fixed a bug where preloading models failed in cjs.
|
|
329
365
|
|
|
330
|
-
## [1.0.1] - 2021
|
|
366
|
+
## [1.0.1] - 2021/6/2
|
|
331
367
|
### Fixed
|
|
332
368
|
- Fixed a bug that caused an error when reading options defined in ESM's default Export.
|
|
333
369
|
|
|
@@ -352,4 +388,6 @@ All notable changes to this project will be documented in this file.
|
|
|
352
388
|
[1.0.19]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.18...v1.0.19
|
|
353
389
|
[1.0.20]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.19...v1.0.20
|
|
354
390
|
[1.0.21]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.20...v1.0.21
|
|
355
|
-
[1.0.22]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.21...v1.0.22
|
|
391
|
+
[1.0.22]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.21...v1.0.22
|
|
392
|
+
[1.0.23]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.22...v1.0.23
|
|
393
|
+
[1.0.24]: https://github.com/takuya-motoshima/express-sweet/compare/v1.0.23...v1.0.24
|
package/README.md
CHANGED
|
@@ -1,19 +1,156 @@
|
|
|
1
|
-
|
|
2
|
-

|
|
1
|
+
[](https://takuya-motoshima.github.io/express-sweet/#install)
|
|
3
2
|
|
|
4
3
|
Extend Express functionality with Express Sweet and start developing fast, minimal web applications.
|
|
5
4
|
|
|
6
5
|
## Documentation
|
|
7
|
-
* [
|
|
8
|
-
* [
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
6
|
+
* [Express Sweet Documentation](https://takuya-motoshima.github.io/express-sweet/)
|
|
7
|
+
* [Changelog](CHANGELOG.md)
|
|
8
|
+
|
|
9
|
+
## Quick Start
|
|
10
|
+
The easiest way to get started with Express Sweet is to install express-sweet-generator and automatically create a template application.
|
|
11
|
+
The following application can be started immediately by executing the template.
|
|
12
|
+
See <a href="https://takuya-motoshima.github.io/express-sweet/" target="_blank">here</a> for instructions on using express-sweet.
|
|
13
|
+
|
|
14
|
+
<p align="center">
|
|
15
|
+
<img alt="login" src="screencaps/login.png" width="45%">
|
|
16
|
+
<img alt="users" src="screencaps/users.png" width="45%">
|
|
17
|
+
</p>
|
|
18
|
+
<p align="center">
|
|
19
|
+
<img alt="user-editing" src="screencaps/user-editing.png" width="45%">
|
|
20
|
+
<img alt="personal" src="screencaps/personal.png" width="45%">
|
|
21
|
+
</p>
|
|
22
|
+
|
|
23
|
+
1. Use the application generator tool, express-sweet-generator, to quickly create an application skeleton.
|
|
24
|
+
```sh
|
|
25
|
+
npm install -g express-sweet-generator
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
1. Create an Express myapp named myapp.
|
|
29
|
+
The app is created in a folder named myapp in the working directory.
|
|
30
|
+
```sh
|
|
31
|
+
express-sweet myapp
|
|
32
|
+
# If you want to use ESM, below.
|
|
33
|
+
#express-sweet -o esm myapp
|
|
34
|
+
```
|
|
35
|
+
1. Install dependent packages.
|
|
36
|
+
```sh
|
|
37
|
+
cd myapp
|
|
38
|
+
npm install
|
|
39
|
+
```
|
|
40
|
+
1. This sample application uses a database.
|
|
41
|
+
Execute the following SQL to create the database.
|
|
42
|
+
```sql
|
|
43
|
+
CREATE DATABASE IF NOT EXISTS `sampledb` DEFAULT CHARACTER SET utf8mb4;
|
|
44
|
+
|
|
45
|
+
USE `sampledb`;
|
|
46
|
+
|
|
47
|
+
CREATE TABLE `user` (
|
|
48
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
49
|
+
`name` varchar(30) NOT NULL,
|
|
50
|
+
`email` varchar(255) NOT NULL,
|
|
51
|
+
`password` varchar(100) NOT NULL,
|
|
52
|
+
`icon` varchar(768) NOT NULL DEFAULT MD5(RAND()),
|
|
53
|
+
`created` datetime NOT NULL DEFAULT current_timestamp(),
|
|
54
|
+
`modified` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
|
55
|
+
PRIMARY KEY (`id`),
|
|
56
|
+
UNIQUE KEY `ukUserEmail` (`email`),
|
|
57
|
+
UNIQUE KEY `ukUserIcon`(`icon`)
|
|
58
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
59
|
+
|
|
60
|
+
CREATE TABLE `profile` (
|
|
61
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
62
|
+
`userId` int(10) unsigned NOT NULL,
|
|
63
|
+
`address` varchar(255) NOT NULL,
|
|
64
|
+
`tel` varchar(14) NOT NULL,
|
|
65
|
+
`created` datetime NOT NULL DEFAULT current_timestamp(),
|
|
66
|
+
`modified` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
|
67
|
+
PRIMARY KEY (`id`),
|
|
68
|
+
UNIQUE KEY `ukProfileUserId` (`userId`),
|
|
69
|
+
CONSTRAINT `fkProfileUser` FOREIGN KEY (`userId`) REFERENCES `user` (`id`)
|
|
70
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
71
|
+
|
|
72
|
+
CREATE TABLE `comment` (
|
|
73
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
74
|
+
`userId` int(10) unsigned NOT NULL,
|
|
75
|
+
`text` text NOT NULL,
|
|
76
|
+
`created` datetime NOT NULL DEFAULT current_timestamp(),
|
|
77
|
+
`modified` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
|
78
|
+
PRIMARY KEY (`id`),
|
|
79
|
+
CONSTRAINT `fkCommentUser` FOREIGN KEY (`userId`) REFERENCES `user` (`id`)
|
|
80
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
81
|
+
|
|
82
|
+
CREATE TABLE `book` (
|
|
83
|
+
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
84
|
+
`userId` int(10) unsigned NOT NULL,
|
|
85
|
+
`title` text NOT NULL,
|
|
86
|
+
`created` datetime NOT NULL DEFAULT current_timestamp(),
|
|
87
|
+
`modified` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
|
88
|
+
PRIMARY KEY (`id`),
|
|
89
|
+
UNIQUE KEY `ukBookTitle` (`userId`, `title`(255)),
|
|
90
|
+
CONSTRAINT `fkBookUser` FOREIGN KEY (`userId`) REFERENCES `user` (`id`)
|
|
91
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
92
|
+
|
|
93
|
+
INSERT INTO `user` (`id`, `email`, `password`, `name`, `icon`) VALUES
|
|
94
|
+
(1, 'robin@example.com', 'password', 'Robin', '/upload/1.png'),
|
|
95
|
+
(2, 'taylor@example.com', 'password', 'Taylor', '/upload/2.png');
|
|
96
|
+
INSERT INTO `profile` (`userId`, `address`, `tel`) VALUES
|
|
97
|
+
(1, '777 Brockton Avenue, Abington MA 2351', '202-555-0105'),
|
|
98
|
+
(2, '30 Memorial Drive, Avon MA 2322', '');
|
|
99
|
+
INSERT INTO `comment` (`userId`, `text`) VALUES
|
|
100
|
+
(1, 'From Robin #1'),
|
|
101
|
+
(1, 'From Robin #2'),
|
|
102
|
+
(2, 'From Taylor #1');
|
|
103
|
+
INSERT INTO `book` (`userId`, `title`) VALUES
|
|
104
|
+
(1, 'Beautiful'),
|
|
105
|
+
(1, 'Lose Yourself'),
|
|
106
|
+
(2, 'When Im Gone');
|
|
107
|
+
```
|
|
108
|
+
1. Build front-end JS.
|
|
109
|
+
```sh
|
|
110
|
+
cd myapp/client
|
|
111
|
+
npm install
|
|
112
|
+
npm run build
|
|
113
|
+
```
|
|
114
|
+
1. Next, you need to set how the database is connected.
|
|
115
|
+
The database connection method can be set in config/database.js, so change it according to your environment.
|
|
116
|
+
See [here](https://sequelize.org/docs/v6/other-topics/migrations/#cfg) for details.
|
|
117
|
+
```js
|
|
118
|
+
// For ESM, use "export default".
|
|
119
|
+
//export default {
|
|
120
|
+
module.exports = {
|
|
121
|
+
development: {
|
|
122
|
+
username: 'root',
|
|
123
|
+
password: 'password',
|
|
124
|
+
database: 'sampledb',
|
|
125
|
+
host: 'localhost',
|
|
126
|
+
dialect: 'mariadb'
|
|
127
|
+
},
|
|
128
|
+
test: {
|
|
129
|
+
username: 'root',
|
|
130
|
+
password: 'password',
|
|
131
|
+
database: 'sampledb',
|
|
132
|
+
host: 'localhost',
|
|
133
|
+
dialect: 'mariadb'
|
|
134
|
+
},
|
|
135
|
+
production: {
|
|
136
|
+
username: 'root',
|
|
137
|
+
password: 'password',
|
|
138
|
+
database: 'sampledb',
|
|
139
|
+
host: 'localhost',
|
|
140
|
+
dialect: 'mariadb'
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
```
|
|
144
|
+
1. The DB to be used can be defined individually for each environment.
|
|
145
|
+
Specify the environment in the .env file.
|
|
146
|
+
```js
|
|
147
|
+
NODE_ENV=development
|
|
148
|
+
```
|
|
149
|
+
1. Launch the application.
|
|
150
|
+
```sh
|
|
151
|
+
cd myapp
|
|
152
|
+
npm start
|
|
153
|
+
```
|
|
17
154
|
|
|
18
155
|
## Author
|
|
19
156
|
**Takuya Motoshima**
|