Skip to content

Commit

Permalink
Merge pull request #109 from mlibrary/2024-04-01-updates
Browse files Browse the repository at this point in the history
April 2024 dependency updates.
  • Loading branch information
niquerio authored May 14, 2024
2 parents 0ac4301 + 517b586 commit 76292db
Show file tree
Hide file tree
Showing 12 changed files with 365 additions and 1,734 deletions.
5 changes: 1 addition & 4 deletions .github/PULL_REQUEST_TEMPLATE/dependency_updates_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ Monthly dependency update to help maintain Catalog Browse.

## NPM
These dependencies have been updated to their latest versions:
- `cssnano`
- `postcss`
- `postcss-cli`
- `postcss-import`
- `esbuild`

## Workflows
These actions have been updated to their latest versions:
Expand Down
41 changes: 41 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
version: 2
updates:
# Enable version updates for npm
- package-ecosystem: npm
# Look for `package.json` and `lock` files in the `root` directory
directory: /
# Check the npm registry for updates every first day of the month at 6am EST
schedule:
interval: weekly
timezone: America/Detroit
time: "06:00"
# Assign to the lead developer
assignees:
- erinesullivan
# Add the `dependencies` label
labels:
- dependencies

# Enable version updates for GitHub Actions with similar scheduling details
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
timezone: America/Detroit
time: "06:00"
assignees:
- erinesullivan
labels:
- dependencies

# Enable version updates for Gems with similar scheduling details
- package-ecosystem: bundler
directory: /
schedule:
interval: monthly
timezone: America/Detroit
time: "06:00"
assignees:
- niquerio
labels:
- dependencies
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
run: cat env.* > .env
- name: Load .env file
uses: xom9ikk/dotenv@v2
- name: Set up Ruby 3.2
- name: Set up Ruby 3.3
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
ruby-version: 3.3
bundler-cache: true
- name: Run linter for Ruby
run: bundle exec standardrb
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ coverage/
.irb_history
node_modules/
.npm/
public/browse.css
.bash_history
.cache/
.solargraph.yml
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:3.2 AS development
FROM ruby:3.3 AS development

ARG UNAME=app
ARG UID=1000
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,4 @@ DEPENDENCIES
yabeda-puma-plugin

BUNDLED WITH
2.5.6
2.5.7
12 changes: 12 additions & 0 deletions js/browse.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Select Dropdown Tips
*/
const selectDropdown = document.querySelector('.search-box-dropdown select');
const optionTips = document.querySelectorAll('p[data-option]');

selectDropdown.addEventListener('change', (event) => {
optionTips.forEach((optionTip) => {
const dataOptionValue = optionTip.getAttribute('data-option');
optionTip.style.display = dataOptionValue === event.target.value ? 'initial' : 'none';
});
});
Loading

0 comments on commit 76292db

Please sign in to comment.