Skip to content

Commit

Permalink
Changed project names (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
spietras authored Oct 19, 2024
1 parent 3158c39 commit 58a6d4e
Show file tree
Hide file tree
Showing 33 changed files with 142 additions and 142 deletions.
14 changes: 7 additions & 7 deletions .copier-answers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
_commit: 0.2.0
_src_path: gh:radio-aktywne/template-app-next
accountname: radio-aktywne
appname: weblounge
appname: jasmine
description: Broadcast prerecordings app 🛋️
docs: true
docsurl: https://radio-aktywne.github.io/weblounge
envprefix: WEBLOUNGE
imagename: apps/weblounge
keyprefix: weblounge
docsurl: https://radio-aktywne.github.io/jasmine
envprefix: JASMINE
imagename: apps/jasmine
keyprefix: jasmine
port: 39000
registry: true
releases: true
reponame: weblounge
repourl: https://github.com/radio-aktywne/weblounge
reponame: jasmine
repourl: https://github.com/radio-aktywne/jasmine
4 changes: 2 additions & 2 deletions .github/workflows/registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:
push: true
# Slashes are here to make the string multiline and avoid using spaces
tags: "\
ghcr.io/radio-aktywne/apps/weblounge\
ghcr.io/radio-aktywne/apps/jasmine\
:latest,\
ghcr.io/radio-aktywne/apps/weblounge\
ghcr.io/radio-aktywne/apps/jasmine\
:${{ github.event.release.tag_name }}"
# Cache Docker layers between builds
cache-from: type=gha,scope=${{ github.workflow }}
Expand Down
12 changes: 6 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ The whole development environment will be running inside a container.
If you open the project in `Visual Studio Code`,
you should be prompted to reopen the project in a `Dev Container`.
You can also click
[here](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/radio-aktywne/weblounge)
[here](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/radio-aktywne/jasmine)
or on the badge below to tell `Visual Studio Code`
to open the project in a `Dev Container`.

<div align="center">

[![Open in Dev Container](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/radio-aktywne/weblounge)
[![Open in Dev Container](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/radio-aktywne/jasmine)

</div>

Expand Down Expand Up @@ -100,7 +100,7 @@ Here are the most common ones, using `Task`:

Linting is automatically run on every pull request and push to the `main` branch.
You can find the `GitHub Actions` workflow that does this in
[`.github/workflows/lint.yaml`](https://github.com/radio-aktywne/weblounge/blob/main/.github/workflows/lint.yaml).
[`.github/workflows/lint.yaml`](https://github.com/radio-aktywne/jasmine/blob/main/.github/workflows/lint.yaml).

If you use the `Dev Container` setup,
you will have the `Trunk` extension installed in `Visual Studio Code`.
Expand Down Expand Up @@ -153,13 +153,13 @@ Every time you create a new release on `GitHub`,
a `GitHub Actions` workflow will automatically build and publish a new `Docker` image
to the `GitHub Container Registry`.
You can find the `GitHub Actions` workflow that does this in
[`.github/workflows/registry.yaml`](https://github.com/radio-aktywne/weblounge/blob/main/.github/workflows/registry.yaml).
[`.github/workflows/registry.yaml`](https://github.com/radio-aktywne/jasmine/blob/main/.github/workflows/registry.yaml).

## 📄 Docs

This project uses [`Docusaurus`](https://docusaurus.io) to generate documentation.
The documentation is hosted on `GitHub Pages` and can be found
[here](https://radio-aktywne.github.io/weblounge).
[here](https://radio-aktywne.github.io/jasmine).
All the documentation files are located in the `docs` directory.

To build and serve the documentation locally,
Expand All @@ -174,4 +174,4 @@ This will start a local server that will serve the documentation.
The documentation is automatically built and deployed to `GitHub Pages`
whenever a commit is pushed to the `main` branch.
You can find the `GitHub Actions` workflow that does this in
[`.github/workflows/docs.yaml`](https://github.com/radio-aktywne/weblounge/blob/main/.github/workflows/docs.yaml).
[`.github/workflows/docs.yaml`](https://github.com/radio-aktywne/jasmine/blob/main/.github/workflows/docs.yaml).
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
<h1 align="center">weblounge</h1>
<h1 align="center">jasmine</h1>

<div align="center">

Broadcast prerecordings app 🛋️

[![Lint](https://github.com/radio-aktywne/weblounge/actions/workflows/lint.yaml/badge.svg)](https://github.com/radio-aktywne/weblounge/actions/workflows/lint.yaml)
[![Image](https://github.com/radio-aktywne/weblounge/actions/workflows/image.yaml/badge.svg)](https://github.com/radio-aktywne/weblounge/actions/workflows/image.yaml)
[![Registry](https://github.com/radio-aktywne/weblounge/actions/workflows/registry.yaml/badge.svg)](https://github.com/radio-aktywne/weblounge/actions/workflows/registry.yaml)
[![Docs](https://github.com/radio-aktywne/weblounge/actions/workflows/docs.yaml/badge.svg)](https://github.com/radio-aktywne/weblounge/actions/workflows/docs.yaml)
[![Lint](https://github.com/radio-aktywne/jasmine/actions/workflows/lint.yaml/badge.svg)](https://github.com/radio-aktywne/jasmine/actions/workflows/lint.yaml)
[![Image](https://github.com/radio-aktywne/jasmine/actions/workflows/image.yaml/badge.svg)](https://github.com/radio-aktywne/jasmine/actions/workflows/image.yaml)
[![Registry](https://github.com/radio-aktywne/jasmine/actions/workflows/registry.yaml/badge.svg)](https://github.com/radio-aktywne/jasmine/actions/workflows/registry.yaml)
[![Docs](https://github.com/radio-aktywne/jasmine/actions/workflows/docs.yaml/badge.svg)](https://github.com/radio-aktywne/jasmine/actions/workflows/docs.yaml)

</div>

---

## 💡 About

`weblounge` is a web app for managing prerecorded broadcasts.
`jasmine` is a web app for managing prerecorded broadcasts.

## 📄 Further Reading

More in-depth documentation can be found
[here](https://radio-aktywne.github.io/weblounge).
[here](https://radio-aktywne.github.io/jasmine).

## 💻 Development

Read more about how to develop the project
[here](https://github.com/radio-aktywne/weblounge/blob/main/CONTRIBUTING.md).
[here](https://github.com/radio-aktywne/jasmine/blob/main/CONTRIBUTING.md).
22 changes: 11 additions & 11 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
services:
weblounge:
jasmine:
build:
context: ./
network: host
environment:
- "WEBLOUNGE__SERVER__HOST=${WEBLOUNGE__SERVER__HOST:-0.0.0.0}"
- "WEBLOUNGE__SERVER__PORT=${WEBLOUNGE__SERVER__PORT:-39000}"
- "WEBLOUNGE__EMILOUNGE__HTTP__SCHEME=${WEBLOUNGE__EMILOUNGE__HTTP__SCHEME:-http}"
- "WEBLOUNGE__EMILOUNGE__HTTP__HOST=${WEBLOUNGE__EMILOUNGE__HTTP__HOST:-localhost}"
- "WEBLOUNGE__EMILOUNGE__HTTP__PORT=${WEBLOUNGE__EMILOUNGE__HTTP__PORT:-28000}"
- "WEBLOUNGE__EMILOUNGE__HTTP__PATH=${WEBLOUNGE__EMILOUNGE__HTTP__PATH:-}"
- "WEBLOUNGE__EMISHOWS__HTTP__SCHEME=${WEBLOUNGE__EMISHOWS__HTTP__SCHEME:-http}"
- "WEBLOUNGE__EMISHOWS__HTTP__HOST=${WEBLOUNGE__EMISHOWS__HTTP__HOST:-localhost}"
- "WEBLOUNGE__EMISHOWS__HTTP__PORT=${WEBLOUNGE__EMISHOWS__HTTP__PORT:-35000}"
- "WEBLOUNGE__EMISHOWS__HTTP__PATH=${WEBLOUNGE__EMISHOWS__HTTP__PATH:-}"
- "JASMINE__SERVER__HOST=${JASMINE__SERVER__HOST:-0.0.0.0}"
- "JASMINE__SERVER__PORT=${JASMINE__SERVER__PORT:-39000}"
- "JASMINE__BEAVER__HTTP__SCHEME=${JASMINE__BEAVER__HTTP__SCHEME:-http}"
- "JASMINE__BEAVER__HTTP__HOST=${JASMINE__BEAVER__HTTP__HOST:-localhost}"
- "JASMINE__BEAVER__HTTP__PORT=${JASMINE__BEAVER__HTTP__PORT:-35000}"
- "JASMINE__BEAVER__HTTP__PATH=${JASMINE__BEAVER__HTTP__PATH:-}"
- "JASMINE__NUMBAT__HTTP__SCHEME=${JASMINE__NUMBAT__HTTP__SCHEME:-http}"
- "JASMINE__NUMBAT__HTTP__HOST=${JASMINE__NUMBAT__HTTP__HOST:-localhost}"
- "JASMINE__NUMBAT__HTTP__PORT=${JASMINE__NUMBAT__HTTP__PORT:-28000}"
- "JASMINE__NUMBAT__HTTP__PATH=${JASMINE__NUMBAT__HTTP__PATH:-}"
network_mode: host
4 changes: 2 additions & 2 deletions docs/docs/01-Index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ slug: /
title: Index
---

# weblounge
# jasmine

Broadcast prerecordings app 🛋️

## 💡 About

`weblounge` is a web app for managing prerecorded broadcasts.
`jasmine` is a web app for managing prerecorded broadcasts.
40 changes: 20 additions & 20 deletions docs/docs/03-Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,33 @@ title: Configuration

You can configure the app at runtime using various environment variables:

- `WEBLOUNGE__SERVER__HOST` -
- `JASMINE__SERVER__HOST` -
host to run the server on
(default: `0.0.0.0`)
- `WEBLOUNGE__SERVER__PORT` -
- `JASMINE__SERVER__PORT` -
port to run the server on
(default: `39000`)
- `WEBLOUNGE__EMILOUNGE__HTTP__SCHEME`
scheme of the HTTP API of the emilounge service
- `JASMINE__BEAVER__HTTP__SCHEME`
scheme of the HTTP API of the beaver service
(default: `http`)
- `WEBLOUNGE__EMILOUNGE__HTTP__HOST`
host of the HTTP API of the emilounge service
- `JASMINE__BEAVER__HTTP__HOST`
host of the HTTP API of the beaver service
(default: `localhost`)
- `WEBLOUNGE__EMILOUNGE__HTTP__PORT`
port of the HTTP API of the emilounge service
(default: `28000`)
- `WEBLOUNGE__EMILOUNGE__HTTP__PATH`
path of the HTTP API of the emilounge service
- `JASMINE__BEAVER__HTTP__PORT`
port of the HTTP API of the beaver service
(default: `35000`)
- `JASMINE__BEAVER__HTTP__PATH`
path of the HTTP API of the beaver service
(default: ``)
- `WEBLOUNGE__EMISHOWS__HTTP__SCHEME`
scheme of the HTTP API of the emishows service
- `JASMINE__NUMBAT__HTTP__SCHEME`
scheme of the HTTP API of the numbat service
(default: `http`)
- `WEBLOUNGE__EMISHOWS__HTTP__HOST`
host of the HTTP API of the emishows service
- `JASMINE__NUMBAT__HTTP__HOST`
host of the HTTP API of the numbat service
(default: `localhost`)
- `WEBLOUNGE__EMISHOWS__HTTP__PORT`
port of the HTTP API of the emishows service
(default: `35000`)
- `WEBLOUNGE__EMISHOWS__HTTP__PATH`
path of the HTTP API of the emishows service
- `JASMINE__NUMBAT__HTTP__PORT`
port of the HTTP API of the numbat service
(default: `28000`)
- `JASMINE__NUMBAT__HTTP__PATH`
path of the HTTP API of the numbat service
(default: ``)
10 changes: 5 additions & 5 deletions docs/docusaurus.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import type * as Preset from "@docusaurus/preset-classic";
import type { Config } from "@docusaurus/types";
import { themes } from "prism-react-renderer";

const url = new URL("https://radio-aktywne.github.io/weblounge");
const url = new URL("https://radio-aktywne.github.io/jasmine");

const config: Config = {
title: "weblounge docs",
title: "jasmine docs",
favicon: "favicon.svg?v=1",

url: `${url.protocol}//${url.host}`,
Expand Down Expand Up @@ -41,14 +41,14 @@ const config: Config = {

themeConfig: {
navbar: {
title: "weblounge docs",
title: "jasmine docs",
logo: {
alt: "weblounge docs logo",
alt: "jasmine docs logo",
src: "logo.svg?v=1",
},
items: [
{
href: "https://github.com/radio-aktywne/weblounge",
href: "https://github.com/radio-aktywne/jasmine",
position: "right",
className: "header-github-link",
"aria-label": "GitHub repository",
Expand Down
2 changes: 1 addition & 1 deletion openapi/emishows.yaml → openapi/beaver.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
info:
title: emishows app
title: beaver
openapi: 3.1.0
paths:
/events:
Expand Down
2 changes: 1 addition & 1 deletion openapi/emilounge.yaml → openapi/numbat.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
info:
title: emilounge app
title: numbat
openapi: 3.1.0
paths:
/ping:
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "weblounge",
"name": "jasmine",
"private": true,
"scripts": {
"dev": "next dev --hostname \"${WEBLOUNGE__SERVER__HOST:-0.0.0.0}\" --port \"${WEBLOUNGE__SERVER__PORT:-39000}\"",
"run": "next start --hostname \"${WEBLOUNGE__SERVER__HOST:-0.0.0.0}\" --port \"${WEBLOUNGE__SERVER__PORT:-39000}\"",
"dev": "next dev --hostname \"${JASMINE__SERVER__HOST:-0.0.0.0}\" --port \"${JASMINE__SERVER__PORT:-39000}\"",
"run": "next start --hostname \"${JASMINE__SERVER__HOST:-0.0.0.0}\" --port \"${JASMINE__SERVER__PORT:-39000}\"",
"build": "next build",
"clean": "rm --recursive --force build/",
"update": "ncu --peer --upgrade && npm i --no-audit --no-fund",
"generate-api-emilounge": "openapi-typescript openapi/emilounge.yaml -o src/api/emilounge/types.d.ts",
"generate-api-emishows": "openapi-typescript openapi/emishows.yaml -o src/api/emishows/types.d.ts",
"generate-api": "npm run -- generate-api-emilounge && npm run -- generate-api-emishows"
"generate-api-beaver": "openapi-typescript openapi/beaver.yaml -o src/api/beaver/types.d.ts",
"generate-api-numbat": "openapi-typescript openapi/numbat.yaml -o src/api/numbat/types.d.ts",
"generate-api": "npm run -- generate-api-beaver && npm run -- generate-api-numbat"
},
"dependencies": {
"@mantine/core": "^7.7.1",
Expand Down
4 changes: 2 additions & 2 deletions src/actions/deletePrerecording/action.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use server";

import { emilounge } from "../../api";
import { numbat } from "../../api";
import { DeletePrerecordingProps } from "./types";

const errorMessage = "Deleting prerecording failed.";
Expand All @@ -10,7 +10,7 @@ export async function deletePrerecording({
start,
}: DeletePrerecordingProps) {
try {
const { error, response } = await emilounge.DELETE(
const { error, response } = await numbat.DELETE(
"/prerecordings/{event}/{start}",
{
params: {
Expand Down
4 changes: 2 additions & 2 deletions src/actions/getEvent/action.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"use server";

import { emishows } from "../../api";
import { beaver } from "../../api";
import { GetEventData, GetEventProps } from "./types";

const errorMessage = "Getting event failed.";

export async function getEvent({ id, include }: GetEventProps) {
try {
const { data, error, response } = await emishows.GET("/events/{id}", {
const { data, error, response } = await beaver.GET("/events/{id}", {
params: {
path: { id },
query: { include },
Expand Down
2 changes: 1 addition & 1 deletion src/actions/getEvent/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { components } from "../../api/emishows";
import { components } from "../../api/beaver";

export type GetEventData = components["schemas"]["events_models_Event"];

Expand Down
4 changes: 2 additions & 2 deletions src/actions/listEvents/action.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use server";

import { emishows } from "../../api";
import { beaver } from "../../api";
import { ListEventsData, ListEventsProps } from "./types";

const errorMessage = "Listing events failed.";
Expand All @@ -14,7 +14,7 @@ export async function listEvents({
order,
}: ListEventsProps = {}) {
try {
const { data, error, response } = await emishows.GET("/events", {
const { data, error, response } = await beaver.GET("/events", {
params: {
query: { limit, offset, where, query, include, order },
},
Expand Down
2 changes: 1 addition & 1 deletion src/actions/listEvents/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { components } from "../../api/emishows";
import { components } from "../../api/beaver";

export type ListEventsData = components["schemas"]["EventList"];

Expand Down
4 changes: 2 additions & 2 deletions src/actions/listPrerecordings/action.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use server";

import { emilounge } from "../../api";
import { numbat } from "../../api";
import { ListPrerecordingsData, ListPrerecordingsProps } from "./types";

const errorMessage = "Listing prerecordings failed.";
Expand All @@ -14,7 +14,7 @@ export async function listPrerecordings({
order,
}: ListPrerecordingsProps) {
try {
const { data, error, response } = await emilounge.GET(
const { data, error, response } = await numbat.GET(
"/prerecordings/{event}",
{
params: {
Expand Down
2 changes: 1 addition & 1 deletion src/actions/listPrerecordings/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { components } from "../../api/emilounge";
import { components } from "../../api/numbat";

export type ListPrerecordingsData = components["schemas"]["PrerecordingList"];

Expand Down
4 changes: 2 additions & 2 deletions src/actions/listSchedules/action.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use server";

import { emishows } from "../../api";
import { beaver } from "../../api";
import { ListSchedulesData, ListSchedulesProps } from "./types";

const errorMessage = "Listing schedules failed.";
Expand All @@ -15,7 +15,7 @@ export async function listSchedules({
order,
}: ListSchedulesProps = {}) {
try {
const { data, error, response } = await emishows.GET("/schedule", {
const { data, error, response } = await beaver.GET("/schedule", {
params: {
query: { start, end, limit, offset, where, include, order },
},
Expand Down
Loading

0 comments on commit 58a6d4e

Please sign in to comment.