UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit aef55ffa authored by kjeffries's avatar kjeffries Committed by graham.smith
Browse files

Bull 1953

parent 1b1d40e7
No related branches found
No related tags found
1 merge request!196Bull 1953
...@@ -3,35 +3,35 @@ ...@@ -3,35 +3,35 @@
commit_error=0 commit_error=0
find -E "./src" "./public" -type f -iregex "^.*\.(png|jpe?g|gif|tiff?|bmp)$" > "./.image_files" find -E "./src" "./public" -type f -iregex "^.*\.(png|jpe?g|gif|tiff?|bmp)$" > "./.image_files"
if [ -s "./.image_files" ] if [ -s "./.image_files" ]
then then
if [ -s "./.webp_exclusions" ] if [ -s "./.webp_exclusions" ]
then then
cp "./.webp_exclusions" "./.webp_exclusions_escaped" cp "./.webp_exclusions" "./.webp_exclusions_escaped"
sed -i.bak -e '/^[[:blank:]]*#.*$/d' -e '/^[[:blank:]]*$/d' "./.webp_exclusions_escaped" sed -i.bak -e '/^[[:blank:]]*#.*$/d' -e '/^[[:blank:]]*$/d' "./.webp_exclusions_escaped"
sed -i.bak -E 's/[^a-zA-Z 0-9]/\\&/g' "./.webp_exclusions_escaped" sed -i.bak -E 's/[^a-zA-Z 0-9]/\\&/g' "./.webp_exclusions_escaped"
<"./.webp_exclusions_escaped" tr "\n" "\0" | xargs -0 -I {} sed -i.bak "/^{}$/d" "./.image_files" <"./.webp_exclusions_escaped" tr "\n" "\0" | xargs -0 -I {} sed -i.bak "/^{}$/d" "./.image_files"
rm -f "./.image_files.bak" "./.webp_exclusions_escaped" "./.webp_exclusions_escaped.bak" rm -f "./.image_files.bak" "./.webp_exclusions_escaped" "./.webp_exclusions_escaped.bak"
fi fi
git diff --name-only --staged | awk '{print "./" $0;}' > "./.staged_files" git diff --name-only --staged | awk '{print "./" $0;}' > "./.staged_files"
cp "./.image_files" "./.image_files_escaped" cp "./.image_files" "./.image_files_escaped"
sed -i.bak -E 's/[^a-zA-Z 0-9]/\\&/g' "./.image_files_escaped" sed -i.bak -E 's/[^a-zA-Z 0-9]/\\&/g' "./.image_files_escaped"
while read -r filepath; do while read -r filepath; do
if ! grep -q "$filepath" "./.staged_files"; then if ! grep -q "$filepath" "./.staged_files"; then
sed -i.bak "/^$filepath$/d" "./.image_files" sed -i.bak "/^$filepath$/d" "./.image_files"
fi fi
done <"./.image_files_escaped" done <"./.image_files_escaped"
if [ -s "./.image_files" ] if [ -s "./.image_files" ]
then then
commit_error=1 commit_error=1
while read -r filepath; do while read -r filepath; do
echo "File $filepath needs to be converted to WebP format before committing" echo "File $filepath needs to be converted to WebP format before committing"
done <"./.image_files" done <"./.image_files"
fi fi
fi fi
rm -f "./.image_files" "./.image_files.bak" "./.image_files_escaped" "./.image_files_escaped.bak" "./.staged_files" rm -f "./.image_files" "./.image_files.bak" "./.image_files_escaped" "./.image_files_escaped.bak" "./.staged_files"
if [ $commit_error -eq 1 ] if [ $commit_error -eq 1 ]
then then
exit 1 exit 1
fi fi
npx pretty-quick --staged npx pretty-quick --staged
......
This diff is collapsed.
This diff is collapsed.
// key needs to match the route.name value in `./routes.js` // key needs to match the route.name value in `./routes.js`
export const components = { export const components = {
AmaAnnouncement: () =>
import(/* webpackChunkName: "ama" */ "../components/AmaAnnouncement.vue"),
BigBang: () => BigBang: () =>
import(/* webpackChunkName: "big-bang" */ "../views/BigBang.vue"), import(/* webpackChunkName: "big-bang" */ "../views/BigBang.vue"),
BigBangOnboarding: () => BigBangOnboarding: () =>
......
...@@ -278,6 +278,15 @@ export const routes = [ ...@@ -278,6 +278,15 @@ export const routes = [
breadcrumb: "Error", breadcrumb: "Error",
}, },
}, },
{
path: "/products/party-bus/ama",
name: "AmaAnnouncement",
meta: {
title: "Platform One | Ask an Engineer",
bodyClass: "ama",
breadcrumb: "AMA",
},
},
]; ];
export const routesByName = routes.reduce((all, route) => { export const routesByName = routes.reduce((all, route) => {
......
...@@ -180,7 +180,7 @@ ...@@ -180,7 +180,7 @@
<Wave :bottom="false"> <Wave :bottom="false">
<v-container class="py-12"> <v-container class="py-12">
<h2 class="ma-0">Have More Questions About Platform One?</h2> <h2 class="ma-0">Have More Questions About Party Bus?</h2>
<v-row justify="center" class="mt-2"> <v-row justify="center" class="mt-2">
<v-col sm="10" md="8" lg="6"> <v-col sm="10" md="8" lg="6">
<p> <p>
...@@ -204,6 +204,12 @@ ...@@ -204,6 +204,12 @@
<v-btn class="mx-2 my-3" color="primary" to="/contact-us" <v-btn class="mx-2 my-3" color="primary" to="/contact-us"
>Contact Us >Contact Us
</v-btn> </v-btn>
<v-btn
class="mx-2 my-3"
color="secondary"
to="/products/party-bus/ama"
>Ask an Engineer
</v-btn>
</v-col> </v-col>
</v-row> </v-row>
</v-container> </v-container>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment