Skip to content

Commit

Permalink
feature: better form load errors, form file upload events (#1702)
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnbot authored Jul 19, 2024
1 parent 82f86eb commit 63f8b30
Show file tree
Hide file tree
Showing 5 changed files with 240 additions and 105 deletions.
14 changes: 14 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion web/themes/custom/sfgovpl/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
const PROD = process.env.NODE_ENV === 'production'
const plugins = PROD
? [
['transform-remove-console', { exclude: ['warn', 'error'] }]
]
: []

module.exports = {
extends: '../../../../babel.config.js',
comments: false
comments: false,
plugins
}
1 change: 1 addition & 0 deletions web/themes/custom/sfgovpl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@csstools/postcss-sass": "^5.0.1",
"@fullhuman/postcss-purgecss": "^4.1.3",
"autoprefixer": "^9.8.8",
"babel-plugin-transform-remove-console": "^6.9.4",
"browser-sync": "^3.0.2",
"chalk": "^4.1.2",
"dart-sass": "^1.25.0",
Expand Down
6 changes: 3 additions & 3 deletions web/themes/custom/sfgovpl/sfgovpl.libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ sfgov-campaign:

sfgov-person:
js:
src/js/profile.js: {}
dist/js/profile.js: {}
dependencies:
- core/jquery

Expand All @@ -142,7 +142,7 @@ filters:

sfgov-toc:
js:
src/js/toc.js: {}
dist/js/toc.js: {}
dependencies:
- core/jquery
- core/drupal
Expand All @@ -156,7 +156,7 @@ sfgov-powerbi:

sfgov-data-story:
js:
src/js/data-story.js: {}
dist/js/data-story.js: {}
dependencies:
- core/jquery
- core/drupal
Expand Down
Loading

1 comment on commit 63f8b30

@aekong
Copy link
Collaborator

@aekong aekong commented on 63f8b30 Jul 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Visit Site

Created multidev environment ci-20521 for sfgov.

Please sign in to comment.