Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map info page #906

Merged
merged 56 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
1cbdcc5
feat(utils): mapHttpError rxjs operator
tsa96 Jan 18, 2024
2635c00
build(deps): remove ng-gallery component
tsa96 Feb 8, 2024
4c6a071
chore(front): update nx generator options for angular components
tsa96 Feb 8, 2024
b1b6e06
refactor(front): replace PrimeNG tab component with custom thing
tsa96 Jan 1, 2024
b2341cc
refactor(front): rename SortedMapCredits to GroupedMapCredits and mov…
tsa96 Feb 8, 2024
bd3fdcb
feat(front): grouped map leaderboard and suggestions util classes
tsa96 Feb 8, 2024
a84ad4f
refactor(front): use GroupedMapLeaderboards in MapListItem
tsa96 Feb 8, 2024
a2e26e9
fix(front): default values in GroupedMapCredits fields
tsa96 Feb 8, 2024
4d5bb03
refactor(front): support passing initial values to GroupedMapCredits …
tsa96 Feb 8, 2024
958e299
feat(front): RangePipe
tsa96 Jan 4, 2024
e220626
refactor(front): fix types on unsortedKeyvalue pipe
tsa96 Jan 4, 2024
1a2f48a
chore(front): remove run-info page
tsa96 Jan 23, 2024
68955f2
feat(front): use shared color vars in tailwind config
tsa96 Jan 11, 2024
f9c432d
chore(front): remove nonexistent vendorChunks property from frontend …
tsa96 Jan 17, 2024
1e9cd63
refactor(front): fix types on unsortedKeyvalue pipe AGAIN
tsa96 Jan 22, 2024
4bb845e
refactor(front): m-card styling and separate header
tsa96 Feb 8, 2024
88e411b
chore(front): move role-badges component directory from roles to role…
tsa96 Feb 3, 2024
c4a9fd5
style(front): remove newlines between function overloads in HttpService
tsa96 Feb 3, 2024
0f0f34c
feat(front): add primeng confirmdialog module
tsa96 Feb 3, 2024
bceaba1
refactor(front): rework outer layout so scrollbar is contained to mai…
tsa96 Feb 7, 2024
f595ecc
refactor(front): simplify styling of m-avatar
tsa96 Feb 8, 2024
1cb2b38
chore(front): remove deleted endpoints from LeaderboardsService
tsa96 Feb 8, 2024
014d1a3
refactor(front): general styling improvements
tsa96 Feb 8, 2024
584fecf
feat(front): paste from clipboard in file upload component, restyling
tsa96 Feb 8, 2024
c3f6609
fix(front): filter out empty string comments in MapLeaderboardSelection
tsa96 Feb 8, 2024
f7a567f
refactor(front): pull some tooltips out to dedicated components
tsa96 Feb 8, 2024
236e236
feat(front): m-user component
tsa96 Feb 8, 2024
3affaf1
chore(front): delete old map info/leaderboards stuff
tsa96 Feb 8, 2024
3de0be0
refactor(front): rework map-info and map-leaderboard pages
tsa96 Feb 8, 2024
aa2052a
feat(front): custom background switcher system
tsa96 Feb 8, 2024
814e227
feat(front): map submission map info sub-page
tsa96 Feb 8, 2024
3ca0a64
feat(front): map review components
tsa96 Feb 8, 2024
f9771b7
fix(back): don't allow setting needsResolving on an already resolved …
tsa96 Feb 9, 2024
bef980e
feat(front): add gamemode icons back
tsa96 Feb 8, 2024
f8383ce
refactor(front): beefier image validation in map sub form
tsa96 Feb 8, 2024
4e5782f
feat(front): dedicated file for PrimeNG styling tweaks
tsa96 Feb 8, 2024
bac7a93
feat(front): better textinput styling
tsa96 Feb 8, 2024
72208d5
feat(front): tailwind util classes
tsa96 Feb 8, 2024
a18a65b
refactor(front): new button and hyperlink styling
tsa96 Feb 8, 2024
7aac2bb
feat(tools): generate reviews in seed script
tsa96 Feb 8, 2024
57b56f5
refactor(tools): misc seed script fixes/improvements
tsa96 Feb 8, 2024
de22513
refactor(tools): don't support s3 script without minio stuff
tsa96 Feb 8, 2024
e11cf1c
refactor(tools): dont reset db by default in seed script
tsa96 Feb 8, 2024
9d58b7a
fix(tools): ignore some harmless errors in db seed script
tsa96 Feb 8, 2024
da9b08d
feat(front): split prefix from map name on map info page for fancy st…
tsa96 Feb 8, 2024
543948b
ci(meta): make lint job pull submods
tsa96 Feb 8, 2024
a833df2
refactor(front): hide review form on map info page if submitter
tsa96 Feb 8, 2024
42b642f
refactor(front): restyle map sub form for new styling system
tsa96 Jan 20, 2024
83fcea4
chore(front): bump styling submodule
tsa96 Feb 8, 2024
9a9cbe8
chore(front): remove map preview crap from submission form
tsa96 Feb 9, 2024
b84448d
feat(front): m-alert component
tsa96 Feb 9, 2024
4ecdd54
refactor(back): min length validator on placeholder suggestions
tsa96 Feb 9, 2024
5e28035
refactor(front): simplify sidenav width switcher
tsa96 Feb 9, 2024
02f7b1e
refactor(front): increase opacity of tailwind shadows
tsa96 Feb 9, 2024
e959199
fix(front): show add button instantly upon enter valid name into map …
tsa96 Feb 9, 2024
f1293b2
feat(front): change main background based on map submission form input
tsa96 Feb 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions apps/frontend/src/app/components/card/card-body.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Component, HostBinding } from '@angular/core';

@Component({
selector: 'm-card-body',
standalone: true,
styles: [':host {display: block;}'],
template: '<ng-content></ng-content>'
})
export class CardBodyComponent {
@HostBinding('class') class = 'm-card';
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { NgClass } from '@angular/common';
<div class="flex items-end gap-2 mb-2" [ngClass]="{ 'items-end': !!title }">
@if (title) {
<p
class="flex-grow font-display font-bold opacity-80 leading-none ml-2"
class="flex-grow m-card-title"
[style]="'font-size: ' + titleSize + 'rem;'"
>
{{ title }}
Expand Down
7 changes: 4 additions & 3 deletions apps/frontend/src/app/components/card/card.component.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
import { Component, Input } from '@angular/core';
import { NgClass } from '@angular/common';
import { CardHeaderComponent } from './card-header.component';
import { CardBodyComponent } from './card-body.component';

@Component({
selector: 'm-card',
standalone: true,
imports: [CardHeaderComponent, NgClass],
imports: [CardHeaderComponent, NgClass, CardBodyComponent],
template: `
<m-card-header [title]="title" [titleSize]="titleSize">
<ng-content select="[header]"></ng-content>
</m-card-header>
<div class="m-card" [ngClass]="cardClass">
<m-card-body [ngClass]="cardClass">
<ng-content></ng-content>
</div>
</m-card-body>
`
})
export class CardComponent {
Expand Down
1 change: 1 addition & 0 deletions apps/frontend/src/app/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export * from './activity/activity.component';
export * from './avatar/avatar.component';
export * from './card/card-header.component';
export * from './card/card.component';
export * from './card/card-body.component';
export * from './confirm-dialog/confirm-dialog.component';
export * from './delete-user-dialog/delete-user-dialog.component';
export * from './file-upload/abstract-file-upload.component';
Expand Down
35 changes: 31 additions & 4 deletions apps/frontend/src/app/theme/styles.css
GordiNoki marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,37 @@
.m-card {
border-radius: 0.25rem;
padding: 1rem;
background-color: rgb(20, 20, 20, 0.75);
border: 1px solid #252525;
box-shadow: 4px 4px 24px rgb(0, 0, 0, 0.5);
backdrop-filter: blur(4px);
border: 1px solid rgb(255 255 255 / 0.05);
box-shadow: 1px 2px 16px rgb(0 0 0 / 0.4);
backdrop-filter: none;

background-color: rgb(var(--gray-600) / 0.8);
}

.m-card--fancy {
background-color: rgb(255 255 255 / 0.05);
backdrop-filter: blur(48px) brightness(0.9);
}

.m-card-title {
@apply font-display;
font-weight: 700;
opacity: 0.875;
line-height: 1;
filter: drop-shadow(1px 2px 4px rgb(0 0 0 / 0.3))
drop-shadow(3px 6px 16px rgb(0 0 0 / 0.4));
}

.m-card-inset {
padding: 0.75rem;
border-radius: 0.25rem;
background-color: rgba(0 0 0 / 0.15);
box-shadow: inset 0 0 0.75rem rgb(0 0 0 / 0.1);
border: 1px solid rgba(255 255 255 / 0.1);

&:is(fieldset) {
padding: 0.25rem 1rem 0.75rem 1rem;
}
}

.m-btn {
Expand Down