mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Rename PostStore to PostListModel and move to PostList group
This commit is contained in:
parent
169e3684a6
commit
6728e20821
@ -7,7 +7,7 @@ import Security
|
||||
class WriteFreelyModel: ObservableObject {
|
||||
@Published var account = AccountModel()
|
||||
@Published var preferences = PreferencesModel()
|
||||
@Published var store = PostStore()
|
||||
@Published var store = PostListModel()
|
||||
@Published var collections = CollectionListModel()
|
||||
@Published var isLoggingIn: Bool = false
|
||||
@Published var selectedPost: Post?
|
||||
|
@ -2,7 +2,7 @@ import Foundation
|
||||
import WriteFreely
|
||||
import CoreData
|
||||
|
||||
struct PostStore {
|
||||
struct PostListModel {
|
||||
var posts: [Post]
|
||||
|
||||
init(posts: [Post] = []) {
|
@ -25,8 +25,8 @@
|
||||
1753F6AC24E431CC00309365 /* MacPreferencesView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1753F6AB24E431CC00309365 /* MacPreferencesView.swift */; };
|
||||
1756AE6B24CB1E4B00FD7257 /* Post.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1756AE6A24CB1E4B00FD7257 /* Post.swift */; };
|
||||
1756AE6C24CB1E4B00FD7257 /* Post.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1756AE6A24CB1E4B00FD7257 /* Post.swift */; };
|
||||
1756AE6E24CB255B00FD7257 /* PostStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1756AE6D24CB255B00FD7257 /* PostStore.swift */; };
|
||||
1756AE6F24CB255B00FD7257 /* PostStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1756AE6D24CB255B00FD7257 /* PostStore.swift */; };
|
||||
1756AE6E24CB255B00FD7257 /* PostListModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1756AE6D24CB255B00FD7257 /* PostListModel.swift */; };
|
||||
1756AE6F24CB255B00FD7257 /* PostListModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1756AE6D24CB255B00FD7257 /* PostListModel.swift */; };
|
||||
1756AE7424CB26FA00FD7257 /* PostCellView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1756AE7324CB26FA00FD7257 /* PostCellView.swift */; };
|
||||
1756AE7524CB26FA00FD7257 /* PostCellView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1756AE7324CB26FA00FD7257 /* PostCellView.swift */; };
|
||||
1756AE7724CB2EDD00FD7257 /* PostEditorView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1756AE7624CB2EDD00FD7257 /* PostEditorView.swift */; };
|
||||
@ -101,7 +101,7 @@
|
||||
174D313124EC2831006CA9EE /* WriteFreelyModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WriteFreelyModel.swift; sourceTree = "<group>"; };
|
||||
1753F6AB24E431CC00309365 /* MacPreferencesView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MacPreferencesView.swift; sourceTree = "<group>"; };
|
||||
1756AE6A24CB1E4B00FD7257 /* Post.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Post.swift; sourceTree = "<group>"; };
|
||||
1756AE6D24CB255B00FD7257 /* PostStore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PostStore.swift; sourceTree = "<group>"; };
|
||||
1756AE6D24CB255B00FD7257 /* PostListModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PostListModel.swift; sourceTree = "<group>"; };
|
||||
1756AE7324CB26FA00FD7257 /* PostCellView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PostCellView.swift; sourceTree = "<group>"; };
|
||||
1756AE7624CB2EDD00FD7257 /* PostEditorView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PostEditorView.swift; sourceTree = "<group>"; };
|
||||
1756AE7924CB65DF00FD7257 /* PostListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PostListView.swift; sourceTree = "<group>"; };
|
||||
@ -213,7 +213,6 @@
|
||||
1756AE6A24CB1E4B00FD7257 /* Post.swift */,
|
||||
171BFDF624D49FD400888236 /* PostCollection.swift */,
|
||||
17C42E612507D8E600072984 /* PostStatus.swift */,
|
||||
1756AE6D24CB255B00FD7257 /* PostStore.swift */,
|
||||
174D313124EC2831006CA9EE /* WriteFreelyModel.swift */,
|
||||
1756DBB524FED3A400207AB8 /* LocalStorageModel.xcdatamodeld */,
|
||||
);
|
||||
@ -353,6 +352,7 @@
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
1756AE7324CB26FA00FD7257 /* PostCellView.swift */,
|
||||
1756AE6D24CB255B00FD7257 /* PostListModel.swift */,
|
||||
1756AE7924CB65DF00FD7257 /* PostListView.swift */,
|
||||
17DF32D424C8CA3400BCE2E3 /* PostStatusBadgeView.swift */,
|
||||
);
|
||||
@ -598,7 +598,7 @@
|
||||
1756DC0324FEE18400207AB8 /* WFACollection+CoreDataProperties.swift in Sources */,
|
||||
17120DA224E1985C002B9F6C /* AccountModel.swift in Sources */,
|
||||
17120DA324E19A42002B9F6C /* PreferencesView.swift in Sources */,
|
||||
1756AE6E24CB255B00FD7257 /* PostStore.swift in Sources */,
|
||||
1756AE6E24CB255B00FD7257 /* PostListModel.swift in Sources */,
|
||||
174D313224EC2831006CA9EE /* WriteFreelyModel.swift in Sources */,
|
||||
1756AE6B24CB1E4B00FD7257 /* Post.swift in Sources */,
|
||||
17120DA124E19839002B9F6C /* AccountView.swift in Sources */,
|
||||
@ -631,7 +631,7 @@
|
||||
1762DCB424EB086C0019C4EB /* CollectionListModel.swift in Sources */,
|
||||
1756DBB824FED3A400207AB8 /* LocalStorageModel.xcdatamodeld in Sources */,
|
||||
17A5389324DDED0000DEFF9A /* PreferencesView.swift in Sources */,
|
||||
1756AE6F24CB255B00FD7257 /* PostStore.swift in Sources */,
|
||||
1756AE6F24CB255B00FD7257 /* PostListModel.swift in Sources */,
|
||||
1756DC0224FEE18400207AB8 /* WFACollection+CoreDataClass.swift in Sources */,
|
||||
1756DBB424FECDBB00207AB8 /* PostEditorStatusToolbarView.swift in Sources */,
|
||||
1756AE6C24CB1E4B00FD7257 /* Post.swift in Sources */,
|
||||
|
Loading…
Reference in New Issue
Block a user