-
Notifications
You must be signed in to change notification settings - Fork 19
Angular Demo App #104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Angular Demo App #104
Changes from 221 commits
Commits
Show all changes
222 commits
Select commit
Hold shift + click to select a range
a86a545
Update README title for BYU team branch
amur-bashirov c69f6ff
created React Demo
amur-bashirov e41f690
Amur's React + Vite default app
amur-bashirov 125eae9
Rename React app folder
amur-bashirov 6872ffb
Created folders to begin developing
Samuelsotogit d7c15cb
Merge branch 'BYU-Development' of https://github.com/Samuelsotogit/sy…
Samuelsotogit cd99b03
put react empty app into web-apps folder
amur-bashirov dd5b89e
Update Nimble package
reouct 0022308
Remove default React buttons
reouct f62b9bc
Added NI icon to the page
amur-bashirov 684e857
added buttons colors
amur-bashirov 91d5c64
Co-authored-by: Bowen Liu <[email protected]>
amur-bashirov 0a24153
new path and css
amur-bashirov 85d83b1
put a placeholder for config.js
amur-bashirov b1de94a
changed it to the typescript
amur-bashirov df1b8ce
put a placeholder for config
amur-bashirov 71bb8d2
unable to use secrets not in pipline, reversed the proccess back
amur-bashirov fa85069
pit config.ts into gitignore
amur-bashirov 51d0af9
tried to put it one more time
amur-bashirov 5a10fcc
changed config back
amur-bashirov dff043c
Stop tracking config.ts
amur-bashirov 9bc4478
push to delete config.ts
amur-bashirov 6b4de7c
deleted dem_config
amur-bashirov 9626c3b
finished creating demo config
amur-bashirov 07aca10
finished config file and demo config file
amur-bashirov 3fc1884
defined div for api call
amur-bashirov acef4c6
finished css for button and api
amur-bashirov 3084d50
defined first div and title for the example css
amur-bashirov a2c4e9d
Set Up README.md on top and lower levels within the repo
Samuelsotogit 5026d57
Merge branch 'BYU-Development' of https://github.com/Samuelsotogit/sy…
Samuelsotogit a2b111f
sussesfuly called api call
amur-bashirov 805acec
Update README on how to run the app locally.
reouct d4c1875
fixed most of the issues with main description for now
amur-bashirov e5da9fa
Merge branch 'Bowen-Amur-Design' of https://github.com/Samuelsotogit/…
amur-bashirov 4edeaad
CSS cleanup.
reouct 96316c1
Update on displaying the response on the screen
reouct 0824d32
Starting Blazor Work
Hecktomb200 b01f438
empty new blazor app
amur-bashirov 00f5936
added html
amur-bashirov 0e96f9b
renamed service to serviceProxy)
rockyRaccoon13 ef0e56f
dotnet changes
Samuelsotogit 6027eee
added gitignore
amur-bashirov 4d0c12f
Merge branch 'BYU-Development' into Bowen-Amur-Logan-Design
amur-bashirov ed6f6f1
ignore config (sensitive data) and node_modules (bloat)
rockyRaccoon13 cd37f3d
ignore node_modules, dist/, *.nipkg
rockyRaccoon13 614574b
fix(build) vite build now uses relative paths
rockyRaccoon13 29d2a33
fixed proxy setup. Add vite env files for dev and prod
rockyRaccoon13 7506bfa
update(README). proxy config and SL-CLI deployment instructions
rockyRaccoon13 c1bd8e7
Merge branch 'BYU-Development' into dev/benson
rockyRaccoon13 ab058fc
temp fix(proxyService) proxy works for specific endpoint and method
rockyRaccoon13 3ecb790
added notes on how dev/prod envs work
rockyRaccoon13 fe125a0
made service work for all methods and upstream paths
rockyRaccoon13 1e2a81e
Merge branch 'BYU-Development' into dev/benson
rockyRaccoon13 af1b8f5
Merge branch 'ni:main' into BYU-Development
rockyRaccoon13 b580e0c
added test
rockyRaccoon13 73453e1
updated css
amur-bashirov 53eab0a
changed the structure of the design
amur-bashirov 3da2929
imported font
amur-bashirov db4488d
Added Initial Blazor APP
Samuelsotogit a0b2bb9
Merge branch 'BYU-Development' of https://github.com/Samuelsotogit/sy…
Samuelsotogit 4b584d3
Changed file names
Samuelsotogit af084c0
added dependencies via npm
Samuelsotogit 610c690
Installed NimbleBlazor dependencies, created API component page with …
Samuelsotogit 417f71f
Add Nimble components support to Blazor app
Samuelsotogit b0ba768
Merge branch 'blazor-API-call-feature' into BYU-Development
Samuelsotogit 05adc20
fixed buttons and description css
amur-bashirov 36bebdd
init(webapp-deployment ci)
rockyRaccoon13 9ab6fc5
fixed webapp-deploy.yml to run action on change to yml
rockyRaccoon13 681689e
Add interactive API call example page
Samuelsotogit 80d3e06
figured out css for links
amur-bashirov 82ee280
fix(webapp-deploy.yml) - actions versions, app paths, secrets keys
rockyRaccoon13 30e500f
fix(webapp workflow) - add slcli to github path
rockyRaccoon13 eee214e
fix(webapp workflow) - update login to match new slcli cmd
rockyRaccoon13 94c52c2
change(webapp-deploy) add Prod prefix to published name
rockyRaccoon13 10964a7
change
rockyRaccoon13 fce4987
refactor(webb-app deploy) 1 job (instead of 2)
rockyRaccoon13 c6be905
Merge branch 'ni:main' into BYU-Development
rockyRaccoon13 cce3084
Merge branch 'ni:main' into main
rockyRaccoon13 4a2a712
added test
rockyRaccoon13 1280d33
init(webapp-deployment ci)
rockyRaccoon13 d828e1a
fixed webapp-deploy.yml to run action on change to yml
rockyRaccoon13 436c0be
fix(webapp-deploy.yml) - actions versions, app paths, secrets keys
rockyRaccoon13 140d829
fix(webapp workflow) - add slcli to github path
rockyRaccoon13 1dd7b16
fix(webapp workflow) - update login to match new slcli cmd
rockyRaccoon13 0230da8
change(webapp-deploy) add Prod prefix to published name
rockyRaccoon13 3334e6c
change
rockyRaccoon13 fce8ba1
refactor(webb-app deploy) 1 job (instead of 2)
rockyRaccoon13 df0d79d
delete(unused)
rockyRaccoon13 2de2578
setup esLint using NI rules (plus, downgraded globals to make lintin…
rockyRaccoon13 9f3ed3b
Merge branch 'BYU-Development' into dev/benson
rockyRaccoon13 88fe2f5
mod(vite.config.ts) eslint ignore(no-default-export, no-extra-dep)
rockyRaccoon13 089eb71
add lint to webapp-deploy workflow
rockyRaccoon13 02e7519
dotnet changes
Samuelsotogit b1201fd
Added Initial Blazor APP
Samuelsotogit adf8bc4
Changed file names
Samuelsotogit 883e029
Installed NimbleBlazor dependencies, created API component page with …
Samuelsotogit 3a36716
Add Nimble components support to Blazor app
Samuelsotogit 892f6c8
added test
rockyRaccoon13 858487d
init(webapp-deployment ci)
rockyRaccoon13 e4d1eb6
delete(unused)
rockyRaccoon13 0625fa0
setup esLint using NI rules (plus, downgraded globals to make lintin…
rockyRaccoon13 2b6cead
mod(vite.config.ts) eslint ignore(no-default-export, no-extra-dep)
rockyRaccoon13 c4ae11d
add lint to webapp-deploy workflow
rockyRaccoon13 71b963b
init(deployDev.sh) to automate adding webapp to SL website
rockyRaccoon13 da59ef1
Merge branch 'BYU-Development'
rockyRaccoon13 f1c33a7
addTo(webapp deployment workflow) run on angular folders
rockyRaccoon13 25eedc8
Merge branch 'BYU-Development'
rockyRaccoon13 5d00908
fix(env variable for apps dir react)
rockyRaccoon13 386de8e
Merge branch 'BYU-Development'
rockyRaccoon13 cb2fae3
changed the colors and some ui
amur-bashirov 5b1f6f0
API call now functioning for local development
Samuelsotogit 3f41680
fix(workflow) delete incorrect white space
rockyRaccoon13 569b283
Merge branch 'blazor-API-call-feature' into BYU-Development
Samuelsotogit ea2bfcf
saved fonts offline
amur-bashirov 4471f7b
Merge branch 'main' of https://github.com/Samuelsotogit/systemlink-en…
reouct bccf25c
changed all the links to open tabs
amur-bashirov c72cdcd
Merge branch 'React'
amur-bashirov 0afb87a
fix(workflow) fix typo in angular env variable
rockyRaccoon13 6e5888b
Merge branch 'devOps/CI_CD'
rockyRaccoon13 8087555
mv(serviceProxy) to Dev Tools/ApiServiceProxy
rockyRaccoon13 3aa315b
rename(amur-react-vite-app) to ApiKeyAuthApp
rockyRaccoon13 195361b
mv web_apps/** into examples/
rockyRaccoon13 9c9263e
update(workflow) to reflect path changes
rockyRaccoon13 c4389ee
implemented Nimble fonts
amur-bashirov bdc82b0
implemented Nimble fonts
amur-bashirov e203c5c
Merge branch 'main' into React -- restructured code
rockyRaccoon13 4e73c76
deleted Blazor apps
amur-bashirov c46a04e
deleted react workflow
amur-bashirov 2b4e599
implemented Nimble fonts
amur-bashirov d65631e
edited Instructions. for running proxy server
rockyRaccoon13 694df61
edited Instructions. for running proxy server
rockyRaccoon13 1be8f3c
add webapp_deploy
rockyRaccoon13 032ae88
fix (workflow) app dirs
rockyRaccoon13 8fb5d11
fixed workflow target path
rockyRaccoon13 6006bac
rm(junk Readme_files folder)
rockyRaccoon13 f737b36
added green box border
amur-bashirov 057cea9
edit(README) edit web_app examples
rockyRaccoon13 f8a6374
added green box border
amur-bashirov 8090b68
Merge branch 'main' into React
rockyRaccoon13 9dc7710
added padding
amur-bashirov af2732f
changed the titles for the links
amur-bashirov c22cbb3
changed all the divs inside the header to make the tabs as links them…
amur-bashirov 3611ec8
renamed title component to make css easier to work with
amur-bashirov e6ca6f7
polished design for links
amur-bashirov f62fceb
added logos folder
amur-bashirov adc2147
clean up(bad files)
rockyRaccoon13 bdfdfa2
remove react logo
rockyRaccoon13 44a7753
delete font files
rockyRaccoon13 fd194aa
Merge remote-tracking branch 'origin/NewReact' into React
rockyRaccoon13 2550523
Update README.md edit letter casing
rockyRaccoon13 500e5d7
Update .gitignore -- removed .net ignores
rockyRaccoon13 26ec764
change web app folder names to match casing
rockyRaccoon13 7528064
move .gitignore to parent folder (1 per project)
rockyRaccoon13 d65a7dc
Update .github/workflows/webapp-deploy.yml
rockyRaccoon13 fedfca4
fixed eslint config (app ts/tsx, js, and vite errors)
rockyRaccoon13 6295d5d
fix basic linting errors
rockyRaccoon13 ee663e5
changed term website to env to refer to SL UI env
rockyRaccoon13 31cfc8d
change package.json meta
rockyRaccoon13 60dd345
updated readme for service proxy
rockyRaccoon13 8e95274
merge css-> scss changes
amur-bashirov 4ff4719
change css -> scss import
amur-bashirov f5b3dc9
solved lint issue with logging
amur-bashirov a6529f4
made lint to ignore dist folder
amur-bashirov 6cd3b25
finished lint problems
amur-bashirov 8ef850b
initiated default Angular app
amur-bashirov 8f95e55
fixed index.html and deleted Angular icon
amur-bashirov d38de97
in the process of installing nimble
amur-bashirov 1103cae
added new Angular app to run Analog and fit Angular 19 version for Ni…
amur-bashirov 40ff328
successfully create default Angluar app with Angular version 19 and i…
amur-bashirov a706889
sussesfully build angular app to run nimble library and using nimble …
amur-bashirov 455a05f
deleted unnessesery Angular apps
amur-bashirov 34b70a8
implemented ui design for Angular app
amur-bashirov dd9ecb7
made a ssussesful api call in development envorioment
amur-bashirov b46aaa1
solved the problem with routing and base url for producation to Syste…
amur-bashirov d8b7ab3
sussesfully implemented API call environmental variables both for loc…
amur-bashirov 4a617a7
renamed Angular app
amur-bashirov cc84326
renamed it back
amur-bashirov 1ed8a26
changed depedency from nimble react
amur-bashirov 4979430
ignore analytics prompt for angular
rockyRaccoon13 8d54185
updated the link to reference Angular npm package instead of React
amur-bashirov 7c93966
created ReadMe for Angular app
amur-bashirov da3230c
solved spacing for header a
amur-bashirov bf27403
updated the links as described by Jesse in PR
amur-bashirov 6d24758
updated scss to make border not to ass space anymore when hovered over
amur-bashirov 45b86b6
updated the link to the future repo when it will be accepted and dele…
amur-bashirov 5d005fb
renamed the Angular app to match react app name
amur-bashirov 770ca09
Merge remote-tracking branch 'upstream/main' into Angular
rockyRaccoon13 0ea3f5e
installed dependencies
amur-bashirov b1c2c8e
Merge branch 'Angular' of https://github.com/Samuelsotogit/systemlink…
amur-bashirov 84a569c
changed to the Angular version 20
amur-bashirov 0ead436
changed back to version 19
amur-bashirov 45e359e
working on fonts
amur-bashirov bdfa224
fix(workflow) - only run slcli cache on ni/main when it is needed for…
rockyRaccoon13 14f31a8
fix(deployment job) -- fix matrix strategy
rockyRaccoon13 1407206
deleted useless fonts
amur-bashirov 58ae569
solved the problem with the fonts
amur-bashirov f2ad3a3
applied changes to the scss to use all the nimble variables and fonts
amur-bashirov 13dfdf6
Merge branch 'ni:main' into main
rockyRaccoon13 63140da
Merge branch 'main' into Angular
amur-bashirov 76df37f
put Angular in Web Apps folder and deleted Web Applications folder
amur-bashirov 3655362
renamed the Angular app
amur-bashirov e85aaa7
edited Readme to referance Angular instead of React
amur-bashirov 9b5f633
updated angular version to 20 and updated nimble library
amur-bashirov debcf52
deleted font depedency and change the title name
amur-bashirov 6eb2894
cahnged link to work with renaming
amur-bashirov 3ec277d
deleted test
amur-bashirov e309a06
got rid of font imports and cleaned up module imports
amur-bashirov a2d5dde
Update package-lock.json after font change
jattasNI b6ae8b3
Minor README edits
jattasNI a8e16c5
Add .npmrc for Angular
jattasNI 8a088a2
Add .npmrc for all framework examples
jattasNI 74ff372
Formatting
jattasNI a569e09
whitespace
jattasNI f302616
Consistent styling and text across apps
jattasNI 80575c8
Remove unused tests
jattasNI 567d35c
Remove nimble-components dep
jattasNI a6ce802
Configure linting
jattasNI 3705888
lint:fix
jattasNI f48f78a
Configure i18n rule
jattasNI 7ae6973
Manual lint fixes
jattasNI 9e09c9e
Re-add empty test to fix lint error
jattasNI 2b7d4fd
Consistent READMEs and links
jattasNI File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
examples/Web Apps/Framework Examples/Angular/SystemLinkAuthExample/.editorconfig
This file contains hidden or 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,17 @@ | ||
| # Editor configuration, see https://editorconfig.org | ||
| root = true | ||
|
|
||
| [*] | ||
| charset = utf-8 | ||
| indent_style = space | ||
| indent_size = 2 | ||
| insert_final_newline = true | ||
| trim_trailing_whitespace = true | ||
|
|
||
| [*.ts] | ||
| quote_type = single | ||
| ij_typescript_use_double_quotes = false | ||
|
|
||
| [*.md] | ||
| max_line_length = off | ||
| trim_trailing_whitespace = false |
44 changes: 44 additions & 0 deletions
44
examples/Web Apps/Framework Examples/Angular/SystemLinkAuthExample/.gitignore
This file contains hidden or 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,44 @@ | ||
| # See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files. | ||
|
|
||
| # Compiled output | ||
| /dist | ||
| /tmp | ||
| /out-tsc | ||
| /bazel-out | ||
| *.nipkg | ||
|
|
||
|
|
||
| # Node | ||
| /node_modules | ||
| npm-debug.log | ||
| yarn-error.log | ||
|
|
||
| # IDEs and editors | ||
| .idea/ | ||
| .project | ||
| .classpath | ||
| .c9/ | ||
| *.launch | ||
| .settings/ | ||
| *.sublime-workspace | ||
|
|
||
| # Visual Studio Code | ||
| .vscode/* | ||
| !.vscode/settings.json | ||
| !.vscode/tasks.json | ||
| !.vscode/launch.json | ||
| !.vscode/extensions.json | ||
| .history/* | ||
|
|
||
| # Miscellaneous | ||
| /.angular/cache | ||
| .sass-cache/ | ||
| /connect.lock | ||
| /coverage | ||
| /libpeerconnection.log | ||
| testem.log | ||
| /typings | ||
|
|
||
| # System files | ||
| .DS_Store | ||
| Thumbs.db |
1 change: 1 addition & 0 deletions
1
examples/Web Apps/Framework Examples/Angular/SystemLinkAuthExample/.npmrc
This file contains hidden or 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 @@ | ||
| registry=https://registry.npmjs.org/ |
77 changes: 77 additions & 0 deletions
77
examples/Web Apps/Framework Examples/Angular/SystemLinkAuthExample/README.md
This file contains hidden or 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,77 @@ | ||
| # Angular Demo for SystemLink | ||
|
|
||
| A minimal setup to get this demo working on your local machine with a Angular | ||
| frontend and Node.js backend proxy. | ||
|
|
||
| For how to deploy the webapp to SystemLink, jump to | ||
| [here](#deploying-to-systemlink-website-using-the-systemlink-cli). | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| - **Node.js** v22.16.0 or higher | ||
|
|
||
| ## Getting Started -- Running Locally | ||
|
|
||
| ### Backend Proxy Setup | ||
|
|
||
| > **Note:** The frontend calls a backend proxy running on `localhost:4000`, | ||
| > which in turn calls the SystemLink API server. This avoids CORS errors that | ||
| > would occur from direct frontend-to-server calls. | ||
|
|
||
| Make sure you have the [ApiServiceProxy](../../../Dev%20Tools/ApiServiceProxy/) | ||
| installed and have followed the setup in the README. | ||
|
|
||
| ### Frontend Setup | ||
|
|
||
| 1. Install dependencies: | ||
|
|
||
| ```bash | ||
| npm ci | ||
| ``` | ||
|
|
||
| 2. Start the development server: | ||
|
|
||
| ```bash | ||
| npm run start | ||
| ``` | ||
|
|
||
| 3. Open your browser and navigate to the URL that was printed in the console. For example: | ||
|
|
||
| ``` | ||
| http://localhost:5173 | ||
| ``` | ||
|
|
||
| Or type in `o + enter` to have vite open the browser and navigate for you. | ||
|
|
||
| ## Testing | ||
|
|
||
| 1. Click the **Make API Call** button in the application | ||
| 2. You should see the response printed on the browser | ||
|
|
||
| --- | ||
|
|
||
| ## Deployment using the SystemLink CLI | ||
|
|
||
| Prereq: | ||
| **[Install](https://github.com/ni-kismet/systemlink-cli?tab=readme-ov-file#installation)** | ||
| the SystemLink CLI to your machine and | ||
| **[login](https://github.com/ni-kismet/systemlink-cli?tab=readme-ov-file#installation)** | ||
| to the CLI. | ||
|
|
||
| 1. `cd` into the project folder and run `npm run build` to create `dist/` folder | ||
| 2. Create .nipkg file using `slcli webapp pack dist/` | ||
| 3. Publish the webapp with | ||
| `slcli webapp publish dist.nipkg --name NAME --workspace WORKSPACE`. Specify | ||
| the webapp NAME and the user WORKSPACE | ||
| 4. After any changes are made, repack the webapp (step 2) and update the webapp | ||
| with `slcli webapp publish dist.nipkg --id ID`. (Use `slcli webapp list` to | ||
| get the ID) | ||
|
|
||
| For more details on | ||
| [WebApp Management](https://github.com/ni-kismet/systemlink-cli?tab=readme-ov-file#installation) | ||
| see the SL-CLI docs | ||
|
|
||
| # | ||
|
|
||
| For more information, visit the | ||
| [SystemLink Enterprise Examples repository](https://github.com/ni/systemlink-enterprise-examples) | ||
162 changes: 162 additions & 0 deletions
162
examples/Web Apps/Framework Examples/Angular/SystemLinkAuthExample/angular.json
This file contains hidden or 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,162 @@ | ||
| { | ||
| "$schema": "./node_modules/@angular/cli/lib/config/schema.json", | ||
| "version": 1, | ||
| "newProjectRoot": "projects", | ||
| "projects": { | ||
| "SystemLinkAuthExample": { | ||
| "projectType": "application", | ||
| "schematics": { | ||
| "@schematics/angular:component": { | ||
| "style": "scss", | ||
| "standalone": false | ||
| }, | ||
| "@schematics/angular:directive": { | ||
| "standalone": false | ||
| }, | ||
| "@schematics/angular:pipe": { | ||
| "standalone": false | ||
| } | ||
| }, | ||
| "root": "", | ||
| "sourceRoot": "src", | ||
| "prefix": "app", | ||
| "architect": { | ||
| "build": { | ||
| "builder": "@angular/build:application", | ||
| "options": { | ||
| "outputPath": "dist/SystemLinkAuthExample", | ||
| "index": "src/index.html", | ||
| "browser": "src/main.ts", | ||
| "polyfills": [ | ||
| "zone.js" | ||
| ], | ||
| "tsConfig": "tsconfig.app.json", | ||
| "inlineStyleLanguage": "scss", | ||
| "assets": [ | ||
| { | ||
| "glob": "**/*", | ||
| "input": "public" | ||
| }, | ||
| { | ||
| "glob": "**/*", | ||
| "input": "public" | ||
| } | ||
| ], | ||
| "styles": [ | ||
| "src/styles.scss" | ||
| ], | ||
| "scripts": [] | ||
| }, | ||
| "configurations": { | ||
| "production": { | ||
| "fileReplacements": [ | ||
| { | ||
| "replace": "src/environments/environment.ts", | ||
| "with": "src/environments/environment.prod.ts" | ||
| } | ||
| ], | ||
| "budgets": [ | ||
| { | ||
| "type": "initial", | ||
| "maximumWarning": "500kB", | ||
| "maximumError": "1MB" | ||
| }, | ||
| { | ||
| "type": "anyComponentStyle", | ||
| "maximumWarning": "4kB", | ||
| "maximumError": "8kB" | ||
| } | ||
| ], | ||
| "outputHashing": "all" | ||
| }, | ||
| "development": { | ||
| "optimization": false, | ||
| "extractLicenses": false, | ||
| "sourceMap": true | ||
| } | ||
| }, | ||
| "defaultConfiguration": "production" | ||
| }, | ||
| "serve": { | ||
| "builder": "@angular/build:dev-server", | ||
| "configurations": { | ||
| "production": { | ||
| "buildTarget": "SystemLinkAuthExample:build:production" | ||
| }, | ||
| "development": { | ||
| "buildTarget": "SystemLinkAuthExample:build:development" | ||
| } | ||
| }, | ||
| "defaultConfiguration": "development" | ||
| }, | ||
| "extract-i18n": { | ||
| "builder": "@angular/build:extract-i18n" | ||
| }, | ||
| "test": { | ||
| "builder": "@angular/build:karma", | ||
| "options": { | ||
| "polyfills": [ | ||
| "zone.js", | ||
| "zone.js/testing" | ||
| ], | ||
| "tsConfig": "tsconfig.spec.json", | ||
| "inlineStyleLanguage": "scss", | ||
| "assets": [ | ||
| { | ||
| "glob": "**/*", | ||
| "input": "public" | ||
| } | ||
| ], | ||
| "styles": [ | ||
| "src/styles.scss" | ||
| ], | ||
| "scripts": [] | ||
| } | ||
| }, | ||
| "lint": { | ||
| "builder": "@angular-eslint/builder:lint", | ||
| "options": { | ||
| "lintFilePatterns": [ | ||
| "src/**/*.ts", | ||
| "src/**/*.js", | ||
| "src/**/*.mjs", | ||
| "src/**/*.html" | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "cli": { | ||
| "analytics": false, | ||
| "schematicCollections": [ | ||
| "angular-eslint" | ||
| ] | ||
| }, | ||
| "schematics": { | ||
| "@schematics/angular:component": { | ||
| "type": "component" | ||
| }, | ||
| "@schematics/angular:directive": { | ||
| "type": "directive" | ||
| }, | ||
| "@schematics/angular:service": { | ||
| "type": "service" | ||
| }, | ||
| "@schematics/angular:guard": { | ||
| "typeSeparator": "." | ||
| }, | ||
| "@schematics/angular:interceptor": { | ||
| "typeSeparator": "." | ||
| }, | ||
| "@schematics/angular:module": { | ||
| "typeSeparator": "." | ||
| }, | ||
| "@schematics/angular:pipe": { | ||
| "typeSeparator": "." | ||
| }, | ||
| "@schematics/angular:resolver": { | ||
| "typeSeparator": "." | ||
| } | ||
| } | ||
| } |
40 changes: 40 additions & 0 deletions
40
examples/Web Apps/Framework Examples/Angular/SystemLinkAuthExample/eslint.config.mjs
This file contains hidden or 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,40 @@ | ||
| import { defineConfig } from 'eslint/config'; | ||
| import { angularTypescriptConfig, angularTemplateConfig } from '@ni/eslint-config-angular'; | ||
| import { javascriptConfig, importNodeEsmConfig } from '@ni/eslint-config-javascript'; | ||
|
|
||
| export default defineConfig([ | ||
| { | ||
| // JavaScript rules fail to parse the HTML files that are added below. Therefore, the JavaScript | ||
| // configuration must now match the correct files to avoid an error. | ||
| files: ['**/*.js', '**/*.mjs'], | ||
| extends: [javascriptConfig, importNodeEsmConfig] | ||
| }, | ||
| { | ||
| files: ['**/*.ts'], | ||
| extends: angularTypescriptConfig, | ||
| languageOptions: { | ||
| parserOptions: { | ||
| // The `languageOptions.parserOptions.projectService` option is recommended but does not identify | ||
| // tsconfig.*.json files. Use the older `project` configuration instead. `project` has an order of | ||
| // precedence, so include `tsconfig.json` last. | ||
| // https://typescript-eslint.io/troubleshooting/typed-linting/#project-service-issues | ||
| project: ['tsconfig.app.json', 'tsconfig.spec.json', 'tsconfig.json'] | ||
| // In projects (e.g. libraries) using `parserOptions.project`, Angular requires that the paths be | ||
| // relative to the root, but the VSCode extension requires them to be relative to the project | ||
| // directory. Set the root to be the project directory to satisfy both. The `parserOptions.projectService` | ||
| // configuration would likely resolve this, but is not used for reasons described above. | ||
| // https://typescript-eslint.io/blog/project-service | ||
| // tsconfigRootDir: import.meta.dirname | ||
| } | ||
|
|
||
| } | ||
| }, | ||
| { | ||
| files: ['**/*.html'], | ||
| extends: angularTemplateConfig, | ||
| rules: { | ||
| // Disable internationalization for simplicity in this example app | ||
| "@angular-eslint/template/i18n": 'off' | ||
| } | ||
| } | ||
| ]); |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.