Skip to content

Commit

Permalink
fix: CI code signing
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsMEMZ committed Oct 19, 2024
1 parent 1829bae commit 4b03992
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 2 deletions.
14 changes: 14 additions & 0 deletions Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -3355,6 +3355,9 @@
}
}
}
},
"DannyFeng" : {

},
"Darock Studio" : {
"localizations" : {
Expand Down Expand Up @@ -9250,6 +9253,16 @@
}
}
},
"作者: %@ | 播放量: %@" : {
"localizations" : {
"zh-Hans" : {
"stringUnit" : {
"state" : "new",
"value" : "作者: %1$@ | 播放量: %2$@"
}
}
}
},
"你要存储当前的草稿吗?" : {
"localizations" : {
"en" : {
Expand Down Expand Up @@ -10236,6 +10249,7 @@
}
},
"手记建议" : {
"extractionState" : "stale",
"localizations" : {
"en" : {
"stringUnit" : {
Expand Down
3 changes: 1 addition & 2 deletions MeowBili/Backend/BiliAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@

import DarockKit

public class BiliAPI {
class BiliAPI {
static let shared = BiliAPI()


}
79 changes: 79 additions & 0 deletions MeowBili/Backend/ResponseModels.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
//
//
// ResponseModels.swift
// DarockBili
//
// Created by memz233 on 10/19/24.
//
//===----------------------------------------------------------------------===//
//
// This source file is part of the MeowBili open source project
//
// Copyright (c) 2024 Darock Studio and the MeowBili project authors
// Licensed under GNU General Public License v3
//
// See https://darock.top/LICENSE.txt for license information
//
//===----------------------------------------------------------------------===//

import Foundation
import SwiftyJSON

struct UserInfo: Identifiable {
let id: Int64
let sex: String
let level: Int
let coins: Double?
let face: String
let vip: VIPDetail?
let birthday: String
let official: OfficialDetail?
let name: String
let sign: String

init(json: JSON) {
self.id = json["mid"].int64Value
self.sex = json["sex"].string/
self.level = json["level"].int ?? 0
self.coins = json["coins"].double ?? 0
self.face = json["face"].string/
if json["vip"].dictionary != nil {
self.vip = .init(json: json["vip"])
}
self.birthday = json["birthday"].string ?? "01-01"
if json["official"].dictionary != nil {
self.official = .init(json: json["official"])
}
self.name = json["name"].string/
self.sign = json["sign"].string/
}

struct VIPDetail {
let label: Label

init(json: JSON) {
self.label = .init(json: json["label"])
}

struct Label {
let text: String

init(json: JSON) {
self.text = json["text"].string/
}
}
}
struct OfficialDetail {
let title: String
let desc: String
let role: Int
let type: Int

init(json: JSON) {
self.title = json["title"].string/
self.desc = json["desc"].string/
self.role = json["role"].int ?? 0
self.type = json["type"].int ?? 0
}
}
}
Empty file removed MeowBili/BiliAPI.swift
Empty file.
7 changes: 7 additions & 0 deletions MeowBili/Extension/CodeExt.swift
Original file line number Diff line number Diff line change
Expand Up @@ -667,3 +667,10 @@ extension String: @retroactive Identifiable {
self
}
}

postfix operator /
extension String? {
static postfix func /(lhs: String?) -> String {
lhs ?? "[加载失败]"
}
}

0 comments on commit 4b03992

Please sign in to comment.