Skip to content

Commit

Permalink
apply feedback to PR template and include list of inspired by or copi…
Browse files Browse the repository at this point in the history
…ed from links
  • Loading branch information
anonym-HPI committed Aug 17, 2023
1 parent e4c6122 commit ca1109d
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ Please make sure to fulfil the following conditions before marking this PR ready

- [ ] If this PR adds or changes features or fixes bugs, this has been added to the changelog
- [ ] If this PR adds new actions or other ways to alter the state, [test scenarios](https://github.com/hpi-sam/digital-fuesim-manv-public-test-scenarios) have been added
- [ ] I have the right to the code I commited in this Pull Request (this includes that I don't use any AI tools that violate or could violate the license [LICENSE-README.md](LICENSE-README.md) of this project or copied code from e.g. a forum that falls under an incompatible license and if compatible have given credit in the correct way).
- [ ] I have the right to license the code submitted with this Pull Request (i.e., this is my own code or code licensed under a license compatible to AGPL v3.0 or later, for exceptions look into [LICENSE-README.md](LICENSE-README.md). In case of using third party code, I have given appropriate credit.
- [ ] If I have used third party code and I mentioned it in the code, I also updated the[inspired-by-or-copied-from-list.html](inspired-by-or-copied-from-list.html) list to include the links.
86 changes: 86 additions & 0 deletions inspired-by-or-copied-from-list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<ul>
<li>https://stackoverflow.com/a/41407246/104380</li>
<li>https://stackoverflow.com/a/65079996</li>
<li>
https://netbasal.com/autofocus-that-works-anytime-in-angular-apps-68cb89a3f057
</li>
<li>
https://jhapriti09.medium.com/autofocus-directive-that-works-in-angular-10-db352ef70399
</li>
<li>https://github.com/angular/angular/issues/15280</li>
<li>
https://github.com/nigrosimone/ng-let/blob/main/projects/ng-let/src/lib/ng-let.directive.ts
</li>
<li>https://stackoverflow.com/a/19328891</li>
<li>https://github.com/eligrey/FileSaver.js</li>
<li>https://getbootstrap.com/docs/5.1/customize/color/#all-colors</li>
<li>https://stackoverflow.com/a/19328891</li>
<li>https://github.com/eligrey/FileSaver.js</li>
<li>
https://github.com/microsoft/TypeScript/issues/41966#issuecomment-745434551
</li>
<li>
https://www.bennadel.com/blog/3579-using-pure-pipes-to-generate-ngfor-trackby-identity-functions-in-angular-7-2-7.htm
</li>
<li>
https://www.bennadel.com/blog/3580-using-pure-pipes-to-generate-ngfor-trackby-identity-functions-for-mixed-collections-in-angular-7-2-7.htm
</li>
<li>https://www.typescriptlang.org/docs/handbook/2/generics.html</li>
<li>
https://werxltd.com/wp/2010/05/13/javascript-implementation-of-javas-string-hashcode-method/
</li>
<li>https://stackoverflow.com/a/53593328</li>
<li>
https://stackoverflow.com/questions/66365244/in-angular-ivy-why-pure-pipe-instance-is-not-cached-between-usages-like-in-view
</li>
<li>https://github.com/angular/angular/issues/17560</li>
<li>https://github.com/angular/angular/issues/17560</li>
<li>https://stackoverflow.com/a/50375286/12698757</li>
<li>https://github.com/ngrx/platform/issues/227#issuecomment-431682349</li>
<li>
https://stackoverflow.com/questions/32645053/is-it-possible-to-make-svg-circle-fill-color-from-bottom-to-top-based-on-percent
</li>
<li>https://fossbytes.com/tools/random-name-generator</li>
<li>
https://www.vorname.com/das-sind-die-schoensten-unisex-vornamen.html
</li>
<li>
https://www.strassen-in-deutschland.de/die-haeufigsten-strassennamen-in-deutschland.html
</li>
<li>
https://github.com/typestack/class-validator#custom-validation-decorators
</li>
<li>
https://blog.mapbox.com/a-dive-into-spatial-search-algorithms-ebd0c5e39d2a
</li>
<li>https://github.com/microsoft/TypeScript/issues/13347</li>
<li>https://immerjs.github.io/immer/produce</li>
<li>https://github.com/microsoft/TypeScript/issues/15607</li>
<li>
https://www.leitstelle-lausitz.de/leitstelle/haeufig-gestellte-fragen/#:~:text=Wie%20viel%20schneller%20ist%20ein,30%2C4%20km%2Fh
</li>
<li>https://forum.openstreetmap.org/viewtopic.php?id=3941</li>
<li>
https://www.typescriptlang.org/docs/handbook/2/narrowing.html#exhaustiveness-checking
</li>
<li>
https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208
</li>
<li>
https://stackoverflow.com/questions/55012174/why-doesnt-object-keys-return-a-keyof-type-in-typescript
</li>
<li>
https://github.com/nestjs/nest/blob/a448f53b7746d35bf25a18f1759c971e5b7fea1c/packages/common/decorators/core/apply-decorators.ts
</li>
<li>https://github.com/typestack/class-validator#validating-arrays</li>
<li>https://github.com/microsoft/TypeScript/pull/51865</li>
<li>
https://github.com/typestack/class-validator#custom-validation-decorators
</li>
<li>
https://gist.github.com/joviano-dias/f9bfb8af690a89bcf7d83213e6009b13
</li>
<li>
https://www.w3schools.com/html/tryit.asp?filename=tryhtml_table_intro
</li>
</ul>
12 changes: 11 additions & 1 deletion third-party-license-json-to-html.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const json2html = require('node-json2html');
const fs = require('fs');

/**
* With the help of: https://gist.github.com/joviano-dias/f9bfb8af690a89bcf7d83213e6009b13
Expand Down Expand Up @@ -27,6 +28,15 @@ let template_table_body = {

let data = require('./frontend/src/assets/source-code/THIRD-PARTY-LICENSE-ACKNOWLEDGEMENTS.json');

let inspired_by_or_copied_from_data = fs
.readFileSync('./inspired-by-or-copied-from-list.html')
.toString();

let inspired_by_or_copied_from =
`<h1>List of links used for inspiration or copied from or as guidance</h1>
<a>If you want to know, where these where used search inside the source code for this specific URL <a href="assets/source-code/digital-fuesim-manv.zip">here</a>.</a>
` + inspired_by_or_copied_from_data;

let table_header = json2html.transform(data[0], template_table_header);
let table_body = json2html.transform(data, template_table_body);

Expand Down Expand Up @@ -60,6 +70,7 @@ let header =
'</head>';
let body =
'<input type="button" value="Zur&uuml;ck" onclick="history.back()">' +
inspired_by_or_copied_from +
'<h1>Third Party Licenses</h1><br><table>\n<thead>' +
table_header +
'\n</thead>\n<tbody>\n' +
Expand All @@ -68,7 +79,6 @@ let body =
body = '<body>' + body + '</body>';
let html = header + body + '</html>\n';

const fs = require('fs');
fs.writeFileSync(
'./frontend/src/assets/source-code/THIRD-PARTY-LICENSE-ACKNOWLEDGEMENTS.html',
html
Expand Down

0 comments on commit ca1109d

Please sign in to comment.