mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-22 18:56:15 +02:00
Refactor directories and filenames
This commit is contained in:
parent
1445e1bf61
commit
9a5ada645c
58 changed files with 17 additions and 17 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
docs/research/data/**
|
docs/research/data/**
|
||||||
**/assets/*
|
**/assets/*
|
||||||
!**/assets/sass/
|
!**/assets/src/
|
||||||
!**/assets/modules-common/
|
!**/assets/modules-common/
|
||||||
!**/assets/modules/
|
!**/assets/modules/
|
||||||
!**/assets/modules-admin/
|
!**/assets/modules-admin/
|
||||||
|
|
|
@ -8,8 +8,8 @@ const TerserPlugin = require('terser-webpack-plugin');
|
||||||
const ASSETS_DIR = './registrar/assets/';
|
const ASSETS_DIR = './registrar/assets/';
|
||||||
const JS_BUNDLE_DEST = ASSETS_DIR + 'js';
|
const JS_BUNDLE_DEST = ASSETS_DIR + 'js';
|
||||||
const JS_SOURCES = [
|
const JS_SOURCES = [
|
||||||
{ src: ASSETS_DIR + 'modules/*.js', output: 'get-gov.js' },
|
{ src: ASSETS_DIR + 'src/js/getgov/*.js', output: 'getgov.min.js' },
|
||||||
{ src: ASSETS_DIR + 'modules-admin/*.js', output: 'get-gov-admin.js' },
|
{ src: ASSETS_DIR + 'src/js/getgov-admin/*.js', output: 'getgov-admin.min.js' },
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -24,7 +24,7 @@ uswds.settings.version = 3;
|
||||||
*/
|
*/
|
||||||
uswds.paths.dist.css = ASSETS_DIR + 'css';
|
uswds.paths.dist.css = ASSETS_DIR + 'css';
|
||||||
uswds.paths.dist.sass = ASSETS_DIR + 'sass';
|
uswds.paths.dist.sass = ASSETS_DIR + 'sass';
|
||||||
uswds.paths.dist.theme = ASSETS_DIR + 'sass/_theme';
|
uswds.paths.dist.theme = ASSETS_DIR + 'src/sass/_theme';
|
||||||
uswds.paths.dist.fonts = ASSETS_DIR + 'fonts';
|
uswds.paths.dist.fonts = ASSETS_DIR + 'fonts';
|
||||||
uswds.paths.dist.js = ASSETS_DIR + 'js';
|
uswds.paths.dist.js = ASSETS_DIR + 'js';
|
||||||
uswds.paths.dist.img = ASSETS_DIR + 'img';
|
uswds.paths.dist.img = ASSETS_DIR + 'img';
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Initialize USWDS tooltips by calling initialization method. Requires that uswds-edited.js
|
* Initialize USWDS tooltips by calling initialization method. Requires that uswds-edited.js
|
||||||
* be loaded before get-gov.js. uswds-edited.js adds the tooltip module to the window to be
|
* be loaded before getgov.min.js. uswds-edited.js adds the tooltip module to the window to be
|
||||||
* accessible directly in get-gov.js
|
* accessible directly in getgov.min.js
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export function initializeTooltips() {
|
export function initializeTooltips() {
|
||||||
|
@ -19,8 +19,8 @@ export function initializeTooltips() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialize USWDS modals by calling on method. Requires that uswds-edited.js be loaded
|
* Initialize USWDS modals by calling on method. Requires that uswds-edited.js be loaded
|
||||||
* before get-gov.js. uswds-edited.js adds the modal module to the window to be accessible
|
* before getgov.min.js. uswds-edited.js adds the modal module to the window to be accessible
|
||||||
* directly in get-gov.js.
|
* directly in getgov.min.js.
|
||||||
* uswdsInitializeModals adds modal-related DOM elements, based on other DOM elements existing in
|
* uswdsInitializeModals adds modal-related DOM elements, based on other DOM elements existing in
|
||||||
* the page. It needs to be called only once for any particular DOM element; otherwise, it
|
* the page. It needs to be called only once for any particular DOM element; otherwise, it
|
||||||
* will initialize improperly. Therefore, if DOM elements change dynamically and include
|
* will initialize improperly. Therefore, if DOM elements change dynamically and include
|
||||||
|
@ -33,8 +33,8 @@ export function uswdsInitializeModals() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unload existing USWDS modals by calling off method. Requires that uswds-edited.js be
|
* Unload existing USWDS modals by calling off method. Requires that uswds-edited.js be
|
||||||
* loaded before get-gov.js. uswds-edited.js adds the modal module to the window to be
|
* loaded before getgov.min.js. uswds-edited.js adds the modal module to the window to be
|
||||||
* accessible directly in get-gov.js.
|
* accessible directly in getgov.min.js.
|
||||||
* See note above with regards to calling this method relative to uswdsInitializeModals.
|
* See note above with regards to calling this method relative to uswdsInitializeModals.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
|
@ -35,7 +35,7 @@ class RequestingEntityForm(RegistrarForm):
|
||||||
# If this selection is made on the form (tracked by js), then it will toggle the form value of this.
|
# If this selection is made on the form (tracked by js), then it will toggle the form value of this.
|
||||||
# In other words, this essentially tracks if the suborganization field == "Other".
|
# In other words, this essentially tracks if the suborganization field == "Other".
|
||||||
# "Other" is just an imaginary value that is otherwise invalid.
|
# "Other" is just an imaginary value that is otherwise invalid.
|
||||||
# Note the logic in `def clean` and `handleRequestingEntityFieldset` in get-gov.js
|
# Note the logic in `def clean` and `handleRequestingEntityFieldset` in getgov.min.js
|
||||||
is_requesting_new_suborganization = forms.BooleanField(required=False, widget=forms.HiddenInput())
|
is_requesting_new_suborganization = forms.BooleanField(required=False, widget=forms.HiddenInput())
|
||||||
|
|
||||||
sub_organization = forms.ModelChoiceField(
|
sub_organization = forms.ModelChoiceField(
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
<script src="{% static 'js/uswds-init.min.js' %}" defer></script>
|
<script src="{% static 'js/uswds-init.min.js' %}" defer></script>
|
||||||
<script src="{% static 'js/uswds.min.js' %}" defer></script>
|
<script src="{% static 'js/uswds.min.js' %}" defer></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
||||||
<script type="application/javascript" src="{% static 'js/get-gov-admin.js' %}" defer></script>
|
<script type="application/javascript" src="{% static 'js/getgov-admin.min.js' %}" defer></script>
|
||||||
<script type="application/javascript" src="{% static 'js/get-gov-reports.js' %}" defer></script>
|
<script type="application/javascript" src="{% static 'js/get-gov-reports.js' %}" defer></script>
|
||||||
<script type="application/javascript" src="{% static 'js/dja-collapse.js' %}" defer></script>
|
<script type="application/javascript" src="{% static 'js/dja-collapse.js' %}" defer></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
<script src="{% static 'js/uswds-init.min.js' %}" defer></script>
|
<script src="{% static 'js/uswds-init.min.js' %}" defer></script>
|
||||||
<!-- We override with our own copy to make some classes accessible in our JS -->
|
<!-- We override with our own copy to make some classes accessible in our JS -->
|
||||||
<script src="{% static 'js/uswds-edited.js' %}" defer></script>
|
<script src="{% static 'js/uswds-edited.js' %}" defer></script>
|
||||||
<script src="{% static 'js/get-gov.js' %}" defer></script>
|
<script src="{% static 'js/getgov.min.js' %}" defer></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block canonical %}
|
{% block canonical %}
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
<p id="domain_instructions" class="margin-top-05">After you enter your domain, we’ll make sure it’s available and that it meets some of our naming requirements. If your domain passes these initial checks, we’ll verify that it meets all our requirements after you complete the rest of this form.</p>
|
<p id="domain_instructions" class="margin-top-05">After you enter your domain, we’ll make sure it’s available and that it meets some of our naming requirements. If your domain passes these initial checks, we’ll verify that it meets all our requirements after you complete the rest of this form.</p>
|
||||||
|
|
||||||
{% with attr_aria_describedby="domain_instructions domain_instructions2" %}
|
{% with attr_aria_describedby="domain_instructions domain_instructions2" %}
|
||||||
{# attr_validate / validate="domain" invokes code in get-gov.js #}
|
{# attr_validate / validate="domain" invokes code in getgov.min.js #}
|
||||||
{% with append_gov=True attr_validate="domain" add_label_class="usa-sr-only" %}
|
{% with append_gov=True attr_validate="domain" add_label_class="usa-sr-only" %}
|
||||||
{% input_with_errors forms.0.requested_domain %}
|
{% input_with_errors forms.0.requested_domain %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
|
@ -44,5 +44,5 @@
|
||||||
</fieldset>
|
</fieldset>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
<script src="{% static 'js/get-gov.js' %}" defer></script>
|
<script src="{% static 'js/getgov.min.js' %}" defer></script>
|
||||||
|
|
||||||
|
|
|
@ -29,8 +29,8 @@
|
||||||
10027 OUTOFSCOPE http://app:8080/public/js/uswds.min.js
|
10027 OUTOFSCOPE http://app:8080/public/js/uswds.min.js
|
||||||
# UNCLEAR WHY THIS ONE IS FAILING. Giving 404 error.
|
# UNCLEAR WHY THIS ONE IS FAILING. Giving 404 error.
|
||||||
10027 OUTOFSCOPE http://app:8080/public/js/uswds-init.min.js
|
10027 OUTOFSCOPE http://app:8080/public/js/uswds-init.min.js
|
||||||
# get-gov.js contains suspicious word "from" as in `Array.from()`
|
# getgov.min.js contains suspicious word "from" as in `Array.from()`
|
||||||
10027 OUTOFSCOPE http://app:8080/public/js/get-gov.js
|
10027 OUTOFSCOPE http://app:8080/public/js/getgov.min.js
|
||||||
# Ignores suspicious word "TODO"
|
# Ignores suspicious word "TODO"
|
||||||
10027 OUTOFSCOPE http://app:8080.*$
|
10027 OUTOFSCOPE http://app:8080.*$
|
||||||
10028 FAIL (Open Redirect - Passive/beta)
|
10028 FAIL (Open Redirect - Passive/beta)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue