Skip to content

Commit

Permalink
chore: quality of life improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlauer-Hax committed Apr 15, 2023
1 parent 62aa124 commit 485d626
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 15 deletions.
15 changes: 7 additions & 8 deletions data/language.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
[
"English",
"Portuguese",
"English",
"French",
"German",
"Italian",
"Russian",
"Spanish"
"EN",
"PT",
"FR",
"DE",
"IT",
"RU",
"ES"
]
10 changes: 5 additions & 5 deletions data/secondary.json
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,8 @@
"Synthwave",
"Tech House",
"Techno",
"Techno (Peak Time / Driving",
"Techno (Raw / Deep / Hypnotic",
"Techno (Peak Time / Driving)",
"Techno (Raw / Deep / Hypnotic)",
"Trance",
"Tribal House",
"Trip Hop",
Expand Down Expand Up @@ -526,8 +526,8 @@
"Free Jazz",
"General",
"Jazz",
"Jazz (Contemporary",
"Jazz (Traditional",
"Jazz (Contemporary)",
"Jazz (Traditional)",
"Jazz Fusion",
"Latin Jazz",
"Live Recordings",
Expand Down Expand Up @@ -601,7 +601,7 @@
"Instrumental",
"Musique Francophone",
"Pop",
"Pop (Singer / Songwriter",
"Pop (Singer / Songwriter)",
"Under World",
"Vocal"
],
Expand Down
4 changes: 2 additions & 2 deletions pages/manager/music.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { loadingWheel, Horizontal, PlainText, Spacer, Vertical, View, WebGen, Cu
import '../../assets/css/main.css';
import '../../assets/css/music.css';
import { DynaNavigation } from "../../components/nav.ts";
import { IsLoggedIn, ProfileData, Redirect, RegisterAuthRefresh, renewAccessTokenIfNeeded, showPreviewImage } from "./helper.ts";
import { ProfileData, Redirect, RegisterAuthRefresh, activeUser, renewAccessTokenIfNeeded, showPreviewImage } from "./helper.ts";
import { API } from "./RESTSpec.ts";
import { loadDrops } from "./helper.ts";
import { ViewState } from "./types.ts";
Expand All @@ -20,7 +20,7 @@ Redirect();
await RegisterAuthRefresh();

const view: ViewClass<ViewState> = View<ViewState>(({ state, update }) => Vertical(
ActionBar(`Hi ${IsLoggedIn()?.profile.username}! 👋`, [
ActionBar(`Hi ${activeUser.username}! 👋`, [
{
title: `Published ${getListCount([ DropType.Published ], state)}`,
selected: state.type == DropType.Published,
Expand Down
1 change: 1 addition & 0 deletions pages/manager/music/changeDrop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export function ChangeDrop(drop: Drop, update: (data: Partial<EditViewState>) =>
TextInput("text", "Title").sync(data, "title")
],
TextInput("date", "Release Date").sync(data, "release"),
// TODO: Show user spelled out language
DropDownInput("Language", language)
.sync(data, "language"),
[
Expand Down
1 change: 1 addition & 0 deletions pages/manager/newDrop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ const wizard = (restore?: Drop) => Wizard({
TextInput("text", "Title").sync(state, "title"),
Grid(
TextInput("date", "Release Date", "live").sync(state, "release"),
// TODO: Show user spelled out language
DropDownInput("Language", language)
.sync(state, "language")
)
Expand Down

0 comments on commit 485d626

Please sign in to comment.