forked from id-sk/id-sk-frontend
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modification for generating IDSK package and displaying IDSK components
- Loading branch information
Showing
290 changed files
with
370 additions
and
22,145 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,122 +1,29 @@ | ||
GOV.UK Frontend · | ||
[![Build Status](https://travis-ci.org/alphagov/govuk-frontend.svg?branch=master)](https://travis-ci.org/alphagov/govuk-frontend) | ||
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) | ||
ID-SK Frontend | ||
===================== | ||
|
||
GOV.UK Frontend contains the code you need to start building a user interface | ||
for government platforms and services. | ||
ID-SK frontend je knižnica komponentov, ktorá výchadza z open source knižnice gov.uk Frontend a pridáva k nej nové komponenty. | ||
|
||
See live examples of GOV.UK Frontend components, and guidance on when to use | ||
them in your service, in the [GOV.UK Design | ||
System](https://design-system.service.gov.uk/). | ||
Pozrite si funkčné príklady použitia komponentov v [Dizajn manuále ID-SK](https://idsk-elements.herokuapp.com). | ||
|
||
## Contact the team | ||
[//]: # (# Kontakt na tím) | ||
|
||
GOV.UK Frontend is maintained by a team at Government Digital Service. If you want to know more about GOV.UK Frontend, please email the [Design System | ||
team](mailto:[email protected]) or get in touch with them on [Slack](https://ukgovernmentdigital.slack.com/messages/govuk-design-system). | ||
[//]: # (GOV.UK Frontend is maintained by a team at Government Digital Service. If you want to know more about GOV.UK Frontend, please email the [Design System) | ||
[//]: # (team](mailto:[email protected]) or get in touch with them on [Slack](https://ukgovernmentdigital.slack.com/messages/govuk-design-system).) | ||
|
||
## Quick start | ||
## Ako pracovať s týmto repozitárom | ||
|
||
There are 2 ways to start using GOV.UK Frontend in your app. | ||
S týmto repozitárom je možné pracovať viacerými spôsobmi: | ||
|
||
Once installed, you will be able to use the code from the examples in the | ||
[GOV.UK Design System](https://design-system.service.gov.uk/) | ||
in your service. | ||
### 1. Použitie statického js/css vo vašom projekte | ||
|
||
### 1. Install with npm (recommended) | ||
Najnovší build js/css sa nachádza v adresári `/dist`. Na použitie na vašom projekte stačí skopírovať obsah adresára `/dist` do public adresára vášho projektu a nalinkovať js a css súbor. [Zobraziť viac podrobnosti (v angličtine).](docs/installation/installing-from-dist.md). | ||
|
||
We recommend [installing GOV.UK Frontend using node package manager | ||
(npm)](docs/installation/installing-with-npm.md). | ||
### 2. Použitie sass build vo vašom projekte | ||
|
||
### 2. Install by using compiled files | ||
Najnovší sass build spolu s js sa nachádza v adresári `/package`. Na použitie na vašom webovom sídle alebo aplikácii stačí skopírovať obsah adresára `/package` do ľubovolného adresára a zaradiť to do buildovania assetov podľa vášho výberu. [Zobraziť viac podrobností (v angličtine).](docs/installation/installing-with-npm.md) | ||
|
||
You can also [download the compiled and minified assets (CSS, JavaScript) from | ||
GitHub](docs/installation/installing-from-dist.md). | ||
## Licencia | ||
|
||
## Browser support | ||
|
||
GOV.UK Frontend will allow you to build services that comply with the [guidance | ||
in the Service Manual][service-manual-browsers]. | ||
|
||
Currently, GOV.UK Frontend officially supports the following browsers: | ||
|
||
| Operating system | Browser | Support | | ||
|----------------- |----------------------------------------|-------------| | ||
| Windows | Internet Explorer 8-10 | functional | | ||
| Windows | Internet Explorer 11 | compliant | | ||
| Windows | Edge (latest 2 versions) | compliant | | ||
| Windows | Google Chrome (latest 2 versions) | compliant | | ||
| Windows | Mozilla Firefox (latest 2 versions) | compliant | | ||
| macOS | Safari 9+ | compliant | | ||
| macOS | Google Chrome (latest 2 versions) | compliant | | ||
| macOS | Mozilla Firefox (latest 2 versions) | compliant | | ||
| iOS | Safari for iOS 9.3+ | compliant | | ||
| iOS | Google Chrome (latest 2 versions) | compliant | | ||
| Android | Google Chrome (latest 2 versions) | compliant | | ||
| Android | Samsung Internet (latest 2 versions) | compliant | | ||
|
||
‘Compliant’ means that the components must look as good and function as well as | ||
they do in other modern browsers. | ||
|
||
'Functional' means the components may not look perfect in the given browser, but | ||
must still be usable without errors and without 'looking broken'. | ||
|
||
If you are including GOV.UK Frontend as part of a stylesheet that you are | ||
generating in your application's build pipeline, you will need to [generate and | ||
include a separate stylesheet in order to support Internet Explorer | ||
8](docs/installation/supporting-internet-explorer-8.md). | ||
|
||
[service-manual-browsers]: https://www.gov.uk/service-manual/technology/designing-for-different-browsers-and-devices#browsers-to-test-in | ||
|
||
## Assistive technology support | ||
|
||
GOV.UK Frontend will allow you to build services that comply with the [guidance | ||
in the Service Manual][service-manual-assistive-technologies]. | ||
|
||
Currently, GOV.UK Frontend officially supports the following assistive technologies: | ||
|
||
| Software | Version | Type | Browser | | ||
|--------------------------|----------------|--------------------|---------------------------| | ||
| JAWS | 15 or later | screen reader | Internet Explorer 11 | | ||
| ZoomText | 10.11 or later | screen magnifier | Internet Explorer 11 | | ||
| Dragon NaturallySpeaking | 11 or later | speech recognition | Internet Explorer 11 | | ||
| NVDA | 2016 or later | screen reader | Firefox (latest versions) | | ||
| VoiceOver | 7.0 or later | screen reader | Safari on iOS10 and OS X | | ||
|
||
In addition, we test that all content is accessible with keyboard only. | ||
|
||
We aim to support [users who adjust or override the colours of websites they visit][how-users-change-colours-on-websites]. We test this by [changing colours in Firefox][changing-colours-in-firefox], by [enabling 'High Contrast' mode in Windows][enabling-high-contrast-mode-in-windows] and by using the [High Contrast plugin for Chrome][high-contrast-plugin-for-chrome]. | ||
|
||
[service-manual-assistive-technologies]: https://www.gov.uk/service-manual/technology/testing-with-assistive-technologies#what-to-test | ||
|
||
[changing-colours-in-firefox]: | ||
https://support.mozilla.org/en-US/kb/change-fonts-and-colors-websites-use | ||
|
||
[enabling-high-contrast-mode-in-windows]: | ||
https://support.microsoft.com/en-gb/help/13862/windows-use-high-contrast-mode | ||
|
||
[high-contrast-plugin-for-chrome]: https://chrome.google.com/webstore/detail/high-contrast/djcfdncoelnlbldjfhinnjlhdjlikmph?hl=en-US | ||
|
||
[how-users-change-colours-on-websites]: | ||
https://accessibility.blog.gov.uk/2017/03/27/how-users-change-colours-on-websites/ | ||
|
||
## Getting updates | ||
|
||
To be notified when there’s a new release, you can either: | ||
|
||
- [watch the govuk-frontend Github repository](https://help.github.com/en/articles/watching-and-unwatching-repositories) | ||
- join the [#govuk-design-system channel on cross-government Slack](https://ukgovernmentdigital.slack.com/app_redirect?channel=govuk-design-system) | ||
|
||
Find out how to [update with npm](https://github.com/alphagov/govuk-frontend/blob/master/docs/installation/updating-with-npm.md). | ||
|
||
## Licence | ||
|
||
Unless stated otherwise, the codebase is released under the MIT License. This | ||
covers both the codebase and any sample code in the documentation. The | ||
documentation is © Crown copyright and available under the terms of the | ||
Open Government 3.0 licence. | ||
|
||
## Contribution guidelines | ||
|
||
If you want to help us build GOV.UK Frontend, view our [contribution | ||
guidelines](CONTRIBUTING.md). | ||
Ak nie je uvedené inak, kódy sú publikované s MIT License. Toto zahŕňa kódy aj ukážky kódov v dokumentácii. | ||
Pôvodná gov.uk dokumentácia je licencovaná pod © Crown copyright a dostupná podľa podmienok definovaných v | ||
Open Government 3.0 licence. |
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,5 +1,5 @@ | ||
{ | ||
"name": "govuk-frontend", | ||
"name": "idsk-frontend", | ||
"scripts": { | ||
}, | ||
"env": { | ||
|
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{% from "breadcrumbs/macro.njk" import govukBreadcrumbs %} | ||
{% from "macros/showExamples.njk" import showExamples %} | ||
|
||
{% extends "full-width.njk" %} | ||
|
||
{% set bodyClasses %} | ||
language-markup | ||
{% endset %} | ||
|
||
{% set componentName = componentPath %} | ||
{% set componentNameHuman = componentName | replace("-", " ") %} | ||
|
||
{% set htmlMarkup %} | ||
{% include componentName +"/"+ componentName +".njk" ignore missing %} | ||
{% endset %} | ||
|
||
{% block beforeContent %} | ||
{{ govukBreadcrumbs({ | ||
"items": [ | ||
{ text: 'ID-SK Frontend', href: '/' + legacyQuery }, | ||
{ text: componentNameHuman | capitalize } | ||
] | ||
}) }} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div class="govuk-width-container"> | ||
<h1 class="govuk-heading-xl"> | ||
{% block componentName %} | ||
{{ componentNameHuman | capitalize }} | ||
{% endblock %} | ||
idsk | ||
</h1> | ||
|
||
{% if idskComponentData.description %} | ||
<div class="govuk-inset-text"> | ||
{{ idskComponentData.description | safe }} | ||
</div> | ||
{% endif %} | ||
</div> | ||
|
||
{% block examples %} | ||
{{ showExamples(componentName, componentNameHuman, idskComponentData, legacyQuery) }} | ||
{% endblock %} | ||
{% endblock %} |
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
Oops, something went wrong.