├── .gitignore ├── .vscode ├── launch.json └── tasks.json ├── README.md ├── dnc.code-workspace ├── dnc.sln ├── mobile ├── .editorconfig ├── .github │ ├── CONTRIBUTING.md │ └── ISSUE_TEMPLATE.md ├── .gitignore ├── LICENSE ├── README.md ├── config.xml ├── ionic.config.json ├── package-lock.json ├── package.json ├── resources │ ├── android │ │ ├── icon │ │ │ ├── drawable-hdpi-icon.png │ │ │ ├── drawable-ldpi-icon.png │ │ │ ├── drawable-mdpi-icon.png │ │ │ ├── drawable-xhdpi-icon.png │ │ │ ├── drawable-xxhdpi-icon.png │ │ │ └── drawable-xxxhdpi-icon.png │ │ └── splash │ │ │ ├── drawable-land-hdpi-screen.png │ │ │ ├── drawable-land-ldpi-screen.png │ │ │ ├── drawable-land-mdpi-screen.png │ │ │ ├── drawable-land-xhdpi-screen.png │ │ │ ├── drawable-land-xxhdpi-screen.png │ │ │ ├── drawable-land-xxxhdpi-screen.png │ │ │ ├── drawable-port-hdpi-screen.png │ │ │ ├── drawable-port-ldpi-screen.png │ │ │ ├── drawable-port-mdpi-screen.png │ │ │ ├── drawable-port-xhdpi-screen.png │ │ │ ├── drawable-port-xxhdpi-screen.png │ │ │ └── drawable-port-xxxhdpi-screen.png │ ├── icon.psd │ ├── icon.psd.md5 │ ├── ios │ │ ├── icon │ │ │ ├── icon-1024.png │ │ │ ├── icon-40.png │ │ │ ├── icon-40@2x.png │ │ │ ├── icon-40@3x.png │ │ │ ├── icon-50.png │ │ │ ├── icon-50@2x.png │ │ │ ├── icon-60.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 │ │ │ ├── icon-small.png │ │ │ ├── icon-small@2x.png │ │ │ ├── icon-small@3x.png │ │ │ ├── icon.png │ │ │ └── icon@2x.png │ │ └── splash │ │ │ ├── Default-568h@2x~iphone.png │ │ │ ├── Default-667h.png │ │ │ ├── Default-736h.png │ │ │ ├── Default-Landscape-736h.png │ │ │ ├── Default-Landscape@2x~ipad.png │ │ │ ├── Default-Landscape@~ipadpro.png │ │ │ ├── Default-Landscape~ipad.png │ │ │ ├── Default-Portrait@2x~ipad.png │ │ │ ├── Default-Portrait@~ipadpro.png │ │ │ ├── Default-Portrait~ipad.png │ │ │ ├── Default@2x~iphone.png │ │ │ ├── Default@2x~universal~anyany.png │ │ │ └── Default~iphone.png │ ├── screenshots │ │ ├── AboutPage.png │ │ ├── AccountPage.png │ │ ├── LoginPage.png │ │ ├── MapPage.png │ │ ├── ScheduleFilterPage.png │ │ ├── SchedulePage.png │ │ ├── SessionDetailPage.png │ │ ├── SignupPage.png │ │ ├── SpeakerDetailPage.png │ │ ├── SpeakerListPage.png │ │ └── TutorialPage.png │ ├── splash.png │ └── splash.png.md5 ├── src │ ├── app │ │ ├── app.component.ts │ │ ├── app.module.ts │ │ ├── app.scss │ │ ├── app.template.html │ │ └── main.ts │ ├── assets │ │ ├── data │ │ │ └── data.json │ │ └── img │ │ │ ├── appicon.png │ │ │ ├── appicon.svg │ │ │ ├── ica-slidebox-img-1.png │ │ │ ├── ica-slidebox-img-2.png │ │ │ ├── ica-slidebox-img-3.png │ │ │ ├── ica-slidebox-img-4.png │ │ │ ├── ionic-logo-white.svg │ │ │ └── speakers │ │ │ ├── bear.jpg │ │ │ ├── cheetah.jpg │ │ │ ├── duck.jpg │ │ │ ├── eagle.jpg │ │ │ ├── elephant.jpg │ │ │ ├── giraffe.jpg │ │ │ ├── iguana.jpg │ │ │ ├── kitten.jpg │ │ │ ├── lion.jpg │ │ │ ├── mouse.jpg │ │ │ ├── puppy.jpg │ │ │ ├── rabbit.jpg │ │ │ └── turtle.jpg │ ├── index.html │ ├── interfaces │ │ └── user-options.ts │ ├── manifest.json │ ├── pages │ │ ├── about-popover │ │ │ └── about-popover.ts │ │ ├── about │ │ │ ├── about.html │ │ │ ├── about.scss │ │ │ └── about.ts │ │ ├── account │ │ │ ├── account.html │ │ │ ├── account.scss │ │ │ └── account.ts │ │ ├── login │ │ │ ├── login.html │ │ │ ├── login.scss │ │ │ └── login.ts │ │ ├── map │ │ │ ├── map.html │ │ │ ├── map.scss │ │ │ └── map.ts │ │ ├── schedule-filter │ │ │ ├── schedule-filter.html │ │ │ ├── schedule-filter.scss │ │ │ └── schedule-filter.ts │ │ ├── schedule │ │ │ ├── schedule.html │ │ │ ├── schedule.scss │ │ │ └── schedule.ts │ │ ├── session-detail │ │ │ ├── session-detail.html │ │ │ └── session-detail.ts │ │ ├── signup │ │ │ ├── signup.html │ │ │ ├── signup.scss │ │ │ └── signup.ts │ │ ├── speaker-detail │ │ │ ├── speaker-detail.html │ │ │ ├── speaker-detail.scss │ │ │ └── speaker-detail.ts │ │ ├── speaker-list │ │ │ ├── speaker-list.html │ │ │ ├── speaker-list.scss │ │ │ └── speaker-list.ts │ │ ├── support │ │ │ ├── support.html │ │ │ ├── support.scss │ │ │ └── support.ts │ │ ├── tabs-page │ │ │ ├── tabs-page.html │ │ │ ├── tabs-page.scss │ │ │ └── tabs-page.ts │ │ └── tutorial │ │ │ ├── tutorial.html │ │ │ ├── tutorial.scss │ │ │ └── tutorial.ts │ ├── providers │ │ ├── conference-data.ts │ │ └── user-data.ts │ ├── service-worker.js │ └── theme │ │ └── variables.scss ├── tsconfig.json ├── tslint.json └── www │ └── .gitignore ├── model ├── Class1.cs ├── Migrations │ ├── 20180222021936_InitialCreate.Designer.cs │ ├── 20180222021936_InitialCreate.cs │ ├── 20180222024140_AddEmployee.Designer.cs │ ├── 20180222024140_AddEmployee.cs │ ├── 20180222171837_UpdatedEmployee.Designer.cs │ ├── 20180222171837_UpdatedEmployee.cs │ └── dncContextModelSnapshot.cs ├── Models │ └── Employee.cs ├── dncContext.cs └── model.csproj └── webapi ├── Controllers ├── EmployeeController.cs └── ValuesController.cs ├── Managers └── dncPersistenceManager.cs ├── Program.cs ├── Startup.cs ├── appsettings.Development.json ├── appsettings.json └── webapi.csproj /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Ionic/npm buid files 2 | *~ 3 | *.sw[mnpcod] 4 | *.log 5 | *.lock 6 | *.tmp 7 | *.tmp.* 8 | log.txt 9 | *.sublime-project 10 | *.sublime-workspace 11 | 12 | .idea/ 13 | .sourcemaps/ 14 | .vscode/ 15 | .sass-cache/ 16 | .versions/ 17 | coverage/ 18 | dist/ 19 | node_modules/ 20 | tmp/ 21 | temp/ 22 | $RECYCLE.BIN/ 23 | 24 | .DS_Store 25 | Thumbs.db 26 | UserInterfaceState.xcuserstate 27 | .env 28 | 29 | .package.tmp.json 30 | 31 | src/themes/version.scss 32 | scripts/e2e/webpackEntryPoints.json 33 | scripts/build/e2e-generated-tsconfig.json 34 | *.css.ts 35 | 36 | # demo stuff 37 | demos/node_modules 38 | demos/polyfills 39 | demos/css 40 | demos/fonts 41 | demos/src/**/*.js 42 | demos/src/**/*.map 43 | demos/src/**/*.ngfactory.ts 44 | demos/src/**/*.d.ts 45 | demos/src/**/*.metadata.json 46 | demos/src/**/*.css.shim.ts 47 | 48 | 49 | 50 | 51 | ## Ignore Visual Studio temporary files, build results, and 52 | ## files generated by popular Visual Studio add-ons. 53 | 54 | # User-specific files 55 | *.suo 56 | *.user 57 | *.userosscache 58 | *.sln.docstates 59 | 60 | # User-specific files (MonoDevelop/Xamarin Studio) 61 | *.userprefs 62 | 63 | # Build results 64 | [Dd]ebug/ 65 | [Dd]ebugPublic/ 66 | [Rr]elease/ 67 | [Rr]eleases/ 68 | x64/ 69 | x86/ 70 | bld/ 71 | [Bb]in/ 72 | [Oo]bj/ 73 | [Ll]og/ 74 | 75 | # Visual Studio 2015 cache/options directory 76 | .vs/ 77 | # Uncomment if you have tasks that create the project's static files in wwwroot 78 | #wwwroot/ 79 | 80 | # MSTest test Results 81 | [Tt]est[Rr]esult*/ 82 | [Bb]uild[Ll]og.* 83 | 84 | # NUNIT 85 | *.VisualState.xml 86 | TestResult.xml 87 | 88 | # Build Results of an ATL Project 89 | [Dd]ebugPS/ 90 | [Rr]eleasePS/ 91 | dlldata.c 92 | 93 | # DNX 94 | project.lock.json 95 | project.fragment.lock.json 96 | artifacts/ 97 | 98 | *_i.c 99 | *_p.c 100 | *_i.h 101 | *.ilk 102 | *.meta 103 | *.obj 104 | *.pch 105 | *.pdb 106 | *.pgc 107 | *.pgd 108 | *.rsp 109 | *.sbr 110 | *.tlb 111 | *.tli 112 | *.tlh 113 | *.tmp 114 | *.tmp_proj 115 | *.log 116 | *.vspscc 117 | *.vssscc 118 | .builds 119 | *.pidb 120 | *.svclog 121 | *.scc 122 | 123 | # Chutzpah Test files 124 | _Chutzpah* 125 | 126 | # Visual C++ cache files 127 | ipch/ 128 | *.aps 129 | *.ncb 130 | *.opendb 131 | *.opensdf 132 | *.sdf 133 | *.cachefile 134 | *.VC.db 135 | *.VC.VC.opendb 136 | 137 | # Visual Studio profiler 138 | *.psess 139 | *.vsp 140 | *.vspx 141 | *.sap 142 | 143 | # TFS 2012 Local Workspace 144 | $tf/ 145 | 146 | # Guidance Automation Toolkit 147 | *.gpState 148 | 149 | # ReSharper is a .NET coding add-in 150 | _ReSharper*/ 151 | *.[Rr]e[Ss]harper 152 | *.DotSettings.user 153 | 154 | # JustCode is a .NET coding add-in 155 | .JustCode 156 | 157 | # TeamCity is a build add-in 158 | _TeamCity* 159 | 160 | # DotCover is a Code Coverage Tool 161 | *.dotCover 162 | 163 | # NCrunch 164 | _NCrunch_* 165 | .*crunch*.local.xml 166 | nCrunchTemp_* 167 | 168 | # MightyMoose 169 | *.mm.* 170 | AutoTest.Net/ 171 | 172 | # Web workbench (sass) 173 | .sass-cache/ 174 | 175 | # Installshield output folder 176 | [Ee]xpress/ 177 | 178 | # DocProject is a documentation generator add-in 179 | DocProject/buildhelp/ 180 | DocProject/Help/*.HxT 181 | DocProject/Help/*.HxC 182 | DocProject/Help/*.hhc 183 | DocProject/Help/*.hhk 184 | DocProject/Help/*.hhp 185 | DocProject/Help/Html2 186 | DocProject/Help/html 187 | 188 | # Click-Once directory 189 | publish/ 190 | 191 | # Publish Web Output 192 | *.[Pp]ublish.xml 193 | *.azurePubxml 194 | # TODO: Comment the next line if you want to checkin your web deploy settings 195 | # but database connection strings (with potential passwords) will be unencrypted 196 | #*.pubxml 197 | *.publishproj 198 | 199 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 200 | # checkin your Azure Web App publish settings, but sensitive information contained 201 | # in these scripts will be unencrypted 202 | PublishScripts/ 203 | 204 | # NuGet Packages 205 | *.nupkg 206 | # The packages folder can be ignored because of Package Restore 207 | **/packages/* 208 | # except build/, which is used as an MSBuild target. 209 | !**/packages/build/ 210 | # Uncomment if necessary however generally it will be regenerated when needed 211 | #!**/packages/repositories.config 212 | # NuGet v3's project.json files produces more ignoreable files 213 | *.nuget.props 214 | *.nuget.targets 215 | 216 | # Microsoft Azure Build Output 217 | csx/ 218 | *.build.csdef 219 | 220 | # Microsoft Azure Emulator 221 | ecf/ 222 | rcf/ 223 | 224 | # Windows Store app package directories and files 225 | AppPackages/ 226 | BundleArtifacts/ 227 | Package.StoreAssociation.xml 228 | _pkginfo.txt 229 | 230 | # Visual Studio cache files 231 | # files ending in .cache can be ignored 232 | *.[Cc]ache 233 | # but keep track of directories ending in .cache 234 | !*.[Cc]ache/ 235 | 236 | # Others 237 | ClientBin/ 238 | ~$* 239 | *~ 240 | *.dbmdl 241 | *.dbproj.schemaview 242 | *.jfm 243 | *.pfx 244 | *.publishsettings 245 | node_modules/ 246 | orleans.codegen.cs 247 | 248 | # Since there are multiple workflows, uncomment next line to ignore bower_components 249 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 250 | #bower_components/ 251 | 252 | # RIA/Silverlight projects 253 | Generated_Code/ 254 | 255 | # Backup & report files from converting an old project file 256 | # to a newer Visual Studio version. Backup files are not needed, 257 | # because we have git ;-) 258 | _UpgradeReport_Files/ 259 | Backup*/ 260 | UpgradeLog*.XML 261 | UpgradeLog*.htm 262 | 263 | # SQL Server files 264 | *.mdf 265 | *.ldf 266 | 267 | # Business Intelligence projects 268 | *.rdl.data 269 | *.bim.layout 270 | *.bim_*.settings 271 | 272 | # Microsoft Fakes 273 | FakesAssemblies/ 274 | 275 | # GhostDoc plugin setting file 276 | *.GhostDoc.xml 277 | 278 | # Node.js Tools for Visual Studio 279 | .ntvs_analysis.dat 280 | 281 | # Visual Studio 6 build log 282 | *.plg 283 | 284 | # Visual Studio 6 workspace options file 285 | *.opt 286 | 287 | # Visual Studio LightSwitch build output 288 | **/*.HTMLClient/GeneratedArtifacts 289 | **/*.DesktopClient/GeneratedArtifacts 290 | **/*.DesktopClient/ModelManifest.xml 291 | **/*.Server/GeneratedArtifacts 292 | **/*.Server/ModelManifest.xml 293 | _Pvt_Extensions 294 | 295 | # Paket dependency manager 296 | .paket/paket.exe 297 | paket-files/ 298 | 299 | # FAKE - F# Make 300 | .fake/ 301 | 302 | # JetBrains Rider 303 | .idea/ 304 | *.sln.iml 305 | 306 | # CodeRush 307 | .cr/ 308 | 309 | # Python Tools for Visual Studio (PTVS) 310 | __pycache__/ 311 | *.pyc -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to find out which attributes exist for C# debugging 3 | // Use hover for the description of the existing attributes 4 | // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "name": ".NET Core Launch (web)", 9 | "type": "coreclr", 10 | "request": "launch", 11 | "preLaunchTask": "build", 12 | // If you have changed target frameworks, make sure to update the program path. 13 | "program": "${workspaceFolder}/webapi/bin/Debug/netcoreapp2.0/webapi.dll", 14 | "args": [], 15 | "cwd": "${workspaceFolder}/webapi", 16 | "stopAtEntry": false, 17 | "internalConsoleOptions": "openOnSessionStart", 18 | "launchBrowser": { 19 | "enabled": true, 20 | "args": "${auto-detect-url}", 21 | "windows": { 22 | "command": "cmd.exe", 23 | "args": "/C start ${auto-detect-url}" 24 | }, 25 | "osx": { 26 | "command": "open" 27 | }, 28 | "linux": { 29 | "command": "xdg-open" 30 | } 31 | }, 32 | "env": { 33 | "ASPNETCORE_ENVIRONMENT": "Development" 34 | }, 35 | "sourceFileMap": { 36 | "/Views": "${workspaceFolder}/Views" 37 | } 38 | }, 39 | { 40 | "name": ".NET Core Attach", 41 | "type": "coreclr", 42 | "request": "attach", 43 | "processId": "${command:pickProcess}" 44 | } 45 | ] 46 | } -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "2.0.0", 3 | "tasks": [ 4 | { 5 | "label": "build", 6 | "command": "dotnet", 7 | "type": "process", 8 | "args": [ 9 | "build", 10 | "${workspaceFolder}/webapi/webapi.csproj" 11 | ], 12 | "problemMatcher": "$msCompile" 13 | } 14 | ] 15 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # DotNet Core WebApi Breeze Example 2 | 3 | * git clone https://github.com/mikemichaelis/dnc 4 | * cd dnc 5 | * dotnet restore 6 | * cd model 7 | * dotnet ef database update -s ../webapi/webapi.csproj 8 | * cd ../webapi 9 | * dotnet run 10 | 11 | * http://localhost:5000/api/Values 12 | * http://localhost:5000/breeze/Employee/Get -------------------------------------------------------------------------------- /dnc.code-workspace: -------------------------------------------------------------------------------- 1 | { 2 | "folders": [ 3 | { 4 | "path": "." 5 | } 6 | ], 7 | "settings": {} 8 | } -------------------------------------------------------------------------------- /dnc.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.26124.0 5 | MinimumVisualStudioVersion = 15.0.26124.0 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "model", "model\model.csproj", "{191F39D8-B6E2-44A3-BCDB-F941C9BA5B11}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "webapi", "webapi\webapi.csproj", "{B7A90A06-8DB0-496F-B0E6-15FB95B08AC4}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|Any CPU = Debug|Any CPU 13 | Debug|x64 = Debug|x64 14 | Debug|x86 = Debug|x86 15 | Release|Any CPU = Release|Any CPU 16 | Release|x64 = Release|x64 17 | Release|x86 = Release|x86 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 23 | {191F39D8-B6E2-44A3-BCDB-F941C9BA5B11}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 24 | {191F39D8-B6E2-44A3-BCDB-F941C9BA5B11}.Debug|Any CPU.Build.0 = Debug|Any CPU 25 | {191F39D8-B6E2-44A3-BCDB-F941C9BA5B11}.Debug|x64.ActiveCfg = Debug|x64 26 | {191F39D8-B6E2-44A3-BCDB-F941C9BA5B11}.Debug|x64.Build.0 = Debug|x64 27 | {191F39D8-B6E2-44A3-BCDB-F941C9BA5B11}.Debug|x86.ActiveCfg = Debug|x86 28 | {191F39D8-B6E2-44A3-BCDB-F941C9BA5B11}.Debug|x86.Build.0 = Debug|x86 29 | {191F39D8-B6E2-44A3-BCDB-F941C9BA5B11}.Release|Any CPU.ActiveCfg = Release|Any CPU 30 | {191F39D8-B6E2-44A3-BCDB-F941C9BA5B11}.Release|Any CPU.Build.0 = Release|Any CPU 31 | {191F39D8-B6E2-44A3-BCDB-F941C9BA5B11}.Release|x64.ActiveCfg = Release|x64 32 | {191F39D8-B6E2-44A3-BCDB-F941C9BA5B11}.Release|x64.Build.0 = Release|x64 33 | {191F39D8-B6E2-44A3-BCDB-F941C9BA5B11}.Release|x86.ActiveCfg = Release|x86 34 | {191F39D8-B6E2-44A3-BCDB-F941C9BA5B11}.Release|x86.Build.0 = Release|x86 35 | {B7A90A06-8DB0-496F-B0E6-15FB95B08AC4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 36 | {B7A90A06-8DB0-496F-B0E6-15FB95B08AC4}.Debug|Any CPU.Build.0 = Debug|Any CPU 37 | {B7A90A06-8DB0-496F-B0E6-15FB95B08AC4}.Debug|x64.ActiveCfg = Debug|x64 38 | {B7A90A06-8DB0-496F-B0E6-15FB95B08AC4}.Debug|x64.Build.0 = Debug|x64 39 | {B7A90A06-8DB0-496F-B0E6-15FB95B08AC4}.Debug|x86.ActiveCfg = Debug|x86 40 | {B7A90A06-8DB0-496F-B0E6-15FB95B08AC4}.Debug|x86.Build.0 = Debug|x86 41 | {B7A90A06-8DB0-496F-B0E6-15FB95B08AC4}.Release|Any CPU.ActiveCfg = Release|Any CPU 42 | {B7A90A06-8DB0-496F-B0E6-15FB95B08AC4}.Release|Any CPU.Build.0 = Release|Any CPU 43 | {B7A90A06-8DB0-496F-B0E6-15FB95B08AC4}.Release|x64.ActiveCfg = Release|x64 44 | {B7A90A06-8DB0-496F-B0E6-15FB95B08AC4}.Release|x64.Build.0 = Release|x64 45 | {B7A90A06-8DB0-496F-B0E6-15FB95B08AC4}.Release|x86.ActiveCfg = Release|x86 46 | {B7A90A06-8DB0-496F-B0E6-15FB95B08AC4}.Release|x86.Build.0 = Release|x86 47 | EndGlobalSection 48 | EndGlobal 49 | -------------------------------------------------------------------------------- /mobile/.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs 2 | # editorconfig.org 3 | 4 | root = true 5 | 6 | [*] 7 | indent_style = space 8 | indent_size = 2 9 | 10 | # We recommend you to keep these unchanged 11 | end_of_line = lf 12 | charset = utf-8 13 | trim_trailing_whitespace = true 14 | insert_final_newline = true 15 | 16 | [*.md] 17 | trim_trailing_whitespace = false -------------------------------------------------------------------------------- /mobile/.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to the Ionic Conference Application 2 | 3 | Thank you for taking the time to contribute! :tada::+1: 4 | 5 | The following is a set of guidelines for contributing to the conference app. These are just guidelines, not rules, use your best judgment and feel free to propose changes to this document in a pull request. 6 | 7 | ## Table of Contents 8 | - [How To Contribute](#how-to-contribute) 9 | - [Reporting Issues](#reporting-issues) 10 | - [Before Submitting an Issue](#before-submitting-an-issue) 11 | - [Determining the Repository](#determining-the-repository) 12 | - [Submitting the Issue](#submitting-the-issue) 13 | - [Submitting a Pull Request](#submitting-a-pull-request) 14 | - [Guidelines for Submitting](#guidelines-for-submitting) 15 | - [Code Style](#code-style) 16 | 17 | ## How To Contribute 18 | 19 | ### Reporting Issues 20 | 21 | Before submitting an issue, please go through [the list below](#before-submitting-an-issue) as you might find a solution to your issue. 22 | 23 | #### Before Submitting an Issue 24 | 25 | * Make sure you get the latest version of the code and run through the [Getting Started](https://github.com/ionic-team/ionic-conference-app#getting-started) steps to see if this resolves your issue. 26 | * Check the [forum](https://forum.ionicframework.com) for similar questions and answers. 27 | * Go through [all issues](https://github.com/ionic-team/ionic-conference-app/issues?utf8=%E2%9C%93&q=is%3Aissue) on this repository to see if the issue has already been created. It could have been closed with a resolution, so check closed issues, too. 28 | * Chat with us in the [#ionic-v2](https://ionic-worldwide.slack.com/messages/ionic-v2/) channel on [Slack](http://ionicworldwide.herokuapp.com/) to see if we can find a solution to the problem! 29 | * [Determine which repository](#determining-the-repository) the problem should be reported in. 30 | 31 | 32 | #### Determining the Repository 33 | 34 | There are several repositories being used for Ionic, which makes it difficult to determine which one to report an issue to. Don't worry if you aren't sure, we can always move it! 35 | 36 | * The [Ionic repository](https://github.com/ionic-team/ionic) is a repository for all things related to the Ionic Framework. If you are able to reproduce the issue in any of the Ionic starters (or an existing project), you'll want to submit the issue [here](http://ionicframework.com/submit-issue/). 37 | * The [Ionic CLI repository](https://github.com/ionic-team/ionic-cli) contains all of the code that allows you to run `ionic` commands from a terminal window. It is safe to put any issues [here](https://github.com/ionic-team/ionic-cli/issues) that relate to running an `ionic` command. 38 | * [This repository](https://github.com/ionic-team/ionic-conference-app) is a demo of the Ionic 2 Framework. If you find an issue with this app that does not occur on [a new app](http://ionicframework.com/docs/v2/getting-started/installation/), please submit the issue [here](https://github.com/ionic-team/ionic-conference-app/issues). 39 | 40 | 41 | #### Submitting the Issue 42 | 43 | * **Use a clear and descriptive title** for the issue to identify the problem. This makes it easier for others to find. 44 | * **Describe the exact steps to reproduce the problem** with as many details as needed. 45 | * **Provide your configuration** by running `ionic info` in a terminal from *within* the project folder and pasting this information in the issue. 46 | 47 | ### Submitting a Pull Request 48 | 49 | #### Guidelines for Submitting 50 | 51 | When in doubt, keep your pull requests small. To give a PR the best chance of getting accepted, do not bundle more than one "feature" or bug fix per PR. Doing so makes it very hard to accept it if one of the fixes has issues. 52 | 53 | It's always best to create two smaller PRs than one big one. 54 | 55 | Talk to us before creating a PR that refactors the code or directory structure of the project. This project is constantly changing to reflect the latest version of Ionic 2.0 so sometimes it will be in the process of getting fixed. 56 | 57 | #### Code Style 58 | 59 | Make sure to follow the existing code style as much as possible. 60 | 61 | * No underscores prefixing JS functions. 62 | * Use flat Sass. 63 | * **Don't** use [BEM conventions](https://css-tricks.com/bem-101/). 64 | * Avoid nesting selectors. This is done to make it easier for users without Sass experience to understand and read. 65 | -------------------------------------------------------------------------------- /mobile/.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 6 | 7 | **I'm submitting a ...** (check one with "x") 8 | [ ] bug report 9 | [ ] feature request 10 | [ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/ 11 | 12 | **Current behavior:** 13 | 14 | 15 | **Expected behavior:** 16 | 17 | 18 | **Steps to reproduce:** 19 | 23 | 24 | **Related code:** 25 | 26 | ``` 27 | insert any relevant code here 28 | ``` 29 | 30 | **Other information:** 31 | 32 | 33 | **Ionic info:** (run `ionic info` from a terminal/cmd prompt and paste output below): 34 | 35 | ``` 36 | insert the output from ionic info here 37 | ``` 38 | 39 | -------------------------------------------------------------------------------- /mobile/.gitignore: -------------------------------------------------------------------------------- 1 | # Specifies intentionally untracked files to ignore when using Git 2 | # http://git-scm.com/docs/gitignore 3 | 4 | *~ 5 | *.sw[mnpcod] 6 | *.log 7 | *.tmp 8 | *.tmp.* 9 | log.txt 10 | *.sublime-project 11 | *.sublime-workspace 12 | .vscode/ 13 | npm-debug.log* 14 | 15 | .idea/ 16 | .sourcemaps/ 17 | .sass-cache/ 18 | .tmp/ 19 | .versions/ 20 | coverage/ 21 | dist/ 22 | node_modules/ 23 | tmp/ 24 | temp/ 25 | hooks/ 26 | platforms/ 27 | plugins/ 28 | plugins/android.json 29 | plugins/ios.json 30 | $RECYCLE.BIN/ 31 | 32 | .DS_Store 33 | Thumbs.db 34 | UserInterfaceState.xcuserstate 35 | -------------------------------------------------------------------------------- /mobile/LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | APPENDIX: How to apply the Apache License to your work. 180 | 181 | To apply the Apache License to your work, attach the following 182 | boilerplate notice, with the fields enclosed by brackets "[]" 183 | replaced with your own identifying information. (Don't include 184 | the brackets!) The text should be enclosed in the appropriate 185 | comment syntax for the file format. We also recommend that a 186 | file or class name and description of purpose be included on the 187 | same "printed page" as the copyright notice for easier 188 | identification within third-party archives. 189 | 190 | Copyright 2015 Drifty Co. 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | you may not use this file except in compliance with the License. 194 | You may obtain a copy of the License at 195 | 196 | http://www.apache.org/licenses/LICENSE-2.0 197 | 198 | Unless required by applicable law or agreed to in writing, software 199 | distributed under the License is distributed on an "AS IS" BASIS, 200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 | See the License for the specific language governing permissions and 202 | limitations under the License. 203 | -------------------------------------------------------------------------------- /mobile/README.md: -------------------------------------------------------------------------------- 1 | # Ionic Conference Application 2 | 3 | This is purely a demo of Ionic with TypeScript. It is still in development. 4 | 5 | 6 | ## Important! 7 | **There is not an actual Ionic Conference at this time.** This project is just to show off Ionic components in a real-world application. Please go through the steps in [CONTRIBUTING.md](https://github.com/ionic-team/ionic-conference-app/blob/master/.github/CONTRIBUTING.md) before submitting an issue. 8 | 9 | 10 | ## Table of Contents 11 | - [Getting Started](#getting-started) 12 | - [Contributing](#contributing) 13 | - [Use Cases](#use-cases) 14 | - [App Preview](#app-preview) 15 | - [File Structure of App](#file-structure-of-app) 16 | 17 | 18 | ## Getting Started 19 | 20 | * [Download the installer](https://nodejs.org/) for Node.js 6 or greater. 21 | * Install the ionic CLI globally: `npm install -g ionic` 22 | * Clone this repository: `git clone https://github.com/ionic-team/ionic-conference-app.git`. 23 | * Run `npm install` from the project root. 24 | * Run `ionic serve` in a terminal from the project root. 25 | * Profit. :tada: 26 | 27 | _Note: You may need to add “sudo” in front of any global commands to install the utilities._ 28 | 29 | ## Contributing 30 | See [CONTRIBUTING.md](https://github.com/ionic-team/ionic-conference-app/blob/master/.github/CONTRIBUTING.md) :tada::+1: 31 | 32 | 33 | ## Use Cases 34 | 35 | * Action Sheet - [ [template](https://github.com/ionic-team/ionic-conference-app/blob/master/src/pages/speaker-list/speaker-list.html) | [code](https://github.com/ionic-team/ionic-conference-app/blob/master/src/pages/speaker-list/speaker-list.ts) ] 36 | * Alert - [ [code](https://github.com/ionic-team/ionic-conference-app/blob/master/src/pages/schedule/schedule.ts) ] 37 | * Cards - [ [template](https://github.com/ionic-team/ionic-conference-app/blob/master/src/pages/speaker-list/speaker-list.html) ] 38 | * Datetime - [ [template](https://github.com/ionic-team/ionic-conference-app/blob/master/src/pages/about/about.html) ] 39 | * Grid - [ [template](https://github.com/ionic-team/ionic-conference-app/blob/master/src/pages/login/login.html) ] 40 | * Inputs - [ [template](https://github.com/ionic-team/ionic-conference-app/blob/master/src/pages/login/login.html) ] 41 | * Items (Sliding) - [ [template](https://github.com/ionic-team/ionic-conference-app/blob/master/src/pages/schedule/schedule.html) | [code](https://github.com/ionic-team/ionic-conference-app/blob/master/src/pages/schedule/schedule.ts) ] 42 | * Menu - [ [template](https://github.com/ionic-team/ionic-conference-app/blob/master/src/app/app.template.html) | 43 | [code](https://github.com/ionic-team/ionic-conference-app/blob/master/src/app/app.component.ts) ] 44 | * Modal - [ [template](https://github.com/ionic-team/ionic-conference-app/blob/master/src/pages/schedule-filter/schedule-filter.html) | [code](https://github.com/ionic-team/ionic-conference-app/blob/master/src/pages/schedule/schedule.ts) ] 45 | * Searchbar - [ [template](https://github.com/ionic-team/ionic-conference-app/blob/master/src/pages/schedule/schedule.html) | [code](https://github.com/ionic-team/ionic-conference-app/blob/master/src/pages/schedule/schedule.ts) ] 46 | * Segment - [ [template](https://github.com/ionic-team/ionic-conference-app/blob/master/src/pages/schedule/schedule.html) | [code](https://github.com/ionic-team/ionic-conference-app/blob/master/src/pages/schedule/schedule.ts) ] 47 | * Slides - [ [template](https://github.com/ionic-team/ionic-conference-app/blob/master/src/pages/tutorial/tutorial.html) | 48 | * Sticky headers - [ [template](https://github.com/ionic-team/ionic-conference-app/blob/master/src/pages/schedule/schedule.html) ] 49 | * Tabs - [ [template](https://github.com/ionic-team/ionic-conference-app/blob/master/src/pages/tabs/tabs.html) | [code](https://github.com/ionic-team/ionic-conference-app/blob/master/src/pages/tabs/tabs.ts) ] 50 | * Toggle - [ [template](https://github.com/ionic-team/ionic-conference-app/blob/master/src/pages/schedule-filter/schedule-filter.html) ] 51 | [code](https://github.com/ionic-team/ionic-conference-app/blob/master/src/pages/tutorial/tutorial.ts) ] 52 | * Using Angular HTTP for JSON - [ [code](https://github.com/ionic-team/ionic-conference-app/blob/master/src/providers/conference-data.ts) | [usage](https://github.com/ionic-team/ionic-conference-app/blob/master/src/pages/schedule/schedule.ts) ] 53 | 54 | 55 | ## App Preview 56 | 57 | [Try it live](https://ionic-team.github.io/ionic-conference-app/www) 58 | 59 | All app preview screenshots were taken by running `ionic serve --lab` on a retina display. 60 | 61 | - [Schedule Page](https://github.com/ionic-team/ionic-conference-app/blob/master/src/pages/schedule/schedule.html) 62 | 63 | Schedule 64 | 65 | 66 | - [About Page](https://github.com/ionic-team/ionic-conference-app/blob/master/src/pages/about/about.html) 67 | 68 | Schedule 69 | 70 | 71 | - To see more images of the app, check out the [screenshots directory](https://github.com/ionic-team/ionic-conference-app/tree/master/resources/screenshots)! 72 | 73 | 74 | ## Deploying 75 | 76 | * PWA - Un-comment [this](https://github.com/ionic-team/ionic2-app-base/blob/master/src/index.html#L21), run `npm run ionic:build --prod` and then push the `www` folder to your favorite hosting service 77 | * Android - Run `ionic cordova run android --prod` 78 | - If you are deploying to Android 4.4 or below we recommend adding crosswalk: `cordova plugin add cordova-plugin-crosswalk-webview` 79 | * iOS - Run `ionic cordova run ios --prod` 80 | 81 | ## File Structure of App 82 | 83 | ``` 84 | ionic-conference-app/ 85 | ├-- .github/ * GitHub files 86 | │ ├── CONTRIBUTING.md * Documentation on contributing to this repo 87 | │ └── ISSUE_TEMPLATE.md * Template used to populate issues in this repo 88 | | 89 | |-- resources/ 90 | | 91 | |-- src/ 92 | | |-- app/ 93 | | | ├── app.component.ts 94 | | | └── app.module.ts 95 | | | └── app.template.html 96 | | | └── main.ts 97 | | | 98 | | |-- assets/ 99 | | | ├── data/ 100 | | | | └── data.json 101 | | | | 102 | | | ├── fonts/ 103 | | | | ├── ionicons.eot 104 | | | | └── ionicons.svg 105 | | | | └── ionicons.ttf 106 | | | | └── ionicons.woff 107 | | | | └── ionicons.woff2 108 | | | | 109 | | | ├── img/ 110 | | | 111 | | |-- pages/ * Contains all of our pages 112 | │ │ ├── about/ * About tab page 113 | │ │ │ ├── about.html * AboutPage template 114 | │ │ │ └── about.ts * AboutPage code 115 | │ │ │ └── about.scss * AboutPage stylesheet 116 | │ │ │ 117 | │ │ ├── account/ * Account page 118 | │ │ │ ├── account.html * AccountPage template 119 | │ │ │ └── account.ts * AccountPage code 120 | │ │ │ └── account.scss * AccountPage stylesheet 121 | │ │ │ 122 | │ │ │── login/ * Login page 123 | │ │ │ ├── login.html * LoginPage template 124 | │ │ │ └── login.ts * LoginPage code 125 | │ │ │ └── login.scss * LoginPage stylesheet 126 | │ │ │ 127 | │ │ │── map/ * Map tab page 128 | │ │ │ ├── map.html * MapPage template 129 | │ │ │ └── map.ts * MapPage code 130 | │ │ │ └── map.scss * MapPage stylesheet 131 | │ │ │ 132 | │ │ │── schedule/ * Schedule tab page 133 | │ │ │ ├── schedule.html * SchedulePage template 134 | │ │ │ └── schedule.ts * SchedulePage code 135 | │ │ │ └── schedule.scss * SchedulePage stylesheet 136 | │ │ │ 137 | │ │ │── schedule-filter/ * Schedule Filter page 138 | │ │ │ ├── schedule-filter.html * ScheduleFilterPage template 139 | │ │ │ └── schedule-filter.ts * ScheduleFilterPage code 140 | │ │ │ └── schedule-filter.scss * ScheduleFilterPage stylesheet 141 | │ │ │ 142 | │ │ │── session-detail/ * Session Detail page 143 | │ │ │ ├── session-detail.html * SessionDetailPage template 144 | │ │ │ └── session-detail.ts * SessionDetailPage code 145 | │ │ │ 146 | │ │ │── signup/ * Signup page 147 | │ │ │ ├── signup.html * SignupPage template 148 | │ │ │ └── signup.ts * SignupPage code 149 | │ │ │ 150 | │ │ │── speaker-detail/ * Speaker Detail page 151 | │ │ │ ├── speaker-detail.html * SpeakerDetailPage template 152 | │ │ │ └── speaker-detail.ts * SpeakerDetailPage code 153 | │ │ │ └── speaker-detail.scss * SpeakerDetailPage stylesheet 154 | │ │ │ 155 | │ │ │── speaker-list/ * Speakers tab page 156 | │ │ │ ├── speaker-list.html * SpeakerListPage template 157 | │ │ │ └── speaker-list.ts * SpeakerListPage code 158 | │ │ │ └── speaker-list.scss * SpeakerListPage stylesheet 159 | | | | 160 | │ │ │── support/ * Support page 161 | │ │ │ ├── support.html * SupportPage template 162 | │ │ │ └── support.ts * SupportPage code 163 | │ │ │ └── support.scss * SupportPage stylesheet 164 | │ │ │ 165 | │ │ │── tabs/ * Tabs page 166 | │ │ │ ├── tabs.html * TabsPage template 167 | │ │ │ └── tabs.ts * TabsPage code 168 | │ │ │ 169 | │ │ └── tutorial/ * Tutorial Intro page 170 | │ │ ├── tutorial.html * TutorialPage template 171 | │ │ └── tutorial.ts * TutorialPage code 172 | │ │ └── tutorial.scss * TutorialPage stylesheet 173 | | | 174 | │ ├── providers/ * Contains all Injectables 175 | │ │ ├── conference-data.ts * ConferenceData code 176 | │ │ └── user-data.ts * UserData code 177 | │ ├── theme/ * App theme files 178 | | | ├── variables.scss * App Shared Sass Variables 179 | | | 180 | | |-- index.html 181 | | 182 | |-- www/ 183 | | ├── assets/ 184 | | | ├── data/ 185 | | | | └── data.json 186 | | | | 187 | | | ├── fonts/ 188 | | | | ├── ionicons.eot 189 | | | | └── ionicons.svg 190 | | | | └── ionicons.ttf 191 | | | | └── ionicons.woff 192 | | | | └── ionicons.woff2 193 | | | | 194 | | | ├── img/ 195 | | | 196 | | └── build/ 197 | | └── index.html 198 | | 199 | ├── .editorconfig * Defines coding styles between editors 200 | ├── .gitignore * Example git ignore file 201 | ├── LICENSE * Apache License 202 | ├── README.md * This file 203 | ├── config.xml * Cordova configuration file 204 | ├── ionic.config.json * Ionic configuration file 205 | ├── package.json * Defines our JavaScript dependencies 206 | ├── tsconfig.json * Defines the root files and the compiler options 207 | ├── tslint.json * Defines the rules for the TypeScript linter 208 | ``` 209 | -------------------------------------------------------------------------------- /mobile/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | mobile 4 | An Ionic Framework application for the Ionic Conference. 5 | Ionic Framework Team 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | -------------------------------------------------------------------------------- /mobile/ionic.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mobile", 3 | "app_id": "", 4 | "type": "ionic-angular", 5 | "integrations": { 6 | "cordova": {} 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /mobile/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mobile", 3 | "version": "0.0.1", 4 | "description": "An Ionic project", 5 | "license": "Apache-2.0", 6 | "repository": { 7 | "type": "git", 8 | "url": "https://github.com/ionic-team/ionic-conference-app.git" 9 | }, 10 | "scripts": { 11 | "build": "ionic-app-scripts build", 12 | "clean": "ionic-app-scripts clean", 13 | "lint": "ionic-app-scripts lint", 14 | "ionic:build": "npm run build", 15 | "ionic:serve": "npm run serve", 16 | "ionic:lint": "npm run lint" 17 | }, 18 | "dependencies": { 19 | "@angular/common": "5.0.0", 20 | "@angular/compiler": "5.0.0", 21 | "@angular/compiler-cli": "5.0.0", 22 | "@angular/core": "5.0.0", 23 | "@angular/forms": "5.0.0", 24 | "@angular/http": "5.0.0", 25 | "@angular/platform-browser": "5.0.0", 26 | "@angular/platform-browser-dynamic": "5.0.0", 27 | "@ionic-native/core": "^4.3.1", 28 | "@ionic-native/in-app-browser": "^4.3.1", 29 | "@ionic-native/splash-screen": "^4.3.1", 30 | "@ionic-native/status-bar": "^4.3.1", 31 | "@ionic/storage": "2.1.3", 32 | "cordova-android": "^6.2.3", 33 | "cordova-ios": "^4.5.2", 34 | "cordova-plugin-crosswalk-webview": "^2.3.0", 35 | "cordova-plugin-device": "^1.1.6", 36 | "cordova-plugin-inappbrowser": "^1.7.1", 37 | "cordova-plugin-ionic-keyboard": "^2.0.2", 38 | "cordova-plugin-ionic-webview": "^1.1.15", 39 | "cordova-plugin-splashscreen": "^4.0.3", 40 | "cordova-plugin-statusbar": "^2.2.3", 41 | "cordova-plugin-whitelist": "^1.3.2", 42 | "ionic-angular": "3.9.2", 43 | "ionicons": "3.0.0", 44 | "rxjs": "5.5.2", 45 | "sw-toolbox": "3.6.0", 46 | "zone.js": "0.8.18" 47 | }, 48 | "devDependencies": { 49 | "@ionic/app-scripts": "3.1.5", 50 | "typescript": "~2.4.2" 51 | }, 52 | "config": { 53 | "ionic_aot_write_to_disk": true 54 | }, 55 | "cordova": { 56 | "platforms": [ 57 | "android", 58 | "ios" 59 | ], 60 | "plugins": { 61 | "cordova-plugin-crosswalk-webview": { 62 | "XWALK_VERSION": "22+", 63 | "XWALK_LITEVERSION": "xwalk_core_library_canary:17+", 64 | "XWALK_COMMANDLINE": "--disable-pull-to-refresh-effect", 65 | "XWALK_MODE": "embedded", 66 | "XWALK_MULTIPLEAPK": "true" 67 | }, 68 | "cordova-plugin-device": {}, 69 | "cordova-plugin-inappbrowser": {}, 70 | "cordova-plugin-splashscreen": {}, 71 | "cordova-plugin-whitelist": {}, 72 | "cordova-plugin-ionic-webview": {}, 73 | "cordova-plugin-statusbar": {}, 74 | "cordova-plugin-ionic-keyboard": {} 75 | } 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /mobile/resources/android/icon/drawable-hdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/android/icon/drawable-hdpi-icon.png -------------------------------------------------------------------------------- /mobile/resources/android/icon/drawable-ldpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/android/icon/drawable-ldpi-icon.png -------------------------------------------------------------------------------- /mobile/resources/android/icon/drawable-mdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/android/icon/drawable-mdpi-icon.png -------------------------------------------------------------------------------- /mobile/resources/android/icon/drawable-xhdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/android/icon/drawable-xhdpi-icon.png -------------------------------------------------------------------------------- /mobile/resources/android/icon/drawable-xxhdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/android/icon/drawable-xxhdpi-icon.png -------------------------------------------------------------------------------- /mobile/resources/android/icon/drawable-xxxhdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/android/icon/drawable-xxxhdpi-icon.png -------------------------------------------------------------------------------- /mobile/resources/android/splash/drawable-land-hdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/android/splash/drawable-land-hdpi-screen.png -------------------------------------------------------------------------------- /mobile/resources/android/splash/drawable-land-ldpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/android/splash/drawable-land-ldpi-screen.png -------------------------------------------------------------------------------- /mobile/resources/android/splash/drawable-land-mdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/android/splash/drawable-land-mdpi-screen.png -------------------------------------------------------------------------------- /mobile/resources/android/splash/drawable-land-xhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/android/splash/drawable-land-xhdpi-screen.png -------------------------------------------------------------------------------- /mobile/resources/android/splash/drawable-land-xxhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/android/splash/drawable-land-xxhdpi-screen.png -------------------------------------------------------------------------------- /mobile/resources/android/splash/drawable-land-xxxhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/android/splash/drawable-land-xxxhdpi-screen.png -------------------------------------------------------------------------------- /mobile/resources/android/splash/drawable-port-hdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/android/splash/drawable-port-hdpi-screen.png -------------------------------------------------------------------------------- /mobile/resources/android/splash/drawable-port-ldpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/android/splash/drawable-port-ldpi-screen.png -------------------------------------------------------------------------------- /mobile/resources/android/splash/drawable-port-mdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/android/splash/drawable-port-mdpi-screen.png -------------------------------------------------------------------------------- /mobile/resources/android/splash/drawable-port-xhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/android/splash/drawable-port-xhdpi-screen.png -------------------------------------------------------------------------------- /mobile/resources/android/splash/drawable-port-xxhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/android/splash/drawable-port-xxhdpi-screen.png -------------------------------------------------------------------------------- /mobile/resources/android/splash/drawable-port-xxxhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/android/splash/drawable-port-xxxhdpi-screen.png -------------------------------------------------------------------------------- /mobile/resources/icon.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/icon.psd -------------------------------------------------------------------------------- /mobile/resources/icon.psd.md5: -------------------------------------------------------------------------------- 1 | c1760af57a8089fda7537fc043804bc8 -------------------------------------------------------------------------------- /mobile/resources/ios/icon/icon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/icon/icon-1024.png -------------------------------------------------------------------------------- /mobile/resources/ios/icon/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/icon/icon-40.png -------------------------------------------------------------------------------- /mobile/resources/ios/icon/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/icon/icon-40@2x.png -------------------------------------------------------------------------------- /mobile/resources/ios/icon/icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/icon/icon-40@3x.png -------------------------------------------------------------------------------- /mobile/resources/ios/icon/icon-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/icon/icon-50.png -------------------------------------------------------------------------------- /mobile/resources/ios/icon/icon-50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/icon/icon-50@2x.png -------------------------------------------------------------------------------- /mobile/resources/ios/icon/icon-60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/icon/icon-60.png -------------------------------------------------------------------------------- /mobile/resources/ios/icon/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/icon/icon-60@2x.png -------------------------------------------------------------------------------- /mobile/resources/ios/icon/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/icon/icon-60@3x.png -------------------------------------------------------------------------------- /mobile/resources/ios/icon/icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/icon/icon-72.png -------------------------------------------------------------------------------- /mobile/resources/ios/icon/icon-72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/icon/icon-72@2x.png -------------------------------------------------------------------------------- /mobile/resources/ios/icon/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/icon/icon-76.png -------------------------------------------------------------------------------- /mobile/resources/ios/icon/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/icon/icon-76@2x.png -------------------------------------------------------------------------------- /mobile/resources/ios/icon/icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/icon/icon-83.5@2x.png -------------------------------------------------------------------------------- /mobile/resources/ios/icon/icon-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/icon/icon-small.png -------------------------------------------------------------------------------- /mobile/resources/ios/icon/icon-small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/icon/icon-small@2x.png -------------------------------------------------------------------------------- /mobile/resources/ios/icon/icon-small@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/icon/icon-small@3x.png -------------------------------------------------------------------------------- /mobile/resources/ios/icon/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/icon/icon.png -------------------------------------------------------------------------------- /mobile/resources/ios/icon/icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/icon/icon@2x.png -------------------------------------------------------------------------------- /mobile/resources/ios/splash/Default-568h@2x~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/splash/Default-568h@2x~iphone.png -------------------------------------------------------------------------------- /mobile/resources/ios/splash/Default-667h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/splash/Default-667h.png -------------------------------------------------------------------------------- /mobile/resources/ios/splash/Default-736h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/splash/Default-736h.png -------------------------------------------------------------------------------- /mobile/resources/ios/splash/Default-Landscape-736h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/splash/Default-Landscape-736h.png -------------------------------------------------------------------------------- /mobile/resources/ios/splash/Default-Landscape@2x~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/splash/Default-Landscape@2x~ipad.png -------------------------------------------------------------------------------- /mobile/resources/ios/splash/Default-Landscape@~ipadpro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/splash/Default-Landscape@~ipadpro.png -------------------------------------------------------------------------------- /mobile/resources/ios/splash/Default-Landscape~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/splash/Default-Landscape~ipad.png -------------------------------------------------------------------------------- /mobile/resources/ios/splash/Default-Portrait@2x~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/splash/Default-Portrait@2x~ipad.png -------------------------------------------------------------------------------- /mobile/resources/ios/splash/Default-Portrait@~ipadpro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/splash/Default-Portrait@~ipadpro.png -------------------------------------------------------------------------------- /mobile/resources/ios/splash/Default-Portrait~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/splash/Default-Portrait~ipad.png -------------------------------------------------------------------------------- /mobile/resources/ios/splash/Default@2x~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/splash/Default@2x~iphone.png -------------------------------------------------------------------------------- /mobile/resources/ios/splash/Default@2x~universal~anyany.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/splash/Default@2x~universal~anyany.png -------------------------------------------------------------------------------- /mobile/resources/ios/splash/Default~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/ios/splash/Default~iphone.png -------------------------------------------------------------------------------- /mobile/resources/screenshots/AboutPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/screenshots/AboutPage.png -------------------------------------------------------------------------------- /mobile/resources/screenshots/AccountPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/screenshots/AccountPage.png -------------------------------------------------------------------------------- /mobile/resources/screenshots/LoginPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/screenshots/LoginPage.png -------------------------------------------------------------------------------- /mobile/resources/screenshots/MapPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/screenshots/MapPage.png -------------------------------------------------------------------------------- /mobile/resources/screenshots/ScheduleFilterPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/screenshots/ScheduleFilterPage.png -------------------------------------------------------------------------------- /mobile/resources/screenshots/SchedulePage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/screenshots/SchedulePage.png -------------------------------------------------------------------------------- /mobile/resources/screenshots/SessionDetailPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/screenshots/SessionDetailPage.png -------------------------------------------------------------------------------- /mobile/resources/screenshots/SignupPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/screenshots/SignupPage.png -------------------------------------------------------------------------------- /mobile/resources/screenshots/SpeakerDetailPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/screenshots/SpeakerDetailPage.png -------------------------------------------------------------------------------- /mobile/resources/screenshots/SpeakerListPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/screenshots/SpeakerListPage.png -------------------------------------------------------------------------------- /mobile/resources/screenshots/TutorialPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/screenshots/TutorialPage.png -------------------------------------------------------------------------------- /mobile/resources/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/resources/splash.png -------------------------------------------------------------------------------- /mobile/resources/splash.png.md5: -------------------------------------------------------------------------------- 1 | 0dcf1df8c92c1ece4382d3357d9f8562 -------------------------------------------------------------------------------- /mobile/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, ViewChild } from '@angular/core'; 2 | 3 | import { Events, MenuController, Nav, Platform } from 'ionic-angular'; 4 | import { SplashScreen } from '@ionic-native/splash-screen'; 5 | 6 | import { Storage } from '@ionic/storage'; 7 | 8 | import { AboutPage } from '../pages/about/about'; 9 | import { AccountPage } from '../pages/account/account'; 10 | import { LoginPage } from '../pages/login/login'; 11 | import { MapPage } from '../pages/map/map'; 12 | import { SignupPage } from '../pages/signup/signup'; 13 | import { TabsPage } from '../pages/tabs-page/tabs-page'; 14 | import { TutorialPage } from '../pages/tutorial/tutorial'; 15 | import { SchedulePage } from '../pages/schedule/schedule'; 16 | import { SpeakerListPage } from '../pages/speaker-list/speaker-list'; 17 | import { SupportPage } from '../pages/support/support'; 18 | 19 | import { ConferenceData } from '../providers/conference-data'; 20 | import { UserData } from '../providers/user-data'; 21 | 22 | export interface PageInterface { 23 | title: string; 24 | name: string; 25 | component: any; 26 | icon: string; 27 | logsOut?: boolean; 28 | index?: number; 29 | tabName?: string; 30 | tabComponent?: any; 31 | } 32 | 33 | @Component({ 34 | templateUrl: 'app.template.html' 35 | }) 36 | export class ConferenceApp { 37 | // the root nav is a child of the root app component 38 | // @ViewChild(Nav) gets a reference to the app's root nav 39 | @ViewChild(Nav) nav: Nav; 40 | 41 | // List of pages that can be navigated to from the left menu 42 | // the left menu only works after login 43 | // the login page disables the left menu 44 | appPages: PageInterface[] = [ 45 | { title: 'Schedule', name: 'TabsPage', component: TabsPage, tabComponent: SchedulePage, index: 0, icon: 'calendar' }, 46 | { title: 'Speakers', name: 'TabsPage', component: TabsPage, tabComponent: SpeakerListPage, index: 1, icon: 'contacts' }, 47 | { title: 'Map', name: 'TabsPage', component: TabsPage, tabComponent: MapPage, index: 2, icon: 'map' }, 48 | { title: 'About', name: 'TabsPage', component: TabsPage, tabComponent: AboutPage, index: 3, icon: 'information-circle' } 49 | ]; 50 | loggedInPages: PageInterface[] = [ 51 | { title: 'Account', name: 'AccountPage', component: AccountPage, icon: 'person' }, 52 | { title: 'Support', name: 'SupportPage', component: SupportPage, icon: 'help' }, 53 | { title: 'Logout', name: 'TabsPage', component: TabsPage, icon: 'log-out', logsOut: true } 54 | ]; 55 | loggedOutPages: PageInterface[] = [ 56 | { title: 'Login', name: 'LoginPage', component: LoginPage, icon: 'log-in' }, 57 | { title: 'Support', name: 'SupportPage', component: SupportPage, icon: 'help' }, 58 | { title: 'Signup', name: 'SignupPage', component: SignupPage, icon: 'person-add' } 59 | ]; 60 | rootPage: any; 61 | 62 | constructor( 63 | public events: Events, 64 | public userData: UserData, 65 | public menu: MenuController, 66 | public platform: Platform, 67 | public confData: ConferenceData, 68 | public storage: Storage, 69 | public splashScreen: SplashScreen 70 | ) { 71 | 72 | // Check if the user has already seen the tutorial 73 | this.storage.get('hasSeenTutorial') 74 | .then((hasSeenTutorial) => { 75 | if (hasSeenTutorial) { 76 | this.rootPage = TabsPage; 77 | } else { 78 | this.rootPage = TutorialPage; 79 | } 80 | this.platformReady() 81 | }); 82 | 83 | // load the conference data 84 | confData.load(); 85 | 86 | // decide which menu items should be hidden by current login status stored in local storage 87 | this.userData.hasLoggedIn().then((hasLoggedIn) => { 88 | this.enableMenu(hasLoggedIn === true); 89 | }); 90 | this.enableMenu(true); 91 | 92 | this.listenToLoginEvents(); 93 | } 94 | 95 | openPage(page: PageInterface) { 96 | let params = {}; 97 | 98 | // the nav component was found using @ViewChild(Nav) 99 | // setRoot on the nav to remove previous pages and only have this page 100 | // we wouldn't want the back button to show in this scenario 101 | if (page.index) { 102 | params = { tabIndex: page.index }; 103 | } 104 | 105 | // If we are already on tabs just change the selected tab 106 | // don't setRoot again, this maintains the history stack of the 107 | // tabs even if changing them from the menu 108 | if (this.nav.getActiveChildNavs().length && page.index != undefined) { 109 | this.nav.getActiveChildNavs()[0].select(page.index); 110 | } else { 111 | // Set the root of the nav with params if it's a tab index 112 | this.nav.setRoot(page.name, params).catch((err: any) => { 113 | console.log(`Didn't set nav root: ${err}`); 114 | }); 115 | } 116 | 117 | if (page.logsOut === true) { 118 | // Give the menu time to close before changing to logged out 119 | this.userData.logout(); 120 | } 121 | } 122 | 123 | openTutorial() { 124 | this.nav.setRoot(TutorialPage); 125 | } 126 | 127 | listenToLoginEvents() { 128 | this.events.subscribe('user:login', () => { 129 | this.enableMenu(true); 130 | }); 131 | 132 | this.events.subscribe('user:signup', () => { 133 | this.enableMenu(true); 134 | }); 135 | 136 | this.events.subscribe('user:logout', () => { 137 | this.enableMenu(false); 138 | }); 139 | } 140 | 141 | enableMenu(loggedIn: boolean) { 142 | this.menu.enable(loggedIn, 'loggedInMenu'); 143 | this.menu.enable(!loggedIn, 'loggedOutMenu'); 144 | } 145 | 146 | platformReady() { 147 | // Call any initial plugins when ready 148 | this.platform.ready().then(() => { 149 | this.splashScreen.hide(); 150 | }); 151 | } 152 | 153 | isActive(page: PageInterface) { 154 | let childNav = this.nav.getActiveChildNavs()[0]; 155 | 156 | // Tabs are a special case because they have their own navigation 157 | if (childNav) { 158 | if (childNav.getSelected() && childNav.getSelected().root === page.tabComponent) { 159 | return 'primary'; 160 | } 161 | return; 162 | } 163 | 164 | if (this.nav.getActive() && this.nav.getActive().name === page.name) { 165 | return 'primary'; 166 | } 167 | return; 168 | } 169 | } 170 | -------------------------------------------------------------------------------- /mobile/src/app/app.module.ts: -------------------------------------------------------------------------------- 1 | import { BrowserModule } from '@angular/platform-browser'; 2 | import { HttpModule } from '@angular/http'; 3 | import { NgModule, ErrorHandler } from '@angular/core'; 4 | 5 | import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular'; 6 | 7 | import { InAppBrowser } from '@ionic-native/in-app-browser'; 8 | import { SplashScreen } from '@ionic-native/splash-screen'; 9 | 10 | import { IonicStorageModule } from '@ionic/storage'; 11 | 12 | import { ConferenceApp } from './app.component'; 13 | 14 | import { AboutPage } from '../pages/about/about'; 15 | import { PopoverPage } from '../pages/about-popover/about-popover'; 16 | import { AccountPage } from '../pages/account/account'; 17 | import { LoginPage } from '../pages/login/login'; 18 | import { MapPage } from '../pages/map/map'; 19 | import { SchedulePage } from '../pages/schedule/schedule'; 20 | import { ScheduleFilterPage } from '../pages/schedule-filter/schedule-filter'; 21 | import { SessionDetailPage } from '../pages/session-detail/session-detail'; 22 | import { SignupPage } from '../pages/signup/signup'; 23 | import { SpeakerDetailPage } from '../pages/speaker-detail/speaker-detail'; 24 | import { SpeakerListPage } from '../pages/speaker-list/speaker-list'; 25 | import { TabsPage } from '../pages/tabs-page/tabs-page'; 26 | import { TutorialPage } from '../pages/tutorial/tutorial'; 27 | import { SupportPage } from '../pages/support/support'; 28 | 29 | import { ConferenceData } from '../providers/conference-data'; 30 | import { UserData } from '../providers/user-data'; 31 | 32 | 33 | @NgModule({ 34 | declarations: [ 35 | ConferenceApp, 36 | AboutPage, 37 | AccountPage, 38 | LoginPage, 39 | MapPage, 40 | PopoverPage, 41 | SchedulePage, 42 | ScheduleFilterPage, 43 | SessionDetailPage, 44 | SignupPage, 45 | SpeakerDetailPage, 46 | SpeakerListPage, 47 | TabsPage, 48 | TutorialPage, 49 | SupportPage 50 | ], 51 | imports: [ 52 | BrowserModule, 53 | HttpModule, 54 | IonicModule.forRoot(ConferenceApp, {}, { 55 | links: [ 56 | { component: TabsPage, name: 'TabsPage', segment: 'tabs-page' }, 57 | { component: SchedulePage, name: 'Schedule', segment: 'schedule' }, 58 | { component: SessionDetailPage, name: 'SessionDetail', segment: 'sessionDetail/:sessionId' }, 59 | { component: ScheduleFilterPage, name: 'ScheduleFilter', segment: 'scheduleFilter' }, 60 | { component: SpeakerListPage, name: 'SpeakerList', segment: 'speakerList' }, 61 | { component: SpeakerDetailPage, name: 'SpeakerDetail', segment: 'speakerDetail/:speakerId' }, 62 | { component: MapPage, name: 'Map', segment: 'map' }, 63 | { component: AboutPage, name: 'About', segment: 'about' }, 64 | { component: TutorialPage, name: 'Tutorial', segment: 'tutorial' }, 65 | { component: SupportPage, name: 'SupportPage', segment: 'support' }, 66 | { component: LoginPage, name: 'LoginPage', segment: 'login' }, 67 | { component: AccountPage, name: 'AccountPage', segment: 'account' }, 68 | { component: SignupPage, name: 'SignupPage', segment: 'signup' } 69 | ] 70 | }), 71 | IonicStorageModule.forRoot() 72 | ], 73 | bootstrap: [IonicApp], 74 | entryComponents: [ 75 | ConferenceApp, 76 | AboutPage, 77 | AccountPage, 78 | LoginPage, 79 | MapPage, 80 | PopoverPage, 81 | SchedulePage, 82 | ScheduleFilterPage, 83 | SessionDetailPage, 84 | SignupPage, 85 | SpeakerDetailPage, 86 | SpeakerListPage, 87 | TabsPage, 88 | TutorialPage, 89 | SupportPage 90 | ], 91 | providers: [ 92 | { provide: ErrorHandler, useClass: IonicErrorHandler }, 93 | ConferenceData, 94 | UserData, 95 | InAppBrowser, 96 | SplashScreen 97 | ] 98 | }) 99 | export class AppModule { } 100 | -------------------------------------------------------------------------------- /mobile/src/app/app.scss: -------------------------------------------------------------------------------- 1 | // Media of at most the maximum breakpoint width. No query for the largest breakpoint. 2 | // Makes the @content apply to the given breakpoint and narrower. 3 | @mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) { 4 | $max: breakpoint-max($name, $breakpoints); 5 | @if $max { 6 | @media (max-width: $max) { 7 | @content; 8 | } 9 | } @else { 10 | @content; 11 | } 12 | } 13 | 14 | 15 | // Name of the next breakpoint, or null for the last breakpoint. 16 | // 17 | // >> breakpoint-next(sm) 18 | // md 19 | // >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)) 20 | // md 21 | // >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl)) 22 | // md 23 | @function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map-keys($breakpoints)) { 24 | $n: index($breakpoint-names, $name); 25 | @return if($n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null); 26 | } 27 | 28 | 29 | // Maximum breakpoint width. Null for the largest (last) breakpoint. 30 | // The maximum value is calculated as the minimum of the next one less 0.1. 31 | // 32 | // >> breakpoint-max(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)) 33 | // 767px 34 | @function breakpoint-max($name, $breakpoints: $grid-breakpoints) { 35 | $next: breakpoint-next($name, $breakpoints); 36 | @return if($next, breakpoint-min($next, $breakpoints) - 1px, null); 37 | } 38 | 39 | 40 | // Creates text alignment classes based on screen size 41 | // TODO this would be nice to add to the framework 42 | @each $breakpoint in map-keys($grid-breakpoints) { 43 | $infix: breakpoint-infix($breakpoint, $grid-breakpoints); 44 | 45 | @include media-breakpoint-up($breakpoint, $grid-breakpoints) { 46 | // Provide text `[text-{bp}]` attributes for aligning text based on screen size 47 | [text#{$infix}-center] { 48 | text-align: center; 49 | } 50 | 51 | [text#{$infix}-left] { 52 | text-align: left; 53 | } 54 | 55 | [text#{$infix}-right] { 56 | text-align: right; 57 | } 58 | 59 | [hidden#{$infix}-up] { 60 | display: none; 61 | } 62 | } 63 | 64 | @include media-breakpoint-down($breakpoint, $grid-breakpoints) { 65 | [hidden#{$infix}-down] { 66 | display: none; 67 | } 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /mobile/src/app/app.template.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Menu 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | Navigate 17 | 18 | 22 | 23 | 24 | 25 | 26 | Account 27 | 28 | 32 | 33 | 34 | 35 | 36 | Tutorial 37 | 38 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | Menu 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | Navigate 61 | 62 | 66 | 67 | 68 | 69 | 70 | Account 71 | 72 | 76 | 77 | 78 | 79 | 80 | Tutorial 81 | 82 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /mobile/src/app/main.ts: -------------------------------------------------------------------------------- 1 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 2 | 3 | import { AppModule } from './app.module'; 4 | 5 | platformBrowserDynamic().bootstrapModule(AppModule); 6 | -------------------------------------------------------------------------------- /mobile/src/assets/data/data.json: -------------------------------------------------------------------------------- 1 | { 2 | 3 | "schedule": [{ 4 | "date": "2047-05-17", 5 | "groups": [{ 6 | "time": "8:00 am", 7 | "sessions": [{ 8 | "name": "Breakfast", 9 | "timeStart": "8:00 am", 10 | "timeEnd": "9:00 am", 11 | "location": "Main hallway", 12 | "tracks": ["Food"], 13 | "id": "1" 14 | }] 15 | }, { 16 | "time": "9:15 am", 17 | "sessions": [{ 18 | "name": "Introduction to Appcamp.io", 19 | "location": "Room 2203", 20 | "description": "Mobile devices and browsers are now advanced enough that developers can build native-quality mobile apps using open web technologies like HTML5, Javascript, and CSS. In this talk, we’ll provide background on why and how we created Ionic, the design decisions made as we integrated Ionic with Angular, and the performance considerations for mobile platforms that our team had to overcome. We’ll also review new and upcoming Ionic features, and talk about the hidden powers and benefits of combining mobile app development and Angular.", 21 | "speakerNames": ["Ellie Elephant"], 22 | "timeStart": "9:15 am", 23 | "timeEnd": "9:30 am", 24 | "tracks": ["Ionic"], 25 | "id": "2" 26 | }, { 27 | "name": "Getting started with Ionic", 28 | "location": "Room 2202", 29 | "description": "Mobile devices and browsers are now advanced enough that developers can build native-quality mobile apps using open web technologies like HTML5, Javascript, and CSS. In this talk, we’ll provide background on why and how we created Ionic, the design decisions made as we integrated Ionic with Angular, and the performance considerations for mobile platforms that our team had to overcome. We’ll also review new and upcoming Ionic features, and talk about the hidden powers and benefits of combining mobile app development and Angular.", 30 | "speakerNames": ["Ted Turtle"], 31 | "timeStart": "9:30 am", 32 | "timeEnd": "9:45 am", 33 | "tracks": ["Ionic"], 34 | "id": "3" 35 | }, { 36 | "name": "Tooling for Ionic", 37 | "location": "Room 2201", 38 | "description": "Mobile devices and browsers are now advanced enough that developers can build native-quality mobile apps using open web technologies like HTML5, Javascript, and CSS. In this talk, we’ll provide background on why and how we created Ionic, the design decisions made as we integrated Ionic with Angular, and the performance considerations for mobile platforms that our team had to overcome. We’ll also review new and upcoming Ionic features, and talk about the hidden powers and benefits of combining mobile app development and Angular.", 39 | "speakerNames": ["Rachel Rabbit"], 40 | "timeStart": "9:45 am", 41 | "timeEnd": "10:00 am", 42 | "tracks": ["Tooling"], 43 | "id": "4" 44 | }] 45 | }, { 46 | "time": "10:00 am", 47 | "sessions": [{ 48 | "name": "Migrating to Ionic2", 49 | "location": "Room 2201", 50 | "description": "Mobile devices and browsers are now advanced enough that developers can build native-quality mobile apps using open web technologies like HTML5, Javascript, and CSS. In this talk, we’ll provide background on why and how we created Ionic, the design decisions made as we integrated Ionic with Angular, and the performance considerations for mobile platforms that our team had to overcome. We’ll also review new and upcoming Ionic features, and talk about the hidden powers and benefits of combining mobile app development and Angular.", 51 | "speakerNames": ["Eva Eagle", "Lionel Lion"], 52 | "timeStart": "10:00 am", 53 | "timeEnd": "10:15 am", 54 | "tracks": ["Ionic"], 55 | "id": "5" 56 | }, { 57 | "name": "Whats new in Angular", 58 | "location": "Room 2203", 59 | "description": "Mobile devices and browsers are now advanced enough that developers can build native-quality mobile apps using open web technologies like HTML5, Javascript, and CSS. In this talk, we’ll provide background on why and how we created Ionic, the design decisions made as we integrated Ionic with Angular, and the performance considerations for mobile platforms that our team had to overcome. We’ll also review new and upcoming Ionic features, and talk about the hidden powers and benefits of combining mobile app development and Angular.", 60 | "speakerNames": ["Rachel Rabbit"], 61 | "timeStart": "10:15 am", 62 | "timeEnd": "10:30 am", 63 | "tracks": ["Angular"], 64 | "id": "6" 65 | }, { 66 | "name": "The evolution of Ionicons", 67 | "location": "Room 2202", 68 | "description": "Mobile devices and browsers are now advanced enough that developers can build native-quality mobile apps using open web technologies like HTML5, Javascript, and CSS. In this talk, we’ll provide background on why and how we created Ionic, the design decisions made as we integrated Ionic with Angular, and the performance considerations for mobile platforms that our team had to overcome. We’ll also review new and upcoming Ionic features, and talk about the hidden powers and benefits of combining mobile app development and Angular.", 69 | "speakerNames": ["Isabella Iguana", "Eva Eagle"], 70 | "timeStart": "10:15 am", 71 | "timeEnd": "10:30 am", 72 | "tracks": ["Design"], 73 | "id": "7" 74 | }, { 75 | "name": "Ionic.io Services", 76 | "location": "Room 2202", 77 | "description": "Mobile devices and browsers are now advanced enough that developers can build native-quality mobile apps using open web technologies like HTML5, Javascript, and CSS. In this talk, we’ll provide background on why and how we created Ionic, the design decisions made as we integrated Ionic with Angular, and the performance considerations for mobile platforms that our team had to overcome. We’ll also review new and upcoming Ionic features, and talk about the hidden powers and benefits of combining mobile app development and Angular.", 78 | "speakerNames": ["Charlie Cheetah"], 79 | "timeStart": "10:45 am", 80 | "timeEnd": "11:00 am", 81 | "tracks": ["Services"], 82 | "id": "8" 83 | }] 84 | }, { 85 | "time": "11:00 am", 86 | "sessions": [{ 87 | "name": "Ionic Workshop", 88 | "location": "Room 2201", 89 | "description": "Mobile devices and browsers are now advanced enough that developers can build native-quality mobile apps using open web technologies like HTML5, Javascript, and CSS. In this talk, we’ll provide background on why and how we created Ionic, the design decisions made as we integrated Ionic with Angular, and the performance considerations for mobile platforms that our team had to overcome. We’ll also review new and upcoming Ionic features, and talk about the hidden powers and benefits of combining mobile app development and Angular.", 90 | "speakerNames": ["Karl Kitten", "Lionel Lion"], 91 | "timeStart": "11:00 am", 92 | "timeEnd": "11:45 am", 93 | "tracks": ["Workshop"], 94 | "id": "9" 95 | }, { 96 | "name": "Community Interaction", 97 | "location": "Room 2203", 98 | "description": "Mobile devices and browsers are now advanced enough that developers can build native-quality mobile apps using open web technologies like HTML5, Javascript, and CSS. In this talk, we’ll provide background on why and how we created Ionic, the design decisions made as we integrated Ionic with Angular, and the performance considerations for mobile platforms that our team had to overcome. We’ll also review new and upcoming Ionic features, and talk about the hidden powers and benefits of combining mobile app development and Angular.", 99 | "speakerNames": ["Lionel Lion", "Gino Giraffe"], 100 | "timeStart": "11:30 am", 101 | "timeEnd": "11:50 am", 102 | "tracks": ["Communication"], 103 | "id": "10" 104 | }, { 105 | "name": "Navigation in Ionic", 106 | "location": "Room 2203", 107 | "description": "Mobile devices and browsers are now advanced enough that developers can build native-quality mobile apps using open web technologies like HTML5, Javascript, and CSS. In this talk, we’ll provide background on why and how we created Ionic, the design decisions made as we integrated Ionic with Angular, and the performance considerations for mobile platforms that our team had to overcome. We’ll also review new and upcoming Ionic features, and talk about the hidden powers and benefits of combining mobile app development and Angular.", 108 | "speakerNames": ["Rachel Rabbit", "Eva Eagle"], 109 | "timeStart": "11:30 am", 110 | "timeEnd": "12:00 pm", 111 | "tracks": ["Navigation"], 112 | "id": "11" 113 | }] 114 | }, { 115 | "time": "12:00 pm", 116 | "sessions": [{ 117 | "name": "Lunch", 118 | "location": "Auditorium", 119 | "description": "Come grab lunch with all the Ionic fanatics and talk all things Ionic", 120 | "timeStart": "12:00 pm", 121 | "timeEnd": "1:00 pm", 122 | "tracks": ["Food"], 123 | "id": "12" 124 | }] 125 | }, { 126 | "time": "1:00 pm", 127 | "sessions": [{ 128 | "name": "Ionic in the Enterprise", 129 | "location": "Room 2201", 130 | "description": "Mobile devices and browsers are now advanced enough that developers can build native-quality mobile apps using open web technologies like HTML5, Javascript, and CSS. In this talk, we’ll provide background on why and how we created Ionic, the design decisions made as we integrated Ionic with Angular, and the performance considerations for mobile platforms that our team had to overcome. We’ll also review new and upcoming Ionic features, and talk about the hidden powers and benefits of combining mobile app development and Angular.", 131 | "speakerNames": ["Paul Puppy"], 132 | "timeStart": "1:00 pm", 133 | "timeEnd": "1:15 pm", 134 | "tracks": ["Communication"], 135 | "id": "13" 136 | }, { 137 | "name": "Ionic Worldwide", 138 | "location": "Room 2201", 139 | "description": "Mobile devices and browsers are now advanced enough that developers can build native-quality mobile apps using open web technologies like HTML5, Javascript, and CSS. In this talk, we’ll provide background on why and how we created Ionic, the design decisions made as we integrated Ionic with Angular, and the performance considerations for mobile platforms that our team had to overcome. We’ll also review new and upcoming Ionic features, and talk about the hidden powers and benefits of combining mobile app development and Angular.", 140 | "speakerNames": ["Gino Giraffe"], 141 | "timeStart": "1:15 pm", 142 | "timeEnd": "1:30 pm", 143 | "tracks": ["Communication"], 144 | "id": "14" 145 | }, { 146 | "name": "The Ionic package service", 147 | "location": "Room 2203", 148 | "description": "Mobile devices and browsers are now advanced enough that developers can build native-quality mobile apps using open web technologies like HTML5, Javascript, and CSS. In this talk, we’ll provide background on why and how we created Ionic, the design decisions made as we integrated Ionic with Angular, and the performance considerations for mobile platforms that our team had to overcome. We’ll also review new and upcoming Ionic features, and talk about the hidden powers and benefits of combining mobile app development and Angular.", 149 | "speakerNames": ["Molly Mouse", "Burt Bear"], 150 | "timeStart": "1:30 pm", 151 | "timeEnd": "2:00 pm", 152 | "tracks": ["Services"], 153 | "id": "15" 154 | }] 155 | }, { 156 | "time": "2:00 pm", 157 | "sessions": [{ 158 | "name": "Push Notifications in Ionic", 159 | "location": "Room 2202", 160 | "description": "Mobile devices and browsers are now advanced enough that developers can build native-quality mobile apps using open web technologies like HTML5, Javascript, and CSS. In this talk, we’ll provide background on why and how we created Ionic, the design decisions made as we integrated Ionic with Angular, and the performance considerations for mobile platforms that our team had to overcome. We’ll also review new and upcoming Ionic features, and talk about the hidden powers and benefits of combining mobile app development and Angular.", 161 | "speakerNames": ["Burt Bear", "Charlie Cheetah"], 162 | "timeStart": "2:00 pm", 163 | "timeEnd": "2:30 pm", 164 | "tracks": ["Services"], 165 | "id": "16" 166 | }, { 167 | "name": "Ionic Documentation", 168 | "location": "Room 2202", 169 | "description": "Mobile devices and browsers are now advanced enough that developers can build native-quality mobile apps using open web technologies like HTML5, Javascript, and CSS. In this talk, we’ll provide background on why and how we created Ionic, the design decisions made as we integrated Ionic with Angular, and the performance considerations for mobile platforms that our team had to overcome. We’ll also review new and upcoming Ionic features, and talk about the hidden powers and benefits of combining mobile app development and Angular.", 170 | "speakerNames": ["Donald Duck"], 171 | "timeStart": "2:30 pm", 172 | "timeEnd": "2:45 pm", 173 | "tracks": ["Documentation"], 174 | "id": "17" 175 | }, { 176 | "name": "UX planning in Ionic", 177 | "location": "Room 2203", 178 | "description": "Mobile devices and browsers are now advanced enough that developers can build native-quality mobile apps using open web technologies like HTML5, Javascript, and CSS. In this talk, we’ll provide background on why and how we created Ionic, the design decisions made as we integrated Ionic with Angular, and the performance considerations for mobile platforms that our team had to overcome. We’ll also review new and upcoming Ionic features, and talk about the hidden powers and benefits of combining mobile app development and Angular.", 179 | "speakerNames": ["Isabella Iguana", "Ellie Elephant"], 180 | "timeStart": "2:45 pm", 181 | "timeEnd": "3:00 pm", 182 | "tracks": ["Design"], 183 | "id": "18" 184 | }] 185 | }, { 186 | "time": "3:00", 187 | "sessions": [{ 188 | "name": "Directives in Ionic", 189 | "location": "Room 2201", 190 | "description": "Mobile devices and browsers are now advanced enough that developers can build native-quality mobile apps using open web technologies like HTML5, Javascript, and CSS. In this talk, we’ll provide background on why and how we created Ionic, the design decisions made as we integrated Ionic with Angular, and the performance considerations for mobile platforms that our team had to overcome. We’ll also review new and upcoming Ionic features, and talk about the hidden powers and benefits of combining mobile app development and Angular.", 191 | "speakerNames": ["Ted Turtle"], 192 | "timeStart": "3:00 pm", 193 | "timeEnd": "3:30 pm", 194 | "tracks": ["Angular"], 195 | "id": "19" 196 | }, { 197 | "name": "Mobile States", 198 | "location": "Room 2202", 199 | "description": "Mobile devices and browsers are now advanced enough that developers can build native-quality mobile apps using open web technologies like HTML5, Javascript, and CSS. In this talk, we’ll provide background on why and how we created Ionic, the design decisions made as we integrated Ionic with Angular, and the performance considerations for mobile platforms that our team had to overcome. We’ll also review new and upcoming Ionic features, and talk about the hidden powers and benefits of combining mobile app development and Angular.", 200 | "speakerNames": ["Rachel Rabbit"], 201 | "timeStart": "3:30 pm", 202 | "timeEnd": "3:45 pm", 203 | "tracks": ["Navigation"], 204 | "id": "20" 205 | }] 206 | }] 207 | }], 208 | 209 | 210 | "speakers": [{ 211 | "name": "Burt Bear", 212 | "profilePic": "assets/img/speakers/bear.jpg", 213 | "twitter": "ionicframework", 214 | "about": "Burt is a Bear.", 215 | "location": "Everywhere", 216 | "email": "burt@example.com", 217 | "phone": "+1-541-754-3010", 218 | "id": "1" 219 | }, { 220 | "name": "Charlie Cheetah", 221 | "profilePic": "assets/img/speakers/cheetah.jpg", 222 | "twitter": "ionicframework", 223 | "about": "Charlie is a Cheetah.", 224 | "location": "Everywhere", 225 | "email": "charlie@example.com", 226 | "phone": "+1-541-754-3010", 227 | "id": "2" 228 | }, { 229 | "name": "Donald Duck", 230 | "profilePic": "assets/img/speakers/duck.jpg", 231 | "twitter": "ionicframework", 232 | "about": "Donald is a Duck.", 233 | "location": "Everywhere", 234 | "email": "donald@example.com", 235 | "phone": "+1-541-754-3010", 236 | "id": "3" 237 | }, { 238 | "name": "Eva Eagle", 239 | "profilePic": "assets/img/speakers/eagle.jpg", 240 | "twitter": "ionicframework", 241 | "about": "Eva is an Eagle.", 242 | "location": "Everywhere", 243 | "email": "eva@example.com", 244 | "phone": "+1-541-754-3010", 245 | "id": "4" 246 | }, { 247 | "name": "Ellie Elephant", 248 | "profilePic": "assets/img/speakers/elephant.jpg", 249 | "twitter": "ionicframework", 250 | "about": "Ellie is an Elephant.", 251 | "location": "Everywhere", 252 | "email": "ellie@example.com", 253 | "phone": "+1-541-754-3010", 254 | "id": "5" 255 | }, { 256 | "name": "Gino Giraffe", 257 | "profilePic": "assets/img/speakers/giraffe.jpg", 258 | "twitter": "ionicframework", 259 | "about": "Gino is a Giraffe.", 260 | "location": "Everywhere", 261 | "email": "gino@example.com", 262 | "phone": "+1-541-754-3010", 263 | "id": "6" 264 | }, { 265 | "name": "Isabella Iguana", 266 | "profilePic": "assets/img/speakers/iguana.jpg", 267 | "twitter": "ionicframework", 268 | "about": "Isabella is an Iguana.", 269 | "location": "Everywhere", 270 | "email": "isabella@example.com", 271 | "phone": "+1-541-754-3010", 272 | "id": "7" 273 | }, { 274 | "name": "Karl Kitten", 275 | "profilePic": "assets/img/speakers/kitten.jpg", 276 | "twitter": "ionicframework", 277 | "about": "Karl is a Kitten.", 278 | "location": "Everywhere", 279 | "email": "karl@example.com", 280 | "phone": "+1-541-754-3010", 281 | "id": "8" 282 | }, { 283 | "name": "Lionel Lion", 284 | "profilePic": "assets/img/speakers/lion.jpg", 285 | "twitter": "ionicframework", 286 | "about": "Lionel is a Lion.", 287 | "location": "Everywhere", 288 | "email": "lionel@example.com", 289 | "phone": "+1-541-754-3010", 290 | "id": "9" 291 | }, { 292 | "name": "Molly Mouse", 293 | "profilePic": "assets/img/speakers/mouse.jpg", 294 | "twitter": "ionicframework", 295 | "about": "Molly is a Mouse.", 296 | "location": "Everywhere", 297 | "email": "molly@example.com", 298 | "phone": "+1-541-754-3010", 299 | "id": "10" 300 | }, { 301 | "name": "Paul Puppy", 302 | "profilePic": "assets/img/speakers/puppy.jpg", 303 | "twitter": "ionicframework", 304 | "about": "Paul is a Puppy.", 305 | "location": "Everywhere", 306 | "email": "paul@example.com", 307 | "phone": "+1-541-754-3010", 308 | "id": "11" 309 | }, { 310 | "name": "Rachel Rabbit", 311 | "profilePic": "assets/img/speakers/rabbit.jpg", 312 | "twitter": "ionicframework", 313 | "about": "Rachel is a Rabbit.", 314 | "location": "Everywhere", 315 | "email": "rachel@example.com", 316 | "phone": "+1-541-754-3010", 317 | "id": "12" 318 | }, { 319 | "name": "Ted Turtle", 320 | "profilePic": "assets/img/speakers/turtle.jpg", 321 | "twitter": "ionicframework", 322 | "about": "Ted is a Turtle.", 323 | "location": "Everywhere", 324 | "email": "ted@example.com", 325 | "phone": "+1-541-754-3010", 326 | "id": "13" 327 | }], 328 | 329 | 330 | "map": [{ 331 | "name": "Monona Terrace Convention Center", 332 | "lat": 43.071584, 333 | "lng": -89.380120, 334 | "center": true 335 | }, { 336 | "name": "Ionic HQ", 337 | "lat": 43.074395, 338 | "lng": -89.381056 339 | }, { 340 | "name": "Afterparty - Brocach Irish Pub", 341 | "lat": 43.07336, 342 | "lng": -89.38335 343 | }] 344 | 345 | } 346 | -------------------------------------------------------------------------------- /mobile/src/assets/img/appicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/src/assets/img/appicon.png -------------------------------------------------------------------------------- /mobile/src/assets/img/appicon.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /mobile/src/assets/img/ica-slidebox-img-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/src/assets/img/ica-slidebox-img-1.png -------------------------------------------------------------------------------- /mobile/src/assets/img/ica-slidebox-img-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/src/assets/img/ica-slidebox-img-2.png -------------------------------------------------------------------------------- /mobile/src/assets/img/ica-slidebox-img-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/src/assets/img/ica-slidebox-img-3.png -------------------------------------------------------------------------------- /mobile/src/assets/img/ica-slidebox-img-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/src/assets/img/ica-slidebox-img-4.png -------------------------------------------------------------------------------- /mobile/src/assets/img/ionic-logo-white.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /mobile/src/assets/img/speakers/bear.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/src/assets/img/speakers/bear.jpg -------------------------------------------------------------------------------- /mobile/src/assets/img/speakers/cheetah.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/src/assets/img/speakers/cheetah.jpg -------------------------------------------------------------------------------- /mobile/src/assets/img/speakers/duck.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/src/assets/img/speakers/duck.jpg -------------------------------------------------------------------------------- /mobile/src/assets/img/speakers/eagle.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/src/assets/img/speakers/eagle.jpg -------------------------------------------------------------------------------- /mobile/src/assets/img/speakers/elephant.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/src/assets/img/speakers/elephant.jpg -------------------------------------------------------------------------------- /mobile/src/assets/img/speakers/giraffe.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/src/assets/img/speakers/giraffe.jpg -------------------------------------------------------------------------------- /mobile/src/assets/img/speakers/iguana.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/src/assets/img/speakers/iguana.jpg -------------------------------------------------------------------------------- /mobile/src/assets/img/speakers/kitten.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/src/assets/img/speakers/kitten.jpg -------------------------------------------------------------------------------- /mobile/src/assets/img/speakers/lion.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/src/assets/img/speakers/lion.jpg -------------------------------------------------------------------------------- /mobile/src/assets/img/speakers/mouse.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/src/assets/img/speakers/mouse.jpg -------------------------------------------------------------------------------- /mobile/src/assets/img/speakers/puppy.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/src/assets/img/speakers/puppy.jpg -------------------------------------------------------------------------------- /mobile/src/assets/img/speakers/rabbit.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/src/assets/img/speakers/rabbit.jpg -------------------------------------------------------------------------------- /mobile/src/assets/img/speakers/turtle.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/src/assets/img/speakers/turtle.jpg -------------------------------------------------------------------------------- /mobile/src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Ionic Conference App 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /mobile/src/interfaces/user-options.ts: -------------------------------------------------------------------------------- 1 | 2 | export interface UserOptions { 3 | username: string, 4 | password: string 5 | } 6 | -------------------------------------------------------------------------------- /mobile/src/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Ionic Conference", 3 | "short_name": "Ionic Conf", 4 | "start_url": "index.html", 5 | "display": "standalone", 6 | "icons": [{ 7 | "src": "assets/img/appicon.png", 8 | "sizes": "512x512", 9 | "type": "image/png" 10 | }], 11 | "background_color": "#387ef5", 12 | "theme_color": "#387ef5" 13 | } -------------------------------------------------------------------------------- /mobile/src/pages/about-popover/about-popover.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | import { App, NavController, ModalController, ViewController } from 'ionic-angular'; 4 | 5 | 6 | @Component({ 7 | template: ` 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | ` 16 | }) 17 | export class PopoverPage { 18 | 19 | constructor( 20 | public viewCtrl: ViewController, 21 | public navCtrl: NavController, 22 | public app: App, 23 | public modalCtrl: ModalController 24 | ) { } 25 | 26 | support() { 27 | this.app.getRootNav().push('SupportPage'); 28 | this.viewCtrl.dismiss(); 29 | } 30 | 31 | close(url: string) { 32 | window.open(url, '_blank'); 33 | this.viewCtrl.dismiss(); 34 | } 35 | } -------------------------------------------------------------------------------- /mobile/src/pages/about/about.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | About 7 | 8 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | ionic logo 18 |
19 |
20 |

Ionic Conference

21 | 22 | 23 | 24 | 25 | Date 26 | 27 | 28 | 29 | 30 | 31 | Location 32 | 33 | Madison, WI 34 | Austin, TX 35 | Chicago, IL 36 | Seattle, WA 37 | 38 | 39 | 40 | 41 |

42 | The Ionic Conference is a one-day conference featuring talks from the 43 | Ionic team. It is focused on Ionic applications being built with 44 | Ionic 2. This includes migrating apps from Ionic 1 to Ionic 2, 45 | Angular concepts, Webpack, Sass, and many other technologies used 46 | in Ionic 2. Tickets are completely sold out, and we’re expecting 47 | more than 1000 developers – making this the largest Ionic 48 | conference ever! 49 |

50 |
51 |
52 | -------------------------------------------------------------------------------- /mobile/src/pages/about/about.scss: -------------------------------------------------------------------------------- 1 | .about-header { 2 | background-color: #434954; 3 | padding: 16px; 4 | width: 100%; 5 | min-height: 150px; 6 | text-align: center; 7 | } 8 | 9 | .about-header img { 10 | max-width: 200px; 11 | min-height: 115px; 12 | margin-left: -15px; 13 | padding: 25px 0 20px 0; 14 | } 15 | 16 | .about-info p { 17 | color: #697072; 18 | text-align: left; 19 | } 20 | 21 | .about-info ion-icon { 22 | color: color($colors, primary); 23 | width: 20px; 24 | } 25 | 26 | .md, 27 | .wp { 28 | .about-info [text-right] { 29 | margin-right: 0; 30 | } 31 | } 32 | 33 | .ios .about-info { 34 | text-align: center; 35 | } 36 | 37 | .ios .about-info ion-icon { 38 | width: auto; 39 | margin-right: 10px; 40 | } 41 | -------------------------------------------------------------------------------- /mobile/src/pages/about/about.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { PopoverController } from 'ionic-angular'; 3 | 4 | import { PopoverPage } from '../about-popover/about-popover'; 5 | 6 | @Component({ 7 | selector: 'page-about', 8 | templateUrl: 'about.html' 9 | }) 10 | export class AboutPage { 11 | conferenceDate = '2047-05-17'; 12 | 13 | constructor(public popoverCtrl: PopoverController) { } 14 | 15 | presentPopover(event: Event) { 16 | let popover = this.popoverCtrl.create(PopoverPage); 17 | popover.present({ ev: event }); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /mobile/src/pages/account/account.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | Account 7 | 8 | 9 | 10 | 11 |
12 | avatar 13 |

{{username}}

14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 |
24 | -------------------------------------------------------------------------------- /mobile/src/pages/account/account.scss: -------------------------------------------------------------------------------- 1 | 2 | page-account img { 3 | max-width: 140px; 4 | border-radius: 50%; 5 | } 6 | -------------------------------------------------------------------------------- /mobile/src/pages/account/account.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | import { AlertController, NavController } from 'ionic-angular'; 4 | 5 | import { UserData } from '../../providers/user-data'; 6 | 7 | 8 | @Component({ 9 | selector: 'page-account', 10 | templateUrl: 'account.html' 11 | }) 12 | export class AccountPage { 13 | username: string; 14 | 15 | constructor(public alertCtrl: AlertController, public nav: NavController, public userData: UserData) { 16 | 17 | } 18 | 19 | ngAfterViewInit() { 20 | this.getUsername(); 21 | } 22 | 23 | updatePicture() { 24 | console.log('Clicked to update picture'); 25 | } 26 | 27 | // Present an alert with the current username populated 28 | // clicking OK will update the username and display it 29 | // clicking Cancel will close the alert and do nothing 30 | changeUsername() { 31 | let alert = this.alertCtrl.create({ 32 | title: 'Change Username', 33 | buttons: [ 34 | 'Cancel' 35 | ] 36 | }); 37 | alert.addInput({ 38 | name: 'username', 39 | value: this.username, 40 | placeholder: 'username' 41 | }); 42 | alert.addButton({ 43 | text: 'Ok', 44 | handler: (data: any) => { 45 | this.userData.setUsername(data.username); 46 | this.getUsername(); 47 | } 48 | }); 49 | 50 | alert.present(); 51 | } 52 | 53 | getUsername() { 54 | this.userData.getUsername().then((username) => { 55 | this.username = username; 56 | }); 57 | } 58 | 59 | changePassword() { 60 | console.log('Clicked to change password'); 61 | } 62 | 63 | logout() { 64 | this.userData.logout(); 65 | this.nav.setRoot('LoginPage'); 66 | } 67 | 68 | support() { 69 | this.nav.push('SupportPage'); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /mobile/src/pages/login/login.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | Login 7 | 8 | 9 | 10 | 11 | 14 | 15 |
16 | 17 | 18 | Username 19 | 21 | 22 | 23 |

24 | Username is required 25 |

26 | 27 | 28 | Password 29 | 30 | 31 | 32 |

33 | Password is required 34 |

35 |
36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 |
46 | 47 |
48 | -------------------------------------------------------------------------------- /mobile/src/pages/login/login.scss: -------------------------------------------------------------------------------- 1 | // Styles for all of the user pages: 2 | // Login, Signup, Support 3 | 4 | page-user { 5 | .logo { 6 | padding: 20px 0; 7 | min-height: 200px; 8 | text-align: center; 9 | 10 | img { 11 | max-width: 150px; 12 | } 13 | } 14 | 15 | .list { 16 | margin-bottom: 0; 17 | } 18 | } -------------------------------------------------------------------------------- /mobile/src/pages/login/login.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { NgForm } from '@angular/forms'; 3 | 4 | import { NavController } from 'ionic-angular'; 5 | 6 | import { UserData } from '../../providers/user-data'; 7 | 8 | import { UserOptions } from '../../interfaces/user-options'; 9 | 10 | import { TabsPage } from '../tabs-page/tabs-page'; 11 | import { SignupPage } from '../signup/signup'; 12 | 13 | 14 | @Component({ 15 | selector: 'page-user', 16 | templateUrl: 'login.html' 17 | }) 18 | export class LoginPage { 19 | login: UserOptions = { username: '', password: '' }; 20 | submitted = false; 21 | 22 | constructor(public navCtrl: NavController, public userData: UserData) { } 23 | 24 | onLogin(form: NgForm) { 25 | this.submitted = true; 26 | 27 | if (form.valid) { 28 | this.userData.login(this.login.username); 29 | this.navCtrl.push(TabsPage); 30 | } 31 | } 32 | 33 | onSignup() { 34 | this.navCtrl.push(SignupPage); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /mobile/src/pages/map/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | Map 7 | 8 | 9 | 10 | 11 |
12 |
13 | -------------------------------------------------------------------------------- /mobile/src/pages/map/map.scss: -------------------------------------------------------------------------------- 1 | 2 | page-map ion-content { 3 | background: rgb(229, 227, 223); 4 | } 5 | 6 | page-map { 7 | #map_canvas { 8 | height: 500px; 9 | width: 320px; 10 | background-color : transparent; 11 | } 12 | } 13 | 14 | page-map ion-content { 15 | background: rgb(229, 227, 223); 16 | } 17 | 18 | page-map #map_canvas { 19 | width: 100%; 20 | height: 100%; 21 | opacity: 0; 22 | transition: opacity 150ms ease-in 23 | } 24 | 25 | page-map #map_canvas.show-map { 26 | opacity: 1; 27 | } 28 | 29 | ion-app._gmaps_cdv_ .nav-decor{ 30 | background-color: transparent !important; 31 | } 32 | -------------------------------------------------------------------------------- /mobile/src/pages/map/map.ts: -------------------------------------------------------------------------------- 1 | import { Component, ViewChild, ElementRef } from '@angular/core'; 2 | 3 | import { ConferenceData } from '../../providers/conference-data'; 4 | 5 | import { Platform } from 'ionic-angular'; 6 | 7 | 8 | declare var google: any; 9 | 10 | 11 | @Component({ 12 | selector: 'page-map', 13 | templateUrl: 'map.html' 14 | }) 15 | export class MapPage { 16 | 17 | @ViewChild('mapCanvas') mapElement: ElementRef; 18 | constructor(public confData: ConferenceData, public platform: Platform) { 19 | } 20 | 21 | ionViewDidLoad() { 22 | 23 | this.confData.getMap().subscribe((mapData: any) => { 24 | let mapEle = this.mapElement.nativeElement; 25 | 26 | let map = new google.maps.Map(mapEle, { 27 | center: mapData.find((d: any) => d.center), 28 | zoom: 16 29 | }); 30 | 31 | mapData.forEach((markerData: any) => { 32 | let infoWindow = new google.maps.InfoWindow({ 33 | content: `
${markerData.name}
` 34 | }); 35 | 36 | let marker = new google.maps.Marker({ 37 | position: markerData, 38 | map: map, 39 | title: markerData.name 40 | }); 41 | 42 | marker.addListener('click', () => { 43 | infoWindow.open(map, marker); 44 | }); 45 | }); 46 | 47 | google.maps.event.addListenerOnce(map, 'idle', () => { 48 | mapEle.classList.add('show-map'); 49 | }); 50 | 51 | }); 52 | 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /mobile/src/pages/schedule-filter/schedule-filter.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Filter Sessions 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | Tracks 21 | 22 | 23 | 24 | {{track.name}} 25 | 26 | 27 | 28 | 29 | 30 | 31 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /mobile/src/pages/schedule-filter/schedule-filter.scss: -------------------------------------------------------------------------------- 1 | 2 | .reset-filters { 3 | color: color($colors, danger); 4 | } 5 | 6 | @each $track, $value in auxiliary-categories() { 7 | 8 | ion-item[track=#{$track}] .dot { 9 | height: 10px; 10 | display: inline-block; 11 | width: 10px; 12 | background-color: $value; 13 | border-radius: 5px; 14 | margin-right: 10px; 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /mobile/src/pages/schedule-filter/schedule-filter.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | import { NavParams, ViewController } from 'ionic-angular'; 4 | 5 | import { ConferenceData } from '../../providers/conference-data'; 6 | 7 | 8 | @Component({ 9 | selector: 'page-schedule-filter', 10 | templateUrl: 'schedule-filter.html' 11 | }) 12 | export class ScheduleFilterPage { 13 | tracks: Array<{name: string, isChecked: boolean}> = []; 14 | 15 | constructor( 16 | public confData: ConferenceData, 17 | public navParams: NavParams, 18 | public viewCtrl: ViewController 19 | ) { 20 | // passed in array of track names that should be excluded (unchecked) 21 | let excludedTrackNames = this.navParams.data; 22 | 23 | this.confData.getTracks().subscribe((trackNames: string[]) => { 24 | 25 | trackNames.forEach(trackName => { 26 | this.tracks.push({ 27 | name: trackName, 28 | isChecked: (excludedTrackNames.indexOf(trackName) === -1) 29 | }); 30 | }); 31 | 32 | }); 33 | } 34 | 35 | resetFilters() { 36 | // reset all of the toggles to be checked 37 | this.tracks.forEach(track => { 38 | track.isChecked = true; 39 | }); 40 | } 41 | 42 | applyFilters() { 43 | // Pass back a new array of track names to exclude 44 | let excludedTrackNames = this.tracks.filter(c => !c.isChecked).map(c => c.name); 45 | this.dismiss(excludedTrackNames); 46 | } 47 | 48 | dismiss(data?: any) { 49 | // using the injected ViewController this page 50 | // can "dismiss" itself and pass back data 51 | this.viewCtrl.dismiss(data); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /mobile/src/pages/schedule/schedule.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | 9 | All 10 | 11 | 12 | Favorites 13 | 14 | 15 | 16 | 17 | 20 | 21 | 22 | 23 | 24 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | {{group.time}} 44 | 45 | 46 | 47 | 48 | 49 | 57 | 58 | 59 | 62 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | No Sessions Found 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /mobile/src/pages/schedule/schedule.scss: -------------------------------------------------------------------------------- 1 | $categories: ( 2 | ionic: color($colors, primary), 3 | angular: #AC282B, 4 | communication: #8E8D93, 5 | tooling: #FE4C52, 6 | services: #FD8B2D, 7 | design: #FED035, 8 | workshop: #69BB7B, 9 | food: #3BC7C4, 10 | documentation: #B16BE3, 11 | navigation: #6600CC, 12 | ); 13 | 14 | @function auxiliary-categories() { 15 | @return map-remove($categories); 16 | } 17 | 18 | page-schedule { 19 | @each $track, $value in auxiliary-categories() { 20 | ion-item-sliding[track=#{$track}] ion-label { 21 | border-left: 2px solid $value; 22 | padding-left: 10px; 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /mobile/src/pages/schedule/schedule.ts: -------------------------------------------------------------------------------- 1 | import { Component, ViewChild } from '@angular/core'; 2 | 3 | import { AlertController, App, FabContainer, ItemSliding, List, ModalController, NavController, ToastController, LoadingController, Refresher } from 'ionic-angular'; 4 | 5 | /* 6 | To learn how to use third party libs in an 7 | Ionic app check out our docs here: http://ionicframework.com/docs/v2/resources/third-party-libs/ 8 | */ 9 | // import moment from 'moment'; 10 | 11 | import { ConferenceData } from '../../providers/conference-data'; 12 | import { UserData } from '../../providers/user-data'; 13 | 14 | import { SessionDetailPage } from '../session-detail/session-detail'; 15 | import { ScheduleFilterPage } from '../schedule-filter/schedule-filter'; 16 | 17 | 18 | @Component({ 19 | selector: 'page-schedule', 20 | templateUrl: 'schedule.html' 21 | }) 22 | export class SchedulePage { 23 | // the list is a child of the schedule page 24 | // @ViewChild('scheduleList') gets a reference to the list 25 | // with the variable #scheduleList, `read: List` tells it to return 26 | // the List and not a reference to the element 27 | @ViewChild('scheduleList', { read: List }) scheduleList: List; 28 | 29 | dayIndex = 0; 30 | queryText = ''; 31 | segment = 'all'; 32 | excludeTracks: any = []; 33 | shownSessions: any = []; 34 | groups: any = []; 35 | confDate: string; 36 | 37 | constructor( 38 | public alertCtrl: AlertController, 39 | public app: App, 40 | public loadingCtrl: LoadingController, 41 | public modalCtrl: ModalController, 42 | public navCtrl: NavController, 43 | public toastCtrl: ToastController, 44 | public confData: ConferenceData, 45 | public user: UserData, 46 | ) {} 47 | 48 | ionViewDidLoad() { 49 | this.app.setTitle('Schedule'); 50 | this.updateSchedule(); 51 | } 52 | 53 | updateSchedule() { 54 | // Close any open sliding items when the schedule updates 55 | this.scheduleList && this.scheduleList.closeSlidingItems(); 56 | 57 | this.confData.getTimeline(this.dayIndex, this.queryText, this.excludeTracks, this.segment).subscribe((data: any) => { 58 | this.shownSessions = data.shownSessions; 59 | this.groups = data.groups; 60 | }); 61 | } 62 | 63 | presentFilter() { 64 | let modal = this.modalCtrl.create(ScheduleFilterPage, this.excludeTracks); 65 | modal.present(); 66 | 67 | modal.onWillDismiss((data: any[]) => { 68 | if (data) { 69 | this.excludeTracks = data; 70 | this.updateSchedule(); 71 | } 72 | }); 73 | 74 | } 75 | 76 | goToSessionDetail(sessionData: any) { 77 | // go to the session detail page 78 | // and pass in the session data 79 | 80 | this.navCtrl.push(SessionDetailPage, { sessionId: sessionData.id, name: sessionData.name }); 81 | } 82 | 83 | addFavorite(slidingItem: ItemSliding, sessionData: any) { 84 | 85 | if (this.user.hasFavorite(sessionData.name)) { 86 | // woops, they already favorited it! What shall we do!? 87 | // prompt them to remove it 88 | this.removeFavorite(slidingItem, sessionData, 'Favorite already added'); 89 | } else { 90 | // remember this session as a user favorite 91 | this.user.addFavorite(sessionData.name); 92 | 93 | // create an alert instance 94 | let alert = this.alertCtrl.create({ 95 | title: 'Favorite Added', 96 | buttons: [{ 97 | text: 'OK', 98 | handler: () => { 99 | // close the sliding item 100 | slidingItem.close(); 101 | } 102 | }] 103 | }); 104 | // now present the alert on top of all other content 105 | alert.present(); 106 | } 107 | 108 | } 109 | 110 | removeFavorite(slidingItem: ItemSliding, sessionData: any, title: string) { 111 | let alert = this.alertCtrl.create({ 112 | title: title, 113 | message: 'Would you like to remove this session from your favorites?', 114 | buttons: [ 115 | { 116 | text: 'Cancel', 117 | handler: () => { 118 | // they clicked the cancel button, do not remove the session 119 | // close the sliding item and hide the option buttons 120 | slidingItem.close(); 121 | } 122 | }, 123 | { 124 | text: 'Remove', 125 | handler: () => { 126 | // they want to remove this session from their favorites 127 | this.user.removeFavorite(sessionData.name); 128 | this.updateSchedule(); 129 | 130 | // close the sliding item and hide the option buttons 131 | slidingItem.close(); 132 | } 133 | } 134 | ] 135 | }); 136 | // now present the alert on top of all other content 137 | alert.present(); 138 | } 139 | 140 | openSocial(network: string, fab: FabContainer) { 141 | let loading = this.loadingCtrl.create({ 142 | content: `Posting to ${network}`, 143 | duration: (Math.random() * 1000) + 500 144 | }); 145 | loading.onWillDismiss(() => { 146 | fab.close(); 147 | }); 148 | loading.present(); 149 | } 150 | 151 | doRefresh(refresher: Refresher) { 152 | this.confData.getTimeline(this.dayIndex, this.queryText, this.excludeTracks, this.segment).subscribe((data: any) => { 153 | this.shownSessions = data.shownSessions; 154 | this.groups = data.groups; 155 | 156 | // simulate a network request that would take longer 157 | // than just pulling from out local json file 158 | setTimeout(() => { 159 | refresher.complete(); 160 | 161 | const toast = this.toastCtrl.create({ 162 | message: 'Sessions have been updated.', 163 | duration: 3000 164 | }); 165 | toast.present(); 166 | }, 1000); 167 | }); 168 | } 169 | } 170 | -------------------------------------------------------------------------------- /mobile/src/pages/session-detail/session-detail.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | {{session.name}} 4 | 5 | 6 | 7 | 8 |
9 |

{{session.name}}

10 |

11 | {{speaker.name}} 12 |

13 |

14 | {{session.timeStart}} - {{session.timeEnd}} 15 |

16 |

{{session.location}}

17 |

{{session.description}}

18 |
19 |
20 | -------------------------------------------------------------------------------- /mobile/src/pages/session-detail/session-detail.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { NavParams } from 'ionic-angular'; 3 | 4 | import { ConferenceData } from '../../providers/conference-data'; 5 | 6 | @Component({ 7 | selector: 'page-session-detail', 8 | templateUrl: 'session-detail.html' 9 | }) 10 | export class SessionDetailPage { 11 | session: any; 12 | 13 | constructor( 14 | public dataProvider: ConferenceData, 15 | public navParams: NavParams 16 | ) {} 17 | 18 | ionViewWillEnter() { 19 | this.dataProvider.load().subscribe((data: any) => { 20 | if ( 21 | data && 22 | data.schedule && 23 | data.schedule[0] && 24 | data.schedule[0].groups 25 | ) { 26 | for (const group of data.schedule[0].groups) { 27 | if (group && group.sessions) { 28 | for (const session of group.sessions) { 29 | if (session && session.id === this.navParams.data.sessionId) { 30 | this.session = session; 31 | break; 32 | } 33 | } 34 | } 35 | } 36 | } 37 | }); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /mobile/src/pages/signup/signup.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | Signup 7 | 8 | 9 | 10 | 11 | 12 | 15 | 16 |
17 | 18 | 19 | Username 20 | 21 | 22 | 23 |

24 | Username is required 25 |

26 | 27 | 28 | Password 29 | 30 | 31 | 32 |

33 | Password is required 34 |

35 |
36 | 37 |
38 | 39 |
40 |
41 | 42 |
43 | -------------------------------------------------------------------------------- /mobile/src/pages/signup/signup.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/src/pages/signup/signup.scss -------------------------------------------------------------------------------- /mobile/src/pages/signup/signup.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { NgForm } from '@angular/forms'; 3 | 4 | import { NavController } from 'ionic-angular'; 5 | 6 | import { UserData } from '../../providers/user-data'; 7 | 8 | import { UserOptions } from '../../interfaces/user-options'; 9 | 10 | import { TabsPage } from '../tabs-page/tabs-page'; 11 | 12 | 13 | @Component({ 14 | selector: 'page-user', 15 | templateUrl: 'signup.html' 16 | }) 17 | export class SignupPage { 18 | signup: UserOptions = { username: '', password: '' }; 19 | submitted = false; 20 | 21 | constructor(public navCtrl: NavController, public userData: UserData) {} 22 | 23 | onSignup(form: NgForm) { 24 | this.submitted = true; 25 | 26 | if (form.valid) { 27 | this.userData.signup(this.signup.username); 28 | this.navCtrl.push(TabsPage); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /mobile/src/pages/speaker-detail/speaker-detail.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | {{speaker?.name}} 4 | 5 | 6 | 7 | 8 |
9 |
10 | 11 | 14 | 17 | 20 |
21 | 22 |

{{speaker?.about}}

23 |
24 | -------------------------------------------------------------------------------- /mobile/src/pages/speaker-detail/speaker-detail.scss: -------------------------------------------------------------------------------- 1 | 2 | .speaker-detail img { 3 | max-width: 140px; 4 | border-radius: 50%; 5 | } 6 | 7 | .speaker-detail p { 8 | color: #60646B; 9 | } 10 | -------------------------------------------------------------------------------- /mobile/src/pages/speaker-detail/speaker-detail.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { NavController, NavParams } from 'ionic-angular'; 3 | 4 | import { ConferenceData } from '../../providers/conference-data'; 5 | 6 | @Component({ 7 | selector: 'page-speaker-detail', 8 | templateUrl: 'speaker-detail.html' 9 | }) 10 | export class SpeakerDetailPage { 11 | speaker: any; 12 | 13 | constructor(public dataProvider: ConferenceData, public navCtrl: NavController, public navParams: NavParams) { 14 | } 15 | 16 | ionViewWillEnter() { 17 | this.dataProvider.load().subscribe((data: any) => { 18 | if (data && data.speakers) { 19 | for (const speaker of data.speakers) { 20 | if (speaker && speaker.id === this.navParams.data.speakerId) { 21 | this.speaker = speaker; 22 | break; 23 | } 24 | } 25 | } 26 | }); 27 | 28 | } 29 | 30 | goToSessionDetail(session: any) { 31 | this.navCtrl.push('SessionDetailPage', { sessionId: session.id }); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /mobile/src/pages/speaker-list/speaker-list.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | Speakers 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 26 | 27 | 28 | 29 | 32 | 33 | 36 | 37 | 38 | 39 | 40 | 41 | 45 | 46 | 47 | 51 | 52 | 53 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /mobile/src/pages/speaker-list/speaker-list.scss: -------------------------------------------------------------------------------- 1 | page-speaker-list { 2 | .scroll-content { 3 | background: #EDEDED; 4 | } 5 | 6 | .speaker-card { 7 | height: 100%; 8 | display: flex; 9 | flex-direction: column; 10 | 11 | ion-card-content { 12 | flex: 1 1 auto; 13 | } 14 | } 15 | 16 | // Todo: remove when this issue https://github.com/ionic-team/ionic/issues/11212 is fixed 17 | @media(min-width: 769px) { 18 | .speaker-card { 19 | height: 370px; 20 | } 21 | } 22 | 23 | .speaker-card ion-card-header .item { 24 | padding: 4px 16px; 25 | } 26 | 27 | .speaker-card ion-card-content { 28 | padding-left: 0; 29 | padding-right: 0; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /mobile/src/pages/speaker-list/speaker-list.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | import { 4 | ActionSheet, 5 | ActionSheetController, 6 | ActionSheetOptions, 7 | Config, 8 | NavController 9 | } from 'ionic-angular'; 10 | import { InAppBrowser } from '@ionic-native/in-app-browser'; 11 | 12 | import { ConferenceData } from '../../providers/conference-data'; 13 | 14 | import { SessionDetailPage } from '../session-detail/session-detail'; 15 | import { SpeakerDetailPage } from '../speaker-detail/speaker-detail'; 16 | 17 | // TODO remove 18 | export interface ActionSheetButton { 19 | text?: string; 20 | role?: string; 21 | icon?: string; 22 | cssClass?: string; 23 | handler?: () => boolean|void; 24 | }; 25 | 26 | @Component({ 27 | selector: 'page-speaker-list', 28 | templateUrl: 'speaker-list.html' 29 | }) 30 | export class SpeakerListPage { 31 | actionSheet: ActionSheet; 32 | speakers: any[] = []; 33 | 34 | constructor( 35 | public actionSheetCtrl: ActionSheetController, 36 | public navCtrl: NavController, 37 | public confData: ConferenceData, 38 | public config: Config, 39 | public inAppBrowser: InAppBrowser 40 | ) {} 41 | 42 | ionViewDidLoad() { 43 | this.confData.getSpeakers().subscribe((speakers: any[]) => { 44 | this.speakers = speakers; 45 | }); 46 | } 47 | 48 | goToSessionDetail(session: any) { 49 | this.navCtrl.push(SessionDetailPage, { sessionId: session.id }); 50 | } 51 | 52 | goToSpeakerDetail(speaker: any) { 53 | this.navCtrl.push(SpeakerDetailPage, { speakerId: speaker.id }); 54 | } 55 | 56 | goToSpeakerTwitter(speaker: any) { 57 | this.inAppBrowser.create( 58 | `https://twitter.com/${speaker.twitter}`, 59 | '_blank' 60 | ); 61 | } 62 | 63 | openSpeakerShare(speaker: any) { 64 | let actionSheet = this.actionSheetCtrl.create({ 65 | title: 'Share ' + speaker.name, 66 | buttons: [ 67 | { 68 | text: 'Copy Link', 69 | handler: () => { 70 | console.log('Copy link clicked on https://twitter.com/' + speaker.twitter); 71 | if ( (window as any)['cordova'] && (window as any)['cordova'].plugins.clipboard) { 72 | (window as any)['cordova'].plugins.clipboard.copy( 73 | 'https://twitter.com/' + speaker.twitter 74 | ); 75 | } 76 | } 77 | } as ActionSheetButton, 78 | { 79 | text: 'Share via ...' 80 | } as ActionSheetButton, 81 | { 82 | text: 'Cancel', 83 | role: 'cancel' 84 | } as ActionSheetButton 85 | ] 86 | } as ActionSheetOptions); 87 | 88 | actionSheet.present(); 89 | } 90 | 91 | openContact(speaker: any) { 92 | let mode = this.config.get('mode'); 93 | 94 | let actionSheet = this.actionSheetCtrl.create({ 95 | title: 'Contact ' + speaker.name, 96 | buttons: [ 97 | { 98 | text: `Email ( ${speaker.email} )`, 99 | icon: mode !== 'ios' ? 'mail' : null, 100 | handler: () => { 101 | window.open('mailto:' + speaker.email); 102 | } 103 | } as ActionSheetButton, 104 | { 105 | text: `Call ( ${speaker.phone} )`, 106 | icon: mode !== 'ios' ? 'call' : null, 107 | handler: () => { 108 | window.open('tel:' + speaker.phone); 109 | } 110 | } as ActionSheetButton 111 | ] 112 | } as ActionSheetOptions); 113 | 114 | actionSheet.present(); 115 | } 116 | } 117 | -------------------------------------------------------------------------------- /mobile/src/pages/support/support.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | Support 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 |
19 | 20 | 21 | Enter your support message below 22 | 23 | 24 | 25 | 26 |

27 | Support message is required 28 |

29 | 30 |
31 | 32 |
33 |
34 |
35 | -------------------------------------------------------------------------------- /mobile/src/pages/support/support.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemichaelis/dnc/173958df3b30c3f5b85b718bdf71d9c362b8685d/mobile/src/pages/support/support.scss -------------------------------------------------------------------------------- /mobile/src/pages/support/support.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { NgForm } from '@angular/forms'; 3 | 4 | import { AlertController, NavController, ToastController } from 'ionic-angular'; 5 | 6 | 7 | @Component({ 8 | selector: 'page-user', 9 | templateUrl: 'support.html' 10 | }) 11 | export class SupportPage { 12 | 13 | submitted: boolean = false; 14 | supportMessage: string; 15 | 16 | constructor( 17 | public navCtrl: NavController, 18 | public alertCtrl: AlertController, 19 | public toastCtrl: ToastController 20 | ) { 21 | 22 | } 23 | 24 | ionViewDidEnter() { 25 | let toast = this.toastCtrl.create({ 26 | message: 'This does not actually send a support request.', 27 | duration: 3000 28 | }); 29 | toast.present(); 30 | } 31 | 32 | submit(form: NgForm) { 33 | this.submitted = true; 34 | 35 | if (form.valid) { 36 | this.supportMessage = ''; 37 | this.submitted = false; 38 | 39 | let toast = this.toastCtrl.create({ 40 | message: 'Your support request has been sent.', 41 | duration: 3000 42 | }); 43 | toast.present(); 44 | } 45 | } 46 | 47 | // If the user enters text in the support question and then navigates 48 | // without submitting first, ask if they meant to leave the page 49 | ionViewCanLeave(): boolean | Promise { 50 | // If the support message is empty we should just navigate 51 | if (!this.supportMessage || this.supportMessage.trim().length === 0) { 52 | return true; 53 | } 54 | 55 | return new Promise((resolve: any, reject: any) => { 56 | let alert = this.alertCtrl.create({ 57 | title: 'Leave this page?', 58 | message: 'Are you sure you want to leave this page? Your support message will not be submitted.' 59 | }); 60 | alert.addButton({ text: 'Stay', handler: reject }); 61 | alert.addButton({ text: 'Leave', role: 'cancel', handler: resolve }); 62 | 63 | alert.present(); 64 | }); 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /mobile/src/pages/tabs-page/tabs-page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /mobile/src/pages/tabs-page/tabs-page.scss: -------------------------------------------------------------------------------- 1 | .tabbar { 2 | justify-content: center; 3 | } 4 | 5 | .tab-button { 6 | max-width: 200px; 7 | } -------------------------------------------------------------------------------- /mobile/src/pages/tabs-page/tabs-page.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | import { NavParams } from 'ionic-angular'; 4 | 5 | import { AboutPage } from '../about/about'; 6 | import { MapPage } from '../map/map'; 7 | import { SchedulePage } from '../schedule/schedule'; 8 | import { SpeakerListPage } from '../speaker-list/speaker-list'; 9 | 10 | @Component({ 11 | templateUrl: 'tabs-page.html' 12 | }) 13 | export class TabsPage { 14 | // set the root pages for each tab 15 | tab1Root: any = SchedulePage; 16 | tab2Root: any = SpeakerListPage; 17 | tab3Root: any = MapPage; 18 | tab4Root: any = AboutPage; 19 | mySelectedIndex: number; 20 | 21 | constructor(navParams: NavParams) { 22 | this.mySelectedIndex = navParams.data.tabIndex || 0; 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /mobile/src/pages/tutorial/tutorial.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |

15 | Welcome to ICA 16 |

17 |

18 | The ionic conference app is a practical preview of the ionic framework in action, and a demonstration of proper code use. 19 |

20 |
21 | 22 | 23 | 24 |

What is Ionic?

25 |

Ionic Framework is an open source SDK that enables developers to build high quality mobile apps with web technologies like HTML, CSS, and JavaScript.

26 |
27 | 28 | 29 | 30 |

What is Ionic Pro?

31 |

Ionic Pro is a powerful set of services and features built on top of Ionic Framework that brings a totally new level of app development agility to mobile dev teams.

32 |
33 | 34 | 35 | 36 |

Ready to Play?

37 | 41 |
42 | 43 |
44 |
45 | -------------------------------------------------------------------------------- /mobile/src/pages/tutorial/tutorial.scss: -------------------------------------------------------------------------------- 1 | 2 | page-tutorial { 3 | .toolbar-background { 4 | background: transparent; 5 | border-color: transparent; 6 | } 7 | 8 | .slide-zoom { 9 | height: 100%; 10 | } 11 | 12 | .slide-title { 13 | margin-top: 2.8rem; 14 | } 15 | 16 | .slide-image { 17 | max-height: 50%; 18 | max-width: 60%; 19 | margin: 36px 0; 20 | } 21 | 22 | b { 23 | font-weight: 500; 24 | } 25 | 26 | p { 27 | padding: 0 40px; 28 | font-size: 14px; 29 | line-height: 1.5; 30 | color: #60646B; 31 | 32 | b { 33 | color: #000000; 34 | } 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /mobile/src/pages/tutorial/tutorial.ts: -------------------------------------------------------------------------------- 1 | import { Component, ViewChild } from '@angular/core'; 2 | 3 | import { MenuController, NavController, Slides } from 'ionic-angular'; 4 | 5 | import { Storage } from '@ionic/storage'; 6 | 7 | import { TabsPage } from '../tabs-page/tabs-page'; 8 | 9 | @Component({ 10 | selector: 'page-tutorial', 11 | templateUrl: 'tutorial.html' 12 | }) 13 | 14 | export class TutorialPage { 15 | showSkip = true; 16 | 17 | @ViewChild('slides') slides: Slides; 18 | 19 | constructor( 20 | public navCtrl: NavController, 21 | public menu: MenuController, 22 | public storage: Storage 23 | ) { } 24 | 25 | startApp() { 26 | this.navCtrl.push(TabsPage).then(() => { 27 | this.storage.set('hasSeenTutorial', 'true'); 28 | }) 29 | } 30 | 31 | onSlideChangeStart(slider: Slides) { 32 | this.showSkip = !slider.isEnd(); 33 | } 34 | 35 | ionViewWillEnter() { 36 | this.slides.update(); 37 | } 38 | 39 | ionViewDidEnter() { 40 | // the root left menu should be disabled on the tutorial page 41 | this.menu.enable(false); 42 | } 43 | 44 | ionViewDidLeave() { 45 | // enable the root left menu when leaving the tutorial page 46 | this.menu.enable(true); 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /mobile/src/providers/conference-data.ts: -------------------------------------------------------------------------------- 1 | import { Injectable } from '@angular/core'; 2 | 3 | import { Http } from '@angular/http'; 4 | 5 | import { UserData } from './user-data'; 6 | 7 | import { Observable } from 'rxjs/Observable'; 8 | import 'rxjs/add/operator/map'; 9 | import 'rxjs/add/observable/of'; 10 | 11 | 12 | @Injectable() 13 | export class ConferenceData { 14 | data: any; 15 | 16 | constructor(public http: Http, public user: UserData) { } 17 | 18 | load(): any { 19 | if (this.data) { 20 | return Observable.of(this.data); 21 | } else { 22 | return this.http.get('assets/data/data.json') 23 | .map(this.processData, this); 24 | } 25 | } 26 | 27 | processData(data: any) { 28 | // just some good 'ol JS fun with objects and arrays 29 | // build up the data by linking speakers to sessions 30 | this.data = data.json(); 31 | 32 | this.data.tracks = []; 33 | 34 | // loop through each day in the schedule 35 | this.data.schedule.forEach((day: any) => { 36 | // loop through each timeline group in the day 37 | day.groups.forEach((group: any) => { 38 | // loop through each session in the timeline group 39 | group.sessions.forEach((session: any) => { 40 | session.speakers = []; 41 | if (session.speakerNames) { 42 | session.speakerNames.forEach((speakerName: any) => { 43 | let speaker = this.data.speakers.find((s: any) => s.name === speakerName); 44 | if (speaker) { 45 | session.speakers.push(speaker); 46 | speaker.sessions = speaker.sessions || []; 47 | speaker.sessions.push(session); 48 | } 49 | }); 50 | } 51 | 52 | if (session.tracks) { 53 | session.tracks.forEach((track: any) => { 54 | if (this.data.tracks.indexOf(track) < 0) { 55 | this.data.tracks.push(track); 56 | } 57 | }); 58 | } 59 | }); 60 | }); 61 | }); 62 | 63 | return this.data; 64 | } 65 | 66 | getTimeline(dayIndex: number, queryText = '', excludeTracks: any[] = [], segment = 'all') { 67 | return this.load().map((data: any) => { 68 | let day = data.schedule[dayIndex]; 69 | day.shownSessions = 0; 70 | 71 | queryText = queryText.toLowerCase().replace(/,|\.|-/g, ' '); 72 | let queryWords = queryText.split(' ').filter(w => !!w.trim().length); 73 | 74 | day.groups.forEach((group: any) => { 75 | group.hide = true; 76 | 77 | group.sessions.forEach((session: any) => { 78 | // check if this session should show or not 79 | this.filterSession(session, queryWords, excludeTracks, segment); 80 | 81 | if (!session.hide) { 82 | // if this session is not hidden then this group should show 83 | group.hide = false; 84 | day.shownSessions++; 85 | } 86 | }); 87 | 88 | }); 89 | 90 | return day; 91 | }); 92 | } 93 | 94 | filterSession(session: any, queryWords: string[], excludeTracks: any[], segment: string) { 95 | 96 | let matchesQueryText = false; 97 | if (queryWords.length) { 98 | // of any query word is in the session name than it passes the query test 99 | queryWords.forEach((queryWord: string) => { 100 | if (session.name.toLowerCase().indexOf(queryWord) > -1) { 101 | matchesQueryText = true; 102 | } 103 | }); 104 | } else { 105 | // if there are no query words then this session passes the query test 106 | matchesQueryText = true; 107 | } 108 | 109 | // if any of the sessions tracks are not in the 110 | // exclude tracks then this session passes the track test 111 | let matchesTracks = false; 112 | session.tracks.forEach((trackName: string) => { 113 | if (excludeTracks.indexOf(trackName) === -1) { 114 | matchesTracks = true; 115 | } 116 | }); 117 | 118 | // if the segement is 'favorites', but session is not a user favorite 119 | // then this session does not pass the segment test 120 | let matchesSegment = false; 121 | if (segment === 'favorites') { 122 | if (this.user.hasFavorite(session.name)) { 123 | matchesSegment = true; 124 | } 125 | } else { 126 | matchesSegment = true; 127 | } 128 | 129 | // all tests must be true if it should not be hidden 130 | session.hide = !(matchesQueryText && matchesTracks && matchesSegment); 131 | } 132 | 133 | getSpeakers() { 134 | return this.load().map((data: any) => { 135 | return data.speakers.sort((a: any, b: any) => { 136 | let aName = a.name.split(' ').pop(); 137 | let bName = b.name.split(' ').pop(); 138 | return aName.localeCompare(bName); 139 | }); 140 | }); 141 | } 142 | 143 | getTracks() { 144 | return this.load().map((data: any) => { 145 | return data.tracks.sort(); 146 | }); 147 | } 148 | 149 | getMap() { 150 | return this.load().map((data: any) => { 151 | return data.map; 152 | }); 153 | } 154 | 155 | } 156 | -------------------------------------------------------------------------------- /mobile/src/providers/user-data.ts: -------------------------------------------------------------------------------- 1 | import { Injectable } from '@angular/core'; 2 | 3 | import { Events } from 'ionic-angular'; 4 | import { Storage } from '@ionic/storage'; 5 | 6 | 7 | @Injectable() 8 | export class UserData { 9 | _favorites: string[] = []; 10 | HAS_LOGGED_IN = 'hasLoggedIn'; 11 | HAS_SEEN_TUTORIAL = 'hasSeenTutorial'; 12 | 13 | constructor( 14 | public events: Events, 15 | public storage: Storage 16 | ) {} 17 | 18 | hasFavorite(sessionName: string): boolean { 19 | return (this._favorites.indexOf(sessionName) > -1); 20 | }; 21 | 22 | addFavorite(sessionName: string): void { 23 | this._favorites.push(sessionName); 24 | }; 25 | 26 | removeFavorite(sessionName: string): void { 27 | let index = this._favorites.indexOf(sessionName); 28 | if (index > -1) { 29 | this._favorites.splice(index, 1); 30 | } 31 | }; 32 | 33 | login(username: string): void { 34 | this.storage.set(this.HAS_LOGGED_IN, true); 35 | this.setUsername(username); 36 | this.events.publish('user:login'); 37 | }; 38 | 39 | signup(username: string): void { 40 | this.storage.set(this.HAS_LOGGED_IN, true); 41 | this.setUsername(username); 42 | this.events.publish('user:signup'); 43 | }; 44 | 45 | logout(): void { 46 | this.storage.remove(this.HAS_LOGGED_IN); 47 | this.storage.remove('username'); 48 | this.events.publish('user:logout'); 49 | }; 50 | 51 | setUsername(username: string): void { 52 | this.storage.set('username', username); 53 | }; 54 | 55 | getUsername(): Promise { 56 | return this.storage.get('username').then((value) => { 57 | return value; 58 | }); 59 | }; 60 | 61 | hasLoggedIn(): Promise { 62 | return this.storage.get(this.HAS_LOGGED_IN).then((value) => { 63 | return value === true; 64 | }); 65 | }; 66 | 67 | checkHasSeenTutorial(): Promise { 68 | return this.storage.get(this.HAS_SEEN_TUTORIAL).then((value) => { 69 | return value; 70 | }); 71 | }; 72 | } 73 | -------------------------------------------------------------------------------- /mobile/src/service-worker.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Check out https://googlechrome.github.io/sw-toolbox/docs/master/index.html for 3 | * more info on how to use sw-toolbox to custom configure your service worker. 4 | */ 5 | 6 | 7 | 'use strict'; 8 | importScripts('./build/sw-toolbox.js'); 9 | 10 | self.toolbox.options.cache = { 11 | name: 'ionic-cache' 12 | }; 13 | 14 | // pre-cache our key assets 15 | self.toolbox.precache( 16 | [ 17 | './build/main.js', 18 | './build/main.css', 19 | './build/polyfills.js', 20 | 'index.html', 21 | 'manifest.json' 22 | ] 23 | ); 24 | 25 | // dynamically cache any other local assets 26 | self.toolbox.router.any('/*', self.toolbox.cacheFirst); 27 | 28 | // for any other requests go to the network, cache, 29 | // and then only use that cached resource if your user goes offline 30 | self.toolbox.router.default = self.toolbox.networkFirst; -------------------------------------------------------------------------------- /mobile/src/theme/variables.scss: -------------------------------------------------------------------------------- 1 | // Ionic Variables and Theming. For more info, please see: 2 | // http://ionicframework.com/docs/v2/theming/ 3 | 4 | // Font path is used to include ionicons, 5 | // roboto, and noto sans fonts 6 | $font-path: "../assets/fonts"; 7 | 8 | 9 | // The app direction is used to include 10 | // rtl styles in your app. For more info, please see: 11 | // http://ionicframework.com/docs/theming/rtl-support/ 12 | $app-direction: ltr; 13 | 14 | 15 | @import "ionic.globals"; 16 | 17 | 18 | // Shared Variables 19 | // -------------------------------------------------- 20 | // To customize the look and feel of this app, you can override 21 | // the Sass variables found in Ionic's source scss files. 22 | // To view all the possible Ionic variables, see: 23 | // http://ionicframework.com/docs/v2/theming/overriding-ionic-variables/ 24 | 25 | $headings-font-weight: 300; 26 | 27 | 28 | // Named Color Variables 29 | // -------------------------------------------------- 30 | // Named colors makes it easy to reuse colors on various components. 31 | // It's highly recommended to change the default colors 32 | // to match your app's branding. Ionic uses a Sass map of 33 | // colors so you can add, rename and remove colors as needed. 34 | // The "primary" color is the only required color in the map. 35 | 36 | $colors: ( 37 | primary: #488aff, 38 | secondary: #32db64, 39 | danger: #f53d3d, 40 | light: #f4f4f4, 41 | dark: #222, 42 | favorite: #69BB7B, 43 | twitter: #1da1f4, 44 | google: #dc4a38, 45 | vimeo: #23b6ea, 46 | facebook: #3b5998 47 | ); 48 | 49 | 50 | // App iOS Variables 51 | // -------------------------------------------------- 52 | // iOS only Sass variables can go here 53 | 54 | 55 | 56 | // App Material Design Variables 57 | // -------------------------------------------------- 58 | // Material Design only Sass variables can go here 59 | 60 | // Use the primary color as the background for the toolbar-md-background 61 | $toolbar-md-background: color($colors, primary); 62 | 63 | // Change the color of the segment button text 64 | $toolbar-md-active-color: #fff; 65 | 66 | 67 | // App Windows Variables 68 | // -------------------------------------------------- 69 | // Windows only Sass variables can go here 70 | 71 | 72 | 73 | // App Theme 74 | // -------------------------------------------------- 75 | // Ionic apps can have different themes applied, which can 76 | // then be future customized. This import comes last 77 | // so that the above variables are used and Ionic's 78 | // default are overridden. 79 | 80 | @import "ionic.theme.default"; 81 | 82 | 83 | // Ionicons 84 | // -------------------------------------------------- 85 | // The premium icon font for Ionic. For more info, please see: 86 | // http://ionicframework.com/docs/v2/ionicons/ 87 | 88 | @import "ionic.ionicons"; 89 | 90 | 91 | // Fonts 92 | // -------------------------------------------------- 93 | // Roboto font is used by default for Material Design. Noto sans 94 | // is used by default for Windows. 95 | 96 | @import "roboto"; 97 | @import "noto-sans"; -------------------------------------------------------------------------------- /mobile/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "atom": { 3 | "rewriteTsconfig": false 4 | }, 5 | "compileOnSave": false, 6 | "compilerOptions": { 7 | "allowSyntheticDefaultImports": true, 8 | "declaration": false, 9 | "emitDecoratorMetadata": true, 10 | "experimentalDecorators": true, 11 | "noUnusedParameters": true, 12 | "noUnusedLocals": true, 13 | "strict": false, 14 | "module": "es2015", 15 | "moduleResolution": "node", 16 | "sourceMap": true, 17 | "target": "es5", 18 | "lib": [ 19 | "dom", 20 | "es2015" 21 | ] 22 | }, 23 | "include": [ 24 | "src/**/*.ts" 25 | ], 26 | "exclude": [ 27 | "node_modules" 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /mobile/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "rulesDirectory": [ 3 | "node_modules/tslint-eslint-rules/dist/rules" 4 | ], 5 | "rules": { 6 | "no-duplicate-variable": true 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /mobile/www/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /model/Class1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace model 4 | { 5 | public class Class1 6 | { 7 | 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /model/Migrations/20180222021936_InitialCreate.Designer.cs: -------------------------------------------------------------------------------- 1 | // 2 | using Microsoft.EntityFrameworkCore; 3 | using Microsoft.EntityFrameworkCore.Infrastructure; 4 | using Microsoft.EntityFrameworkCore.Metadata; 5 | using Microsoft.EntityFrameworkCore.Migrations; 6 | using model; 7 | using System; 8 | 9 | namespace model.Migrations 10 | { 11 | [DbContext(typeof(dncContext))] 12 | [Migration("20180222021936_InitialCreate")] 13 | partial class InitialCreate 14 | { 15 | protected override void BuildTargetModel(ModelBuilder modelBuilder) 16 | { 17 | #pragma warning disable 612, 618 18 | modelBuilder 19 | .HasAnnotation("ChangeDetector.SkipDetectChanges", "true") 20 | .HasAnnotation("ProductVersion", "2.0.1-rtm-125") 21 | .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); 22 | #pragma warning restore 612, 618 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /model/Migrations/20180222021936_InitialCreate.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore.Migrations; 2 | using System; 3 | using System.Collections.Generic; 4 | 5 | namespace model.Migrations 6 | { 7 | public partial class InitialCreate : Migration 8 | { 9 | protected override void Up(MigrationBuilder migrationBuilder) 10 | { 11 | 12 | } 13 | 14 | protected override void Down(MigrationBuilder migrationBuilder) 15 | { 16 | 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /model/Migrations/20180222024140_AddEmployee.Designer.cs: -------------------------------------------------------------------------------- 1 | // 2 | using Microsoft.EntityFrameworkCore; 3 | using Microsoft.EntityFrameworkCore.Infrastructure; 4 | using Microsoft.EntityFrameworkCore.Metadata; 5 | using Microsoft.EntityFrameworkCore.Migrations; 6 | using Microsoft.EntityFrameworkCore.Storage; 7 | using Microsoft.EntityFrameworkCore.Storage.Internal; 8 | using model; 9 | using System; 10 | 11 | namespace model.Migrations 12 | { 13 | [DbContext(typeof(dncContext))] 14 | [Migration("20180222024140_AddEmployee")] 15 | partial class AddEmployee 16 | { 17 | protected override void BuildTargetModel(ModelBuilder modelBuilder) 18 | { 19 | #pragma warning disable 612, 618 20 | modelBuilder 21 | .HasAnnotation("ProductVersion", "2.0.1-rtm-125") 22 | .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); 23 | 24 | modelBuilder.Entity("Employee", b => 25 | { 26 | b.Property("id") 27 | .ValueGeneratedOnAdd(); 28 | 29 | b.Property("name"); 30 | 31 | b.HasKey("id"); 32 | 33 | b.ToTable("Employee"); 34 | }); 35 | #pragma warning restore 612, 618 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /model/Migrations/20180222024140_AddEmployee.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore.Metadata; 2 | using Microsoft.EntityFrameworkCore.Migrations; 3 | using System; 4 | using System.Collections.Generic; 5 | 6 | namespace model.Migrations 7 | { 8 | public partial class AddEmployee : Migration 9 | { 10 | protected override void Up(MigrationBuilder migrationBuilder) 11 | { 12 | migrationBuilder.CreateTable( 13 | name: "Employee", 14 | columns: table => new 15 | { 16 | id = table.Column(nullable: false) 17 | .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), 18 | name = table.Column(nullable: true) 19 | }, 20 | constraints: table => 21 | { 22 | table.PrimaryKey("PK_Employee", x => x.id); 23 | }); 24 | } 25 | 26 | protected override void Down(MigrationBuilder migrationBuilder) 27 | { 28 | migrationBuilder.DropTable( 29 | name: "Employee"); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /model/Migrations/20180222171837_UpdatedEmployee.Designer.cs: -------------------------------------------------------------------------------- 1 | // 2 | using Microsoft.EntityFrameworkCore; 3 | using Microsoft.EntityFrameworkCore.Infrastructure; 4 | using Microsoft.EntityFrameworkCore.Metadata; 5 | using Microsoft.EntityFrameworkCore.Migrations; 6 | using Microsoft.EntityFrameworkCore.Storage; 7 | using Microsoft.EntityFrameworkCore.Storage.Internal; 8 | using model; 9 | using System; 10 | 11 | namespace model.Migrations 12 | { 13 | [DbContext(typeof(dncContext))] 14 | [Migration("20180222171837_UpdatedEmployee")] 15 | partial class UpdatedEmployee 16 | { 17 | protected override void BuildTargetModel(ModelBuilder modelBuilder) 18 | { 19 | #pragma warning disable 612, 618 20 | modelBuilder 21 | .HasAnnotation("ProductVersion", "2.0.1-rtm-125") 22 | .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); 23 | 24 | modelBuilder.Entity("Employee", b => 25 | { 26 | b.Property("id") 27 | .ValueGeneratedOnAdd(); 28 | 29 | b.Property("address1"); 30 | 31 | b.Property("address2"); 32 | 33 | b.Property("city"); 34 | 35 | b.Property("country"); 36 | 37 | b.Property("firstName"); 38 | 39 | b.Property("hireDate"); 40 | 41 | b.Property("lastName"); 42 | 43 | b.Property("middleName"); 44 | 45 | b.Property("phone"); 46 | 47 | b.Property("state"); 48 | 49 | b.Property("zip"); 50 | 51 | b.HasKey("id"); 52 | 53 | b.ToTable("Employee"); 54 | }); 55 | #pragma warning restore 612, 618 56 | } 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /model/Migrations/20180222171837_UpdatedEmployee.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore.Migrations; 2 | using System; 3 | using System.Collections.Generic; 4 | 5 | namespace model.Migrations 6 | { 7 | public partial class UpdatedEmployee : Migration 8 | { 9 | protected override void Up(MigrationBuilder migrationBuilder) 10 | { 11 | migrationBuilder.RenameColumn( 12 | name: "name", 13 | table: "Employee", 14 | newName: "zip"); 15 | 16 | migrationBuilder.AddColumn( 17 | name: "address1", 18 | table: "Employee", 19 | nullable: true); 20 | 21 | migrationBuilder.AddColumn( 22 | name: "address2", 23 | table: "Employee", 24 | nullable: true); 25 | 26 | migrationBuilder.AddColumn( 27 | name: "city", 28 | table: "Employee", 29 | nullable: true); 30 | 31 | migrationBuilder.AddColumn( 32 | name: "country", 33 | table: "Employee", 34 | nullable: true); 35 | 36 | migrationBuilder.AddColumn( 37 | name: "firstName", 38 | table: "Employee", 39 | nullable: true); 40 | 41 | migrationBuilder.AddColumn( 42 | name: "hireDate", 43 | table: "Employee", 44 | nullable: false, 45 | defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); 46 | 47 | migrationBuilder.AddColumn( 48 | name: "lastName", 49 | table: "Employee", 50 | nullable: true); 51 | 52 | migrationBuilder.AddColumn( 53 | name: "middleName", 54 | table: "Employee", 55 | nullable: true); 56 | 57 | migrationBuilder.AddColumn( 58 | name: "phone", 59 | table: "Employee", 60 | nullable: true); 61 | 62 | migrationBuilder.AddColumn( 63 | name: "state", 64 | table: "Employee", 65 | nullable: true); 66 | 67 | migrationBuilder.Sql(@"insert into Employee ( firstName, lastName, address1, city, state, zip, country, phone ) 68 | values ('Mike', 'Michaelis', '7143 Doris Dr.', 'Indianapolis', 'IN', '46214', 'USA', '+1(317) 699-2111' )"); 69 | } 70 | 71 | protected override void Down(MigrationBuilder migrationBuilder) 72 | { 73 | migrationBuilder.DropColumn( 74 | name: "address1", 75 | table: "Employee"); 76 | 77 | migrationBuilder.DropColumn( 78 | name: "address2", 79 | table: "Employee"); 80 | 81 | migrationBuilder.DropColumn( 82 | name: "city", 83 | table: "Employee"); 84 | 85 | migrationBuilder.DropColumn( 86 | name: "country", 87 | table: "Employee"); 88 | 89 | migrationBuilder.DropColumn( 90 | name: "firstName", 91 | table: "Employee"); 92 | 93 | migrationBuilder.DropColumn( 94 | name: "hireDate", 95 | table: "Employee"); 96 | 97 | migrationBuilder.DropColumn( 98 | name: "lastName", 99 | table: "Employee"); 100 | 101 | migrationBuilder.DropColumn( 102 | name: "middleName", 103 | table: "Employee"); 104 | 105 | migrationBuilder.DropColumn( 106 | name: "phone", 107 | table: "Employee"); 108 | 109 | migrationBuilder.DropColumn( 110 | name: "state", 111 | table: "Employee"); 112 | 113 | migrationBuilder.RenameColumn( 114 | name: "zip", 115 | table: "Employee", 116 | newName: "name"); 117 | } 118 | } 119 | } 120 | -------------------------------------------------------------------------------- /model/Migrations/dncContextModelSnapshot.cs: -------------------------------------------------------------------------------- 1 | // 2 | using Microsoft.EntityFrameworkCore; 3 | using Microsoft.EntityFrameworkCore.Infrastructure; 4 | using Microsoft.EntityFrameworkCore.Metadata; 5 | using Microsoft.EntityFrameworkCore.Migrations; 6 | using Microsoft.EntityFrameworkCore.Storage; 7 | using Microsoft.EntityFrameworkCore.Storage.Internal; 8 | using model; 9 | using System; 10 | 11 | namespace model.Migrations 12 | { 13 | [DbContext(typeof(dncContext))] 14 | partial class dncContextModelSnapshot : ModelSnapshot 15 | { 16 | protected override void BuildModel(ModelBuilder modelBuilder) 17 | { 18 | #pragma warning disable 612, 618 19 | modelBuilder 20 | .HasAnnotation("ProductVersion", "2.0.1-rtm-125") 21 | .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); 22 | 23 | modelBuilder.Entity("Employee", b => 24 | { 25 | b.Property("id") 26 | .ValueGeneratedOnAdd(); 27 | 28 | b.Property("address1"); 29 | 30 | b.Property("address2"); 31 | 32 | b.Property("city"); 33 | 34 | b.Property("country"); 35 | 36 | b.Property("firstName"); 37 | 38 | b.Property("hireDate"); 39 | 40 | b.Property("lastName"); 41 | 42 | b.Property("middleName"); 43 | 44 | b.Property("phone"); 45 | 46 | b.Property("state"); 47 | 48 | b.Property("zip"); 49 | 50 | b.HasKey("id"); 51 | 52 | b.ToTable("Employee"); 53 | }); 54 | #pragma warning restore 612, 618 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /model/Models/Employee.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.ComponentModel.DataAnnotations; 3 | using System.ComponentModel.DataAnnotations.Schema; 4 | 5 | [Table("Employee")] 6 | public class Employee { 7 | 8 | [Key] 9 | public int id { get; set; } 10 | public string firstName { get; set; } 11 | public string middleName { get; set; } 12 | public string lastName { get; set; } 13 | public string phone { get; set; } 14 | public string address1 { get; set; } 15 | public string address2 { get; set; } 16 | public string city { get; set; } 17 | public string state { get; set; } 18 | public string zip { get; set; } 19 | public string country { get; set; } 20 | public DateTime hireDate { get; set; } 21 | } -------------------------------------------------------------------------------- /model/dncContext.cs: -------------------------------------------------------------------------------- 1 | // dotnet ef -s ../webapi/webapi.csproj dbcontext scaffold 'Data Source=.;Initial Catalog=dnc;User Id=sa;Password=asdfASDF!' Microsoft.EntityFrameworkCore.SqlServer 2 | 3 | using System; 4 | using Microsoft.EntityFrameworkCore; 5 | using Microsoft.EntityFrameworkCore.Metadata; 6 | 7 | namespace model 8 | { 9 | public partial class dncContext : DbContext 10 | { 11 | public dncContext() { 12 | //Configuration.ProxyCreationEnabled = false; 13 | // Configuration.LazyLoadingEnabled = false; 14 | } 15 | 16 | public dncContext(DbContextOptions options) 17 | : base(options) 18 | { } 19 | 20 | protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) 21 | { 22 | if (!optionsBuilder.IsConfigured) 23 | { 24 | optionsBuilder.UseSqlServer(@"Data Source=.;Initial Catalog=dnc;User Id=sa;Password=asdfASDF!"); 25 | } 26 | } 27 | 28 | protected override void OnModelCreating(ModelBuilder modelBuilder) 29 | {} 30 | 31 | public DbSet Employees { get; set; } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /model/model.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netstandard2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /webapi/Controllers/EmployeeController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Breeze.AspNetCore; 6 | using Breeze.Persistence; 7 | using Breeze.Persistence.EFCore; 8 | using Microsoft.AspNetCore.Mvc; 9 | using model; 10 | 11 | namespace webapi.Controllers 12 | { 13 | [Route("breeze/[controller]/[action]")] 14 | [BreezeQueryFilter] 15 | public class EmployeeController : Controller 16 | { 17 | private dncContext _context; 18 | 19 | private dncPersistenceManager PersistenceManager; 20 | 21 | public EmployeeController(dncContext context) { 22 | this._context = context; 23 | PersistenceManager = new dncPersistenceManager(context); 24 | } 25 | 26 | [HttpGet] 27 | public IActionResult Metadata() { 28 | return Ok(PersistenceManager.Metadata()); 29 | } 30 | 31 | [HttpGet] 32 | public IQueryable Get() 33 | { 34 | return PersistenceManager.Context.Employees; 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /webapi/Controllers/ValuesController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Mvc; 6 | 7 | namespace webapi.Controllers 8 | { 9 | [Route("api/[controller]")] 10 | public class ValuesController : Controller 11 | { 12 | // GET api/values 13 | [HttpGet] 14 | public IEnumerable Get() 15 | { 16 | return new string[] { "value1", "value2" }; 17 | } 18 | 19 | // GET api/values/5 20 | [HttpGet("{id}")] 21 | public string Get(int id) 22 | { 23 | return "value"; 24 | } 25 | 26 | // POST api/values 27 | [HttpPost] 28 | public void Post([FromBody]string value) 29 | { 30 | } 31 | 32 | // PUT api/values/5 33 | [HttpPut("{id}")] 34 | public void Put(int id, [FromBody]string value) 35 | { 36 | } 37 | 38 | // DELETE api/values/5 39 | [HttpDelete("{id}")] 40 | public void Delete(int id) 41 | { 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /webapi/Managers/dncPersistenceManager.cs: -------------------------------------------------------------------------------- 1 | using Breeze.Persistence.EFCore; 2 | using model; 3 | 4 | public class dncPersistenceManager : EFPersistenceManager { 5 | public dncPersistenceManager(dncContext dbContext) : base(dbContext) { } 6 | } 7 | -------------------------------------------------------------------------------- /webapi/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | using Microsoft.AspNetCore; 7 | using Microsoft.AspNetCore.Hosting; 8 | using Microsoft.Extensions.Configuration; 9 | using Microsoft.Extensions.Logging; 10 | 11 | namespace webapi 12 | { 13 | public class Program 14 | { 15 | public static void Main(string[] args) 16 | { 17 | BuildWebHost(args).Run(); 18 | } 19 | 20 | public static IWebHost BuildWebHost(string[] args) => 21 | WebHost.CreateDefaultBuilder(args) 22 | .UseStartup() 23 | .Build(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /webapi/Startup.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Builder; 6 | using Microsoft.AspNetCore.Hosting; 7 | using Microsoft.EntityFrameworkCore; 8 | using Microsoft.Extensions.Configuration; 9 | using Microsoft.Extensions.DependencyInjection; 10 | using Microsoft.Extensions.Logging; 11 | using Microsoft.Extensions.Options; 12 | using model; 13 | using Newtonsoft.Json.Serialization; 14 | using System.Configuration; 15 | using System.IO; 16 | using Breeze.AspNetCore; 17 | using Breeze.Core; 18 | using Microsoft.AspNetCore.Http; 19 | 20 | namespace webapi 21 | { 22 | public class Startup 23 | { 24 | public Startup(IConfiguration configuration) 25 | { 26 | Configuration = configuration; 27 | } 28 | 29 | public IConfiguration Configuration { get; } 30 | 31 | // This method gets called by the runtime. Use this method to add services to the container. 32 | public void ConfigureServices(IServiceCollection services) 33 | { 34 | var mvcBuilder = services.AddMvc(); 35 | 36 | mvcBuilder.AddJsonOptions(opt => { 37 | var ss = JsonSerializationFns.UpdateWithDefaults(opt.SerializerSettings); 38 | var resolver = ss.ContractResolver; 39 | if (resolver != null) { 40 | var res = resolver as DefaultContractResolver; 41 | res.NamingStrategy = null; // <