Skip to content

Commit

Permalink
Un-appify raft, since it's just included as an on-demand block in wag…
Browse files Browse the repository at this point in the history
…tail (#6824)
  • Loading branch information
wpears authored Jan 11, 2022
1 parent 956104f commit 8660b3a
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 119 deletions.
15 changes: 14 additions & 1 deletion cfgov/jinja2/v1/_includes/blocks/raf_tool.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
<link rel="stylesheet" href="{{ static('apps/erap/css/main.css') }}">
<style>
#rental-assistance-finder {
max-width: 41.875rem;
}
#rental-assistance-finder dl a {
word-break: break-all;
}
#rental-assistance-finder .m-form-field + .m-form-field {
margin-top: 15px;
}
.no-js .js-is-hidden {
display: block !important;
}
</style>

<div id="rental-assistance-finder"
data-language="{{ page.language if page and page.language else 'en' }}"
Expand Down
7 changes: 1 addition & 6 deletions cfgov/jinja2/v1/_layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,7 @@
#}
{% if page and page.media %}
{% for js in page.media %}
// Check whether this JS is coming from our apps or from an on-demand script.
if ( '{{ js }}'.substring(0,6) === '/apps/' ) {
s.push( '{{ static(js) }}' );
} else {
s.push( '{{ static('js/routes/on-demand/' + js) }}' );
}
s.push( '{{ static('js/routes/on-demand/' + js) }}' );
{% endfor %}
{% endif %}
{#
Expand Down
1 change: 0 additions & 1 deletion cfgov/unprocessed/apps/erap/.yarnrc

This file was deleted.

12 changes: 0 additions & 12 deletions cfgov/unprocessed/apps/erap/css/main.less

This file was deleted.

18 changes: 0 additions & 18 deletions cfgov/unprocessed/apps/erap/package.json

This file was deleted.

71 changes: 0 additions & 71 deletions cfgov/unprocessed/apps/erap/webpack-config.js

This file was deleted.

8 changes: 0 additions & 8 deletions cfgov/unprocessed/apps/erap/yarn.lock

This file was deleted.

File renamed without changes.
4 changes: 2 additions & 2 deletions cfgov/v1/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ class Meta:
template = '_includes/blocks/raf_tool.html'

class Media:
js = ['/apps/erap/js/main.js']
js = ['erap.js']


class RAFTBlock(blocks.StructBlock):
Expand All @@ -248,4 +248,4 @@ class Meta:
template = '_includes/blocks/raf_tool.html'

class Media:
js = ['/apps/erap/js/main.js']
js = ['erap.js']
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"@cfpb/cfpb-pagination": "0.13.0",
"@cfpb/cfpb-tables": "0.13.0",
"@cfpb/cfpb-typography": "0.13.0",
"@cfpb/rental-assistance-finder": "0.4.0",
"autoprefixer": "10.4.0",
"babel-loader": "8.2.3",
"cfpb-chart-builder": "6.4.2",
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,11 @@
"@cfpb/cfpb-core" "^0.3.1"
"@cfpb/cfpb-icons" "^0.3.2"

"@cfpb/[email protected]":
version "0.4.0"
resolved "https://registry.yarnpkg.com/@cfpb/rental-assistance-finder/-/rental-assistance-finder-0.4.0.tgz#fd06695d2798f734a1f972125f593419943bbed9"
integrity sha512-XHQHh/g5SQ3SWY2F4gWGcx+y8UeGEH+qb5D9Q9Q0//5osOPiwtm8qc0F/85Rp4r61eRukaMamPDqNdM1qEdYMQ==

"@cypress/request@^2.88.10":
version "2.88.10"
resolved "https://registry.yarnpkg.com/@cypress/request/-/request-2.88.10.tgz#b66d76b07f860d3a4b8d7a0604d020c662752cce"
Expand Down

0 comments on commit 8660b3a

Please sign in to comment.