mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Add WFAPost NSManagedObject class for local storage
This commit is contained in:
parent
e8301b7eb4
commit
3bdc08f067
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="17189" systemVersion="20A5354i" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="">
|
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="17189" systemVersion="20A5364e" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="">
|
||||||
<entity name="WFACollection" representedClassName="WFACollection" syncable="YES">
|
<entity name="WFACollection" representedClassName="WFACollection" syncable="YES">
|
||||||
<attribute name="alias" optional="YES" attributeType="String"/>
|
<attribute name="alias" optional="YES" attributeType="String"/>
|
||||||
<attribute name="blogDescription" optional="YES" attributeType="String"/>
|
<attribute name="blogDescription" optional="YES" attributeType="String"/>
|
||||||
@ -14,7 +14,26 @@
|
|||||||
</uniquenessConstraint>
|
</uniquenessConstraint>
|
||||||
</uniquenessConstraints>
|
</uniquenessConstraints>
|
||||||
</entity>
|
</entity>
|
||||||
|
<entity name="WFAPost" representedClassName="WFAPost" syncable="YES">
|
||||||
|
<attribute name="appearance" optional="YES" attributeType="String"/>
|
||||||
|
<attribute name="body" attributeType="String"/>
|
||||||
|
<attribute name="collectionAlias" optional="YES" attributeType="String"/>
|
||||||
|
<attribute name="createdDate" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
|
||||||
|
<attribute name="language" optional="YES" attributeType="String"/>
|
||||||
|
<attribute name="postId" optional="YES" attributeType="String"/>
|
||||||
|
<attribute name="rtl" optional="YES" attributeType="Boolean" usesScalarValueType="YES"/>
|
||||||
|
<attribute name="slug" optional="YES" attributeType="String"/>
|
||||||
|
<attribute name="status" attributeType="Integer 32" defaultValueString="0" usesScalarValueType="YES"/>
|
||||||
|
<attribute name="title" optional="YES" attributeType="String"/>
|
||||||
|
<attribute name="updatedDate" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
|
||||||
|
<uniquenessConstraints>
|
||||||
|
<uniquenessConstraint>
|
||||||
|
<constraint value="postId"/>
|
||||||
|
</uniquenessConstraint>
|
||||||
|
</uniquenessConstraints>
|
||||||
|
</entity>
|
||||||
<elements>
|
<elements>
|
||||||
<element name="WFACollection" positionX="-18" positionY="27" width="128" height="134"/>
|
<element name="WFACollection" positionX="14.806640625" positionY="202.9156341552734" width="128" height="148"/>
|
||||||
|
<element name="WFAPost" positionX="287.377197265625" positionY="243.2452697753906" width="128" height="194"/>
|
||||||
</elements>
|
</elements>
|
||||||
</model>
|
</model>
|
7
WFAPost+CoreDataClass.swift
Normal file
7
WFAPost+CoreDataClass.swift
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import Foundation
|
||||||
|
import CoreData
|
||||||
|
|
||||||
|
@objc(WFAPost)
|
||||||
|
public class WFAPost: NSManagedObject {
|
||||||
|
|
||||||
|
}
|
26
WFAPost+CoreDataProperties.swift
Normal file
26
WFAPost+CoreDataProperties.swift
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
import Foundation
|
||||||
|
import CoreData
|
||||||
|
|
||||||
|
extension WFAPost {
|
||||||
|
|
||||||
|
@nonobjc public class func createFetchRequest() -> NSFetchRequest<WFAPost> {
|
||||||
|
return NSFetchRequest<WFAPost>(entityName: "WFAPost")
|
||||||
|
}
|
||||||
|
|
||||||
|
@NSManaged public var appearance: String?
|
||||||
|
@NSManaged public var body: String?
|
||||||
|
@NSManaged public var collectionAlias: String?
|
||||||
|
@NSManaged public var createdDate: Date?
|
||||||
|
@NSManaged public var language: String?
|
||||||
|
@NSManaged public var postId: String?
|
||||||
|
@NSManaged public var rtl: Bool
|
||||||
|
@NSManaged public var slug: String?
|
||||||
|
@NSManaged public var status: Int32
|
||||||
|
@NSManaged public var title: String?
|
||||||
|
@NSManaged public var updatedDate: Date?
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
extension WFAPost: Identifiable {
|
||||||
|
|
||||||
|
}
|
@ -52,6 +52,10 @@
|
|||||||
17A5388C24DDC83F00DEFF9A /* AccountModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 17A5388B24DDC83F00DEFF9A /* AccountModel.swift */; };
|
17A5388C24DDC83F00DEFF9A /* AccountModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 17A5388B24DDC83F00DEFF9A /* AccountModel.swift */; };
|
||||||
17A5388F24DDEC7400DEFF9A /* AccountView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 17A5388D24DDEC7400DEFF9A /* AccountView.swift */; };
|
17A5388F24DDEC7400DEFF9A /* AccountView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 17A5388D24DDEC7400DEFF9A /* AccountView.swift */; };
|
||||||
17A5389324DDED0000DEFF9A /* PreferencesView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 17A5389124DDED0000DEFF9A /* PreferencesView.swift */; };
|
17A5389324DDED0000DEFF9A /* PreferencesView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 17A5389124DDED0000DEFF9A /* PreferencesView.swift */; };
|
||||||
|
17B996D82502D23E0017B536 /* WFAPost+CoreDataClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = 17B996D62502D23E0017B536 /* WFAPost+CoreDataClass.swift */; };
|
||||||
|
17B996D92502D23E0017B536 /* WFAPost+CoreDataClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = 17B996D62502D23E0017B536 /* WFAPost+CoreDataClass.swift */; };
|
||||||
|
17B996DA2502D23E0017B536 /* WFAPost+CoreDataProperties.swift in Sources */ = {isa = PBXBuildFile; fileRef = 17B996D72502D23E0017B536 /* WFAPost+CoreDataProperties.swift */; };
|
||||||
|
17B996DB2502D23E0017B536 /* WFAPost+CoreDataProperties.swift in Sources */ = {isa = PBXBuildFile; fileRef = 17B996D72502D23E0017B536 /* WFAPost+CoreDataProperties.swift */; };
|
||||||
17D435E824E3128F0036B539 /* PreferencesModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 17D435E724E3128F0036B539 /* PreferencesModel.swift */; };
|
17D435E824E3128F0036B539 /* PreferencesModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 17D435E724E3128F0036B539 /* PreferencesModel.swift */; };
|
||||||
17D435E924E3128F0036B539 /* PreferencesModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 17D435E724E3128F0036B539 /* PreferencesModel.swift */; };
|
17D435E924E3128F0036B539 /* PreferencesModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 17D435E724E3128F0036B539 /* PreferencesModel.swift */; };
|
||||||
17DF329D24C87D3500BCE2E3 /* Tests_iOS.swift in Sources */ = {isa = PBXBuildFile; fileRef = 17DF329C24C87D3500BCE2E3 /* Tests_iOS.swift */; };
|
17DF329D24C87D3500BCE2E3 /* Tests_iOS.swift in Sources */ = {isa = PBXBuildFile; fileRef = 17DF329C24C87D3500BCE2E3 /* Tests_iOS.swift */; };
|
||||||
@ -111,6 +115,8 @@
|
|||||||
17A5388B24DDC83F00DEFF9A /* AccountModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccountModel.swift; sourceTree = "<group>"; };
|
17A5388B24DDC83F00DEFF9A /* AccountModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccountModel.swift; sourceTree = "<group>"; };
|
||||||
17A5388D24DDEC7400DEFF9A /* AccountView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccountView.swift; sourceTree = "<group>"; };
|
17A5388D24DDEC7400DEFF9A /* AccountView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccountView.swift; sourceTree = "<group>"; };
|
||||||
17A5389124DDED0000DEFF9A /* PreferencesView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreferencesView.swift; sourceTree = "<group>"; };
|
17A5389124DDED0000DEFF9A /* PreferencesView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreferencesView.swift; sourceTree = "<group>"; };
|
||||||
|
17B996D62502D23E0017B536 /* WFAPost+CoreDataClass.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "WFAPost+CoreDataClass.swift"; sourceTree = SOURCE_ROOT; };
|
||||||
|
17B996D72502D23E0017B536 /* WFAPost+CoreDataProperties.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "WFAPost+CoreDataProperties.swift"; sourceTree = SOURCE_ROOT; };
|
||||||
17D435E724E3128F0036B539 /* PreferencesModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreferencesModel.swift; sourceTree = "<group>"; };
|
17D435E724E3128F0036B539 /* PreferencesModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreferencesModel.swift; sourceTree = "<group>"; };
|
||||||
17DF328124C87D3300BCE2E3 /* WriteFreely_MultiPlatformApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WriteFreely_MultiPlatformApp.swift; sourceTree = "<group>"; };
|
17DF328124C87D3300BCE2E3 /* WriteFreely_MultiPlatformApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WriteFreely_MultiPlatformApp.swift; sourceTree = "<group>"; };
|
||||||
17DF328224C87D3300BCE2E3 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
|
17DF328224C87D3300BCE2E3 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
|
||||||
@ -199,6 +205,8 @@
|
|||||||
children = (
|
children = (
|
||||||
1756DBFF24FEE18400207AB8 /* WFACollection+CoreDataClass.swift */,
|
1756DBFF24FEE18400207AB8 /* WFACollection+CoreDataClass.swift */,
|
||||||
1756DC0024FEE18400207AB8 /* WFACollection+CoreDataProperties.swift */,
|
1756DC0024FEE18400207AB8 /* WFACollection+CoreDataProperties.swift */,
|
||||||
|
17B996D62502D23E0017B536 /* WFAPost+CoreDataClass.swift */,
|
||||||
|
17B996D72502D23E0017B536 /* WFAPost+CoreDataProperties.swift */,
|
||||||
1756AE6A24CB1E4B00FD7257 /* Post.swift */,
|
1756AE6A24CB1E4B00FD7257 /* Post.swift */,
|
||||||
171BFDF624D49FD400888236 /* PostCollection.swift */,
|
171BFDF624D49FD400888236 /* PostCollection.swift */,
|
||||||
1756AE6D24CB255B00FD7257 /* PostStore.swift */,
|
1756AE6D24CB255B00FD7257 /* PostStore.swift */,
|
||||||
@ -570,6 +578,7 @@
|
|||||||
1756DBB324FECDBB00207AB8 /* PostEditorStatusToolbarView.swift in Sources */,
|
1756DBB324FECDBB00207AB8 /* PostEditorStatusToolbarView.swift in Sources */,
|
||||||
17120DB224E1E19C002B9F6C /* SettingsHeaderView.swift in Sources */,
|
17120DB224E1E19C002B9F6C /* SettingsHeaderView.swift in Sources */,
|
||||||
1756DBB724FED3A400207AB8 /* LocalStorageModel.xcdatamodeld in Sources */,
|
1756DBB724FED3A400207AB8 /* LocalStorageModel.xcdatamodeld in Sources */,
|
||||||
|
17B996DA2502D23E0017B536 /* WFAPost+CoreDataProperties.swift in Sources */,
|
||||||
1756AE7724CB2EDD00FD7257 /* PostEditorView.swift in Sources */,
|
1756AE7724CB2EDD00FD7257 /* PostEditorView.swift in Sources */,
|
||||||
17DF32D524C8CA3400BCE2E3 /* PostStatusBadgeView.swift in Sources */,
|
17DF32D524C8CA3400BCE2E3 /* PostStatusBadgeView.swift in Sources */,
|
||||||
17D435E824E3128F0036B539 /* PreferencesModel.swift in Sources */,
|
17D435E824E3128F0036B539 /* PreferencesModel.swift in Sources */,
|
||||||
@ -577,6 +586,7 @@
|
|||||||
1762DCB324EB086C0019C4EB /* CollectionListModel.swift in Sources */,
|
1762DCB324EB086C0019C4EB /* CollectionListModel.swift in Sources */,
|
||||||
1756AE7A24CB65DF00FD7257 /* PostListView.swift in Sources */,
|
1756AE7A24CB65DF00FD7257 /* PostListView.swift in Sources */,
|
||||||
171BFDF724D49FD400888236 /* PostCollection.swift in Sources */,
|
171BFDF724D49FD400888236 /* PostCollection.swift in Sources */,
|
||||||
|
17B996D82502D23E0017B536 /* WFAPost+CoreDataClass.swift in Sources */,
|
||||||
1756DC0124FEE18400207AB8 /* WFACollection+CoreDataClass.swift in Sources */,
|
1756DC0124FEE18400207AB8 /* WFACollection+CoreDataClass.swift in Sources */,
|
||||||
17DF32AA24C87D3500BCE2E3 /* WriteFreely_MultiPlatformApp.swift in Sources */,
|
17DF32AA24C87D3500BCE2E3 /* WriteFreely_MultiPlatformApp.swift in Sources */,
|
||||||
17120DA724E19D11002B9F6C /* SettingsView.swift in Sources */,
|
17120DA724E19D11002B9F6C /* SettingsView.swift in Sources */,
|
||||||
@ -608,9 +618,11 @@
|
|||||||
1756AE7B24CB65DF00FD7257 /* PostListView.swift in Sources */,
|
1756AE7B24CB65DF00FD7257 /* PostListView.swift in Sources */,
|
||||||
1753F6AC24E431CC00309365 /* MacPreferencesView.swift in Sources */,
|
1753F6AC24E431CC00309365 /* MacPreferencesView.swift in Sources */,
|
||||||
1756DC0424FEE18400207AB8 /* WFACollection+CoreDataProperties.swift in Sources */,
|
1756DC0424FEE18400207AB8 /* WFACollection+CoreDataProperties.swift in Sources */,
|
||||||
|
17B996DB2502D23E0017B536 /* WFAPost+CoreDataProperties.swift in Sources */,
|
||||||
171BFDFB24D4AF8300888236 /* CollectionListView.swift in Sources */,
|
171BFDFB24D4AF8300888236 /* CollectionListView.swift in Sources */,
|
||||||
17DF32AB24C87D3500BCE2E3 /* WriteFreely_MultiPlatformApp.swift in Sources */,
|
17DF32AB24C87D3500BCE2E3 /* WriteFreely_MultiPlatformApp.swift in Sources */,
|
||||||
17A5388C24DDC83F00DEFF9A /* AccountModel.swift in Sources */,
|
17A5388C24DDC83F00DEFF9A /* AccountModel.swift in Sources */,
|
||||||
|
17B996D92502D23E0017B536 /* WFAPost+CoreDataClass.swift in Sources */,
|
||||||
1762DCB424EB086C0019C4EB /* CollectionListModel.swift in Sources */,
|
1762DCB424EB086C0019C4EB /* CollectionListModel.swift in Sources */,
|
||||||
1756DBB824FED3A400207AB8 /* LocalStorageModel.xcdatamodeld in Sources */,
|
1756DBB824FED3A400207AB8 /* LocalStorageModel.xcdatamodeld in Sources */,
|
||||||
17A5389324DDED0000DEFF9A /* PreferencesView.swift in Sources */,
|
17A5389324DDED0000DEFF9A /* PreferencesView.swift in Sources */,
|
||||||
|
Loading…
Reference in New Issue
Block a user