Skip to content

Commit

Permalink
Merge pull request #8 from Sol-Sanctum/cicd
Browse files Browse the repository at this point in the history
Merging other v0.0.6 content
  • Loading branch information
alienc0der authored Jan 17, 2023
2 parents 939d9dd + ab4cb84 commit a22a314
Show file tree
Hide file tree
Showing 18 changed files with 326 additions and 147 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/syrius_builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,26 @@ jobs:
needs: [build-macos, build-windows, build-linux]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set variables
run: |
SYRIUS="v$(cat pubspec.yaml | grep version | sed 's/version://' | xargs)"
echo "Syrius Version: $SYRIUS"
echo "SYRIUS_VERSION=$SYRIUS" >> $GITHUB_ENV
GOZENON=$(curl -s https://raw.githubusercontent.com/zenon-network/go-zenon/master/metadata/version.go | grep Version | awk -F '"' '{print $2}')
echo "Go-Zenon Version: $GOZENON"
BODY=$(cat <<EOF
Syrius $SYRIUS features the pre-release version of the [go-zenon](https://github.com/zenon-network/go-zenon) $GOZENON full node.
syrius for Windows requires Microsoft Visual C++ to be installed.
[Download Microsoft Visual C++](https://aka.ms/vs/16/release/vc_redist.x64.exe)
EOF
)
echo "$BODY"
echo "BODY<<EOFMARKER" >> ${GITHUB_ENV}
echo "${BODY}" >> ${GITHUB_ENV}
echo "EOFMARKER" >> ${GITHUB_ENV}
- name: Prepare releases directory
run: mkdir releases
- name: Download macOS artifacts
Expand All @@ -129,7 +149,8 @@ jobs:
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: releases/*
tag: v0.0.6-alpha
release_name: ${{ env.SYRIUS_VERSION }}
tag: ${{ env.SYRIUS_VERSION }}-alphanet
file_glob: true
overwrite: true
body: ""
body: ${{ env.BODY }}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2021 The Zenon developers
Copyright (c) 2023 The Zenon developers

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ Currently supported `<os>`: `windows`, `macos`, `linux`
git clone https://github.com/zenon-network/syrius.git
flutter pub get
flutter build <os>
flutter build <os> --release
flutter run --release
```

## Contributing
Expand Down
39 changes: 22 additions & 17 deletions lib/utils/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -135,24 +135,29 @@ const int kWalletNotificationHiveTypeId = 100;
const int kNotificationTypeEnumHiveTypeId = 101;

// Community links
const String kWebsite = 'zenon.network';
const String kCommunityWebsite = 'zenon.community';
const String kOrgCommunityWebsite = 'zenon.org';
const String kTwitter = 'twitter.com/Zenon_Network';
const String kTelegram = 't.me/joinchat/MLyPehLIbJj1nw1XOOOltg';
const String kGithub = 'github.com/zenon-network';
const String kExplorer = 'explorer.zenon.network';
const String kScraper = 'zenonscraper.com';
const String kWiki = 'github.com/zenon-network/znn-wiki';
const String kCommunityWiki = 'zenon.wiki';
const String kTools = 'zenon.tools';
const String kZnnController = 'github.com/zenon-network/znn_controller_dart';
const String kWebsite = 'https://zenon.network';
const String kOrgCommunityWebsite = 'https://zenon.org';
const String kOrgCommunityForum = 'https://forum.zenon.org';
const String kHubCommunityWebsite = 'https://zenonhub.org';
const String kTwitter = 'https://twitter.com/Zenon_Network';
const String kTelegram = 'https://t.me/zenonnetwork';
const String kGithub = 'https://github.com/zenon-network';
const String kExplorer = 'https://explorer.zenon.network';
const String kScraper = 'https://zenonscraper.com';
const String kHubExplorer = 'https://www.zenonhub.org/explorer';
const String kWiki = 'https://wiki.zenon.network';
const String kCommunityWiki = 'https://docs.zenon.wiki';
const String kOrgCommunityWiki = 'https://docs.zenon.org';
const String kTools = 'https://zenon.tools';
const String kWhitepaper =
'https://github.com/zenon-network/zenon.network/releases/download/whitepaper/whitepaper.pdf';
const String kZnnController = 'https://github.com/zenon-network/znn_controller_dart';
const String kBitcoinTalk =
'bitcointalk.org/index.php?topic=5279643.msg55303681#msg55303681';
const String kDiscord = 'discord.gg/VE2ENBGPNa';
const String kMedium = 'medium.com/@zenon.network';
const String kReddit = 'reddit.com/r/Zenon_Network';
const String kYoutube = 'youtube.com/channel/UCDb8ZtqBt6l5l4HugCnJwhQ';
'https://bitcointalk.org/index.php?topic=5279643.msg55303681#msg55303681';
const String kDiscord = 'https://discord.gg/zenonnetwork';
const String kMedium = 'https://medium.com/@zenon.network';
const String kReddit = 'https://reddit.com/r/Zenon_Network';
const String kYoutube = 'https://youtube.com/channel/UCDb8ZtqBt6l5l4HugCnJwhQ';

// Bridge links
const String kJoinLiquidityProgramUrl =
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/modular_widgets/help_widgets/about_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class AboutCardState extends State<AboutCard> {
_getGenericTextExpandedChild(kWalletVersion),
),
CustomExpandablePanel(
'Zenon Node chain and network identifiers',
'Zenon Node chain identifier',
_getGenericTextExpandedChild(
generalStats.frontierMomentum.chainIdentifier.toString()),
),
Expand Down
115 changes: 82 additions & 33 deletions lib/widgets/modular_widgets/help_widgets/community_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,18 @@ class CommunityCard extends StatelessWidget {
'Websites',
_getWebsitesExpandableChild(context),
),
CustomExpandablePanel(
'Explorers',
_getExplorersExpandableChild(context),
),
CustomExpandablePanel(
'Social Media',
_getSocialMediaExpandableChild(context),
),
CustomExpandablePanel(
'Documentation',
_getDocumentationExpandableChild(context),
),
],
);
}
Expand All @@ -39,51 +47,59 @@ class CommunityCard extends StatelessWidget {
shrinkWrap: true,
children: [
_getListViewChild(
iconData: MaterialCommunityIcons.web,
iconData: MaterialCommunityIcons.home,
title: 'Zenon Network',
url: kWebsite,
context: context,
),
_getListViewChild(
iconData: Icons.explore,
title: 'Zenon Explorer',
url: kExplorer,
iconData: MaterialCommunityIcons.forum,
title: 'ZenonORG Community Forum',
url: kOrgCommunityForum,
context: context,
),
_getListViewChild(
iconData: MaterialCommunityIcons.cube,
title: 'Zenonscraper',
url: kScraper,
iconData: MaterialCommunityIcons.tools,
title: 'Zenon Tools',
url: kTools,
context: context,
),
_getListViewChild(
iconData: MaterialCommunityIcons.book_multiple,
title: 'Zenon Wiki',
url: kWiki,
iconData: MaterialCommunityIcons.web,
title: 'ZenonORG Community',
url: kOrgCommunityWebsite,
context: context,
),
_getListViewChild(
iconData: MaterialCommunityIcons.book,
title: 'Zenon Community Wiki',
url: kCommunityWiki,
iconData: MaterialCommunityIcons.lan,
title: 'Zenon Hub',
url: kHubCommunityWebsite,
context: context,
),
],
);
}

Widget _getExplorersExpandableChild(BuildContext context) {
return ListView(
shrinkWrap: true,
children: [
_getListViewChild(
iconData: MaterialCommunityIcons.tools,
title: 'Zenon Tools',
url: kTools,
iconData: Icons.explore,
title: 'Zenon Explorer',
url: kExplorer,
context: context,
),
_getListViewChild(
iconData: MaterialCommunityIcons.human_greeting,
title: 'Zenon Community',
url: kCommunityWebsite,
iconData: MaterialCommunityIcons.wan,
title: 'Zenon Hub Explorer',
url: kHubExplorer,
context: context,
),
_getListViewChild(
iconData: MaterialCommunityIcons.web_box,
title: 'ZenonORG Community',
url: kOrgCommunityWebsite,
iconData: MaterialCommunityIcons.magnify_scan,
title: 'Zenonscraper',
url: kScraper,
context: context,
),
],
Expand All @@ -95,15 +111,15 @@ class CommunityCard extends StatelessWidget {
shrinkWrap: true,
children: [
_getListViewChild(
iconData: SimpleLineIcons.social_twitter,
iconData: MaterialCommunityIcons.twitter,
title: 'Zenon Twitter',
url: kTwitter,
context: context,
),
_getListViewChild(
iconData: Icons.article,
title: 'Zenon Medium',
url: kMedium,
iconData: MaterialCommunityIcons.discord,
title: 'Zenon Discord',
url: kDiscord,
context: context,
),
_getListViewChild(
Expand All @@ -113,7 +129,13 @@ class CommunityCard extends StatelessWidget {
context: context,
),
_getListViewChild(
iconData: SimpleLineIcons.social_github,
iconData: Icons.article,
title: 'Zenon Medium',
url: kMedium,
context: context,
),
_getListViewChild(
iconData: MaterialCommunityIcons.github,
title: 'Zenon Github',
url: kGithub,
context: context,
Expand All @@ -124,12 +146,7 @@ class CommunityCard extends StatelessWidget {
url: kBitcoinTalk,
context: context,
),
_getListViewChild(
iconData: MaterialCommunityIcons.discord,
title: 'Zenon Discord',
url: kDiscord,
context: context,
),

_getListViewChild(
iconData: MaterialCommunityIcons.reddit,
title: 'Zenon Reddit',
Expand All @@ -146,6 +163,38 @@ class CommunityCard extends StatelessWidget {
);
}

Widget _getDocumentationExpandableChild(BuildContext context) {
return ListView(
shrinkWrap: true,
children: [
_getListViewChild(
iconData: MaterialCommunityIcons.book_open_page_variant,
title: 'Zenon Wiki',
url: kWiki,
context: context,
),
_getListViewChild(
iconData: MaterialCommunityIcons.book,
title: 'Zenon Community Wiki',
url: kCommunityWiki,
context: context,
),
_getListViewChild(
iconData: MaterialCommunityIcons.book_multiple,
title: 'ZenonORG Community Wiki',
url: kOrgCommunityWiki,
context: context,
),
_getListViewChild(
iconData: MaterialCommunityIcons.file_document,
title: 'Zenon Whitepaper',
url: kWhitepaper,
context: context,
),
],
);
}

Widget _getListViewChild({
required IconData iconData,
required String title,
Expand Down
Loading

0 comments on commit a22a314

Please sign in to comment.