-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #449 from nimblehq/release/5.7.0
Release 5.7.0
- Loading branch information
Showing
39 changed files
with
270 additions
and
135 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
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
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
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
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,4 +1,4 @@ | ||
# frozen_string_literal: true | ||
|
||
run 'yarn add bootstrap@5.2.3' | ||
run 'yarn add @popperjs/[email protected].2' | ||
run 'yarn add bootstrap@5.3.0' | ||
run 'yarn add @popperjs/[email protected].8' |
73 changes: 37 additions & 36 deletions
73
.template/addons/bootstrap/stylesheets/vendor/_bootstrap.scss
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,52 +1,53 @@ | ||
// By default every component is imported | ||
// But DO NOT import the whole framework but instead | ||
// pick what the project requires | ||
// and comment out the rest. | ||
|
||
// Configuration | ||
// 1. Include functions first (so you can manipulate colors, SVGs, calc, etc) | ||
@import 'bootstrap/scss/functions'; | ||
|
||
// 2. Include remainder of required Bootstrap stylesheets (including any separate color mode stylesheets) | ||
@import 'bootstrap/scss/variables'; | ||
@import 'bootstrap/scss/maps'; | ||
// @import 'sass_maps'; // Optional Sass map overrides here (See: https://getbootstrap.com/docs/5.2/migration/#new-_mapsscss) | ||
// e.g., $theme-colors: map-merge($theme-colors, $custom-theme-colors); | ||
@import 'bootstrap/scss/variables-dark'; | ||
|
||
// 3. Include remainder of required parts | ||
@import 'bootstrap/scss/maps'; | ||
@import 'bootstrap/scss/mixins'; | ||
@import 'bootstrap/scss/root'; | ||
@import 'bootstrap/scss/utilities'; | ||
|
||
// Layout & components | ||
@import 'bootstrap/scss/root'; | ||
@import 'bootstrap/scss/reboot'; | ||
@import 'bootstrap/scss/type'; | ||
@import 'bootstrap/scss/images'; | ||
@import 'bootstrap/scss/containers'; | ||
@import 'bootstrap/scss/grid'; | ||
@import 'bootstrap/scss/tables'; | ||
@import 'bootstrap/scss/forms'; | ||
// 4. Optionally include any other parts as needed | ||
// By default every component is imported | ||
// But DO NOT import the whole framework but instead | ||
// pick what the project requires | ||
// and comment out the rest. | ||
@import 'bootstrap/scss/accordion'; | ||
@import 'bootstrap/scss/alert'; | ||
@import 'bootstrap/scss/badge'; | ||
@import 'bootstrap/scss/breadcrumb'; | ||
@import 'bootstrap/scss/button-group'; | ||
@import 'bootstrap/scss/buttons'; | ||
@import 'bootstrap/scss/transitions'; | ||
@import 'bootstrap/scss/card'; | ||
@import 'bootstrap/scss/carousel'; | ||
@import 'bootstrap/scss/close'; | ||
@import 'bootstrap/scss/containers'; | ||
@import 'bootstrap/scss/dropdown'; | ||
@import 'bootstrap/scss/button-group'; | ||
@import 'bootstrap/scss/forms'; | ||
@import 'bootstrap/scss/grid'; | ||
@import 'bootstrap/scss/helpers'; | ||
@import 'bootstrap/scss/images'; | ||
@import 'bootstrap/scss/list-group'; | ||
@import 'bootstrap/scss/modal'; | ||
@import 'bootstrap/scss/nav'; | ||
@import 'bootstrap/scss/navbar'; | ||
@import 'bootstrap/scss/card'; | ||
@import 'bootstrap/scss/accordion'; | ||
@import 'bootstrap/scss/breadcrumb'; | ||
@import 'bootstrap/scss/offcanvas'; | ||
@import 'bootstrap/scss/pagination'; | ||
@import 'bootstrap/scss/badge'; | ||
@import 'bootstrap/scss/alert'; | ||
@import 'bootstrap/scss/placeholders'; | ||
@import 'bootstrap/scss/popover'; | ||
@import 'bootstrap/scss/progress'; | ||
@import 'bootstrap/scss/list-group'; | ||
@import 'bootstrap/scss/close'; | ||
@import 'bootstrap/scss/reboot'; | ||
@import 'bootstrap/scss/root'; | ||
@import 'bootstrap/scss/spinners'; | ||
@import 'bootstrap/scss/tables'; | ||
@import 'bootstrap/scss/toasts'; | ||
@import 'bootstrap/scss/modal'; | ||
@import 'bootstrap/scss/tooltip'; | ||
@import 'bootstrap/scss/popover'; | ||
@import 'bootstrap/scss/carousel'; | ||
@import 'bootstrap/scss/spinners'; | ||
@import 'bootstrap/scss/offcanvas'; | ||
|
||
// Helpers | ||
@import 'bootstrap/scss/helpers'; | ||
@import 'bootstrap/scss/transitions'; | ||
@import 'bootstrap/scss/type'; | ||
|
||
// Utilities | ||
// 5. Optionally include utilities API last to generate classes based on the Sass map in `_utilities.scss` | ||
@import 'bootstrap/scss/utilities/api'; |
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
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 |
---|---|---|
|
@@ -2,17 +2,30 @@ name: Publish Wiki | |
|
||
on: | ||
push: | ||
paths: | ||
- .github/wiki/** | ||
branches: | ||
- develop | ||
paths: | ||
- .github/wiki/** | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
publish: | ||
name: Publish Wiki | ||
uses: nimblehq/github-actions-workflows/.github/workflows/[email protected] | ||
with: | ||
USER_NAME: github-wiki-workflow | ||
USER_EMAIL: ${{ secrets.GH_EMAIL }} | ||
secrets: | ||
USER_TOKEN: ${{ secrets.GH_TOKEN }} | ||
name: Publish Github Wiki | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 1 | ||
|
||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Publish Github Wiki | ||
uses: nimblehq/[email protected] | ||
with: | ||
user_name: github-wiki-workflow | ||
user_email: [email protected] | ||
user_access_token: ${{ secrets.USER_ACCESS_TOKEN }} |
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
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
35 changes: 35 additions & 0 deletions
35
.template/addons/svgeez/.github/wiki/Managing-SVG-Icons.md
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,35 @@ | ||
From time to time, we need to add new SVG icons to the app. This document describes the steps to do that. | ||
|
||
## Gems | ||
The following 2 gems are used to handle SVG: | ||
- [svgeez](https://github.com/jgarber623/svgeez): for generating an SVG sprite from a folder of SVG icons. Requires Node.js and SVGO 1.3.2. | ||
- [inline_svg](https://github.com/jamesmartin/inline_svg): to use inline SVG for styling SVG with CSS | ||
|
||
## Node dependencies | ||
- [svgo](https://www.npmjs.com/package/svgo): Optimizes SVG sprite file size | ||
```sh | ||
npm -g install [email protected] | ||
``` | ||
|
||
## Add a new icon: | ||
- Export the SVG icon from Figma | ||
- Add the icon to `app/assets/images/icons` directory. | ||
- Run the following command to generate the new `app/assets/images/icon-sprite.svg` file which contains all of the icons in the `icons` directory | ||
```sh | ||
bin/svg-sprite | ||
``` | ||
|
||
## Use the new icon | ||
- Add the `icon-sprite.svg` file to the layout of the page | ||
```erb | ||
<body> | ||
<%= inline_svg_tag 'icon-sprite.svg' %> | ||
</body> | ||
``` | ||
- Use the `svg_tag` provided by the `SvgHelper` (app/helpers/svg_helper.rb) and provided `icon_id` matched with icon file name with prefix `icon-`: | ||
```erb | ||
<%= svg_tag icon_id: 'icon-[icon-file-name]', html: {} %> | ||
<!-- example: --> | ||
<%= svg_tag icon_id: 'icon-contacts', html: { class: 'icon' } %> | ||
``` |
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,14 @@ | ||
# frozen_string_literal: true | ||
|
||
if Dir.exist?('.github/wiki') | ||
use_source_path __dir__ | ||
|
||
copy_file 'Managing-SVG-Icons.md', '.github/wiki/Managing-SVG-Icons.md' | ||
|
||
# SVG Sprite | ||
insert_into_file '.github/wiki/_Sidebar.md', after: /## Operations.*\n/ do | ||
<<~RUBY | ||
- [[Managing SVG icons]] | ||
RUBY | ||
end | ||
end |
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,15 @@ | ||
# frozen_string_literal: true | ||
|
||
# SVG Sprite | ||
insert_into_file 'Gemfile', after: /gem 'danger'.*\n/ do | ||
<<~RUBY | ||
gem 'svgeez' # Gem for generating an SVG sprite from a folder of SVG icons. | ||
RUBY | ||
end | ||
|
||
# SVG Sprite | ||
insert_into_file 'Gemfile', after: /gem 'bcrypt'.*\n/ do | ||
<<~RUBY | ||
gem 'inline_svg' # Use Inline SVG for styling SVG with CSS | ||
RUBY | ||
end |
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,12 @@ | ||
# Generates an SVG sprite from a folder of SVG icons. | ||
# | ||
# Uses `svgeez` gem. | ||
# https://github.com/jgarber623/svgeez | ||
# | ||
# Usage | ||
# -s --source: Path to the folder of source SVGs (defaults to ./_svgeez). | ||
# -d --destination: Path to the destination file or folder (defaults to ./svgeez.svg) | ||
# --with-svgo: Optimize SVG sprite file with SVGO | ||
|
||
# Generate the sprite file which includes the `icon-` prefix | ||
bin/bundle exec svgeez build --prefix icon --source app/assets/images/icons/ --destination app/assets/images/icon-sprite.svg --with-svgo |
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,5 @@ | ||
# frozen_string_literal: true | ||
|
||
use_source_path __dir__ | ||
|
||
copy_file 'svg-sprite', 'bin/svg-sprite', mode: :preserve |
Oops, something went wrong.