Skip to content

Commit

Permalink
Merge pull request #23 from ProjectInTheClass/hotfix
Browse files Browse the repository at this point in the history
Hotfix
  • Loading branch information
kmer1024 authored Dec 10, 2024
2 parents 0ea0ec4 + ad46236 commit 1cb1d8d
Show file tree
Hide file tree
Showing 21 changed files with 618 additions and 172 deletions.
16 changes: 12 additions & 4 deletions noto-App/noto-App.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
621B9BD72CF46B5800451367 /* Main_Page.swift in Sources */ = {isa = PBXBuildFile; fileRef = 621B9BD62CF46B5300451367 /* Main_Page.swift */; };
621B9BD92CF46C5100451367 /* Project_Progress_Component.swift in Sources */ = {isa = PBXBuildFile; fileRef = 621B9BD82CF46C4800451367 /* Project_Progress_Component.swift */; };
621B9BDB2CF4750400451367 /* Setting_Page.swift in Sources */ = {isa = PBXBuildFile; fileRef = 621B9BDA2CF474FD00451367 /* Setting_Page.swift */; };
621B9BDD2CF47F2C00451367 /* Request_Page.swift in Sources */ = {isa = PBXBuildFile; fileRef = 621B9BDC2CF47F2700451367 /* Request_Page.swift */; };
621B9BDD2CF47F2C00451367 /* RequestList_Page.swift in Sources */ = {isa = PBXBuildFile; fileRef = 621B9BDC2CF47F2700451367 /* RequestList_Page.swift */; };
62251AA22D008827004E1453 /* RequestDetail_Page.swift in Sources */ = {isa = PBXBuildFile; fileRef = 62251AA12D00881F004E1453 /* RequestDetail_Page.swift */; };
62251AA42D009101004E1453 /* User_DataModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 62251AA32D0090F5004E1453 /* User_DataModel.swift */; };
627078DE2CE30A660027FF09 /* ColorStyle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 627078DD2CE30A5D0027FF09 /* ColorStyle.swift */; };
627FFE9C2CEC295100DF70E8 /* FontStyle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 627FFE9B2CEC294E00DF70E8 /* FontStyle.swift */; };
627FFE9E2CEC299700DF70E8 /* Frame_Component.swift in Sources */ = {isa = PBXBuildFile; fileRef = 627FFE9D2CEC299300DF70E8 /* Frame_Component.swift */; };
Expand Down Expand Up @@ -74,7 +76,9 @@
621B9BD62CF46B5300451367 /* Main_Page.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Main_Page.swift; sourceTree = "<group>"; };
621B9BD82CF46C4800451367 /* Project_Progress_Component.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Project_Progress_Component.swift; sourceTree = "<group>"; };
621B9BDA2CF474FD00451367 /* Setting_Page.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Setting_Page.swift; sourceTree = "<group>"; };
621B9BDC2CF47F2700451367 /* Request_Page.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Request_Page.swift; sourceTree = "<group>"; };
621B9BDC2CF47F2700451367 /* RequestList_Page.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RequestList_Page.swift; sourceTree = "<group>"; };
62251AA12D00881F004E1453 /* RequestDetail_Page.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RequestDetail_Page.swift; sourceTree = "<group>"; };
62251AA32D0090F5004E1453 /* User_DataModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = User_DataModel.swift; sourceTree = "<group>"; };
623334682CDDE79100DE9DA1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
627078DD2CE30A5D0027FF09 /* ColorStyle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ColorStyle.swift; sourceTree = "<group>"; };
627FFE9B2CEC294E00DF70E8 /* FontStyle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FontStyle.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -192,10 +196,11 @@
621B9BCD2CF4448F00451367 /* Page */ = {
isa = PBXGroup;
children = (
62251AA12D00881F004E1453 /* RequestDetail_Page.swift */,
62FB21492CFEAE0300B298F0 /* Project_Page.swift */,
62D1EA692CFDA95B005801F6 /* ProgressList_Page.swift */,
62D1EA622CFD8852005801F6 /* TodoDetail_Page.swift */,
621B9BDC2CF47F2700451367 /* Request_Page.swift */,
621B9BDC2CF47F2700451367 /* RequestList_Page.swift */,
621B9BDA2CF474FD00451367 /* Setting_Page.swift */,
621B9BD62CF46B5300451367 /* Main_Page.swift */,
);
Expand All @@ -221,6 +226,7 @@
62D1EA5D2CFD80D8005801F6 /* DataModel */ = {
isa = PBXGroup;
children = (
62251AA32D0090F5004E1453 /* User_DataModel.swift */,
62D1EA672CFDA6AC005801F6 /* Project_DataModel.swift */,
62D1EA652CFD9775005801F6 /* Person_DataModel.swift */,
62D1EA602CFD8130005801F6 /* Todo_DataModel.swift */,
Expand Down Expand Up @@ -365,6 +371,7 @@
1371F01E2CDDE0150034FC36 /* ContentView.swift in Sources */,
621B9BD72CF46B5800451367 /* Main_Page.swift in Sources */,
627FFE9C2CEC295100DF70E8 /* FontStyle.swift in Sources */,
62251AA22D008827004E1453 /* RequestDetail_Page.swift in Sources */,
62D1EA612CFD813D005801F6 /* Todo_DataModel.swift in Sources */,
621B9BD92CF46C5100451367 /* Project_Progress_Component.swift in Sources */,
62D1EA632CFD8865005801F6 /* TodoDetail_Page.swift in Sources */,
Expand All @@ -373,8 +380,9 @@
627FFE9E2CEC299700DF70E8 /* Frame_Component.swift in Sources */,
1371F0202CDDE0150034FC36 /* Item.swift in Sources */,
62FB214A2CFEAE1800B298F0 /* Project_Page.swift in Sources */,
621B9BDD2CF47F2C00451367 /* Request_Page.swift in Sources */,
621B9BDD2CF47F2C00451367 /* RequestList_Page.swift in Sources */,
62D1EA6A2CFDA962005801F6 /* ProgressList_Page.swift in Sources */,
62251AA42D009101004E1453 /* User_DataModel.swift in Sources */,
62D1EA5F2CFD80F6005801F6 /* Request_DataModel.swift in Sources */,
62D1EA682CFDA6B1005801F6 /* Project_DataModel.swift in Sources */,
1371F01C2CDDE0150034FC36 /* noto_AppApp.swift in Sources */,
Expand Down
21 changes: 21 additions & 0 deletions noto-App/noto-App/Assets.xcassets/mail.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "mail.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "paper-plane.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions noto-App/noto-App/Assets.xcassets/receive.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "receive.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions noto-App/noto-App/Component/Frame_Component.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ struct viewAllComponent: View {
}
}

struct dumyBottom: View {
var body: some View {
VStack {}
.frame(width: 120, height: 90)
}
}

// 컴포넌트 정의
extension View {
func scrollViewStyle() -> some View {
Expand Down
2 changes: 1 addition & 1 deletion noto-App/noto-App/Component/Header_Component.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ struct mainHeader: View {
.scaledToFit()
.frame(width: 120)
}
.frame(width: .infinity, height: 96, alignment: .bottom)
.frame(width: 120, height: 96, alignment: .bottom)
}
}

Expand Down
2 changes: 1 addition & 1 deletion noto-App/noto-App/Component/Styles/FontStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ struct ProjectContnentFont: ViewModifier {
struct DescriptionFont: ViewModifier {
func body(content: Content) -> some View {
content
.font(.custom("Freesentation-5Medium", size: 12))
.font(.custom("Freesentation-5Medium", size: 13))
.foregroundColor(.customDarkGray)
.multilineTextAlignment(.leading)
.lineSpacing(10)
Expand Down
63 changes: 63 additions & 0 deletions noto-App/noto-App/Component/Sub_Component.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,68 @@ struct settingRow: View {
}
}

// 행 컴포넌트
struct titleRow_1: View {
var title: String

var body: some View {
HStack {
Text(title)
.titleFont()
.lineLimit(1)
.truncationMode(.tail)
}
.frame(maxWidth: .infinity, alignment: .leading)
.padding(.horizontal, 20)
}
}

struct titleRow_2: View {
var title: String
var imageName: String
var imageSize: CGFloat

var body: some View {
HStack {
Image(imageName)
.resizable()
.frame(width: imageSize, height: imageSize)
.padding(.trailing, 5)
Text(title)
.titleFont()
.lineLimit(1)
.truncationMode(.tail)
}
.frame(maxWidth: .infinity, alignment: .leading)
.padding(.horizontal, 20)
}
}

struct titleRow_3: View {
var title: String
var optionAction: () -> Void

var body: some View {
HStack {
Text(title)
.titleFont()
.lineLimit(1)
.truncationMode(.tail)
Spacer()
Button(action: {
optionAction()
}) {
Image(systemName: "ellipsis")
.font(.system(size: 24))
.foregroundColor(.customBlack)
}
}
.frame(maxWidth: .infinity, alignment: .leading)
.padding(.horizontal, 20)

}
}

enum ShapeType { case circle, rectangle }

// 이미지 컴포넌트(크기는 정형 (n x n))
Expand All @@ -120,6 +182,7 @@ struct imageComponent: View {
}
}

// 입력창 컴포넌트
struct inputComponent: View {
@Binding var userInput: String
var placeholder: String
Expand Down
115 changes: 86 additions & 29 deletions noto-App/noto-App/DataModel/Request_DataModel.swift
Original file line number Diff line number Diff line change
@@ -1,46 +1,103 @@
import SwiftUI

// Request 데이터 모델
struct Request: Identifiable {
// receivedRequest 데이터 모델
struct receivedRequest: Identifiable {
let id = UUID() // 고유 ID
let rid: Int
let sender: String
let role: String
let title: String
let subtitle: String
let dateSent: Date
}

// sendedRequest 데이터 모델
struct sentRequest: Identifiable {
let id = UUID() // 고유 ID
let rid: Int
let rejected: Int
let receiver: String
let role: String
let title: String
let subtitle: String
let dateSent: Date
}

let dateFormatter: DateFormatter = {
let formatter = DateFormatter()
formatter.dateFormat = "yyyy-MM-dd HH:mm"
return formatter
}()

// Request 더미데이터
let requests: [Request] = [
Request(sender: "김지민",
role: "관리자",
title: "새로운 할 일 배정",
subtitle: "할 일 추가: '할 일 완료 체크 기능 구현' 작업에 배정되었습니다. 이 작업을 수락하시겠습니까?",
dateSent: dateFormatter.date(from: "2024-11-10 14:00")!),
Request(sender: "한나리",
role: "참가자",
title: "프로젝트 참여 요청",
subtitle: "'iOS 앱 테스트' 프로젝트에 배정되었습니다. 이 프로젝트에 참여하시겠습니까?",
dateSent: dateFormatter.date(from: "2024-10-12 15:30")!),
Request(sender: "임진우",
role: "참가자",
title: "할 일 수정 요청",
subtitle: "'할 일 삭제 기능 구현' 작업의 기한이 변경되었습니다. 수정된 기한을 수락하시겠습니까?",
dateSent: dateFormatter.date(from: "2024-10-11 16:00")!),
Request(sender: "김지민",
role: "관리자",
title: "프로젝트 파일 검토 요청",
subtitle: "프로젝트 'iOS Todo 앱'의 문서 검토 요청이 왔습니다. 검토 후 승인하시겠습니까?",
dateSent: dateFormatter.date(from: "2024-10-10 09:11")!),
Request(sender: "한나리",
role: "참가자",
title: "할 일 우선순위 변경 요청",
subtitle: "현재 작업 중인 'UI 스타일링' 작업의 우선순위가 변경되었습니다. 이를 수락하시겠습니까?",
dateSent: dateFormatter.date(from: "2024-10-09 23:54")!),
// Request 더미데이터 (사용자가 받은 요청)
let receivedRequests: [receivedRequest] = [
receivedRequest(rid: 0,
sender: "김지민",
role: "관리자",
title: "새로운 할 일 배정",
subtitle: "할 일 추가: '할 일 완료 체크 기능 구현' 작업에 배정되었습니다. 이 작업을 수락하시겠습니까?",
dateSent: dateFormatter.date(from: "2024-11-10 14:00")!),
receivedRequest(rid: 1,
sender: "한나리",
role: "참가자",
title: "프로젝트 참여 요청",
subtitle: "'iOS 앱 테스트' 프로젝트에 배정되었습니다. 이 프로젝트에 참여하시겠습니까?",
dateSent: dateFormatter.date(from: "2024-10-12 15:30")!),
receivedRequest(rid: 2,
sender: "임진우",
role: "참가자",
title: "할 일 수정 요청",
subtitle: "'할 일 삭제 기능 구현' 작업의 기한이 변경되었습니다. 수정된 기한을 수락하시겠습니까?",
dateSent: dateFormatter.date(from: "2024-10-11 16:00")!),
receivedRequest(rid: 3,
sender: "김지민",
role: "관리자",
title: "프로젝트 파일 검토 요청",
subtitle: "프로젝트 'iOS Todo 앱'의 문서 검토 요청이 왔습니다. 검토 후 승인하시겠습니까?",
dateSent: dateFormatter.date(from: "2024-10-10 09:11")!),
receivedRequest(rid: 4,
sender: "한나리",
role: "참가자",
title: "할 일 우선순위 변경 요청",
subtitle: "현재 작업 중인 'UI 스타일링' 작업의 우선순위가 변경되었습니다. 이를 수락하시겠습니까?",
dateSent: dateFormatter.date(from: "2024-10-09 23:54")!)
]

// Request 더미데이터 (사용자가 보낸 요청)
let sentRequests: [sentRequest] = [
sentRequest(rid: 0,
rejected: 0,
receiver: "한나리",
role: "참가자",
title: "작업 요청",
subtitle: "할 일: '테스트 시나리오 작성' 작업을 수행해 주세요.",
dateSent: dateFormatter.date(from: "2024-11-08 10:00")!),
sentRequest(rid: 1,
rejected: 0,
receiver: "한나리",
role: "참가자",
title: "프로젝트 초대",
subtitle: "프로젝트 'iOS 앱 테스트'에 초대되었습니다. 참여를 수락해 주세요.",
dateSent: dateFormatter.date(from: "2024-11-07 15:45")!),
sentRequest(rid: 2,
rejected: 1,
receiver: "임진우",
role: "참가자",
title: "기한 연장 요청",
subtitle: "현재 진행 중인 '디자인 검토' 작업의 기한을 3일 연장해 주세요.",
dateSent: dateFormatter.date(from: "2024-11-06 14:30")!),
sentRequest(rid: 3,
rejected: 1,
receiver: "임진우",
role: "참가자",
title: "작업 우선순위 변경",
subtitle: "'UI 테스트' 작업의 우선순위를 조정해 주세요.",
dateSent: dateFormatter.date(from: "2024-11-05 09:00")!),
sentRequest(rid: 4,
rejected: 0,
receiver: "한나리",
role: "참가자",
title: "작업 완료 검토 요청",
subtitle: "'UI 스타일링' 작업을 완료했습니다. 검토 후 승인해 주세요.",
dateSent: dateFormatter.date(from: "2024-11-04 13:20")!)
]
11 changes: 11 additions & 0 deletions noto-App/noto-App/DataModel/User_DataModel.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import SwiftUI

// 앱 사용자 데이터 모델
struct user: Identifiable {
let id = UUID() // 고유 ID
let uid: Int
let name: String
let role: String
}

let userInfo: user = user(uid: 0, name: "김지민", role: "admin")
Loading

0 comments on commit 1cb1d8d

Please sign in to comment.