Merge pull request #972 from deining/flag-icons

Change npm package 'flag-icon-css' to 'flag-icons'
This commit is contained in:
Bernat Borràs Civil 2024-09-20 02:47:52 +02:00 committed by GitHub
commit 804a866371
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 419 additions and 450 deletions

View file

@ -1,6 +1,6 @@
flags: flags:
styles: styles:
- flag-icon-css/css/flag-icons - flag-icons/css/flag-icons
videoplayer: videoplayer:
services: services:

View file

@ -22,7 +22,7 @@ module:
mounts: mounts:
- source: static/files - source: static/files
target: static/files target: static/files
- source: ./node_modules/flag-icon-css/flags - source: ./node_modules/flag-icons/flags
target: static/flags target: static/flags
- source: ./node_modules/@fontsource/mulish/files - source: ./node_modules/@fontsource/mulish/files
target: static/files target: static/files

View file

@ -21,7 +21,7 @@
"eslint-plugin-promise": "^6.1.1", "eslint-plugin-promise": "^6.1.1",
"feather-icons": "^4.29.1", "feather-icons": "^4.29.1",
"filterizr": "^2.2.4", "filterizr": "^2.2.4",
"flag-icon-css": "^4.1.7", "flag-icons": "^7.2.3",
"fuse.js": "^6.6.2", "fuse.js": "^6.6.2",
"highlight.js": "^11.6.0", "highlight.js": "^11.6.0",
"imagesloaded": "^5.0.0", "imagesloaded": "^5.0.0",
@ -2033,12 +2033,12 @@
"url": "https://github.com/sponsors/sindresorhus" "url": "https://github.com/sponsors/sindresorhus"
} }
}, },
"node_modules/flag-icon-css": { "node_modules/flag-icons": {
"version": "4.1.7", "version": "7.2.3",
"resolved": "https://registry.npmjs.org/flag-icon-css/-/flag-icon-css-4.1.7.tgz", "resolved": "https://registry.npmjs.org/flag-icons/-/flag-icons-7.2.3.tgz",
"integrity": "sha512-AFjSU+fv98XbU0vnTQ32vcLj89UEr1MhwDFcooQv14qWJCjg9fGZzfh9BVyDhAhIOZW/pGmJmq38RqpgPaeybQ==", "integrity": "sha512-X2gUdteNuqdNqob2KKTJTS+ZCvyWeLCtDz9Ty8uJP17Y4o82Y+U/Vd4JNrdwTAjagYsRznOn9DZ+E/Q52qbmqg==",
"deprecated": "The project has been renamed to flag-icons", "dev": true,
"dev": true "license": "MIT"
}, },
"node_modules/flat-cache": { "node_modules/flat-cache": {
"version": "3.2.0", "version": "3.2.0",

View file

@ -15,7 +15,7 @@
"eslint-plugin-promise": "github.com/hugo-toha/toha/v4", "eslint-plugin-promise": "github.com/hugo-toha/toha/v4",
"feather-icons": "github.com/hugo-toha/toha/v4", "feather-icons": "github.com/hugo-toha/toha/v4",
"filterizr": "github.com/hugo-toha/toha/v4", "filterizr": "github.com/hugo-toha/toha/v4",
"flag-icon-css": "github.com/hugo-toha/toha/v4", "flag-icons": "github.com/hugo-toha/toha/v4",
"fuse.js": "github.com/hugo-toha/toha/v4", "fuse.js": "github.com/hugo-toha/toha/v4",
"highlight.js": "github.com/hugo-toha/toha/v4", "highlight.js": "github.com/hugo-toha/toha/v4",
"imagesloaded": "github.com/hugo-toha/toha/v4", "imagesloaded": "github.com/hugo-toha/toha/v4",
@ -45,7 +45,7 @@
"eslint-plugin-promise": "^6.1.1", "eslint-plugin-promise": "^6.1.1",
"feather-icons": "^4.29.1", "feather-icons": "^4.29.1",
"filterizr": "^2.2.4", "filterizr": "^2.2.4",
"flag-icon-css": "^4.1.7", "flag-icons": "^7.2.3",
"fuse.js": "^6.6.2", "fuse.js": "^6.6.2",
"highlight.js": "^11.6.0", "highlight.js": "^11.6.0",
"imagesloaded": "^5.0.0", "imagesloaded": "^5.0.0",

View file

@ -17,7 +17,7 @@ module:
target: i18n target: i18n
- source: archetypes - source: archetypes
target: archetypes target: archetypes
- source: ../../node_modules/flag-icon-css/flags - source: ../../node_modules/flag-icons/flags
target: static/flags target: static/flags
- source: ../../node_modules/@fontsource/mulish/files - source: ../../node_modules/@fontsource/mulish/files
target: static/files target: static/files

View file

@ -6,7 +6,7 @@
<a class="nav-link dropdown-toggle" href="#" id="languageSelector" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <a class="nav-link dropdown-toggle" href="#" id="languageSelector" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{ if ne site.Params.features.flags.enable false }} {{ if ne site.Params.features.flags.enable false }}
{{ $countryCode := partial "helpers/country-code.html" . }} {{ $countryCode := partial "helpers/country-code.html" . }}
<span class="flag-icon flag-icon-{{$countryCode}}"></span> <span class="fi fi-{{$countryCode}}"></span>
{{ end }} {{ end }}
{{ site.Language.LanguageName }} {{ site.Language.LanguageName }}
</a> </a>
@ -15,7 +15,7 @@
<a class="dropdown-item nav-link languages-item" href="{{ path.Join "/" (cond (eq .Language.Lang $.Sites.Default.Language.Lang) "" .Language.Lang) $pageURL }}"> <a class="dropdown-item nav-link languages-item" href="{{ path.Join "/" (cond (eq .Language.Lang $.Sites.Default.Language.Lang) "" .Language.Lang) $pageURL }}">
{{ if ne site.Params.features.flags.enable false }} {{ if ne site.Params.features.flags.enable false }}
{{ $countryCode := partial "helpers/country-code.html" . }} {{ $countryCode := partial "helpers/country-code.html" . }}
<span class="flag-icon flag-icon-{{$countryCode}}"></span> <span class="fi fi-{{$countryCode}}"></span>
{{ end }} {{ end }}
{{ .Language.LanguageName }} {{ .Language.LanguageName }}
</a> </a>

835
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -33,7 +33,7 @@
"@fortawesome/fontawesome-free": "^6.6.0", "@fortawesome/fontawesome-free": "^6.6.0",
"bootstrap": "^5.3.3", "bootstrap": "^5.3.3",
"filterizr": "^2.2.4", "filterizr": "^2.2.4",
"flag-icon-css": "^4.1.7", "flag-icons": "^7.2.3",
"fuse.js": "^6.6.2", "fuse.js": "^6.6.2",
"highlight.js": "^11.6.0", "highlight.js": "^11.6.0",
"imagesloaded": "^5.0.0", "imagesloaded": "^5.0.0",

View file

@ -19,7 +19,7 @@
"eslint-plugin-promise": "project", "eslint-plugin-promise": "project",
"feather-icons": "project", "feather-icons": "project",
"filterizr": "project", "filterizr": "project",
"flag-icon-css": "project", "flag-icons": "project",
"fuse.js": "project", "fuse.js": "project",
"highlight.js": "project", "highlight.js": "project",
"imagesloaded": "project", "imagesloaded": "project",
@ -50,7 +50,7 @@
"eslint-plugin-promise": "^6.1.1", "eslint-plugin-promise": "^6.1.1",
"feather-icons": "^4.29.1", "feather-icons": "^4.29.1",
"filterizr": "^2.2.4", "filterizr": "^2.2.4",
"flag-icon-css": "^4.1.7", "flag-icons": "^7.2.3",
"fuse.js": "^6.6.2", "fuse.js": "^6.6.2",
"highlight.js": "^11.6.0", "highlight.js": "^11.6.0",
"imagesloaded": "^5.0.0", "imagesloaded": "^5.0.0",