-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to latest SPA approach with Angular 13 / Bootstrap 5
Todo component is broken.
- Loading branch information
Jason Taylor
committed
May 21, 2022
1 parent
eaab5f7
commit 9275ce6
Showing
53 changed files
with
16,278 additions
and
29,904 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"sdk": { | ||
"version": "6.0.100", | ||
"rollForward": "latestMajor" | ||
"rollForward": "latestMinor" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
# This file is currently used by autoprefixer to adjust CSS to support the below specified browsers | ||
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below. | ||
# For additional information regarding the format and rule options, please see: | ||
# https://github.com/browserslist/browserslist#queries | ||
# For IE 9-11 support, please uncomment the last line of the file and adjust as needed | ||
> 0.5% | ||
last 2 versions | ||
|
||
# For the full list of supported browsers by the Angular framework, please see: | ||
# https://angular.io/guide/browser-support | ||
|
||
# You can see what browsers were selected by your queries by running: | ||
# npx browserslist | ||
|
||
last 1 Chrome version | ||
last 1 Firefox version | ||
last 2 Edge major versions | ||
last 2 Safari major versions | ||
last 2 iOS major versions | ||
Firefox ESR | ||
not dead | ||
# IE 9-11 | ||
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
/dist-server | ||
/tmp | ||
/out-tsc | ||
/.angular/cache/ | ||
|
||
# dependencies | ||
/node_modules | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Test | ||
|
||
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.3.6. | ||
|
||
## Development server | ||
|
||
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files. | ||
|
||
## Code scaffolding | ||
|
||
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`. | ||
|
||
## Build | ||
|
||
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. | ||
|
||
## Running unit tests | ||
|
||
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). | ||
|
||
## Running end-to-end tests | ||
|
||
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities. | ||
|
||
## Further help | ||
|
||
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// This script sets up HTTPS for the application using the ASP.NET Core HTTPS certificate | ||
const fs = require('fs'); | ||
const spawn = require('child_process').spawn; | ||
const path = require('path'); | ||
|
||
const baseFolder = | ||
process.env.APPDATA !== undefined && process.env.APPDATA !== '' | ||
? `${process.env.APPDATA}/ASP.NET/https` | ||
: `${process.env.HOME}/.aspnet/https`; | ||
|
||
const certificateArg = process.argv.map(arg => arg.match(/--name=(?<value>.+)/i)).filter(Boolean)[0]; | ||
const certificateName = certificateArg ? certificateArg.groups.value : process.env.npm_package_name; | ||
|
||
if (!certificateName) { | ||
console.error('Invalid certificate name. Run this script in the context of an npm/yarn script or pass --name=<<app>> explicitly.') | ||
process.exit(-1); | ||
} | ||
|
||
const certFilePath = path.join(baseFolder, `${certificateName}.pem`); | ||
const keyFilePath = path.join(baseFolder, `${certificateName}.key`); | ||
|
||
if (!fs.existsSync(certFilePath) || !fs.existsSync(keyFilePath)) { | ||
spawn('dotnet', [ | ||
'dev-certs', | ||
'https', | ||
'--export-path', | ||
certFilePath, | ||
'--format', | ||
'Pem', | ||
'--no-password', | ||
], { stdio: 'inherit', }) | ||
.on('exit', (code) => process.exit(code)); | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.