Browse Source

chore(deps): update Aetna and Pressbooks Build Tools

pull/349/head
Ned Zimmerman 3 years ago
parent
commit
fd57f986e1
  1. 1
      assets/scripts/call-to-action.js
  2. 1
      assets/scripts/page-section.js
  3. 28
      assets/scripts/routes/catalog.js
  4. 6
      assets/scripts/util/camelCase.js
  5. 34
      dist/mix-manifest.json
  6. 2
      dist/scripts/aldine.js
  7. 2
      dist/scripts/aldine.js.LICENSE.txt
  8. 2
      dist/scripts/catalog-admin.js
  9. 2
      dist/styles/aldine.css
  10. 2
      dist/styles/editor.css
  11. 29917
      package-lock.json
  12. 17
      package.json

1
assets/scripts/call-to-action.js

@ -1,3 +1,4 @@
/* eslint-disable no-unused-vars */
( function () { ( function () {
tinymce.create( 'tinymce.plugins.aldine_call_to_action', { tinymce.create( 'tinymce.plugins.aldine_call_to_action', {
/** /**

1
assets/scripts/page-section.js

@ -1,3 +1,4 @@
/* eslint-disable no-unused-vars */
( function () { ( function () {
tinymce.create( 'tinymce.plugins.aldine_page_section', { tinymce.create( 'tinymce.plugins.aldine_page_section', {
/** /**

28
assets/scripts/routes/catalog.js

@ -15,7 +15,7 @@ export default {
// Give each <h3> a toggle button child // Give each <h3> a toggle button child
heading.innerHTML = ` heading.innerHTML = `
<button type="button" aria-expanded="false"> <button type="button" aria-expanded="false">
${heading.textContent} ${ heading.textContent }
<svg aria-hidden="true" focusable="false" class="arrow" width="13" height="8" viewBox="0 0 13 8" xmlns="http://www.w3.org/2000/svg"><path d="M6.255 8L0 0h12.51z" fill="currentColor" fill-rule="evenodd"></path></svg> <svg aria-hidden="true" focusable="false" class="arrow" width="13" height="8" viewBox="0 0 13 8" xmlns="http://www.w3.org/2000/svg"><path d="M6.255 8L0 0h12.51z" fill="currentColor" fill-rule="evenodd"></path></svg>
</button> </button>
`; `;
@ -85,7 +85,7 @@ export default {
// Give each <h3> a toggle button child // Give each <h3> a toggle button child
heading.innerHTML = ` heading.innerHTML = `
<button type="button" aria-expanded="false"> <button type="button" aria-expanded="false">
${heading.innerHTML} ${ heading.innerHTML }
<svg class="arrow" width="13" height="8" viewBox="0 0 13 8" xmlns="http://www.w3.org/2000/svg"><path d="M6.255 8L0 0h12.51z" fill="currentColor" fill-rule="evenodd"></path></svg> <svg class="arrow" width="13" height="8" viewBox="0 0 13 8" xmlns="http://www.w3.org/2000/svg"><path d="M6.255 8L0 0h12.51z" fill="currentColor" fill-rule="evenodd"></path></svg>
</button> </button>
`; `;
@ -175,16 +175,16 @@ export default {
} }
const subject = subjects.querySelector( 'input[type="radio"]:checked' ).value const subject = subjects.querySelector( 'input[type="radio"]:checked' ).value
? `[data-subject="${subjects.querySelector( 'input[type="radio"]:checked' ).value}"]` ? `[data-subject="${ subjects.querySelector( 'input[type="radio"]:checked' ).value }"]`
: ''; : '';
const institution = institutions.querySelector( 'input[type="radio"]:checked' ).value const institution = institutions.querySelector( 'input[type="radio"]:checked' ).value
? `[data-institution*="${institutions.querySelector( 'input[type="radio"]:checked' ).value}"]` ? `[data-institution*="${ institutions.querySelector( 'input[type="radio"]:checked' ).value }"]`
: ''; : '';
const license = event.target.value const license = event.target.value
? `[data-license="${event.target.value}"]` ? `[data-license="${ event.target.value }"]`
: ''; : '';
const filterValue = subject || license || institution ? `${subject}${license}${institution}` : '*'; const filterValue = subject || license || institution ? `${ subject }${ license }${ institution }` : '*';
$grid.isotope( { filter: filterValue } ); $grid.isotope( { filter: filterValue } );
} ); } );
@ -194,16 +194,16 @@ export default {
} }
const subject = subjects.querySelector( 'input[type="radio"]:checked' ).value const subject = subjects.querySelector( 'input[type="radio"]:checked' ).value
? `[data-subject="${subjects.querySelector( 'input[type="radio"]:checked' ).value}"]` ? `[data-subject="${ subjects.querySelector( 'input[type="radio"]:checked' ).value }"]`
: ''; : '';
const license = licenses.querySelector( 'input[type="radio"]:checked' ).value const license = licenses.querySelector( 'input[type="radio"]:checked' ).value
? `[data-license="${licenses.querySelector( 'input[type="radio"]:checked' ).value}"]` ? `[data-license="${ licenses.querySelector( 'input[type="radio"]:checked' ).value }"]`
: ''; : '';
const institution = event.target.value const institution = event.target.value
? `[data-institution*="${event.target.value}"]` ? `[data-institution*="${ event.target.value }"]`
: ''; : '';
const filterValue = subject || license || institution ? `${subject}${license}${institution}` : '*'; const filterValue = subject || license || institution ? `${ subject }${ license }${ institution }` : '*';
$grid.isotope( { filter: filterValue } ); $grid.isotope( { filter: filterValue } );
} ); } );
@ -213,16 +213,16 @@ export default {
} }
const license = licenses.querySelector( 'input[type="radio"]:checked' ).value const license = licenses.querySelector( 'input[type="radio"]:checked' ).value
? `[data-license="${licenses.querySelector( 'input[type="radio"]:checked' ).value}"]` ? `[data-license="${ licenses.querySelector( 'input[type="radio"]:checked' ).value }"]`
: ''; : '';
const institution = institutions.querySelector( 'input[type="radio"]:checked' ).value const institution = institutions.querySelector( 'input[type="radio"]:checked' ).value
? `[data-institution*="${institutions.querySelector( 'input[type="radio"]:checked' ).value}"]` ? `[data-institution*="${ institutions.querySelector( 'input[type="radio"]:checked' ).value }"]`
: ''; : '';
const subject = event.target.value const subject = event.target.value
? `[data-subject="${event.target.value}"]` ? `[data-subject="${ event.target.value }"]`
: ''; : '';
const filterValue = subject || license || institution ? `${subject}${license}${institution}` : '*'; const filterValue = subject || license || institution ? `${ subject }${ license }${ institution }` : '*';
$grid.isotope( { filter: filterValue } ); $grid.isotope( { filter: filterValue } );
} ); } );

6
assets/scripts/util/camelCase.js

@ -5,9 +5,9 @@
* @returns {string} String converted to camel-case, e.g., camelCaseIsHard * @returns {string} String converted to camel-case, e.g., camelCaseIsHard
*/ */
export default str => export default str =>
`${str.charAt( 0 ).toLowerCase()}${str `${ str.charAt( 0 ).toLowerCase() }${ str
.replace( /[\W_]/g, '|' ) .replace( /[\W_]/g, '|' )
.split( '|' ) .split( '|' )
.map( part => `${part.charAt( 0 ).toUpperCase()}${part.slice( 1 )}` ) .map( part => `${ part.charAt( 0 ).toUpperCase() }${ part.slice( 1 ) }` )
.join( '' ) .join( '' )
.slice( 1 )}`; .slice( 1 ) }`;

34
dist/mix-manifest.json vendored

@ -1,19 +1,19 @@
{ {
"/scripts/aldine.js": "/scripts/aldine.js?id=f7e0ad5cfcc135b918f6", "/scripts/aldine.js": "/scripts/aldine.js?id=9a92306ccdc10e63f9f74ea17764c5f6",
"/scripts/call-to-action.js": "/scripts/call-to-action.js?id=33370b66c7af12320fc0", "/scripts/call-to-action.js": "/scripts/call-to-action.js?id=33370b66c7af12320fc0e1250f6be399",
"/scripts/catalog-admin.js": "/scripts/catalog-admin.js?id=e8d84fb090536b8e49e9", "/scripts/catalog-admin.js": "/scripts/catalog-admin.js?id=2bc3bfa90831ab142ee9ebeb14ddab3c",
"/scripts/customizer.js": "/scripts/customizer.js?id=14dca3944228dd789c27", "/scripts/customizer.js": "/scripts/customizer.js?id=14dca3944228dd789c27c772d55bf471",
"/scripts/customizer-toggle.js": "/scripts/customizer-toggle.js?id=c31594589675d7c5662a", "/scripts/customizer-toggle.js": "/scripts/customizer-toggle.js?id=c31594589675d7c5662aaddcf7a9669a",
"/scripts/page-section.js": "/scripts/page-section.js?id=19d5c30146ea1a763bcf", "/scripts/page-section.js": "/scripts/page-section.js?id=19d5c30146ea1a763bcf2bd733a75e77",
"/styles/editor.css": "/styles/editor.css?id=b7c2449babe566571767", "/styles/editor.css": "/styles/editor.css?id=3fd7086e0f2bcacabc5152bf57ca90ca",
"/styles/aldine.css": "/styles/aldine.css?id=8d3bfb61118a9ee435a1", "/styles/aldine.css": "/styles/aldine.css?id=accdc9da7cfbe324a98fa31f514dbe20",
"/fonts/pressbooks-theme.woff": "/fonts/pressbooks-theme.woff?id=2a7aae81673f4707bbe7", "/fonts/pressbooks-theme.woff": "/fonts/pressbooks-theme.woff?id=2a7aae81673f4707bbe78c8f12b72b64",
"/images/banner.jpg": "/images/banner.jpg?id=04a813e0b4f94ddfef19", "/images/banner.jpg": "/images/banner.jpg?id=04a813e0b4f94ddfef1951557166e417",
"/images/catalog-header.jpg": "/images/catalog-header.jpg?id=223b9f7a23985f2a72df", "/images/catalog-header.jpg": "/images/catalog-header.jpg?id=223b9f7a23985f2a72df72e4e4a2ffdc",
"/images/header.jpg": "/images/header.jpg?id=c6712212b6aa749cf1cf", "/images/header.jpg": "/images/header.jpg?id=c6712212b6aa749cf1cf1f077c679f9f",
"/images/left-arrow.svg": "/images/left-arrow.svg?id=91d479e2d001857a3ee4", "/images/left-arrow.svg": "/images/left-arrow.svg?id=91d479e2d001857a3ee46691c0187854",
"/images/logo.svg": "/images/logo.svg?id=d71cb98d33ef823ffd27", "/images/logo.svg": "/images/logo.svg?id=d71cb98d33ef823ffd27b15ae07e723a",
"/images/pb.svg": "/images/pb.svg?id=c08fb158c15a470648a7", "/images/pb.svg": "/images/pb.svg?id=c08fb158c15a470648a74591e1fc94a4",
"/images/right-arrow.svg": "/images/right-arrow.svg?id=ee2d7230318ea54ae20b", "/images/right-arrow.svg": "/images/right-arrow.svg?id=ee2d7230318ea54ae20bd9d5fd96efd6",
"/images/yt_icon_mono_dark.png": "/images/yt_icon_mono_dark.png?id=ee68b73409979a929440" "/images/yt_icon_mono_dark.png": "/images/yt_icon_mono_dark.png?id=ee68b73409979a92944025ae95a18011"
} }

2
dist/scripts/aldine.js vendored

File diff suppressed because one or more lines are too long

2
dist/scripts/aldine.js.LICENSE.txt vendored

@ -15,7 +15,7 @@
*/ */
/*! /*!
* Masonry v4.2.1 * Masonry v4.2.2
* Cascading grid layout library * Cascading grid layout library
* https://masonry.desandro.com * https://masonry.desandro.com
* MIT License * MIT License

2
dist/scripts/catalog-admin.js vendored

File diff suppressed because one or more lines are too long

2
dist/styles/aldine.css vendored

File diff suppressed because one or more lines are too long

2
dist/styles/editor.css vendored

File diff suppressed because one or more lines are too long

29917
package-lock.json generated

File diff suppressed because it is too large Load Diff

17
package.json

@ -58,23 +58,24 @@
"extends": "./node_modules/pressbooks-build-tools/config/stylelint.js" "extends": "./node_modules/pressbooks-build-tools/config/stylelint.js"
}, },
"scripts": { "scripts": {
"watch": "mix watch", "build": "mix",
"build": "npm run production", "lint:scripts": "eslint \"assets/scripts/**/*.js\"",
"lint:styles": "stylelint \"assets/styles/**/*.scss\"",
"lint": "run-s lint:*",
"production": "mix --production", "production": "mix --production",
"rmdist": "rimraf dist", "rmdist": "rimraf dist",
"test": "npm run -s lint", "start": "mix watch",
"lint": "npm run -s lint:scripts && npm run -s lint:styles", "test": "npm run lint"
"lint:scripts": "eslint \"assets/scripts/**/*.js\"",
"lint:styles": "stylelint \"assets/styles/**/*.scss\" --syntax scss"
}, },
"engines": { "engines": {
"node": ">= 14" "node": ">= 14"
}, },
"devDependencies": { "devDependencies": {
"pressbooks-build-tools": "^3.0.1" "npm-run-all": "^4.1.5",
"pressbooks-build-tools": "^4.0.0"
}, },
"dependencies": { "dependencies": {
"aetna": "^1.0.0-alpha.27", "aetna": "^1.0.0",
"isotope-layout": "^3.0.6", "isotope-layout": "^3.0.6",
"jquery-bridget": "^3.0.1" "jquery-bridget": "^3.0.1"
} }

Loading…
Cancel
Save