Skip to content

Commit

Permalink
Adjust Posthog for new Parcel setup
Browse files Browse the repository at this point in the history
tidy-up gitignore
  • Loading branch information
KevinEtchells committed Jul 17, 2024
1 parent e933b5d commit cee1a53
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 39 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ django_app/frontend/govuk-assets
django_app/frontend/.parcel-cache
# Django app tests staticfiles
django_app/tests/staticfiles
django_app/frontend/.parcel-cache


# Other
Expand Down
1 change: 1 addition & 0 deletions django_app/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"src/js/documents.js",
"src/js/trusted-types.js",
"src/js/autosubmit.js",
"src/js/posthog.js",
"src/js/chats/feedback.js",
"src/js/chats/markdown.js",
"src/js/chats/message-input.js",
Expand Down
1 change: 0 additions & 1 deletion django_app/frontend/posthog_source/index.html

This file was deleted.

13 changes: 0 additions & 13 deletions django_app/frontend/posthog_source/index.js

This file was deleted.

9 changes: 0 additions & 9 deletions django_app/frontend/posthog_source/readme.md

This file was deleted.

24 changes: 11 additions & 13 deletions django_app/frontend/src/js/posthog.js

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions django_app/redbox_app/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
<script src="{{ static('js/libs/dompurify.js') }}"></script>
<script src="{{ static('js/trusted-types.js') }}"></script>

<script type="module" src="{{ static('js/posthog.js') }}"></script>

{% if environment | lower in ["dev", "preprod"] %}
<script defer
event-environment="{{environment}}"
Expand Down

0 comments on commit cee1a53

Please sign in to comment.