mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-22 23:23:43 +08:00
资讯流增加 logo
This commit is contained in:
parent
c661efb599
commit
4f3dc05667
1
assets/tieba.svg
Normal file
1
assets/tieba.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1708140457383" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6396" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M661.97052599 29.36524462c-0.6598578-6.23722732 5.09033162-11.68890963 11.26471531-10.91907551 31.50035457 0 63.01642003-0.0942654 94.51677463 0.04713271 5.8287439-0.40848339 10.73054471 5.05890982 10.24350679 10.76196651 0.10997631 24.55613675-0.01571091 49.12798439 0.06284361 73.69983203 80.32983187 0.01571091 160.65966371-0.01571091 240.98949557 0.01571093 6.20580551-0.7069905 11.65748782 5.02748801 10.90336463 11.18616083 0.03142179 30.93476217 0 61.86952433 0.03142179 92.80428647 0.0942654 3.36213261-0.54988149 7.03848323-3.2521563 9.31656371-3.80203779 3.56637429-9.37940732 2.45090041-14.07696643 2.65514212-78.20886036-0.06284359-156.40200981-0.03142179-234.61087017-0.01571089-0.01571091 82.84357586-0.01571091 165.68715174 0.01571091 248.53072756 79.24577975 0.01571091 158.50727041-0.01571091 237.76876107 0.01571091 6.20580551-0.7069905 11.56322243 5.12175341 10.82481013 11.21758262-0.01571091 141.97940358 0 283.94309627-0.01571091 425.92249984 0.0942654 23.99054435-7.49409931 47.93395599-21.50822216 67.41547205-16.08796163 22.70225055-40.61267657 39.26153918-67.71397912 45.59303189-15.97798533 4.0219904-32.53727397 3.06362551-48.8451882 3.17360181H574.28799292c-3.3149999 0.0471327-6.89708512-0.628436-9.14374381-3.26786722-3.91201411-4.24194301-2.34092411-10.40061582-2.6394312-15.58521284 0.01571091-172.28572974 0.0471327-344.55574859-0.01571091-516.84147832 0.23566351-4.77611362-1.03691939-10.36919402 2.48232221-14.26549722 2.23094781-2.82796201 5.95443111-3.55066341 9.3794073-3.39355439 29.19085227 0.03142179 58.39741541 0.01571091 87.60397858 0.01571087 0.01571091-146.0328158-0.01571091-292.06563157 0.0157109-438.08273647m16.54357773 875.34850616c77.37618265 0.03142179 154.7523653 0.01571091 232.12854795 0 0.01571091-107.1012055 0.01571091-214.20241102 0-321.30361654-77.34476085-0.0785545-154.67381079 0.0785545-232.01857165-0.0942654-0.26708529 107.13262732-0.0471327 214.26525462-0.1099763 321.39788194zM31.66492766 64.84045691c21.24113684-27.55691865 55.42805531-44.6503779 90.25912067-44.6817997 118.39734265-0.0942654 236.77897437-0.0471327 355.176317-0.0314218 4.8546681-0.43990521 9.72504711 3.0322037 10.54201392 7.90258273 0.56559241 4.60329372 0.25137441 9.23800921 0.2985071 13.85701382v711.86088041c0.94265401 6.37862542-4.49331743 12.47445462-10.96620822 11.86172953-31.43751097 0.0471327-62.87502193 0.0471327-94.3125329 0-5.7030567 0.45561611-11.07618453-4.41476289-10.7619665-10.19637412-0.0942654-206.44122641 0.01571091-412.89816372-0.04713269-619.33939013-82.85928676-0.03142179-165.71857354-0.03142179-248.5778603 0-0.03142179 202.19928339 0 404.39856679-0.0157109 606.61356111-0.06284359 4.9489335 0.29850709 9.94499971-0.28279619 14.89393323-0.7384123 4.87037901-5.59308042 8.27964432-10.40061584 8.02826991-31.50035457 0.06284359-63.01642003 0.0471327-94.51677459 0-5.71876762 0.47132701-11.20187171-4.3676302-10.82481012-10.21208503-0.0942654-205.87563401-0.0471327-411.76697892-0.03142181-617.64261292-0.43990521-26.15864854 8.29535522-52.33300801 24.46187137-72.91428704z" fill="#429efe" p-id="6397"></path><path d="M189.54376206 213.1670641c-0.58130331-6.00156381 4.82324631-11.43753521 10.84052102-10.79338831 31.45322186-0.03142179 62.92215463-0.03142179 94.39108741 0 4.79182451-0.42419429 9.64649262 2.9693601 10.51059209 7.7611846 0.61272509 4.6818482 0.26708529 9.42654002 0.314218 14.13981003v446.11100639c0.14139811 23.14215575-0.94265401 46.47284229 3.06362551 69.37933455 7.35270122 47.3997854 30.98189486 92.83570828 68.45239145 123.29914343 29.59933565 24.39902774 66.70848154 38.69594677 104.6345942 43.12642058 4.9803553-0.36135071 6.41004721 5.34170603 6.19009461 9.28514192 0.03142179 30.91905125-0.03142179 61.83810252 0.0314218 92.75715379 0.23566351 4.17909942-0.7698341 8.71954951-4.2733648 11.39040252-4.43047379 4.17909942-10.84052103 2.0109952-16.15080523 1.57108999-56.05649132-6.6771325-110.07056561-29.34796125-154.06108571-64.74461902-25.20028364-20.06281934-47.11698919-44.08478548-65.71869484-70.35341033-1.28829381 0.7541232-2.0267061 2.1209715-2.93793831 3.28357809-33.98267678 47.87111239-80.69118256 87.08551887-134.89378765 110.07056564-28.67239257 12.16023662-59.23009311 19.99997573-90.24340979 22.85935952-6.441469 1.28829381-12.49016551-4.39905201-12.42732193-10.7462556-0.2042417-32.00310336-0.01571091-64.02191763-0.09426538-96.02502102-0.3927725-3.55066341 1.17831749-6.6928434 3.23644538-9.42653998 49.00229719-6.37862542 95.20805418-31.39037827 127.66677366-68.60950046 32.44300857-36.62210797 51.04471421-85.12165636 51.43748671-134.04539905 0.0471327-163.44049302-0.01571091-326.86527516 0.0314218-490.29005728z" fill="#429efe" p-id="6398"></path></svg>
|
After Width: | Height: | Size: 4.9 KiB |
@ -9,7 +9,8 @@ class AnalyticsApi {
|
|||||||
if (kDebugMode) return;
|
if (kDebugMode) return;
|
||||||
dPrint("AnalyticsApi.touch === $key start");
|
dPrint("AnalyticsApi.touch === $key start");
|
||||||
try {
|
try {
|
||||||
final r = await RSHttp.postData("${URLConf.xkeycApiHome}/analytics/$key",
|
final r = await RSHttp.postData(
|
||||||
|
"${URLConf.analyticsApiHome}/analytics/$key",
|
||||||
data: null);
|
data: null);
|
||||||
dPrint("AnalyticsApi.touch === $key over statusCode == ${r.statusCode}");
|
dPrint("AnalyticsApi.touch === $key over statusCode == ${r.statusCode}");
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -6,7 +6,7 @@ class URLConf {
|
|||||||
/// HOME API
|
/// HOME API
|
||||||
static String gitApiHome = "https://git.sctoolbox.sccsgo.com";
|
static String gitApiHome = "https://git.sctoolbox.sccsgo.com";
|
||||||
static String rssApiHome = "https://rss.sctoolbox.sccsgo.com";
|
static String rssApiHome = "https://rss.sctoolbox.sccsgo.com";
|
||||||
static const String xkeycApiHome = "https://sctoolbox.xkeyc.com";
|
static const String analyticsApiHome = "https://scbox.org";
|
||||||
|
|
||||||
static bool isUrlCheckPass = false;
|
static bool isUrlCheckPass = false;
|
||||||
|
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
import 'package:card_swiper/card_swiper.dart';
|
import 'package:card_swiper/card_swiper.dart';
|
||||||
|
import 'package:fluent_ui/fluent_ui.dart';
|
||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:flutter_staggered_grid_view/flutter_staggered_grid_view.dart';
|
import 'package:flutter_staggered_grid_view/flutter_staggered_grid_view.dart';
|
||||||
import 'package:flutter_svg/flutter_svg.dart';
|
import 'package:flutter_svg/flutter_svg.dart';
|
||||||
import 'package:flutter_tilt/flutter_tilt.dart';
|
import 'package:flutter_tilt/flutter_tilt.dart';
|
||||||
@ -374,7 +376,8 @@ class HomeUI extends BaseUI<HomeUIModel> {
|
|||||||
left: 12, right: 12, top: 4, bottom: 4),
|
left: 12, right: 12, top: 4, bottom: 4),
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
const Text("· "),
|
getRssIcon(item.link ?? ""),
|
||||||
|
const SizedBox(width: 6),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Text(
|
child: Text(
|
||||||
"${model.handleTitle(item.title)}",
|
"${model.handleTitle(item.title)}",
|
||||||
@ -398,6 +401,22 @@ class HomeUI extends BaseUI<HomeUIModel> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Widget getRssIcon(String url) {
|
||||||
|
if (url.startsWith("https://tieba.baidu.com")) {
|
||||||
|
return SvgPicture.asset("assets/tieba.svg", width: 14, height: 14);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (url.startsWith("https://www.bilibili.com")) {
|
||||||
|
return const FaIcon(
|
||||||
|
FontAwesomeIcons.bilibili,
|
||||||
|
size: 14,
|
||||||
|
color: Color.fromRGBO(0, 161, 214, 1),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return const FaIcon(FontAwesomeIcons.rss, size: 14);
|
||||||
|
}
|
||||||
|
|
||||||
Widget makeIndexActionLists(BuildContext context, HomeUIModel model) {
|
Widget makeIndexActionLists(BuildContext context, HomeUIModel model) {
|
||||||
final items = [
|
final items = [
|
||||||
_HomeItemData("auto_check", "一键诊断", "一键诊断星际公民常见问题",
|
_HomeItemData("auto_check", "一键诊断", "一键诊断星际公民常见问题",
|
||||||
@ -514,6 +533,9 @@ class HomeUI extends BaseUI<HomeUIModel> {
|
|||||||
),
|
),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(8.0),
|
||||||
|
child: Row(
|
||||||
|
children: [
|
||||||
|
Expanded(
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
@ -532,12 +554,22 @@ class HomeUI extends BaseUI<HomeUIModel> {
|
|||||||
child: Text(
|
child: Text(
|
||||||
info,
|
info,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 12, color: Colors.white.withOpacity(.6)),
|
fontSize: 12,
|
||||||
|
color: Colors.white.withOpacity(.6)),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
const SizedBox(width: 12),
|
||||||
|
Icon(
|
||||||
|
FluentIcons.chevron_right,
|
||||||
|
size: 14,
|
||||||
|
color: Colors.white.withOpacity(.6),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
@ -658,6 +690,12 @@ class HomeUI extends BaseUI<HomeUIModel> {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
const SizedBox(width: 12),
|
||||||
|
Icon(
|
||||||
|
FluentIcons.chevron_right,
|
||||||
|
size: 14,
|
||||||
|
color: Colors.white.withOpacity(.6),
|
||||||
|
)
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user