Skip to content

Commit

Permalink
feat: new codebase with bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
astagi authored Nov 28, 2024
1 parent 7edd328 commit 6856ac5
Show file tree
Hide file tree
Showing 254 changed files with 17,167 additions and 4,064 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: HtmlProofer tests
runs-on: ubuntu-latest
container:
image: timbru31/ruby-node:3.0-20
image: timbru31/ruby-node:3.1-20
steps:
- uses: actions/checkout@v3
- name: Fixup git permissions
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
name: HtmlProofer tests
runs-on: ubuntu-latest
container:
image: timbru31/ruby-node:3.0-20
image: timbru31/ruby-node:3.1-20
steps:
- uses: actions/checkout@v3
- name: Fixup git permissions
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
lint-code:
runs-on: ubuntu-latest
container:
image: timbru31/ruby-node:3.0-20
image: timbru31/ruby-node:3.1-20
steps:
- uses: actions/checkout@v3
- run: chmod -R 777 .
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
build:
runs-on: ubuntu-latest
container:
image: timbru31/ruby-node:3.0-20
image: timbru31/ruby-node:3.1-20
permissions:
contents: write
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
build:
runs-on: ubuntu-latest
container:
image: timbru31/ruby-node:3.0-20
image: timbru31/ruby-node:3.1-20
permissions:
contents: write
steps:
Expand Down
5 changes: 4 additions & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"prettier/prettier": true,
"no-descending-specificity": null,
"scss/no-global-function-names": null,
"scss/comment-no-empty": null
"scss/comment-no-empty": null,
"scss/at-if-no-null": null,
"scss/at-extend-no-missing-placeholder": null,
"no-invalid-position-at-import-rule": null
}
}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM timbru31/ruby-node:3.1-18
FROM timbru31/ruby-node:3.1-20

WORKDIR /app

Expand Down
2 changes: 1 addition & 1 deletion README.EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Software components distributed with Bootstrap Italia that have their own differ
- [Accessible Autocomplete](https://alphagov.github.io/accessible-autocomplete) © Crown Copyright (Government Digital Service), MIT license
- [AnimeJS](https://animejs.com) © Julian Garnier, MIT license
- [Just Validate](https://just-validate.dev) © Horprogs, MIT license
- [Masonry Layout](https://masonry.desandro.com) © David DeSandro, MIT license
- [Mini Masonry](https://github.com/Spope/MiniMasonry.js) © Spope, licenza MIT
- [Progressbar.js](https://kimmobrunfeldt.github.io/progressbar.js) © Kimmo Brunfeldt, MIT license

### Main dependencies for the compilation and development phase
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Vengono di seguito elencati i componenti distribuiti con Bootstrap Italia che ha
- [Accessible Autocomplete](https://alphagov.github.io/accessible-autocomplete) © Crown Copyright (Government Digital Service), licenza MIT
- [AnimeJS](https://animejs.com) © Julian Garnier, licenza MIT
- [Just Validate](https://just-validate.dev) © Horprogs, licenza MIT
- [Masonry Layout](https://masonry.desandro.com) © David DeSandro, licenza MIT
- [Mini Masonry](https://github.com/Spope/MiniMasonry.js) © Spope, licenza MIT
- [Progressbar.js](https://kimmobrunfeldt.github.io/progressbar.js) © Kimmo Brunfeldt, licenza MIT

### Principali dipendenze per la fase di compilazione e sviluppo
Expand Down
16 changes: 6 additions & 10 deletions docs/assets/src/scss/docs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,14 @@
//
// Happy Bootstrapping!
// Load Bootstrap variables and mixins
@import '../../../../src/scss/functions';
@import '../../../../src/scss/base/functions';
// here to be available to "variables"
@import '../../../../src/scss/utilities/colors_vars';
@import '../../../../src/scss/variables';
@import '../../../../node_modules/bootstrap/scss/functions';
@import '../../../../src/scss/custom/mixins/buttons';
// here to override any conflicting "node_modules/bootstrap/scss/functions" definitions
@import '../../../../node_modules/bootstrap/scss/variables';
@import '../../../../node_modules/bootstrap/scss/mixins';
// focus
@import '../../../../src/scss/utilities/focus';
@import '../../../../src/scss/base/variables';
@import '../../../../src/scss/base/mixins/buttons';
// here to override any conflicting "bootstrap/scss/functions" definitions
@import '../../../../src/scss/base/mixins';
// Load docs components
@import '../../../../src/scss/utilities/focus';
@import 'colors';
@import 'nav';
@import 'masthead';
Expand Down
2 changes: 1 addition & 1 deletion docs/organizzare-i-contenuti/liste-di-immagini.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ Per utilizzare l'immagine orizzontale, occorre aggiungere la classe `.it-grid-it

Masonry è incluso in Bootstrap Italia.

Per un elenco di tutti i possibili parametri di configurazione consultare la [documentazione completa](https://masonry.desandro.com/).
Per un elenco di tutti i possibili parametri di configurazione consultare la [documentazione completa](https://github.com/Spope/MiniMasonry.js).

Aggiungendo `data-bs-toggle="masonry"` al contenitore `row`, verrà attivato l'effetto Masonry sulla griglia responsiva.

Expand Down
107 changes: 25 additions & 82 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"fix-scss": "stylelint ./src/scss/ ./docs/assets/src/scss/ --fix",
"format-code": "npx prettier --write . && eslint ./src/js ./docs/assets/src/js/ --fix --cache && stylelint ./src/scss/ ./docs/assets/src/scss/ --fix --cache",
"release": "node scripts/release",
"version": "node scripts/config-sync && git add _config.yml && git add src/js/version.js && git add src/scss/custom/_version.scss && conventional-changelog -p angular -i CHANGELOG.md -s && node scripts/wait-confirm && git add CHANGELOG.md",
"version": "node scripts/config-sync && git add _config.yml && git add src/js/version.js && git add src/scss/base/_version.scss && conventional-changelog -p angular -i CHANGELOG.md -s && node scripts/wait-confirm && git add CHANGELOG.md",
"postversion": "echo \"You can now publish your tag with 'git push --follow-tags'\"",
"test-htmlproofer": "JEKYLL_ENV=development bundle exec jekyll build --config _config.yml && bundle exec htmlproofer ./_site --assume-extension --check-html --allow-hash-href --disable-external --url-ignore /1.x/",
"test-a11y": "npx pa11y-ci --sitemap http://localhost:4000/sitemap.xml --sitemap-find ^/ --sitemap-replace 'http://localhost:4000/'",
Expand Down Expand Up @@ -94,15 +94,14 @@
"stylelint-scss": "^6.10.0"
},
"dependencies": {
"@popperjs/core": "^2.11.2",
"@popperjs/core": "^2.11.6",
"@splidejs/splide": "^3.6.12",
"@types/bootstrap": "^5.2.6",
"accessible-autocomplete": "^2.0.4",
"accessible-autocomplete": "^3.0.1",
"animejs": "^3.2.1",
"bootstrap": "5.2.3",
"design-tokens-italia": "^1.1.1",
"just-validate": "^3.10.0",
"masonry-layout": "^4.2.2",
"minimasonry": "^1.3.2",
"progressbar.js": "^1.1.0",
"uuid": "^8.3.2",
"video.js": "^8.0.4"
Expand Down
2 changes: 0 additions & 2 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export default [
globals: {
'@popperjs/core' : 'Popper',
'@splidejs/splide' : 'Splide',
'masonry-layout' : 'MasonryPlugin',
'accessible-autocomplete' : 'accessibleAutocomplete',
'animejs/lib/anime.es.js' : 'anime',
'video.js' : 'videojs'
Expand All @@ -66,7 +65,6 @@ export default [
external: [
'@popperjs/core',
'@splidejs/splide',
'masonry-layout',
'accessible-autocomplete',
'animejs/lib/anime.es.js',
'video.js'
Expand Down
2 changes: 1 addition & 1 deletion scripts/config-sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const replace = require('replace-in-file')

const configYmlPath = '_config.yml'
const jsPath = 'src/js/version.js'
const scssPath = 'src/scss/custom/_version.scss'
const scssPath = 'src/scss/base/_version.scss'
// package.json is updated by `npm version major/minor/patch` or similar
const version = require('../package.json').version

Expand Down
8 changes: 8 additions & 0 deletions src/js/bootstrap-italia.entry.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* --------------------------------------------------------------------------
* Bootstrap Italia (https://italia.github.io/bootstrap-italia/)
* Authors: https://github.com/italia/bootstrap-italia/blob/main/AUTHORS
* Licensed under BSD-3-Clause license (https://github.com/italia/bootstrap-italia/blob/main/LICENSE)
* --------------------------------------------------------------------------
*/

import '../scss/bootstrap-italia.scss'

import { loadPlugin } from './load-plugin'
Expand Down
8 changes: 8 additions & 0 deletions src/js/bootstrap-italia.esm.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* --------------------------------------------------------------------------
* Bootstrap Italia (https://italia.github.io/bootstrap-italia/)
* Authors: https://github.com/italia/bootstrap-italia/blob/main/AUTHORS
* Licensed under BSD-3-Clause license (https://github.com/italia/bootstrap-italia/blob/main/LICENSE)
* --------------------------------------------------------------------------
*/

export { default as CarouselBI } from './plugins/carousel-bi'
export { default as InputNumber } from './plugins/input-number'
export { default as Dimmer } from './plugins/dimmer'
Expand Down
8 changes: 8 additions & 0 deletions src/js/icons.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* --------------------------------------------------------------------------
* Bootstrap Italia (https://italia.github.io/bootstrap-italia/)
* Authors: https://github.com/italia/bootstrap-italia/blob/main/AUTHORS
* Licensed under BSD-3-Clause license (https://github.com/italia/bootstrap-italia/blob/main/LICENSE)
* --------------------------------------------------------------------------
*/

import '../svg/it-android.svg'
import '../svg/it-android-square.svg'
import '../svg/it-apple.svg'
Expand Down
Loading

0 comments on commit 6856ac5

Please sign in to comment.