(post.Embedded.Author);
41 | sb.Append($"{authors[0].Name} | {post.Date}
");
42 | sb.Append(content);
43 | sb.Append("");
44 |
45 | return sb.ToString();
46 | }
47 |
48 | public static string GetFeaturedImageFromPost(Post post)
49 | {
50 | if (post.Embedded.WpFeaturedmedia == null)
51 | return string.Empty;
52 |
53 | var images = new List(post.Embedded.WpFeaturedmedia);
54 | var img = images[0];
55 | var imgSrc = img.SourceUrl;
56 |
57 | var sb = new StringBuilder();
58 | sb.Append("
");
67 |
68 | return sb.ToString();
69 | }
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/WordPressXF/WordPressXF/WordPressXF/Styles/Styles.xaml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
17 |
18 |
23 |
24 |
36 |
37 |
43 |
44 |
50 |
51 |
60 |
61 |
66 |
67 |
74 |
75 |
88 |
89 |
93 |
94 |
--------------------------------------------------------------------------------
/WordPressXF/WordPressXF/WordPressXF/ViewModels/AccountViewModel.cs:
--------------------------------------------------------------------------------
1 | using CommunityToolkit.Mvvm.ComponentModel;
2 | using CommunityToolkit.Mvvm.Input;
3 | using System;
4 | using System.Threading.Tasks;
5 | using WordPressPCL.Models;
6 | using WordPressXF.Common;
7 | using WordPressXF.Services;
8 | using Xamarin.Forms;
9 |
10 | namespace WordPressXF.ViewModels
11 | {
12 | internal partial class AccountViewModel : BaseViewModel
13 | {
14 | private readonly SettingsService _settingsService;
15 | private readonly WordPressService _wordPressService;
16 |
17 | [ObservableProperty]
18 | private bool _isCurrentlyLoggingIn;
19 |
20 | [ObservableProperty]
21 | [AlsoNotifyCanExecuteFor(nameof(LoginCommand))]
22 | private string _username;
23 |
24 | [ObservableProperty]
25 | [AlsoNotifyCanExecuteFor(nameof(LoginCommand))]
26 | private string _password;
27 |
28 | [ObservableProperty]
29 | private User _currentUser;
30 |
31 | [ObservableProperty]
32 | private Color _avatarBackgroundColor;
33 |
34 | [ObservableProperty]
35 | private Color _avatarTextColor;
36 |
37 | public AccountViewModel(SettingsService settingsService, WordPressService wordPressService)
38 | {
39 | _settingsService = settingsService;
40 | _wordPressService = wordPressService;
41 | }
42 |
43 | [ICommand(AllowConcurrentExecutions = false)]
44 | private async Task TryAutoLoginAsync()
45 | {
46 | var username = await _settingsService.GetAsync(Statics.UsernameSettingsKey);
47 | var password = await _settingsService.GetAsync(Statics.PasswordSettingsKey);
48 |
49 | if (string.IsNullOrEmpty(username) || string.IsNullOrEmpty(password))
50 | return;
51 |
52 | var user = await _wordPressService.LoginAsync(username, password);
53 |
54 | if (user != null)
55 | {
56 | CurrentUser = user;
57 | SetAvatarColors(CurrentUser.Name);
58 | }
59 | }
60 |
61 | [ICommand(CanExecute = nameof(CanLogin), AllowConcurrentExecutions = false)]
62 | private async Task LoginAsync()
63 | {
64 | if (string.IsNullOrEmpty(Username) || string.IsNullOrEmpty(Password))
65 | return;
66 |
67 | IsCurrentlyLoggingIn = true;
68 |
69 | var user = await _wordPressService.LoginAsync(Username, Password);
70 | if (user != null)
71 | {
72 | await _settingsService.SetAsync(Statics.UsernameSettingsKey, Username);
73 | await _settingsService.SetAsync(Statics.PasswordSettingsKey, Password);
74 |
75 | CurrentUser = user;
76 | SetAvatarColors(CurrentUser.Name);
77 | }
78 |
79 | IsCurrentlyLoggingIn = false;
80 | }
81 |
82 | [ICommand]
83 | private void Logout()
84 | {
85 | _wordPressService.Logout();
86 |
87 | CurrentUser = null;
88 | Username = null;
89 | Password = null;
90 |
91 | _settingsService.Remove(Statics.UsernameSettingsKey);
92 | _settingsService.Remove(Statics.PasswordSettingsKey);
93 | }
94 |
95 | private bool CanLogin()
96 | {
97 | return !IsCurrentlyLoggingIn && !string.IsNullOrEmpty(Username) && !string.IsNullOrEmpty(Password);
98 | }
99 |
100 | private void SetAvatarColors(string name)
101 | {
102 | // get color for the provided text
103 | var hexColor = "#FF" + Convert.ToString(name.GetHashCode(), 16).Substring(0, 6);
104 |
105 | // fix issue if value is too short
106 | if (hexColor.Length == 8)
107 | hexColor += "5";
108 |
109 | // create color from hex value
110 | var color = Color.FromHex(hexColor);
111 |
112 | // set backgroundcolor of contentboxview
113 | AvatarBackgroundColor = color;
114 |
115 | // get brightness and set textcolor
116 | var brightness = color.R * .3 + color.G * .59 + color.B * .11;
117 | AvatarTextColor = brightness < 0.5 ? Color.White : Color.Black;
118 | }
119 | }
120 | }
121 |
--------------------------------------------------------------------------------
/WordPressXF/WordPressXF/WordPressXF/ViewModels/PostsViewModel.cs:
--------------------------------------------------------------------------------
1 | using CommunityToolkit.Mvvm.ComponentModel;
2 | using CommunityToolkit.Mvvm.Input;
3 | using System;
4 | using System.Collections.Generic;
5 | using System.Collections.ObjectModel;
6 | using System.Diagnostics;
7 | using System.Threading.Tasks;
8 | using WordPressPCL.Models;
9 | using WordPressXF.Common;
10 | using WordPressXF.Models;
11 | using WordPressXF.Resources;
12 | using WordPressXF.Services;
13 |
14 | namespace WordPressXF.ViewModels
15 | {
16 | internal partial class PostsViewModel : BaseViewModel
17 | {
18 | private readonly DialogService _dialogService;
19 | private readonly NavigationService _navigationService;
20 | private readonly WordPressService _wordPressService;
21 |
22 | private int _currentPage = -1;
23 |
24 | [ObservableProperty]
25 | private ObservableCollection _posts = new();
26 |
27 | [ObservableProperty]
28 | private List _comments;
29 |
30 | [ObservableProperty]
31 | private Post _selectedPost;
32 |
33 | [ObservableProperty]
34 | private bool _isIncrementalLoading;
35 |
36 | [ObservableProperty]
37 | private string _commentText;
38 |
39 | [ObservableProperty]
40 | private bool _isCommenting = false;
41 |
42 |
43 | public PostsViewModel(DialogService dialogService, NavigationService navigationService, WordPressService wordPressService)
44 | {
45 | _dialogService = dialogService;
46 | _navigationService = navigationService;
47 | _wordPressService = wordPressService;
48 | }
49 |
50 | [ICommand(AllowConcurrentExecutions = false)]
51 | private async Task LoadPostsAsync()
52 | {
53 | try
54 | {
55 | IsRefreshing = true;
56 |
57 | _currentPage = 0;
58 |
59 | Posts.Clear();
60 |
61 | var posts = await _wordPressService.GetLatestPostsAsync(_currentPage, Statics.PageSize);
62 | Posts.AddRange(posts);
63 | }
64 | catch (Exception ex)
65 | {
66 | Debug.WriteLine($"{nameof(PostsViewModel)} | {nameof(LoadPostsAsync)} | {ex}");
67 | }
68 | finally
69 | {
70 | IsRefreshing = false;
71 | }
72 | }
73 |
74 | [ICommand(AllowConcurrentExecutions = false)]
75 | private async Task LoadMorePostsAsync()
76 | {
77 | if (IsIncrementalLoading)
78 | return;
79 |
80 | try
81 | {
82 | IsIncrementalLoading = true;
83 |
84 | _currentPage++;
85 |
86 | var posts = await _wordPressService.GetLatestPostsAsync(_currentPage, Statics.PageSize);
87 |
88 | if (posts == null)
89 | return;
90 |
91 | Posts.AddRange(posts);
92 | }
93 | catch (Exception ex)
94 | {
95 | Debug.WriteLine($"{nameof(PostsViewModel)} | {nameof(LoadMorePostsAsync)} | {ex}");
96 | }
97 | finally
98 | {
99 | IsIncrementalLoading = false;
100 | }
101 | }
102 |
103 | [ICommand(AllowConcurrentExecutions = false)]
104 | private async Task SetSelectedPostAsync(Post selectedPost)
105 | {
106 | try
107 | {
108 | IsLoading = true;
109 |
110 | Comments = null;
111 | CommentText = null;
112 |
113 | SelectedPost = selectedPost;
114 | await _navigationService.NavigateToAsync(NavigationTarget.PostDetailOverviewPage);
115 |
116 | await GetCommentsAsync(selectedPost.Id);
117 | }
118 | catch (Exception ex)
119 | {
120 | Debug.WriteLine($"{nameof(PostsViewModel)} | {nameof(SetSelectedPostAsync)} | {ex}");
121 | }
122 | finally
123 | {
124 | IsLoading = false;
125 | }
126 | }
127 |
128 | [ICommand(AllowConcurrentExecutions = false)]
129 | private async Task PostCommentAsync()
130 | {
131 | try
132 | {
133 | IsCommenting = true;
134 |
135 | if (await _wordPressService.IsUserAuthenticatedAsync())
136 | {
137 | var comment = await _wordPressService.PostCommentAsync(SelectedPost.Id, CommentText);
138 | if (comment != null)
139 | {
140 | CommentText = null;
141 | await GetCommentsAsync(SelectedPost.Id);
142 | }
143 | }
144 | else
145 | {
146 | await _dialogService.OpenSimplePlatformDialogAsync(AppResources.CommentDialogNotAuthorizedTitle, AppResources.CommentDialogNotAuthorizedMessage, AppResources.DialogOk);
147 | }
148 | }
149 | finally
150 | {
151 | IsCommenting = false;
152 | }
153 | }
154 |
155 | [ICommand(AllowConcurrentExecutions = false)]
156 | private async Task ShowAccountAsync()
157 | {
158 | await _navigationService.NavigateToAsync(NavigationTarget.AccountPage);
159 | }
160 |
161 | [ICommand(CanExecute = nameof(CanPostComment), AllowConcurrentExecutions = false)]
162 | private async Task GetCommentsAsync(int id)
163 | {
164 | IsLoading = true;
165 |
166 | Comments = await _wordPressService.GetCommentsForPostAsync(id);
167 |
168 | IsLoading = false;
169 | }
170 |
171 | private bool CanPostComment()
172 | {
173 | return !string.IsNullOrEmpty(CommentText) && !IsCommenting;
174 | }
175 | }
176 | }
177 |
--------------------------------------------------------------------------------
/WordPressXF/WordPressXF.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 17
4 | VisualStudioVersion = 17.1.32328.378
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WordPressXF.Android", "WordPressXF\WordPressXF.Android\WordPressXF.Android.csproj", "{BD895144-37B8-4207-949D-EAE2F97B1126}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WordPressXF.iOS", "WordPressXF\WordPressXF.iOS\WordPressXF.iOS.csproj", "{DDB73690-455F-4094-B42E-72433C0CC101}"
9 | EndProject
10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WordPressXF", "WordPressXF\WordPressXF\WordPressXF.csproj", "{74EA8770-37C5-4966-AE30-B71B96AD64F0}"
11 | EndProject
12 | Global
13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
14 | Debug|Any CPU = Debug|Any CPU
15 | Debug|iPhone = Debug|iPhone
16 | Debug|iPhoneSimulator = Debug|iPhoneSimulator
17 | Release|Any CPU = Release|Any CPU
18 | Release|iPhone = Release|iPhone
19 | Release|iPhoneSimulator = Release|iPhoneSimulator
20 | EndGlobalSection
21 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
22 | {BD895144-37B8-4207-949D-EAE2F97B1126}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23 | {BD895144-37B8-4207-949D-EAE2F97B1126}.Debug|Any CPU.Build.0 = Debug|Any CPU
24 | {BD895144-37B8-4207-949D-EAE2F97B1126}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
25 | {BD895144-37B8-4207-949D-EAE2F97B1126}.Debug|iPhone.ActiveCfg = Debug|Any CPU
26 | {BD895144-37B8-4207-949D-EAE2F97B1126}.Debug|iPhone.Build.0 = Debug|Any CPU
27 | {BD895144-37B8-4207-949D-EAE2F97B1126}.Debug|iPhone.Deploy.0 = Debug|Any CPU
28 | {BD895144-37B8-4207-949D-EAE2F97B1126}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
29 | {BD895144-37B8-4207-949D-EAE2F97B1126}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
30 | {BD895144-37B8-4207-949D-EAE2F97B1126}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
31 | {BD895144-37B8-4207-949D-EAE2F97B1126}.Release|Any CPU.ActiveCfg = Release|Any CPU
32 | {BD895144-37B8-4207-949D-EAE2F97B1126}.Release|Any CPU.Build.0 = Release|Any CPU
33 | {BD895144-37B8-4207-949D-EAE2F97B1126}.Release|Any CPU.Deploy.0 = Release|Any CPU
34 | {BD895144-37B8-4207-949D-EAE2F97B1126}.Release|iPhone.ActiveCfg = Release|Any CPU
35 | {BD895144-37B8-4207-949D-EAE2F97B1126}.Release|iPhone.Build.0 = Release|Any CPU
36 | {BD895144-37B8-4207-949D-EAE2F97B1126}.Release|iPhone.Deploy.0 = Release|Any CPU
37 | {BD895144-37B8-4207-949D-EAE2F97B1126}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
38 | {BD895144-37B8-4207-949D-EAE2F97B1126}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
39 | {BD895144-37B8-4207-949D-EAE2F97B1126}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
40 | {DDB73690-455F-4094-B42E-72433C0CC101}.Debug|Any CPU.ActiveCfg = Debug|iPhone
41 | {DDB73690-455F-4094-B42E-72433C0CC101}.Debug|Any CPU.Build.0 = Debug|iPhone
42 | {DDB73690-455F-4094-B42E-72433C0CC101}.Debug|Any CPU.Deploy.0 = Debug|iPhone
43 | {DDB73690-455F-4094-B42E-72433C0CC101}.Debug|iPhone.ActiveCfg = Debug|iPhone
44 | {DDB73690-455F-4094-B42E-72433C0CC101}.Debug|iPhone.Build.0 = Debug|iPhone
45 | {DDB73690-455F-4094-B42E-72433C0CC101}.Debug|iPhone.Deploy.0 = Debug|iPhone
46 | {DDB73690-455F-4094-B42E-72433C0CC101}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
47 | {DDB73690-455F-4094-B42E-72433C0CC101}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
48 | {DDB73690-455F-4094-B42E-72433C0CC101}.Debug|iPhoneSimulator.Deploy.0 = Debug|iPhoneSimulator
49 | {DDB73690-455F-4094-B42E-72433C0CC101}.Release|Any CPU.ActiveCfg = Release|iPhoneSimulator
50 | {DDB73690-455F-4094-B42E-72433C0CC101}.Release|Any CPU.Build.0 = Release|iPhoneSimulator
51 | {DDB73690-455F-4094-B42E-72433C0CC101}.Release|Any CPU.Deploy.0 = Release|iPhoneSimulator
52 | {DDB73690-455F-4094-B42E-72433C0CC101}.Release|iPhone.ActiveCfg = Release|iPhone
53 | {DDB73690-455F-4094-B42E-72433C0CC101}.Release|iPhone.Build.0 = Release|iPhone
54 | {DDB73690-455F-4094-B42E-72433C0CC101}.Release|iPhone.Deploy.0 = Release|iPhone
55 | {DDB73690-455F-4094-B42E-72433C0CC101}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
56 | {DDB73690-455F-4094-B42E-72433C0CC101}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
57 | {DDB73690-455F-4094-B42E-72433C0CC101}.Release|iPhoneSimulator.Deploy.0 = Release|iPhoneSimulator
58 | {74EA8770-37C5-4966-AE30-B71B96AD64F0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
59 | {74EA8770-37C5-4966-AE30-B71B96AD64F0}.Debug|Any CPU.Build.0 = Debug|Any CPU
60 | {74EA8770-37C5-4966-AE30-B71B96AD64F0}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
61 | {74EA8770-37C5-4966-AE30-B71B96AD64F0}.Debug|iPhone.ActiveCfg = Debug|Any CPU
62 | {74EA8770-37C5-4966-AE30-B71B96AD64F0}.Debug|iPhone.Build.0 = Debug|Any CPU
63 | {74EA8770-37C5-4966-AE30-B71B96AD64F0}.Debug|iPhone.Deploy.0 = Debug|Any CPU
64 | {74EA8770-37C5-4966-AE30-B71B96AD64F0}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
65 | {74EA8770-37C5-4966-AE30-B71B96AD64F0}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
66 | {74EA8770-37C5-4966-AE30-B71B96AD64F0}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
67 | {74EA8770-37C5-4966-AE30-B71B96AD64F0}.Release|Any CPU.ActiveCfg = Release|Any CPU
68 | {74EA8770-37C5-4966-AE30-B71B96AD64F0}.Release|Any CPU.Build.0 = Release|Any CPU
69 | {74EA8770-37C5-4966-AE30-B71B96AD64F0}.Release|Any CPU.Deploy.0 = Release|Any CPU
70 | {74EA8770-37C5-4966-AE30-B71B96AD64F0}.Release|iPhone.ActiveCfg = Release|Any CPU
71 | {74EA8770-37C5-4966-AE30-B71B96AD64F0}.Release|iPhone.Build.0 = Release|Any CPU
72 | {74EA8770-37C5-4966-AE30-B71B96AD64F0}.Release|iPhone.Deploy.0 = Release|Any CPU
73 | {74EA8770-37C5-4966-AE30-B71B96AD64F0}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
74 | {74EA8770-37C5-4966-AE30-B71B96AD64F0}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
75 | {74EA8770-37C5-4966-AE30-B71B96AD64F0}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
76 | EndGlobalSection
77 | GlobalSection(SolutionProperties) = preSolution
78 | HideSolutionNode = FALSE
79 | EndGlobalSection
80 | GlobalSection(ExtensibilityGlobals) = postSolution
81 | SolutionGuid = {147EAA11-5A22-4C86-ACFD-CBBFDF3542BD}
82 | EndGlobalSection
83 | EndGlobal
84 |
--------------------------------------------------------------------------------
/WordPressXF/WordPressXF/WordPressXF.iOS/WordPressXF.iOS.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | iPhoneSimulator
6 | 8.0.30703
7 | 2.0
8 | {DDB73690-455F-4094-B42E-72433C0CC101}
9 | {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
10 | {6143fdea-f3c2-4a09-aafa-6e230626515e}
11 | Exe
12 | WordPressXF.iOS
13 | Resources
14 | WordPressXF.iOS
15 | true
16 | NSUrlSessionHandler
17 | automatic
18 |
19 |
20 | true
21 | portable
22 | false
23 | bin\iPhoneSimulator\Debug
24 | DEBUG
25 | prompt
26 | 4
27 | x86_64
28 | None
29 | true
30 |
31 |
32 | none
33 | true
34 | bin\iPhoneSimulator\Release
35 | prompt
36 | 4
37 | None
38 | x86_64
39 |
40 |
41 | true
42 | portable
43 | false
44 | bin\iPhone\Debug
45 | DEBUG
46 | prompt
47 | 4
48 | ARM64
49 | iPhone Developer
50 | true
51 | Entitlements.plist
52 | None
53 | -all
54 |
55 |
56 | none
57 | true
58 | bin\iPhone\Release
59 | prompt
60 | 4
61 | ARM64
62 | iPhone Developer
63 | Entitlements.plist
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 | false
76 |
77 |
78 | false
79 |
80 |
81 | false
82 |
83 |
84 | false
85 |
86 |
87 | false
88 |
89 |
90 | false
91 |
92 |
93 | false
94 |
95 |
96 | false
97 |
98 |
99 | false
100 |
101 |
102 | false
103 |
104 |
105 | false
106 |
107 |
108 | false
109 |
110 |
111 | false
112 |
113 |
114 | false
115 |
116 |
117 | false
118 |
119 |
120 | false
121 |
122 |
123 | false
124 |
125 |
126 | false
127 |
128 |
129 | false
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 | 2.0.1
143 |
144 |
145 |
146 |
147 | 5.0.0.2401
148 |
149 |
150 |
151 |
152 |
153 | {A681607B-1E89-410E-840D-1103E59E69D4}
154 | WordPressXF
155 |
156 |
157 |
158 |
159 |
160 |
--------------------------------------------------------------------------------
/.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 |
--------------------------------------------------------------------------------
/WordPressXF/WordPressXF/WordPressXF/Resources/AppResources.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
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 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
121 | Current User
122 |
123 |
124 | Login
125 |
126 |
127 | Logout
128 |
129 |
130 | Password
131 |
132 |
133 | Account
134 |
135 |
136 | Username
137 |
138 |
139 | You have to login first to be able to post a comment.
140 |
141 |
142 | Error
143 |
144 |
145 | Ok
146 |
147 |
148 | Send
149 |
150 |
151 | Your Comment...
152 |
153 |
154 | Currently there are no comments for this post.
155 |
156 |
157 | Comments
158 |
159 |
160 | Post
161 |
162 |
163 | Posts
164 |
165 |
--------------------------------------------------------------------------------
/WordPressXF/WordPressXF/WordPressXF/Resources/AppResources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace WordPressXF.Resources {
12 | using System;
13 |
14 |
15 | ///
16 | /// A strongly-typed resource class, for looking up localized strings, etc.
17 | ///
18 | // This class was auto-generated by the StronglyTypedResourceBuilder
19 | // class via a tool like ResGen or Visual Studio.
20 | // To add or remove a member, edit your .ResX file then rerun ResGen
21 | // with the /str option, or rebuild your VS project.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class AppResources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal AppResources() {
33 | }
34 |
35 | ///
36 | /// Returns the cached ResourceManager instance used by this class.
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WordPressXF.Resources.AppResources", typeof(AppResources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// Overrides the current thread's CurrentUICulture property for all
51 | /// resource lookups using this strongly typed resource class.
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 |
63 | ///
64 | /// Looks up a localized string similar to Current User.
65 | ///
66 | internal static string AccountPageCurrentUserLabel {
67 | get {
68 | return ResourceManager.GetString("AccountPageCurrentUserLabel", resourceCulture);
69 | }
70 | }
71 |
72 | ///
73 | /// Looks up a localized string similar to Login.
74 | ///
75 | internal static string AccountPageLoginButton {
76 | get {
77 | return ResourceManager.GetString("AccountPageLoginButton", resourceCulture);
78 | }
79 | }
80 |
81 | ///
82 | /// Looks up a localized string similar to Logout.
83 | ///
84 | internal static string AccountPageLogoutButton {
85 | get {
86 | return ResourceManager.GetString("AccountPageLogoutButton", resourceCulture);
87 | }
88 | }
89 |
90 | ///
91 | /// Looks up a localized string similar to Password.
92 | ///
93 | internal static string AccountPagePasswordLabelPlaceholder {
94 | get {
95 | return ResourceManager.GetString("AccountPagePasswordLabelPlaceholder", resourceCulture);
96 | }
97 | }
98 |
99 | ///
100 | /// Looks up a localized string similar to Account.
101 | ///
102 | internal static string AccountPageTitle {
103 | get {
104 | return ResourceManager.GetString("AccountPageTitle", resourceCulture);
105 | }
106 | }
107 |
108 | ///
109 | /// Looks up a localized string similar to Username.
110 | ///
111 | internal static string AccountPageUsernameLabelPlaceholder {
112 | get {
113 | return ResourceManager.GetString("AccountPageUsernameLabelPlaceholder", resourceCulture);
114 | }
115 | }
116 |
117 | ///
118 | /// Looks up a localized string similar to You have to login first to be able to post a comment..
119 | ///
120 | internal static string CommentDialogNotAuthorizedMessage {
121 | get {
122 | return ResourceManager.GetString("CommentDialogNotAuthorizedMessage", resourceCulture);
123 | }
124 | }
125 |
126 | ///
127 | /// Looks up a localized string similar to Error.
128 | ///
129 | internal static string CommentDialogNotAuthorizedTitle {
130 | get {
131 | return ResourceManager.GetString("CommentDialogNotAuthorizedTitle", resourceCulture);
132 | }
133 | }
134 |
135 | ///
136 | /// Looks up a localized string similar to Ok.
137 | ///
138 | internal static string DialogOk {
139 | get {
140 | return ResourceManager.GetString("DialogOk", resourceCulture);
141 | }
142 | }
143 |
144 | ///
145 | /// Looks up a localized string similar to Send.
146 | ///
147 | internal static string PostCommentViewCommentButton {
148 | get {
149 | return ResourceManager.GetString("PostCommentViewCommentButton", resourceCulture);
150 | }
151 | }
152 |
153 | ///
154 | /// Looks up a localized string similar to Your Comment....
155 | ///
156 | internal static string PostCommentViewCommentLabelPlaceholder {
157 | get {
158 | return ResourceManager.GetString("PostCommentViewCommentLabelPlaceholder", resourceCulture);
159 | }
160 | }
161 |
162 | ///
163 | /// Looks up a localized string similar to Currently there are no comments for this post..
164 | ///
165 | internal static string PostCommentViewNoCommentsLabel {
166 | get {
167 | return ResourceManager.GetString("PostCommentViewNoCommentsLabel", resourceCulture);
168 | }
169 | }
170 |
171 | ///
172 | /// Looks up a localized string similar to Comments.
173 | ///
174 | internal static string PostCommentViewTitle {
175 | get {
176 | return ResourceManager.GetString("PostCommentViewTitle", resourceCulture);
177 | }
178 | }
179 |
180 | ///
181 | /// Looks up a localized string similar to Post.
182 | ///
183 | internal static string PostDetailViewTitle {
184 | get {
185 | return ResourceManager.GetString("PostDetailViewTitle", resourceCulture);
186 | }
187 | }
188 |
189 | ///
190 | /// Looks up a localized string similar to Posts.
191 | ///
192 | internal static string PostsOverviewPageTitle {
193 | get {
194 | return ResourceManager.GetString("PostsOverviewPageTitle", resourceCulture);
195 | }
196 | }
197 | }
198 | }
199 |
--------------------------------------------------------------------------------
/WordPressXF/WordPressXF/WordPressXF.Android/WordPressXF.Android.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | AnyCPU
6 | {BD895144-37B8-4207-949D-EAE2F97B1126}
7 | {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
8 | {c9e5eea5-ca05-42a1-839b-61506e0a37df}
9 | Library
10 | WordPressXF.Droid
11 | WordPressXF.Android
12 | True
13 | True
14 | Resources\Resource.designer.cs
15 | Resource
16 | Properties\AndroidManifest.xml
17 | Resources
18 | Assets
19 | false
20 | v12.0
21 | true
22 | true
23 | Xamarin.Android.Net.AndroidClientHandler
24 |
25 |
26 |
27 |
28 | true
29 | portable
30 | false
31 | bin\Debug
32 | DEBUG;
33 | prompt
34 | 4
35 | None
36 |
37 |
38 | true
39 | portable
40 | true
41 | bin\Release
42 | prompt
43 | 4
44 | true
45 | false
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 | 2.0.1
59 |
60 |
61 |
62 |
63 | 5.0.0.2401
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 | {A681607B-1E89-410E-840D-1103E59E69D4}
90 | WordPressXF
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
--------------------------------------------------------------------------------