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

Finish distributive's work #131

Merged
merged 33 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
5266966
Added Icon helper for faction/set icons
distributive Jul 1, 2023
38f400b
First pass at new homepage design (lots of css and assets have been s…
distributive Jan 20, 2024
4a292c7
Updated svgs
distributive Mar 8, 2024
cba22e2
Fine tuned homepage
distributive Mar 8, 2024
6d74d95
Added lib bird
distributive Mar 8, 2024
b5a6016
Autogen stuff
distributive Mar 8, 2024
0e320cc
A bunch of work
distributive May 10, 2024
516e1e5
More things
distributive May 11, 2024
bc282c7
More stuff
distributive Jun 19, 2024
c456bab
integrate small-influence-pips component into influence-pips
locks Oct 27, 2024
94b54e0
remove unnecessary code
locks Oct 27, 2024
2c5bc07
update dependencies
locks Oct 27, 2024
78656ed
rename cardCounts to current cardSlots attribute
locks Oct 27, 2024
a268fd6
make influence-pips not have extra empty space
locks Oct 27, 2024
14db075
rename function to avoid init warning and remove unnecessary .then
locks Oct 27, 2024
6d991d7
Use factionId from decklist instead of loading another card.
plural Oct 31, 2024
6fc0fa7
add type to buttons
locks Oct 27, 2024
849ea76
pass decklist into loader function
locks Oct 27, 2024
ad9c295
remove boilerplate tests
locks Nov 1, 2024
5c3d8c3
move hyphenate to utils
locks Nov 1, 2024
48a45ec
remove outdated test
locks Nov 3, 2024
1da83a7
put decklist name in the page title like current NRDB
locks Nov 3, 2024
89683c2
make full-display test pass
locks Nov 3, 2024
d8ce44b
code tidying
locks Nov 3, 2024
4c4fd19
remove unused file
locks Nov 3, 2024
84a8ba8
address lints
locks Nov 3, 2024
bb0dc0e
remove unused property and add alt to image
locks Nov 4, 2024
dd1f88d
address lint
locks Nov 4, 2024
c48489d
fix hyphenate imports
locks Nov 4, 2024
e7867a8
address template lints
locks Nov 5, 2024
0730c04
extract writeup component from decklist
locks Nov 5, 2024
f098a72
make no-inline-styles a warning
locks Nov 5, 2024
02fa213
address style lints
locks Nov 5, 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
4 changes: 4 additions & 0 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@

module.exports = {
extends: ['stylelint-config-standard', 'stylelint-prettier/recommended'],
rules: {
'custom-property-pattern': null,
'block-no-empty': null,
},
};
4 changes: 4 additions & 0 deletions .template-lintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@

module.exports = {
extends: 'recommended',

rules: {
'no-inline-styles': 'warn',
},
};
46 changes: 46 additions & 0 deletions app/components/box-link.gjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { LinkTo } from '@ember/routing';
import { service } from '@ember/service';

export default class CardListsComponent extends Component {
@service store;
@tracked latestSet;

constructor(...args) {
super(...args);

this.latestSet = this.store.query('cardSet', {});
}

<template>
<LinkTo
@route='set'
@model='rebellion_without_rehearsal'
class='box-link latest-set'
>
<div class='row'>
<div class='col-2 col-lg-4'>
<img
src='/assets/image/set/liberation.png'
alt='Liberation cycle icon'
style='width:100%; opacity:50%;'
/>
</div>
<div class='col-10 col-lg-8 position-relative'>
<div
class='position-absolute w-75'
style='top:50%; transform:translateY(-50%)'
>
<div>
Latest set:
</div>
<div class='fst-italic'>
Rebellion without Rehearsal
</div>
</div>
</div>
</div>
</LinkTo>
</template>
}
30 changes: 18 additions & 12 deletions app/components/card-lists.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export default class CardListsComponent extends Component {
}

<template>
{{@foo}}
<div class='card flex-grow-1' id='nav-main-content'>
<div class='card-header'>
<ul class='nav nav-tabs nav-fill card-header-tabs'>
Expand Down Expand Up @@ -96,12 +95,14 @@ export default class CardListsComponent extends Component {
<tbody>
{{#each (sortBy 'id:asc' @printings) as |printing|}}
<tr>
<td><Icon @icon={{printing.cardCycleId}} />{{printing.cardSet.name}}
<td><Icon
@icon={{printing.cardCycleId}}
/>{{printing.cardSet.name}}
{{printing.position}}</td>
<td>
<CardLinkTo
@printing={{printing}}
>{{#if printing.isUnique }}♦ {{/if}}{{printing.title}}</CardLinkTo>
<CardLinkTo @printing={{printing}}>{{#if
printing.isUnique
}}♦ {{/if}}{{printing.title}}</CardLinkTo>
</td>
<td><Icon @icon='{{printing.factionId}}' /><InfluencePips
@printing={{printing}}
Expand Down Expand Up @@ -136,8 +137,12 @@ export default class CardListsComponent extends Component {
{{#each this.printingsTableForImages as |row|}}
<div class='row'>
{{#each row as |p|}}
<div class='col-xl-3 col-lg-3 col-md-6 card-art-container px-2 pb-3'>
<CardLinkTo @printing={{ p }}><Image src={{p.images.nrdb_classic.large}} /></CardLinkTo>
<div
class='col-xl-3 col-lg-3 col-md-6 card-art-container px-2 pb-3'
>
<CardLinkTo @printing={{p}}><Image
src={{p.images.nrdb_classic.large}}
/></CardLinkTo>
</div>
{{/each}}
</div>
Expand All @@ -148,13 +153,14 @@ export default class CardListsComponent extends Component {
{{#each this.printingsTableForTextOnly as |row|}}
<div class='row'>
{{#each row as |p|}}
<div class="card col-4 px-md-0">
<div class="card-header">
<div class="card-title">
<CardLinkTo @printing={{p}}>{{#if p.isUnique }}♦ {{/if}}{{p.title}}</CardLinkTo>
<div class='card col-4 px-md-0'>
<div class='card-header'>
<div class='card-title'>
<CardLinkTo @printing={{p}}>{{#if p.isUnique}}♦
{{/if}}{{p.title}}</CardLinkTo>
</div>
</div>
<div class="card-body">
<div class='card-body'>
<CardTextBox
@cardSet={{@p.cardSet}}
@cardType={{@p.cardType}}
Expand Down
Loading
Loading