Compare commits

..

No commits in common. "f0b71b376295a839ba3186c09167afcc202996c2" and "2cd45c4a6c0e38d988063f8818ce29513b5a1a19" have entirely different histories.

62 changed files with 6512 additions and 559 deletions

12
.editorconfig Normal file
View file

@ -0,0 +1,12 @@
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
indent_style = tab
# indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = false

495
.gitignore vendored
View file

@ -1,9 +1,488 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from `dotnet new gitignore`
# dotenv files
.env
# User-specific files
*.rsuser
*.suo
*.user
*.userosscache
*.sln.docstates
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
# Mono auto generated files
mono_crash.*
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
[Ww][Ii][Nn]32/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
[Ll]ogs/
# Visual Studio 2015/2017 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
# Visual Studio 2017 auto generated files
Generated\ Files/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# NUnit
*.VisualState.xml
TestResult.xml
nunit-*.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
# Benchmark Results
BenchmarkDotNet.Artifacts/
# .NET
project.lock.json
project.fragment.lock.json
artifacts/
# Tye
.tye/
# ASP.NET Scaffolding
ScaffoldingReadMe.txt
# StyleCop
StyleCopReport.xml
# Files built by Visual Studio
*_i.c
*_p.c
*_h.h
*.ilk
*.meta
*.obj
*.iobj
*.pch
*.pdb
*.ipdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*_wpftmp.csproj
*.log
*.tlog
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb
# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap
# Visual Studio Trace Files
*.e2e
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# AxoCover is a Code Coverage Tool
.axoCover/*
!.axoCover/settings.json
# Coverlet is a free, cross platform Code Coverage Tool
coverage*.json
coverage*.xml
coverage*.info
# Visual Studio code coverage results
*.coverage
*.coveragexml
# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*
# MightyMoose
*.mm.*
AutoTest.Net/
# Web workbench (sass)
.sass-cache/
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# Note: Comment the next line if you want to checkin your web deploy settings,
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/
# NuGet Packages
*.nupkg
# NuGet Symbol Packages
*.snupkg
# The packages folder can be ignored because of Package Restore
**/[Pp]ackages/*
# except build/, which is used as an MSBuild target.
!**/[Pp]ackages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/[Pp]ackages/repositories.config
# NuGet v3's project.json files produces more ignorable files
*.nuget.props
*.nuget.targets
# Microsoft Azure Build Output
csx/
*.build.csdef
# Microsoft Azure Emulator
ecf/
rcf/
# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt
*.appx
*.appxbundle
*.appxupload
# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!?*.[Cc]ache/
# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
orleans.codegen.cs
# Including strong name files can present a security risk
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
#*.snk
# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
ServiceFabricBackup/
*.rptproj.bak
# SQL Server files
*.mdf
*.ldf
*.ndf
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
*.rptproj.rsuser
*- [Bb]ackup.rdl
*- [Bb]ackup ([0-9]).rdl
*- [Bb]ackup ([0-9][0-9]).rdl
# Microsoft Fakes
FakesAssemblies/
# GhostDoc plugin setting file
*.GhostDoc.xml
# Node.js Tools for Visual Studio
.ntvs_analysis.dat
node_modules/
# Visual Studio 6 build log
*.plg
# Visual Studio 6 workspace options file
*.opt
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw
# Visual Studio 6 auto-generated project file (contains which files were open etc.)
*.vbp
# Visual Studio 6 workspace and project file (working project files containing files to include in project)
*.dsw
*.dsp
# Visual Studio 6 technical files
*.ncb
*.aps
# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
# Paket dependency manager
.paket/paket.exe
paket-files/
# FAKE - F# Make
.fake/
# CodeRush personal settings
.cr/personal
# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc
# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config
# Tabs Studio
*.tss
# Telerik's JustMock configuration file
*.jmconfig
# BizTalk build output
*.btp.cs
*.btm.cs
*.odx.cs
*.xsd.cs
# OpenCover UI analysis results
OpenCover/
# Azure Stream Analytics local run output
ASALocalRun/
# MSBuild Binary and Structured Log
*.binlog
# NVidia Nsight GPU debugger configuration file
*.nvuser
# MFractors (Xamarin productivity tool) working folder
.mfractor/
# Local History for Visual Studio
.localhistory/
# Visual Studio History (VSHistory) files
.vshistory/
# BeatPulse healthcheck temp database
healthchecksdb
# Backup folder for Package Reference Convert tool in Visual Studio 2017
MigrationBackup/
# Ionide (cross platform F# VS Code tools) working folder
.ionide/
# Fody - auto-generated XML schema
FodyWeavers.xsd
# VS Code files for those working on multiple tools
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace
# Local History for Visual Studio Code
.history/
# Windows Installer files from build outputs
*.cab
*.msi
*.msix
*.msm
*.msp
# JetBrains Rider
*.sln.iml
.idea
##
## Visual studio for Mac
##
# globs
Makefile.in
*.userprefs
*.usertasks
config.make
config.status
aclocal.m4
install-sh
autom4te.cache/
*.tar.gz
tarballs/
test-results/
# Mac bundle stuff
*.dmg
*.app
# content below from: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore
# General
.DS_Store .DS_Store
/.build .AppleDouble
/Packages .LSOverride
/*.xcodeproj
xcuserdata/ # Icon must end with two \r
DerivedData/ Icon
.swiftpm/config/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc # Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
# content below from: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore
# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
# Folder config file
[Dd]esktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp
# Windows shortcuts
*.lnk
# Vim temporary swap files
*.swp
## Extra
dist/

11
.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch and Debug Standalone Blazor WebAssembly App",
"type": "blazorwasm",
"request": "launch",
"cwd": "${workspaceFolder}/src"
}
]
}

8
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,8 @@
{
"files.exclude": {
"**/*.rpyc": true,
"**/*.rpa": true,
"**/*.rpymc": true,
"**/cache/": true
}
}

57
.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,57 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "dotnet build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/src/AmtrakStatus.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary;ForceNoAlign"
],
"problemMatcher": "$msCompile"
},
{
"label": "dotnet publish",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/src/AmtrakStatus.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary;ForceNoAlign"
],
"problemMatcher": "$msCompile"
},
{
"label": "dotnet watch",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"run",
"--project",
"${workspaceFolder}/src/AmtrakStatus.csproj"
],
"problemMatcher": "$msCompile"
},
{
"type": "cargo",
"command": "tauri",
"isBackground": true,
"args": ["dev"],
"group": "build",
"label": "tauri dev"
},
{
"type": "cargo",
"command": "tauri",
"isBackground": true,
"args": ["build"],
"group": "build",
"label": "tauri build"
}
]
}

3
AmtrakStatus.slnx Normal file
View file

@ -0,0 +1,3 @@
<Solution>
<Project Path="src/AmtrakStatus.csproj" />
</Solution>

View file

@ -1,16 +0,0 @@
format_version = 2
[apps.AmtrakStatus]
identifier = 'com.example.AmtrakStatus'
product = 'AmtrakStatus'
version = '0.1.0'
icon = "./assets/icon.png"
[[apps.AmtrakStatus.overlays]]
condition = "platform(macOS)"
icon = "./assets/icon.icns"
[[apps.AmtrakStatus.overlays]]
condition = "platform(macCatalyst)"
icon = "./assets/icon.icns"

291
LICENSE-EUPL Normal file
View file

@ -0,0 +1,291 @@
EUROPEAN UNION PUBLIC LICENCE v. 1.2
EUPL © the European Union 2007, 2016
This European Union Public Licence (the ‘EUPL’) applies to the Work (as
defined below) which is provided under the terms of this Licence. Any use of
the Work, other than as authorised under this Licence is prohibited (to the
extent such use is covered by a right of the copyright holder of the Work).
The Work is provided under the terms of this Licence when the Licensor (as
defined below) has placed the following notice immediately following the
copyright notice for the Work:
Licensed under the EUPL
or has expressed by any other means his willingness to license under the EUPL.
1. Definitions
In this Licence, the following terms have the following meaning:
- ‘The Licence’: this Licence.
- ‘The Original Work’: the work or software distributed or communicated by the
Licensor under this Licence, available as Source Code and also as Executable
Code as the case may be.
- ‘Derivative Works’: the works or software that could be created by the
Licensee, based upon the Original Work or modifications thereof. This
Licence does not define the extent of modification or dependence on the
Original Work required in order to classify a work as a Derivative Work;
this extent is determined by copyright law applicable in the country
mentioned in Article 15.
- ‘The Work’: the Original Work or its Derivative Works.
- ‘The Source Code’: the human-readable form of the Work which is the most
convenient for people to study and modify.
- ‘The Executable Code’: any code which has generally been compiled and which
is meant to be interpreted by a computer as a program.
- ‘The Licensor’: the natural or legal person that distributes or communicates
the Work under the Licence.
- ‘Contributor(s)’: any natural or legal person who modifies the Work under
the Licence, or otherwise contributes to the creation of a Derivative Work.
- ‘The Licensee’ or ‘You’: any natural or legal person who makes any usage of
the Work under the terms of the Licence.
- ‘Distribution’ or ‘Communication’: any act of selling, giving, lending,
renting, distributing, communicating, transmitting, or otherwise making
available, online or offline, copies of the Work or providing access to its
essential functionalities at the disposal of any other natural or legal
person.
2. Scope of the rights granted by the Licence
The Licensor hereby grants You a worldwide, royalty-free, non-exclusive,
sublicensable licence to do the following, for the duration of copyright
vested in the Original Work:
- use the Work in any circumstance and for all usage,
- reproduce the Work,
- modify the Work, and make Derivative Works based upon the Work,
- communicate to the public, including the right to make available or display
the Work or copies thereof to the public and perform publicly, as the case
may be, the Work,
- distribute the Work or copies thereof,
- lend and rent the Work or copies thereof,
- sublicense rights in the Work or copies thereof.
Those rights can be exercised on any media, supports and formats, whether now
known or later invented, as far as the applicable law permits so.
In the countries where moral rights apply, the Licensor waives his right to
exercise his moral right to the extent allowed by law in order to make
effective the licence of the economic rights here above listed.
The Licensor grants to the Licensee royalty-free, non-exclusive usage rights
to any patents held by the Licensor, to the extent necessary to make use of
the rights granted on the Work under this Licence.
3. Communication of the Source Code
The Licensor may provide the Work either in its Source Code form, or as
Executable Code. If the Work is provided as Executable Code, the Licensor
provides in addition a machine-readable copy of the Source Code of the Work
along with each copy of the Work that the Licensor distributes or indicates,
in a notice following the copyright notice attached to the Work, a repository
where the Source Code is easily and freely accessible for as long as the
Licensor continues to distribute or communicate the Work.
4. Limitations on copyright
Nothing in this Licence is intended to deprive the Licensee of the benefits
from any exception or limitation to the exclusive rights of the rights owners
in the Work, of the exhaustion of those rights or of other applicable
limitations thereto.
5. Obligations of the Licensee
The grant of the rights mentioned above is subject to some restrictions and
obligations imposed on the Licensee. Those obligations are the following:
Attribution right: The Licensee shall keep intact all copyright, patent or
trademarks notices and all notices that refer to the Licence and to the
disclaimer of warranties. The Licensee must include a copy of such notices and
a copy of the Licence with every copy of the Work he/she distributes or
communicates. The Licensee must cause any Derivative Work to carry prominent
notices stating that the Work has been modified and the date of modification.
Copyleft clause: If the Licensee distributes or communicates copies of the
Original Works or Derivative Works, this Distribution or Communication will be
done under the terms of this Licence or of a later version of this Licence
unless the Original Work is expressly distributed only under this version of
the Licence — for example by communicating ‘EUPL v. 1.2 only’. The Licensee
(becoming Licensor) cannot offer or impose any additional terms or conditions
on the Work or Derivative Work that alter or restrict the terms of the
Licence.
Compatibility clause: If the Licensee Distributes or Communicates Derivative
Works or copies thereof based upon both the Work and another work licensed
under a Compatible Licence, this Distribution or Communication can be done
under the terms of this Compatible Licence. For the sake of this clause,
‘Compatible Licence’ refers to the licences listed in the appendix attached to
this Licence. Should the Licensee's obligations under the Compatible Licence
conflict with his/her obligations under this Licence, the obligations of the
Compatible Licence shall prevail.
Provision of Source Code: When distributing or communicating copies of the
Work, the Licensee will provide a machine-readable copy of the Source Code or
indicate a repository where this Source will be easily and freely available
for as long as the Licensee continues to distribute or communicate the Work.
Legal Protection: This Licence does not grant permission to use the trade
names, trademarks, service marks, or names of the Licensor, except as required
for reasonable and customary use in describing the origin of the Work and
reproducing the content of the copyright notice.
6. Chain of Authorship
The original Licensor warrants that the copyright in the Original Work granted
hereunder is owned by him/her or licensed to him/her and that he/she has the
power and authority to grant the Licence.
Each Contributor warrants that the copyright in the modifications he/she
brings to the Work are owned by him/her or licensed to him/her and that he/she
has the power and authority to grant the Licence.
Each time You accept the Licence, the original Licensor and subsequent
Contributors grant You a licence to their contributions to the Work, under the
terms of this Licence.
7. Disclaimer of Warranty
The Work is a work in progress, which is continuously improved by numerous
Contributors. It is not a finished work and may therefore contain defects or
‘bugs’ inherent to this type of development.
For the above reason, the Work is provided under the Licence on an ‘as is’
basis and without warranties of any kind concerning the Work, including
without limitation merchantability, fitness for a particular purpose, absence
of defects or errors, accuracy, non-infringement of intellectual property
rights other than copyright as stated in Article 6 of this Licence.
This disclaimer of warranty is an essential part of the Licence and a
condition for the grant of any rights to the Work.
8. Disclaimer of Liability
Except in the cases of wilful misconduct or damages directly caused to natural
persons, the Licensor will in no event be liable for any direct or indirect,
material or moral, damages of any kind, arising out of the Licence or of the
use of the Work, including without limitation, damages for loss of goodwill,
work stoppage, computer failure or malfunction, loss of data or any commercial
damage, even if the Licensor has been advised of the possibility of such
damage. However, the Licensor will be liable under statutory product liability
laws as far such laws apply to the Work.
9. Additional agreements
While distributing the Work, You may choose to conclude an additional
agreement, defining obligations or services consistent with this Licence.
However, if accepting obligations, You may act only on your own behalf and on
your sole responsibility, not on behalf of the original Licensor or any other
Contributor, and only if You agree to indemnify, defend, and hold each
Contributor harmless for any liability incurred by, or claims asserted against
such Contributor by the fact You have accepted any warranty or additional
liability.
10. Acceptance of the Licence
The provisions of this Licence can be accepted by clicking on an icon ‘I
agree’ placed under the bottom of a window displaying the text of this Licence
or by affirming consent in any other similar way, in accordance with the rules
of applicable law. Clicking on that icon indicates your clear and irrevocable
acceptance of this Licence and all of its terms and conditions.
Similarly, you irrevocably accept this Licence and all of its terms and
conditions by exercising any rights granted to You by Article 2 of this
Licence, such as the use of the Work, the creation by You of a Derivative Work
or the Distribution or Communication by You of the Work or copies thereof.
11. Information to the public
In case of any Distribution or Communication of the Work by means of
electronic communication by You (for example, by offering to download the Work
from a remote location) the distribution channel or media (for example, a
website) must at least provide to the public the information requested by the
applicable law regarding the Licensor, the Licence and the way it may be
accessible, concluded, stored and reproduced by the Licensee.
12. Termination of the Licence
The Licence and the rights granted hereunder will terminate automatically upon
any breach by the Licensee of the terms of the Licence.
Such a termination will not terminate the licences of any person who has
received the Work from the Licensee under the Licence, provided such persons
remain in full compliance with the Licence.
13. Miscellaneous
Without prejudice of Article 9 above, the Licence represents the complete
agreement between the Parties as to the Work.
If any provision of the Licence is invalid or unenforceable under applicable
law, this will not affect the validity or enforceability of the Licence as a
whole. Such provision will be construed or reformed so as necessary to make it
valid and enforceable.
The European Commission may publish other linguistic versions or new versions
of this Licence or updated versions of the Appendix, so far this is required
and reasonable, without reducing the scope of the rights granted by the
Licence. New versions of the Licence will be published with a unique version
number.
All linguistic versions of this Licence, approved by the European Commission,
have identical value. Parties can take advantage of the linguistic version of
their choice.
14. Jurisdiction
Without prejudice to specific agreement between parties,
- any litigation resulting from the interpretation of this License, arising
between the European Union institutions, bodies, offices or agencies, as a
Licensor, and any Licensee, will be subject to the jurisdiction of the Court
of Justice of the European Union, as laid down in article 272 of the Treaty
on the Functioning of the European Union,
- any litigation arising between other parties and resulting from the
interpretation of this License, will be subject to the exclusive
jurisdiction of the competent court where the Licensor resides or conducts
its primary business.
15. Applicable Law
Without prejudice to specific agreement between parties,
- this Licence shall be governed by the law of the European Union Member State
where the Licensor has his seat, resides or has his registered office,
- this licence shall be governed by Belgian law if the Licensor has no seat,
residence or registered office inside a European Union Member State.
Appendix
‘Compatible Licences’ according to Article 5 EUPL are:
- GNU General Public License (GPL) v. 2, v. 3
- GNU Affero General Public License (AGPL) v. 3
- Open Software License (OSL) v. 2.1, v. 3.0
- Eclipse Public License (EPL) v. 1.0
- CeCILL v. 2.0, v. 2.1
- Mozilla Public Licence (MPL) v. 2
- GNU Lesser General Public Licence (LGPL) v. 2.1, v. 3
- Creative Commons Attribution-ShareAlike v. 3.0 Unported (CC BY-SA 3.0) for
works other than software
- European Union Public Licence (EUPL) v. 1.1, v. 1.2
- Québec Free and Open-Source Licence — Reciprocity (LiLiQ-R) or Strong
Reciprocity (LiLiQ-R+).
The European Commission may update this Appendix to later versions of the
above licences without producing a new version of the EUPL, as long as they
provide the rights granted in Article 2 of this Licence and protect the
covered Source Code from exclusive appropriation.
All other changes or additions to this Appendix require the production of a
new EUPL version.

View file

@ -1,195 +0,0 @@
{
"originHash" : "53af4b803917c3317538efdcafc169d6415eec0e420e24480b7c7a03a948b4de",
"pins" : [
{
"identity" : "androidkit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/moreSwift/AndroidKit",
"state" : {
"revision" : "d5142b5a9b90fa940be54a2a41d7fd5842f21111",
"version" : "0.8.1"
}
},
{
"identity" : "jpeg",
"kind" : "remoteSourceControl",
"location" : "https://github.com/stackotter/jpeg",
"state" : {
"revision" : "a27e47f49479993b2541bc5f5c95d9354ed567a0",
"version" : "1.0.2"
}
},
{
"identity" : "libpng",
"kind" : "remoteSourceControl",
"location" : "https://github.com/the-swift-collective/libpng",
"state" : {
"revision" : "0eff23aca92a086b7892831f5cb4f58e15be9449",
"version" : "1.6.45"
}
},
{
"identity" : "libwebp",
"kind" : "remoteSourceControl",
"location" : "https://github.com/the-swift-collective/libwebp",
"state" : {
"revision" : "5f745a17b9a5c2a4283f17c2cde4517610ab5f99",
"version" : "1.4.1"
}
},
{
"identity" : "swift-android-native",
"kind" : "remoteSourceControl",
"location" : "https://github.com/swift-android-sdk/swift-android-native.git",
"state" : {
"revision" : "5f71c1584b3cbe3842d335ebb4d7b545205d9945",
"version" : "2.1.0"
}
},
{
"identity" : "swift-argument-parser",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-argument-parser",
"state" : {
"revision" : "6a52f3251125d74daf04fcbd5e6f08a75d074382",
"version" : "1.8.2"
}
},
{
"identity" : "swift-collections",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-collections",
"state" : {
"revision" : "a0cb0954ecb21e4e31b0070e6ed5674e8556685a",
"version" : "1.6.0"
}
},
{
"identity" : "swift-cross-ui",
"kind" : "remoteSourceControl",
"location" : "https://github.com/moreSwift/swift-cross-ui",
"state" : {
"revision" : "355284163826c717e6754de0d9fe2677bd001d18",
"version" : "0.7.0"
}
},
{
"identity" : "swift-image-formats",
"kind" : "remoteSourceControl",
"location" : "https://github.com/stackotter/swift-image-formats",
"state" : {
"revision" : "d735e0ed3d4a4aed50f4042494e7c769b5b70229",
"version" : "0.5.0"
}
},
{
"identity" : "swift-java",
"kind" : "remoteSourceControl",
"location" : "https://github.com/stackotter/swift-java",
"state" : {
"revision" : "e04c0ed6af98936ca6300e94be9a19869df418a2",
"version" : "0.5.1"
}
},
{
"identity" : "swift-java-jni-core",
"kind" : "remoteSourceControl",
"location" : "https://github.com/swiftlang/swift-java-jni-core",
"state" : {
"revision" : "b440a0be98381550cf189c903782e817619ffa05",
"version" : "0.5.1"
}
},
{
"identity" : "swift-log",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-log.git",
"state" : {
"revision" : "3ffafb9722d5d918c614feb496c8789a3b59d222",
"version" : "1.15.0"
}
},
{
"identity" : "swift-macro-toolkit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/stackotter/swift-macro-toolkit",
"state" : {
"revision" : "d6ed555bb83c9f21a292e9769952e8f52610a6e2",
"version" : "0.9.0"
}
},
{
"identity" : "swift-mutex",
"kind" : "remoteSourceControl",
"location" : "https://github.com/swhitty/swift-mutex",
"state" : {
"revision" : "1770152df756b54c28ef1787df1e957d93cc62d5",
"version" : "0.0.6"
}
},
{
"identity" : "swift-subprocess",
"kind" : "remoteSourceControl",
"location" : "https://github.com/swiftlang/swift-subprocess.git",
"state" : {
"revision" : "11633673a41f509f8945f23c96c7acd4adafd679",
"version" : "0.5.0"
}
},
{
"identity" : "swift-syntax",
"kind" : "remoteSourceControl",
"location" : "https://github.com/swiftlang/swift-syntax.git",
"state" : {
"revision" : "79e4b74a295b6eb74a8b585e3a39d29e70c1dbd1",
"version" : "603.0.2"
}
},
{
"identity" : "swift-system",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-system",
"state" : {
"revision" : "869129b7bf4ecc57b97d0193ad29690ca2134750",
"version" : "1.8.1"
}
},
{
"identity" : "swift-winui",
"kind" : "remoteSourceControl",
"location" : "https://github.com/moreSwift/swift-winui",
"state" : {
"revision" : "df7642fbb88e23a9cc1bbd366c7d6d3780fd0251",
"version" : "0.2.1"
}
},
{
"identity" : "swiftjavalang",
"kind" : "remoteSourceControl",
"location" : "https://github.com/stackotter/SwiftJavaLang.git",
"state" : {
"revision" : "000441db9284536a2af611745b82ec7653dca5bc",
"version" : "0.3.0"
}
},
{
"identity" : "swiftkotlin",
"kind" : "remoteSourceControl",
"location" : "https://github.com/stackotter/SwiftKotlin.git",
"state" : {
"revision" : "ad30daacb7e4666e1a56bfdd48498f5ac4ff081d",
"version" : "0.3.0"
}
},
{
"identity" : "zlib",
"kind" : "remoteSourceControl",
"location" : "https://github.com/the-swift-collective/zlib.git",
"state" : {
"revision" : "f1d153b90420f9fcc6ef916cd67ea96f0e68d137",
"version" : "1.3.2"
}
}
],
"version" : 3
}

View file

@ -1,23 +0,0 @@
// swift-tools-version: 5.10
import PackageDescription
let package = Package(
name: "AmtrakStatus",
platforms: [.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .macCatalyst(.v13)],
dependencies: [
.package(
url: "https://github.com/moreSwift/swift-cross-ui",
.upToNextMinor(from: "0.7.0"),
),
],
targets: [
.executableTarget(
name: "AmtrakStatus",
dependencies: [
.product(name: "SwiftCrossUI", package: "swift-cross-ui"),
.product(name: "DefaultBackend", package: "swift-cross-ui"),
],
),
],
)

View file

@ -1,48 +1,56 @@
<p align="center">
<img title="" src="assets/banner.svg" alt="" data-align="center" width="718"> <img title="" src="assets/banner.svg" alt="" data-align="center" width="718">
</p>
## 🖥️ Supported Platforms Amtrak Status Boards, or AMTK Status, is a desktop front-end for accessing Dixieland Software's [station status boards](https://dixielandsoftware.net/Amtrak/solari/).
| Platform | Minimum Version | **WARNING: LARGE RESOLUTION.**
| ---------------------------- | --------------- |
| macOS | 10.15+ |
| Windows | 10+ |
| Linux | gtk 3+ |
## 🔨 Setup ## 🗓️ Update Cycle
### Prerequisites | Type | Frequency |
| ----- | -------------------- |
| Minor | Every 3–6 months |
| Patch | Monthly or as needed |
| Major | As needed |
You will need Swift Bundler to properly run and bundle your app. ## 🖥️ Platform Support
1. ``brew install mint`` | Target | Windows | macOS | Linux |
2. ``mint install stackotter/swift-bundler@main`` | ------- | ------- | ------ | ----- |
| x86_64 | ✅ | ⚠️[^1] | ✅ |
| aarch64 | ❌ | ✅ | ⚠️ |
### Running - ✅ Tier 1
- ⚠️ Tier 2
- ❌ Unsupported
``` [^1]: [Rust 1.89](https://blog.rust-lang.org/2025/08/07/Rust-1.89.0/) downgrades AMD64 support after Apple and GitHub CI did the same.
swift-bundle run
```
### Bundling ## 🛡️ Support
``` - [x] Active Support
swift-bundler bundle -c (release|debug) - [ ] Limited Support (Security patches only)
``` - [ ] Maintenance Mode (Dependency-only updates)
- [ ] Archived (No active work planned)
## 🔍 Background ## 🧰 Prerequisites
This was intended to solve a rather awkward dilemma. I turned a bunch of online Amtrak status boards made by [Dixieland Software](http://dixielandsoftware.net/Amtrak/status/StatusMaps/) into PWAs (standalone web apps) for stations that I viewed on Virtual Railfan. While it was convenient - don't get me wrong - I had to create a new web app for each and every station, and it was becoming overwhelming. Before you begin, ensure you have the latest versions of the following installed:
So I created simple frontend that mapped to Dixieland Software's API using Tauri. You could type in simple station code and it'd take you their status board from within the app. Simple, right? Unfortunately, I didn't know how to get it go back to change the station, my attempted UI redesigns kept failing, and I accidentally botched a migration to Tauri 2.0. - [Rust](https://www.rust-lang.org/tools/install)
- [.NET 8.0](https://dotnet.microsoft.com/en-us/)
- ASP.NET Workload (Windows)
- `wasm-tools` Workload (macOS/Linux)
So it sat abandoned until I discovered SwiftCrossUI. Now it directly makes use of [Amtraker](https://amtraker.com/)'s API. ## 📓 Project Notes
## ⚖️ License ### 🔍 Background
I license this project under the GPL-3.0 license - see [LICENSE](LICENSE) for details. This was intended to solve a rather awkward dilemma. I turned a bunch of online Amtrak status boards made by Dixieland Software into PWAs (standalone web apps) for stations that I viewed on Virtual Railfan. While it was convenient (don't get me wrong) I had to create a new web app for each station, and it became rather overwhelming to constantly switch between them all. This front-end was intended to solve that mini-crisis by accessing all stations from a single application using a modern, cleaner interface. The original icons found in this project's first commit were used for those PWAs.
## 📄 License
I license this project under either the GPL-3.0 or the EUPL-1.2 license – your choice. See [LICENSE-GPL](LICNESE-GPL) or [LICENSE-EUPL](LICENSE-EUPL) for details.
## ⚠️ Disclaimer ## ⚠️ Disclaimer
_This project is not in any way affiliated with Amtrak._ _This project is not in any way affiliated with Amtrak or Dixieland Software._

View file

@ -1,68 +0,0 @@
import Foundation
enum AmtrakError: Error {
case invalidURL(String)
case invalidResponse
case httpStatus(Int)
case stationNotFound(String)
}
struct AmtrakClient {
var decoder = JSONDecoder()
let stationBaseURL = "https://api.amtraker.com/v3/stations"
let trainsBaseURL = "https://api.amtraker.com/v3/trains"
let staleBaseURL = "https://api.amtraker.com/v3/stale"
func fetchTrain(number trainid: String) async throws -> TrainResponse {
try await get("\(trainsBaseURL)/\(trainid)")
}
func fetchAllTrains() async throws -> TrainResponse {
try await get(trainsBaseURL)
}
func fetchAllTrainStatus(num trainNum: String) async throws -> [Train] {
let reponse = try await fetchTrain(number: trainNum)
return reponse.values.flatMap(\.self)
}
func fetchStation(code stationid: String) async throws -> StationResponse {
try await get("\(stationBaseURL)/\(stationid)")
}
func fetchAllStations() async throws -> StationResponse {
try await get(stationBaseURL)
}
func trainNumber(fromTrainId trainId: String) -> String {
trainId.split(separator: "-").first.map(String.init) ?? trainId
}
func fetchStationTrainNumbers(stationCode code: String) async throws -> [String] {
let reponse = try await fetchStation(code: code)
guard let meta = reponse[code] else {
throw AmtrakError.stationNotFound(code)
}
return Array(Set(meta.trains.map(trainNumber(fromTrainId:))))
}
func get<T: Decodable>(_ urlString: String) async throws -> T {
guard let url = URL(string: urlString) else {
throw AmtrakError.invalidURL(urlString)
}
let (data, reponse) = try await URLSession.shared.data(from: url)
guard let http = reponse as? HTTPURLResponse else {
throw AmtrakError.invalidResponse
}
guard (200 ..< 300).contains(http.statusCode) else {
throw AmtrakError.httpStatus(http.statusCode)
}
return try decoder.decode(T.self, from: data)
}
}

View file

@ -1,11 +0,0 @@
import DefaultBackend
import SwiftCrossUI
@main
struct AmtrakStatusApp: App {
var body: some Scene {
WindowGroup("Amtrak Status") {
ContentView()
}
}
}

View file

@ -1,127 +0,0 @@
import SwiftCrossUI
struct ContentView: View {
@State var client = AmtrakClient()
@State var stationCode = "ASD" // Ashland, VA
@State var rows: [TrainStatusRow] = []
@State var isLoading = false
@State var errorMessage: String?
var body: some View {
VStack {
HStack {
Text("Station Code:")
TextField("e.g. ASD", text: $stationCode)
.frame(width: 100)
Button("Refresh") {
Task {
await loadTrainStatus(forStationCode: normalizedStationCode)
}
}.disabled(normalizedStationCode.isEmpty || isLoading)
}.padding(10)
// Most popular Virtual Railfan stations
HStack {
Button("Ashland, VA") {
Task {
await loadTrainStatus(forStationCode: "ASD")
}
}
Button("San Juan Capistrano, CA") {
Task {
await loadTrainStatus(forStationCode: "SNC")
}
}
Button("La Plata, MO") {
Task {
await loadTrainStatus(forStationCode: "LAP")
}
}
}
Table(rows) {
TableColumn("Number", value: \TrainStatusRow.trainNum)
TableColumn("Route", value: \TrainStatusRow.routeName)
TableColumn("On Time", value: \TrainStatusRow.onTime)
TableColumn("Platform", value: \TrainStatusRow.platform)
}.overlay(alignment: .bottomTrailing) {
if isLoading {
ProgressView()
.frame(alignment: .topTrailing)
.padding(10)
}
}
HStack {
if let errorMessage {
Text(errorMessage)
}
}.padding(10)
}.frame(idealWidth: 500)
.onAppear {
Task {
await loadTrainStatus(forStationCode: normalizedStationCode)
}
}
}
var normalizedStationCode: String {
stationCode.trimmingCharacters(in: .whitespacesAndNewlines).uppercased()
}
func loadTrainStatus(forStationCode code: String) async {
guard !code.isEmpty else {
return
}
isLoading = true
errorMessage = nil
defer { isLoading = false }
do {
let trainNumbers = try await client.fetchStationTrainNumbers(
stationCode: code,
)
guard !trainNumbers.isEmpty else {
errorMessage = "\(code) has no trains listed right now"
rows = []
return
}
var newRows: [TrainStatusRow] = []
for number in trainNumbers {
let trains = try await client.fetchAllTrainStatus(num: number)
for train in trains {
let platform = train.stations?.first(
where: { $0.code == code
},
)?.platform
newRows.append(TrainStatusRow(
trainID: train.trainID,
trainNum: train.trainNum,
routeName: train.routeName,
onTime: train.trainTimely.isEmpty ? "" : train.trainTimely,
platform: (
platform?.isEmpty == false,
) ? platform! : "",
))
}
}
rows = newRows
} catch let AmtrakError.stationNotFound(code) {
errorMessage = "Station \(code) not found"
rows = []
} catch {
errorMessage = "Couldn't load train status: \(error.localizedDescription)"
rows = []
}
}
}

View file

@ -1,78 +0,0 @@
import Foundation
struct TrainAlert: Codable {
var message: String
}
struct Station: Codable {
var code: String
var platform: String?
}
struct Train: Codable {
var routeName: String
var trainNum: String
var trainNumRaw: String
var trainID: String
var lat: Double
var lon: Double
var trainTimely: String
var iconColor: String?
var textColor: String?
var heading: String?
var eventCode: String?
var eventTZ: String?
var eventName: String?
var origCode: String?
var origName: String?
var destCode: String?
var destName: String?
var trainState: String?
var velocity: Double?
var statusMsg: String?
var createdAt: String?
var updatedAt: String?
var lastValTS: String?
var objectID: Int?
var provider: String?
var providerShort: String?
var onlyOfTrainNum: Bool?
var alerts: [TrainAlert]?
var stations: [Station]?
}
struct StationMeta: Codable {
var name: String
var code: String
var tz: String?
var lat: Double?
var lon: Double?
var hasAddress: Bool?
var address1: String?
var address2: String?
var city: String?
var state: String?
var zip: String?
var trains: [String]
}
struct StaleData: Codable {
var avgLastUpdate: Double
var activeTrains: Int
var stale: Bool
}
typealias TrainResponse = [String: [Train]]
typealias StationResponse = [String: StationMeta]
struct TrainStatusRow: Identifiable {
var id: String {
trainID
}
var trainID: String
var trainNum: String
var routeName: String
var onTime: String
var platform: String
}

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 165 KiB

After

Width:  |  Height:  |  Size: 181 KiB

Before After
Before After

View file

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="100%" height="100%" viewBox="0 0 500 500" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"> <svg width="100%" height="100%" viewBox="0 0 500 500" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
<rect x="-10.985" y="-8.59" width="532.174" height="521.551"/>
<g transform="matrix(4.25138e-17,-0.483333,1.98331,1.11637e-16,-13.8743,493.462)"> <g transform="matrix(4.25138e-17,-0.483333,1.98331,1.11637e-16,-13.8743,493.462)">
<rect x="13.746" y="15.338" width="473.095" height="235.505" style="fill:url(#_Linear1);"/> <rect x="13.746" y="15.338" width="473.095" height="235.505" style="fill:url(#_Linear1);"/>
</g> </g>
@ -8,10 +9,13 @@
<rect x="13.746" y="15.338" width="473.095" height="235.505" style="fill:url(#_Linear2);"/> <rect x="13.746" y="15.338" width="473.095" height="235.505" style="fill:url(#_Linear2);"/>
</g> </g>
<g transform="matrix(1.855,0,0,1.99098,29.6408,185.723)"> <g transform="matrix(1.855,0,0,1.99098,29.6408,185.723)">
<path d="M28.532,31.767C17.876,26.088 8.647,20.803 0,15.695C34.512,0.744 112.08,2.715 126.93,3.414C133.789,5.412 142.549,7.107 150.484,8.076L150.484,9.113C110.855,11.276 67.864,16.796 34.09,31.767L28.532,31.767ZM63.993,31.767C95.044,18.719 136.484,12.213 161.801,9.686C172.199,9.781 189.025,8.98 200.162,7.67L200.162,8.686C172.976,14.03 146.106,20.79 121.859,31.767L63.993,31.767ZM142.01,31.767C166.784,19.688 197.467,10.731 236.712,0L236.712,1.025C214.217,10.774 196.139,20.906 181.586,31.767L142.01,31.767ZM175.017,36.915C159.209,49.938 148.064,64.041 140.142,79.789C127.088,76.024 111.763,70.391 96.949,64.266C107.174,53.25 118.741,44.448 132.162,36.915L175.017,36.915ZM111.297,36.915C100.413,42.623 90.17,49.331 80.799,57.321C69.067,52.094 57.324,46.5 46.094,40.85C48.283,39.487 50.589,38.176 52.996,36.915L111.297,36.915Z" style="fill:rgb(187,153,90);"/> <path d="M126.93,3.414C112.08,2.715 34.512,0.744 0,15.695C9.334,21.209 19.346,26.929 31.1,33.129C65.303,17.127 109.676,11.34 150.484,9.113L150.484,8.076C142.549,7.107 133.789,5.412 126.93,3.414Z" style="fill:rgb(187,153,90);fill-rule:nonzero;"/>
<path d="M161.801,9.686C131.182,12.742 76.979,21.619 46.094,40.85C57.324,46.5 69.067,52.094 80.799,57.321C113.317,29.598 156.33,17.303 200.162,8.686L200.162,7.67C189.025,8.98 172.199,9.781 161.801,9.686Z" style="fill:rgb(187,153,90);fill-rule:nonzero;"/>
<path d="M96.949,64.266C111.763,70.391 127.088,76.024 140.142,79.789C155.871,48.523 184.306,23.738 236.712,1.025L236.712,0C169.398,18.406 127.275,31.594 96.949,64.266Z" style="fill:rgb(187,153,90);fill-rule:nonzero;"/>
</g> </g>
<rect x="18.597" y="249.556" width="464.163" height="9.461"/>
<defs> <defs>
<linearGradient id="_Linear1" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(473.095,0,0,473.095,13.746,133.091)"><stop offset="0" style="stop-color:rgb(28,28,28);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(56,56,56);stop-opacity:1"/></linearGradient> <linearGradient id="_Linear1" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(473.095,0,0,235.505,13.746,133.091)"><stop offset="0" style="stop-color:rgb(28,28,28);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(56,56,56);stop-opacity:1"/></linearGradient>
<linearGradient id="_Linear2" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(473.095,0,0,473.095,13.746,133.091)"><stop offset="0" style="stop-color:rgb(28,28,28);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(56,56,56);stop-opacity:1"/></linearGradient> <linearGradient id="_Linear2" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(473.095,0,0,235.505,13.746,133.091)"><stop offset="0" style="stop-color:rgb(28,28,28);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(56,56,56);stop-opacity:1"/></linearGradient>
</defs> </defs>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Before After
Before After

BIN
bun.lockb Executable file

Binary file not shown.

23
changelog.md Normal file
View file

@ -0,0 +1,23 @@
# Change Log
## 0.1.106
- Completely redesigned the interface based on the Fluent Design System.
## 0.1.105
- Clickable links that open the default broswer.
## 0.1.104
- New buttons for major terminals and rail cams.
- Version displayed above credits.
## 0.1.102
- Redesigned icons
- Added banner above form
## 0.1.101
- First public prototype

13
package.json Normal file
View file

@ -0,0 +1,13 @@
{
"name": "amtkstat",
"private": true,
"version": "0.1.0",
"type": "module",
"scripts": {
"tauri": "tauri"
},
"devDependencies": {
"@tauri-apps/cli": "^2.1.0",
"@tauri-apps/plugin-shell": "~2"
}
}

7
src-tauri/.gitignore vendored Normal file
View file

@ -0,0 +1,7 @@
# Generated by Cargo
# will have compiled files and executables
/target/
# Generated by Tauri
# will have schema files for capabilities auto-completion
/gen/schemas

4923
src-tauri/Cargo.lock generated Normal file

File diff suppressed because it is too large Load diff

25
src-tauri/Cargo.toml Normal file
View file

@ -0,0 +1,25 @@
[package]
name = "amtrakstatus"
version = "0.1.0"
description = "A Tauri App"
authors = ["you"]
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
# The `_lib` suffix may seem redundant but it is necessary
# to make the lib name unique and wouldn't conflict with the bin name.
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
name = "entries_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
tauri-build = { version = "2", features = [] }
[dependencies]
tauri = { version = "2", features = [] }
tauri-plugin-opener = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"

3
src-tauri/build.rs Normal file
View file

@ -0,0 +1,3 @@
fn main() {
tauri_build::build()
}

View file

@ -0,0 +1,13 @@
{
"identifier": "migrated",
"description": "permissions that were migrated from v1",
"local": true,
"windows": [
"main"
],
"permissions": [
"core:default",
"shell:allow-open",
"shell:default"
]
}

BIN
src-tauri/icons/128x128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
src-tauri/icons/32x32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,006 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
src-tauri/icons/icon.icns Normal file

Binary file not shown.

BIN
src-tauri/icons/icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
src-tauri/icons/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

33
src-tauri/src/lib.rs Normal file
View file

@ -0,0 +1,33 @@
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
use webbrowser;
// use tauri::menu::MenuBuilder;
#[tauri::command]
fn open_browser(address: &str) {
webbrowser::open(address).expect("Failed to open defualt browser.");
}
#[cfg_attr(mobile, tauri::mobile_entry_point)]
fn main() {
tauri::Builder::default()
.plugin(tauri_plugin_shell::init())
.invoke_handler(tauri::generate_handler![open_browser])
.setup(|app| {
// TODO: Redo menu bar to return to home screen
/**
let menu = MenuBuilder::new(app)
.text("open", "Open")
.text("close", "Close")
.check("check_item", "Check Item")
.separator()
.text("disabled_item", "Disabled Item")
.text("status", "Status: Processing...")
.build()?;
app.set_menu(menu.clone())?;
**/
Ok(())
})
.run(tauri::generate_context!())
.expect("error while running tauri application");
}

6
src-tauri/src/main.rs Normal file
View file

@ -0,0 +1,6 @@
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
fn main() {
entries_lib::run()
}

42
src-tauri/tauri.conf.json Normal file
View file

@ -0,0 +1,42 @@
{
"build": {
"beforeDevCommand": "dotnet watch run --project src/AmtrakStatus.csproj",
"beforeBuildCommand": "dotnet publish -c release src/AmtrakStatus.csproj -o dist",
"frontendDist": "../dist/wwwroot",
"devUrl": "http://localhost:1420"
},
"bundle": {
"active": true,
"targets": "all",
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
]
},
"productName": "AMTK Status",
"mainBinaryName": "AMTK Status",
"version": "0.1.106",
"identifier": "com.tonybark.amtkstat",
"plugins": {},
"app": {
"withGlobalTauri": true,
"windows": [
{
"title": "Amtrak Status",
"resizable": true,
"width": 1100,
"height": 768,
"minWidth": 1100,
"minHeight": 768,
"maxWidth": 1450,
"maxHeight": 950
}
],
"security": {
"csp": null
}
}
}

21
src/AmtrakStatus.csproj Normal file
View file

@ -0,0 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="GitInfo" Version="3.3.5">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.8" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.8" PrivateAssets="all" />
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components" Version="4.10.0" />
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components.Emoji" Version="4.6.0" />
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components.Icons" Version="4.10.0" />
</ItemGroup>
</Project>

9
src/App.razor Normal file
View file

@ -0,0 +1,9 @@
<Router AppAssembly="@typeof(App).Assembly">
<Found Context="routeData">
<RouteView RouteData="@routeData" />
</Found>
<NotFound>
<PageTitle>Not found</PageTitle>
<p role="alert">Sorry, there's nothing at this address.</p>
</NotFound>
</Router>

View file

@ -0,0 +1,19 @@
@PrintVersion
@code
{
// Bit of a workaround until I get native version from Tauri.
// Regardless, it's useful for printing the commit hash alone.
private string PrintVersion
{
get
{
var major = ThisAssembly.Git.SemVer.Major;
var minor = ThisAssembly.Git.SemVer.Minor;
var patch = ThisAssembly.Git.SemVer.Patch;
var commit = ThisAssembly.Git.Commit;
return $"v{major}.{minor}.{patch}-{commit}";
}
}
}

View file

@ -0,0 +1,17 @@
@inject IJSRuntime JsRuntime
<a @onclick="OpenBrowserAsync">@Text</a>
@code {
[Parameter]
public string? Text { get; set; }
[Parameter]
public string? Address { get; set; }
private async Task OpenBrowserAsync()
{
await JsRuntime.InvokeAsync<string>("__TAURI__.tauri.invoke", "open_browser", new { address = Address });
}
}

View file

@ -0,0 +1,28 @@
@inject IJSRuntime JsRuntime
@inject NavigationManager NavigationManager
@if (IsLink)
{
<a @onclick="AddrRedirect">@Name</a>
}
else
{
<button @onclick="AddrRedirect">@Name</button>
}
@code
{
[Parameter] public string? Name { get; set; }
[Parameter] public string? Code { get; set; }
[Parameter]
public bool IsLink { get; set; }
private void AddrRedirect()
{
var address = $"https://dixielandsoftware.net/cgi-bin/solari_relay.pl?data={Code}";
NavigationManager.NavigateTo(address);
}
}

View file

@ -0,0 +1,19 @@
@inject IJSRuntime JsRuntime
@inject NavigationManager NavigationManager
<form class="row" @onsubmit="AddrRedirect" @onsubmit:preventDefault="true">
<input id="greet-input" placeholder="3-character Station Code" @bind="Code" />
<button type="submit">Submit</button>
</form>
@code
{
private string? Code { get; set; }
private void AddrRedirect()
{
var address = $"https://dixielandsoftware.net/cgi-bin/solari_relay.pl?data={Code}";
NavigationManager.NavigateTo(address);
}
}

1
src/Gitinfo.txt Normal file
View file

@ -0,0 +1 @@
0.1.106

43
src/Pages/Home.razor Normal file
View file

@ -0,0 +1,43 @@
@page "/"
<div class="container">
<img src="img/amtkstat.svg" class="logo" alt="Amtrak Status" />
<StationInput />
<p>Search
<LaunchBrowser Text="Station Codes" Address="https://dixielandsoftware.net/Amtrak/solari/StationSearch.html" />
</p>
<div class="row">
<div class="container">
<StationBtn Code="NYP" Name="NY Penn Station" />
</div>
<div class="container">
<StationBtn Code="WAS" Name="DC Union Station" />
</div>
<div class="container">
<StationBtn Code="BOS" Name="Boston South Station" />
</div>
</div>
<div class="row">
<div class="container">
<StationBtn Code="ASD" Name="Ashland, VA" />
<StationBtn Code="SNC" Name="San Juan Capistrano, CA" />
<StationBtn Code="FMD" Name="Fort Madison, IA" />
</div>
<div class="container">
<StationBtn Code="LAP" Name="La Plata, MO" />
<StationBtn Code="QCY" Name="Quincy, IL" />
<StationBtn Code="SPB" Name="Spartanburg, SC" />
</div>
</div>
</div>
<footer>
<sub>
<i>
<p>
<GitVersion /><br>Status Boards by
<LaunchBrowser Text="Dixieland Software" Address="https://dixielandsoftware.net/" />
</p>
</i>
</sub>
</footer>

13
src/Program.cs Normal file
View file

@ -0,0 +1,13 @@
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Microsoft.FluentUI.AspNetCore.Components;
using AmtrakStatus;
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app");
builder.RootComponents.Add<HeadOutlet>("head::after");
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
builder.Services.AddFluentUIComponents();
await builder.Build().RunAsync();

View file

@ -0,0 +1,15 @@
{
"$schema": "https://json.schemastore.org/launchsettings.json",
"profiles": {
"http": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": false,
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
"applicationUrl": "http://localhost:1420",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}

11
src/_Imports.razor Normal file
View file

@ -0,0 +1,11 @@
@using System.Net.Http
@using System.Net.Http.Json
@using Microsoft.AspNetCore.Components.Forms
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using Microsoft.AspNetCore.Components.Web.Virtualization
@using Microsoft.AspNetCore.Components.WebAssembly.Http
@using Microsoft.JSInterop
@using Microsoft.FluentUI.AspNetCore.Components
@using AmtrakStatus
@using AmtrakStatus.Components

148
src/wwwroot/css/app.css Normal file
View file

@ -0,0 +1,148 @@
.logo.blazor:hover {
filter: drop-shadow(0 0 2em #5c2d91);
}
:root {
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 24px;
font-weight: 400;
color: #0f0f0f;
background-color: #f6f6f6;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
}
.container,
footer {
margin: 0;
padding-top: 10vh;
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
}
footer {
position: absolute;
bottom: 0;
}
/* The sidebar menu */
.sidenav {
height: 100%;
/* Full-height: remove this if you want "auto" height */
width: 160px;
/* Set the width of the sidebar */
position: fixed;
/* Fixed Sidebar (stay in place on scroll) */
z-index: 1;
/* Stay on top */
top: 0;
/* Stay at the top */
left: 0;
background-color: #111;
/* Black */
overflow-x: hidden;
/* Disable horizontal scroll */
padding-top: 20px;
}
/* The navigation menu links */
.sidenav a {
padding: 6px 8px 6px 16px;
text-decoration: none;
font-size: 25px;
color: #818181;
display: block;
}
/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
color: #f1f1f1;
}
.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: 0.75s;
}
.row {
display: flex;
justify-content: center;
}
a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}
h1 {
text-align: center;
}
input,
button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
color: #0f0f0f;
background-color: #ffffff;
transition: border-color 0.25s;
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
}
button {
cursor: pointer;
margin: 5px;
}
button:hover {
border-color: #396cd8;
}
button:active {
border-color: #396cd8;
background-color: #e8e8e8;
}
input,
button {
outline: none;
}
@media (prefers-color-scheme: dark) {
:root {
color: #f6f6f6;
background-color: #2f2f2f;
}
a:hover {
color: #24c8db;
}
input,
button {
color: #ffffff;
background-color: #0f0f0f98;
}
button:active {
background-color: #0f0f0f69;
}
}

View file

@ -0,0 +1,143 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="100%" height="100%" viewBox="0 0 1133 173" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
<g id="Artboard1" transform="matrix(1.14203,0,0,0.866267,-25.8628,-215.174)">
<rect x="22.646" y="248.392" width="991.516" height="199.375" style="fill:none;"/>
<g id="Board" transform="matrix(0.575908,0,0,0.75924,11.2007,106.546)">
<g id="Flip-Flaps" transform="matrix(0.861551,1.08883e-21,-1.5897e-21,0.855087,-5.22499,61.5416)">
<g transform="matrix(2.52609e-17,-0.298407,1.18187,6.91231e-17,19.4892,445.018)">
<rect x="13.746" y="15.338" width="473.095" height="235.505" style="fill:url(#_Linear1);"/>
</g>
<g transform="matrix(2.54077e-17,0.298407,1.18187,-6.87249e-17,19.4892,148.699)">
<rect x="13.746" y="15.338" width="473.095" height="235.505" style="fill:url(#_Linear2);"/>
</g>
<g transform="matrix(1.58062,-2.0127e-21,3.25825e-21,1.76583,352.178,412.196)">
<g transform="matrix(0.699351,1.06243e-19,1.8982e-19,0.696114,-194.074,-89.0083)">
<path d="M126.93,3.414C112.08,2.715 34.512,0.744 0,15.695C9.334,21.209 19.346,26.929 31.1,33.129C65.303,17.127 109.676,11.34 150.484,9.113L150.484,8.076C142.549,7.107 133.789,5.412 126.93,3.414Z" style="fill:rgb(187,153,90);fill-rule:nonzero;"/>
</g>
<g transform="matrix(0.699351,1.06243e-19,1.8982e-19,0.696114,-194.074,-89.0083)">
<path d="M161.801,9.686C131.182,12.742 76.979,21.619 46.094,40.85C57.324,46.5 69.067,52.094 80.799,57.321C113.317,29.598 156.33,17.303 200.162,8.686L200.162,7.67C189.025,8.98 172.199,9.781 161.801,9.686Z" style="fill:rgb(187,153,90);fill-rule:nonzero;"/>
</g>
<g transform="matrix(0.699351,1.06243e-19,1.8982e-19,0.696114,-194.074,-89.0083)">
<path d="M96.949,64.266C111.763,70.391 127.088,76.024 140.142,79.789C155.871,48.523 184.306,23.738 236.712,1.025L236.712,0C169.398,18.406 127.275,31.594 96.949,64.266Z" style="fill:rgb(187,153,90);fill-rule:nonzero;"/>
</g>
</g>
<g transform="matrix(0.597515,1.2879e-19,1.52562e-19,0.790857,27.7271,96.4589)">
<rect x="18.597" y="249.556" width="464.163" height="9.461"/>
</g>
</g>
<g id="Flip-Flaps1" serif:id="Flip-Flaps" transform="matrix(0.861551,1.08883e-21,-1.5897e-21,0.855087,239.455,61.5416)">
<g transform="matrix(2.52609e-17,-0.298407,1.18187,6.91231e-17,19.4892,445.018)">
<rect x="13.746" y="15.338" width="473.095" height="235.505" style="fill:url(#_Linear3);"/>
</g>
<g transform="matrix(2.54077e-17,0.298407,1.18187,-6.87249e-17,19.4892,148.699)">
<rect x="13.746" y="15.338" width="473.095" height="235.505" style="fill:url(#_Linear4);"/>
</g>
<g transform="matrix(1.1607,-1.47799e-21,2.15787e-21,1.16947,-330.334,56.1498)">
<g transform="matrix(295.833,0,0,295.833,615.767,311.244)">
</g>
<text x="336.256px" y="311.244px" style="font-family:'ArialMT', 'Arial', sans-serif;font-size:295.833px;fill:rgb(187,153,90);">S</text>
</g>
<g transform="matrix(0.599006,1.28788e-19,1.52939e-19,0.790857,26.5859,96.2376)">
<rect x="18.597" y="249.556" width="464.163" height="9.461"/>
</g>
</g>
<g id="Flip-Flaps2" serif:id="Flip-Flaps" transform="matrix(0.861551,1.08883e-21,-1.5897e-21,0.855087,483.784,61.6131)">
<g transform="matrix(2.52609e-17,-0.298407,1.18187,6.91231e-17,19.4892,445.018)">
<rect x="13.746" y="15.338" width="473.095" height="235.505" style="fill:url(#_Linear5);"/>
</g>
<g transform="matrix(2.54077e-17,0.298407,1.18187,-6.87249e-17,19.4892,148.699)">
<rect x="13.746" y="15.338" width="473.095" height="235.505" style="fill:url(#_Linear6);"/>
</g>
<g transform="matrix(1.1607,-1.47799e-21,2.15787e-21,1.16947,-325.162,56.2325)">
<g transform="matrix(295.833,0,0,295.833,593.81,311.244)">
</g>
<text x="336.256px" y="311.244px" style="font-family:'ArialMT', 'Arial', sans-serif;font-size:295.833px;fill:rgb(187,153,90);">T</text>
</g>
<g transform="matrix(0.599307,1.28788e-19,1.53015e-19,0.790857,26.4856,96.2778)">
<rect x="18.597" y="249.556" width="464.163" height="9.461"/>
</g>
</g>
<g id="Flip-Flaps3" serif:id="Flip-Flaps" transform="matrix(0.861551,1.08883e-21,-1.5897e-21,0.855087,1217.66,61.3525)">
<g transform="matrix(2.52609e-17,-0.298407,1.18187,6.91231e-17,19.4892,445.018)">
<rect x="13.746" y="15.338" width="473.095" height="235.505" style="fill:url(#_Linear7);"/>
</g>
<g transform="matrix(2.54077e-17,0.298407,1.18187,-6.87249e-17,19.4892,148.699)">
<rect x="13.746" y="15.338" width="473.095" height="235.505" style="fill:url(#_Linear8);"/>
</g>
<g transform="matrix(1.1607,-1.47799e-21,2.15787e-21,1.16947,-330.334,56.1498)">
<g transform="matrix(295.833,0,0,295.833,632.089,311.244)">
</g>
<text x="336.256px" y="311.244px" style="font-family:'ArialMT', 'Arial', sans-serif;font-size:295.833px;fill:rgb(187,153,90);">U</text>
</g>
<g transform="matrix(0.599307,1.28788e-19,1.53015e-19,0.790857,26.428,96.1814)">
<rect x="18.597" y="249.556" width="464.163" height="9.461"/>
</g>
</g>
<g id="Flip-Flaps4" serif:id="Flip-Flaps" transform="matrix(0.861551,1.08883e-21,-1.5897e-21,0.855087,1462.45,61.3525)">
<g transform="matrix(2.52609e-17,-0.298407,1.18187,6.91231e-17,19.4892,445.018)">
<rect x="13.746" y="15.338" width="473.095" height="235.505" style="fill:url(#_Linear9);"/>
</g>
<g transform="matrix(2.54077e-17,0.298407,1.18187,-6.87249e-17,19.4892,148.699)">
<rect x="13.746" y="15.338" width="473.095" height="235.505" style="fill:url(#_Linear10);"/>
</g>
<g transform="matrix(1.1607,-1.47799e-21,2.15787e-21,1.16947,-330.334,56.1498)">
<g transform="matrix(295.833,0,0,295.833,615.767,311.244)">
</g>
<text x="336.256px" y="311.244px" style="font-family:'ArialMT', 'Arial', sans-serif;font-size:295.833px;fill:rgb(187,153,90);">S</text>
</g>
<g transform="matrix(0.599307,1.28788e-19,1.53015e-19,0.790857,26.5874,95.879)">
<rect x="18.597" y="249.556" width="464.163" height="9.461"/>
</g>
</g>
<g id="Flip-Flaps5" serif:id="Flip-Flaps" transform="matrix(0.861551,1.08883e-21,-1.5897e-21,0.855087,974.096,62.4158)">
<g transform="matrix(2.52609e-17,-0.298407,1.18187,6.91231e-17,19.4892,445.018)">
<rect x="13.746" y="15.338" width="473.095" height="235.505" style="fill:url(#_Linear11);"/>
</g>
<g transform="matrix(2.54077e-17,0.298407,1.18187,-6.87249e-17,19.4892,148.699)">
<rect x="13.746" y="15.338" width="473.095" height="235.505" style="fill:url(#_Linear12);"/>
</g>
<g transform="matrix(1.1607,-1.47799e-21,2.15787e-21,1.16947,-325.162,56.2325)">
<g transform="matrix(295.833,0,0,295.833,593.81,311.244)">
</g>
<text x="336.256px" y="311.244px" style="font-family:'ArialMT', 'Arial', sans-serif;font-size:295.833px;fill:rgb(187,153,90);">T</text>
</g>
<g transform="matrix(0.599307,1.28788e-19,1.53015e-19,0.790857,26.3646,96.1076)">
<rect x="18.597" y="249.556" width="464.163" height="9.461"/>
</g>
</g>
<g id="Flip-Flaps6" serif:id="Flip-Flaps" transform="matrix(0.861551,1.08883e-21,-1.5897e-21,0.855087,728.465,61.6131)">
<g transform="matrix(2.52609e-17,-0.298407,1.18187,6.91231e-17,19.4892,445.018)">
<rect x="13.746" y="15.338" width="473.095" height="235.505" style="fill:url(#_Linear13);"/>
</g>
<g transform="matrix(2.54077e-17,0.298407,1.18187,-6.87249e-17,19.4892,148.699)">
<rect x="13.746" y="15.338" width="473.095" height="235.505" style="fill:url(#_Linear14);"/>
</g>
<g transform="matrix(1.1607,-1.47799e-21,2.15787e-21,1.16947,-333.05,56.4581)">
<g transform="matrix(295.833,0,0,295.833,599.444,311.244)">
</g>
<text x="336.256px" y="311.244px" style="font-family:'ArialMT', 'Arial', sans-serif;font-size:295.833px;fill:rgb(187,153,90);">A</text>
</g>
<g transform="matrix(0.599307,1.28788e-19,1.53015e-19,0.790857,26.1099,95.9229)">
<rect x="18.597" y="249.556" width="464.163" height="9.461"/>
</g>
</g>
</g>
</g>
<defs>
<linearGradient id="_Linear1" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(473.095,0,0,235.505,13.746,133.091)"><stop offset="0" style="stop-color:rgb(28,28,28);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(56,56,56);stop-opacity:1"/></linearGradient>
<linearGradient id="_Linear2" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(473.095,0,0,235.505,13.746,133.091)"><stop offset="0" style="stop-color:rgb(28,28,28);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(56,56,56);stop-opacity:1"/></linearGradient>
<linearGradient id="_Linear3" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(473.095,0,0,235.505,13.746,133.091)"><stop offset="0" style="stop-color:rgb(28,28,28);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(56,56,56);stop-opacity:1"/></linearGradient>
<linearGradient id="_Linear4" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(473.095,0,0,235.505,13.746,133.091)"><stop offset="0" style="stop-color:rgb(28,28,28);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(56,56,56);stop-opacity:1"/></linearGradient>
<linearGradient id="_Linear5" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(473.095,0,0,235.505,13.746,133.091)"><stop offset="0" style="stop-color:rgb(28,28,28);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(56,56,56);stop-opacity:1"/></linearGradient>
<linearGradient id="_Linear6" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(473.095,0,0,235.505,13.746,133.091)"><stop offset="0" style="stop-color:rgb(28,28,28);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(56,56,56);stop-opacity:1"/></linearGradient>
<linearGradient id="_Linear7" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(473.095,0,0,235.505,13.746,133.091)"><stop offset="0" style="stop-color:rgb(28,28,28);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(56,56,56);stop-opacity:1"/></linearGradient>
<linearGradient id="_Linear8" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(473.095,0,0,235.505,13.746,133.091)"><stop offset="0" style="stop-color:rgb(28,28,28);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(56,56,56);stop-opacity:1"/></linearGradient>
<linearGradient id="_Linear9" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(473.095,0,0,235.505,13.746,133.091)"><stop offset="0" style="stop-color:rgb(28,28,28);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(56,56,56);stop-opacity:1"/></linearGradient>
<linearGradient id="_Linear10" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(473.095,0,0,235.505,13.746,133.091)"><stop offset="0" style="stop-color:rgb(28,28,28);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(56,56,56);stop-opacity:1"/></linearGradient>
<linearGradient id="_Linear11" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(473.095,0,0,235.505,13.746,133.091)"><stop offset="0" style="stop-color:rgb(28,28,28);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(56,56,56);stop-opacity:1"/></linearGradient>
<linearGradient id="_Linear12" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(473.095,0,0,235.505,13.746,133.091)"><stop offset="0" style="stop-color:rgb(28,28,28);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(56,56,56);stop-opacity:1"/></linearGradient>
<linearGradient id="_Linear13" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(473.095,0,0,235.505,13.746,133.091)"><stop offset="0" style="stop-color:rgb(28,28,28);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(56,56,56);stop-opacity:1"/></linearGradient>
<linearGradient id="_Linear14" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(473.095,0,0,235.505,13.746,133.091)"><stop offset="0" style="stop-color:rgb(28,28,28);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(56,56,56);stop-opacity:1"/></linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 14 KiB

BIN
src/wwwroot/img/blazor.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

View file

@ -0,0 +1,6 @@
<svg width="206" height="231" viewBox="0 0 206 231" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M143.143 84C143.143 96.1503 133.293 106 121.143 106C108.992 106 99.1426 96.1503 99.1426 84C99.1426 71.8497 108.992 62 121.143 62C133.293 62 143.143 71.8497 143.143 84Z" fill="#FFC131"/>
<ellipse cx="84.1426" cy="147" rx="22" ry="22" transform="rotate(180 84.1426 147)" fill="#24C8DB"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M166.738 154.548C157.86 160.286 148.023 164.269 137.757 166.341C139.858 160.282 141 153.774 141 147C141 144.543 140.85 142.121 140.558 139.743C144.975 138.204 149.215 136.139 153.183 133.575C162.73 127.404 170.292 118.608 174.961 108.244C179.63 97.8797 181.207 86.3876 179.502 75.1487C177.798 63.9098 172.884 53.4021 165.352 44.8883C157.82 36.3744 147.99 30.2165 137.042 27.1546C126.095 24.0926 114.496 24.2568 103.64 27.6274C92.7839 30.998 83.1319 37.4317 75.8437 46.1553C74.9102 47.2727 74.0206 48.4216 73.176 49.5993C61.9292 50.8488 51.0363 54.0318 40.9629 58.9556C44.2417 48.4586 49.5653 38.6591 56.679 30.1442C67.0505 17.7298 80.7861 8.57426 96.2354 3.77762C111.685 -1.01901 128.19 -1.25267 143.769 3.10474C159.348 7.46215 173.337 16.2252 184.056 28.3411C194.775 40.457 201.767 55.4101 204.193 71.404C206.619 87.3978 204.374 103.752 197.73 118.501C191.086 133.25 180.324 145.767 166.738 154.548ZM41.9631 74.275L62.5557 76.8042C63.0459 72.813 63.9401 68.9018 65.2138 65.1274C57.0465 67.0016 49.2088 70.087 41.9631 74.275Z" fill="#FFC131"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M38.4045 76.4519C47.3493 70.6709 57.2677 66.6712 67.6171 64.6132C65.2774 70.9669 64 77.8343 64 85.0001C64 87.1434 64.1143 89.26 64.3371 91.3442C60.0093 92.8732 55.8533 94.9092 51.9599 97.4256C42.4128 103.596 34.8505 112.392 30.1816 122.756C25.5126 133.12 23.9357 144.612 25.6403 155.851C27.3449 167.09 32.2584 177.598 39.7906 186.112C47.3227 194.626 57.153 200.784 68.1003 203.846C79.0476 206.907 90.6462 206.743 101.502 203.373C112.359 200.002 122.011 193.568 129.299 184.845C130.237 183.722 131.131 182.567 131.979 181.383C143.235 180.114 154.132 176.91 164.205 171.962C160.929 182.49 155.596 192.319 148.464 200.856C138.092 213.27 124.357 222.426 108.907 227.222C93.458 232.019 76.9524 232.253 61.3736 227.895C45.7948 223.538 31.8055 214.775 21.0867 202.659C10.3679 190.543 3.37557 175.59 0.949823 159.596C-1.47592 143.602 0.768139 127.248 7.41237 112.499C14.0566 97.7497 24.8183 85.2327 38.4045 76.4519ZM163.062 156.711L163.062 156.711C162.954 156.773 162.846 156.835 162.738 156.897C162.846 156.835 162.954 156.773 163.062 156.711Z" fill="#24C8DB"/>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

17
src/wwwroot/index.html Normal file
View file

@ -0,0 +1,17 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tauri + Blazor</title>
<base href="/" />
<link rel="stylesheet" href="css/app.css" />
</head>
<body>
<div id="app"></div>
<script src="_framework/blazor.webassembly.js"></script>
</body>
</html>