├── 00-before └── 00-humans.js ├── 99-cleanJS-presentation ├── css │ ├── reveal.css │ └── theme │ │ └── night.css ├── index.html ├── js │ └── reveal.js ├── lib │ ├── css │ │ └── zenburn.css │ └── js │ │ └── head.min.js └── slides │ ├── .gitignore │ ├── .travis.yml │ ├── CONTRIBUTING.md │ ├── Gruntfile.js │ ├── LICENSE │ ├── README.md │ ├── bower.json │ ├── css │ ├── print │ │ ├── paper.css │ │ └── pdf.css │ ├── reveal.css │ ├── reveal.scss │ └── theme │ │ ├── README.md │ │ ├── beige.css │ │ ├── black.css │ │ ├── blood.css │ │ ├── league.css │ │ ├── moon.css │ │ ├── night.css │ │ ├── serif.css │ │ ├── simple.css │ │ ├── sky.css │ │ ├── solarized.css │ │ ├── source │ │ ├── beige.scss │ │ ├── black.scss │ │ ├── blood.scss │ │ ├── league.scss │ │ ├── moon.scss │ │ ├── night.scss │ │ ├── serif.scss │ │ ├── simple.scss │ │ ├── sky.scss │ │ ├── solarized.scss │ │ └── white.scss │ │ ├── template │ │ ├── mixins.scss │ │ ├── settings.scss │ │ └── theme.scss │ │ └── white.css │ ├── demo.html │ ├── images │ ├── 00-refactoring.jpg │ ├── 01-JavaScriptStandar.svg │ ├── async.svg │ ├── authors │ │ └── CarlosCaballero.jpg │ ├── avoid.svg │ ├── cartel.png │ ├── exception.svg │ ├── fondo.png │ ├── fondos │ │ ├── fondo-async.png │ │ ├── fondo-before.png │ │ ├── fondo-conditionals.png │ │ ├── fondo-exceptions.png │ │ ├── fondo-functions.png │ │ ├── fondo-testing.png │ │ ├── fondo-variables.png │ │ └── fondo-xp.png │ ├── funciones.svg │ ├── heroes │ │ ├── heroes01.gif │ │ ├── heroes02.gif │ │ ├── heroes03.gif │ │ ├── heroes04.gif │ │ ├── heroes05.gif │ │ ├── heroes06.gif │ │ ├── heroes07.gif │ │ ├── heroes08.gif │ │ ├── heroes09.gif │ │ ├── heroes10.gif │ │ ├── heroes11.gif │ │ └── heroes12.gif │ ├── indice.svg │ ├── intro.svg │ ├── logo │ │ ├── javascript.png │ │ └── nestjs.svg │ ├── polinet-angular │ │ ├── README.md │ │ ├── e2e │ │ │ ├── app.e2e-spec.ts │ │ │ ├── app.po.ts │ │ │ └── tsconfig.e2e.json │ │ ├── karma.conf.js │ │ ├── package-lock.json │ │ ├── package.json │ │ ├── protractor.conf.js │ │ ├── src │ │ │ ├── app │ │ │ │ ├── app.component.css │ │ │ │ ├── app.component.html │ │ │ │ ├── app.component.spec.ts │ │ │ │ ├── app.component.ts │ │ │ │ ├── app.module.ts │ │ │ │ ├── app.routes.ts │ │ │ │ ├── components │ │ │ │ │ └── common │ │ │ │ │ │ ├── app-common.module.ts │ │ │ │ │ │ ├── breadcrumb │ │ │ │ │ │ ├── breadcrumb.component.css │ │ │ │ │ │ ├── breadcrumb.component.html │ │ │ │ │ │ └── breadcrumb.component.ts │ │ │ │ │ │ ├── datatable │ │ │ │ │ │ ├── datatable.component.css │ │ │ │ │ │ ├── datatable.component.html │ │ │ │ │ │ ├── datatable.component.spec.ts │ │ │ │ │ │ └── datatable.component.ts │ │ │ │ │ │ ├── footer │ │ │ │ │ │ ├── footer.component.css │ │ │ │ │ │ ├── footer.component.ts │ │ │ │ │ │ └── footer.template.html │ │ │ │ │ │ ├── layouts │ │ │ │ │ │ ├── admin-layout │ │ │ │ │ │ │ ├── admin-layout.component.ts │ │ │ │ │ │ │ └── admin-layout.template.html │ │ │ │ │ │ ├── administratorDatatable │ │ │ │ │ │ │ ├── admin-datatable.component.ts │ │ │ │ │ │ │ └── admin-datatable.template.html │ │ │ │ │ │ └── auth-layout │ │ │ │ │ │ │ ├── auth-layout.component.css │ │ │ │ │ │ │ ├── auth-layout.component.html │ │ │ │ │ │ │ └── auth-layout.component.ts │ │ │ │ │ │ ├── navigation │ │ │ │ │ │ ├── navigation.component.ts │ │ │ │ │ │ ├── navigation.template.html │ │ │ │ │ │ └── notifications │ │ │ │ │ │ │ ├── notifications.component.css │ │ │ │ │ │ │ ├── notifications.component.html │ │ │ │ │ │ │ ├── notifications.component.scss │ │ │ │ │ │ │ └── notifications.component.ts │ │ │ │ │ │ └── topbar │ │ │ │ │ │ ├── topbar.component.ts │ │ │ │ │ │ └── topbar.template.html │ │ │ │ ├── directives │ │ │ │ │ └── common │ │ │ │ │ │ ├── app-accordion.directive.ts │ │ │ │ │ │ ├── common-directives.module.ts │ │ │ │ │ │ ├── equal-validator.directive.ts │ │ │ │ │ │ ├── font-size.directive.ts │ │ │ │ │ │ ├── scroll-to.directive.ts │ │ │ │ │ │ └── sidenav-accordion.directive.ts │ │ │ │ ├── helpers │ │ │ │ │ └── dom.helper.ts │ │ │ │ ├── pipes │ │ │ │ │ └── common │ │ │ │ │ │ ├── common-pipes.module.ts │ │ │ │ │ │ ├── excerpt.pipe.ts │ │ │ │ │ │ └── relative-time.pipe.ts │ │ │ │ ├── services │ │ │ │ │ ├── app-confirm │ │ │ │ │ │ ├── app-confirm.component.ts │ │ │ │ │ │ ├── app-confirm.module.ts │ │ │ │ │ │ └── app-confirm.service.ts │ │ │ │ │ ├── app-loader │ │ │ │ │ │ ├── app-loader.component.css │ │ │ │ │ │ ├── app-loader.component.html │ │ │ │ │ │ ├── app-loader.component.scss │ │ │ │ │ │ ├── app-loader.component.ts │ │ │ │ │ │ ├── app-loader.module.ts │ │ │ │ │ │ └── app-loader.service.ts │ │ │ │ │ ├── auth │ │ │ │ │ │ └── auth.guard.ts │ │ │ │ │ ├── navigation │ │ │ │ │ │ └── navigation.service.ts │ │ │ │ │ ├── route-parts │ │ │ │ │ │ └── route-parts.service.ts │ │ │ │ │ └── theme │ │ │ │ │ │ └── theme.service.ts │ │ │ │ ├── styles │ │ │ │ │ ├── 07-webcomponents │ │ │ │ │ │ ├── _footer.css │ │ │ │ │ │ ├── _header.css │ │ │ │ │ │ ├── _home-buttons.css │ │ │ │ │ │ └── _news.css │ │ │ │ │ └── app.css │ │ │ │ └── views │ │ │ │ │ ├── others │ │ │ │ │ ├── app-blank │ │ │ │ │ │ ├── app-blank.component.css │ │ │ │ │ │ ├── app-blank.component.html │ │ │ │ │ │ ├── app-blank.component.scss │ │ │ │ │ │ ├── app-blank.component.ts │ │ │ │ │ │ ├── home-buttons │ │ │ │ │ │ │ ├── home-buttons.component.css │ │ │ │ │ │ │ ├── home-buttons.component.html │ │ │ │ │ │ │ └── home-buttons.component.ts │ │ │ │ │ │ └── news │ │ │ │ │ │ │ ├── news.component.css │ │ │ │ │ │ │ ├── news.component.html │ │ │ │ │ │ │ └── news.component.ts │ │ │ │ │ ├── others.module.ts │ │ │ │ │ └── others.routing.ts │ │ │ │ │ └── sessions │ │ │ │ │ ├── error │ │ │ │ │ ├── error.component.css │ │ │ │ │ ├── error.component.html │ │ │ │ │ ├── error.component.scss │ │ │ │ │ └── error.component.ts │ │ │ │ │ ├── forgot-password │ │ │ │ │ ├── forgot-password.component.css │ │ │ │ │ ├── forgot-password.component.html │ │ │ │ │ ├── forgot-password.component.scss │ │ │ │ │ └── forgot-password.component.ts │ │ │ │ │ ├── lockscreen │ │ │ │ │ ├── lockscreen.component.css │ │ │ │ │ ├── lockscreen.component.html │ │ │ │ │ ├── lockscreen.component.scss │ │ │ │ │ └── lockscreen.component.ts │ │ │ │ │ ├── not-found │ │ │ │ │ ├── not-found.component.css │ │ │ │ │ ├── not-found.component.html │ │ │ │ │ ├── not-found.component.scss │ │ │ │ │ └── not-found.component.ts │ │ │ │ │ ├── sessions.module.ts │ │ │ │ │ ├── sessions.routing.ts │ │ │ │ │ ├── signin │ │ │ │ │ ├── signin.component.css │ │ │ │ │ ├── signin.component.html │ │ │ │ │ ├── signin.component.scss │ │ │ │ │ └── signin.component.ts │ │ │ │ │ └── signup │ │ │ │ │ ├── signup.component.css │ │ │ │ │ ├── signup.component.html │ │ │ │ │ ├── signup.component.scss │ │ │ │ │ └── signup.component.ts │ │ │ ├── assets │ │ │ │ ├── i18n │ │ │ │ │ ├── en.json │ │ │ │ │ └── es.json │ │ │ │ ├── images │ │ │ │ │ ├── cancel.png │ │ │ │ │ ├── edit.svg │ │ │ │ │ ├── egret-screen.jpg │ │ │ │ │ ├── egret-screen.png │ │ │ │ │ ├── face-1.jpg │ │ │ │ │ ├── face-2.jpg │ │ │ │ │ ├── face-3.jpg │ │ │ │ │ ├── face-4.jpg │ │ │ │ │ ├── face-5.jpg │ │ │ │ │ ├── face-6.jpg │ │ │ │ │ ├── face-7.jpg │ │ │ │ │ ├── gr.png │ │ │ │ │ ├── home-bg.jpg │ │ │ │ │ ├── logo-full-200px.png │ │ │ │ │ ├── logo-full-strong.png │ │ │ │ │ ├── logo-full-white.png │ │ │ │ │ ├── logo-full.png │ │ │ │ │ ├── logo-text-white.png │ │ │ │ │ ├── logo-text.png │ │ │ │ │ ├── logo.png │ │ │ │ │ ├── oc.png │ │ │ │ │ ├── photo-1.jpg │ │ │ │ │ ├── photo-2.jpg │ │ │ │ │ ├── photo-3.jpg │ │ │ │ │ ├── photo-600_220.jpg │ │ │ │ │ ├── politecnico.png │ │ │ │ │ ├── sidebar-bg-dark.jpg │ │ │ │ │ ├── sidebar-bg.jpg │ │ │ │ │ ├── social-dribble.png │ │ │ │ │ ├── social-facebook.png │ │ │ │ │ ├── social-linkedin.png │ │ │ │ │ ├── social-twitter.png │ │ │ │ │ ├── sq-1.jpg │ │ │ │ │ ├── sq-10.jpg │ │ │ │ │ ├── sq-11.jpg │ │ │ │ │ ├── sq-12.jpg │ │ │ │ │ ├── sq-13.jpg │ │ │ │ │ ├── sq-15.jpg │ │ │ │ │ ├── sq-16.jpg │ │ │ │ │ ├── sq-17.jpg │ │ │ │ │ ├── sq-2.jpg │ │ │ │ │ ├── sq-3.jpg │ │ │ │ │ ├── sq-4.jpg │ │ │ │ │ ├── sq-5.jpg │ │ │ │ │ ├── sq-6.jpg │ │ │ │ │ ├── sq-7.jpg │ │ │ │ │ ├── sq-8.jpg │ │ │ │ │ ├── sq-9.jpg │ │ │ │ │ ├── sq-face-220.jpg │ │ │ │ │ └── tf.png │ │ │ │ └── styles │ │ │ │ │ ├── styles.css │ │ │ │ │ └── themes │ │ │ │ │ ├── egret-blue.scss │ │ │ │ │ ├── egret-dark-pink.scss │ │ │ │ │ ├── egret-dark-purple.scss │ │ │ │ │ └── egret-indigo.scss │ │ │ ├── environments │ │ │ │ ├── environment.prod.ts │ │ │ │ └── environment.ts │ │ │ ├── favicon.ico │ │ │ ├── index.html │ │ │ ├── main.ts │ │ │ ├── polyfills.ts │ │ │ ├── styles.css │ │ │ ├── test.ts │ │ │ ├── tsconfig.app.json │ │ │ ├── tsconfig.spec.json │ │ │ ├── typings.d.ts │ │ │ └── vendor │ │ │ │ ├── Chart.min.js │ │ │ │ └── pace │ │ │ │ ├── pace-green.css │ │ │ │ ├── pace-theme-min.css │ │ │ │ └── pace.min.js │ │ ├── tsconfig.json │ │ ├── tslint.json │ │ └── yarn.lock │ ├── prettier.gif │ ├── testing.svg │ ├── variables.svg │ └── xp.svg │ ├── index.html │ ├── js │ └── reveal.js │ ├── lib │ ├── css │ │ ├── monokai-sublime.css │ │ └── zenburn.css │ ├── font │ │ ├── league-gothic │ │ │ ├── LICENSE │ │ │ ├── league-gothic.css │ │ │ ├── league-gothic.eot │ │ │ ├── league-gothic.ttf │ │ │ └── league-gothic.woff │ │ └── source-sans-pro │ │ │ ├── LICENSE │ │ │ ├── source-sans-pro-italic.eot │ │ │ ├── source-sans-pro-italic.ttf │ │ │ ├── source-sans-pro-italic.woff │ │ │ ├── source-sans-pro-regular.eot │ │ │ ├── source-sans-pro-regular.ttf │ │ │ ├── source-sans-pro-regular.woff │ │ │ ├── source-sans-pro-semibold.eot │ │ │ ├── source-sans-pro-semibold.ttf │ │ │ ├── source-sans-pro-semibold.woff │ │ │ ├── source-sans-pro-semibolditalic.eot │ │ │ ├── source-sans-pro-semibolditalic.ttf │ │ │ ├── source-sans-pro-semibolditalic.woff │ │ │ └── source-sans-pro.css │ └── js │ │ ├── classList.js │ │ ├── head.min.js │ │ └── html5shiv.js │ ├── package.json │ ├── plugin │ ├── highlight │ │ └── highlight.js │ ├── markdown │ │ ├── example.html │ │ ├── example.md │ │ ├── markdown.js │ │ └── marked.js │ ├── math │ │ └── math.js │ ├── multiplex │ │ ├── client.js │ │ ├── index.js │ │ ├── master.js │ │ └── package.json │ ├── notes-server │ │ ├── client.js │ │ ├── index.js │ │ └── notes.html │ ├── notes │ │ ├── notes.html │ │ └── notes.js │ ├── print-pdf │ │ └── print-pdf.js │ ├── search │ │ └── search.js │ └── zoom-js │ │ └── zoom.js │ ├── qrcodejs │ ├── .gitignore │ ├── LICENSE │ ├── README.md │ ├── bower.json │ ├── index-svg.html │ ├── index.html │ ├── index.svg │ ├── jquery.min.js │ ├── qrcode.js │ └── qrcode.min.js │ └── test │ ├── examples │ ├── assets │ │ ├── image1.png │ │ └── image2.png │ ├── barebones.html │ ├── embedded-media.html │ ├── math.html │ ├── slide-backgrounds.html │ └── slide-transitions.html │ ├── qunit-1.12.0.css │ ├── qunit-1.12.0.js │ ├── simple.md │ ├── test-markdown-element-attributes.html │ ├── test-markdown-element-attributes.js │ ├── test-markdown-external.html │ ├── test-markdown-external.js │ ├── test-markdown-options.html │ ├── test-markdown-options.js │ ├── test-markdown-slide-attributes.html │ ├── test-markdown-slide-attributes.js │ ├── test-markdown.html │ ├── test-markdown.js │ ├── test-pdf.html │ ├── test-pdf.js │ ├── test.html │ └── test.js ├── LICENSE └── README.md /00-before/00-humans.js: -------------------------------------------------------------------------------- 1 | const users = [ 2 | { 3 | id: 1, 4 | name: "Carlos Caballero", 5 | memberSince: "1997-04-20", 6 | favoriteLanguageProgramming: ["JavaScript", "C", "Java"], 7 | }, 8 | { 9 | id: 2, 10 | name: "Antonio Villena", 11 | memberSince: "2014-08-15", 12 | favoriteLanguageProgramming: ["Go", "Python", "JavaScript"], 13 | }, 14 | { 15 | id: 3, 16 | name: "Jesús Segado", 17 | memberSice: "2015-03-15", 18 | favoriteLanguageProgramming: ["PHP", "JAVA", "JavaScript"], 19 | } 20 | ]; -------------------------------------------------------------------------------- /99-cleanJS-presentation/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | redirecting to slides... 5 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/lib/css/zenburn.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Zenburn style from voldmar.ru (c) Vladimir Epifanov 4 | based on dark.css by Ivan Sagalaev 5 | 6 | */ 7 | 8 | .hljs { 9 | display: block; 10 | overflow-x: auto; 11 | padding: 0.5em; 12 | background: #3f3f3f; 13 | color: #dcdcdc; 14 | } 15 | 16 | .hljs-keyword, 17 | .hljs-selector-tag, 18 | .hljs-tag { 19 | color: #e3ceab; 20 | } 21 | 22 | .hljs-template-tag { 23 | color: #dcdcdc; 24 | } 25 | 26 | .hljs-number { 27 | color: #8cd0d3; 28 | } 29 | 30 | .hljs-variable, 31 | .hljs-template-variable, 32 | .hljs-attribute { 33 | color: #efdcbc; 34 | } 35 | 36 | .hljs-literal { 37 | color: #efefaf; 38 | } 39 | 40 | .hljs-subst { 41 | color: #8f8f8f; 42 | } 43 | 44 | .hljs-title, 45 | .hljs-name, 46 | .hljs-selector-id, 47 | .hljs-selector-class, 48 | .hljs-section, 49 | .hljs-type { 50 | color: #efef8f; 51 | } 52 | 53 | .hljs-symbol, 54 | .hljs-bullet, 55 | .hljs-link { 56 | color: #dca3a3; 57 | } 58 | 59 | .hljs-deletion, 60 | .hljs-string, 61 | .hljs-built_in, 62 | .hljs-builtin-name { 63 | color: #cc9393; 64 | } 65 | 66 | .hljs-addition, 67 | .hljs-comment, 68 | .hljs-quote, 69 | .hljs-meta { 70 | color: #7f9f7f; 71 | } 72 | 73 | 74 | .hljs-emphasis { 75 | font-style: italic; 76 | } 77 | 78 | .hljs-strong { 79 | font-weight: bold; 80 | } -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | *.iml 3 | *.iws 4 | *.eml 5 | out/ 6 | .DS_Store 7 | .svn 8 | log/*.log 9 | tmp/** 10 | node_modules/ 11 | .sass-cache 12 | css/reveal.min.css 13 | js/reveal.min.js -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 4.1.1 4 | before_script: 5 | - npm install -g grunt-cli -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## Contributing 2 | 3 | Please keep the [issue tracker](http://github.com/hakimel/reveal.js/issues) limited to **bug reports**, **feature requests** and **pull requests**. 4 | 5 | 6 | ### Personal Support 7 | If you have personal support or setup questions the best place to ask those are [StackOverflow](http://stackoverflow.com/questions/tagged/reveal.js). 8 | 9 | 10 | ### Bug Reports 11 | When reporting a bug make sure to include information about which browser and operating system you are on as well as the necessary steps to reproduce the issue. If possible please include a link to a sample presentation where the bug can be tested. 12 | 13 | 14 | ### Pull Requests 15 | - Should follow the coding style of the file you work in, most importantly: 16 | - Tabs to indent 17 | - Single-quoted strings 18 | - Should be made towards the **dev branch** 19 | - Should be submitted from a feature/topic branch (not your master) 20 | 21 | 22 | ### Plugins 23 | Please do not submit plugins as pull requests. They should be maintained in their own separate repository. More information here: https://github.com/hakimel/reveal.js/wiki/Plugin-Guidelines 24 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (C) 2017 Hakim El Hattab, http://hakim.se, and reveal.js contributors 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "reveal.js", 3 | "version": "3.5.0", 4 | "main": [ 5 | "js/reveal.js", 6 | "css/reveal.css" 7 | ], 8 | "homepage": "http://lab.hakim.se/reveal-js/", 9 | "license": "MIT", 10 | "description": "The HTML Presentation Framework", 11 | "authors": [ 12 | "Hakim El Hattab " 13 | ], 14 | "dependencies": { 15 | "headjs": "~1.0.3" 16 | }, 17 | "repository": { 18 | "type": "git", 19 | "url": "git://github.com/hakimel/reveal.js.git" 20 | }, 21 | "ignore": [ 22 | "**/.*", 23 | "node_modules", 24 | "bower_components", 25 | "test" 26 | ] 27 | } -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/css/theme/README.md: -------------------------------------------------------------------------------- 1 | ## Dependencies 2 | 3 | Themes are written using Sass to keep things modular and reduce the need for repeated selectors across files. Make sure that you have the reveal.js development environment including the Grunt dependencies installed before proceding: https://github.com/hakimel/reveal.js#full-setup 4 | 5 | ## Creating a Theme 6 | 7 | To create your own theme, start by duplicating a ```.scss``` file in [/css/theme/source](https://github.com/hakimel/reveal.js/blob/master/css/theme/source). It will be automatically compiled by Grunt from Sass to CSS (see the [Gruntfile](https://github.com/hakimel/reveal.js/blob/master/Gruntfile.js)) when you run `grunt css-themes`. 8 | 9 | Each theme file does four things in the following order: 10 | 11 | 1. **Include [/css/theme/template/mixins.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/mixins.scss)** 12 | Shared utility functions. 13 | 14 | 2. **Include [/css/theme/template/settings.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/settings.scss)** 15 | Declares a set of custom variables that the template file (step 4) expects. Can be overridden in step 3. 16 | 17 | 3. **Override** 18 | This is where you override the default theme. Either by specifying variables (see [settings.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/settings.scss) for reference) or by adding any selectors and styles you please. 19 | 20 | 4. **Include [/css/theme/template/theme.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/theme.scss)** 21 | The template theme file which will generate final CSS output based on the currently defined variables. 22 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/css/theme/source/beige.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Beige theme for reveal.js. 3 | * 4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se 5 | */ 6 | 7 | 8 | // Default mixins and settings ----------------- 9 | @import "../template/mixins"; 10 | @import "../template/settings"; 11 | // --------------------------------------------- 12 | 13 | 14 | 15 | // Include theme-specific fonts 16 | @import url(../../lib/font/league-gothic/league-gothic.css); 17 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic); 18 | 19 | 20 | // Override theme settings (see ../template/settings.scss) 21 | $mainColor: #333; 22 | $headingColor: #333; 23 | $headingTextShadow: none; 24 | $backgroundColor: #f7f3de; 25 | $linkColor: #8b743d; 26 | $linkColorHover: lighten( $linkColor, 20% ); 27 | $selectionBackgroundColor: rgba(79, 64, 28, 0.99); 28 | $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15); 29 | 30 | // Background generator 31 | @mixin bodyBackground() { 32 | @include radial-gradient( rgba(247,242,211,1), rgba(255,255,255,1) ); 33 | } 34 | 35 | 36 | 37 | // Theme template ------------------------------ 38 | @import "../template/theme"; 39 | // --------------------------------------------- -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/css/theme/source/black.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Black theme for reveal.js. This is the opposite of the 'white' theme. 3 | * 4 | * By Hakim El Hattab, http://hakim.se 5 | */ 6 | 7 | 8 | // Default mixins and settings ----------------- 9 | @import "../template/mixins"; 10 | @import "../template/settings"; 11 | // --------------------------------------------- 12 | 13 | 14 | // Include theme-specific fonts 15 | @import url(../../lib/font/source-sans-pro/source-sans-pro.css); 16 | 17 | 18 | // Override theme settings (see ../template/settings.scss) 19 | $backgroundColor: #222; 20 | 21 | $mainColor: #fff; 22 | $headingColor: #fff; 23 | 24 | $mainFontSize: 42px; 25 | $mainFont: 'Source Sans Pro', Helvetica, sans-serif; 26 | $headingFont: 'Source Sans Pro', Helvetica, sans-serif; 27 | $headingTextShadow: none; 28 | $headingLetterSpacing: normal; 29 | $headingTextTransform: uppercase; 30 | $headingFontWeight: 600; 31 | $linkColor: #42affa; 32 | $linkColorHover: lighten( $linkColor, 15% ); 33 | $selectionBackgroundColor: lighten( $linkColor, 25% ); 34 | 35 | $heading1Size: 2.5em; 36 | $heading2Size: 1.6em; 37 | $heading3Size: 1.3em; 38 | $heading4Size: 1.0em; 39 | 40 | section.has-light-background { 41 | &, h1, h2, h3, h4, h5, h6 { 42 | color: #222; 43 | } 44 | } 45 | 46 | 47 | // Theme template ------------------------------ 48 | @import "../template/theme"; 49 | // --------------------------------------------- -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/css/theme/source/blood.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Blood theme for reveal.js 3 | * Author: Walther http://github.com/Walther 4 | * 5 | * Designed to be used with highlight.js theme 6 | * "monokai_sublime.css" available from 7 | * https://github.com/isagalaev/highlight.js/ 8 | * 9 | * For other themes, change $codeBackground accordingly. 10 | * 11 | */ 12 | 13 | // Default mixins and settings ----------------- 14 | @import "../template/mixins"; 15 | @import "../template/settings"; 16 | // --------------------------------------------- 17 | 18 | // Include theme-specific fonts 19 | 20 | @import url(https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic); 21 | 22 | // Colors used in the theme 23 | $blood: #a23; 24 | $coal: #222; 25 | $codeBackground: #23241f; 26 | 27 | $backgroundColor: $coal; 28 | 29 | // Main text 30 | $mainFont: Ubuntu, 'sans-serif'; 31 | $mainColor: #eee; 32 | 33 | // Headings 34 | $headingFont: Ubuntu, 'sans-serif'; 35 | $headingTextShadow: 2px 2px 2px $coal; 36 | 37 | // h1 shadow, borrowed humbly from 38 | // (c) Default theme by Hakim El Hattab 39 | $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15); 40 | 41 | // Links 42 | $linkColor: $blood; 43 | $linkColorHover: lighten( $linkColor, 20% ); 44 | 45 | // Text selection 46 | $selectionBackgroundColor: $blood; 47 | $selectionColor: #fff; 48 | 49 | 50 | // Theme template ------------------------------ 51 | @import "../template/theme"; 52 | // --------------------------------------------- 53 | 54 | // some overrides after theme template import 55 | 56 | .reveal p { 57 | font-weight: 300; 58 | text-shadow: 1px 1px $coal; 59 | } 60 | 61 | .reveal h1, 62 | .reveal h2, 63 | .reveal h3, 64 | .reveal h4, 65 | .reveal h5, 66 | .reveal h6 { 67 | font-weight: 700; 68 | } 69 | 70 | .reveal p code { 71 | background-color: $codeBackground; 72 | display: inline-block; 73 | border-radius: 7px; 74 | } 75 | 76 | .reveal small code { 77 | vertical-align: baseline; 78 | } -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/css/theme/source/league.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * League theme for reveal.js. 3 | * 4 | * This was the default theme pre-3.0.0. 5 | * 6 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se 7 | */ 8 | 9 | 10 | // Default mixins and settings ----------------- 11 | @import "../template/mixins"; 12 | @import "../template/settings"; 13 | // --------------------------------------------- 14 | 15 | 16 | 17 | // Include theme-specific fonts 18 | @import url(../../lib/font/league-gothic/league-gothic.css); 19 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic); 20 | 21 | // Override theme settings (see ../template/settings.scss) 22 | $headingTextShadow: 0px 0px 6px rgba(0,0,0,0.2); 23 | $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15); 24 | 25 | // Background generator 26 | @mixin bodyBackground() { 27 | @include radial-gradient( rgba(28,30,32,1), rgba(85,90,95,1) ); 28 | } 29 | 30 | 31 | 32 | // Theme template ------------------------------ 33 | @import "../template/theme"; 34 | // --------------------------------------------- -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/css/theme/source/moon.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Solarized Dark theme for reveal.js. 3 | * Author: Achim Staebler 4 | */ 5 | 6 | 7 | // Default mixins and settings ----------------- 8 | @import "../template/mixins"; 9 | @import "../template/settings"; 10 | // --------------------------------------------- 11 | 12 | 13 | 14 | // Include theme-specific fonts 15 | @import url(../../lib/font/league-gothic/league-gothic.css); 16 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic); 17 | 18 | /** 19 | * Solarized colors by Ethan Schoonover 20 | */ 21 | html * { 22 | color-profile: sRGB; 23 | rendering-intent: auto; 24 | } 25 | 26 | // Solarized colors 27 | $base03: #002b36; 28 | $base02: #073642; 29 | $base01: #586e75; 30 | $base00: #657b83; 31 | $base0: #839496; 32 | $base1: #93a1a1; 33 | $base2: #eee8d5; 34 | $base3: #fdf6e3; 35 | $yellow: #b58900; 36 | $orange: #cb4b16; 37 | $red: #dc322f; 38 | $magenta: #d33682; 39 | $violet: #6c71c4; 40 | $blue: #268bd2; 41 | $cyan: #2aa198; 42 | $green: #859900; 43 | 44 | // Override theme settings (see ../template/settings.scss) 45 | $mainColor: $base1; 46 | $headingColor: $base2; 47 | $headingTextShadow: none; 48 | $backgroundColor: $base03; 49 | $linkColor: $blue; 50 | $linkColorHover: lighten( $linkColor, 20% ); 51 | $selectionBackgroundColor: $magenta; 52 | 53 | 54 | 55 | // Theme template ------------------------------ 56 | @import "../template/theme"; 57 | // --------------------------------------------- 58 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/css/theme/source/night.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Black theme for reveal.js. 3 | * 4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se 5 | */ 6 | 7 | 8 | // Default mixins and settings ----------------- 9 | @import "../template/mixins"; 10 | @import "../template/settings"; 11 | // --------------------------------------------- 12 | 13 | 14 | // Include theme-specific fonts 15 | @import url(https://fonts.googleapis.com/css?family=Montserrat:700); 16 | @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic); 17 | 18 | 19 | // Override theme settings (see ../template/settings.scss) 20 | $backgroundColor: #111; 21 | 22 | $mainFont: 'Open Sans', sans-serif; 23 | $linkColor: #e7ad52; 24 | $linkColorHover: lighten( $linkColor, 20% ); 25 | $headingFont: 'Montserrat', Impact, sans-serif; 26 | $headingTextShadow: none; 27 | $headingLetterSpacing: -0.03em; 28 | $headingTextTransform: none; 29 | $selectionBackgroundColor: #e7ad52; 30 | 31 | 32 | // Theme template ------------------------------ 33 | @import "../template/theme"; 34 | // --------------------------------------------- -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/css/theme/source/serif.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * A simple theme for reveal.js presentations, similar 3 | * to the default theme. The accent color is brown. 4 | * 5 | * This theme is Copyright (C) 2012-2013 Owen Versteeg, http://owenversteeg.com - it is MIT licensed. 6 | */ 7 | 8 | 9 | // Default mixins and settings ----------------- 10 | @import "../template/mixins"; 11 | @import "../template/settings"; 12 | // --------------------------------------------- 13 | 14 | 15 | 16 | // Override theme settings (see ../template/settings.scss) 17 | $mainFont: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif; 18 | $mainColor: #000; 19 | $headingFont: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif; 20 | $headingColor: #383D3D; 21 | $headingTextShadow: none; 22 | $headingTextTransform: none; 23 | $backgroundColor: #F0F1EB; 24 | $linkColor: #51483D; 25 | $linkColorHover: lighten( $linkColor, 20% ); 26 | $selectionBackgroundColor: #26351C; 27 | 28 | .reveal a { 29 | line-height: 1.3em; 30 | } 31 | 32 | 33 | // Theme template ------------------------------ 34 | @import "../template/theme"; 35 | // --------------------------------------------- 36 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/css/theme/source/simple.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * A simple theme for reveal.js presentations, similar 3 | * to the default theme. The accent color is darkblue. 4 | * 5 | * This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed. 6 | * reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se 7 | */ 8 | 9 | 10 | // Default mixins and settings ----------------- 11 | @import "../template/mixins"; 12 | @import "../template/settings"; 13 | // --------------------------------------------- 14 | 15 | 16 | 17 | // Include theme-specific fonts 18 | @import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700); 19 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic); 20 | 21 | 22 | // Override theme settings (see ../template/settings.scss) 23 | $mainFont: 'Lato', sans-serif; 24 | $mainColor: #000; 25 | $headingFont: 'News Cycle', Impact, sans-serif; 26 | $headingColor: #000; 27 | $headingTextShadow: none; 28 | $headingTextTransform: none; 29 | $backgroundColor: #fff; 30 | $linkColor: #00008B; 31 | $linkColorHover: lighten( $linkColor, 20% ); 32 | $selectionBackgroundColor: rgba(0, 0, 0, 0.99); 33 | 34 | section.has-dark-background { 35 | &, h1, h2, h3, h4, h5, h6 { 36 | color: #fff; 37 | } 38 | } 39 | 40 | 41 | // Theme template ------------------------------ 42 | @import "../template/theme"; 43 | // --------------------------------------------- -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/css/theme/source/sky.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Sky theme for reveal.js. 3 | * 4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se 5 | */ 6 | 7 | 8 | // Default mixins and settings ----------------- 9 | @import "../template/mixins"; 10 | @import "../template/settings"; 11 | // --------------------------------------------- 12 | 13 | 14 | 15 | // Include theme-specific fonts 16 | @import url(https://fonts.googleapis.com/css?family=Quicksand:400,700,400italic,700italic); 17 | @import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700); 18 | 19 | 20 | // Override theme settings (see ../template/settings.scss) 21 | $mainFont: 'Open Sans', sans-serif; 22 | $mainColor: #333; 23 | $headingFont: 'Quicksand', sans-serif; 24 | $headingColor: #333; 25 | $headingLetterSpacing: -0.08em; 26 | $headingTextShadow: none; 27 | $backgroundColor: #f7fbfc; 28 | $linkColor: #3b759e; 29 | $linkColorHover: lighten( $linkColor, 20% ); 30 | $selectionBackgroundColor: #134674; 31 | 32 | // Fix links so they are not cut off 33 | .reveal a { 34 | line-height: 1.3em; 35 | } 36 | 37 | // Background generator 38 | @mixin bodyBackground() { 39 | @include radial-gradient( #add9e4, #f7fbfc ); 40 | } 41 | 42 | 43 | 44 | // Theme template ------------------------------ 45 | @import "../template/theme"; 46 | // --------------------------------------------- 47 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/css/theme/source/solarized.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Solarized Light theme for reveal.js. 3 | * Author: Achim Staebler 4 | */ 5 | 6 | 7 | // Default mixins and settings ----------------- 8 | @import "../template/mixins"; 9 | @import "../template/settings"; 10 | // --------------------------------------------- 11 | 12 | 13 | 14 | // Include theme-specific fonts 15 | @import url(../../lib/font/league-gothic/league-gothic.css); 16 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic); 17 | 18 | 19 | /** 20 | * Solarized colors by Ethan Schoonover 21 | */ 22 | html * { 23 | color-profile: sRGB; 24 | rendering-intent: auto; 25 | } 26 | 27 | // Solarized colors 28 | $base03: #002b36; 29 | $base02: #073642; 30 | $base01: #586e75; 31 | $base00: #657b83; 32 | $base0: #839496; 33 | $base1: #93a1a1; 34 | $base2: #eee8d5; 35 | $base3: #fdf6e3; 36 | $yellow: #b58900; 37 | $orange: #cb4b16; 38 | $red: #dc322f; 39 | $magenta: #d33682; 40 | $violet: #6c71c4; 41 | $blue: #268bd2; 42 | $cyan: #2aa198; 43 | $green: #859900; 44 | 45 | // Override theme settings (see ../template/settings.scss) 46 | $mainColor: $base00; 47 | $headingColor: $base01; 48 | $headingTextShadow: none; 49 | $backgroundColor: $base3; 50 | $linkColor: $blue; 51 | $linkColorHover: lighten( $linkColor, 20% ); 52 | $selectionBackgroundColor: $magenta; 53 | 54 | // Background generator 55 | // @mixin bodyBackground() { 56 | // @include radial-gradient( rgba($base3,1), rgba(lighten($base3, 20%),1) ); 57 | // } 58 | 59 | 60 | 61 | // Theme template ------------------------------ 62 | @import "../template/theme"; 63 | // --------------------------------------------- 64 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/css/theme/source/white.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * White theme for reveal.js. This is the opposite of the 'black' theme. 3 | * 4 | * By Hakim El Hattab, http://hakim.se 5 | */ 6 | 7 | 8 | // Default mixins and settings ----------------- 9 | @import "../template/mixins"; 10 | @import "../template/settings"; 11 | // --------------------------------------------- 12 | 13 | 14 | // Include theme-specific fonts 15 | @import url(../../lib/font/source-sans-pro/source-sans-pro.css); 16 | 17 | 18 | // Override theme settings (see ../template/settings.scss) 19 | $backgroundColor: #fff; 20 | 21 | $mainColor: #222; 22 | $headingColor: #222; 23 | 24 | $mainFontSize: 42px; 25 | $mainFont: 'Source Sans Pro', Helvetica, sans-serif; 26 | $headingFont: 'Source Sans Pro', Helvetica, sans-serif; 27 | $headingTextShadow: none; 28 | $headingLetterSpacing: normal; 29 | $headingTextTransform: uppercase; 30 | $headingFontWeight: 600; 31 | $linkColor: #2a76dd; 32 | $linkColorHover: lighten( $linkColor, 15% ); 33 | $selectionBackgroundColor: lighten( $linkColor, 25% ); 34 | 35 | $heading1Size: 2.5em; 36 | $heading2Size: 1.6em; 37 | $heading3Size: 1.3em; 38 | $heading4Size: 1.0em; 39 | 40 | section.has-dark-background { 41 | &, h1, h2, h3, h4, h5, h6 { 42 | color: #fff; 43 | } 44 | } 45 | 46 | 47 | // Theme template ------------------------------ 48 | @import "../template/theme"; 49 | // --------------------------------------------- -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/css/theme/template/mixins.scss: -------------------------------------------------------------------------------- 1 | @mixin vertical-gradient( $top, $bottom ) { 2 | background: $top; 3 | background: -moz-linear-gradient( top, $top 0%, $bottom 100% ); 4 | background: -webkit-gradient( linear, left top, left bottom, color-stop(0%,$top), color-stop(100%,$bottom) ); 5 | background: -webkit-linear-gradient( top, $top 0%, $bottom 100% ); 6 | background: -o-linear-gradient( top, $top 0%, $bottom 100% ); 7 | background: -ms-linear-gradient( top, $top 0%, $bottom 100% ); 8 | background: linear-gradient( top, $top 0%, $bottom 100% ); 9 | } 10 | 11 | @mixin horizontal-gradient( $top, $bottom ) { 12 | background: $top; 13 | background: -moz-linear-gradient( left, $top 0%, $bottom 100% ); 14 | background: -webkit-gradient( linear, left top, right top, color-stop(0%,$top), color-stop(100%,$bottom) ); 15 | background: -webkit-linear-gradient( left, $top 0%, $bottom 100% ); 16 | background: -o-linear-gradient( left, $top 0%, $bottom 100% ); 17 | background: -ms-linear-gradient( left, $top 0%, $bottom 100% ); 18 | background: linear-gradient( left, $top 0%, $bottom 100% ); 19 | } 20 | 21 | @mixin radial-gradient( $outer, $inner, $type: circle ) { 22 | background: $outer; 23 | background: -moz-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); 24 | background: -webkit-gradient( radial, center center, 0px, center center, 100%, color-stop(0%,$inner), color-stop(100%,$outer) ); 25 | background: -webkit-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); 26 | background: -o-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); 27 | background: -ms-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); 28 | background: radial-gradient( center, $type cover, $inner 0%, $outer 100% ); 29 | } -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/css/theme/template/settings.scss: -------------------------------------------------------------------------------- 1 | // Base settings for all themes that can optionally be 2 | // overridden by the super-theme 3 | 4 | // Background of the presentation 5 | $backgroundColor: #2b2b2b; 6 | 7 | // Primary/body text 8 | $mainFont: 'Lato', sans-serif; 9 | $mainFontSize: 40px; 10 | $mainColor: #eee; 11 | 12 | // Vertical spacing between blocks of text 13 | $blockMargin: 20px; 14 | 15 | // Headings 16 | $headingMargin: 0 0 $blockMargin 0; 17 | $headingFont: 'League Gothic', Impact, sans-serif; 18 | $headingColor: #eee; 19 | $headingLineHeight: 1.2; 20 | $headingLetterSpacing: normal; 21 | $headingTextTransform: uppercase; 22 | $headingTextShadow: none; 23 | $headingFontWeight: normal; 24 | $heading1TextShadow: $headingTextShadow; 25 | 26 | $heading1Size: 3.77em; 27 | $heading2Size: 2.11em; 28 | $heading3Size: 1.55em; 29 | $heading4Size: 1.00em; 30 | 31 | // Links and actions 32 | $linkColor: #13DAEC; 33 | $linkColorHover: lighten( $linkColor, 20% ); 34 | 35 | // Text selection 36 | $selectionBackgroundColor: #FF5E99; 37 | $selectionColor: #fff; 38 | 39 | // Generates the presentation background, can be overridden 40 | // to return a background image or gradient 41 | @mixin bodyBackground() { 42 | background: $backgroundColor; 43 | } -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/00-refactoring.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/00-refactoring.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/authors/CarlosCaballero.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/authors/CarlosCaballero.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/cartel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/cartel.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/fondo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/fondo.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/fondos/fondo-async.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/fondos/fondo-async.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/fondos/fondo-before.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/fondos/fondo-before.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/fondos/fondo-conditionals.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/fondos/fondo-conditionals.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/fondos/fondo-exceptions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/fondos/fondo-exceptions.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/fondos/fondo-functions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/fondos/fondo-functions.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/fondos/fondo-testing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/fondos/fondo-testing.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/fondos/fondo-variables.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/fondos/fondo-variables.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/fondos/fondo-xp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/fondos/fondo-xp.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/heroes/heroes01.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/heroes/heroes01.gif -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/heroes/heroes02.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/heroes/heroes02.gif -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/heroes/heroes03.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/heroes/heroes03.gif -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/heroes/heroes04.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/heroes/heroes04.gif -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/heroes/heroes05.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/heroes/heroes05.gif -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/heroes/heroes06.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/heroes/heroes06.gif -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/heroes/heroes07.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/heroes/heroes07.gif -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/heroes/heroes08.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/heroes/heroes08.gif -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/heroes/heroes09.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/heroes/heroes09.gif -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/heroes/heroes10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/heroes/heroes10.gif -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/heroes/heroes11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/heroes/heroes11.gif -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/heroes/heroes12.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/heroes/heroes12.gif -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/logo/javascript.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/logo/javascript.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/README.md: -------------------------------------------------------------------------------- 1 | # Egret 2 | 3 | This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.0.4. 4 | 5 | ## Development server 6 | 7 | Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. 8 | 9 | ## Code scaffolding 10 | 11 | Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|module`. 12 | 13 | ## Build 14 | 15 | Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build. 16 | 17 | ## Running unit tests 18 | 19 | Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). 20 | 21 | ## Running end-to-end tests 22 | 23 | Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/). 24 | Before running the tests make sure you are serving the app via `ng serve`. 25 | 26 | ## Further help 27 | 28 | To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). 29 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/e2e/app.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import { NgEgretPage } from './app.po'; 2 | 3 | describe('ng-egret App', () => { 4 | let page: NgEgretPage; 5 | 6 | beforeEach(() => { 7 | page = new NgEgretPage(); 8 | }); 9 | 10 | it('should display message saying app works', () => { 11 | page.navigateTo(); 12 | expect(page.getParagraphText()).toEqual('app works!'); 13 | }); 14 | }); 15 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/e2e/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class NgEgretPage { 4 | navigateTo() { 5 | return browser.get('/'); 6 | } 7 | 8 | getParagraphText() { 9 | return element(by.css('app-root h1')).getText(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/e2e/tsconfig.e2e.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/e2e", 5 | "module": "commonjs", 6 | "target": "es5", 7 | "types": [ 8 | "jasmine", 9 | "node" 10 | ] 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/karma.conf.js: -------------------------------------------------------------------------------- 1 | // Karma configuration file, see link for more information 2 | // https://karma-runner.github.io/0.13/config/configuration-file.html 3 | 4 | module.exports = function (config) { 5 | config.set({ 6 | basePath: '', 7 | frameworks: ['jasmine', '@angular/cli'], 8 | plugins: [ 9 | require('karma-jasmine'), 10 | require('karma-chrome-launcher'), 11 | require('karma-jasmine-html-reporter'), 12 | require('karma-coverage-istanbul-reporter'), 13 | require('@angular/cli/plugins/karma') 14 | ], 15 | client:{ 16 | clearContext: false // leave Jasmine Spec Runner output visible in browser 17 | }, 18 | files: [ 19 | { pattern: './src/test.ts', watched: false } 20 | ], 21 | preprocessors: { 22 | './src/test.ts': ['@angular/cli'] 23 | }, 24 | mime: { 25 | 'text/x-typescript': ['ts','tsx'] 26 | }, 27 | coverageIstanbulReporter: { 28 | reports: [ 'html', 'lcovonly' ], 29 | fixWebpackSourcePaths: true 30 | }, 31 | angularCli: { 32 | environment: 'dev' 33 | }, 34 | reporters: config.angularCli && config.angularCli.codeCoverage 35 | ? ['progress', 'coverage-istanbul'] 36 | : ['progress', 'kjhtml'], 37 | port: 9876, 38 | colors: true, 39 | logLevel: config.LOG_INFO, 40 | autoWatch: true, 41 | browsers: ['Chrome'], 42 | singleRun: false 43 | }); 44 | }; 45 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "egret", 3 | "version": "5.0.0", 4 | "license": "MIT", 5 | "scripts": { 6 | "ng": "ng", 7 | "start": "ng serve", 8 | "serveProd": "ng serve --environment=prod", 9 | "build": "ng build", 10 | "test": "ng test", 11 | "lint": "ng lint", 12 | "e2e": "ng e2e" 13 | }, 14 | "private": true, 15 | "dependencies": { 16 | "@agm/core": "1.0.0-beta.2", 17 | "@angular-devkit/core": "0.0.28", 18 | "@angular/animations": "5.1.0", 19 | "@angular/cdk": "5.0.0", 20 | "@angular/common": "5.1.0", 21 | "@angular/compiler": "5.1.0", 22 | "@angular/core": "5.1.0", 23 | "@angular/flex-layout": "2.0.0-beta.10", 24 | "@angular/forms": "5.1.0", 25 | "@angular/http": "5.1.0", 26 | "@angular/material": "5.0.0", 27 | "@angular/platform-browser": "5.1.0", 28 | "@angular/platform-browser-dynamic": "5.1.0", 29 | "@angular/router": "5.1.0", 30 | "@swimlane/ngx-datatable": "^11.0.0", 31 | "angular-calendar": "0.21.3", 32 | "chart.js": "2.5.0", 33 | "classlist.js": "1.1.20150312", 34 | "core-js": "2.4.1", 35 | "date-fns": "1.28.5", 36 | "hammerjs": "2.0.8", 37 | "hopscotch": "0.3.1", 38 | "ng2-charts": "1.6.0", 39 | "ng2-dragula": "1.3.1", 40 | "ng2-file-upload": "1.2.1", 41 | "ng2-translate": "5.0.0", 42 | "ng2-validation": "4.2.0", 43 | "ngx-quill": "2.0.4", 44 | "perfect-scrollbar": "0.7.1", 45 | "rxjs": "5.5.2", 46 | "zone.js": "0.8.18" 47 | }, 48 | "devDependencies": { 49 | "@angular/cli": "1.5.0", 50 | "@angular/compiler-cli": "5.1.0", 51 | "@types/hopscotch": "0.2.28", 52 | "@types/jasmine": "2.5.38", 53 | "@types/node": "6.0.60", 54 | "codelyzer": "~2.0.0", 55 | "enhanced-resolve": "3.3.0", 56 | "jasmine-core": "~2.5.2", 57 | "jasmine-spec-reporter": "~3.2.0", 58 | "karma": "~1.4.1", 59 | "karma-chrome-launcher": "~2.1.1", 60 | "karma-cli": "~1.0.1", 61 | "karma-coverage-istanbul-reporter": "~0.2.0", 62 | "karma-jasmine": "~1.1.0", 63 | "karma-jasmine-html-reporter": "~0.2.2", 64 | "protractor": "~5.1.0", 65 | "ts-node": "2.0.0", 66 | "tslint": "4.5.0", 67 | "typescript": "2.4.2" 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/protractor.conf.js: -------------------------------------------------------------------------------- 1 | // Protractor configuration file, see link for more information 2 | // https://github.com/angular/protractor/blob/master/lib/config.ts 3 | 4 | const { SpecReporter } = require('jasmine-spec-reporter'); 5 | 6 | exports.config = { 7 | allScriptsTimeout: 11000, 8 | specs: [ 9 | './e2e/**/*.e2e-spec.ts' 10 | ], 11 | capabilities: { 12 | 'browserName': 'chrome' 13 | }, 14 | directConnect: true, 15 | baseUrl: 'http://localhost:4200/', 16 | framework: 'jasmine', 17 | jasmineNodeOpts: { 18 | showColors: true, 19 | defaultTimeoutInterval: 30000, 20 | print: function() {} 21 | }, 22 | onPrepare() { 23 | require('ts-node').register({ 24 | project: 'e2e/tsconfig.e2e.json' 25 | }); 26 | jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); 27 | } 28 | }; 29 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/app.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/app/app.component.css -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/app.component.spec.ts: -------------------------------------------------------------------------------- 1 | describe('AppComponent', () => { 2 | it('true expect to be true',() => { 3 | expect(true).toBe(true); 4 | }); 5 | }); 6 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/app.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { RouterModule } from '@angular/router'; 3 | import { BrowserModule } from '@angular/platform-browser'; 4 | import { Http, HttpModule } from '@angular/http'; 5 | import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; 6 | import { TranslateModule, TranslateLoader, TranslateStaticLoader } from 'ng2-translate/ng2-translate'; 7 | 8 | import { rootRouterConfig } from './app.routes'; 9 | import { AppCommonModule } from "./components/common/app-common.module"; 10 | import { AppComponent } from './app.component'; 11 | 12 | import { RoutePartsService } from './services/route-parts/route-parts.service'; 13 | import { NavigationService } from "./services/navigation/navigation.service"; 14 | import { AuthGuard } from './services/auth/auth.guard'; 15 | import { MatDialogModule } from '@angular/material'; 16 | 17 | export function createTranslateLoader(http: Http) { 18 | return new TranslateStaticLoader(http, './assets/i18n', '.json'); 19 | } 20 | 21 | @NgModule({ 22 | imports: [ 23 | BrowserModule, 24 | BrowserAnimationsModule, 25 | HttpModule, 26 | AppCommonModule, 27 | MatDialogModule, 28 | TranslateModule.forRoot({ 29 | provide: TranslateLoader, 30 | useFactory: (createTranslateLoader), 31 | deps: [Http] 32 | }), 33 | RouterModule.forRoot(rootRouterConfig, { useHash: false }) 34 | ], 35 | declarations: [AppComponent], 36 | providers: [ 37 | RoutePartsService, 38 | NavigationService, 39 | AuthGuard, 40 | 41 | ], 42 | bootstrap: [AppComponent] 43 | }) 44 | export class AppModule { } 45 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/app.routes.ts: -------------------------------------------------------------------------------- 1 | import { Routes } from '@angular/router'; 2 | 3 | import { AdminLayoutComponent } from './components/common/layouts/admin-layout/admin-layout.component'; 4 | import { AuthLayoutComponent } from './components/common/layouts/auth-layout/auth-layout.component'; 5 | 6 | import { AuthGuard } from './services/auth/auth.guard'; 7 | import { AdminDatatableComponent } from 'app/components/common/layouts/administratorDatatable/admin-datatable.component'; 8 | import { SignupComponent } from 'app/views/sessions/signup/signup.component'; 9 | 10 | export const rootRouterConfig: Routes = [ 11 | { 12 | path: '', 13 | redirectTo: 'dashboard', 14 | pathMatch: 'full' 15 | }, 16 | { 17 | path: 'signup', 18 | component: SignupComponent 19 | }, 20 | { 21 | path: '', 22 | component: AuthLayoutComponent, 23 | children: [ 24 | { 25 | path: 'sessions', 26 | loadChildren: './views/sessions/sessions.module#SessionsModule', 27 | data: { title: 'Session' } 28 | } 29 | ] 30 | }, 31 | { 32 | path: '', 33 | component: AdminLayoutComponent, 34 | //canActivate: [AuthGuard], 35 | children: [ 36 | 37 | { 38 | path: 'dashboard', 39 | loadChildren: './views/others/others.module#OthersModule', 40 | data: { title: 'Others', breadcrumb: 'Gestión del tráfico y acceso a la comunidad educativa' } 41 | } 42 | 43 | ] 44 | }, 45 | { 46 | path: 'administrator', 47 | component: AdminDatatableComponent, 48 | //canActivate: [AuthGuard], 49 | children: [ 50 | 51 | { 52 | path: 'administrator', 53 | loadChildren: './views/others/others.module#OthersModule', 54 | data: { title: 'Others', breadcrumb: 'Gestión del tráfico y acceso a la comunidad educativa' } 55 | } 56 | 57 | ] 58 | }, 59 | { 60 | path: '**', 61 | redirectTo: 'sessions/404' 62 | } 63 | ]; 64 | 65 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/components/common/breadcrumb/breadcrumb.component.css: -------------------------------------------------------------------------------- 1 | .breadcrumb-bar { 2 | position: relative; 3 | width: 100%; 4 | height: 40px !important; 5 | min-height: 40px !important; 6 | padding: 0 .666rem; 7 | float: left; 8 | box-shadow: 0 3px 1px -2px rgba(0,0,0,.08), 0 2px 2px 0 rgba(0,0,0,.05), 0 1px 5px 0 rgba(0,0,0,.05); 9 | z-index: 9999; 10 | } 11 | .breadcrumb { 12 | margin: 0; 13 | padding: 0; 14 | } 15 | .breadcrumb li { 16 | list-style: none; 17 | float: left; 18 | line-height: 40px; 19 | } 20 | .breadcrumb li:not(:first-child):before { 21 | content: "/\A0"; 22 | padding: 0 8px; 23 | } 24 | .breadcrumb li a { 25 | font-weight: 400; 26 | font-size: 1rem; 27 | } -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/components/common/breadcrumb/breadcrumb.component.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/components/common/breadcrumb/breadcrumb.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { Router, NavigationEnd, ActivatedRoute, ActivatedRouteSnapshot } from '@angular/router'; 3 | import { RoutePartsService } from '../../../services/route-parts/route-parts.service'; 4 | 5 | @Component({ 6 | selector: 'app-breadcrumb', 7 | templateUrl: './breadcrumb.component.html', 8 | styleUrls: ['./breadcrumb.component.css'] 9 | }) 10 | export class BreadcrumbComponent implements OnInit { 11 | routeParts:any[]; 12 | public isEnabled: boolean = true; 13 | constructor( 14 | private router: Router, 15 | private routePartsService: RoutePartsService, 16 | private activeRoute: ActivatedRoute 17 | ) { 18 | this.router.events.filter(event => event instanceof NavigationEnd).subscribe((routeChange) => { 19 | this.routeParts = this.routePartsService.generateRouteParts(this.activeRoute.snapshot); 20 | // generate url from parts 21 | this.routeParts.reverse().map((item, i) => { 22 | item.breadcrumb = this.parseText(item); 23 | item.urlSegments.forEach((urlSegment, j) => { 24 | if(j === 0) 25 | return item.url = `${urlSegment.path}`; 26 | item.url += `/${urlSegment.path}` 27 | }); 28 | if(i === 0) { 29 | return item; 30 | } 31 | // prepend previous part to current part 32 | item.url = `${this.routeParts[i - 1].url}/${item.url}`; 33 | return item; 34 | }); 35 | }); 36 | } 37 | 38 | ngOnInit() {} 39 | 40 | parseText(part) { 41 | part.breadcrumb = part.breadcrumb.replace(/{{([^{}]*)}}/g, function (a, b) { 42 | var r = part.params[b]; 43 | return typeof r === 'string' ? r : a; 44 | }); 45 | return part.breadcrumb; 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/components/common/datatable/datatable.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/app/components/common/datatable/datatable.component.css -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/components/common/datatable/datatable.component.html: -------------------------------------------------------------------------------- 1 |

2 | datatable works! 3 |

4 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/components/common/datatable/datatable.component.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | 3 | import { DatatableComponent } from './datatable.component'; 4 | 5 | describe('DatatableComponent', () => { 6 | let component: DatatableComponent; 7 | let fixture: ComponentFixture; 8 | 9 | beforeEach(async(() => { 10 | TestBed.configureTestingModule({ 11 | declarations: [ DatatableComponent ] 12 | }) 13 | .compileComponents(); 14 | })); 15 | 16 | beforeEach(() => { 17 | fixture = TestBed.createComponent(DatatableComponent); 18 | component = fixture.componentInstance; 19 | fixture.detectChanges(); 20 | }); 21 | 22 | it('should create', () => { 23 | expect(component).toBeTruthy(); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/components/common/footer/footer.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/app/components/common/footer/footer.component.css -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/components/common/footer/footer.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-footer', 5 | templateUrl: './footer.template.html', 6 | styleUrls: ['./footer.component.css'] 7 | }) 8 | export class FooterComponent { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/components/common/footer/footer.template.html: -------------------------------------------------------------------------------- 1 |
2 |
3 | 4 | 5 | 6 |
7 |
8 | Usted está conectado desde Internet con la IP 9 | 10 | 92.59.203.128 11 | 12 |
13 |
14 | IES Politécnico Jesús Marín Calle Politécnico 1,29007, Málaga 15 | Tlf.:951297914 - 904914 16 | Fax: 951297957 - 904957 17 |
18 | 19 |
-------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/components/common/layouts/admin-layout/admin-layout.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit, ViewChild } from '@angular/core'; 2 | import { 3 | Router, 4 | NavigationEnd, 5 | RouteConfigLoadStart, 6 | RouteConfigLoadEnd, 7 | ResolveStart, 8 | ResolveEnd 9 | } from '@angular/router'; 10 | import { Subscription } from "rxjs/Subscription"; 11 | import { MatSidenav } from '@angular/material'; 12 | import { TranslateService } from 'ng2-translate/ng2-translate'; 13 | import { ThemeService } from '../../../../services/theme/theme.service'; 14 | import * as Ps from 'perfect-scrollbar'; 15 | import * as domHelper from '../../../../helpers/dom.helper'; 16 | import { AuthGuard } from 'app/services/auth/auth.guard'; 17 | 18 | 19 | @Component({ 20 | selector: 'app-admin-layout', 21 | templateUrl: './admin-layout.template.html' 22 | }) 23 | export class AdminLayoutComponent implements OnInit { 24 | private isMobile; 25 | isSidenavOpen: Boolean = false; 26 | isModuleLoading: Boolean = false; 27 | moduleLoaderSub: Subscription; 28 | @ViewChild(MatSidenav) private sideNave: MatSidenav; 29 | 30 | constructor( 31 | private router: Router, 32 | public translate: TranslateService, 33 | public themeService: ThemeService 34 | ) { 35 | // Close sidenav after route change in mobile 36 | router.events.filter(event => event instanceof NavigationEnd) 37 | .subscribe((routeChange: NavigationEnd) => { 38 | if(this.isNavOver()) { 39 | this.sideNave.close() 40 | } 41 | }); 42 | 43 | // Translator init 44 | const browserLang: string = translate.getBrowserLang(); 45 | translate.use(browserLang.match(/en|fr/) ? browserLang : 'en'); 46 | } 47 | ngOnInit() { 48 | // Initialize Perfect scrollbar for sidenav 49 | let navigationHold = document.getElementById('scroll-area'); 50 | Ps.initialize(navigationHold, { 51 | suppressScrollX: true 52 | }); 53 | 54 | // FOR MODULE LOADER FLAG 55 | this.moduleLoaderSub = this.router.events.subscribe(event => { 56 | if(event instanceof RouteConfigLoadStart || event instanceof ResolveStart) { 57 | this.isModuleLoading = true; 58 | } 59 | if(event instanceof RouteConfigLoadEnd || event instanceof ResolveEnd) { 60 | this.isModuleLoading = false; 61 | } 62 | }); 63 | } 64 | ngOnDestroy() { 65 | this.moduleLoaderSub.unsubscribe(); 66 | } 67 | isNavOver() { 68 | let isSm = window.matchMedia(`(max-width: 960px)`).matches; 69 | 70 | // Disable collapsed menu in small screen 71 | if(isSm && domHelper.hasClass(document.body, 'collapsed-menu')) { 72 | domHelper.removeClass(document.body, 'collapsed-menu') 73 | } 74 | return isSm; 75 | } 76 | } -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/components/common/layouts/administratorDatatable/admin-datatable.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit, ViewChild } from '@angular/core'; 2 | import { 3 | Router, 4 | NavigationEnd, 5 | RouteConfigLoadStart, 6 | RouteConfigLoadEnd, 7 | ResolveStart, 8 | ResolveEnd 9 | } from '@angular/router'; 10 | import { Subscription } from "rxjs/Subscription"; 11 | import { MatSidenav } from '@angular/material'; 12 | import { TranslateService } from 'ng2-translate/ng2-translate'; 13 | import { ThemeService } from '../../../../services/theme/theme.service'; 14 | import * as Ps from 'perfect-scrollbar'; 15 | import * as domHelper from '../../../../helpers/dom.helper'; 16 | 17 | @Component({ 18 | selector: 'app-admin-datatable', 19 | templateUrl: './admin-datatable.template.html' 20 | }) 21 | export class AdminDatatableComponent implements OnInit { 22 | private isMobile; 23 | isSidenavOpen: Boolean = false; 24 | isModuleLoading: Boolean = false; 25 | moduleLoaderSub: Subscription; 26 | @ViewChild(MatSidenav) private sideNave: MatSidenav; 27 | 28 | constructor( 29 | private router: Router, 30 | public translate: TranslateService, 31 | public themeService: ThemeService 32 | ) { 33 | // Close sidenav after route change in mobile 34 | router.events.filter(event => event instanceof NavigationEnd) 35 | .subscribe((routeChange: NavigationEnd) => { 36 | if (this.isNavOver()) { 37 | this.sideNave.close() 38 | } 39 | }); 40 | 41 | // Translator init 42 | const browserLang: string = translate.getBrowserLang(); 43 | translate.use(browserLang.match(/en|fr/) ? browserLang : 'en'); 44 | } 45 | ngOnInit() { 46 | // Initialize Perfect scrollbar for sidenav 47 | let navigationHold = document.getElementById('scroll-area'); 48 | Ps.initialize(navigationHold, { 49 | suppressScrollX: true 50 | }); 51 | 52 | // FOR MODULE LOADER FLAG 53 | this.moduleLoaderSub = this.router.events.subscribe(event => { 54 | if (event instanceof RouteConfigLoadStart || event instanceof ResolveStart) { 55 | this.isModuleLoading = true; 56 | } 57 | if (event instanceof RouteConfigLoadEnd || event instanceof ResolveEnd) { 58 | this.isModuleLoading = false; 59 | } 60 | }); 61 | } 62 | ngOnDestroy() { 63 | this.moduleLoaderSub.unsubscribe(); 64 | } 65 | isNavOver() { 66 | let isSm = window.matchMedia(`(max-width: 960px)`).matches; 67 | 68 | // Disable collapsed menu in small screen 69 | if (isSm && domHelper.hasClass(document.body, 'collapsed-menu')) { 70 | domHelper.removeClass(document.body, 'collapsed-menu') 71 | } 72 | return isSm; 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/components/common/layouts/administratorDatatable/admin-datatable.template.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 |
13 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/components/common/layouts/auth-layout/auth-layout.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/app/components/common/layouts/auth-layout/auth-layout.component.css -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/components/common/layouts/auth-layout/auth-layout.component.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/components/common/layouts/auth-layout/auth-layout.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-auth-layout', 5 | templateUrl: './auth-layout.component.html', 6 | styleUrls: ['./auth-layout.component.css'] 7 | }) 8 | export class AuthLayoutComponent implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/components/common/navigation/navigation.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { NavigationService } from "../../../services/navigation/navigation.service"; 3 | 4 | @Component({ 5 | selector: 'navigation', 6 | templateUrl: './navigation.template.html' 7 | }) 8 | export class NavigationComponent { 9 | hasIconTypeMenuItem; 10 | iconTypeMenuTitle: string; 11 | menuItems: any[]; 12 | 13 | constructor(private navService: NavigationService) {} 14 | ngOnInit() { 15 | this.iconTypeMenuTitle = this.navService.iconTypeMenuTitle; 16 | // Loads menu items from NavigationService 17 | this.navService.menuItems$.subscribe(menuItem => { 18 | this.menuItems = menuItem; 19 | //Checks item list has any icon type. 20 | this.hasIconTypeMenuItem = !!this.menuItems.filter(item => item.type === 'icon').length; 21 | }); 22 | } 23 | 24 | // Only for demo purpose 25 | addMenuItem() { 26 | this.menuItems.push({ 27 | name: 'ITEM', 28 | type: 'dropDown', 29 | tooltip: 'Item', 30 | icon: 'done', 31 | state: 'material', 32 | sub: [ 33 | {name: 'SUBITEM', state: 'cards'}, 34 | {name: 'SUBITEM', state: 'buttons'} 35 | ] 36 | }); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/components/common/navigation/notifications/notifications.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/app/components/common/navigation/notifications/notifications.component.css -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/components/common/navigation/notifications/notifications.component.html: -------------------------------------------------------------------------------- 1 |
2 |
Notifications
3 |
4 | 5 | 6 | 7 | {{n.icon}} 8 | 9 |
10 |

{{n.message}}

11 | {{n.time}} 12 |
13 |
14 |
15 |
16 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/components/common/navigation/notifications/notifications.component.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/app/components/common/navigation/notifications/notifications.component.scss -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/components/common/navigation/notifications/notifications.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit, ViewChild, Input } from '@angular/core'; 2 | import { MatSidenav } from '@angular/material'; 3 | import { Router, NavigationEnd } from '@angular/router'; 4 | 5 | @Component({ 6 | selector: 'app-notifications', 7 | templateUrl: './notifications.component.html', 8 | styleUrls: ['./notifications.component.css'] 9 | }) 10 | export class NotificationsComponent implements OnInit { 11 | @Input() notificPanel; 12 | 13 | // Dummy notifications 14 | notifications = [{ 15 | message: 'New contact added', 16 | icon: 'assignment_ind', 17 | time: '1 min ago', 18 | route: '/inbox', 19 | color: 'primary' 20 | }, { 21 | message: 'New message', 22 | icon: 'chat', 23 | time: '4 min ago', 24 | route: '/chat', 25 | color: 'accent' 26 | }, { 27 | message: 'Server rebooted', 28 | icon: 'settings_backup_restore', 29 | time: '12 min ago', 30 | route: '/charts', 31 | color: 'warn' 32 | }] 33 | 34 | constructor(private router: Router) {} 35 | 36 | ngOnInit() { 37 | this.router.events.subscribe((routeChange) => { 38 | if (routeChange instanceof NavigationEnd) { 39 | this.notificPanel.close(); 40 | } 41 | }); 42 | } 43 | clearAll(e) { 44 | e.preventDefault(); 45 | this.notifications = []; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/components/common/topbar/topbar.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit, EventEmitter, Input, Output } from '@angular/core'; 2 | import * as domHelper from '../../../helpers/dom.helper'; 3 | import { ThemeService } from '../../../services/theme/theme.service'; 4 | import { AuthGuard } from 'app/services/auth/auth.guard'; 5 | import { SigninComponent } from 'app/views/sessions/signin/signin.component'; 6 | import { MatDialogRef, MatDialog } from '@angular/material'; 7 | 8 | @Component({ 9 | selector: 'topbar', 10 | templateUrl: './topbar.template.html' 11 | }) 12 | export class TopbarComponent implements OnInit { 13 | @Input() sidenav; 14 | @Input() notificPanel; 15 | @Output() onLangChange = new EventEmitter(); 16 | currentLang = 'en'; 17 | availableLangs = [{ 18 | name: 'English', 19 | code: 'en', 20 | }, { 21 | name: 'Spanish', 22 | code: 'es', 23 | }] 24 | egretThemes; 25 | SigninDialogRef: MatDialogRef; 26 | 27 | constructor( 28 | private themeService: ThemeService, 29 | private auth: AuthGuard, 30 | private dialog: MatDialog, 31 | 32 | ) {} 33 | ngOnInit() { 34 | this.egretThemes = this.themeService.egretThemes; 35 | } 36 | openSigninDialog() { 37 | this.SigninDialogRef = this.dialog.open(SigninComponent); 38 | } 39 | setLang() { 40 | this.onLangChange.emit(this.currentLang); 41 | } 42 | changeTheme(theme) { 43 | this.themeService.changeTheme(theme); 44 | } 45 | toggleNotific() { 46 | this.notificPanel.toggle(); 47 | } 48 | toggleSidenav() { 49 | this.sidenav.toggle(); 50 | } 51 | toggleCollapse() { 52 | let appBody = document.body; 53 | domHelper.toggleClass(appBody, 'collapsed-menu'); 54 | domHelper.removeClass(document.getElementsByClassName('has-submenu'), 'open'); 55 | // Fix for sidebar 56 | if(!domHelper.hasClass(appBody, 'collapsed-menu')) { 57 | (document.querySelector('mat-sidenav-content')).style.marginLeft = '240px' 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/components/common/topbar/topbar.template.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | I.E.S Politécnico Jesús Marín 5 | 6 | 7 | 8 | 12 | 13 | 14 | 15 |
16 |
17 | check 18 |
19 |
20 |
21 |
22 | 23 |
24 | 25 | 26 | 27 | 30 |
31 | 32 | 44 | 45 | 46 | 50 | 54 | 58 | 62 | 63 |
-------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/directives/common/app-accordion.directive.ts: -------------------------------------------------------------------------------- 1 | import { Directive, ElementRef, Input, Output, HostBinding, HostListener, EventEmitter, OnInit } from '@angular/core'; 2 | import { Router, NavigationEnd, ActivatedRoute, ActivatedRouteSnapshot } from '@angular/router'; 3 | import * as domHelper from '../../helpers/dom.helper'; 4 | 5 | @Directive({ selector: '[appAccordion]' }) 6 | export class AppAccordionDirective implements OnInit { 7 | parentLi; 8 | 9 | constructor(private el: ElementRef) { } 10 | ngOnInit() { 11 | setTimeout(() => { 12 | this.el.nativeElement.className += 'accordion-handle' 13 | if (domHelper.hasClass(this.el.nativeElement, 'app-accordion')) { 14 | this.parentLi = this.el.nativeElement; 15 | } else { 16 | this.parentLi = domHelper.findClosest(this.el.nativeElement, 'app-accordion'); 17 | } 18 | }) 19 | } 20 | 21 | @HostListener('click', ['$event']) 22 | onClick($event) { 23 | this.toggleOpen(); 24 | } 25 | 26 | private toggleOpen() { 27 | var accordionItems = document.getElementsByClassName('app-accordion'); 28 | if (domHelper.hasClass(this.parentLi, 'open')) { 29 | domHelper.removeClass(accordionItems, 'open'); 30 | } else { 31 | domHelper.removeClass(accordionItems, 'open'); 32 | domHelper.addClass(this.parentLi, 'open'); 33 | } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/directives/common/common-directives.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | 4 | import { EqualValidatorDirective } from './equal-validator.directive'; 5 | import { SideNavAccordionDirective } from './sidenav-accordion.directive'; 6 | import { AppAccordionDirective } from './app-accordion.directive'; 7 | import { FontSizeDirective } from './font-size.directive'; 8 | /* import { ScrollToDirective } from './scroll-to.directive'; */ 9 | 10 | @NgModule({ 11 | imports: [ 12 | CommonModule 13 | ], 14 | declarations: [ 15 | EqualValidatorDirective, 16 | SideNavAccordionDirective, 17 | AppAccordionDirective, 18 | FontSizeDirective, 19 | /* ScrollToDirective */ 20 | ], 21 | exports: [ 22 | EqualValidatorDirective, 23 | SideNavAccordionDirective, 24 | AppAccordionDirective, 25 | FontSizeDirective, 26 | /* ScrollToDirective */ 27 | ] 28 | }) 29 | export class CommonDirectivesModule { } 30 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/directives/common/equal-validator.directive.ts: -------------------------------------------------------------------------------- 1 | import { Directive, forwardRef, Attribute } from '@angular/core'; 2 | import { Validator, AbstractControl, NG_VALIDATORS } from '@angular/forms'; 3 | 4 | @Directive({ 5 | selector: '[appEqualValidator][ngModel]', 6 | providers: [ 7 | { provide: NG_VALIDATORS, useExisting: EqualValidatorDirective, multi: true } 8 | ] 9 | }) 10 | export class EqualValidatorDirective implements Validator { 11 | 12 | constructor( @Attribute('appEqualValidator') public validateEqual: string, 13 | @Attribute('reverse') public reverse: string) { } 14 | 15 | private get isReverse() { 16 | if (!this.reverse) return false; 17 | return this.reverse === 'true' ? true : false; 18 | } 19 | 20 | validate(currentControl: AbstractControl): { [key: string]: any } { 21 | // self value 22 | let currentControlValue = currentControl.value; 23 | 24 | // control vlaue 25 | let anotherControl = currentControl.root.get(this.validateEqual); 26 | let anotherControlValue = anotherControl ? anotherControl.value : null; 27 | 28 | // value not equal 29 | if (anotherControl && currentControlValue !== anotherControlValue && !this.isReverse) { 30 | return { 31 | validateEqual: true 32 | } 33 | } 34 | 35 | // value equal and reverse 36 | if (anotherControl && currentControlValue === anotherControlValue && this.isReverse) { 37 | delete anotherControl.errors['validateEqual']; 38 | if (!Object.keys(anotherControl.errors).length) anotherControl.setErrors(null); 39 | } 40 | 41 | // value not equal and reverse 42 | if (anotherControl && currentControlValue !== anotherControlValue && this.isReverse) { 43 | anotherControl.setErrors({ validateEqual: true }); 44 | } 45 | 46 | return null; 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/directives/common/font-size.directive.ts: -------------------------------------------------------------------------------- 1 | import { Directive, ElementRef, Attribute, OnInit } from '@angular/core'; 2 | 3 | @Directive({ selector: '[fontSize]' }) 4 | export class FontSizeDirective implements OnInit { 5 | constructor( @Attribute('fontSize') public fontSize: string, private el: ElementRef) { } 6 | ngOnInit() { 7 | this.el.nativeElement.fontSize = this.fontSize; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/directives/common/scroll-to.directive.ts: -------------------------------------------------------------------------------- 1 | import { Directive, ElementRef, Attribute, OnInit, HostListener } from '@angular/core'; 2 | 3 | @Directive({ selector: '[scrollTo]' }) 4 | export class ScrollToDirective implements OnInit { 5 | constructor( @Attribute('scrollTo') public elmID: string, private el: ElementRef) { } 6 | 7 | ngOnInit() {} 8 | 9 | currentYPosition() { 10 | // Firefox, Chrome, Opera, Safari 11 | if (self.pageYOffset) return self.pageYOffset; 12 | // Internet Explorer 6 - standards mode 13 | if (document.documentElement && document.documentElement.scrollTop) 14 | return document.documentElement.scrollTop; 15 | // Internet Explorer 6, 7 and 8 16 | if (document.body.scrollTop) return document.body.scrollTop; 17 | return 0; 18 | }; 19 | 20 | elmYPosition(eID) { 21 | var elm = document.getElementById(eID); 22 | var y = elm.offsetTop; 23 | var node: any = elm; 24 | while (node.offsetParent && node.offsetParent != document.body) { 25 | node = node.offsetParent; 26 | y += node.offsetTop; 27 | } 28 | return y; 29 | }; 30 | 31 | @HostListener('click', ['$event']) 32 | smoothScroll() { 33 | if(!this.elmID) 34 | return; 35 | var startY = this.currentYPosition(); 36 | var stopY = this.elmYPosition(this.elmID); 37 | var distance = stopY > startY ? stopY - startY : startY - stopY; 38 | if (distance < 100) { 39 | scrollTo(0, stopY); 40 | return; 41 | } 42 | var speed = Math.round(distance / 50); 43 | if (speed >= 20) speed = 20; 44 | var step = Math.round(distance / 25); 45 | var leapY = stopY > startY ? startY + step : startY - step; 46 | var timer = 0; 47 | if (stopY > startY) { 48 | for (var i = startY; i < stopY; i += step) { 49 | setTimeout("window.scrollTo(0, " + leapY + ")", timer * speed); 50 | leapY += step; 51 | if (leapY > stopY) leapY = stopY; 52 | timer++; 53 | } 54 | return; 55 | } 56 | for (var i = startY; i > stopY; i -= step) { 57 | setTimeout("window.scrollTo(0, " + leapY + ")", timer * speed); 58 | leapY -= step; 59 | if (leapY < stopY) leapY = stopY; 60 | timer++; 61 | } 62 | return false; 63 | }; 64 | } -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/directives/common/sidenav-accordion.directive.ts: -------------------------------------------------------------------------------- 1 | import { Directive, ElementRef, Input, Output, HostBinding, HostListener, EventEmitter, OnInit } from '@angular/core'; 2 | import { Router, NavigationEnd } from '@angular/router'; 3 | import * as domHelper from '../../helpers/dom.helper'; 4 | 5 | @Directive({ selector: '[sideNavAccordion]' }) 6 | export class SideNavAccordionDirective implements OnInit { 7 | constructor(private el: ElementRef) { 8 | } 9 | ngOnInit() { 10 | let self = this; 11 | var subMenu = this.el.nativeElement.querySelector('.mat-list-item-content > mat-nav-list'); 12 | let isCollapsed = domHelper.hasClass(document.body, 'collapsed-menu'); 13 | if (!!subMenu) 14 | this.el.nativeElement.className += ' has-submenu'; 15 | 16 | // remove open class that is added my router 17 | if (isCollapsed) { 18 | setTimeout(() => { 19 | domHelper.removeClass(self.el.nativeElement, 'open'); 20 | }) 21 | } 22 | } 23 | 24 | @HostListener('click', ['$event']) 25 | onClick($event) { 26 | var parentLi = domHelper.findClosest($event.target, 'mat-list-item'); 27 | if (!domHelper.hasClass(parentLi, 'has-submenu')) { 28 | // PREVENTS CLOSING PARENT ITEM 29 | return; 30 | }; 31 | this.toggleOpen(); 32 | } 33 | 34 | // For collapsed sidebar 35 | @HostListener('mouseenter', ['$event']) 36 | onMouseEnter($event) { 37 | let elem = this.el.nativeElement; 38 | let isCollapsed = domHelper.hasClass(document.body, 'collapsed-menu'); 39 | if (!isCollapsed) 40 | return; 41 | domHelper.addClass(elem, 'open'); 42 | } 43 | @HostListener('mouseleave', ['$event']) 44 | onMouseLeave($event) { 45 | let elem = this.el.nativeElement; 46 | let isCollapsed = domHelper.hasClass(document.body, 'collapsed-menu'); 47 | if (!isCollapsed) 48 | return; 49 | domHelper.removeClass(elem, 'open'); 50 | } 51 | 52 | private toggleOpen() { 53 | var elem = this.el.nativeElement; 54 | var parenMenuItems = document.getElementsByClassName('has-submenu'); 55 | 56 | if (domHelper.hasClass(elem, 'open')) { 57 | domHelper.removeClass(parenMenuItems, 'open'); 58 | 59 | } else { 60 | domHelper.removeClass(parenMenuItems, 'open'); 61 | domHelper.addClass(elem, 'open'); 62 | } 63 | } 64 | 65 | } 66 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/helpers/dom.helper.ts: -------------------------------------------------------------------------------- 1 | export function removeClass(el, className) { 2 | if (!el || el.length === 0) 3 | return; 4 | if (!el.length) { 5 | el.classList.remove(className); 6 | } else { 7 | for (var i = 0; i < el.length; i++) { 8 | el[i].classList.remove(className) 9 | } 10 | } 11 | } 12 | export function addClass(el, className) { 13 | if (!el) 14 | return; 15 | if (!el.length) { 16 | el.classList.add(className); 17 | } else { 18 | for (var i = 0; i < el.length; i++) { 19 | el[i].classList.add(className); 20 | } 21 | } 22 | } 23 | export function findClosest(el, className) { 24 | if (!el) 25 | return; 26 | while (el) { 27 | var parent = el.parentElement; 28 | if (parent && hasClass(parent, className)) { 29 | return parent; 30 | } 31 | el = parent; 32 | } 33 | } 34 | export function hasClass(el, className) { 35 | if (!el) 36 | return; 37 | return (` ${el.className} `).replace(/[\n\t]/g, ' ').indexOf(` ${className} `) > -1; 38 | } 39 | export function toggleClass(el, className) { 40 | if (!el) 41 | return; 42 | if (hasClass(el, className)) { 43 | removeClass(el, className); 44 | } else { 45 | addClass(el, className); 46 | } 47 | } 48 | export function changeTheme(themes: any[], themeName: string) { 49 | themes.forEach((theme) => { 50 | removeClass(document.body, theme.name); 51 | }); 52 | addClass(document.body, themeName); 53 | }; 54 | export function ieChatjsFix() { 55 | if(window.hasOwnProperty('MSInputMethodContext') || document.hasOwnProperty('documentMode')) { 56 | document.body.style.width = '99.9%'; 57 | setTimeout(() => { 58 | document.body.style.width = '100%'; 59 | }) 60 | } 61 | } -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/pipes/common/common-pipes.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { RelativeTimePipe } from './relative-time.pipe'; 3 | import { ExcerptPipe } from "./excerpt.pipe"; 4 | @NgModule({ 5 | declarations: [ 6 | RelativeTimePipe, 7 | ExcerptPipe 8 | ], 9 | exports: [ 10 | RelativeTimePipe, 11 | ExcerptPipe 12 | ] 13 | }) 14 | export class CommonPipesModule { } -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/pipes/common/excerpt.pipe.ts: -------------------------------------------------------------------------------- 1 | import { Pipe, PipeTransform } from "@angular/core"; 2 | 3 | @Pipe({ name: 'excerpt' }) 4 | export class ExcerptPipe implements PipeTransform { 5 | transform(text: string, limit: number = 5) { 6 | if(text.length <= limit) 7 | return text; 8 | return text.substring(0, limit) + '...'; 9 | } 10 | } -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/pipes/common/relative-time.pipe.ts: -------------------------------------------------------------------------------- 1 | import { Pipe, PipeTransform } from "@angular/core"; 2 | 3 | @Pipe({ name: 'relativeTime' }) 4 | export class RelativeTimePipe implements PipeTransform { 5 | transform(value: Date) { 6 | if(!(value instanceof Date)) 7 | value = new Date(value); 8 | 9 | let seconds: number = Math.floor(((new Date()).getTime() - value.getTime()) / 1000); 10 | let interval: number = Math.floor(seconds / 31536000); 11 | 12 | if (interval > 1) { 13 | return interval + " years ago"; 14 | } 15 | interval = Math.floor(seconds / 2592000); 16 | if (interval > 1) { 17 | return interval + " months ago"; 18 | } 19 | interval = Math.floor(seconds / 86400); 20 | if (interval > 1) { 21 | return interval + " days ago"; 22 | } 23 | interval = Math.floor(seconds / 3600); 24 | if (interval > 1) { 25 | return interval + " hours ago"; 26 | } 27 | interval = Math.floor(seconds / 60); 28 | if (interval > 1) { 29 | return interval + " minutes ago"; 30 | } 31 | return Math.floor(seconds) + " seconds ago"; 32 | } 33 | } -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/services/app-confirm/app-confirm.component.ts: -------------------------------------------------------------------------------- 1 | import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material'; 2 | import { Component, Inject } from '@angular/core'; 3 | 4 | @Component({ 5 | selector: 'app-confirm', 6 | template: `

{{ data.title }}

7 |
{{ data.message }}
8 |
9 | 14 |   15 | 16 | 21 |
`, 22 | }) 23 | export class AppComfirmComponent { 24 | constructor( 25 | public dialogRef: MatDialogRef, 26 | @Inject(MAT_DIALOG_DATA) public data:any 27 | ) {} 28 | } -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/services/app-confirm/app-confirm.module.ts: -------------------------------------------------------------------------------- 1 | import { AppConfirmService } from './app-confirm.service'; 2 | import { 3 | MatDialogModule, 4 | MatButtonModule 5 | } from '@angular/material'; 6 | import { NgModule } from '@angular/core'; 7 | import { FlexLayoutModule } from '@angular/flex-layout'; 8 | 9 | import { AppComfirmComponent } from './app-confirm.component'; 10 | 11 | @NgModule({ 12 | imports: [ 13 | MatDialogModule, 14 | MatButtonModule, 15 | FlexLayoutModule 16 | ], 17 | exports: [AppComfirmComponent], 18 | declarations: [AppComfirmComponent], 19 | providers: [AppConfirmService], 20 | entryComponents: [AppComfirmComponent] 21 | }) 22 | export class AppConfirmModule { } -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/services/app-confirm/app-confirm.service.ts: -------------------------------------------------------------------------------- 1 | import { Observable } from 'rxjs/Observable'; 2 | import { MatDialogRef, MatDialog, MatDialogConfig } from '@angular/material'; 3 | import { Injectable } from '@angular/core'; 4 | 5 | import { AppComfirmComponent } from './app-confirm.component'; 6 | 7 | @Injectable() 8 | export class AppConfirmService { 9 | 10 | constructor(private dialog: MatDialog) { } 11 | 12 | public confirm(title: string, message: string): Observable { 13 | let dialogRef: MatDialogRef; 14 | dialogRef = this.dialog.open(AppComfirmComponent, { 15 | width: '380px', 16 | disableClose: true, 17 | data: {title, message} 18 | }); 19 | return dialogRef.afterClosed(); 20 | } 21 | } -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/services/app-loader/app-loader.component.css: -------------------------------------------------------------------------------- 1 | .mat-dialog-content { 2 | min-height: 122px; 3 | } -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/services/app-loader/app-loader.component.html: -------------------------------------------------------------------------------- 1 |
2 |
{{ title }}
3 |
4 | 5 |
6 |
7 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/services/app-loader/app-loader.component.scss: -------------------------------------------------------------------------------- 1 | .mat-dialog-content { 2 | min-height: 122px; 3 | } -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/services/app-loader/app-loader.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { MatDialogRef } from '@angular/material'; 3 | 4 | @Component({ 5 | selector: 'app-app-loader', 6 | templateUrl: './app-loader.component.html', 7 | styleUrls: ['./app-loader.component.css'] 8 | }) 9 | export class AppLoaderComponent implements OnInit { 10 | title; 11 | message; 12 | constructor(public dialogRef: MatDialogRef) {} 13 | 14 | ngOnInit() { 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/services/app-loader/app-loader.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { 4 | MatDialogModule, 5 | MatProgressSpinnerModule 6 | } from '@angular/material'; 7 | 8 | import { AppLoaderService } from './app-loader.service'; 9 | import { AppLoaderComponent } from './app-loader.component'; 10 | 11 | @NgModule({ 12 | imports: [ 13 | CommonModule, 14 | MatDialogModule, 15 | MatProgressSpinnerModule 16 | ], 17 | providers: [AppLoaderService], 18 | declarations: [AppLoaderComponent], 19 | entryComponents: [AppLoaderComponent] 20 | }) 21 | export class AppLoaderModule { } 22 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/services/app-loader/app-loader.service.ts: -------------------------------------------------------------------------------- 1 | import { Injectable } from '@angular/core'; 2 | import { MatDialog, MatDialogRef } from '@angular/material'; 3 | import { Observable } from 'rxjs/Observable'; 4 | import { AppLoaderComponent } from './app-loader.component'; 5 | 6 | @Injectable() 7 | export class AppLoaderService { 8 | dialogRef: MatDialogRef; 9 | constructor(private dialog: MatDialog) { } 10 | 11 | public open(title: string = 'Please wait'): Observable { 12 | this.dialogRef = this.dialog.open(AppLoaderComponent, {disableClose: true}); 13 | this.dialogRef.updateSize('200px'); 14 | this.dialogRef.componentInstance.title = title; 15 | return this.dialogRef.afterClosed(); 16 | } 17 | 18 | public close() { 19 | this.dialogRef.close(); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/services/auth/auth.guard.ts: -------------------------------------------------------------------------------- 1 | import { Injectable } from '@angular/core'; 2 | import { CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, Router } from '@angular/router'; 3 | 4 | @Injectable() 5 | export class AuthGuard implements CanActivate { 6 | public authToken; 7 | public isAuthenticated = false; // Set this value dynamically 8 | 9 | constructor(private router: Router) {} 10 | canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) { 11 | if (this.isAuthenticated) { 12 | return true; 13 | } 14 | //this.router.navigate(['/sessions/signin']); 15 | return false; 16 | } 17 | } -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/services/navigation/navigation.service.ts: -------------------------------------------------------------------------------- 1 | import { Injectable } from '@angular/core'; 2 | import { BehaviorSubject } from 'rxjs/BehaviorSubject'; 3 | 4 | interface IMenuItem { 5 | type: string, // Possible values: link/dropDown/icon/separator/extLink 6 | name?: string, // Used as display text for item and title for separator type 7 | state?: string, // Router state 8 | icon?: string, // Item icon name 9 | tooltip?: string, // Tooltip text 10 | disabled?: boolean, // If true, item will not be appeared in sidenav. 11 | sub?: IChildItem[] // Dropdown items 12 | } 13 | interface IChildItem { 14 | name: string, // Display text 15 | state: string // Router state 16 | } 17 | 18 | @Injectable() 19 | export class NavigationService { 20 | constructor() {} 21 | 22 | defaultMenu:IMenuItem[] = [ 23 | { 24 | name: 'DASHBOARD', 25 | type: 'link', 26 | tooltip: 'Dashboard', 27 | icon: 'dashboard', 28 | state: 'dashboard' 29 | } 30 | ] 31 | 32 | // Icon menu TITLE at the very top of navigation. 33 | // This title will appear if any icon type item is present in menu. 34 | iconTypeMenuTitle:string = 'Frequently Accessed'; 35 | // sets iconMenu as default; 36 | menuItems = new BehaviorSubject(this.defaultMenu); 37 | // navigation component has subscribed to this Observable 38 | menuItems$ = this.menuItems.asObservable(); 39 | } -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/services/route-parts/route-parts.service.ts: -------------------------------------------------------------------------------- 1 | import { Injectable } from '@angular/core'; 2 | import { Router, ActivatedRoute, NavigationEnd, ActivatedRouteSnapshot, Params, PRIMARY_OUTLET } from "@angular/router"; 3 | 4 | interface IRoutePart { 5 | title: string, 6 | breadcrumb: string, 7 | params?: Params, 8 | url: string, 9 | urlSegments: any[] 10 | } 11 | 12 | @Injectable() 13 | export class RoutePartsService { 14 | public routeParts: IRoutePart[]; 15 | constructor(private router: Router) {} 16 | 17 | ngOnInit() { 18 | } 19 | generateRouteParts(snapshot: ActivatedRouteSnapshot): IRoutePart[] { 20 | var routeParts = []; 21 | if (snapshot) { 22 | if (snapshot.firstChild) { 23 | routeParts = routeParts.concat(this.generateRouteParts(snapshot.firstChild)); 24 | } 25 | if (snapshot.data['title'] && snapshot.url.length) { 26 | // console.log(snapshot.data['title'], snapshot.url) 27 | routeParts.push({ 28 | title: snapshot.data['title'], 29 | breadcrumb: snapshot.data['breadcrumb'], 30 | url: snapshot.url[0].path, 31 | urlSegments: snapshot.url, 32 | params: snapshot.params 33 | }); 34 | } 35 | } 36 | return routeParts; 37 | } 38 | } -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/services/theme/theme.service.ts: -------------------------------------------------------------------------------- 1 | import { Injectable } from '@angular/core'; 2 | import * as domHelper from '../../helpers/dom.helper'; 3 | @Injectable() 4 | export class ThemeService { 5 | egretThemes = [{ 6 | name: 'egret-dark-purple', 7 | baseColor: '#9c27b0', 8 | isActive: false 9 | }, { 10 | name: 'egret-dark-pink', 11 | baseColor: '#e91e63', 12 | isActive: false 13 | }, { 14 | name: 'egret-blue', 15 | baseColor: '#247ba0', 16 | isActive: false 17 | }, { 18 | name: 'egret-indigo', 19 | baseColor: '#3f51b5', 20 | isActive: true 21 | }]; 22 | activatedThemeName: String; 23 | constructor() { 24 | this.changeTheme({name: 'egret-indigo'}); 25 | } 26 | changeTheme(theme) { 27 | domHelper.changeTheme(this.egretThemes, theme.name); 28 | this.egretThemes.forEach((t) => { 29 | t.isActive = false; 30 | if(t.name === theme.name) { 31 | t.isActive = true; 32 | this.activatedThemeName = theme.name; 33 | } 34 | }); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/styles/07-webcomponents/_footer.css: -------------------------------------------------------------------------------- 1 | .c-footer { 2 | background: #3f51b5; 3 | text-align: center; 4 | color: #fff; 5 | position:fixed; 6 | bottom:0; 7 | width:100%; 8 | } 9 | 10 | .c-footer .fab{ 11 | font-size: 40px; 12 | } 13 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/styles/07-webcomponents/_header.css: -------------------------------------------------------------------------------- 1 | 2 | /* .c-header #home-header > .container { 3 | height: 150px; 4 | } */ 5 | .c-header .logo { 6 | width: 60px ; 7 | margin-right: 15px; 8 | } 9 | /* .c-header.mat-toolbar-row, .c-header.mat-toolbar-single-row{ 10 | height: 150px; 11 | } 12 | */ 13 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/styles/07-webcomponents/_home-buttons.css: -------------------------------------------------------------------------------- 1 | .c-home-buttons{ 2 | height: 400px; 3 | overflow-y: scroll; 4 | } 5 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/styles/07-webcomponents/_news.css: -------------------------------------------------------------------------------- 1 | .c-news .new .message { 2 | white-space: normal !important; 3 | } 4 | 5 | .c-news .new { 6 | padding: 15px 0px; 7 | height: auto; 8 | } 9 | .c-news{ 10 | height: 400px; 11 | overflow-y: scroll; 12 | } 13 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/styles/app.css: -------------------------------------------------------------------------------- 1 | /* web componentes */ 2 | 3 | @import "07-webcomponents/_news.css"; 4 | @import "07-webcomponents/_header.css"; 5 | @import "07-webcomponents/_home-buttons.css"; 6 | @import "07-webcomponents/_footer.css"; 7 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/others/app-blank/app-blank.component.css: -------------------------------------------------------------------------------- 1 | mat-card{ 2 | box-sizing: border-box; 3 | } 4 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/others/app-blank/app-blank.component.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 |
5 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/others/app-blank/app-blank.component.scss: -------------------------------------------------------------------------------- 1 | .mat-grid-list { 2 | margin: 15px; 3 | } 4 | 5 | .mat-card { 6 | margin: 15px; 7 | padding: 15px; 8 | width: 100%; 9 | border-radius: 10px; 10 | /* overflow-y: scroll; */ 11 | } 12 | 13 | .mat-card>:first-child { 14 | margin-top: 15px; 15 | } 16 | 17 | .mat-card>:last-child { 18 | margin-bottom: 15px; 19 | } 20 | 21 | .mat-grid-tile { 22 | overflow: visible; 23 | } 24 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/others/app-blank/app-blank.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-blank', 5 | templateUrl: './app-blank.component.html', 6 | styleUrls: ['./app-blank.component.css'] 7 | }) 8 | export class AppBlankComponent implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/others/app-blank/home-buttons/home-buttons.component.css: -------------------------------------------------------------------------------- 1 | mat-card{ 2 | height: 350px; 3 | } 4 | .img-center{ 5 | margin:0%; 6 | } -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/others/app-blank/home-buttons/home-buttons.component.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 |
20 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/others/app-blank/home-buttons/home-buttons.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'home-buttons', 5 | templateUrl: './home-buttons.component.html', 6 | styleUrls: ['../app-blank.component.css'] 7 | }) 8 | export class HomeButtonsComponent implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/others/app-blank/news/news.component.css: -------------------------------------------------------------------------------- 1 | .c-news .new h4{ 2 | white-space: normal; 3 | padding: 15px 0px; 4 | height: auto; 5 | } 6 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/others/app-blank/news/news.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Noticias

4 | 5 |

6 |
7 | Lorem ipsum dolor sit amet consectetur adipisicing elit. Natus deleniti in facere inventore at eveniet saepe, dolorem odit consectetur reiciendis. 8 |
9 |

10 |
11 | 12 | 13 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Natus deleniti in facere inventore at eveniet saepe, dolorem odit consectetur reiciendis.

14 |
15 | 16 | 17 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Natus deleniti in facere inventore at eveniet saepe, dolorem odit consectetur reiciendis.

18 |
19 | 20 | 21 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Natus deleniti in facere inventore at eveniet saepe, dolorem odit consectetur reiciendis.

22 |
23 | 24 | 25 |

Lorem ipsum dolor sit amet consectetur adipisicing elit. Natus deleniti in facere inventore at eveniet saepe, dolorem odit consectetur reiciendis.

26 |
27 |
28 |
29 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/others/app-blank/news/news.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'news', 5 | templateUrl: './news.component.html', 6 | styleUrls: ['../app-blank.component.css'] 7 | }) 8 | export class NewsComponent implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/others/others.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { RouterModule } from '@angular/router'; 3 | import { CommonModule } from '@angular/common'; 4 | import { FormsModule } from '@angular/forms'; 5 | import { 6 | MatListModule, 7 | MatIconModule, 8 | MatButtonModule, 9 | MatCardModule, 10 | MatMenuModule, 11 | MatSlideToggleModule, 12 | MatGridListModule, 13 | MatChipsModule, 14 | MatCheckboxModule, 15 | MatRadioModule, 16 | MatTabsModule, 17 | MatInputModule, 18 | MatProgressBarModule 19 | } from '@angular/material'; 20 | import { FlexLayoutModule } from '@angular/flex-layout'; 21 | import { NgxDatatableModule } from '@swimlane/ngx-datatable'; 22 | import { ChartsModule } from 'ng2-charts/ng2-charts'; 23 | import { FileUploadModule } from 'ng2-file-upload/ng2-file-upload'; 24 | import { CommonPipesModule } from '../../pipes/common/common-pipes.module'; 25 | 26 | import { AppBlankComponent } from './app-blank/app-blank.component'; 27 | import { HomeButtonsComponent } from './app-blank/home-buttons/home-buttons.component'; 28 | import { NewsComponent } from './app-blank/news/news.component'; 29 | import { OthersRoutes } from './others.routing'; 30 | 31 | @NgModule({ 32 | imports: [ 33 | CommonModule, 34 | FormsModule, 35 | MatListModule, 36 | MatIconModule, 37 | MatButtonModule, 38 | MatCardModule, 39 | MatMenuModule, 40 | MatSlideToggleModule, 41 | MatGridListModule, 42 | MatChipsModule, 43 | MatCheckboxModule, 44 | MatRadioModule, 45 | MatTabsModule, 46 | MatInputModule, 47 | MatProgressBarModule, 48 | FlexLayoutModule, 49 | NgxDatatableModule, 50 | ChartsModule, 51 | FileUploadModule, 52 | CommonPipesModule, 53 | RouterModule.forChild(OthersRoutes) 54 | ], 55 | declarations: [ 56 | AppBlankComponent, 57 | HomeButtonsComponent, 58 | NewsComponent 59 | ] 60 | }) 61 | export class OthersModule { } 62 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/others/others.routing.ts: -------------------------------------------------------------------------------- 1 | import { Routes } from '@angular/router'; 2 | 3 | import { AppBlankComponent } from './app-blank/app-blank.component'; 4 | 5 | export const OthersRoutes: Routes = [ 6 | { 7 | path: '', 8 | component: AppBlankComponent 9 | } 10 | ]; -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/error/error.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/error/error.component.css -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/error/error.component.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 | warning 5 |
6 |

500

7 |
Server Error!
8 |
9 |
10 | 11 |
12 | 17 | 20 |
21 |
22 |
23 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/error/error.component.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/error/error.component.scss -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/error/error.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-error', 5 | templateUrl: './error.component.html', 6 | styleUrls: ['./error.component.css'] 7 | }) 8 | export class ErrorComponent implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/forgot-password/forgot-password.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/forgot-password/forgot-password.component.css -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/forgot-password/forgot-password.component.html: -------------------------------------------------------------------------------- 1 |
2 |
3 | 4 | 5 | 6 |
7 | 8 |

New password will be sent to your email address

9 |
10 |
11 | 12 |
13 | 14 | 22 | 23 | Email is required 26 |
27 | 28 | 29 |
30 | Sign in 31 | 32 | Create a new account 33 |
34 |
35 |
36 |
37 |
38 |
39 | 40 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/forgot-password/forgot-password.component.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/forgot-password/forgot-password.component.scss -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/forgot-password/forgot-password.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit, ViewChild } from '@angular/core'; 2 | import { MatProgressBar, MatButton } from '@angular/material'; 3 | @Component({ 4 | selector: 'app-forgot-password', 5 | templateUrl: './forgot-password.component.html', 6 | styleUrls: ['./forgot-password.component.css'] 7 | }) 8 | export class ForgotPasswordComponent implements OnInit { 9 | userEmail; 10 | @ViewChild(MatProgressBar) progressBar: MatProgressBar; 11 | @ViewChild(MatButton) submitButton: MatButton; 12 | constructor() { } 13 | 14 | ngOnInit() { 15 | } 16 | submitEmail() { 17 | this.submitButton.disabled = true; 18 | this.progressBar.mode = 'indeterminate'; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/lockscreen/lockscreen.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/lockscreen/lockscreen.component.css -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/lockscreen/lockscreen.component.html: -------------------------------------------------------------------------------- 1 |
2 |
3 | 4 | 5 | 6 |
7 |
8 | 9 |
John Doe
10 | Last seen 1 hour ago 11 |
12 |
13 |
14 | 15 | 23 | 24 | Password is required 27 |
28 | 29 | 30 | 31 |
32 |
33 |
34 |
35 |
36 |
37 | 38 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/lockscreen/lockscreen.component.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/lockscreen/lockscreen.component.scss -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/lockscreen/lockscreen.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit, ViewChild } from '@angular/core'; 2 | import { MatProgressBar, MatButton } from '@angular/material'; 3 | 4 | @Component({ 5 | selector: 'app-lockscreen', 6 | templateUrl: './lockscreen.component.html', 7 | styleUrls: ['./lockscreen.component.css'] 8 | }) 9 | export class LockscreenComponent implements OnInit { 10 | @ViewChild(MatProgressBar) progressBar: MatProgressBar; 11 | @ViewChild(MatButton) submitButton: MatButton; 12 | 13 | lockscreenData = { 14 | password: '' 15 | } 16 | 17 | constructor() { } 18 | 19 | ngOnInit() { 20 | } 21 | 22 | unlock() { 23 | console.log(this.lockscreenData); 24 | 25 | this.submitButton.disabled = true; 26 | this.progressBar.mode = 'indeterminate'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/not-found/not-found.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/not-found/not-found.component.css -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/not-found/not-found.component.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 | error 5 |
6 |

404

7 |
Page Not Found!
8 |
9 |
10 | 11 |
12 | 17 | 20 |
21 |
22 |
23 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/not-found/not-found.component.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/not-found/not-found.component.scss -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/not-found/not-found.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-not-found', 5 | templateUrl: './not-found.component.html', 6 | styleUrls: ['./not-found.component.css'] 7 | }) 8 | export class NotFoundComponent implements OnInit { 9 | 10 | constructor() { } 11 | 12 | ngOnInit() { 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/sessions.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { FormsModule, ReactiveFormsModule } from '@angular/forms'; 4 | import { RouterModule } from "@angular/router"; 5 | import { 6 | MatProgressBarModule, 7 | MatButtonModule, 8 | MatInputModule, 9 | MatCardModule, 10 | MatCheckboxModule, 11 | MatIconModule, 12 | } from '@angular/material'; 13 | import { FlexLayoutModule } from '@angular/flex-layout'; 14 | 15 | import { CommonDirectivesModule } from '../../directives/common/common-directives.module'; 16 | import { ForgotPasswordComponent } from './forgot-password/forgot-password.component'; 17 | import { LockscreenComponent } from './lockscreen/lockscreen.component'; 18 | import { SessionsRoutes } from "./sessions.routing"; 19 | import { NotFoundComponent } from './not-found/not-found.component'; 20 | import { ErrorComponent } from './error/error.component'; 21 | 22 | @NgModule({ 23 | imports: [ 24 | CommonModule, 25 | FormsModule, 26 | ReactiveFormsModule, 27 | MatProgressBarModule, 28 | MatButtonModule, 29 | MatInputModule, 30 | MatCardModule, 31 | MatCheckboxModule, 32 | MatIconModule, 33 | FlexLayoutModule, 34 | RouterModule.forChild(SessionsRoutes) 35 | ], 36 | declarations: [ForgotPasswordComponent, LockscreenComponent, NotFoundComponent, ErrorComponent] 37 | }) 38 | export class SessionsModule { } 39 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/sessions.routing.ts: -------------------------------------------------------------------------------- 1 | import { Routes } from '@angular/router'; 2 | 3 | import { ForgotPasswordComponent } from './forgot-password/forgot-password.component'; 4 | import { LockscreenComponent } from './lockscreen/lockscreen.component'; 5 | import { SigninComponent } from './signin/signin.component'; 6 | import { SignupComponent } from './signup/signup.component'; 7 | import { NotFoundComponent } from './not-found/not-found.component'; 8 | import { ErrorComponent } from './error/error.component'; 9 | 10 | export const SessionsRoutes: Routes = [ 11 | { 12 | path: '', 13 | children: [{ 14 | path: 'signup', 15 | component: SignupComponent, 16 | data: { title: 'Signup' } 17 | }, { 18 | path: 'signin', 19 | component: SigninComponent, 20 | data: { title: 'Signin' } 21 | }, { 22 | path: 'forgot-password', 23 | component: ForgotPasswordComponent, 24 | data: { title: 'Forgot password' } 25 | }, { 26 | path: 'lockscreen', 27 | component: LockscreenComponent, 28 | data: { title: 'Lockscreen' } 29 | }, { 30 | path: '404', 31 | component: NotFoundComponent, 32 | data: { title: 'Not Found' } 33 | }, { 34 | path: 'error', 35 | component: ErrorComponent, 36 | data: { title: 'Error' } 37 | }] 38 | } 39 | ]; 40 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/signin/signin.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/signin/signin.component.css -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/signin/signin.component.html: -------------------------------------------------------------------------------- 1 |
2 |

Login

3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | Recuperar Contraseña 18 | 19 | 20 | 21 | 22 |
-------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/signin/signin.component.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/signin/signin.component.scss -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/signin/signin.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit, Inject, ViewChild } from '@angular/core'; 2 | import { MatDialogRef, MAT_DIALOG_DATA, MatProgressBar, MatButton } from '@angular/material'; 3 | import { FormGroup, FormBuilder, FormControl } from '@angular/forms'; 4 | 5 | @Component({ 6 | selector: 'app-signin', 7 | templateUrl: './signin.component.html', 8 | styleUrls: ['./signin.component.css'] 9 | }) 10 | export class SigninComponent implements OnInit { 11 | @ViewChild(MatProgressBar) progressBar: MatProgressBar; 12 | @ViewChild(MatButton) submitButton: MatButton; 13 | 14 | form: FormGroup; 15 | 16 | constructor( 17 | private formBuilder: FormBuilder, 18 | private dialogRef: MatDialogRef, 19 | @Inject(MAT_DIALOG_DATA) private data 20 | ) { } 21 | 22 | ngOnInit() { 23 | this.form = this.formBuilder.group({ 24 | email: [''], 25 | password: [''] 26 | }); 27 | } 28 | 29 | signin() { 30 | const signinData = this.form.value 31 | console.log(signinData); 32 | 33 | this.submitButton.disabled = true; 34 | this.progressBar.mode = 'indeterminate'; 35 | } 36 | 37 | close(): void { 38 | this.dialogRef.close(); 39 | } 40 | 41 | } 42 | 43 | 44 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/signup/signup.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/signup/signup.component.css -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/signup/signup.component.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/signup/signup.component.scss -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/app/views/sessions/signup/signup.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit, ViewChild, Inject } from '@angular/core'; 2 | import { MatProgressBar, MatButton } from '@angular/material'; 3 | import { Validators, FormGroup, FormControl, FormBuilder } from '@angular/forms'; 4 | import { CustomValidators } from 'ng2-validation'; 5 | 6 | @Component({ 7 | selector: 'app-signup', 8 | templateUrl: './signup.component.html', 9 | styleUrls: ['./signup.component.css'] 10 | }) 11 | export class SignupComponent implements OnInit { 12 | @ViewChild(MatProgressBar) progressBar: MatProgressBar; 13 | @ViewChild(MatButton) submitButton: MatButton; 14 | 15 | signupForm: FormGroup; 16 | constructor(private formBuilder: FormBuilder, 17 | ) { } 18 | 19 | ngOnInit() { 20 | this.signupForm = this.formBuilder.group({ 21 | email: [''], 22 | password: [''] 23 | }); 24 | } 25 | 26 | signup() { 27 | 28 | this.submitButton.disabled = true; 29 | this.progressBar.mode = 'indeterminate'; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "DASHBOARD": "Dashboard", 3 | "APPS": "Apps", 4 | "INBOX": "Inbox", 5 | "CHAT": "Chat", 6 | "CALENDAR": "Calendar", 7 | "DIALOGS": "Dialogs", 8 | "CONFIRM": "Confirm", 9 | "LOADER": "Loader", 10 | 11 | "MATERIAL": "Material", 12 | "BUTTONS": "Buttons", 13 | "CARDS": "Cards", 14 | "SELECT": "Select", 15 | "AUTOCOMPLETE": "Autocomplete", 16 | "INPUT": "Input", 17 | "CHECKBOX": "Checkbox", 18 | "DATEPICKER": "Datepicker", 19 | "RADIO": "Radio", 20 | "TOOLBAR": "Toolbar", 21 | "LISTS": "Lists", 22 | "GRIDS": "Grids", 23 | "PROGRESS": "Progress", 24 | "TABS": "Tabs", 25 | "SWITCH": "Switch", 26 | "TOOLTIP": "Tooltip", 27 | "MENU": "Menu", 28 | "SLIDER": "Slider", 29 | "SNACKBAR": "Snackbar", 30 | 31 | "FORMS": "Forms", 32 | "EDITOR": "Editor", 33 | "BASIC": "Basic", 34 | "UPLOAD": "Upload", 35 | "WIZARD": "Wizard", 36 | 37 | "TABLES": "Tables", 38 | "TOUR": "Tour", 39 | "FULLSCREEN": "Fullscreen", 40 | "PAGING": "Paging", 41 | "FILTER": "Filter", 42 | 43 | "MAP": "Map", 44 | "CHARTS": "Charts", 45 | "DND": "Drag and Drop", 46 | 47 | "PAGES": "Pages", 48 | "SESSIONS": "Sessions", 49 | "SIGNIN": "Signin", 50 | "SIGNUP": "Signup", 51 | "FORGOT": "Forgot", 52 | "LOCKSCREEN": "Lockscreen", 53 | 54 | "OTHERS": "Others", 55 | "GALLERY": "Gallery", 56 | "PRICINGS": "Pricings", 57 | "USERS": "Users", 58 | "PROFILE": "Profile", 59 | "BLANK": "Blank", 60 | "MATICONS": "Material Icons", 61 | "ADD": "Add", 62 | "ITEM": "Item", 63 | "SUBITEM": "Subitem", 64 | "DOC": "Documentation", 65 | "NOTFOUND": "Not Found", 66 | "ERROR": "Error", 67 | "OVERVIEW": "Overview", 68 | "SETTINGS": "Settings" 69 | } -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/i18n/es.json: -------------------------------------------------------------------------------- 1 | { 2 | "DASHBOARD": "Tablero", 3 | "APPS": "Apps", 4 | "INBOX": "Mensaje", 5 | "CHAT": "Charla", 6 | "CALENDAR": "Calendario", 7 | "DIALOGS": "Diálogo", 8 | "CONFIRM": "Confirmar", 9 | "LOADER": "Loader", 10 | 11 | "MATERIAL": "Material", 12 | "BUTTONS": "Botones", 13 | "CARDS": "Tarjeta", 14 | "SELECT": "Seleccionar", 15 | "AUTOCOMPLETE": "Autocomplete", 16 | "INPUT": "Entrada", 17 | "CHECKBOX": "Checkbox", 18 | "DATEPICKER": "Datepicker", 19 | "RADIO": "Radio", 20 | "TOOLBAR": "Toolbar", 21 | "LISTS": "lista", 22 | "GRIDS": "Grids", 23 | "PROGRESS": "Progreso", 24 | "TABS": "Tabs", 25 | "SWITCH": "Cambio", 26 | "TOOLTIP": "Tooltip", 27 | "MENU": "Menú", 28 | "SLIDER": "Slider", 29 | "SNACKBAR": "Snackbar", 30 | 31 | "FORMS": "Formularios", 32 | "EDITOR": "Editor", 33 | "BASIC": "Sencillo", 34 | "UPLOAD": "Upload", 35 | "WIZARD": "paso a paso", 36 | 37 | "TABLES": "Mesas", 38 | "FULLSCREEN": "Pantalla Completa", 39 | "PAGING": "Paging", 40 | "FILTER": "Filtrar", 41 | 42 | "MAP": "Mapa", 43 | "CHARTS": "Gráfico", 44 | "DND": "Arrastrar y soltar", 45 | 46 | "PAGES": "Página", 47 | "TOUR": "Gira", 48 | "SESSIONS": "Sesiones", 49 | "SIGNIN": "Registrarse", 50 | "SIGNUP": "Regístrate", 51 | "FORGOT": "Forgot", 52 | "LOCKSCREEN": "Lockscreen", 53 | 54 | "OTHERS": "Otros", 55 | "GALLERY": "Gallery", 56 | "PRICINGS": "Pricings", 57 | "USERS": "Users", 58 | "PROFILE": "Perfil", 59 | "BLANK": "Blank", 60 | "MATICONS": "Material Iconos", 61 | "ADD": "Añadir", 62 | "ITEM": "ít.", 63 | "SUBITEM": "Subitem", 64 | "DOC": "Documentación", 65 | "NOTFOUND": "Perdió", 66 | "ERROR": "Error", 67 | "OVERVIEW": "Resumen", 68 | "SETTINGS": "Ajustes" 69 | } -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/cancel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/cancel.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/edit.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/egret-screen.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/egret-screen.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/egret-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/egret-screen.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/face-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/face-1.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/face-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/face-2.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/face-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/face-3.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/face-4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/face-4.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/face-5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/face-5.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/face-6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/face-6.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/face-7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/face-7.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/gr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/gr.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/home-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/home-bg.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/logo-full-200px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/logo-full-200px.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/logo-full-strong.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/logo-full-strong.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/logo-full-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/logo-full-white.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/logo-full.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/logo-full.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/logo-text-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/logo-text-white.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/logo-text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/logo-text.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/logo.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/oc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/oc.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/photo-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/photo-1.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/photo-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/photo-2.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/photo-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/photo-3.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/photo-600_220.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/photo-600_220.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/politecnico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/politecnico.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sidebar-bg-dark.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sidebar-bg-dark.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sidebar-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sidebar-bg.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/social-dribble.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/social-dribble.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/social-facebook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/social-facebook.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/social-linkedin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/social-linkedin.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/social-twitter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/social-twitter.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-1.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-10.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-11.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-12.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-12.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-13.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-13.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-15.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-15.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-16.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-16.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-17.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-17.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-2.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-3.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-4.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-5.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-6.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-7.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-8.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-9.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-face-220.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/sq-face-220.jpg -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/tf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/assets/images/tf.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true, 3 | apiURL: 'productionApi' 4 | }; 5 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/environments/environment.ts: -------------------------------------------------------------------------------- 1 | // The file contents for the current environment will overwrite these during build. 2 | // The build system defaults to the dev environment which uses `environment.ts`, but if you do 3 | // `ng build --env=prod` then `environment.prod.ts` will be used instead. 4 | // The list of which env maps to which file can be found in `.angular-cli.json`. 5 | 6 | export const environment = { 7 | production: false, 8 | apiURL: 'developmentApi' 9 | }; 10 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/polinet-angular/src/favicon.ico -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Polinet 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 3 | 4 | import { AppModule } from './app/app.module'; 5 | import { environment } from './environments/environment'; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic().bootstrapModule(AppModule); 12 | 13 | // import '../node_modules/@angular/material/prebuilt-themes/indigo-pink.css'; 14 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/styles.css: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/test.ts: -------------------------------------------------------------------------------- 1 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files 2 | 3 | import 'zone.js/dist/long-stack-trace-zone'; 4 | import 'zone.js/dist/proxy.js'; 5 | import 'zone.js/dist/sync-test'; 6 | import 'zone.js/dist/jasmine-patch'; 7 | import 'zone.js/dist/async-test'; 8 | import 'zone.js/dist/fake-async-test'; 9 | import { getTestBed } from '@angular/core/testing'; 10 | import { 11 | BrowserDynamicTestingModule, 12 | platformBrowserDynamicTesting 13 | } from '@angular/platform-browser-dynamic/testing'; 14 | 15 | // Unfortunately there's no typing for the `__karma__` variable. Just declare it as any. 16 | declare var __karma__: any; 17 | declare var require: any; 18 | 19 | // Prevent Karma from running prematurely. 20 | __karma__.loaded = function () {}; 21 | 22 | // First, initialize the Angular testing environment. 23 | getTestBed().initTestEnvironment( 24 | BrowserDynamicTestingModule, 25 | platformBrowserDynamicTesting() 26 | ); 27 | // Then we find all the tests. 28 | const context = require.context('./', true, /\.spec\.ts$/); 29 | // And load the modules. 30 | context.keys().map(context); 31 | // Finally, start Karma to run the tests. 32 | __karma__.start(); 33 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "module": "es2015", 6 | "baseUrl": "", 7 | "types": [] 8 | }, 9 | "exclude": [ 10 | "test.ts", 11 | "**/*.spec.ts" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/spec", 5 | "module": "commonjs", 6 | "target": "es5", 7 | "baseUrl": "", 8 | "types": [ 9 | "jasmine", 10 | "node" 11 | ] 12 | }, 13 | "files": [ 14 | "test.ts" 15 | ], 16 | "include": [ 17 | "**/*.spec.ts", 18 | "**/*.d.ts" 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/typings.d.ts: -------------------------------------------------------------------------------- 1 | /* SystemJS module definition */ 2 | declare var module: NodeModule; 3 | interface NodeModule { 4 | id: string; 5 | } 6 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/vendor/pace/pace-green.css: -------------------------------------------------------------------------------- 1 | .pace { 2 | -webkit-pointer-events: none; 3 | pointer-events: none; 4 | 5 | -webkit-user-select: none; 6 | -moz-user-select: none; 7 | user-select: none; 8 | } 9 | 10 | .pace-inactive { 11 | display: none; 12 | } 13 | 14 | .pace .pace-progress { 15 | background: #12b60a; 16 | position: fixed; 17 | z-index: 2000; 18 | top: 0; 19 | right: 100%; 20 | width: 100%; 21 | height: 2px; 22 | } 23 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/src/vendor/pace/pace-theme-min.css: -------------------------------------------------------------------------------- 1 | .pace { 2 | -webkit-pointer-events: none; 3 | pointer-events: none; 4 | 5 | -webkit-user-select: none; 6 | -moz-user-select: none; 7 | user-select: none; 8 | } 9 | 10 | .pace-inactive { 11 | display: none; 12 | } 13 | 14 | .pace .pace-progress { 15 | background: #ffd97d; 16 | position: fixed; 17 | z-index: 2000; 18 | top: 0; 19 | left: 0; 20 | width: 100%; 21 | height: 2px; 22 | } 23 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/polinet-angular/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compileOnSave": false, 3 | "compilerOptions": { 4 | "outDir": "./dist/out-tsc", 5 | "baseUrl": "src", 6 | "sourceMap": true, 7 | "declaration": false, 8 | "moduleResolution": "node", 9 | "emitDecoratorMetadata": true, 10 | "experimentalDecorators": true, 11 | "target": "es5", 12 | "typeRoots": [ 13 | "node_modules/@types" 14 | ], 15 | "lib": [ 16 | "es2016", 17 | "dom" 18 | ] 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/images/prettier.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/images/prettier.gif -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/lib/css/monokai-sublime.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-license.org/ 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background: #23241f; 12 | } 13 | 14 | .hljs, 15 | .hljs-tag, 16 | .hljs-subst { 17 | color: #f8f8f2; 18 | } 19 | 20 | .hljs-strong, 21 | .hljs-emphasis { 22 | color: #a8a8a2; 23 | } 24 | 25 | .hljs-bullet, 26 | .hljs-quote, 27 | .hljs-number, 28 | .hljs-regexp, 29 | .hljs-literal, 30 | .hljs-link { 31 | color: #ae81ff; 32 | } 33 | 34 | .hljs-code, 35 | .hljs-title, 36 | .hljs-section, 37 | .hljs-selector-class { 38 | color: #a6e22e; 39 | } 40 | 41 | .hljs-strong { 42 | font-weight: bold; 43 | } 44 | 45 | .hljs-emphasis { 46 | font-style: italic; 47 | } 48 | 49 | .hljs-keyword, 50 | .hljs-selector-tag, 51 | .hljs-name, 52 | .hljs-attr { 53 | color: #f92672; 54 | } 55 | 56 | .hljs-symbol, 57 | .hljs-attribute { 58 | color: #66d9ef; 59 | } 60 | 61 | .hljs-params, 62 | .hljs-class .hljs-title { 63 | color: #f8f8f2; 64 | } 65 | 66 | .hljs-string, 67 | .hljs-type, 68 | .hljs-built_in, 69 | .hljs-builtin-name, 70 | .hljs-selector-id, 71 | .hljs-selector-attr, 72 | .hljs-selector-pseudo, 73 | .hljs-addition, 74 | .hljs-variable, 75 | .hljs-template-variable { 76 | color: #e6db74; 77 | } 78 | 79 | .hljs-comment, 80 | .hljs-deletion, 81 | .hljs-meta { 82 | color: #75715e; 83 | } 84 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/lib/css/zenburn.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Zenburn style from voldmar.ru (c) Vladimir Epifanov 4 | based on dark.css by Ivan Sagalaev 5 | 6 | */ 7 | 8 | .hljs { 9 | display: block; 10 | overflow-x: auto; 11 | padding: 0.5em; 12 | background: #3f3f3f; 13 | color: #dcdcdc; 14 | } 15 | 16 | .hljs-keyword, 17 | .hljs-selector-tag, 18 | .hljs-tag { 19 | color: #e3ceab; 20 | } 21 | 22 | .hljs-template-tag { 23 | color: #dcdcdc; 24 | } 25 | 26 | .hljs-number { 27 | color: #8cd0d3; 28 | } 29 | 30 | .hljs-variable, 31 | .hljs-template-variable, 32 | .hljs-attribute { 33 | color: #efdcbc; 34 | } 35 | 36 | .hljs-literal { 37 | color: #efefaf; 38 | } 39 | 40 | .hljs-subst { 41 | color: #8f8f8f; 42 | } 43 | 44 | .hljs-title, 45 | .hljs-name, 46 | .hljs-selector-id, 47 | .hljs-selector-class, 48 | .hljs-section, 49 | .hljs-type { 50 | color: #efef8f; 51 | } 52 | 53 | .hljs-symbol, 54 | .hljs-bullet, 55 | .hljs-link { 56 | color: #dca3a3; 57 | } 58 | 59 | .hljs-deletion, 60 | .hljs-string, 61 | .hljs-built_in, 62 | .hljs-builtin-name { 63 | color: #cc9393; 64 | } 65 | 66 | .hljs-addition, 67 | .hljs-comment, 68 | .hljs-quote, 69 | .hljs-meta { 70 | color: #7f9f7f; 71 | } 72 | 73 | 74 | .hljs-emphasis { 75 | font-style: italic; 76 | } 77 | 78 | .hljs-strong { 79 | font-weight: bold; 80 | } 81 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/lib/font/league-gothic/LICENSE: -------------------------------------------------------------------------------- 1 | SIL Open Font License (OFL) 2 | http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL 3 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/lib/font/league-gothic/league-gothic.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'League Gothic'; 3 | src: url('league-gothic.eot'); 4 | src: url('league-gothic.eot?#iefix') format('embedded-opentype'), 5 | url('league-gothic.woff') format('woff'), 6 | url('league-gothic.ttf') format('truetype'); 7 | 8 | font-weight: normal; 9 | font-style: normal; 10 | } -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/lib/font/league-gothic/league-gothic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/lib/font/league-gothic/league-gothic.eot -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/lib/font/league-gothic/league-gothic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/lib/font/league-gothic/league-gothic.ttf -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/lib/font/league-gothic/league-gothic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/lib/font/league-gothic/league-gothic.woff -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/lib/font/source-sans-pro/source-sans-pro-italic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/lib/font/source-sans-pro/source-sans-pro-italic.eot -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/lib/font/source-sans-pro/source-sans-pro-italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/lib/font/source-sans-pro/source-sans-pro-italic.ttf -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/lib/font/source-sans-pro/source-sans-pro-italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/lib/font/source-sans-pro/source-sans-pro-italic.woff -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/lib/font/source-sans-pro/source-sans-pro-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/lib/font/source-sans-pro/source-sans-pro-regular.eot -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/lib/font/source-sans-pro/source-sans-pro-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/lib/font/source-sans-pro/source-sans-pro-regular.ttf -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/lib/font/source-sans-pro/source-sans-pro-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/lib/font/source-sans-pro/source-sans-pro-regular.woff -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/lib/font/source-sans-pro/source-sans-pro-semibold.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/lib/font/source-sans-pro/source-sans-pro-semibold.eot -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/lib/font/source-sans-pro/source-sans-pro-semibold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/lib/font/source-sans-pro/source-sans-pro-semibold.ttf -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/lib/font/source-sans-pro/source-sans-pro-semibold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/lib/font/source-sans-pro/source-sans-pro-semibold.woff -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/lib/font/source-sans-pro/source-sans-pro.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'Source Sans Pro'; 3 | src: url('source-sans-pro-regular.eot'); 4 | src: url('source-sans-pro-regular.eot?#iefix') format('embedded-opentype'), 5 | url('source-sans-pro-regular.woff') format('woff'), 6 | url('source-sans-pro-regular.ttf') format('truetype'); 7 | font-weight: normal; 8 | font-style: normal; 9 | } 10 | 11 | @font-face { 12 | font-family: 'Source Sans Pro'; 13 | src: url('source-sans-pro-italic.eot'); 14 | src: url('source-sans-pro-italic.eot?#iefix') format('embedded-opentype'), 15 | url('source-sans-pro-italic.woff') format('woff'), 16 | url('source-sans-pro-italic.ttf') format('truetype'); 17 | font-weight: normal; 18 | font-style: italic; 19 | } 20 | 21 | @font-face { 22 | font-family: 'Source Sans Pro'; 23 | src: url('source-sans-pro-semibold.eot'); 24 | src: url('source-sans-pro-semibold.eot?#iefix') format('embedded-opentype'), 25 | url('source-sans-pro-semibold.woff') format('woff'), 26 | url('source-sans-pro-semibold.ttf') format('truetype'); 27 | font-weight: 600; 28 | font-style: normal; 29 | } 30 | 31 | @font-face { 32 | font-family: 'Source Sans Pro'; 33 | src: url('source-sans-pro-semibolditalic.eot'); 34 | src: url('source-sans-pro-semibolditalic.eot?#iefix') format('embedded-opentype'), 35 | url('source-sans-pro-semibolditalic.woff') format('woff'), 36 | url('source-sans-pro-semibolditalic.ttf') format('truetype'); 37 | font-weight: 600; 38 | font-style: italic; 39 | } -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/lib/js/classList.js: -------------------------------------------------------------------------------- 1 | /*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js*/ 2 | if(typeof document!=="undefined"&&!("classList" in document.createElement("a"))){(function(j){var a="classList",f="prototype",m=(j.HTMLElement||j.Element)[f],b=Object,k=String[f].trim||function(){return this.replace(/^\s+|\s+$/g,"")},c=Array[f].indexOf||function(q){var p=0,o=this.length;for(;p=4.0.0" 24 | }, 25 | "devDependencies": { 26 | "express": "~4.14.0", 27 | "grunt": "~1.0.1", 28 | "grunt-autoprefixer": "~3.0.3", 29 | "grunt-cli": "~1.2.0", 30 | "grunt-contrib-connect": "~0.11.2", 31 | "grunt-contrib-cssmin": "~0.14.0", 32 | "grunt-contrib-jshint": "~0.11.3", 33 | "grunt-contrib-qunit": "~1.2.0", 34 | "grunt-contrib-uglify": "~0.9.2", 35 | "grunt-contrib-watch": "~1.0.0", 36 | "grunt-sass": "~1.2.0", 37 | "grunt-retire": "~0.3.10", 38 | "grunt-zip": "~0.17.1", 39 | "mustache": "~2.2.1", 40 | "node-sass": "~3.13.0", 41 | "socket.io": "^1.4.8" 42 | }, 43 | "license": "MIT" 44 | } 45 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/plugin/markdown/example.md: -------------------------------------------------------------------------------- 1 | # Markdown Demo 2 | 3 | 4 | 5 | ## External 1.1 6 | 7 | Content 1.1 8 | 9 | Note: This will only appear in the speaker notes window. 10 | 11 | 12 | ## External 1.2 13 | 14 | Content 1.2 15 | 16 | 17 | 18 | ## External 2 19 | 20 | Content 2.1 21 | 22 | 23 | 24 | ## External 3.1 25 | 26 | Content 3.1 27 | 28 | 29 | ## External 3.2 30 | 31 | Content 3.2 32 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/plugin/math/math.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A plugin which enables rendering of math equations inside 3 | * of reveal.js slides. Essentially a thin wrapper for MathJax. 4 | * 5 | * @author Hakim El Hattab 6 | */ 7 | var RevealMath = window.RevealMath || (function(){ 8 | 9 | var options = Reveal.getConfig().math || {}; 10 | options.mathjax = options.mathjax || 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js'; 11 | options.config = options.config || 'TeX-AMS_HTML-full'; 12 | 13 | loadScript( options.mathjax + '?config=' + options.config, function() { 14 | 15 | MathJax.Hub.Config({ 16 | messageStyle: 'none', 17 | tex2jax: { 18 | inlineMath: [['$','$'],['\\(','\\)']] , 19 | skipTags: ['script','noscript','style','textarea','pre'] 20 | }, 21 | skipStartupTypeset: true 22 | }); 23 | 24 | // Typeset followed by an immediate reveal.js layout since 25 | // the typesetting process could affect slide height 26 | MathJax.Hub.Queue( [ 'Typeset', MathJax.Hub ] ); 27 | MathJax.Hub.Queue( Reveal.layout ); 28 | 29 | // Reprocess equations in slides when they turn visible 30 | Reveal.addEventListener( 'slidechanged', function( event ) { 31 | 32 | MathJax.Hub.Queue( [ 'Typeset', MathJax.Hub, event.currentSlide ] ); 33 | 34 | } ); 35 | 36 | } ); 37 | 38 | function loadScript( url, callback ) { 39 | 40 | var head = document.querySelector( 'head' ); 41 | var script = document.createElement( 'script' ); 42 | script.type = 'text/javascript'; 43 | script.src = url; 44 | 45 | // Wrapper for callback to make sure it only fires once 46 | var finish = function() { 47 | if( typeof callback === 'function' ) { 48 | callback.call(); 49 | callback = null; 50 | } 51 | } 52 | 53 | script.onload = finish; 54 | 55 | // IE 56 | script.onreadystatechange = function() { 57 | if ( this.readyState === 'loaded' ) { 58 | finish(); 59 | } 60 | } 61 | 62 | // Normal browsers 63 | head.appendChild( script ); 64 | 65 | } 66 | 67 | })(); 68 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/plugin/multiplex/client.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | var multiplex = Reveal.getConfig().multiplex; 3 | var socketId = multiplex.id; 4 | var socket = io.connect(multiplex.url); 5 | 6 | socket.on(multiplex.id, function(data) { 7 | // ignore data from sockets that aren't ours 8 | if (data.socketId !== socketId) { return; } 9 | if( window.location.host === 'localhost:1947' ) return; 10 | 11 | Reveal.setState(data.state); 12 | }); 13 | }()); 14 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/plugin/multiplex/index.js: -------------------------------------------------------------------------------- 1 | var http = require('http'); 2 | var express = require('express'); 3 | var fs = require('fs'); 4 | var io = require('socket.io'); 5 | var crypto = require('crypto'); 6 | 7 | var app = express(); 8 | var staticDir = express.static; 9 | var server = http.createServer(app); 10 | 11 | io = io(server); 12 | 13 | var opts = { 14 | port: process.env.PORT || 1948, 15 | baseDir : __dirname + '/../../' 16 | }; 17 | 18 | io.on( 'connection', function( socket ) { 19 | socket.on('multiplex-statechanged', function(data) { 20 | if (typeof data.secret == 'undefined' || data.secret == null || data.secret === '') return; 21 | if (createHash(data.secret) === data.socketId) { 22 | data.secret = null; 23 | socket.broadcast.emit(data.socketId, data); 24 | }; 25 | }); 26 | }); 27 | 28 | [ 'css', 'js', 'plugin', 'lib' ].forEach(function(dir) { 29 | app.use('/' + dir, staticDir(opts.baseDir + dir)); 30 | }); 31 | 32 | app.get("/", function(req, res) { 33 | res.writeHead(200, {'Content-Type': 'text/html'}); 34 | 35 | var stream = fs.createReadStream(opts.baseDir + '/index.html'); 36 | stream.on('error', function( error ) { 37 | res.write('

reveal.js multiplex server.

Generate token'); 38 | res.end(); 39 | }); 40 | stream.on('readable', function() { 41 | stream.pipe(res); 42 | }); 43 | }); 44 | 45 | app.get("/token", function(req,res) { 46 | var ts = new Date().getTime(); 47 | var rand = Math.floor(Math.random()*9999999); 48 | var secret = ts.toString() + rand.toString(); 49 | res.send({secret: secret, socketId: createHash(secret)}); 50 | }); 51 | 52 | var createHash = function(secret) { 53 | var cipher = crypto.createCipher('blowfish', secret); 54 | return(cipher.final('hex')); 55 | }; 56 | 57 | // Actually listen 58 | server.listen( opts.port || null ); 59 | 60 | var brown = '\033[33m', 61 | green = '\033[32m', 62 | reset = '\033[0m'; 63 | 64 | console.log( brown + "reveal.js:" + reset + " Multiplex running on port " + green + opts.port + reset ); -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/plugin/multiplex/master.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | 3 | // Don't emit events from inside of notes windows 4 | if ( window.location.search.match( /receiver/gi ) ) { return; } 5 | 6 | var multiplex = Reveal.getConfig().multiplex; 7 | 8 | var socket = io.connect( multiplex.url ); 9 | 10 | function post() { 11 | 12 | var messageData = { 13 | state: Reveal.getState(), 14 | secret: multiplex.secret, 15 | socketId: multiplex.id 16 | }; 17 | 18 | socket.emit( 'multiplex-statechanged', messageData ); 19 | 20 | }; 21 | 22 | // Monitor events that trigger a change in state 23 | Reveal.addEventListener( 'slidechanged', post ); 24 | Reveal.addEventListener( 'fragmentshown', post ); 25 | Reveal.addEventListener( 'fragmenthidden', post ); 26 | Reveal.addEventListener( 'overviewhidden', post ); 27 | Reveal.addEventListener( 'overviewshown', post ); 28 | Reveal.addEventListener( 'paused', post ); 29 | Reveal.addEventListener( 'resumed', post ); 30 | 31 | }()); -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/plugin/multiplex/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "reveal-js-multiplex", 3 | "version": "1.0.0", 4 | "description": "reveal.js multiplex server", 5 | "homepage": "http://lab.hakim.se/reveal-js", 6 | "scripts": { 7 | "start": "node index.js" 8 | }, 9 | "engines": { 10 | "node": "~4.1.1" 11 | }, 12 | "dependencies": { 13 | "express": "~4.13.3", 14 | "grunt-cli": "~0.1.13", 15 | "mustache": "~2.2.1", 16 | "socket.io": "~1.3.7" 17 | }, 18 | "license": "MIT" 19 | } 20 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/plugin/notes-server/client.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | 3 | // don't emit events from inside the previews themselves 4 | if( window.location.search.match( /receiver/gi ) ) { return; } 5 | 6 | var socket = io.connect( window.location.origin ), 7 | socketId = Math.random().toString().slice( 2 ); 8 | 9 | console.log( 'View slide notes at ' + window.location.origin + '/notes/' + socketId ); 10 | 11 | window.open( window.location.origin + '/notes/' + socketId, 'notes-' + socketId ); 12 | 13 | /** 14 | * Posts the current slide data to the notes window 15 | */ 16 | function post() { 17 | 18 | var slideElement = Reveal.getCurrentSlide(), 19 | notesElement = slideElement.querySelector( 'aside.notes' ); 20 | 21 | var messageData = { 22 | notes: '', 23 | markdown: false, 24 | socketId: socketId, 25 | state: Reveal.getState() 26 | }; 27 | 28 | // Look for notes defined in a slide attribute 29 | if( slideElement.hasAttribute( 'data-notes' ) ) { 30 | messageData.notes = slideElement.getAttribute( 'data-notes' ); 31 | } 32 | 33 | // Look for notes defined in an aside element 34 | if( notesElement ) { 35 | messageData.notes = notesElement.innerHTML; 36 | messageData.markdown = typeof notesElement.getAttribute( 'data-markdown' ) === 'string'; 37 | } 38 | 39 | socket.emit( 'statechanged', messageData ); 40 | 41 | } 42 | 43 | // When a new notes window connects, post our current state 44 | socket.on( 'new-subscriber', function( data ) { 45 | post(); 46 | } ); 47 | 48 | // When the state changes from inside of the speaker view 49 | socket.on( 'statechanged-speaker', function( data ) { 50 | Reveal.setState( data.state ); 51 | } ); 52 | 53 | // Monitor events that trigger a change in state 54 | Reveal.addEventListener( 'slidechanged', post ); 55 | Reveal.addEventListener( 'fragmentshown', post ); 56 | Reveal.addEventListener( 'fragmenthidden', post ); 57 | Reveal.addEventListener( 'overviewhidden', post ); 58 | Reveal.addEventListener( 'overviewshown', post ); 59 | Reveal.addEventListener( 'paused', post ); 60 | Reveal.addEventListener( 'resumed', post ); 61 | 62 | // Post the initial state 63 | post(); 64 | 65 | }()); 66 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/plugin/notes-server/index.js: -------------------------------------------------------------------------------- 1 | var http = require('http'); 2 | var express = require('express'); 3 | var fs = require('fs'); 4 | var io = require('socket.io'); 5 | var Mustache = require('mustache'); 6 | 7 | var app = express(); 8 | var staticDir = express.static; 9 | var server = http.createServer(app); 10 | 11 | io = io(server); 12 | 13 | var opts = { 14 | port : 1947, 15 | baseDir : __dirname + '/../../' 16 | }; 17 | 18 | io.on( 'connection', function( socket ) { 19 | 20 | socket.on( 'new-subscriber', function( data ) { 21 | socket.broadcast.emit( 'new-subscriber', data ); 22 | }); 23 | 24 | socket.on( 'statechanged', function( data ) { 25 | delete data.state.overview; 26 | socket.broadcast.emit( 'statechanged', data ); 27 | }); 28 | 29 | socket.on( 'statechanged-speaker', function( data ) { 30 | delete data.state.overview; 31 | socket.broadcast.emit( 'statechanged-speaker', data ); 32 | }); 33 | 34 | }); 35 | 36 | [ 'css', 'js', 'images', 'plugin', 'lib' ].forEach( function( dir ) { 37 | app.use( '/' + dir, staticDir( opts.baseDir + dir ) ); 38 | }); 39 | 40 | app.get('/', function( req, res ) { 41 | 42 | res.writeHead( 200, { 'Content-Type': 'text/html' } ); 43 | fs.createReadStream( opts.baseDir + '/index.html' ).pipe( res ); 44 | 45 | }); 46 | 47 | app.get( '/notes/:socketId', function( req, res ) { 48 | 49 | fs.readFile( opts.baseDir + 'plugin/notes-server/notes.html', function( err, data ) { 50 | res.send( Mustache.to_html( data.toString(), { 51 | socketId : req.params.socketId 52 | })); 53 | }); 54 | 55 | }); 56 | 57 | // Actually listen 58 | server.listen( opts.port || null ); 59 | 60 | var brown = '\033[33m', 61 | green = '\033[32m', 62 | reset = '\033[0m'; 63 | 64 | var slidesLocation = 'http://localhost' + ( opts.port ? ( ':' + opts.port ) : '' ); 65 | 66 | console.log( brown + 'reveal.js - Speaker Notes' + reset ); 67 | console.log( '1. Open the slides at ' + green + slidesLocation + reset ); 68 | console.log( '2. Click on the link in your JS console to go to the notes page' ); 69 | console.log( '3. Advance through your slides and your notes will advance automatically' ); 70 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/plugin/print-pdf/print-pdf.js: -------------------------------------------------------------------------------- 1 | /** 2 | * phantomjs script for printing presentations to PDF. 3 | * 4 | * Example: 5 | * phantomjs print-pdf.js "http://lab.hakim.se/reveal-js?print-pdf" reveal-demo.pdf 6 | * 7 | * @author Manuel Bieh (https://github.com/manuelbieh) 8 | * @author Hakim El Hattab (https://github.com/hakimel) 9 | * @author Manuel Riezebosch (https://github.com/riezebosch) 10 | */ 11 | 12 | // html2pdf.js 13 | var system = require( 'system' ); 14 | 15 | var probePage = new WebPage(); 16 | var printPage = new WebPage(); 17 | 18 | var inputFile = system.args[1] || 'index.html?print-pdf'; 19 | var outputFile = system.args[2] || 'slides.pdf'; 20 | 21 | if( outputFile.match( /\.pdf$/gi ) === null ) { 22 | outputFile += '.pdf'; 23 | } 24 | 25 | console.log( 'Export PDF: Reading reveal.js config [1/4]' ); 26 | 27 | probePage.open( inputFile, function( status ) { 28 | 29 | console.log( 'Export PDF: Preparing print layout [2/4]' ); 30 | 31 | var config = probePage.evaluate( function() { 32 | return Reveal.getConfig(); 33 | } ); 34 | 35 | if( config ) { 36 | 37 | printPage.paperSize = { 38 | width: Math.floor( config.width * ( 1 + config.margin ) ), 39 | height: Math.floor( config.height * ( 1 + config.margin ) ), 40 | border: 0 41 | }; 42 | 43 | printPage.open( inputFile, function( status ) { 44 | console.log( 'Export PDF: Preparing pdf [3/4]') 45 | printPage.evaluate(function() { 46 | Reveal.isReady() ? window.callPhantom() : Reveal.addEventListener( 'pdf-ready', window.callPhantom ); 47 | }); 48 | } ); 49 | 50 | printPage.onCallback = function(data) { 51 | // For some reason we need to "jump the queue" for syntax highlighting to work. 52 | // See: http://stackoverflow.com/a/3580132/129269 53 | setTimeout(function() { 54 | console.log( 'Export PDF: Writing file [4/4]' ); 55 | printPage.render( outputFile ); 56 | console.log( 'Export PDF: Finished successfully!' ); 57 | phantom.exit(); 58 | }, 0); 59 | }; 60 | } 61 | else { 62 | 63 | console.log( 'Export PDF: Unable to read reveal.js config. Make sure the input address points to a reveal.js page.' ); 64 | phantom.exit(1); 65 | 66 | } 67 | } ); 68 | 69 | 70 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/qrcodejs/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | 3 | .idea 4 | .project 5 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/qrcodejs/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | --------------------- 3 | Copyright (c) 2012 davidshimjs 4 | 5 | Permission is hereby granted, free of charge, 6 | to any person obtaining a copy of this software and associated documentation files (the "Software"), 7 | to deal in the Software without restriction, 8 | including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, 9 | and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/qrcodejs/README.md: -------------------------------------------------------------------------------- 1 | # QRCode.js 2 | QRCode.js is javascript library for making QRCode. QRCode.js supports Cross-browser with HTML5 Canvas and table tag in DOM. 3 | QRCode.js has no dependencies. 4 | 5 | ## Basic Usages 6 | ``` 7 |
8 | 11 | ``` 12 | 13 | or with some options 14 | 15 | ``` 16 |
17 | 27 | ``` 28 | 29 | and you can use some methods 30 | 31 | ``` 32 | qrcode.clear(); // clear the code. 33 | qrcode.makeCode("http://naver.com"); // make another code. 34 | ``` 35 | 36 | ## Browser Compatibility 37 | IE6~10, Chrome, Firefox, Safari, Opera, Mobile Safari, Android, Windows Mobile, ETC. 38 | 39 | ## License 40 | MIT License 41 | 42 | ## Contact 43 | twitter @davidshimjs 44 | 45 | [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/davidshimjs/qrcodejs/trend.png)](https://bitdeli.com/free "Bitdeli Badge") 46 | 47 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/qrcodejs/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "qrcode.js", 3 | "version": "0.0.1", 4 | "homepage": "https://github.com/davidshimjs/qrcodejs", 5 | "authors": [ 6 | "Sangmin Shim", "Sangmin Shim (http://jaguarjs.com)" 7 | ], 8 | "description": "Cross-browser QRCode generator for javascript", 9 | "main": "qrcode.js", 10 | "ignore": [ 11 | "bower_components", 12 | "node_modules", 13 | "index.html", 14 | "index.svg", 15 | "jquery.min.js", 16 | "qrcode.min.js" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/qrcodejs/index-svg.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Cross-Browser QRCode generator for Javascript 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/qrcodejs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Cross-Browser QRCode generator for Javascript 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 | 14 | 44 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/qrcodejs/index.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 | 8 |
9 | 10 | 35 | 36 |
37 |
38 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/test/examples/assets/image1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/test/examples/assets/image1.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/test/examples/assets/image2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caballerog/cleancodeJS/0d3822b9a5cb99aafe1ff7cf88efab94437c7b6a/99-cleanJS-presentation/slides/test/examples/assets/image2.png -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/test/examples/barebones.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Barebones 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 |
17 | 18 |
19 |

Barebones Presentation

20 |

This example contains the bare minimum includes and markup required to run a reveal.js presentation.

21 |
22 | 23 |
24 |

No Theme

25 |

There's no theme included, so it will fall back on browser defaults.

26 |
27 | 28 |
29 | 30 |
31 | 32 | 33 | 34 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/test/examples/embedded-media.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Embedded Media 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 |
20 | 21 |
22 |

Embedded Media Test

23 |
24 | 25 |
26 | 27 |
28 | 29 |
30 |

Empty Slide

31 |
32 | 33 |
34 | 35 |
36 | 37 | 38 | 39 | 40 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/test/examples/slide-transitions.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Slide Transitions 8 | 9 | 10 | 11 | 21 | 22 | 23 | 24 | 25 |
26 | 27 |
28 | 29 |
30 |

Default

31 |
32 | 33 |
34 |

Default

35 |
36 | 37 |
38 |

data-transition: zoom

39 |
40 | 41 |
42 |

data-transition: zoom-in fade-out

43 |
44 | 45 |
46 |

Default

47 |
48 | 49 |
50 |

data-transition: convex

51 |
52 | 53 |
54 |

data-transition: convex-in concave-out

55 |
56 | 57 |
58 |
59 |

Default

60 |
61 |
62 |

data-transition: concave

63 |
64 |
65 |

data-transition: convex-in fade-out

66 |
67 |
68 |

Default

69 |
70 |
71 | 72 |
73 |

data-transition: none

74 |
75 | 76 |
77 |

Default

78 |
79 | 80 |
81 | 82 |
83 | 84 | 85 | 86 | 87 | 99 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/test/simple.md: -------------------------------------------------------------------------------- 1 | ## Slide 1.1 2 | 3 | ```js 4 | var a = 1; 5 | ``` 6 | 7 | 8 | ## Slide 1.2 9 | 10 | 11 | 12 | ## Slide 2 13 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/test/test-markdown-element-attributes.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | Reveal.addEventListener( 'ready', function() { 4 | 5 | QUnit.module( 'Markdown' ); 6 | 7 | test( 'Vertical separator', function() { 8 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 4, 'found four slides' ); 9 | }); 10 | 11 | 12 | test( 'Attributes on element header in vertical slides', function() { 13 | strictEqual( document.querySelectorAll( '.reveal .slides section>section h2.fragment.fade-out' ).length, 1, 'found one vertical slide with class fragment.fade-out on header' ); 14 | strictEqual( document.querySelectorAll( '.reveal .slides section>section h2.fragment.shrink' ).length, 1, 'found one vertical slide with class fragment.shrink on header' ); 15 | }); 16 | 17 | test( 'Attributes on element paragraphs in vertical slides', function() { 18 | strictEqual( document.querySelectorAll( '.reveal .slides section>section p.fragment.grow' ).length, 2, 'found a vertical slide with two paragraphs with class fragment.grow' ); 19 | }); 20 | 21 | test( 'Attributes on element list items in vertical slides', function() { 22 | strictEqual( document.querySelectorAll( '.reveal .slides section>section li.fragment.grow' ).length, 3, 'found a vertical slide with three list items with class fragment.grow' ); 23 | }); 24 | 25 | test( 'Attributes on element paragraphs in horizontal slides', function() { 26 | strictEqual( document.querySelectorAll( '.reveal .slides section p.fragment.highlight-red' ).length, 4, 'found a horizontal slide with four paragraphs with class fragment.grow' ); 27 | }); 28 | test( 'Attributes on element list items in horizontal slides', function() { 29 | strictEqual( document.querySelectorAll( '.reveal .slides section li.fragment.highlight-green' ).length, 5, 'found a horizontal slide with five list items with class fragment.roll-in' ); 30 | }); 31 | test( 'Attributes on element list items in horizontal slides', function() { 32 | strictEqual( document.querySelectorAll( '.reveal .slides section img.reveal.stretch' ).length, 1, 'found a horizontal slide with stretched image, class img.reveal.stretch' ); 33 | }); 34 | 35 | test( 'Attributes on elements in vertical slides with default element attribute separator', function() { 36 | strictEqual( document.querySelectorAll( '.reveal .slides section h2.fragment.highlight-red' ).length, 2, 'found two h2 titles with fragment highlight-red in vertical slides with default element attribute separator' ); 37 | }); 38 | 39 | test( 'Attributes on elements in single slides with default element attribute separator', function() { 40 | strictEqual( document.querySelectorAll( '.reveal .slides section p.fragment.highlight-blue' ).length, 3, 'found three elements with fragment highlight-blue in single slide with default element attribute separator' ); 41 | }); 42 | 43 | } ); 44 | 45 | Reveal.initialize(); 46 | 47 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/test/test-markdown-external.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test Markdown 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 | 18 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/test/test-markdown-external.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | Reveal.addEventListener( 'ready', function() { 4 | 5 | QUnit.module( 'Markdown' ); 6 | 7 | test( 'Vertical separator', function() { 8 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 2, 'found two slides' ); 9 | }); 10 | 11 | test( 'Horizontal separator', function() { 12 | strictEqual( document.querySelectorAll( '.reveal .slides>section' ).length, 2, 'found two slides' ); 13 | }); 14 | 15 | test( 'Language highlighter', function() { 16 | strictEqual( document.querySelectorAll( '.hljs-keyword' ).length, 1, 'got rendered highlight tag.' ); 17 | strictEqual( document.querySelector( '.hljs-keyword' ).innerHTML, 'var', 'the same keyword: var.' ); 18 | }); 19 | 20 | 21 | } ); 22 | 23 | Reveal.initialize(); 24 | 25 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/test/test-markdown-options.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test Markdown Options 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 | 18 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/test/test-markdown-options.js: -------------------------------------------------------------------------------- 1 | Reveal.addEventListener( 'ready', function() { 2 | 3 | QUnit.module( 'Markdown' ); 4 | 5 | test( 'Options are set', function() { 6 | strictEqual( marked.defaults.smartypants, true ); 7 | }); 8 | 9 | test( 'Smart quotes are activated', function() { 10 | var text = document.querySelector( '.reveal .slides>section>p' ).textContent; 11 | 12 | strictEqual( /['"]/.test( text ), false ); 13 | strictEqual( /[“”‘’]/.test( text ), true ); 14 | }); 15 | 16 | } ); 17 | 18 | Reveal.initialize({ 19 | dependencies: [ 20 | { src: '../plugin/markdown/marked.js' }, 21 | { src: '../plugin/markdown/markdown.js' }, 22 | ], 23 | markdown: { 24 | smartypants: true 25 | } 26 | }); 27 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/test/test-markdown.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test Markdown 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 | 18 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/test/test-markdown.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | Reveal.addEventListener( 'ready', function() { 4 | 5 | QUnit.module( 'Markdown' ); 6 | 7 | test( 'Vertical separator', function() { 8 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 2, 'found two slides' ); 9 | }); 10 | 11 | 12 | } ); 13 | 14 | Reveal.initialize(); 15 | 16 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/test/test-pdf.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test PDF exports 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 |
18 | 19 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/test/test-pdf.js: -------------------------------------------------------------------------------- 1 | 2 | Reveal.addEventListener( 'ready', function() { 3 | 4 | // Only one test for now, we're mainly ensuring that there 5 | // are no execution errors when running PDF mode 6 | 7 | test( 'Reveal.isReady', function() { 8 | strictEqual( Reveal.isReady(), true, 'returns true' ); 9 | }); 10 | 11 | 12 | } ); 13 | 14 | Reveal.initialize({ pdf: true }); 15 | 16 | -------------------------------------------------------------------------------- /99-cleanJS-presentation/slides/test/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Tests 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 | 18 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Carlos Caballero González and Antonio Villena Jiménez 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # Clean Code applied using JavaScript 3 | 4 | You can get the [presentation from this link](https://caballerog.github.io/cleancodeJS) which is built using reveal.js. 5 | 6 | --------------------------------------------------------------------------------