├── .gitignore ├── .vscode └── launch.json ├── Introduction.pptx ├── README.md ├── Warmup.pptx ├── demo ├── .eslintrc ├── App_Resources │ ├── Android │ │ ├── app.gradle │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── res │ │ │ ├── drawable-hdpi │ │ │ ├── background.png │ │ │ ├── icon.png │ │ │ └── logo.png │ │ │ ├── drawable-ldpi │ │ │ ├── background.png │ │ │ ├── icon.png │ │ │ └── logo.png │ │ │ ├── drawable-mdpi │ │ │ ├── background.png │ │ │ ├── icon.png │ │ │ └── logo.png │ │ │ ├── drawable-nodpi │ │ │ └── splash_screen.xml │ │ │ ├── drawable-xhdpi │ │ │ ├── background.png │ │ │ ├── icon.png │ │ │ └── logo.png │ │ │ ├── drawable-xxhdpi │ │ │ ├── background.png │ │ │ ├── icon.png │ │ │ └── logo.png │ │ │ ├── drawable-xxxhdpi │ │ │ ├── background.png │ │ │ ├── icon.png │ │ │ └── logo.png │ │ │ ├── values-v21 │ │ │ ├── colors.xml │ │ │ └── styles.xml │ │ │ └── values │ │ │ ├── colors.xml │ │ │ └── styles.xml │ └── iOS │ │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── icon-29.png │ │ │ ├── icon-29@2x.png │ │ │ ├── icon-29@3x.png │ │ │ ├── icon-40.png │ │ │ ├── icon-40@2x.png │ │ │ ├── icon-40@3x.png │ │ │ ├── icon-50.png │ │ │ ├── icon-50@2x.png │ │ │ ├── icon-57.png │ │ │ ├── icon-57@2x.png │ │ │ ├── icon-60@2x.png │ │ │ ├── icon-60@3x.png │ │ │ ├── icon-72.png │ │ │ ├── icon-72@2x.png │ │ │ ├── icon-76.png │ │ │ ├── icon-76@2x.png │ │ │ └── icon-83.5@2x.png │ │ ├── Contents.json │ │ ├── LaunchImage.launchimage │ │ │ ├── Contents.json │ │ │ ├── Default-568h@2x.png │ │ │ ├── Default-667h@2x.png │ │ │ ├── Default-736h@3x.png │ │ │ ├── Default-Landscape.png │ │ │ ├── Default-Landscape@2x.png │ │ │ ├── Default-Landscape@3x.png │ │ │ ├── Default-Portrait.png │ │ │ ├── Default-Portrait@2x.png │ │ │ ├── Default.png │ │ │ └── Default@2x.png │ │ ├── LaunchScreen.AspectFill.imageset │ │ │ ├── Contents.json │ │ │ ├── LaunchScreen-AspectFill.png │ │ │ └── LaunchScreen-AspectFill@2x.png │ │ └── LaunchScreen.Center.imageset │ │ │ ├── Contents.json │ │ │ ├── LaunchScreen-Center.png │ │ │ └── LaunchScreen-Center@2x.png │ │ ├── Info.plist │ │ ├── LaunchScreen.storyboard │ │ └── build.xcconfig ├── nativescript-ngx-fonticon-4.2.1.tgz ├── nsconfig.json ├── package-lock.json ├── package.json ├── petfinder-angular-service-1.0.3.tgz ├── references.d.ts ├── src │ ├── app.component.html │ ├── app.component.ts │ ├── app.css │ ├── app.module.ts │ ├── app.routing.ts │ ├── assets │ │ ├── barnyard.png │ │ ├── bird.png │ │ ├── cat.png │ │ ├── dog.png │ │ ├── horse.png │ │ ├── pets.png │ │ ├── pig.png │ │ ├── reptile.png │ │ └── smallfurry.png │ ├── fonts │ │ ├── FontAwesome.otf │ │ ├── font-awesome.css │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.svg │ │ ├── fontawesome-webfont.ttf │ │ ├── fontawesome-webfont.woff │ │ └── fontawesome-webfont.woff2 │ ├── main.ts │ ├── offline │ │ ├── one-pet.json │ │ ├── pets-boston.json │ │ └── pug-placeholder.jpg │ ├── package.json │ ├── pet-details │ │ ├── pet-details.component.css │ │ ├── pet-details.component.html │ │ └── pet-details.component.ts │ ├── pet-favorites │ │ ├── pet-favorites.component.css │ │ ├── pet-favorites.component.html │ │ └── pet-favorites.component.ts │ ├── pet-results │ │ ├── pet-results.component.css │ │ ├── pet-results.component.html │ │ └── pet-results.component.ts │ ├── pet-search │ │ ├── pet-search.component.css │ │ ├── pet-search.component.html │ │ └── pet-search.component.ts │ ├── pet-storage.service.ts │ ├── platforms.android.css │ ├── platforms.ios.css │ ├── select-modal.service.ts │ ├── select-modal │ │ ├── select-modal.component.css │ │ ├── select-modal.component.html │ │ └── select-modal.component.ts │ └── test │ │ ├── test.component.html │ │ └── test.component.ts ├── tsconfig.json ├── tsconfig.tns.json └── webpack.config.js ├── docs ├── .gitignore ├── .vscode │ └── settings.json ├── Gemfile ├── Gemfile.lock ├── _config.yml ├── _layouts │ └── default.html ├── _sass │ ├── _fonts.scss │ ├── _normalize.scss │ ├── _prism.scss │ └── style.scss ├── chapters │ ├── chapter0.md │ ├── chapter1.md │ ├── chapter10.md │ ├── chapter11.md │ ├── chapter2.md │ ├── chapter3.md │ ├── chapter4.md │ ├── chapter5.md │ ├── chapter6.md │ ├── chapter7.md │ ├── chapter8.md │ └── chapter9.md ├── css │ └── styles.scss ├── favicon.ico ├── fonts │ ├── OpenSans-Regular-webfont.eot │ ├── OpenSans-Regular-webfont.ttf │ ├── OpenSans-Regular-webfont.woff │ ├── OpenSans-Regular-webfont.woff2 │ ├── RobotoSlab-Light-webfont.eot │ ├── RobotoSlab-Light-webfont.svg │ ├── RobotoSlab-Light-webfont.ttf │ ├── RobotoSlab-Light-webfont.woff │ ├── RobotoSlab-Light-webfont.woff2 │ ├── RobotoSlab-Regular-webfont.eot │ ├── RobotoSlab-Regular-webfont.ttf │ ├── RobotoSlab-Regular-webfont.woff │ └── RobotoSlab-Regular-webfont.woff2 ├── images │ ├── chapter7 │ │ ├── 0.png │ │ ├── 1.png │ │ ├── 2.png │ │ └── 3.png │ ├── chapter8 │ │ └── master-detail.png │ ├── chapter9 │ │ └── 0.png │ ├── github4.svg │ ├── menu.svg │ ├── noise.png │ ├── vscode-configure-debugger.gif │ ├── vscode-icon-debug.png │ ├── vscode-icon-gear.png │ ├── vscode-nsext-enable.png │ ├── vscode-nsext-install.png │ ├── vscode-snippets-mac.png │ ├── vscode-snippets-win.png │ ├── vscode-using-snippets.gif │ ├── warmup-01.png │ ├── warmup-02.png │ ├── warmup-cocktail-details.png │ ├── warmup-cocktail-list.png │ ├── warmup-dataform.png │ ├── warmup-http.png │ ├── warmup-service-test.png │ └── warmup-theme-01.png ├── index.md └── scripts │ ├── app.js │ ├── jquery.js │ └── prism.js ├── playground ├── color │ ├── app │ │ ├── App_Resources │ │ │ ├── Android │ │ │ │ ├── AndroidManifest.xml │ │ │ │ ├── app.gradle │ │ │ │ ├── drawable-hdpi │ │ │ │ │ ├── background.png │ │ │ │ │ ├── icon.png │ │ │ │ │ └── logo.png │ │ │ │ ├── drawable-ldpi │ │ │ │ │ ├── background.png │ │ │ │ │ ├── icon.png │ │ │ │ │ └── logo.png │ │ │ │ ├── drawable-mdpi │ │ │ │ │ ├── background.png │ │ │ │ │ ├── icon.png │ │ │ │ │ └── logo.png │ │ │ │ ├── drawable-nodpi │ │ │ │ │ └── splash_screen.xml │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ ├── background.png │ │ │ │ │ ├── icon.png │ │ │ │ │ └── logo.png │ │ │ │ ├── drawable-xxhdpi │ │ │ │ │ ├── background.png │ │ │ │ │ ├── icon.png │ │ │ │ │ └── logo.png │ │ │ │ ├── drawable-xxxhdpi │ │ │ │ │ ├── background.png │ │ │ │ │ ├── icon.png │ │ │ │ │ └── logo.png │ │ │ │ ├── values-v21 │ │ │ │ │ ├── colors.xml │ │ │ │ │ └── styles.xml │ │ │ │ └── values │ │ │ │ │ ├── colors.xml │ │ │ │ │ └── styles.xml │ │ │ └── iOS │ │ │ │ ├── Assets.xcassets │ │ │ │ ├── AppIcon.appiconset │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── icon-29.png │ │ │ │ │ ├── icon-29@2x.png │ │ │ │ │ ├── icon-29@3x.png │ │ │ │ │ ├── icon-40.png │ │ │ │ │ ├── icon-40@2x.png │ │ │ │ │ ├── icon-40@3x.png │ │ │ │ │ ├── icon-60@2x.png │ │ │ │ │ ├── icon-60@3x.png │ │ │ │ │ ├── icon-76.png │ │ │ │ │ ├── icon-76@2x.png │ │ │ │ │ └── icon-83.5@2x.png │ │ │ │ ├── Contents.json │ │ │ │ ├── LaunchImage.launchimage │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── Default-568h@2x.png │ │ │ │ │ ├── Default-667h@2x.png │ │ │ │ │ ├── Default-736h@3x.png │ │ │ │ │ ├── Default-Landscape.png │ │ │ │ │ ├── Default-Landscape@2x.png │ │ │ │ │ ├── Default-Landscape@3x.png │ │ │ │ │ ├── Default-Portrait.png │ │ │ │ │ ├── Default-Portrait@2x.png │ │ │ │ │ ├── Default.png │ │ │ │ │ └── Default@2x.png │ │ │ │ ├── LaunchScreen.AspectFill.imageset │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── LaunchScreen-AspectFill.png │ │ │ │ │ └── LaunchScreen-AspectFill@2x.png │ │ │ │ └── LaunchScreen.Center.imageset │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── LaunchScreen-Center.png │ │ │ │ │ └── LaunchScreen-Center@2x.png │ │ │ │ ├── Info.plist │ │ │ │ ├── LaunchScreen.storyboard │ │ │ │ └── build.xcconfig │ │ ├── app.component.html │ │ ├── app.component.ts │ │ ├── app.css │ │ ├── app.module.ts │ │ ├── app.routing.ts │ │ ├── color │ │ │ ├── blue.component.html │ │ │ ├── blue.component.ts │ │ │ ├── color.component.css │ │ │ ├── color.component.html │ │ │ ├── color.component.ts │ │ │ ├── index.ts │ │ │ ├── red.component.html │ │ │ ├── red.component.ts │ │ │ ├── rgb.component.html │ │ │ └── rgb.component.ts │ │ ├── main.aot.ts │ │ ├── main.ts │ │ └── package.json │ ├── package.json │ └── tsconfig.json ├── football │ ├── app │ │ ├── App_Resources │ │ │ ├── Android │ │ │ │ ├── AndroidManifest.xml │ │ │ │ ├── app.gradle │ │ │ │ ├── drawable-hdpi │ │ │ │ │ ├── background.png │ │ │ │ │ ├── icon.png │ │ │ │ │ └── logo.png │ │ │ │ ├── drawable-ldpi │ │ │ │ │ ├── background.png │ │ │ │ │ ├── icon.png │ │ │ │ │ └── logo.png │ │ │ │ ├── drawable-mdpi │ │ │ │ │ ├── background.png │ │ │ │ │ ├── icon.png │ │ │ │ │ └── logo.png │ │ │ │ ├── drawable-nodpi │ │ │ │ │ └── splash_screen.xml │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ ├── background.png │ │ │ │ │ ├── icon.png │ │ │ │ │ └── logo.png │ │ │ │ ├── drawable-xxhdpi │ │ │ │ │ ├── background.png │ │ │ │ │ ├── icon.png │ │ │ │ │ └── logo.png │ │ │ │ ├── drawable-xxxhdpi │ │ │ │ │ ├── background.png │ │ │ │ │ ├── icon.png │ │ │ │ │ └── logo.png │ │ │ │ ├── values-v21 │ │ │ │ │ ├── colors.xml │ │ │ │ │ └── styles.xml │ │ │ │ └── values │ │ │ │ │ ├── colors.xml │ │ │ │ │ └── styles.xml │ │ │ └── iOS │ │ │ │ ├── Assets.xcassets │ │ │ │ ├── AppIcon.appiconset │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── icon-29.png │ │ │ │ │ ├── icon-29@2x.png │ │ │ │ │ ├── icon-29@3x.png │ │ │ │ │ ├── icon-40.png │ │ │ │ │ ├── icon-40@2x.png │ │ │ │ │ ├── icon-40@3x.png │ │ │ │ │ ├── icon-60@2x.png │ │ │ │ │ ├── icon-60@3x.png │ │ │ │ │ ├── icon-76.png │ │ │ │ │ ├── icon-76@2x.png │ │ │ │ │ └── icon-83.5@2x.png │ │ │ │ ├── Contents.json │ │ │ │ ├── LaunchImage.launchimage │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── Default-568h@2x.png │ │ │ │ │ ├── Default-667h@2x.png │ │ │ │ │ ├── Default-736h@3x.png │ │ │ │ │ ├── Default-Landscape.png │ │ │ │ │ ├── Default-Landscape@2x.png │ │ │ │ │ ├── Default-Landscape@3x.png │ │ │ │ │ ├── Default-Portrait.png │ │ │ │ │ ├── Default-Portrait@2x.png │ │ │ │ │ ├── Default.png │ │ │ │ │ └── Default@2x.png │ │ │ │ ├── LaunchScreen.AspectFill.imageset │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── LaunchScreen-AspectFill.png │ │ │ │ │ └── LaunchScreen-AspectFill@2x.png │ │ │ │ └── LaunchScreen.Center.imageset │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── LaunchScreen-Center.png │ │ │ │ │ └── LaunchScreen-Center@2x.png │ │ │ │ ├── Info.plist │ │ │ │ ├── LaunchScreen.storyboard │ │ │ │ └── build.xcconfig │ │ ├── app.component.html │ │ ├── app.component.ts │ │ ├── app.css │ │ ├── app.module.ts │ │ ├── app.routing.ts │ │ ├── football.service.ts │ │ ├── football │ │ │ ├── competition-fixtures.component.html │ │ │ ├── competition-fixtures.component.ts │ │ │ ├── fixture.component.css │ │ │ ├── fixture.component.html │ │ │ ├── fixture.component.ts │ │ │ ├── league-table.component.html │ │ │ ├── league-table.component.ts │ │ │ ├── player.component.css │ │ │ ├── player.component.html │ │ │ ├── player.component.ts │ │ │ ├── tables.component.html │ │ │ ├── tables.component.ts │ │ │ ├── team.component.html │ │ │ └── team.component.ts │ │ ├── main.aot.ts │ │ ├── main.ts │ │ ├── models │ │ │ ├── competition.model.ts │ │ │ ├── fixture.model.ts │ │ │ ├── football-factory.ts │ │ │ ├── index.ts │ │ │ ├── league-table.model.ts │ │ │ ├── player.model.ts │ │ │ ├── search-options.ts │ │ │ └── team.model.ts │ │ ├── package.json │ │ └── service-test │ │ │ ├── service-test.component.html │ │ │ └── service-test.component.ts │ ├── package.json │ └── tsconfig.json └── profile │ ├── app │ ├── App_Resources │ │ ├── Android │ │ │ ├── AndroidManifest.xml │ │ │ ├── app.gradle │ │ │ ├── drawable-hdpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ ├── drawable-ldpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ ├── drawable-mdpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ ├── drawable-nodpi │ │ │ │ └── splash_screen.xml │ │ │ ├── drawable-xhdpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ ├── drawable-xxhdpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ ├── drawable-xxxhdpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ ├── values-v21 │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ └── values │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ └── iOS │ │ │ ├── Assets.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ ├── Contents.json │ │ │ │ ├── icon-29.png │ │ │ │ ├── icon-29@2x.png │ │ │ │ ├── icon-29@3x.png │ │ │ │ ├── icon-40.png │ │ │ │ ├── icon-40@2x.png │ │ │ │ ├── icon-40@3x.png │ │ │ │ ├── icon-60@2x.png │ │ │ │ ├── icon-60@3x.png │ │ │ │ ├── icon-76.png │ │ │ │ ├── icon-76@2x.png │ │ │ │ └── icon-83.5@2x.png │ │ │ ├── Contents.json │ │ │ ├── LaunchImage.launchimage │ │ │ │ ├── Contents.json │ │ │ │ ├── Default-568h@2x.png │ │ │ │ ├── Default-667h@2x.png │ │ │ │ ├── Default-736h@3x.png │ │ │ │ ├── Default-Landscape.png │ │ │ │ ├── Default-Landscape@2x.png │ │ │ │ ├── Default-Landscape@3x.png │ │ │ │ ├── Default-Portrait.png │ │ │ │ ├── Default-Portrait@2x.png │ │ │ │ ├── Default.png │ │ │ │ └── Default@2x.png │ │ │ ├── LaunchScreen.AspectFill.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── LaunchScreen-AspectFill.png │ │ │ │ └── LaunchScreen-AspectFill@2x.png │ │ │ └── LaunchScreen.Center.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── LaunchScreen-Center.png │ │ │ │ └── LaunchScreen-Center@2x.png │ │ │ ├── Info.plist │ │ │ ├── LaunchScreen.storyboard │ │ │ └── build.xcconfig │ ├── app.component.html │ ├── app.component.ts │ ├── app.css │ ├── app.module.ts │ ├── main.aot.ts │ ├── main.ts │ ├── package.json │ └── profile │ │ ├── profile.component.css │ │ ├── profile.component.html │ │ └── profile.component.ts │ ├── package.json │ └── tsconfig.json ├── solution ├── app │ ├── App_Resources │ │ ├── Android │ │ │ ├── AndroidManifest.xml │ │ │ ├── app.gradle │ │ │ ├── drawable-hdpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ ├── drawable-ldpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ ├── drawable-mdpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ ├── drawable-nodpi │ │ │ │ └── splash_screen.xml │ │ │ ├── drawable-xhdpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ ├── drawable-xxhdpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ ├── drawable-xxxhdpi │ │ │ │ ├── background.png │ │ │ │ ├── icon.png │ │ │ │ └── logo.png │ │ │ ├── values-v21 │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ └── values │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ └── iOS │ │ │ ├── Assets.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ ├── Contents.json │ │ │ │ ├── icon-29.png │ │ │ │ ├── icon-29@2x.png │ │ │ │ ├── icon-29@3x.png │ │ │ │ ├── icon-40.png │ │ │ │ ├── icon-40@2x.png │ │ │ │ ├── icon-40@3x.png │ │ │ │ ├── icon-60@2x.png │ │ │ │ ├── icon-60@3x.png │ │ │ │ ├── icon-76.png │ │ │ │ ├── icon-76@2x.png │ │ │ │ └── icon-83.5@2x.png │ │ │ ├── Contents.json │ │ │ ├── LaunchImage.launchimage │ │ │ │ ├── Contents.json │ │ │ │ ├── Default-568h@2x.png │ │ │ │ ├── Default-667h@2x.png │ │ │ │ ├── Default-736h@3x.png │ │ │ │ ├── Default-Landscape.png │ │ │ │ ├── Default-Landscape@2x.png │ │ │ │ ├── Default-Landscape@3x.png │ │ │ │ ├── Default-Portrait.png │ │ │ │ ├── Default-Portrait@2x.png │ │ │ │ ├── Default.png │ │ │ │ └── Default@2x.png │ │ │ ├── LaunchScreen.AspectFill.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── LaunchScreen-AspectFill.png │ │ │ │ └── LaunchScreen-AspectFill@2x.png │ │ │ └── LaunchScreen.Center.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── LaunchScreen-Center.png │ │ │ │ └── LaunchScreen-Center@2x.png │ │ │ ├── Info.plist │ │ │ ├── LaunchScreen.storyboard │ │ │ └── build.xcconfig │ ├── app.component.html │ ├── app.component.ts │ ├── app.css │ ├── app.module.ts │ ├── app.routing.ts │ ├── color │ │ ├── blue.component.html │ │ ├── blue.component.ts │ │ ├── color.component.css │ │ ├── color.component.html │ │ ├── color.component.ts │ │ ├── index.ts │ │ ├── red.component.html │ │ ├── red.component.ts │ │ ├── rgb.component.html │ │ └── rgb.component.ts │ ├── football.service.ts │ ├── football │ │ ├── competition-fixtures.component.html │ │ ├── competition-fixtures.component.ts │ │ ├── fixture.component.css │ │ ├── fixture.component.html │ │ ├── fixture.component.ts │ │ ├── league-table.component.html │ │ ├── league-table.component.ts │ │ ├── player.component.css │ │ ├── player.component.html │ │ ├── player.component.ts │ │ ├── tables.component.html │ │ ├── tables.component.ts │ │ ├── team.component.html │ │ └── team.component.ts │ ├── item │ │ ├── item-detail.component.html │ │ ├── item-detail.component.ts │ │ ├── item.service.ts │ │ ├── item.ts │ │ ├── items.component.html │ │ └── items.component.ts │ ├── main.aot.ts │ ├── main.ts │ ├── models │ │ ├── competition.model.ts │ │ ├── fixture.model.ts │ │ ├── football-factory.ts │ │ ├── index.ts │ │ ├── league-table.model.ts │ │ ├── player.model.ts │ │ ├── search-options.ts │ │ └── team.model.ts │ ├── offline-football.service.ts │ ├── package.json │ ├── plugins │ │ ├── wizard-profile.component.html │ │ └── wizard-profile.component.ts │ ├── profile │ │ ├── profile.component.css │ │ ├── profile.component.html │ │ └── profile.component.ts │ └── service-test │ │ ├── service-test.component.html │ │ └── service-test.component.ts ├── package.json └── tsconfig.json └── warmup ├── App_Resources ├── Android │ ├── app.gradle │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ └── res │ │ ├── drawable-hdpi │ │ ├── background.png │ │ ├── icon.png │ │ └── logo.png │ │ ├── drawable-ldpi │ │ ├── background.png │ │ ├── icon.png │ │ └── logo.png │ │ ├── drawable-mdpi │ │ ├── background.png │ │ ├── icon.png │ │ └── logo.png │ │ ├── drawable-nodpi │ │ └── splash_screen.xml │ │ ├── drawable-xhdpi │ │ ├── background.png │ │ ├── icon.png │ │ └── logo.png │ │ ├── drawable-xxhdpi │ │ ├── background.png │ │ ├── icon.png │ │ └── logo.png │ │ ├── drawable-xxxhdpi │ │ ├── background.png │ │ ├── icon.png │ │ └── logo.png │ │ ├── values-v21 │ │ ├── colors.xml │ │ └── styles.xml │ │ └── values │ │ ├── colors.xml │ │ └── styles.xml └── iOS │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── icon-1024.png │ │ ├── icon-29.png │ │ ├── icon-29@2x.png │ │ ├── icon-29@3x.png │ │ ├── icon-40.png │ │ ├── icon-40@2x.png │ │ ├── icon-40@3x.png │ │ ├── icon-60@2x.png │ │ ├── icon-60@3x.png │ │ ├── icon-76.png │ │ ├── icon-76@2x.png │ │ └── icon-83.5@2x.png │ ├── Contents.json │ ├── LaunchImage.launchimage │ │ ├── Contents.json │ │ ├── Default-1125h.png │ │ ├── Default-568h@2x.png │ │ ├── Default-667h@2x.png │ │ ├── Default-736h@3x.png │ │ ├── Default-Landscape-X.png │ │ ├── Default-Landscape.png │ │ ├── Default-Landscape@2x.png │ │ ├── Default-Landscape@3x.png │ │ ├── Default-Portrait.png │ │ ├── Default-Portrait@2x.png │ │ ├── Default.png │ │ └── Default@2x.png │ ├── LaunchScreen.AspectFill.imageset │ │ ├── Contents.json │ │ ├── LaunchScreen-AspectFill.png │ │ └── LaunchScreen-AspectFill@2x.png │ └── LaunchScreen.Center.imageset │ │ ├── Contents.json │ │ ├── LaunchScreen-Center.png │ │ └── LaunchScreen-Center@2x.png │ ├── Info.plist │ ├── LaunchScreen.storyboard │ └── build.xcconfig ├── angular.json ├── nsconfig.json ├── package.json ├── src ├── app.css ├── app │ ├── app-routing.module.ts │ ├── app.component.html │ ├── app.component.ts │ ├── app.module.ts │ ├── cocktail.service.ts │ ├── cocktail │ │ ├── cocktail-item │ │ │ ├── cocktail-item.component.css │ │ │ ├── cocktail-item.component.html │ │ │ └── cocktail-item.component.ts │ │ ├── cocktails │ │ │ ├── cocktails.component.css │ │ │ ├── cocktails.component.html │ │ │ └── cocktails.component.ts │ │ ├── recipe │ │ │ ├── recipe.component.css │ │ │ ├── recipe.component.html │ │ │ └── recipe.component.ts │ │ └── search │ │ │ ├── search.component.css │ │ │ ├── search.component.html │ │ │ └── search.component.ts │ ├── color │ │ ├── blue.component.html │ │ ├── blue.component.ts │ │ ├── color.component.css │ │ ├── color.component.html │ │ ├── color.component.ts │ │ ├── index.ts │ │ ├── red.component.html │ │ ├── red.component.ts │ │ ├── rgb.component.html │ │ └── rgb.component.ts │ ├── models │ │ ├── cocktail.model.ts │ │ ├── index.ts │ │ └── raw-cocktail.model.ts │ ├── plugins │ │ ├── wizard-profile.component.html │ │ └── wizard-profile.component.ts │ ├── profile │ │ ├── profile.component.css │ │ ├── profile.component.html │ │ └── profile.component.ts │ └── service-test │ │ ├── service-test.component.html │ │ └── service-test.component.ts ├── fonts │ ├── OpenSans-Bold.ttf │ ├── OpenSans-Italic.ttf │ ├── OpenSans-Regular.ttf │ ├── Pacifico-Regular.ttf │ ├── Roboto-Regular.ttf │ ├── fa-regular-400.ttf │ └── fa-solid-900.ttf ├── main.ts └── package.json ├── tsconfig.json ├── tsconfig.tns.json └── webpack.config.js /.gitignore: -------------------------------------------------------------------------------- 1 | .history/ 2 | 3 | demo/node_modules 4 | demo/platforms 5 | demo/hooks 6 | demo/app/**/*.js 7 | 8 | warmup/node_modules 9 | warmup/platforms 10 | warmup/hooks 11 | warmup/src/app/**/*.js 12 | warmup/src/main.js 13 | warmup/package-lock.json 14 | 15 | solution/node_modules 16 | solution/platforms 17 | solution/hooks 18 | solution/app/**/*.js 19 | 20 | playground/profile/node_modules 21 | playground/profile/platforms 22 | playground/profile/hooks 23 | playground/profile/app/**/*.js 24 | 25 | playground/color/node_modules 26 | playground/color/platforms 27 | playground/color/hooks 28 | playground/color/app/**/*.js 29 | 30 | playground/football/node_modules 31 | playground/football/platforms 32 | playground/football/hooks 33 | playground/football/app/**/*.js 34 | 35 | warmup-start 36 | warmup-end 37 | -------------------------------------------------------------------------------- /Introduction.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/Introduction.pptx -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # NativeScript Workshop 2 | 3 | In this repo you’ll find material for holding NativeScript workshops. 4 | 5 | ## Instructions 6 | 7 | Found a problem in [this workshop’s instructions](https://nativescript.github.io/workshop/)? The instructions live in this repo’s `docs/chapters` folder. The `docs` folder is a Jekyll site, so you can run it locally with the following commands (assuming you have [Jekyll installed](https://jekyllrb.com/docs/installation/)): 8 | 9 | ``` 10 | cd docs 11 | bundle exec jekyll serve 12 | ``` 13 | 14 | Alternatively just send a pull request with any content changes and we can figure it out. -------------------------------------------------------------------------------- /Warmup.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/Warmup.pptx -------------------------------------------------------------------------------- /demo/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "parser": "@typescript-eslint/parser", 3 | "parserOptions": { 4 | "sourceType": "module" 5 | }, 6 | "plugins": ["nativescript"], 7 | "rules": { 8 | "nativescript/no-short-imports": "error" 9 | } 10 | } 11 | 12 | -------------------------------------------------------------------------------- /demo/App_Resources/Android/app.gradle: -------------------------------------------------------------------------------- 1 | // Add your native dependencies here: 2 | 3 | // Uncomment to add recyclerview-v7 dependency 4 | //dependencies { 5 | // compile 'com.android.support:recyclerview-v7:+' 6 | //} 7 | 8 | android { 9 | defaultConfig { 10 | generatedDensities = [] 11 | applicationId = "org.nativescript.nativescriptworkshop" 12 | } 13 | aaptOptions { 14 | additionalParameters "--no-version-vectors" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /demo/App_Resources/Android/src/main/res/drawable-hdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/Android/src/main/res/drawable-hdpi/background.png -------------------------------------------------------------------------------- /demo/App_Resources/Android/src/main/res/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/Android/src/main/res/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /demo/App_Resources/Android/src/main/res/drawable-hdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/Android/src/main/res/drawable-hdpi/logo.png -------------------------------------------------------------------------------- /demo/App_Resources/Android/src/main/res/drawable-ldpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/Android/src/main/res/drawable-ldpi/background.png -------------------------------------------------------------------------------- /demo/App_Resources/Android/src/main/res/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/Android/src/main/res/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /demo/App_Resources/Android/src/main/res/drawable-ldpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/Android/src/main/res/drawable-ldpi/logo.png -------------------------------------------------------------------------------- /demo/App_Resources/Android/src/main/res/drawable-mdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/Android/src/main/res/drawable-mdpi/background.png -------------------------------------------------------------------------------- /demo/App_Resources/Android/src/main/res/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/Android/src/main/res/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /demo/App_Resources/Android/src/main/res/drawable-mdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/Android/src/main/res/drawable-mdpi/logo.png -------------------------------------------------------------------------------- /demo/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /demo/App_Resources/Android/src/main/res/drawable-xhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/Android/src/main/res/drawable-xhdpi/background.png -------------------------------------------------------------------------------- /demo/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png -------------------------------------------------------------------------------- /demo/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png -------------------------------------------------------------------------------- /demo/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png -------------------------------------------------------------------------------- /demo/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png -------------------------------------------------------------------------------- /demo/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png -------------------------------------------------------------------------------- /demo/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png -------------------------------------------------------------------------------- /demo/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png -------------------------------------------------------------------------------- /demo/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png -------------------------------------------------------------------------------- /demo/App_Resources/Android/src/main/res/values-v21/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3d5afe 4 | -------------------------------------------------------------------------------- /demo/App_Resources/Android/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #F5F5F5 4 | #757575 5 | #33B5E5 6 | #272734 7 | -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchScreen-AspectFill.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchScreen-AspectFill@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchScreen-Center.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchScreen-Center@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png -------------------------------------------------------------------------------- /demo/App_Resources/iOS/build.xcconfig: -------------------------------------------------------------------------------- 1 | // You can add custom settings here 2 | // for example you can uncomment the following line to force distribution code signing 3 | // CODE_SIGN_IDENTITY = iPhone Distribution 4 | // To build for device with XCode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html 5 | // DEVELOPMENT_TEAM = YOUR_TEAM_ID; 6 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 7 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 8 | -------------------------------------------------------------------------------- /demo/nativescript-ngx-fonticon-4.2.1.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/nativescript-ngx-fonticon-4.2.1.tgz -------------------------------------------------------------------------------- /demo/nsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "appResourcesPath": "App_Resources", 3 | "appPath": "src" 4 | } 5 | -------------------------------------------------------------------------------- /demo/petfinder-angular-service-1.0.3.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/petfinder-angular-service-1.0.3.tgz -------------------------------------------------------------------------------- /demo/references.d.ts: -------------------------------------------------------------------------------- 1 | /// Needed for autocompletion and compilation. -------------------------------------------------------------------------------- /demo/src/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /demo/src/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from "@angular/core"; 2 | 3 | @Component({ 4 | selector: "ns-app", 5 | templateUrl: "app.component.html", 6 | }) 7 | export class AppComponent { } 8 | -------------------------------------------------------------------------------- /demo/src/assets/barnyard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/src/assets/barnyard.png -------------------------------------------------------------------------------- /demo/src/assets/bird.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/src/assets/bird.png -------------------------------------------------------------------------------- /demo/src/assets/cat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/src/assets/cat.png -------------------------------------------------------------------------------- /demo/src/assets/dog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/src/assets/dog.png -------------------------------------------------------------------------------- /demo/src/assets/horse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/src/assets/horse.png -------------------------------------------------------------------------------- /demo/src/assets/pets.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/src/assets/pets.png -------------------------------------------------------------------------------- /demo/src/assets/pig.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/src/assets/pig.png -------------------------------------------------------------------------------- /demo/src/assets/reptile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/src/assets/reptile.png -------------------------------------------------------------------------------- /demo/src/assets/smallfurry.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/src/assets/smallfurry.png -------------------------------------------------------------------------------- /demo/src/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/src/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /demo/src/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/src/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /demo/src/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/src/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /demo/src/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/src/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /demo/src/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/src/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /demo/src/main.ts: -------------------------------------------------------------------------------- 1 | // this import should be first in order to load some required settings (like globals and reflect-metadata) 2 | import { platformNativeScriptDynamic } from "nativescript-angular/platform"; 3 | 4 | import { AppModule } from "./app.module"; 5 | 6 | platformNativeScriptDynamic().bootstrapModule(AppModule); 7 | -------------------------------------------------------------------------------- /demo/src/offline/pug-placeholder.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/src/offline/pug-placeholder.jpg -------------------------------------------------------------------------------- /demo/src/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "android": { 3 | "v8Flags": "--expose_gc" 4 | }, 5 | "main": "main.js", 6 | "name": "tns-template-hello-world-ng", 7 | "version": "2.5.0" 8 | } -------------------------------------------------------------------------------- /demo/src/pet-details/pet-details.component.css: -------------------------------------------------------------------------------- 1 | .petBackground { 2 | opacity: .75; 3 | } 4 | .petImage { 5 | clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); 6 | } 7 | .petDescription { 8 | padding: 10; 9 | } 10 | .fa { 11 | font-size: 40; 12 | } 13 | 14 | .small { 15 | font-size: 15; 16 | } 17 | 18 | .like:highlighter { 19 | color:#DD2AF3; 20 | } 21 | 22 | .like.favorite { 23 | color:#DD2AF3; 24 | } -------------------------------------------------------------------------------- /demo/src/pet-favorites/pet-favorites.component.css: -------------------------------------------------------------------------------- 1 | 2 | .petDescription { 3 | padding: 10; 4 | } 5 | .fa { 6 | font-size: 40; 7 | } 8 | .small { 9 | font-size: 15; 10 | } 11 | .like { 12 | color:#DD2AF3; 13 | } 14 | 15 | .card { 16 | margin: 5; 17 | color: white; 18 | vertical-align:top; 19 | background-color: #3EA0C0; 20 | border-width: 1; 21 | border-radius: 5; 22 | border-color: #353BA7; 23 | } -------------------------------------------------------------------------------- /demo/src/pet-results/pet-results.component.css: -------------------------------------------------------------------------------- 1 | ListView { 2 | border-radius: 5; 3 | margin: 5; 4 | } 5 | 6 | .petLabel { 7 | color: black; 8 | padding-left: 10; 9 | } -------------------------------------------------------------------------------- /demo/src/pet-results/pet-results.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /demo/src/pet-search/pet-search.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/src/pet-search/pet-search.component.css -------------------------------------------------------------------------------- /demo/src/platforms.android.css: -------------------------------------------------------------------------------- 1 | ListView { 2 | background-color: white; 3 | color: black; 4 | } -------------------------------------------------------------------------------- /demo/src/platforms.ios.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/demo/src/platforms.ios.css -------------------------------------------------------------------------------- /demo/src/select-modal/select-modal.component.css: -------------------------------------------------------------------------------- 1 | .modal { 2 | background-color: white; 3 | } 4 | 5 | .animalCard { 6 | background-color: #303772; 7 | width: 50%; 8 | color: white; 9 | padding-top: 10; 10 | margin-top: 10; 11 | border-radius: 3; 12 | } 13 | 14 | .animalImage{ 15 | padding: 10; 16 | margin-top: 10; 17 | } 18 | 19 | .animalLabel{ 20 | padding: 10; 21 | } -------------------------------------------------------------------------------- /demo/src/select-modal/select-modal.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /demo/src/select-modal/select-modal.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | 3 | import { ModalDialogParams } from "nativescript-angular/directives/dialogs"; 4 | 5 | @Component({ 6 | selector: 'my-select-modal', 7 | templateUrl: './select-modal.component.html', 8 | styleUrls: ['./select-modal.component.css'] 9 | }) 10 | export class SelectModalComponent implements OnInit{ 11 | public options: Array = []; 12 | 13 | constructor(private modal: ModalDialogParams) { 14 | } 15 | 16 | ngOnInit() { 17 | this.options = this.modal.context.options; 18 | } 19 | 20 | public close(value: string) { 21 | this.modal.closeCallback(value); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /demo/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "target": "es5", 5 | "experimentalDecorators": true, 6 | "emitDecoratorMetadata": true, 7 | "noEmitHelpers": true, 8 | "noEmitOnError": true, 9 | "skipLibCheck": true, 10 | "lib": [ 11 | "es6", 12 | "dom", 13 | "es2015.iterable" 14 | ], 15 | "baseUrl": ".", 16 | "paths": { 17 | "~/*": [ 18 | "src/*" 19 | ], 20 | "*": [ 21 | "./node_modules/*" 22 | ] 23 | } 24 | }, 25 | "exclude": [ 26 | "node_modules", 27 | "platforms" 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /demo/tsconfig.tns.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "module": "esNext", 5 | "moduleResolution": "node" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /docs/.gitignore: -------------------------------------------------------------------------------- 1 | _site 2 | .sass-cache 3 | .jekyll-metadata 4 | -------------------------------------------------------------------------------- /docs/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "editor.wrappingColumn": 0, 3 | "editor.quickSuggestions": false 4 | } -------------------------------------------------------------------------------- /docs/Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | gem 'github-pages', group: :jekyll_plugins -------------------------------------------------------------------------------- /docs/_config.yml: -------------------------------------------------------------------------------- 1 | markdown: kramdown 2 | exclude: 3 | - Gemfile 4 | - Gemfile.lock 5 | sass: 6 | style: :compressed -------------------------------------------------------------------------------- /docs/chapters/chapter10.md: -------------------------------------------------------------------------------- 1 | ## App Challenge Part 4 - EXTRA BONUS TIME 2 | 3 | Have you completed all requirements of the app challenge and still have time left? Good news! There’s still more fun to be had. 4 | 5 | Take whatever time you have left and implement a new feature for FurFriendster. Use your imagination! What feature does the best pet finding app on the market really need? 6 | 7 | If you’re having trouble coming up with good ideas, we have a few suggestions. 8 | 9 | * Adding favorites 10 | * Allow users to heart or start their favorite pets, and show those favorites in a new screen in your app. 11 | * A new theme 12 | * Try a different [color scheme](https://docs.nativescript.org/ui/theme#color-schemes) to give your app a whole new look. 13 | * Random pet 14 | * Give the user a way of seeing for a random pet. -------------------------------------------------------------------------------- /docs/chapters/chapter2.md: -------------------------------------------------------------------------------- 1 | ## Project setup 2 | 3 | The files for this part of the workshop are in the `/warmup` folder. Clone the repo and navigate to its `/warmup` folder by running the following commands. 4 | 5 | ``` 6 | git clone https://github.com/NativeScript/workshop.git 7 | cd workshop/warmup 8 | npm install 9 | ``` 10 | 11 | Next, run the project in the preview app. 12 | 13 | ``` 14 | tns preview 15 | ``` 16 | 17 | or, run the project in an emulator using one of the commands below. 18 | 19 | ``` 20 | tns run ios 21 | ``` 22 | 23 | Or 24 | 25 | ``` 26 | tns run android 27 | ``` 28 | -------------------------------------------------------------------------------- /docs/css/styles.scss: -------------------------------------------------------------------------------- 1 | --- 2 | # Front matter comment to ensure Jekyll properly reads file. 3 | --- 4 | 5 | @import "style"; 6 | -------------------------------------------------------------------------------- /docs/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/favicon.ico -------------------------------------------------------------------------------- /docs/fonts/OpenSans-Regular-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/fonts/OpenSans-Regular-webfont.eot -------------------------------------------------------------------------------- /docs/fonts/OpenSans-Regular-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/fonts/OpenSans-Regular-webfont.ttf -------------------------------------------------------------------------------- /docs/fonts/OpenSans-Regular-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/fonts/OpenSans-Regular-webfont.woff -------------------------------------------------------------------------------- /docs/fonts/OpenSans-Regular-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/fonts/OpenSans-Regular-webfont.woff2 -------------------------------------------------------------------------------- /docs/fonts/RobotoSlab-Light-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/fonts/RobotoSlab-Light-webfont.eot -------------------------------------------------------------------------------- /docs/fonts/RobotoSlab-Light-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/fonts/RobotoSlab-Light-webfont.ttf -------------------------------------------------------------------------------- /docs/fonts/RobotoSlab-Light-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/fonts/RobotoSlab-Light-webfont.woff -------------------------------------------------------------------------------- /docs/fonts/RobotoSlab-Light-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/fonts/RobotoSlab-Light-webfont.woff2 -------------------------------------------------------------------------------- /docs/fonts/RobotoSlab-Regular-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/fonts/RobotoSlab-Regular-webfont.eot -------------------------------------------------------------------------------- /docs/fonts/RobotoSlab-Regular-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/fonts/RobotoSlab-Regular-webfont.ttf -------------------------------------------------------------------------------- /docs/fonts/RobotoSlab-Regular-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/fonts/RobotoSlab-Regular-webfont.woff -------------------------------------------------------------------------------- /docs/fonts/RobotoSlab-Regular-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/fonts/RobotoSlab-Regular-webfont.woff2 -------------------------------------------------------------------------------- /docs/images/chapter7/0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/images/chapter7/0.png -------------------------------------------------------------------------------- /docs/images/chapter7/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/images/chapter7/1.png -------------------------------------------------------------------------------- /docs/images/chapter7/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/images/chapter7/2.png -------------------------------------------------------------------------------- /docs/images/chapter7/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/images/chapter7/3.png -------------------------------------------------------------------------------- /docs/images/chapter8/master-detail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/images/chapter8/master-detail.png -------------------------------------------------------------------------------- /docs/images/chapter9/0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/images/chapter9/0.png -------------------------------------------------------------------------------- /docs/images/menu.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /docs/images/noise.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/images/noise.png -------------------------------------------------------------------------------- /docs/images/vscode-configure-debugger.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/images/vscode-configure-debugger.gif -------------------------------------------------------------------------------- /docs/images/vscode-icon-debug.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/images/vscode-icon-debug.png -------------------------------------------------------------------------------- /docs/images/vscode-icon-gear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/images/vscode-icon-gear.png -------------------------------------------------------------------------------- /docs/images/vscode-nsext-enable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/images/vscode-nsext-enable.png -------------------------------------------------------------------------------- /docs/images/vscode-nsext-install.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/images/vscode-nsext-install.png -------------------------------------------------------------------------------- /docs/images/vscode-snippets-mac.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/images/vscode-snippets-mac.png -------------------------------------------------------------------------------- /docs/images/vscode-snippets-win.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/images/vscode-snippets-win.png -------------------------------------------------------------------------------- /docs/images/vscode-using-snippets.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/images/vscode-using-snippets.gif -------------------------------------------------------------------------------- /docs/images/warmup-01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/images/warmup-01.png -------------------------------------------------------------------------------- /docs/images/warmup-02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/images/warmup-02.png -------------------------------------------------------------------------------- /docs/images/warmup-cocktail-details.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/images/warmup-cocktail-details.png -------------------------------------------------------------------------------- /docs/images/warmup-cocktail-list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/images/warmup-cocktail-list.png -------------------------------------------------------------------------------- /docs/images/warmup-dataform.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/images/warmup-dataform.png -------------------------------------------------------------------------------- /docs/images/warmup-http.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/images/warmup-http.png -------------------------------------------------------------------------------- /docs/images/warmup-service-test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/images/warmup-service-test.png -------------------------------------------------------------------------------- /docs/images/warmup-theme-01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/docs/images/warmup-theme-01.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/Android/app.gradle: -------------------------------------------------------------------------------- 1 | // Add your native dependencies here: 2 | 3 | // Uncomment to add recyclerview-v7 dependency 4 | //dependencies { 5 | // compile 'com.android.support:recyclerview-v7:+' 6 | //} 7 | 8 | android { 9 | defaultConfig { 10 | generatedDensities = [] 11 | applicationId = "__PACKAGE__" 12 | } 13 | aaptOptions { 14 | additionalParameters "--no-version-vectors" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /playground/color/app/App_Resources/Android/drawable-hdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/Android/drawable-hdpi/background.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/Android/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/Android/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/Android/drawable-hdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/Android/drawable-hdpi/logo.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/Android/drawable-ldpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/Android/drawable-ldpi/background.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/Android/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/Android/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/Android/drawable-ldpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/Android/drawable-ldpi/logo.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/Android/drawable-mdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/Android/drawable-mdpi/background.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/Android/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/Android/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/Android/drawable-mdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/Android/drawable-mdpi/logo.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/Android/drawable-nodpi/splash_screen.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /playground/color/app/App_Resources/Android/drawable-xhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/Android/drawable-xhdpi/background.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/Android/drawable-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/Android/drawable-xhdpi/icon.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/Android/drawable-xhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/Android/drawable-xhdpi/logo.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/Android/drawable-xxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/Android/drawable-xxhdpi/background.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/Android/drawable-xxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/Android/drawable-xxhdpi/icon.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/Android/drawable-xxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/Android/drawable-xxhdpi/logo.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/Android/drawable-xxxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/Android/drawable-xxxhdpi/background.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/Android/drawable-xxxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/Android/drawable-xxxhdpi/icon.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/Android/drawable-xxxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/Android/drawable-xxxhdpi/logo.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/Android/values-v21/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3d5afe 4 | -------------------------------------------------------------------------------- /playground/color/app/App_Resources/Android/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #F5F5F5 4 | #757575 5 | #33B5E5 6 | #272734 7 | -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchScreen-AspectFill.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchScreen-AspectFill@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchScreen-Center.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchScreen-Center@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/color/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png -------------------------------------------------------------------------------- /playground/color/app/App_Resources/iOS/build.xcconfig: -------------------------------------------------------------------------------- 1 | // You can add custom settings here 2 | // for example you can uncomment the following line to force distribution code signing 3 | // CODE_SIGN_IDENTITY = iPhone Distribution 4 | // To build for device with Xcode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html 5 | // DEVELOPMENT_TEAM = YOUR_TEAM_ID; 6 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 7 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 8 | -------------------------------------------------------------------------------- /playground/color/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /playground/color/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'ns-app', 5 | templateUrl: 'app.component.html', 6 | }) 7 | 8 | export class AppComponent { } 9 | -------------------------------------------------------------------------------- /playground/color/app/app.css: -------------------------------------------------------------------------------- 1 | /* 2 | In NativeScript, the app.css file is where you place CSS rules that 3 | you would like to apply to your entire application. Check out 4 | http://docs.nativescript.org/ui/styling for a full list of the CSS 5 | selectors and properties you can use to style UI components. 6 | 7 | /* 8 | In many cases you may want to use the NativeScript core theme instead 9 | of writing your own CSS rules. For a full list of class names in the theme 10 | refer to http://docs.nativescript.org/ui/theme. 11 | */ 12 | @import 'nativescript-theme-core/css/core.light.css'; 13 | -------------------------------------------------------------------------------- /playground/color/app/app.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core'; 2 | import { NativeScriptModule } from 'nativescript-angular/nativescript.module'; 3 | import { AppRoutingModule } from './app.routing'; 4 | import { AppComponent } from './app.component'; 5 | 6 | import { ColorComponent, BlueComponent, RedComponent, RGBComponent } from './color' 7 | 8 | @NgModule({ 9 | bootstrap: [ 10 | AppComponent 11 | ], 12 | imports: [ 13 | NativeScriptModule, 14 | AppRoutingModule 15 | ], 16 | declarations: [ 17 | AppComponent, 18 | ColorComponent, 19 | BlueComponent, 20 | RedComponent, 21 | RGBComponent 22 | ], 23 | providers: [ 24 | ], 25 | schemas: [ 26 | NO_ERRORS_SCHEMA 27 | ] 28 | }) 29 | export class AppModule { } 30 | -------------------------------------------------------------------------------- /playground/color/app/app.routing.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { NativeScriptRouterModule } from 'nativescript-angular/router'; 3 | import { Routes } from '@angular/router'; 4 | 5 | import { ColorComponent, BlueComponent, RedComponent, RGBComponent } from './color' 6 | 7 | const routes: Routes = [ 8 | { path: '', redirectTo: '/color', pathMatch: 'full' }, 9 | { path: 'color', children: [ 10 | { path: '', component: ColorComponent }, 11 | { path: 'blue', component: BlueComponent }, 12 | //.. add red and rgb routes here 13 | ]}, 14 | ]; 15 | 16 | @NgModule({ 17 | imports: [NativeScriptRouterModule.forRoot(routes)], 18 | exports: [NativeScriptRouterModule] 19 | }) 20 | export class AppRoutingModule { } -------------------------------------------------------------------------------- /playground/color/app/color/blue.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /playground/color/app/color/blue.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { ActivatedRoute } from '@angular/router'; 3 | import { RouterExtensions } from 'nativescript-angular'; 4 | 5 | @Component({ 6 | selector: 'my-blue', 7 | templateUrl: './color/blue.component.html', 8 | styleUrls: ['./color/color.component.css'] 9 | }) 10 | export class BlueComponent{ 11 | private pink: string = '#ff0088'; 12 | 13 | constructor(private router: RouterExtensions, private route: ActivatedRoute) { 14 | } 15 | 16 | goRed() { 17 | 18 | } 19 | 20 | goPink() { 21 | 22 | } 23 | 24 | goBack() { 25 | 26 | } 27 | 28 | goHome() { 29 | 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /playground/color/app/color/color.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 16 | 17 | 22 | 23 | 28 | 29 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /playground/color/app/color/color.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'my-color', 5 | templateUrl: './color/color.component.html', 6 | styleUrls: ['./color/color.component.css'] 7 | }) 8 | export class ColorComponent { 9 | } 10 | -------------------------------------------------------------------------------- /playground/color/app/color/index.ts: -------------------------------------------------------------------------------- 1 | export * from './color.component'; 2 | export * from './blue.component'; 3 | export * from './red.component'; 4 | export * from './rgb.component'; -------------------------------------------------------------------------------- /playground/color/app/color/red.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /playground/color/app/color/red.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { RouterExtensions } from 'nativescript-angular'; 3 | import { ActivatedRoute } from '@angular/router'; 4 | 5 | @Component({ 6 | selector: 'my-red', 7 | templateUrl: './color/red.component.html', 8 | styleUrls: ['./color/color.component.css'] 9 | }) 10 | export class RedComponent { 11 | 12 | constructor(private router: RouterExtensions, private route: ActivatedRoute) { 13 | } 14 | 15 | goBlue() { 16 | 17 | } 18 | 19 | goGray() { 20 | 21 | } 22 | 23 | goBack() { 24 | this.router.back(); 25 | } 26 | 27 | goHome() { 28 | this.router.navigate(['/color'], { clearHistory: true }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /playground/color/app/color/rgb.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /playground/color/app/main.aot.ts: -------------------------------------------------------------------------------- 1 | // this import should be first in order to load some required settings (like globals and reflect-metadata) 2 | import { platformNativeScript } from 'nativescript-angular/platform-static'; 3 | 4 | import { AppModuleNgFactory } from './app.module.ngfactory'; 5 | 6 | platformNativeScript().bootstrapModuleFactory(AppModuleNgFactory); 7 | -------------------------------------------------------------------------------- /playground/color/app/main.ts: -------------------------------------------------------------------------------- 1 | // this import should be first in order to load some required settings (like globals and reflect-metadata) 2 | import { platformNativeScriptDynamic } from 'nativescript-angular/platform'; 3 | 4 | import { AppModule } from './app.module'; 5 | 6 | // A traditional NativeScript application starts by initializing global objects, setting up global CSS rules, creating, and navigating to the main page. 7 | // Angular applications need to take care of their own initialization: modules, components, directives, routes, DI providers. 8 | // A NativeScript Angular app needs to make both paradigms work together, so we provide a wrapper platform object, platformNativeScriptDynamic, 9 | // that sets up a NativeScript application and can bootstrap the Angular framework. 10 | platformNativeScriptDynamic().bootstrapModule(AppModule); 11 | -------------------------------------------------------------------------------- /playground/color/app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "android": { 3 | "v8Flags": "--expose_gc" 4 | }, 5 | "main": "main.js", 6 | "name": "tns-template-hello-world-ng", 7 | "version": "3.1.2" 8 | } -------------------------------------------------------------------------------- /playground/color/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "target": "es5", 5 | "experimentalDecorators": true, 6 | "emitDecoratorMetadata": true, 7 | "noEmitHelpers": true, 8 | "noEmitOnError": true, 9 | "lib": [ 10 | "es6", 11 | "dom", 12 | "es2015.iterable" 13 | ], 14 | "baseUrl": ".", 15 | "paths": { 16 | "*": [ 17 | "./node_modules/tns-core-modules/*", 18 | "./node_modules/*" 19 | ] 20 | } 21 | }, 22 | "exclude": [ 23 | "node_modules", 24 | "platforms", 25 | "**/*.aot.ts" 26 | ] 27 | } -------------------------------------------------------------------------------- /playground/football/app/App_Resources/Android/app.gradle: -------------------------------------------------------------------------------- 1 | // Add your native dependencies here: 2 | 3 | // Uncomment to add recyclerview-v7 dependency 4 | //dependencies { 5 | // compile 'com.android.support:recyclerview-v7:+' 6 | //} 7 | 8 | android { 9 | defaultConfig { 10 | generatedDensities = [] 11 | applicationId = "org.nativescript.football" 12 | } 13 | aaptOptions { 14 | additionalParameters "--no-version-vectors" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /playground/football/app/App_Resources/Android/drawable-hdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/Android/drawable-hdpi/background.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/Android/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/Android/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/Android/drawable-hdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/Android/drawable-hdpi/logo.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/Android/drawable-ldpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/Android/drawable-ldpi/background.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/Android/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/Android/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/Android/drawable-ldpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/Android/drawable-ldpi/logo.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/Android/drawable-mdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/Android/drawable-mdpi/background.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/Android/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/Android/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/Android/drawable-mdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/Android/drawable-mdpi/logo.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/Android/drawable-nodpi/splash_screen.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /playground/football/app/App_Resources/Android/drawable-xhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/Android/drawable-xhdpi/background.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/Android/drawable-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/Android/drawable-xhdpi/icon.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/Android/drawable-xhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/Android/drawable-xhdpi/logo.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/Android/drawable-xxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/Android/drawable-xxhdpi/background.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/Android/drawable-xxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/Android/drawable-xxhdpi/icon.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/Android/drawable-xxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/Android/drawable-xxhdpi/logo.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/Android/drawable-xxxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/Android/drawable-xxxhdpi/background.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/Android/drawable-xxxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/Android/drawable-xxxhdpi/icon.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/Android/drawable-xxxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/Android/drawable-xxxhdpi/logo.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/Android/values-v21/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3d5afe 4 | -------------------------------------------------------------------------------- /playground/football/app/App_Resources/Android/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #F5F5F5 4 | #757575 5 | #33B5E5 6 | #272734 7 | -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchScreen-AspectFill.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchScreen-AspectFill@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchScreen-Center.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchScreen-Center@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png -------------------------------------------------------------------------------- /playground/football/app/App_Resources/iOS/build.xcconfig: -------------------------------------------------------------------------------- 1 | // You can add custom settings here 2 | // for example you can uncomment the following line to force distribution code signing 3 | // CODE_SIGN_IDENTITY = iPhone Distribution 4 | // To build for device with Xcode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html 5 | // DEVELOPMENT_TEAM = YOUR_TEAM_ID; 6 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 7 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 8 | -------------------------------------------------------------------------------- /playground/football/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /playground/football/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from "@angular/core"; 2 | 3 | @Component({ 4 | selector: "ns-app", 5 | templateUrl: "app.component.html", 6 | }) 7 | 8 | export class AppComponent { } 9 | -------------------------------------------------------------------------------- /playground/football/app/app.css: -------------------------------------------------------------------------------- 1 | /* 2 | In NativeScript, the app.css file is where you place CSS rules that 3 | you would like to apply to your entire application. Check out 4 | http://docs.nativescript.org/ui/styling for a full list of the CSS 5 | selectors and properties you can use to style UI components. 6 | 7 | /* 8 | In many cases you may want to use the NativeScript core theme instead 9 | of writing your own CSS rules. For a full list of class names in the theme 10 | refer to http://docs.nativescript.org/ui/theme. 11 | */ 12 | @import 'nativescript-theme-core/css/core.light.css'; 13 | -------------------------------------------------------------------------------- /playground/football/app/football/fixture.component.css: -------------------------------------------------------------------------------- 1 | .score { 2 | border-color: blue; 3 | color: blue; 4 | border-width:1; 5 | width: 20; 6 | text-align: center; 7 | padding: 2; 8 | } 9 | 10 | .in-play { 11 | color: red; 12 | } -------------------------------------------------------------------------------- /playground/football/app/football/fixture.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, Input, Output, EventEmitter } from '@angular/core'; 2 | import { Fixture } from '../models'; 3 | 4 | @Component({ 5 | selector: 'my-fixture', 6 | templateUrl: './football/fixture.component.html', 7 | styleUrls: ['./football/fixture.component.css'] 8 | }) 9 | export class FixtureComponent { 10 | public fixture: Fixture; 11 | 12 | public fakeDate: Date = new Date(); 13 | 14 | public displayScore(): boolean { 15 | // return this.fixture.status === 'FINISHED' || this.fixture.status === 'IN_PLAY' 16 | return false; 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /playground/football/app/football/player.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/football/app/football/player.component.css -------------------------------------------------------------------------------- /playground/football/app/football/player.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /playground/football/app/football/player.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { Player } from '../models'; 3 | 4 | @Component({ 5 | moduleId: module.id, 6 | selector: 'app-player', 7 | templateUrl: './player.component.html', 8 | styleUrls: ['./player.component.css'] 9 | }) 10 | export class PlayerComponent implements OnInit { 11 | public player: Player; 12 | 13 | constructor() { } 14 | 15 | ngOnInit() { } 16 | } 17 | -------------------------------------------------------------------------------- /playground/football/app/football/tables.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { Router } from '@angular/router'; 3 | 4 | import { Competition, LeagueTable } from '../models'; 5 | 6 | @Component({ 7 | selector: 'my-tables', 8 | templateUrl: './football/tables.component.html' 9 | }) 10 | export class TablesComponent { 11 | 12 | public PremierLeagueId: number = 445; 13 | public PrimeraDivisionId: number = 455; 14 | public BundesligaId: number = 452; 15 | public SerieAId: number = 456; 16 | public Ligue1Id: number = 450; 17 | public EredivisieId: number = 449; 18 | 19 | constructor(private router: Router) { 20 | } 21 | 22 | private onTeamTap(teamId: number) { 23 | console.log('::TablesComponent::onTeamTap::' + teamId); 24 | this.router.navigate(['/football/team', teamId]); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /playground/football/app/football/team.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /playground/football/app/main.aot.ts: -------------------------------------------------------------------------------- 1 | // this import should be first in order to load some required settings (like globals and reflect-metadata) 2 | import { platformNativeScript } from "nativescript-angular/platform-static"; 3 | 4 | import { AppModuleNgFactory } from "./app.module.ngfactory"; 5 | 6 | platformNativeScript().bootstrapModuleFactory(AppModuleNgFactory); 7 | -------------------------------------------------------------------------------- /playground/football/app/main.ts: -------------------------------------------------------------------------------- 1 | // this import should be first in order to load some required settings (like globals and reflect-metadata) 2 | import { platformNativeScriptDynamic } from "nativescript-angular/platform"; 3 | 4 | import { AppModule } from "./app.module"; 5 | 6 | // A traditional NativeScript application starts by initializing global objects, setting up global CSS rules, creating, and navigating to the main page. 7 | // Angular applications need to take care of their own initialization: modules, components, directives, routes, DI providers. 8 | // A NativeScript Angular app needs to make both paradigms work together, so we provide a wrapper platform object, platformNativeScriptDynamic, 9 | // that sets up a NativeScript application and can bootstrap the Angular framework. 10 | platformNativeScriptDynamic().bootstrapModule(AppModule); 11 | -------------------------------------------------------------------------------- /playground/football/app/models/competition.model.ts: -------------------------------------------------------------------------------- 1 | export interface Competition { 2 | id: number; 3 | caption: string; 4 | league: string; 5 | year: string; 6 | currentMatchday: number; 7 | numberOfMatchdays: number; 8 | numberOfTeams: number; 9 | numberOfGames: number; 10 | lastUpdated: string; 11 | } 12 | -------------------------------------------------------------------------------- /playground/football/app/models/fixture.model.ts: -------------------------------------------------------------------------------- 1 | export interface Fixture { 2 | fixtureId?: number; 3 | competitionId?: number; 4 | homeTeamId?: number; 5 | awayTeamId?: number; 6 | date: string; 7 | status: string; 8 | matchday: number; 9 | homeTeamName: string; 10 | awayTeamName: string; 11 | result?: Result; 12 | odds: Odds; 13 | } 14 | 15 | export interface Result { 16 | goalsHomeTeam?: number; 17 | goalsAwayTeam?: number; 18 | halfTime?: HalfTime; 19 | } 20 | 21 | export interface Odds { 22 | homeWin: number; 23 | draw: number; 24 | awayWin: number; 25 | } 26 | 27 | export interface HalfTime { 28 | goalsHomeTeam: number; 29 | goalsAwayTeam: number; 30 | } 31 | -------------------------------------------------------------------------------- /playground/football/app/models/index.ts: -------------------------------------------------------------------------------- 1 | export * from './competition.model'; 2 | export * from './league-table.model'; 3 | export * from './team.model'; 4 | export * from './player.model'; 5 | export * from './fixture.model'; 6 | export * from './search-options'; 7 | export * from './football-factory'; -------------------------------------------------------------------------------- /playground/football/app/models/player.model.ts: -------------------------------------------------------------------------------- 1 | export interface Player { 2 | name: string; 3 | position: string; 4 | jerseyNumber: number; 5 | dateOfBirth: string; 6 | nationality: string; 7 | contractUntil: string; 8 | marketValue: string; 9 | } -------------------------------------------------------------------------------- /playground/football/app/models/search-options.ts: -------------------------------------------------------------------------------- 1 | export interface FixtureSearchOptions { 2 | /** the index number of the rixture round. Should be between 1 and numberOfMatchdays for a given competition */ 3 | matchday?: number; 4 | 5 | /** The value of the timeFrame argument must start with either p(ast) or n(ext), representing a timeframe either in the past or future. 6 | * It is followed by a number in the range 1..99. It defaults to n7 in the fixture resource and is unset for fixture as a subresource. 7 | * For instance: p6 would return all fixtures in the last 6 days, whereas n23 would result in returning all fixtures in the next 23 days. 8 | */ 9 | timeFrame?: string; 10 | } -------------------------------------------------------------------------------- /playground/football/app/models/team.model.ts: -------------------------------------------------------------------------------- 1 | export interface Team { 2 | teamId: number; 3 | name: string; 4 | code: string; 5 | shortName: string; 6 | squadMarketValue: string; 7 | crestUrl: string; 8 | } 9 | -------------------------------------------------------------------------------- /playground/football/app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "android": { 3 | "v8Flags": "--expose_gc" 4 | }, 5 | "main": "main.js", 6 | "name": "tns-template-hello-world-ng", 7 | "version": "3.1.2" 8 | } -------------------------------------------------------------------------------- /playground/football/app/service-test/service-test.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /playground/football/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "target": "es5", 5 | "experimentalDecorators": true, 6 | "emitDecoratorMetadata": true, 7 | "noEmitHelpers": true, 8 | "noEmitOnError": true, 9 | "lib": [ 10 | "es6", 11 | "dom", 12 | "es2015.iterable" 13 | ], 14 | "baseUrl": ".", 15 | "paths": { 16 | "*": [ 17 | "./node_modules/tns-core-modules/*", 18 | "./node_modules/*" 19 | ] 20 | } 21 | }, 22 | "exclude": [ 23 | "node_modules", 24 | "platforms", 25 | "**/*.aot.ts" 26 | ] 27 | } -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/Android/app.gradle: -------------------------------------------------------------------------------- 1 | // Add your native dependencies here: 2 | 3 | // Uncomment to add recyclerview-v7 dependency 4 | //dependencies { 5 | // compile 'com.android.support:recyclerview-v7:+' 6 | //} 7 | 8 | android { 9 | defaultConfig { 10 | generatedDensities = [] 11 | applicationId = "__PACKAGE__" 12 | } 13 | aaptOptions { 14 | additionalParameters "--no-version-vectors" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/Android/drawable-hdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/Android/drawable-hdpi/background.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/Android/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/Android/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/Android/drawable-hdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/Android/drawable-hdpi/logo.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/Android/drawable-ldpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/Android/drawable-ldpi/background.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/Android/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/Android/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/Android/drawable-ldpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/Android/drawable-ldpi/logo.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/Android/drawable-mdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/Android/drawable-mdpi/background.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/Android/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/Android/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/Android/drawable-mdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/Android/drawable-mdpi/logo.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/Android/drawable-nodpi/splash_screen.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/Android/drawable-xhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/Android/drawable-xhdpi/background.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/Android/drawable-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/Android/drawable-xhdpi/icon.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/Android/drawable-xhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/Android/drawable-xhdpi/logo.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/Android/drawable-xxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/Android/drawable-xxhdpi/background.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/Android/drawable-xxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/Android/drawable-xxhdpi/icon.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/Android/drawable-xxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/Android/drawable-xxhdpi/logo.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/Android/drawable-xxxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/Android/drawable-xxxhdpi/background.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/Android/drawable-xxxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/Android/drawable-xxxhdpi/icon.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/Android/drawable-xxxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/Android/drawable-xxxhdpi/logo.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/Android/values-v21/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3d5afe 4 | -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/Android/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #F5F5F5 4 | #757575 5 | #33B5E5 6 | #272734 7 | -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchScreen-AspectFill.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchScreen-AspectFill@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchScreen-Center.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchScreen-Center@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/playground/profile/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png -------------------------------------------------------------------------------- /playground/profile/app/App_Resources/iOS/build.xcconfig: -------------------------------------------------------------------------------- 1 | // You can add custom settings here 2 | // for example you can uncomment the following line to force distribution code signing 3 | // CODE_SIGN_IDENTITY = iPhone Distribution 4 | // To build for device with Xcode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html 5 | // DEVELOPMENT_TEAM = YOUR_TEAM_ID; 6 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 7 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 8 | -------------------------------------------------------------------------------- /playground/profile/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /playground/profile/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'ns-app', 5 | templateUrl: 'app.component.html', 6 | }) 7 | 8 | export class AppComponent { } 9 | -------------------------------------------------------------------------------- /playground/profile/app/app.css: -------------------------------------------------------------------------------- 1 | /* 2 | In NativeScript, the app.css file is where you place CSS rules that 3 | you would like to apply to your entire application. Check out 4 | http://docs.nativescript.org/ui/styling for a full list of the CSS 5 | selectors and properties you can use to style UI components. 6 | 7 | /* 8 | In many cases you may want to use the NativeScript core theme instead 9 | of writing your own CSS rules. For a full list of class names in the theme 10 | refer to http://docs.nativescript.org/ui/theme. 11 | */ 12 | /* @import 'nativescript-theme-core/css/core.light.css'; */ 13 | @import 'nativescript-theme-core/css/forest.css'; 14 | /* @import 'nativescript-theme-core/css/ruby.css'; */ 15 | -------------------------------------------------------------------------------- /playground/profile/app/main.aot.ts: -------------------------------------------------------------------------------- 1 | // this import should be first in order to load some required settings (like globals and reflect-metadata) 2 | import { platformNativeScript } from 'nativescript-angular/platform-static'; 3 | 4 | import { AppModuleNgFactory } from './app.module.ngfactory'; 5 | 6 | platformNativeScript().bootstrapModuleFactory(AppModuleNgFactory); 7 | -------------------------------------------------------------------------------- /playground/profile/app/main.ts: -------------------------------------------------------------------------------- 1 | // this import should be first in order to load some required settings (like globals and reflect-metadata) 2 | import { platformNativeScriptDynamic } from 'nativescript-angular/platform'; 3 | 4 | import { AppModule } from './app.module'; 5 | 6 | // A traditional NativeScript application starts by initializing global objects, setting up global CSS rules, creating, and navigating to the main page. 7 | // Angular applications need to take care of their own initialization: modules, components, directives, routes, DI providers. 8 | // A NativeScript Angular app needs to make both paradigms work together, so we provide a wrapper platform object, platformNativeScriptDynamic, 9 | // that sets up a NativeScript application and can bootstrap the Angular framework. 10 | platformNativeScriptDynamic().bootstrapModule(AppModule); 11 | -------------------------------------------------------------------------------- /playground/profile/app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "android": { 3 | "v8Flags": "--expose_gc" 4 | }, 5 | "main": "main.js", 6 | "name": "tns-template-hello-world-ng", 7 | "version": "3.1.2" 8 | } -------------------------------------------------------------------------------- /playground/profile/app/profile/profile.component.css: -------------------------------------------------------------------------------- 1 | .danger-slider { 2 | background-color: red; 3 | } 4 | 5 | .zoom { 6 | animation-name: zoom; 7 | animation-duration: 2s; 8 | } 9 | 10 | @keyframes zoom { 11 | from { transform: scale(0.5, 0.5) } 12 | 40% { transform: scale(1.6, 1.6) } 13 | to { transform: scale(1.0,1.0) } 14 | } 15 | 16 | @keyframes spin { 17 | from { transform: rotate(-30) } 18 | 40% { transform: rotate(420) } 19 | to { transform: rotate(0)} 20 | } 21 | -------------------------------------------------------------------------------- /playground/profile/app/profile/profile.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /playground/profile/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "target": "es5", 5 | "experimentalDecorators": true, 6 | "emitDecoratorMetadata": true, 7 | "noEmitHelpers": true, 8 | "noEmitOnError": true, 9 | "lib": [ 10 | "es6", 11 | "dom", 12 | "es2015.iterable" 13 | ], 14 | "baseUrl": ".", 15 | "paths": { 16 | "*": [ 17 | "./node_modules/tns-core-modules/*", 18 | "./node_modules/*" 19 | ] 20 | } 21 | }, 22 | "exclude": [ 23 | "node_modules", 24 | "platforms", 25 | "**/*.aot.ts" 26 | ] 27 | } -------------------------------------------------------------------------------- /solution/app/App_Resources/Android/app.gradle: -------------------------------------------------------------------------------- 1 | // Add your native dependencies here: 2 | 3 | // Uncomment to add recyclerview-v7 dependency 4 | //dependencies { 5 | // compile 'com.android.support:recyclerview-v7:+' 6 | //} 7 | 8 | android { 9 | defaultConfig { 10 | generatedDensities = [] 11 | applicationId = "org.nativescript.solution" 12 | } 13 | aaptOptions { 14 | additionalParameters "--no-version-vectors" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /solution/app/App_Resources/Android/drawable-hdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/Android/drawable-hdpi/background.png -------------------------------------------------------------------------------- /solution/app/App_Resources/Android/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/Android/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /solution/app/App_Resources/Android/drawable-hdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/Android/drawable-hdpi/logo.png -------------------------------------------------------------------------------- /solution/app/App_Resources/Android/drawable-ldpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/Android/drawable-ldpi/background.png -------------------------------------------------------------------------------- /solution/app/App_Resources/Android/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/Android/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /solution/app/App_Resources/Android/drawable-ldpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/Android/drawable-ldpi/logo.png -------------------------------------------------------------------------------- /solution/app/App_Resources/Android/drawable-mdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/Android/drawable-mdpi/background.png -------------------------------------------------------------------------------- /solution/app/App_Resources/Android/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/Android/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /solution/app/App_Resources/Android/drawable-mdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/Android/drawable-mdpi/logo.png -------------------------------------------------------------------------------- /solution/app/App_Resources/Android/drawable-nodpi/splash_screen.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /solution/app/App_Resources/Android/drawable-xhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/Android/drawable-xhdpi/background.png -------------------------------------------------------------------------------- /solution/app/App_Resources/Android/drawable-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/Android/drawable-xhdpi/icon.png -------------------------------------------------------------------------------- /solution/app/App_Resources/Android/drawable-xhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/Android/drawable-xhdpi/logo.png -------------------------------------------------------------------------------- /solution/app/App_Resources/Android/drawable-xxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/Android/drawable-xxhdpi/background.png -------------------------------------------------------------------------------- /solution/app/App_Resources/Android/drawable-xxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/Android/drawable-xxhdpi/icon.png -------------------------------------------------------------------------------- /solution/app/App_Resources/Android/drawable-xxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/Android/drawable-xxhdpi/logo.png -------------------------------------------------------------------------------- /solution/app/App_Resources/Android/drawable-xxxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/Android/drawable-xxxhdpi/background.png -------------------------------------------------------------------------------- /solution/app/App_Resources/Android/drawable-xxxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/Android/drawable-xxxhdpi/icon.png -------------------------------------------------------------------------------- /solution/app/App_Resources/Android/drawable-xxxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/Android/drawable-xxxhdpi/logo.png -------------------------------------------------------------------------------- /solution/app/App_Resources/Android/values-v21/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3d5afe 4 | -------------------------------------------------------------------------------- /solution/app/App_Resources/Android/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #F5F5F5 4 | #757575 5 | #33B5E5 6 | #272734 7 | -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchScreen-AspectFill.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchScreen-AspectFill@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchScreen-Center.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchScreen-Center@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png -------------------------------------------------------------------------------- /solution/app/App_Resources/iOS/build.xcconfig: -------------------------------------------------------------------------------- 1 | // You can add custom settings here 2 | // for example you can uncomment the following line to force distribution code signing 3 | // CODE_SIGN_IDENTITY = iPhone Distribution 4 | // To build for device with Xcode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html 5 | // DEVELOPMENT_TEAM = YOUR_TEAM_ID; 6 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 7 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 8 | -------------------------------------------------------------------------------- /solution/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /solution/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'ns-app', 5 | templateUrl: 'app.component.html', 6 | }) 7 | export class AppComponent { } 8 | -------------------------------------------------------------------------------- /solution/app/app.css: -------------------------------------------------------------------------------- 1 | /* 2 | In NativeScript, the app.css file is where you place CSS rules that 3 | you would like to apply to your entire application. Check out 4 | http://docs.nativescript.org/ui/styling for a full list of the CSS 5 | selectors and properties you can use to style UI components. 6 | 7 | /* 8 | In many cases you may want to use the NativeScript core theme instead 9 | of writing your own CSS rules. For a full list of class names in the theme 10 | refer to http://docs.nativescript.org/ui/theme. 11 | */ 12 | /* @import 'nativescript-theme-core/css/core.light.css'; */ 13 | @import 'nativescript-theme-core/css/forest.css'; 14 | /* @import 'nativescript-theme-core/css/ruby.css'; */ 15 | -------------------------------------------------------------------------------- /solution/app/color/blue.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /solution/app/color/blue.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { ActivatedRoute } from '@angular/router'; 3 | import { RouterExtensions } from 'nativescript-angular'; 4 | 5 | @Component({ 6 | selector: 'my-blue', 7 | templateUrl: './color/blue.component.html', 8 | styleUrls: ['./color/color.component.css'] 9 | }) 10 | export class BlueComponent{ 11 | private pink: string = '#ff0088'; 12 | 13 | constructor(private router: RouterExtensions) { 14 | } 15 | 16 | goRed() { 17 | this.router.navigate(['/color/red']); 18 | } 19 | 20 | goPink() { 21 | this.router.navigate(['/color/rgb', this.pink]); 22 | } 23 | 24 | goBack() { 25 | this.router.back(); 26 | } 27 | 28 | goHome() { 29 | this.router.navigate(['/color'], { clearHistory: true }); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /solution/app/color/color.component.css: -------------------------------------------------------------------------------- 1 | .blue { 2 | background-color: blue; 3 | color: white; 4 | } 5 | 6 | .red { 7 | background-color: red; 8 | color: white; 9 | } 10 | 11 | .pink { 12 | background-color: #ff0088; 13 | color: white; 14 | } 15 | 16 | .gray { 17 | background-color: gray; 18 | color: white; 19 | } 20 | 21 | .bad { 22 | background-color: #bad; 23 | color: white; 24 | } 25 | 26 | /* styles with outline 27 | 28 | .blue { 29 | border-color: blue; 30 | color: blue; 31 | border-width:1; 32 | } 33 | 34 | .red { 35 | border-color: red; 36 | color: red; 37 | border-width:1; 38 | } 39 | 40 | .pink { 41 | border-color: #ff0088; 42 | color: #ff0088; 43 | border-width:1; 44 | } 45 | 46 | .gray { 47 | border-color: gray; 48 | color: gray; 49 | border-width:1; 50 | } 51 | 52 | .bad { 53 | border-color: #bad; 54 | color: #bad; 55 | border-width:1; 56 | }*/ -------------------------------------------------------------------------------- /solution/app/color/color.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'my-color', 5 | templateUrl: './color/color.component.html', 6 | styleUrls: ['./color/color.component.css'] 7 | }) 8 | export class ColorComponent { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /solution/app/color/index.ts: -------------------------------------------------------------------------------- 1 | export * from './color.component'; 2 | export * from './blue.component'; 3 | export * from './red.component'; 4 | export * from './rgb.component'; -------------------------------------------------------------------------------- /solution/app/color/red.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /solution/app/color/rgb.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /solution/app/football/fixture.component.css: -------------------------------------------------------------------------------- 1 | .score { 2 | border-color: blue; 3 | color: blue; 4 | border-width:1; 5 | width: 20; 6 | text-align: center; 7 | padding: 2; 8 | } 9 | 10 | .in-play { 11 | color: red; 12 | } -------------------------------------------------------------------------------- /solution/app/football/fixture.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /solution/app/football/fixture.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, Input, Output, EventEmitter } from '@angular/core'; 2 | import { Fixture } from '../models'; 3 | 4 | @Component({ 5 | selector: 'my-fixture', 6 | templateUrl: './football/fixture.component.html', 7 | styleUrls: ['./football/fixture.component.css'] 8 | }) 9 | export class FixtureComponent { 10 | @Input() fixture: Fixture; 11 | 12 | public displayScore(): boolean { 13 | return this.fixture.status === 'FINISHED' || this.fixture.status === 'IN_PLAY'; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /solution/app/football/player.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/solution/app/football/player.component.css -------------------------------------------------------------------------------- /solution/app/football/player.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /solution/app/football/player.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { Player } from '../models'; 3 | 4 | @Component({ 5 | moduleId: module.id, 6 | selector: 'app-player', 7 | templateUrl: './player.component.html', 8 | styleUrls: ['./player.component.css'] 9 | }) 10 | export class PlayerComponent implements OnInit { 11 | public player: Player; 12 | 13 | constructor() { } 14 | 15 | ngOnInit() { } 16 | } 17 | -------------------------------------------------------------------------------- /solution/app/football/tables.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { Router } from '@angular/router'; 3 | 4 | import { Competition, LeagueTable } from '../models'; 5 | 6 | @Component({ 7 | selector: 'my-tables', 8 | templateUrl: './football/tables.component.html' 9 | }) 10 | export class TablesComponent { 11 | public competitions: Competition[] = []; 12 | 13 | public PremierLeagueId: number = 445; 14 | public PrimeraDivisionId: number = 455; 15 | public BundesligaId: number = 452; 16 | public SerieAId: number = 456; 17 | public Ligue1Id: number = 450; 18 | public EredivisieId: number = 449; 19 | 20 | constructor(private router: Router) { 21 | } 22 | 23 | private onTeamTap(teamId: number) { 24 | console.log('::TablesComponent::onTeamTap::' + teamId); 25 | this.router.navigate(['/football/team', teamId]); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /solution/app/football/team.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /solution/app/item/item-detail.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /solution/app/item/item-detail.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from "@angular/core"; 2 | import { ActivatedRoute } from "@angular/router"; 3 | 4 | import { Item } from "./item"; 5 | import { ItemService } from "./item.service"; 6 | 7 | @Component({ 8 | selector: "ns-details", 9 | moduleId: module.id, 10 | templateUrl: "./item-detail.component.html", 11 | }) 12 | export class ItemDetailComponent implements OnInit { 13 | item: Item; 14 | 15 | constructor( 16 | private itemService: ItemService, 17 | private route: ActivatedRoute 18 | ) { } 19 | 20 | ngOnInit(): void { 21 | const id = +this.route.snapshot.params["id"]; 22 | this.item = this.itemService.getItem(id); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /solution/app/item/item.ts: -------------------------------------------------------------------------------- 1 | export class Item { 2 | id: number; 3 | name: string; 4 | role: string; 5 | } 6 | -------------------------------------------------------------------------------- /solution/app/item/items.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from "@angular/core"; 2 | 3 | import { Item } from "./item"; 4 | import { ItemService } from "./item.service"; 5 | 6 | @Component({ 7 | selector: "ns-items", 8 | moduleId: module.id, 9 | templateUrl: "./items.component.html", 10 | }) 11 | export class ItemsComponent implements OnInit { 12 | items: Item[]; 13 | 14 | // This pattern makes use of Angular’s dependency injection implementation to inject an instance of the ItemService service into this class. 15 | // Angular knows about this service because it is included in your app’s main NgModule, defined in app.module.ts. 16 | constructor(private itemService: ItemService) { } 17 | 18 | ngOnInit(): void { 19 | this.items = this.itemService.getItems(); 20 | } 21 | } -------------------------------------------------------------------------------- /solution/app/main.aot.ts: -------------------------------------------------------------------------------- 1 | // this import should be first in order to load some required settings (like globals and reflect-metadata) 2 | import { platformNativeScript } from "nativescript-angular/platform-static"; 3 | 4 | import { AppModuleNgFactory } from "./app.module.ngfactory"; 5 | 6 | platformNativeScript().bootstrapModuleFactory(AppModuleNgFactory); 7 | -------------------------------------------------------------------------------- /solution/app/main.ts: -------------------------------------------------------------------------------- 1 | // this import should be first in order to load some required settings (like globals and reflect-metadata) 2 | import { platformNativeScriptDynamic } from "nativescript-angular/platform"; 3 | 4 | import { AppModule } from "./app.module"; 5 | 6 | // A traditional NativeScript application starts by initializing global objects, setting up global CSS rules, creating, and navigating to the main page. 7 | // Angular applications need to take care of their own initialization: modules, components, directives, routes, DI providers. 8 | // A NativeScript Angular app needs to make both paradigms work together, so we provide a wrapper platform object, platformNativeScriptDynamic, 9 | // that sets up a NativeScript application and can bootstrap the Angular framework. 10 | platformNativeScriptDynamic().bootstrapModule(AppModule); 11 | -------------------------------------------------------------------------------- /solution/app/models/competition.model.ts: -------------------------------------------------------------------------------- 1 | export interface Competition { 2 | id: number; 3 | caption: string; 4 | league: string; 5 | year: string; 6 | currentMatchday: number; 7 | numberOfMatchdays: number; 8 | numberOfTeams: number; 9 | numberOfGames: number; 10 | lastUpdated: string; 11 | } 12 | -------------------------------------------------------------------------------- /solution/app/models/fixture.model.ts: -------------------------------------------------------------------------------- 1 | export interface Fixture { 2 | fixtureId?: number; 3 | competitionId?: number; 4 | homeTeamId?: number; 5 | awayTeamId?: number; 6 | date: string; 7 | status: string; 8 | matchday: number; 9 | homeTeamName: string; 10 | awayTeamName: string; 11 | result?: Result; 12 | odds: Odds; 13 | } 14 | 15 | export interface Result { 16 | goalsHomeTeam?: number; 17 | goalsAwayTeam?: number; 18 | halfTime?: HalfTime; 19 | } 20 | 21 | export interface Odds { 22 | homeWin: number; 23 | draw: number; 24 | awayWin: number; 25 | } 26 | 27 | export interface HalfTime { 28 | goalsHomeTeam: number; 29 | goalsAwayTeam: number; 30 | } 31 | -------------------------------------------------------------------------------- /solution/app/models/index.ts: -------------------------------------------------------------------------------- 1 | export * from './competition.model'; 2 | export * from './league-table.model'; 3 | export * from './team.model'; 4 | export * from './player.model'; 5 | export * from './fixture.model'; 6 | export * from './search-options'; 7 | export * from './football-factory'; -------------------------------------------------------------------------------- /solution/app/models/player.model.ts: -------------------------------------------------------------------------------- 1 | export interface Player { 2 | name: string; 3 | position: string; 4 | jerseyNumber: number; 5 | dateOfBirth: string; 6 | nationality: string; 7 | contractUntil: string; 8 | marketValue: string; 9 | } -------------------------------------------------------------------------------- /solution/app/models/search-options.ts: -------------------------------------------------------------------------------- 1 | export interface FixtureSearchOptions { 2 | /** the index number of the rixture round. Should be between 1 and numberOfMatchdays for a given competition */ 3 | matchday?: number; 4 | 5 | /** The value of the timeFrame argument must start with either p(ast) or n(ext), representing a timeframe either in the past or future. 6 | * It is followed by a number in the range 1..99. It defaults to n7 in the fixture resource and is unset for fixture as a subresource. 7 | * For instance: p6 would return all fixtures in the last 6 days, whereas n23 would result in returning all fixtures in the next 23 days. 8 | */ 9 | timeFrame?: string; 10 | } -------------------------------------------------------------------------------- /solution/app/models/team.model.ts: -------------------------------------------------------------------------------- 1 | export interface Team { 2 | teamId: number; 3 | name: string; 4 | code: string; 5 | shortName: string; 6 | squadMarketValue: string; 7 | crestUrl: string; 8 | } 9 | -------------------------------------------------------------------------------- /solution/app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "android": { 3 | "v8Flags": "--expose_gc" 4 | }, 5 | "main": "main.js", 6 | "name": "tns-template-hello-world-ng", 7 | "version": "3.1.2" 8 | } -------------------------------------------------------------------------------- /solution/app/profile/profile.component.css: -------------------------------------------------------------------------------- 1 | .danger-slider { 2 | background-color: red; 3 | } 4 | 5 | .zoom { 6 | animation-name: zoom; 7 | animation-duration: 2s; 8 | } 9 | 10 | @keyframes zoom { 11 | from { transform: scale(0.5, 0.5) } 12 | 40% { transform: scale(1.6, 1.6) } 13 | to { transform: scale(1.0,1.0) } 14 | } 15 | 16 | @keyframes spin { 17 | from { transform: rotate(-30) } 18 | 40% { transform: rotate(420) } 19 | to { transform: rotate(0)} 20 | } 21 | -------------------------------------------------------------------------------- /solution/app/service-test/service-test.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /solution/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "target": "es5", 5 | "experimentalDecorators": true, 6 | "emitDecoratorMetadata": true, 7 | "noEmitHelpers": true, 8 | "noEmitOnError": true, 9 | "lib": [ 10 | "es6", 11 | "dom", 12 | "es2015.iterable" 13 | ], 14 | "baseUrl": ".", 15 | "paths": { 16 | "*": [ 17 | "./node_modules/tns-core-modules/*", 18 | "./node_modules/*" 19 | ] 20 | } 21 | }, 22 | "exclude": [ 23 | "node_modules", 24 | "platforms", 25 | "**/*.aot.ts" 26 | ] 27 | } -------------------------------------------------------------------------------- /warmup/App_Resources/Android/app.gradle: -------------------------------------------------------------------------------- 1 | // Add your native dependencies here: 2 | 3 | // Uncomment to add recyclerview-v7 dependency 4 | //dependencies { 5 | // implementation 'com.android.support:recyclerview-v7:+' 6 | //} 7 | 8 | // If you want to add something to be applied before applying plugins' include.gradle files 9 | // e.g. project.ext.googlePlayServicesVersion = "15.0.1" 10 | // create a file named before-plugins.gradle in the current directory and place it there 11 | 12 | android { 13 | defaultConfig { 14 | generatedDensities = [] 15 | } 16 | aaptOptions { 17 | additionalParameters "--no-version-vectors" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /warmup/App_Resources/Android/src/main/res/drawable-hdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/Android/src/main/res/drawable-hdpi/background.png -------------------------------------------------------------------------------- /warmup/App_Resources/Android/src/main/res/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/Android/src/main/res/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /warmup/App_Resources/Android/src/main/res/drawable-hdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/Android/src/main/res/drawable-hdpi/logo.png -------------------------------------------------------------------------------- /warmup/App_Resources/Android/src/main/res/drawable-ldpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/Android/src/main/res/drawable-ldpi/background.png -------------------------------------------------------------------------------- /warmup/App_Resources/Android/src/main/res/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/Android/src/main/res/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /warmup/App_Resources/Android/src/main/res/drawable-ldpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/Android/src/main/res/drawable-ldpi/logo.png -------------------------------------------------------------------------------- /warmup/App_Resources/Android/src/main/res/drawable-mdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/Android/src/main/res/drawable-mdpi/background.png -------------------------------------------------------------------------------- /warmup/App_Resources/Android/src/main/res/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/Android/src/main/res/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /warmup/App_Resources/Android/src/main/res/drawable-mdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/Android/src/main/res/drawable-mdpi/logo.png -------------------------------------------------------------------------------- /warmup/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /warmup/App_Resources/Android/src/main/res/drawable-xhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/Android/src/main/res/drawable-xhdpi/background.png -------------------------------------------------------------------------------- /warmup/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png -------------------------------------------------------------------------------- /warmup/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png -------------------------------------------------------------------------------- /warmup/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png -------------------------------------------------------------------------------- /warmup/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png -------------------------------------------------------------------------------- /warmup/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png -------------------------------------------------------------------------------- /warmup/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png -------------------------------------------------------------------------------- /warmup/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png -------------------------------------------------------------------------------- /warmup/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png -------------------------------------------------------------------------------- /warmup/App_Resources/Android/src/main/res/values-v21/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3d5afe 4 | -------------------------------------------------------------------------------- /warmup/App_Resources/Android/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #F5F5F5 4 | #757575 5 | #33B5E5 6 | #272734 7 | -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchScreen-AspectFill.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchScreen-AspectFill@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchScreen-Center.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchScreen-Center@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png -------------------------------------------------------------------------------- /warmup/App_Resources/iOS/build.xcconfig: -------------------------------------------------------------------------------- 1 | // You can add custom settings here 2 | // for example you can uncomment the following line to force distribution code signing 3 | // CODE_SIGN_IDENTITY = iPhone Distribution 4 | // To build for device with Xcode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html 5 | // DEVELOPMENT_TEAM = YOUR_TEAM_ID; 6 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 7 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 8 | -------------------------------------------------------------------------------- /warmup/angular.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json", 3 | "version": 1, 4 | "newProjectRoot": "projects", 5 | "cli": { 6 | "defaultCollection": "@nativescript/schematics" 7 | }, 8 | "projects": { 9 | "hello-world": { 10 | "root": "", 11 | "sourceRoot": "src", 12 | "projectType": "application", 13 | "prefix": "ns" 14 | } 15 | }, 16 | "defaultProject": "hello-world" 17 | } 18 | -------------------------------------------------------------------------------- /warmup/nsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "appResourcesPath": "App_Resources", 3 | "appPath": "src" 4 | } -------------------------------------------------------------------------------- /warmup/src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /warmup/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'ns-app', 5 | moduleId: module.id, 6 | templateUrl: './app.component.html', 7 | }) 8 | export class AppComponent { } 9 | -------------------------------------------------------------------------------- /warmup/src/app/cocktail/cocktail-item/cocktail-item.component.css: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /warmup/src/app/cocktail/cocktail-item/cocktail-item.component.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /warmup/src/app/cocktail/cocktail-item/cocktail-item.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, Input } from '@angular/core'; 2 | import { CocktailOverviewRaw } from '../../models'; 3 | 4 | @Component({ 5 | selector: 'cocktail-item', 6 | templateUrl: './cocktail-item.component.html', 7 | styleUrls: ['./cocktail-item.component.css'], 8 | moduleId: module.id, 9 | }) 10 | export class CocktailItemComponent { 11 | 12 | constructor() { } 13 | } 14 | -------------------------------------------------------------------------------- /warmup/src/app/cocktail/cocktails/cocktails.component.css: -------------------------------------------------------------------------------- 1 | TextField { 2 | font-size: 20; 3 | color: #283593; 4 | padding: 8; 5 | padding-left: 15; 6 | } 7 | 8 | .selected { 9 | background-color: #e3f2fd; 10 | } 11 | 12 | .title { 13 | font-weight: bold; 14 | font-size: 24; 15 | text-align: center; 16 | padding: 10; 17 | color: white; 18 | background-color: #283593; 19 | } 20 | -------------------------------------------------------------------------------- /warmup/src/app/cocktail/recipe/recipe.component.css: -------------------------------------------------------------------------------- 1 | .title { 2 | font-size: 42; 3 | font-weight: bold; 4 | text-align: center; 5 | color: #283593; 6 | margin: 10 0 7 | } 8 | 9 | .instructions { 10 | font-size: 22; 11 | font-style: italic; 12 | margin: 0 30 0 30; 13 | } -------------------------------------------------------------------------------- /warmup/src/app/cocktail/recipe/recipe.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { ActivatedRoute } from '@angular/router'; 3 | 4 | import { CocktailService } from '../../cocktail.service'; 5 | import { CocktailRecipe } from '../../models/cocktail.model'; 6 | 7 | @Component({ 8 | selector: 'ns-recipe', 9 | templateUrl: './recipe.component.html', 10 | styleUrls: ['./recipe.component.css'], 11 | moduleId: module.id, 12 | }) 13 | export class RecipeComponent implements OnInit { 14 | public cocktail: CocktailRecipe; 15 | 16 | constructor( 17 | private cocktailService: CocktailService, 18 | private route: ActivatedRoute) { } 19 | 20 | ngOnInit() { 21 | const id = this.route.snapshot.params.id; 22 | 23 | this.cocktailService.getCocktail(id) 24 | .subscribe(cocktail => this.cocktail = cocktail); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /warmup/src/app/cocktail/search/search.component.css: -------------------------------------------------------------------------------- 1 | TextField { 2 | font-size: 20; 3 | color: #283593; 4 | padding: 8; 5 | padding-left: 15; 6 | } 7 | 8 | .selected { 9 | background-color: #e3f2fd; 10 | } 11 | 12 | .title { 13 | font-weight: bold; 14 | font-size: 24; 15 | text-align: center; 16 | padding: 10; 17 | color: white; 18 | background-color: #283593; 19 | } -------------------------------------------------------------------------------- /warmup/src/app/cocktail/search/search.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /warmup/src/app/color/blue.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /warmup/src/app/color/blue.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { ActivatedRoute } from '@angular/router'; 3 | import { RouterExtensions } from 'nativescript-angular'; 4 | 5 | @Component({ 6 | selector: 'my-blue', 7 | moduleId: module.id, 8 | templateUrl: './blue.component.html', 9 | styleUrls: ['./color.component.css'] 10 | }) 11 | export class BlueComponent{ 12 | private pink: string = '#ff0088'; 13 | 14 | constructor(private router: RouterExtensions, private route: ActivatedRoute) { 15 | } 16 | 17 | goRed() { 18 | 19 | } 20 | 21 | goPink() { 22 | 23 | } 24 | 25 | goBack() { 26 | 27 | } 28 | 29 | goHome() { 30 | 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /warmup/src/app/color/color.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 16 | 17 | 22 | 23 | 28 | 29 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /warmup/src/app/color/color.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'my-color', 5 | moduleId: module.id, 6 | templateUrl: './color.component.html', 7 | styleUrls: ['./color.component.css'] 8 | }) 9 | export class ColorComponent { 10 | } 11 | -------------------------------------------------------------------------------- /warmup/src/app/color/index.ts: -------------------------------------------------------------------------------- 1 | export * from './color.component'; 2 | export * from './blue.component'; 3 | export * from './red.component'; 4 | export * from './rgb.component'; -------------------------------------------------------------------------------- /warmup/src/app/color/red.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /warmup/src/app/color/red.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { RouterExtensions } from 'nativescript-angular'; 3 | import { ActivatedRoute } from '@angular/router'; 4 | 5 | @Component({ 6 | selector: 'my-red', 7 | moduleId: module.id, 8 | templateUrl: './red.component.html', 9 | styleUrls: ['./color.component.css'] 10 | }) 11 | export class RedComponent { 12 | 13 | constructor(private router: RouterExtensions, private route: ActivatedRoute) { 14 | } 15 | 16 | goBlue() { 17 | 18 | } 19 | 20 | goGray() { 21 | 22 | } 23 | 24 | goBack() { 25 | this.router.back(); 26 | } 27 | 28 | goHome() { 29 | this.router.navigate(['/color'], { clearHistory: true }); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /warmup/src/app/color/rgb.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /warmup/src/app/models/index.ts: -------------------------------------------------------------------------------- 1 | export * from './raw-cocktail.model'; 2 | export * from './cocktail.model'; 3 | -------------------------------------------------------------------------------- /warmup/src/app/profile/profile.component.css: -------------------------------------------------------------------------------- 1 | .danger-slider { 2 | background-color: red; 3 | } 4 | 5 | .zoom { 6 | animation-name: zoom; 7 | animation-duration: 2s; 8 | } 9 | 10 | @keyframes zoom { 11 | from { transform: scale(0.5, 0.5) } 12 | 40% { transform: scale(1.6, 1.6) } 13 | to { transform: scale(1.0,1.0) } 14 | } 15 | 16 | @keyframes spin { 17 | from { transform: rotate(-30) } 18 | 40% { transform: rotate(420) } 19 | to { transform: rotate(0)} 20 | } 21 | -------------------------------------------------------------------------------- /warmup/src/app/service-test/service-test.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /warmup/src/fonts/OpenSans-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/src/fonts/OpenSans-Bold.ttf -------------------------------------------------------------------------------- /warmup/src/fonts/OpenSans-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/src/fonts/OpenSans-Italic.ttf -------------------------------------------------------------------------------- /warmup/src/fonts/OpenSans-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/src/fonts/OpenSans-Regular.ttf -------------------------------------------------------------------------------- /warmup/src/fonts/Pacifico-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/src/fonts/Pacifico-Regular.ttf -------------------------------------------------------------------------------- /warmup/src/fonts/Roboto-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/src/fonts/Roboto-Regular.ttf -------------------------------------------------------------------------------- /warmup/src/fonts/fa-regular-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/src/fonts/fa-regular-400.ttf -------------------------------------------------------------------------------- /warmup/src/fonts/fa-solid-900.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/workshop/733fe6f8adb3512b0913c526f9ddee15c185b25a/warmup/src/fonts/fa-solid-900.ttf -------------------------------------------------------------------------------- /warmup/src/main.ts: -------------------------------------------------------------------------------- 1 | // this import should be first in order to load some required settings (like globals and reflect-metadata) 2 | import { platformNativeScriptDynamic } from 'nativescript-angular/platform'; 3 | 4 | import { AppModule } from './app/app.module'; 5 | 6 | // A traditional NativeScript application starts by initializing global objects, setting up global CSS rules, creating, and navigating to the main page. 7 | // Angular applications need to take care of their own initialization: modules, components, directives, routes, DI providers. 8 | // A NativeScript Angular app needs to make both paradigms work together, so we provide a wrapper platform object, platformNativeScriptDynamic, 9 | // that sets up a NativeScript application and can bootstrap the Angular framework. 10 | platformNativeScriptDynamic().bootstrapModule(AppModule); 11 | -------------------------------------------------------------------------------- /warmup/src/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "main": "main.js", 3 | "android": { 4 | "v8Flags": "--expose_gc" 5 | } 6 | } -------------------------------------------------------------------------------- /warmup/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "target": "es5", 5 | "experimentalDecorators": true, 6 | "emitDecoratorMetadata": true, 7 | "noEmitHelpers": true, 8 | "noEmitOnError": true, 9 | "lib": [ 10 | "es6", 11 | "dom", 12 | "es2015.iterable" 13 | ], 14 | "baseUrl": ".", 15 | "paths": { 16 | "~/*": [ 17 | "src/*" 18 | ], 19 | "*": [ 20 | "./node_modules/tns-core-modules/*", 21 | "./node_modules/*" 22 | ] 23 | } 24 | }, 25 | "exclude": [ 26 | "node_modules", 27 | "platforms" 28 | ] 29 | } -------------------------------------------------------------------------------- /warmup/tsconfig.tns.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "module": "esNext", 5 | "moduleResolution": "node" 6 | } 7 | } 8 | --------------------------------------------------------------------------------