forked from bitdust-io/p2p-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
125 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.15.241 | ||
1.17.243 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<AboutScreen>: | ||
|
||
ScreenContainerLayout: | ||
|
||
TopEmptyScreenSpace: | ||
|
||
AppScreenLayout: | ||
|
||
AutomatShortStatusPanel: | ||
id: state_panel | ||
size_hint_x: 1 | ||
statuses: root.get_statuses() | ||
|
||
VerticalScrollView: | ||
|
||
VerticalWithPaddingLayout: | ||
size_hint: None, None | ||
pos_hint: {"top": 1} | ||
height: self.minimum_height | ||
width: root.width - app.scroll_bar_width | ||
|
||
VFixedEmptySpace: | ||
|
||
Image: | ||
size_hint: None, None | ||
width: dp(300) | ||
height: dp(72) | ||
pos_hint: {"left": 1, "top": 1} | ||
allow_stretch: True | ||
keep_ratio: True | ||
source: "./src/images/bitdust_logo.png" | ||
|
||
MarkupLabel: | ||
id: about_text | ||
size_hint_y: None | ||
text_size: self.width, None | ||
height: self.texture_size[1] | ||
color: app.color_black | ||
text: "" | ||
on_ref_press: root.on_about_text_ref_pressed(*args) | ||
|
||
BottomEmptyScreenSpace: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import webbrowser | ||
|
||
from components import screen | ||
|
||
#------------------------------------------------------------------------------ | ||
|
||
_Debug = False | ||
|
||
#------------------------------------------------------------------------------ | ||
|
||
about_temlate_text = """ | ||
BitDust is an [u][color=#0000ff][ref=github_link]open-source[/ref][/color][/u] project of a worldwide distributed network that is aiming to provide online storage, safe personal communications and full control of your own private data. | ||
The BitDist p2p-app is a peer-to-peer application which provides secure distributed data storage and safe private communications. | ||
This is a story about respecting the digital freedoms of all people on this planet and taking full control over our own personal data that we send and receive over the Internet. | ||
We are currently with a small team primarily focusing on the development and supporting the BitDust project and community. | ||
More about the project you can read on [u][color=#0000ff][ref=web_site_link]www.bitdust.io[/ref][/color][/u]. | ||
Also you can give us your feedback about the BitDust p2p-app or report a bug directly via that [u][color=#0000ff][ref=feedback_link]link[/ref][/color][/u]. | ||
""" | ||
|
||
#------------------------------------------------------------------------------ | ||
|
||
class AboutScreen(screen.AppScreen): | ||
|
||
def get_title(self): | ||
return 'about' | ||
|
||
def get_statuses(self): | ||
return { | ||
None: 'main process is not started yet', | ||
'AT_STARTUP': 'starting the application', | ||
'LOCAL': 'initializing local environment', | ||
'MODULES': 'starting sub-modules', | ||
'INSTALL': 'installing application', | ||
'READY': 'application is ready', | ||
'STOPPING': 'application is shutting down', | ||
'SERVICES': 'starting network services', | ||
'INTERFACES': 'starting application interfaces', | ||
'EXIT': 'application is closed', | ||
} | ||
|
||
def on_enter(self, *args): | ||
self.ids.state_panel.attach(automat_id='initializer') | ||
self.ids.about_text.text = about_temlate_text.format() | ||
|
||
def on_leave(self, *args): | ||
self.ids.state_panel.release() | ||
|
||
def on_about_text_ref_pressed(self, *args): | ||
if _Debug: | ||
print('AboutScreen.on_about_text_ref_pressed', args) | ||
if args[1] == 'github_link': | ||
webbrowser.open('https://github.com/bitdust-io') | ||
elif args[1] == 'web_site_link': | ||
webbrowser.open('https://bitdust.io') | ||
elif args[1] == 'feedback_link': | ||
webbrowser.open('https://forms.gle/RkJW3L7NTamZ5K8m6') |