Skip to content

Commit

Permalink
#30 Added caret between breadcrumb links (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
ronan authored Jan 26, 2025
1 parent 31f8167 commit 26b07a3
Show file tree
Hide file tree
Showing 37 changed files with 1,043 additions and 364 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"titleBar.inactiveForeground": "#82828299"
},
"files.exclude": {
".*": true,
// ".*": true,
"**/.git": true,
"**/.DS_Store": true,
"**/Thumbs.db": true
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
yarn.lock
.DS_Store
.vscode/settings.json
package-lock.json
20 changes: 19 additions & 1 deletion .ops/backstop.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ module.exports = {
"height": 800
}
],
"scenarios": [],
"paths": {
"engine_scripts": "/scripts",
"html_report": "/output/report",
Expand All @@ -35,6 +34,25 @@ module.exports = {
"debugWindow": false,
"scenarioLogsInReports": true,
"fileNameTemplate": '{scenarioLabel}--{viewportLabel}',
"scenarios": [
{
"label": "Mobile Menu",
"url": "http://app/",
"viewports": [
{
"label": "mobile",
"width": 360,
"height": 800
}
],
// "clickSelector": ".menu-toggle-button",
"postInteractionWait": 1000,
"clickSelectors": [
".l-header .menu-toggle-button",
".l-header .has-children"
]
}
],
}

try {
Expand Down
Binary file removed .ops/output/vrt/approved/--desktop.png
Binary file not shown.
Binary file removed .ops/output/vrt/approved/--mobile.png
Binary file not shown.
Binary file added .ops/output/vrt/approved/Breadcrumb--desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .ops/output/vrt/approved/Breadcrumb--mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .ops/output/vrt/approved/Events--desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .ops/output/vrt/approved/Events--mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .ops/output/vrt/approved/Home--desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .ops/output/vrt/approved/Home--mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .ops/output/vrt/approved/Menus--desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .ops/output/vrt/approved/Menus--mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .ops/output/vrt/approved/Mobile_Menu--mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .ops/urls.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/menus Menus
/events Events
/events/past-events Past Events
/menus/b Secondary Page with Breadcrumb
4 changes: 2 additions & 2 deletions .ops/vrt-scripts/onReady.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module.exports = async (page, scenario, viewport, isReference, browserContext) =
console.log(`----------------------------------
url: '${scenario.url}'
label: '${scenario.label}'`);
// await require('./clickAndHoverHelper')(page, scenario);

await require('./clickAndHoverHelper')(page, scenario);
};
39 changes: 39 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "build",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [],
"label": "npm: build",
"detail": "yarn tailwindcss -i src/main.css -o dist/main.compiled.css --postcss"
},
{
"type": "npm",
"script": "watch",
"group": "build",
"problemMatcher": [],
"label": "npm: watch",
"detail": "yarn tailwindcss -i src/main.css -o dist/main.compiled.css --postcss --watch",
"presentation": {
"reveal": "always",
"panel": "new"
},
"runOptions": {
"runOn": "folderOpen",
}
},
{
"type": "npm",
"script": "install",
"group": "clean",
"problemMatcher": [],
"label": "npm: install",
"detail": "install dependencies from package"
}
]
}
22 changes: 14 additions & 8 deletions containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ RUN apt-get update \
# Create some helper utilities
RUN\
util() { echo "#!/bin/sh\n\n$2" > "/usr/local/bin/$1" && chmod a+x "/usr/local/bin/$1"; }\
&& util "bd" "php /bee/bee.php --root=/var/www/html --base-url=http://localhost:8888/ \$@" \
&& util "cr" "bd cc all;" \
&& util "uli" "bd uli;" \
&& util "si" "bd si --auto --db-name=app --db-user=root --db-pass=root --db-host=db --profile=decanter_profile" \
&& util "reset-db" "mariadb -h db --user=root --password=root -e 'DROP DATABASE IF EXISTS app; CREATE DATABASE app'" \
&& util "reset-app" "rm -rf /var/www/html/files/config*;" \
&& util "fix-perms" "chown --quiet -R www-data:www-data /var/www/html;" \
&& util "install-app" "reset-db && reset-app && si && fix-perms && uli;"
&& util "bd" "php /bee/bee.php --root=/var/www/html --base-url=http://localhost:8888/ \$@" \
&& util "cr" "bd cc all;" \
&& util "uli" "bd uli;" \
&& util "si" "bd si --auto --db-name=app --db-user=root --db-pass=root --db-host=db --profile=decanter_profile" \
&& util "reset-db" "mariadb -h db --user=root --password=root -e 'DROP DATABASE IF EXISTS app; CREATE DATABASE app'" \
&& util "reset-app" "rm -rf /var/www/html/files/config*;" \
&& util "fix-perms" "chown --quiet -R www-data:www-data /var/www/html;" \
&& util "install-app" "reset-db && reset-app && si && fix-perms && uli;"


# Download backdrop and bee
Expand All @@ -48,6 +48,12 @@ RUN git clone https://github.com/backdrop-contrib/bee.git /bee \
devel \
&& chown -R www-data:www-data /var/www/html

RUN echo \
"<?php "\
"\$config_directories['staging'] = '/workspace/profiles/decanter_profile/config/';"\
"\$config['system.core']['config_sync_clear_staging'] = 0;"\
> /var/www/html/settings.local.php

# Add the theme code to the bd install.
COPY ./ /workspace

Expand Down
Loading

0 comments on commit 26b07a3

Please sign in to comment.