-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create new assets for transition to design system
Rename `application.js` and `application.scss` to `legacy-application.scss` and `legacy-application.js` in preparation to use the `layout_for_admin` component from the govuk_publishing_components gem. Update the configuration manifest and point `application.html.erb` to the new legacy asset files.
- Loading branch information
1 parent
e9ae3e4
commit 1506373
Showing
6 changed files
with
55 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
//= link_tree ../images | ||
//= link application.js | ||
//= link application.css | ||
|
||
//= link legacy-application.js | ||
//= link legacy-application.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,2 @@ | ||
//= require select2 | ||
//= require jquery-ui/widgets/sortable | ||
//= require moment | ||
//= require mousetrap | ||
//= require jquery-ui.custom.min | ||
//= require_directory ./vendor | ||
//= require_directory . | ||
//= require_directory ./modules | ||
//= require jquery_nested_form | ||
|
||
// System wide behaviours | ||
$(function () { | ||
$('a.preview').attr('target', '_blank') | ||
$('form.preview').attr('target', '_blank') | ||
$('.select2').select2({ allowClear: true }) | ||
}) | ||
|
||
// System wide library functions | ||
var GovUKGuideUtils = { // eslint-disable-line no-unused-vars | ||
convertToSlug: function (title) { | ||
return title.toLowerCase().replace(/[^\w ]+/g, '').replace(/ +/g, '-') | ||
} | ||
} | ||
//= require govuk_publishing_components/dependencies | ||
//= require govuk_publishing_components/all_components |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
//= require select2 | ||
//= require jquery-ui/widgets/sortable | ||
//= require moment | ||
//= require mousetrap | ||
//= require jquery-ui.custom.min | ||
//= require_directory ./vendor | ||
//= require_directory . | ||
//= require_directory ./modules | ||
//= require jquery_nested_form | ||
|
||
// System wide behaviours | ||
$(function () { | ||
$('a.preview').attr('target', '_blank') | ||
$('form.preview').attr('target', '_blank') | ||
$('.select2').select2({ allowClear: true }) | ||
}) | ||
|
||
// System wide library functions | ||
var GovUKGuideUtils = { // eslint-disable-line no-unused-vars | ||
convertToSlug: function (title) { | ||
return title.toLowerCase().replace(/[^\w ]+/g, '').replace(/ +/g, '-') | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,2 @@ | ||
@import "govuk_admin_template"; | ||
@import "select2"; | ||
@import "./vendor/select2-bootstrap"; | ||
@import "colors"; | ||
@import "bootstrap_and_overrides"; | ||
@import "forms"; | ||
|
||
// Components | ||
@import "sidebar_nav"; | ||
@import "sortable_accordion"; | ||
@import "sortable_table"; | ||
@import "panel_part"; | ||
@import "diff"; | ||
@import "notes"; | ||
@import "workflow"; | ||
@import "broken_links_report"; | ||
@import "error_summary"; | ||
|
||
// Pages | ||
@import "downtime"; | ||
@import "smart_answer_builder"; | ||
@import "smart_answer_flowchart"; | ||
|
||
// GOVUK Design System | ||
@import "govuk_publishing_components/all_components"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
@import "govuk_admin_template"; | ||
@import "select2"; | ||
@import "./vendor/select2-bootstrap"; | ||
@import "colors"; | ||
@import "bootstrap_and_overrides"; | ||
@import "forms"; | ||
|
||
// Components | ||
@import "sidebar_nav"; | ||
@import "sortable_accordion"; | ||
@import "sortable_table"; | ||
@import "panel_part"; | ||
@import "diff"; | ||
@import "notes"; | ||
@import "workflow"; | ||
@import "broken_links_report"; | ||
@import "error_summary"; | ||
|
||
// Pages | ||
@import "downtime"; | ||
@import "smart_answer_builder"; | ||
@import "smart_answer_flowchart"; | ||
|
||
// GOVUK Design System | ||
@import "govuk_publishing_components/all_components"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters