├── .gitignore
├── LICENSE
├── README.md
└── src
├── WeAreDotNet.MobileApp.sln
└── WeAreDotNet.MobileApp
├── App.xaml
├── App.xaml.cs
├── AppShell.xaml
├── AppShell.xaml.cs
├── Converters
├── FeedEntryToColorConverter.cs
├── FeedEntryToIconConverter.cs
└── JsonBoolConverter.cs
├── MauiProgram.cs
├── Models
├── AdditionalData.cs
├── Channel.cs
├── Creator.cs
├── FeedEntry.cs
├── LandingData.cs
├── LandingPageFeed.cs
├── Profile.cs
├── Socials.cs
└── User.cs
├── Platforms
├── Android
│ ├── AndroidManifest.xml
│ ├── MainActivity.cs
│ ├── MainApplication.cs
│ └── Resources
│ │ └── values
│ │ └── colors.xml
├── MacCatalyst
│ ├── AppDelegate.cs
│ ├── Info.plist
│ └── Program.cs
├── Tizen
│ ├── Main.cs
│ └── tizen-manifest.xml
├── Windows
│ ├── App.xaml
│ ├── App.xaml.cs
│ ├── Package.appxmanifest
│ └── app.manifest
└── iOS
│ ├── AppDelegate.cs
│ ├── Info.plist
│ └── Program.cs
├── Properties
└── launchSettings.json
├── Resources
├── AppIcon
│ ├── appicon.svg
│ ├── appiconfg.svg
│ └── logo_square.png
├── Fonts
│ ├── Bariol-Regular.ttf
│ ├── OpenSans-Regular.ttf
│ └── OpenSans-Semibold.ttf
├── Images
│ ├── account.svg
│ ├── book.svg
│ ├── countryflags
│ │ ├── ad.png
│ │ ├── ae.png
│ │ ├── af.png
│ │ ├── ag.png
│ │ ├── ai.png
│ │ ├── al.png
│ │ ├── am.png
│ │ ├── an.png
│ │ ├── ao.png
│ │ ├── aq.png
│ │ ├── ar.png
│ │ ├── as.png
│ │ ├── at.png
│ │ ├── au.png
│ │ ├── aw.png
│ │ ├── ax.png
│ │ ├── az.png
│ │ ├── ba.png
│ │ ├── bb.png
│ │ ├── bd.png
│ │ ├── be.png
│ │ ├── bf.png
│ │ ├── bg.png
│ │ ├── bh.png
│ │ ├── bi.png
│ │ ├── bj.png
│ │ ├── bl.png
│ │ ├── bm.png
│ │ ├── bn.png
│ │ ├── bo.png
│ │ ├── bq.png
│ │ ├── br.png
│ │ ├── bs.png
│ │ ├── bt.png
│ │ ├── bv.png
│ │ ├── bw.png
│ │ ├── by.png
│ │ ├── bz.png
│ │ ├── ca.png
│ │ ├── cc.png
│ │ ├── cd.png
│ │ ├── cf.png
│ │ ├── cg.png
│ │ ├── ch.png
│ │ ├── ci.png
│ │ ├── ck.png
│ │ ├── cl.png
│ │ ├── cm.png
│ │ ├── cn.png
│ │ ├── co.png
│ │ ├── cr.png
│ │ ├── cu.png
│ │ ├── cv.png
│ │ ├── cw.png
│ │ ├── cx.png
│ │ ├── cy.png
│ │ ├── cz.png
│ │ ├── de.png
│ │ ├── dj.png
│ │ ├── dk.png
│ │ ├── dm.png
│ │ ├── do.png
│ │ ├── dz.png
│ │ ├── ec.png
│ │ ├── ee.png
│ │ ├── eg.png
│ │ ├── eh.png
│ │ ├── er.png
│ │ ├── es.png
│ │ ├── et.png
│ │ ├── eu.png
│ │ ├── fi.png
│ │ ├── fj.png
│ │ ├── fk.png
│ │ ├── fm.png
│ │ ├── fo.png
│ │ ├── fr.png
│ │ ├── ga.png
│ │ ├── gb.png
│ │ ├── gb_eng.png
│ │ ├── gb_nir.png
│ │ ├── gb_sct.png
│ │ ├── gb_wls.png
│ │ ├── gd.png
│ │ ├── ge.png
│ │ ├── gf.png
│ │ ├── gg.png
│ │ ├── gh.png
│ │ ├── gi.png
│ │ ├── gl.png
│ │ ├── gm.png
│ │ ├── gn.png
│ │ ├── gp.png
│ │ ├── gq.png
│ │ ├── gr.png
│ │ ├── gs.png
│ │ ├── gt.png
│ │ ├── gu.png
│ │ ├── gw.png
│ │ ├── gy.png
│ │ ├── hk.png
│ │ ├── hm.png
│ │ ├── hn.png
│ │ ├── hr.png
│ │ ├── ht.png
│ │ ├── hu.png
│ │ ├── id.png
│ │ ├── ie.png
│ │ ├── il.png
│ │ ├── im.png
│ │ ├── in.png
│ │ ├── io.png
│ │ ├── iq.png
│ │ ├── ir.png
│ │ ├── is.png
│ │ ├── it.png
│ │ ├── je.png
│ │ ├── jm.png
│ │ ├── jo.png
│ │ ├── jp.png
│ │ ├── ke.png
│ │ ├── kg.png
│ │ ├── kh.png
│ │ ├── ki.png
│ │ ├── km.png
│ │ ├── kn.png
│ │ ├── kp.png
│ │ ├── kr.png
│ │ ├── kw.png
│ │ ├── ky.png
│ │ ├── kz.png
│ │ ├── la.png
│ │ ├── lb.png
│ │ ├── lc.png
│ │ ├── li.png
│ │ ├── lk.png
│ │ ├── lr.png
│ │ ├── ls.png
│ │ ├── lt.png
│ │ ├── lu.png
│ │ ├── lv.png
│ │ ├── ly.png
│ │ ├── ma.png
│ │ ├── mc.png
│ │ ├── md.png
│ │ ├── me.png
│ │ ├── mf.png
│ │ ├── mg.png
│ │ ├── mh.png
│ │ ├── mk.png
│ │ ├── ml.png
│ │ ├── mm.png
│ │ ├── mn.png
│ │ ├── mo.png
│ │ ├── mp.png
│ │ ├── mq.png
│ │ ├── mr.png
│ │ ├── ms.png
│ │ ├── mt.png
│ │ ├── mu.png
│ │ ├── mv.png
│ │ ├── mw.png
│ │ ├── mx.png
│ │ ├── my.png
│ │ ├── mz.png
│ │ ├── na.png
│ │ ├── nc.png
│ │ ├── ne.png
│ │ ├── nf.png
│ │ ├── ng.png
│ │ ├── ni.png
│ │ ├── nl.png
│ │ ├── no.png
│ │ ├── np.png
│ │ ├── nr.png
│ │ ├── nu.png
│ │ ├── nz.png
│ │ ├── om.png
│ │ ├── pa.png
│ │ ├── pe.png
│ │ ├── pf.png
│ │ ├── pg.png
│ │ ├── ph.png
│ │ ├── pk.png
│ │ ├── pl.png
│ │ ├── pm.png
│ │ ├── pn.png
│ │ ├── pr.png
│ │ ├── ps.png
│ │ ├── pt.png
│ │ ├── pw.png
│ │ ├── py.png
│ │ ├── qa.png
│ │ ├── re.png
│ │ ├── ro.png
│ │ ├── rs.png
│ │ ├── ru.png
│ │ ├── rw.png
│ │ ├── sa.png
│ │ ├── sb.png
│ │ ├── sc.png
│ │ ├── sd.png
│ │ ├── se.png
│ │ ├── sg.png
│ │ ├── sh.png
│ │ ├── si.png
│ │ ├── sj.png
│ │ ├── sk.png
│ │ ├── sl.png
│ │ ├── sm.png
│ │ ├── sn.png
│ │ ├── so.png
│ │ ├── sr.png
│ │ ├── ss.png
│ │ ├── st.png
│ │ ├── sv.png
│ │ ├── sx.png
│ │ ├── sy.png
│ │ ├── sz.png
│ │ ├── tc.png
│ │ ├── td.png
│ │ ├── tf.png
│ │ ├── tg.png
│ │ ├── th.png
│ │ ├── tj.png
│ │ ├── tk.png
│ │ ├── tl.png
│ │ ├── tm.png
│ │ ├── tn.png
│ │ ├── to.png
│ │ ├── tr.png
│ │ ├── tt.png
│ │ ├── tv.png
│ │ ├── tw.png
│ │ ├── tz.png
│ │ ├── ua.png
│ │ ├── ug.png
│ │ ├── um.png
│ │ ├── us.png
│ │ ├── uy.png
│ │ ├── uz.png
│ │ ├── va.png
│ │ ├── vc.png
│ │ ├── ve.png
│ │ ├── vg.png
│ │ ├── vi.png
│ │ ├── vn.png
│ │ ├── vu.png
│ │ ├── wf.png
│ │ ├── ws.png
│ │ ├── xk.png
│ │ ├── ye.png
│ │ ├── yt.png
│ │ ├── za.png
│ │ ├── zm.png
│ │ └── zw.png
│ ├── cowboy.svg
│ ├── logos
│ │ ├── ghstar.png
│ │ ├── microsoft.png
│ │ ├── mvp.png
│ │ ├── planetxamarin.png
│ │ └── womendotnet.png
│ ├── post.svg
│ ├── shape_plus.svg
│ └── socials
│ │ ├── github.svg
│ │ ├── link.svg
│ │ ├── linkedin.svg
│ │ ├── mastodon.svg
│ │ ├── sessionize.svg
│ │ ├── twitter.svg
│ │ └── youtube.svg
├── Raw
│ └── AboutAssets.txt
├── Splash
│ ├── logo_square.png
│ └── splash.svg
└── Styles
│ ├── Colors.xaml
│ └── Styles.xaml
├── Services
└── WeAreDotNetService.cs
├── ViewModels
├── BaseViewModel.cs
├── CreatorsOverviewPageViewModel.cs
├── CreatorsPageViewModel.cs
├── MainPageViewModel.cs
├── MembersOverviewPageViewModel.cs
└── ProfilePageViewModel.cs
├── Views
├── CreatorsOverviewPage.xaml
├── CreatorsOverviewPage.xaml.cs
├── CreatorsPage.xaml
├── CreatorsPage.xaml.cs
├── MainPage.xaml
├── MainPage.xaml.cs
├── MembersOverviewPage.xaml
├── MembersOverviewPage.xaml.cs
├── ProfilePage.xaml
└── ProfilePage.xaml.cs
└── WeAreDotNet.MobileApp.csproj
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.rsuser
8 | *.suo
9 | *.user
10 | *.userosscache
11 | *.sln.docstates
12 |
13 | # User-specific files (MonoDevelop/Xamarin Studio)
14 | *.userprefs
15 |
16 | # Mono auto generated files
17 | mono_crash.*
18 |
19 | # Build results
20 | [Dd]ebug/
21 | [Dd]ebugPublic/
22 | [Rr]elease/
23 | [Rr]eleases/
24 | x64/
25 | x86/
26 | [Aa][Rr][Mm]/
27 | [Aa][Rr][Mm]64/
28 | bld/
29 | [Bb]in/
30 | [Oo]bj/
31 | [Ll]og/
32 | [Ll]ogs/
33 |
34 | # Visual Studio 2015/2017 cache/options directory
35 | .vs/
36 | # Uncomment if you have tasks that create the project's static files in wwwroot
37 | #wwwroot/
38 |
39 | # Visual Studio 2017 auto generated files
40 | Generated\ Files/
41 |
42 | # MSTest test Results
43 | [Tt]est[Rr]esult*/
44 | [Bb]uild[Ll]og.*
45 |
46 | # NUnit
47 | *.VisualState.xml
48 | TestResult.xml
49 | nunit-*.xml
50 |
51 | # Build Results of an ATL Project
52 | [Dd]ebugPS/
53 | [Rr]eleasePS/
54 | dlldata.c
55 |
56 | # Benchmark Results
57 | BenchmarkDotNet.Artifacts/
58 |
59 | # .NET Core
60 | project.lock.json
61 | project.fragment.lock.json
62 | artifacts/
63 |
64 | # StyleCop
65 | StyleCopReport.xml
66 |
67 | # Files built by Visual Studio
68 | *_i.c
69 | *_p.c
70 | *_h.h
71 | *.ilk
72 | *.meta
73 | *.obj
74 | *.iobj
75 | *.pch
76 | *.pdb
77 | *.ipdb
78 | *.pgc
79 | *.pgd
80 | *.rsp
81 | *.sbr
82 | *.tlb
83 | *.tli
84 | *.tlh
85 | *.tmp
86 | *.tmp_proj
87 | *_wpftmp.csproj
88 | *.log
89 | *.vspscc
90 | *.vssscc
91 | .builds
92 | *.pidb
93 | *.svclog
94 | *.scc
95 |
96 | # Chutzpah Test files
97 | _Chutzpah*
98 |
99 | # Visual C++ cache files
100 | ipch/
101 | *.aps
102 | *.ncb
103 | *.opendb
104 | *.opensdf
105 | *.sdf
106 | *.cachefile
107 | *.VC.db
108 | *.VC.VC.opendb
109 |
110 | # Visual Studio profiler
111 | *.psess
112 | *.vsp
113 | *.vspx
114 | *.sap
115 |
116 | # Visual Studio Trace Files
117 | *.e2e
118 |
119 | # TFS 2012 Local Workspace
120 | $tf/
121 |
122 | # Guidance Automation Toolkit
123 | *.gpState
124 |
125 | # ReSharper is a .NET coding add-in
126 | _ReSharper*/
127 | *.[Rr]e[Ss]harper
128 | *.DotSettings.user
129 |
130 | # TeamCity is a build add-in
131 | _TeamCity*
132 |
133 | # DotCover is a Code Coverage Tool
134 | *.dotCover
135 |
136 | # AxoCover is a Code Coverage Tool
137 | .axoCover/*
138 | !.axoCover/settings.json
139 |
140 | # Visual Studio code coverage results
141 | *.coverage
142 | *.coveragexml
143 |
144 | # NCrunch
145 | _NCrunch_*
146 | .*crunch*.local.xml
147 | nCrunchTemp_*
148 |
149 | # MightyMoose
150 | *.mm.*
151 | AutoTest.Net/
152 |
153 | # Web workbench (sass)
154 | .sass-cache/
155 |
156 | # Installshield output folder
157 | [Ee]xpress/
158 |
159 | # DocProject is a documentation generator add-in
160 | DocProject/buildhelp/
161 | DocProject/Help/*.HxT
162 | DocProject/Help/*.HxC
163 | DocProject/Help/*.hhc
164 | DocProject/Help/*.hhk
165 | DocProject/Help/*.hhp
166 | DocProject/Help/Html2
167 | DocProject/Help/html
168 |
169 | # Click-Once directory
170 | publish/
171 |
172 | # Publish Web Output
173 | *.[Pp]ublish.xml
174 | *.azurePubxml
175 | # Note: Comment the next line if you want to checkin your web deploy settings,
176 | # but database connection strings (with potential passwords) will be unencrypted
177 | *.pubxml
178 | *.publishproj
179 |
180 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
181 | # checkin your Azure Web App publish settings, but sensitive information contained
182 | # in these scripts will be unencrypted
183 | PublishScripts/
184 |
185 | # NuGet Packages
186 | *.nupkg
187 | # NuGet Symbol Packages
188 | *.snupkg
189 | # The packages folder can be ignored because of Package Restore
190 | **/[Pp]ackages/*
191 | # except build/, which is used as an MSBuild target.
192 | !**/[Pp]ackages/build/
193 | # Uncomment if necessary however generally it will be regenerated when needed
194 | #!**/[Pp]ackages/repositories.config
195 | # NuGet v3's project.json files produces more ignorable files
196 | *.nuget.props
197 | *.nuget.targets
198 |
199 | # Microsoft Azure Build Output
200 | csx/
201 | *.build.csdef
202 |
203 | # Microsoft Azure Emulator
204 | ecf/
205 | rcf/
206 |
207 | # Windows Store app package directories and files
208 | AppPackages/
209 | BundleArtifacts/
210 | Package.StoreAssociation.xml
211 | _pkginfo.txt
212 | *.appx
213 | *.appxbundle
214 | *.appxupload
215 |
216 | # Visual Studio cache files
217 | # files ending in .cache can be ignored
218 | *.[Cc]ache
219 | # but keep track of directories ending in .cache
220 | !?*.[Cc]ache/
221 |
222 | # Others
223 | ClientBin/
224 | ~$*
225 | *~
226 | *.dbmdl
227 | *.dbproj.schemaview
228 | *.jfm
229 | *.pfx
230 | *.publishsettings
231 | orleans.codegen.cs
232 |
233 | # Including strong name files can present a security risk
234 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
235 | #*.snk
236 |
237 | # Since there are multiple workflows, uncomment next line to ignore bower_components
238 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
239 | #bower_components/
240 |
241 | # RIA/Silverlight projects
242 | Generated_Code/
243 |
244 | # Backup & report files from converting an old project file
245 | # to a newer Visual Studio version. Backup files are not needed,
246 | # because we have git ;-)
247 | _UpgradeReport_Files/
248 | Backup*/
249 | UpgradeLog*.XML
250 | UpgradeLog*.htm
251 | ServiceFabricBackup/
252 | *.rptproj.bak
253 |
254 | # SQL Server files
255 | *.mdf
256 | *.ldf
257 | *.ndf
258 |
259 | # Business Intelligence projects
260 | *.rdl.data
261 | *.bim.layout
262 | *.bim_*.settings
263 | *.rptproj.rsuser
264 | *- [Bb]ackup.rdl
265 | *- [Bb]ackup ([0-9]).rdl
266 | *- [Bb]ackup ([0-9][0-9]).rdl
267 |
268 | # Microsoft Fakes
269 | FakesAssemblies/
270 |
271 | # GhostDoc plugin setting file
272 | *.GhostDoc.xml
273 |
274 | # Node.js Tools for Visual Studio
275 | .ntvs_analysis.dat
276 | node_modules/
277 |
278 | # Visual Studio 6 build log
279 | *.plg
280 |
281 | # Visual Studio 6 workspace options file
282 | *.opt
283 |
284 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
285 | *.vbw
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 | # CodeRush personal settings
303 | .cr/personal
304 |
305 | # Python Tools for Visual Studio (PTVS)
306 | __pycache__/
307 | *.pyc
308 |
309 | # Cake - Uncomment if you are using it
310 | # tools/**
311 | # !tools/packages.config
312 |
313 | # Tabs Studio
314 | *.tss
315 |
316 | # Telerik's JustMock configuration file
317 | *.jmconfig
318 |
319 | # BizTalk build output
320 | *.btp.cs
321 | *.btm.cs
322 | *.odx.cs
323 | *.xsd.cs
324 |
325 | # OpenCover UI analysis results
326 | OpenCover/
327 |
328 | # Azure Stream Analytics local run output
329 | ASALocalRun/
330 |
331 | # MSBuild Binary and Structured Log
332 | *.binlog
333 |
334 | # NVidia Nsight GPU debugger configuration file
335 | *.nvuser
336 |
337 | # MFractors (Xamarin productivity tool) working folder
338 | .mfractor/
339 |
340 | # Local History for Visual Studio
341 | .localhistory/
342 |
343 | # BeatPulse healthcheck temp database
344 | healthchecksdb
345 |
346 | # Backup folder for Package Reference Convert tool in Visual Studio 2017
347 | MigrationBackup/
348 |
349 | # Ionide (cross platform F# VS Code tools) working folder
350 | .ionide/
351 |
352 | # macOS .DS_Store
353 | .DS_Store
354 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2023 WeAreDotnet
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # mobile-app
2 | The WeAreDotnet mobile app
3 |
--------------------------------------------------------------------------------
/src/WeAreDotNet.MobileApp.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 16
4 | VisualStudioVersion = 17.0.31611.283
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WeAreDotNet.MobileApp", "WeAreDotNet.MobileApp\WeAreDotNet.MobileApp.csproj", "{4E418265-9288-4BDD-8988-8522BBA84E02}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {4E418265-9288-4BDD-8988-8522BBA84E02}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {4E418265-9288-4BDD-8988-8522BBA84E02}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {4E418265-9288-4BDD-8988-8522BBA84E02}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
17 | {4E418265-9288-4BDD-8988-8522BBA84E02}.Release|Any CPU.ActiveCfg = Release|Any CPU
18 | {4E418265-9288-4BDD-8988-8522BBA84E02}.Release|Any CPU.Build.0 = Release|Any CPU
19 | {4E418265-9288-4BDD-8988-8522BBA84E02}.Release|Any CPU.Deploy.0 = Release|Any CPU
20 | EndGlobalSection
21 | GlobalSection(SolutionProperties) = preSolution
22 | HideSolutionNode = FALSE
23 | EndGlobalSection
24 | GlobalSection(ExtensibilityGlobals) = postSolution
25 | SolutionGuid = {61F7FB11-1E47-470C-91E2-47F8143E1572}
26 | EndGlobalSection
27 | EndGlobal
28 |
--------------------------------------------------------------------------------
/src/WeAreDotNet.MobileApp/App.xaml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/src/WeAreDotNet.MobileApp/App.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace WeAreDotNet.MobileApp;
2 |
3 | public partial class App : Application
4 | {
5 | public App()
6 | {
7 | InitializeComponent();
8 |
9 | MainPage = new AppShell();
10 | }
11 | }
12 |
13 |
--------------------------------------------------------------------------------
/src/WeAreDotNet.MobileApp/AppShell.xaml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
15 |
16 |
17 |
18 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/src/WeAreDotNet.MobileApp/AppShell.xaml.cs:
--------------------------------------------------------------------------------
1 | using WeAreDotNet.MobileApp.Views;
2 |
3 | namespace WeAreDotNet.MobileApp;
4 |
5 | public partial class AppShell : Shell
6 | {
7 | public AppShell()
8 | {
9 | InitializeComponent();
10 |
11 | Routing.RegisterRoute("profile", typeof(ProfilePage));
12 | Routing.RegisterRoute("members", typeof(MembersOverviewPage));
13 | Routing.RegisterRoute("creators", typeof(CreatorsOverviewPage));
14 | }
15 | }
16 |
17 |
--------------------------------------------------------------------------------
/src/WeAreDotNet.MobileApp/Converters/FeedEntryToColorConverter.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Globalization;
3 | using WeAreDotNet.MobileApp.Models;
4 |
5 | namespace WeAreDotNet.MobileApp.Converters;
6 |
7 | public class FeedEntryToColorConverter : IValueConverter
8 | {
9 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
10 | {
11 | var feedEntryType = value as string;
12 |
13 | if (string.IsNullOrWhiteSpace(feedEntryType))
14 | {
15 | // TODO What is the gracefall fallback color?
16 | return Colors.White;
17 | }
18 |
19 | return feedEntryType.ToLowerInvariant() switch
20 | {
21 | "blog" => Color.FromRgba(0, 0, 1, 0.5),
22 | "video" => Color.FromRgba(1, 0, 0, 0.5),
23 | "sponsored" => Colors.Gray,
24 | // TODO same fallback color as above
25 | _ => Colors.White
26 | };
27 | }
28 |
29 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
30 | {
31 | // Intentionally not implemented
32 | throw new NotImplementedException();
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/src/WeAreDotNet.MobileApp/Converters/FeedEntryToIconConverter.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Globalization;
3 | using WeAreDotNet.MobileApp.Models;
4 |
5 | namespace WeAreDotNet.MobileApp.Converters;
6 |
7 | public class FeedEntryToIconConverter : IValueConverter
8 | {
9 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
10 | {
11 | var feedEntryType = value as string;
12 |
13 | if (string.IsNullOrWhiteSpace(feedEntryType))
14 | {
15 | // TODO What is the gracefall fallback color?
16 | return ImageSource.FromFile("shape_plus.png");
17 | }
18 |
19 | return feedEntryType.ToLowerInvariant() switch
20 | {
21 | "blog" => ImageSource.FromFile("book.png"),
22 | "video" => ImageSource.FromFile("youtube.png"),
23 | "sponsored" => ImageSource.FromFile("shape_plus.png"),
24 | // TODO same fallback color as above
25 | _ => ImageSource.FromFile("shape_plus.png")
26 | };
27 | }
28 |
29 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
30 | {
31 | // Intentionally not implemented
32 | throw new NotImplementedException();
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/src/WeAreDotNet.MobileApp/Converters/JsonBoolConverter.cs:
--------------------------------------------------------------------------------
1 | using System.Text.Json;
2 | using System.Text.Json.Serialization;
3 |
4 | namespace WeAreDotNet.MobileApp.Converters;
5 |
6 | public class JsonBoolConverter : JsonConverter
7 | {
8 | public override void Write(Utf8JsonWriter writer, bool value, JsonSerializerOptions options) =>
9 | writer.WriteBooleanValue(value);
10 |
11 | public override bool Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) =>
12 | reader.TokenType switch
13 | {
14 | JsonTokenType.True => true,
15 | JsonTokenType.False => false,
16 | JsonTokenType.String => bool.TryParse(reader.GetString(), out var b) ? b : throw new JsonException(),
17 | JsonTokenType.Number => reader.TryGetInt64(out long l) ? Convert.ToBoolean(l) : reader.TryGetDouble(out double d) ? Convert.ToBoolean(d) : false,
18 | _ => throw new JsonException(),
19 | };
20 | }
21 |
--------------------------------------------------------------------------------
/src/WeAreDotNet.MobileApp/MauiProgram.cs:
--------------------------------------------------------------------------------
1 | using CommunityToolkit.Maui;
2 | using Microsoft.Extensions.Logging;
3 | using WeAreDotNet.MobileApp.Services;
4 | using WeAreDotNet.MobileApp.ViewModels;
5 | using WeAreDotNet.MobileApp.Views;
6 |
7 | namespace WeAreDotNet.MobileApp;
8 |
9 | public static class MauiProgram
10 | {
11 | public static MauiApp CreateMauiApp()
12 | {
13 | var builder = MauiApp.CreateBuilder();
14 | builder
15 | .UseMauiApp()
16 | .UseMauiCommunityToolkit()
17 | .ConfigureFonts(fonts =>
18 | {
19 | fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
20 | fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
21 | fonts.AddFont("Bariol-Regular.ttf", "BariolRegular");
22 | });
23 |
24 | // Pages
25 | builder.Services.AddTransient();
26 | builder.Services.AddTransient();
27 | builder.Services.AddTransient();
28 | builder.Services.AddTransient();
29 | builder.Services.AddTransient();
30 |
31 | // ViewModels
32 | builder.Services.AddTransient();
33 | builder.Services.AddTransient();
34 | builder.Services.AddTransient();
35 | builder.Services.AddTransient();
36 | builder.Services.AddTransient();
37 |
38 | // Services
39 | builder.Services.AddSingleton();
40 |
41 | #if DEBUG
42 | builder.Logging.AddDebug();
43 | #endif
44 |
45 | return builder.Build();
46 | }
47 | }
48 |
49 |
--------------------------------------------------------------------------------
/src/WeAreDotNet.MobileApp/Models/AdditionalData.cs:
--------------------------------------------------------------------------------
1 | using System.Text.Json.Serialization;
2 | using WeAreDotNet.MobileApp.Converters;
3 |
4 | namespace WeAreDotNet.MobileApp.Models;
5 |
6 | public class AdditionalData
7 | {
8 | [JsonPropertyName("ghstar")]
9 | public Uri GitHubStarUrl { get; set; }
10 |
11 | public bool IsGitHubStar =>
12 | !string.IsNullOrWhiteSpace(GitHubStarUrl?.ToString());
13 |
14 | [JsonPropertyName("xamarin")]
15 | [JsonConverter(typeof(JsonBoolConverter))]
16 | public bool IsPlanetXamarinMember { get; set; }
17 |
18 | [JsonPropertyName("msstaff")]
19 | [JsonConverter(typeof(JsonBoolConverter))]
20 | public bool IsMicrosoftEmployee { get; set; }
21 |
22 | [JsonPropertyName("womenofdotnet")]
23 | [JsonConverter(typeof(JsonBoolConverter))]
24 | public bool IsWomenOfDotNetMember { get; set; }
25 | }
26 |
--------------------------------------------------------------------------------
/src/WeAreDotNet.MobileApp/Models/Channel.cs:
--------------------------------------------------------------------------------
1 | using System.Text.Json.Serialization;
2 |
3 | namespace WeAreDotNet.MobileApp.Models;
4 |
5 | public partial class Channel
6 | {
7 | [JsonPropertyName("type")]
8 | public string Type { get; set; }
9 |
10 | [JsonPropertyName("url")]
11 | public Uri Url { get; set; }
12 | }
13 |
--------------------------------------------------------------------------------
/src/WeAreDotNet.MobileApp/Models/Creator.cs:
--------------------------------------------------------------------------------
1 | using System.Text.Json.Serialization;
2 |
3 | namespace WeAreDotNet.MobileApp.Models;
4 |
5 | public partial class Creator
6 | {
7 | [JsonPropertyName("name")]
8 | public string Name { get; set; }
9 |
10 | [JsonPropertyName("nickname")]
11 | public string Nickname { get; set; }
12 |
13 | [JsonPropertyName("picture")]
14 | public Uri Picture { get; set; }
15 |
16 | [JsonPropertyName("socials")]
17 | public Socials Socials { get; set; }
18 | }
19 |
--------------------------------------------------------------------------------
/src/WeAreDotNet.MobileApp/Models/FeedEntry.cs:
--------------------------------------------------------------------------------
1 | using System.Text.Json.Serialization;
2 |
3 | namespace WeAreDotNet.MobileApp.Models;
4 |
5 | public class FeedEntry
6 | {
7 | [JsonPropertyName("id")]
8 | public int Id { get; set; }
9 |
10 | [JsonPropertyName("searchScore")]
11 | public double SearchScore { get; set; }
12 |
13 | [JsonPropertyName("type")]
14 | public string Type { get; set; }
15 |
16 | [JsonPropertyName("url")]
17 | public string Url { get; set; }
18 |
19 | [JsonPropertyName("description")]
20 | public string Description { get; set; }
21 |
22 | [JsonPropertyName("title")]
23 | public string Title { get; set; }
24 |
25 | [JsonPropertyName("previewImage")]
26 | public string PreviewImage { get; set; }
27 |
28 | [JsonPropertyName("datePublished")]
29 | public DateTime DatePublished { get; set; }
30 |
31 | [JsonPropertyName("datePublishedFormatted")]
32 | public string DatePublishedFormatted { get; set; }
33 |
34 | [JsonPropertyName("displayName")]
35 | public string DisplayName { get; set; }
36 |
37 | [JsonPropertyName("nickname")]
38 | public string Nickname { get; set; }
39 |
40 | [JsonPropertyName("picture")]
41 | public string Picture { get; set; }
42 |
43 | [JsonPropertyName("views")]
44 | public int Views { get; set; }
45 |
46 | [JsonPropertyName("likes")]
47 | public int Likes { get; set; }
48 |
49 | [JsonPropertyName("socials")]
50 | public Socials Socials { get; set; }
51 | }
52 |
--------------------------------------------------------------------------------
/src/WeAreDotNet.MobileApp/Models/LandingData.cs:
--------------------------------------------------------------------------------
1 | using System.Text.Json.Serialization;
2 |
3 | namespace WeAreDotNet.MobileApp.Models;
4 |
5 | public class LandingData
6 | {
7 | [JsonPropertyName("randomAvatars")]
8 | public object RandomAvatars { get; set; }
9 |
10 | [JsonPropertyName("recentJoins")]
11 | public List RecentJoins { get; set; }
12 |
13 | [JsonPropertyName("recentCreators")]
14 | public List RecentCreators { get; set; }
15 |
16 | [JsonPropertyName("userCount")]
17 | public int UserCount { get; set; }
18 |
19 | [JsonPropertyName("creatorCount")]
20 | public int CreatorCount { get; set; }
21 | }
22 |
--------------------------------------------------------------------------------
/src/WeAreDotNet.MobileApp/Models/LandingPageFeed.cs:
--------------------------------------------------------------------------------
1 | using System.Text.Json.Serialization;
2 |
3 | namespace WeAreDotNet.MobileApp.Models;
4 |
5 | public class LandingPageFeed
6 | {
7 | [JsonPropertyName("feedEntriesTop9")]
8 | public List FeedEntriesTop9 { get; set; }
9 |
10 | [JsonPropertyName("feedEntries")]
11 | public List FeedEntries { get; set; }
12 |
13 | [JsonPropertyName("sponsoredFeedEntries")]
14 | public List SponsoredFeedEntries { get; set; }
15 | }
16 |
--------------------------------------------------------------------------------
/src/WeAreDotNet.MobileApp/Models/Profile.cs:
--------------------------------------------------------------------------------
1 | using System.Text.Json.Serialization;
2 |
3 | namespace WeAreDotNet.MobileApp.Models;
4 |
5 | public partial class Profile
6 | {
7 | [JsonPropertyName("nickname")]
8 | public string Nickname { get; set; }
9 |
10 | [JsonPropertyName("socials")]
11 | public Socials Socials { get; set; }
12 |
13 | [JsonPropertyName("countryCode")]
14 | public string CountryCode { get; set; }
15 |
16 | [JsonPropertyName("picture")]
17 | public Uri Picture { get; set; }
18 |
19 | [JsonPropertyName("displayName")]
20 | public string DisplayName { get; set; }
21 |
22 | [JsonPropertyName("isMVP")]
23 | public bool IsMvp { get; set; }
24 |
25 | [JsonPropertyName("isCreator")]
26 | public bool IsCreator { get; set; }
27 |
28 | [JsonPropertyName("signupDate")]
29 | public DateTimeOffset SignupDate { get; set; }
30 |
31 | [JsonPropertyName("hasCreatorCard")]
32 | public bool HasCreatorCard { get; set; }
33 |
34 | [JsonPropertyName("tags")]
35 | public List Tags { get; set; }
36 |
37 | [JsonPropertyName("feed")]
38 | public List