Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

初步实现Widget与完善英语翻译 #421

Merged
merged 7 commits into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .github/.DS_Store
FengzihangCode marked this conversation as resolved.
Show resolved Hide resolved
Binary file not shown.
225 changes: 224 additions & 1 deletion DarockBili.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

FengzihangCode marked this conversation as resolved.
Show resolved Hide resolved

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1600"
version = "1.7">
version = "1.8">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
Expand Down
45 changes: 40 additions & 5 deletions Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -9330,7 +9330,14 @@
}
},
"允许后台播放" : {

"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Allow Background Sound"
}
}
}
},
"允许收集使用信息" : {
"extractionState" : "stale",
Expand Down Expand Up @@ -10258,7 +10265,14 @@
}
},
"手记建议" : {

"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Suggestions for Journal"
}
}
}
},
"扩展的触感反馈" : {
"localizations" : {
Expand Down Expand Up @@ -10373,7 +10387,14 @@
}
},
"搜索 - %@" : {

"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Search - %@"
}
}
}
},
"播放" : {
"localizations" : {
Expand Down Expand Up @@ -10807,7 +10828,14 @@
}
},
"版本 %@ 现已可用" : {

"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Version %@ is now available"
}
}
}
},
"状态" : {
"localizations" : {
Expand Down Expand Up @@ -11011,7 +11039,14 @@
}
},
"若要在后台播放,你需要在播放前连接蓝牙音频设备。" : {

"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "To play in the background, you need to connect a Bluetooth audio device before playing videos."
}
}
}
},
"虽然我们无法一一以文字回复提交的每一份反馈,但我们会查看每一份反馈并监控提交的反馈数量,以便更好地了解问题的范围。" : {
"localizations" : {
Expand Down
8 changes: 8 additions & 0 deletions MeowBili/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
<string>drkbili</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>CFBundleURLSchemes</key>
<array>
<string>meowbili</string>
</array>
</dict>
</array>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
Expand Down
29 changes: 29 additions & 0 deletions MeowWidget/AppIntent.swift
FengzihangCode marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
//
//
// AppIntent.swift
// MeowWidgetExtension
//
// Created by feng 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 WidgetKit
import AppIntents

struct ConfigurationAppIntent: WidgetConfigurationIntent {
static var title: LocalizedStringResource = "Configuration"
static var description = IntentDescription("This is an example widget.")

// An example configurable parameter.
@Parameter(title: "Favorite Emoji", default: "😃")
var favoriteEmoji: String
}
FengzihangCode marked this conversation as resolved.
Show resolved Hide resolved
6 changes: 6 additions & 0 deletions MeowWidget/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
14 changes: 14 additions & 0 deletions MeowWidget/Assets.xcassets/MeowBili.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "ico1.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"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.
Loading