From b6dd39feedc44156fbe4dce3da428d81e8e611a7 Mon Sep 17 00:00:00 2001 From: Filip Chalupa Date: Thu, 21 Jul 2022 00:52:01 +0200 Subject: [PATCH] =?UTF-8?q?Z=C3=A1kladn=C3=AD=20struktura?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/quality-assurance.yml | 14 ++ .gitignore | 1 + .prettierrc.json | 8 + README.md | 12 ++ assets/intro-image.svg | 225 ++++++++++++++++++++++ entry.yml | 7 + package-lock.json | 35 ++++ package.json | 9 + uvod-do-programovani-1/blok-1/entry.yml | 5 + uvod-do-programovani-1/blok-1/promenne.md | 14 ++ uvod-do-programovani-1/entry.yml | 4 + 11 files changed, 334 insertions(+) create mode 100644 .github/workflows/quality-assurance.yml create mode 100644 .gitignore create mode 100644 .prettierrc.json create mode 100644 README.md create mode 100644 assets/intro-image.svg create mode 100644 entry.yml create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 uvod-do-programovani-1/blok-1/entry.yml create mode 100644 uvod-do-programovani-1/blok-1/promenne.md create mode 100644 uvod-do-programovani-1/entry.yml diff --git a/.github/workflows/quality-assurance.yml b/.github/workflows/quality-assurance.yml new file mode 100644 index 0000000..b0d8e2d --- /dev/null +++ b/.github/workflows/quality-assurance.yml @@ -0,0 +1,14 @@ +name: Quality assurance + +on: push + +jobs: + test: + name: Quality assurance + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install packages + run: npm ci + - name: Run + run: npm run quality-assurance diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2ccbe46 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/node_modules/ diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..1ce86e8 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,8 @@ +{ + "trailingComma": "es5", + "tabWidth": 2, + "useTabs": false, + "semi": false, + "singleQuote": true, + "endOfLine": "lf" +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..8345149 --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +# Javascript kurzy [![quality assurance](https://github.com/Czechitas-podklady-WEB/javascript-vyuka/actions/workflows/quality-assurance.yml/badge.svg)](https://github.com/Czechitas-podklady-WEB/javascript-vyuka/actions) + +Studijní materiály pro DA Web na kodim.cz + +## Formátování + +Pro jednotný formát podkladů je v repozitáři konfigurace pro Prettier, který je možný v IDE nastavit jako výchozí formátovač nebo ho lze pouštět ručně přes: + +```sh +npm ci +npm run fix +``` diff --git a/assets/intro-image.svg b/assets/intro-image.svg new file mode 100644 index 0000000..6fa1886 --- /dev/null +++ b/assets/intro-image.svg @@ -0,0 +1,225 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/entry.yml b/entry.yml new file mode 100644 index 0000000..71d8960 --- /dev/null +++ b/entry.yml @@ -0,0 +1,7 @@ +title: JavaScript +lead: Kurzy JavaScriptu +image: intro-image.svg +chapters: + - uvod-do-programovani-1 + # - uvod-do-programovani-2 + # - js-1 diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..09e24de --- /dev/null +++ b/package-lock.json @@ -0,0 +1,35 @@ +{ + "name": "javascript", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "devDependencies": { + "prettier": "2.6.2" + } + }, + "node_modules/prettier": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.2.tgz", + "integrity": "sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==", + "dev": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + } + }, + "dependencies": { + "prettier": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.2.tgz", + "integrity": "sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==", + "dev": true + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..462a053 --- /dev/null +++ b/package.json @@ -0,0 +1,9 @@ +{ + "scripts": { + "quality-assurance": "prettier --check \"**/*.{md,html,js,css}\"", + "fix": "prettier --write \"**/*.{md,html,js,css}\"" + }, + "devDependencies": { + "prettier": "2.6.2" + } +} diff --git a/uvod-do-programovani-1/blok-1/entry.yml b/uvod-do-programovani-1/blok-1/entry.yml new file mode 100644 index 0000000..a73fca5 --- /dev/null +++ b/uvod-do-programovani-1/blok-1/entry.yml @@ -0,0 +1,5 @@ +title: Blok 1 +lead: Proměnné, klíčová slova, alert, konzole, datové typy a operátory +access: claim +sections: + - promenne diff --git a/uvod-do-programovani-1/blok-1/promenne.md b/uvod-do-programovani-1/blok-1/promenne.md new file mode 100644 index 0000000..7a854a2 --- /dev/null +++ b/uvod-do-programovani-1/blok-1/promenne.md @@ -0,0 +1,14 @@ +## Proměnné + +```js +let vek = 20 +let jmeno = 'Michal' +let vyska = 1.75 + +let vek +vek = 20 + +let jmeno +let Jmeno +let jméno +``` diff --git a/uvod-do-programovani-1/entry.yml b/uvod-do-programovani-1/entry.yml new file mode 100644 index 0000000..5cb3336 --- /dev/null +++ b/uvod-do-programovani-1/entry.yml @@ -0,0 +1,4 @@ +title: Úvod do programování 1 +lead: Zjistíte, že programování nemusí být nudný shluk závorek, písmen a číslic. Poznáte základy programování. +lessons: + - blok-1