Skip to content

Automate chat template JS dependency updates #5853

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 7 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/ProjectTemplates/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ package-lock.json

# launchSettings.json files are required for the templates.
!launchSettings.json

# Templates include JS dependencies in dist folders.
!**/dist/*

# Keep the package-lock.json file for updating template dependencies.
!package-lock.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
*.db
*.db-*
wwwroot/lib.out.js
wwwroot/*.generated.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
if (File.EndsWith(".pdf"))
{
var search = Quote.Trim('.', ',', ' ', '\n', '\r', '\t', '"', '\'');
viewerUrl = $"pdfjs/web/viewer.html?file=/citation/{HttpUtility.UrlEncode(File)}#page={PageNumber}&search={HttpUtility.UrlEncode(search)}&phrase=true";
viewerUrl = $"pdf_viewer/viewer.html?file=/citation/{HttpUtility.UrlEncode(File)}#page={PageNumber}&search={HttpUtility.UrlEncode(search)}&phrase=true";
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import url('tailwindcss/web/preflight.css');
@import url('lib/tailwindcss/dist/preflight.css');

html {
min-height: 100vh;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import DOMPurify from './dompurify/web/purify.es.mjs';
import * as marked from './marked/web/marked.esm.js';
import DOMPurify from './lib/dompurify/dist/purify.es.mjs';
import * as marked from './lib/marked/dist/marked.esm.js';

const purify = DOMPurify(window);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
DOMPurify version 3.2.4
dompurify version 3.2.4
https://github.com/cure53/DOMPurify
License: Apache 2.0 and Mozilla Public License 2.0

To update, replace the files with an updated build from https://github.com/cure53/DOMPurify/releases
To update, replace the files with an updated build from https://www.npmjs.com/package/dompurify
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
marked version 15.0.6
https://github.com/markedjs/marked
License: MIT

To update, replace the files with with an updated build from https://www.npmjs.com/package/marked
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pdf.js version 4.10.38
pdfjs-dist version 4.10.38
https://github.com/mozilla/pdf.js
License: Apache-2.0

To update, replace the files with an updated build from https://github.com/mozilla/pdf.js/releases
To update, replace the files with an updated build from https://www.npmjs.com/package/pdfjs-dist

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading