Skip to content

Commit

Permalink
Frontend: add a landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
USA-RedDragon committed Nov 20, 2024
1 parent 4c9feff commit 06455f0
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 5 deletions.
1 change: 1 addition & 0 deletions internal/http/frontend/src/components/AppHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<div class="wrapper">
<nav>
<router-link to="/">Home</router-link>
<router-link to="/lastheard">Last Heard</router-link>
<router-link v-if="this.userStore.loggedIn" to="/repeaters">Repeaters</router-link>
<router-link v-if="this.userStore.loggedIn" to="#" custom>
<a
Expand Down
9 changes: 9 additions & 0 deletions internal/http/frontend/src/router/routes.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ export default (features) => {
},
component: () => import('../views/MainPage.vue'),
},
{
path: '/lastheard',
name: 'LastHeard',
sitemap: {
changefreq: 'daily',
priority: 1,
},
component: () => import('../views/LastHeard.vue'),
},
{
path: '/login',
name: 'Login',
Expand Down
56 changes: 56 additions & 0 deletions internal/http/frontend/src/views/LastHeard.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<!--
SPDX-License-Identifier: AGPL-3.0-or-later
DMRHub - Run a DMR network server in a single binary
Copyright (C) 2023-2024 Jacob McSwain

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https: www.gnu.org/licenses/>.

The source code is available at <https://github.com/USA-RedDragon/DMRHub>
-->

<template>
<div>
<Card>
<template #title>Last Heard</template>
<template #content>
<LastHeardTable />
</template>
</Card>
</div>
</template>

<script>
import Card from 'primevue/card';
import LastHeardTable from '@/components/LastHeardTable.vue';

export default {
components: {
Card,
LastHeardTable,
},
head: {
title: 'Last Heard',
},
created() {},
mounted() {},
unmounted() {},
data: function() {
return {};
},
methods: {},
computed: {},
};
</script>

<style scoped></style>
34 changes: 29 additions & 5 deletions internal/http/frontend/src/views/MainPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,49 @@
<template>
<div>
<Card>
<template #title>Last Heard</template>
<template #title>Welcome to DMRHub</template>
<template #content>
<LastHeardTable />
<h2>What is DMRHub?</h2>
<p>
DMRHub is an <a href="https://github.com/USA-RedDragon/DMRHub" target="_blank">open-source</a> DMR
network server compatible with MMDVM-like devices using the
<a href="https://wiki.brandmeister.network/index.php/Homebrew_repeater_protocol" target="_blank">
Homebrew repeater prococol</a>. The idea is to be an open source, easy to use alternative to existing
networks like BrandMeister and TGIF, but for use in local communication environments, such as over an
<a href="https://www.arednmesh.org/" target="_blank">AREDN mesh</a> network.
</p>
<br />
<h2>Special Talkgroups</h2>
<p>
DMRHub implements a Parrot on Talkgroup 9990 and unlink on Talkgroup 4000.
</p>
<br />
<h2>Useful Links</h2>
<ul>
<li>
<a href="https://github.com/USA-RedDragon/DMRHub/wiki/User's-Guide" target="_blank">DMRHub User's Guide</a>
</li>
<li>
<a href="https://github.com/USA-RedDragon/DMRHub/wiki" target="_blank">DMRHub Wiki</a>
</li>
<li>
<a href="https://github.com/USA-RedDragon/DMRHub/wiki/Admin's-Guide" target="_blank">DMRHub Admin's Guide</a>
</li>
</ul>
</template>
</Card>
</div>
</template>

<script>
import Card from 'primevue/card';
import LastHeardTable from '@/components/LastHeardTable.vue';

export default {
components: {
Card,
LastHeardTable,
},
head: {
title: 'Last Heard',
title: 'Home',
},
created() {},
mounted() {},
Expand Down

0 comments on commit 06455f0

Please sign in to comment.