Skip to content

Commit

Permalink
🔖 Republished version 0.0.1 to deno
Browse files Browse the repository at this point in the history
  • Loading branch information
waterbang committed Jun 6, 2023
1 parent ce7835c commit 34b6b29
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ import info.bagen.dwebbrowser.microService.helper.Mmid
data class JmmMetadata(
val id: Mmid, // jmmApp的id
val server: MainServer, // 打开应用地址
val dwebDeeplinks: MutableList<DWEB_DEEPLINK> = mutableListOf(),
val dweb_deeplinks: MutableList<DWEB_DEEPLINK> = mutableListOf(),
val name: String = "", // 应用名称
val shortName: String = "", // 应用副标题
val short_name: String = "", // 应用副标题
val icon: String = "", // 应用图标
val images: List<String>? = null, // 应用截图
val description: String = "", // 应用描述
val author: List<String>? = null, // 开发者,作者
val categories: List<String>? = null, // 应用类型 https://github.com/w3c/manifest/wiki/Categories
val version: String = "", // 应用版本
val new_feature: String = "", // 新特性,新功能
val new_feature: String? = null, // 新特性,新功能
val home: String = "", // 首页地址
var bundle_url: String = "", // 下载应用地址
val bundle_size: String = "", // 应用大小
Expand All @@ -41,10 +41,10 @@ data class JmmMetadata(

val defaultJmmMetadata = JmmMetadata(
id = "default.user.dweb",
dwebDeeplinks = mutableListOf(),
dweb_deeplinks = mutableListOf(),
icon = "https://www.bfmeta.info/imgs/logo3.webp",
name = "默认测试数据",
shortName = "该测试数据包含了相关具体信息,请仔细查阅",
short_name = "该测试数据包含了相关具体信息,请仔细查阅",
description = "这是一个实例应用,包含了dweb_plugins全部组件的实例。",
bundle_url = "https://dweb.waterbang.top/app.plaoc.dweb-1.0.0.zip",
bundle_size = "2726400",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fun debugJMM(tag: String, msg: Any? = "", err: Throwable? = null) =
open class JsMicroModule(var metadata: JmmMetadata) : MicroModule() {

override val dweb_deeplinks: MutableList<DWEB_DEEPLINK>
get() = this.metadata.dwebDeeplinks
get() = this.metadata.dweb_deeplinks


companion object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ private fun AppInfoHeadView(jmmMetadata: JmmMetadata) {
Spacer(modifier = Modifier.height(8.dp))

Text(
text = jmmMetadata.shortName,
text = jmmMetadata.short_name,
maxLines = 1,
color = MaterialTheme.colorScheme.outlineVariant,
overflow = TextOverflow.Ellipsis,
Expand Down Expand Up @@ -514,7 +514,7 @@ private fun NewVersionInfoView(jmmMetadata: JmmMetadata) {
.animateContentSize()
.clickable { expanded.value = !expanded.value }) {
Text(
text = "运用全新的功能,让使用更加安全便捷",
text = jmmMetadata.new_feature ?: "运用全新的功能,让使用更加安全便捷",
maxLines = if (expanded.value) Int.MAX_VALUE else 2,
overflow = TextOverflow.Ellipsis,
color = MaterialTheme.colorScheme.onSurface
Expand All @@ -538,10 +538,10 @@ private fun OtherInfoView(jmmMetadata: JmmMetadata) {
Spacer(modifier = Modifier.height(HorizontalPadding))
OtherItemView(type = "开发者", content = jmmMetadata.author?.toContent() ?: "me")
OtherItemView(type = "大小", content = jmmMetadata.bundle_size.toSpaceSize())
OtherItemView(type = "类别", content = "娱乐")
OtherItemView(type = "类别", content = jmmMetadata.categories?.toContent()?: "娱乐")
OtherItemView(type = "语言", content = "中文")
OtherItemView(type = "年龄分级", content = "18+")
OtherItemView(type = "版权", content = "bgwl")
OtherItemView(type = "版权", content = "@${jmmMetadata.author?.get(0) ?:"dweb_browser"}")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class DownLoadViewModel(val mmid: Mmid, val url: String) : ViewModel() {
),
bundle_url = url,
name = "测试",
shortName = "测试",
short_name = "测试",
icon = "https://www.bfmeta.info/imgs/logo3.webp",
images = listOf(
"http://qiniu-waterbang.waterbang.top/bfm/cot-home_2058.webp",
Expand Down
4 changes: 4 additions & 0 deletions plaoc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ deno task plaoc serve ./plaoc/demo/dist
```bash
git tag -a 0.0.1 -m "feat: xxx"
```

```bash
git push origin <tag-name>
```
Binary file modified scripts/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 34b6b29

Please sign in to comment.