Skip to content

Commit

Permalink
1.完善用户隐私协议页面文字前加上黑色圆点。
Browse files Browse the repository at this point in the history
2.完善开源许可页面
3.完善免责声明页面
  • Loading branch information
TroyIrvo committed Nov 14, 2024
1 parent ee74be2 commit ed92e1f
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 35 deletions.
45 changes: 33 additions & 12 deletions entry/src/main/ets/pages/view/myCenter/aboutUs/DisclaimerPage.ets
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,16 @@ import { router } from '@kit.ArkUI';
struct DisclaimerPage {
@StorageLink('bottomRectHeight') bottomRectHeight: number = 0
@StorageLink('topRectHeight') topRectHeight: number = 0
@State rowsData: Array<string> = [
'免责声明(Disclaimer)',
'阅读是一款解析指定规则并获取内容的工具,为广大网络文学爱好者提供一种方便、快捷舒适的试读体验。',
'当您搜索一本书的时,阅读会您所使用的规则将该书的书名以关键词的形式提交到各个第三方网络文学网站。 各第三方网站返回的内容与阅读无关,阅读对其概不负责,亦不承担任何法律责任。 任何通过使用阅读而链接到的第三方网页均系他人制作或提供,您可能从第三方网页上获得其他服务,阅读对其合法性概不负责,亦不承担任何法律责任。 第三方搜索引擎结果根据您提交的书名自动搜索获得并提供试读,不代表阅读赞成或被搜索链接到的第三方网页上的内容或立场。 您应该对使用搜索引擎的结果自行承担风险。',
'阅读不做任何形式的保证:不保证第三方搜索引擎的搜索结果满足您的要求,不保证搜索服务不中断,不保证搜索结果的安全性、正确性、及时性、合法性。 因网络状况、通讯线路、第三方网站等任何原因而导致您不能正常使用阅读,阅读不承担任何法律责任。 阅读尊重并保护所有使用阅读用户的个人隐私权,您注册的用户名、电子邮件地址等个人资料,非经您亲自许可或根据相关法律、法规的强制性规定,阅读不会主动地泄露给第三方。',
'阅读致力于最大程度地减少网络文学阅读者在自行搜寻过程中的无意义的时间浪费,通过专业搜索展示不同网站中网络文学的最新章节。 阅读在为广大小说爱好者提供方便、快捷舒适的试读体验的同时,也使优秀网络文学得以迅速、更广泛的传播,从而达到了在一定程度促进网络文学充分繁荣发展之目的。 阅读鼓励广大小说爱好者通过阅读发现优秀网络小说及其提供商,并建议阅读正版图书。 任何单位或个人认为通过阅读搜索链接到的第三方网页内容可能涉嫌侵犯其信息网络传播权,应该及时向阅读提出书面权力通知,并提供身份证明、权属证明及详细侵权情况证明。 阅读在收到上述法律文件后,将会依法尽快断开相关链接内容。'
]
build() {
Column({ space: 16 }) {
// 标题部分(不滚动,保持固定)
Flex() {
Column() {
Image($r("app.media.return_left"))
Expand Down Expand Up @@ -37,21 +45,34 @@ struct DisclaimerPage {
.height(48)
.width("100%")

Row() {
Text("免责声明(Disclaimer)\n\n阅读是一款解析指定规则并获取内容的工具,为广大网络文学爱好者提供一种方便、快捷舒适的试读体验。")
.lineHeight(22)
.font({
family: "PingFang SC",
size: 14,
style: FontStyle.Normal,
weight: 400,
// 可滚动的内容区域
Scroll() {
Column() {
ForEach(this.rowsData, (item: string) => {
Row() {
Text(item)
.lineHeight(22)
.font({
family: "PingFang SC",
size: 14,
style: FontStyle.Normal,
weight: 400,
})
}.width("100%")
.margin({ top: 12, bottom: 20 })
})
}.width("100%").margin({ top: 12 })

}
.width("100%")
}
.scrollable(ScrollDirection.Vertical) // 设置为垂直滚动
.scrollBar(BarState.Off)
.edgeEffect(EdgeEffect.None)
.height("100%")
.margin({ bottom: 60 })
}
.height("100%")
.height("100%") // 设置外部 Column 高度为 100%
.padding({
top:this.topRectHeight,
top: this.topRectHeight,
left: 20,
right: 20
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,23 @@ import { router } from '@kit.ArkUI';
struct OpenSourceLicensePage {
@StorageLink('bottomRectHeight') bottomRectHeight: number = 0
@StorageLink('topRectHeight') topRectHeight: number = 0
@State rowsData: Array<string> = [
'GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007',
'Copyright (C) 2007 Free Software Foundation, Inc. https://fsf.org/ Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.',
'Preamble',
'The GNU General Public License is a free, copyleft license for software and other kinds of works.',
'The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.',
'When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.',
'To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.',
'For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.',
'Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.',
'For the developers\' and authors\' protection, the GPL clearly explains that there is no warranty for this free software. For both users\' and authors\' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.',
'Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users\' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.',
]

build() {
Column({ space: 16 }) {
// 标题部分(不滚动,保持固定)
Flex() {
Column() {
Image($r("app.media.return_left"))
Expand Down Expand Up @@ -38,13 +52,34 @@ struct OpenSourceLicensePage {
.height(48)
.width("100%")

Row(){
Text("GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007\nCopyright (C) 2007 Free Software Foundation, Inc. https://fsf.org/ Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.\nPreamble")
}.width("100%").margin({top:12})
// 可滚动的内容区域
Scroll() {
Column() {
ForEach(this.rowsData, (item: string) => {
Row() {
Text(item)
.lineHeight(22)
.font({
family: "PingFang SC",
size: 14,
style: FontStyle.Normal,
weight: 400,
})
}.width("100%")
.margin({ top: 12, bottom: 20 })
})
}
.width("100%")
}
.scrollable(ScrollDirection.Vertical) // 设置为垂直滚动
.scrollBar(BarState.Off)
.edgeEffect(EdgeEffect.None)
.height("100%")
.margin({ bottom: 60 })
}
.height("100%")
.height("100%") // 设置外部 Column 高度为 100%
.padding({
top:this.topRectHeight,
top: this.topRectHeight,
left: 20,
right: 20
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,15 @@ import { router } from '@kit.ArkUI';
struct PrivacyAgreementPage {
@StorageLink('bottomRectHeight') bottomRectHeight: number = 0
@StorageLink('topRectHeight') topRectHeight: number = 0
@State rowsData: Array<string> = [
'本应用没有服务端,不收集任何用户信息,只采用了Google Firebase收集崩溃报告和性能报告. ',
'本应用网络同步和备份采用webDav协议,由用户自己提供同步服务.',
'存储权限用来打开本地文件和本地备份恢复. 其它一些权限是Google Firebase需要.',
'本应用为开源软件,内置js引擎,因书源调用js发生的任何问题由用户自行承担.'
]
build() {
Column({ space: 16 }) {
// 标题部分(不滚动,保持固定)
Flex() {
Column() {
Image($r("app.media.return_left"))
Expand Down Expand Up @@ -37,26 +44,34 @@ struct PrivacyAgreementPage {
.height(48)
.width("100%")

Row(){
//todo 每个段落这里都要加一个点
Text("本应用没有服务端,不收集任何用户信息,只采用了Google Firebase收集崩溃报告和性能报告")
}.width("100%")
Row(){
Text("本应用网络同步和备份采用webDav协议,由用户自己提供同步服务")
}.width("100%")
Row(){
Text("存储权限用来打开本地文件和本地备份恢复")
}.width("100%")
Row(){
Text("其它一些权限是Google Firebase需要")
}.width("100%")
Row(){
Text("本应用为开源软件,内置js引擎,因书源调用js发生的任何问题由用户自行承担")
}.width("100%")
// 内容区域
Column() {
ForEach(this.rowsData, (item: string) => {
Row() {
// 黑色原点
Column()
.width(4) // 设置宽度
.height(4) // 设置高度
.backgroundColor(0x000000) // 黑色背景
.borderRadius(2) // 半径设置为宽高的一半,形成圆形
.margin({ right: 8, top: -20 }) // 与文字的间隔
Text(item)
.lineHeight(22)
.font({
family: "PingFang SC",
size: 14,
style: FontStyle.Normal,
weight: 400,
})
}.width("100%")
.margin({ top: 12 })
})
}
.width("100%")
}
.height("100%")
.height("100%") // 设置外部 Column 高度为 100%
.padding({
top:this.topRectHeight,
top: this.topRectHeight,
left: 20,
right: 20
})
Expand Down

0 comments on commit ed92e1f

Please sign in to comment.