Skip to content
This repository was archived by the owner on Sep 21, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
14 changes: 13 additions & 1 deletion .ember-cli
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,17 @@
Setting `isTypeScriptProject` to true will force the blueprint generators to generate TypeScript
rather than JavaScript by default, when a TypeScript version of a given blueprint is available.
*/
"isTypeScriptProject": false
"isTypeScriptProject": false,

/**
Setting `componentAuthoringFormat` to "strict" will force the blueprint generators to generate GJS
or GTS files for the component and the component rendering test. "loose" is the default.
*/
"componentAuthoringFormat": "strict",

/**
Setting `routeAuthoringFormat` to "strict" will force the blueprint generators to generate GJS
or GTS templates for routes. "loose" is the default
*/
"routeAuthoringFormat": "strict"
}
18 changes: 12 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ jobs:
timeout-minutes: 10

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 18.x
version: 9
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 22
cache: pnpm
- name: Install Dependencies
run: pnpm install --frozen-lockfile
Expand All @@ -35,11 +38,14 @@ jobs:
timeout-minutes: 10

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 18.x
version: 9
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 22
cache: pnpm
- name: Install Dependencies
run: pnpm install --frozen-lockfile
Expand Down
9 changes: 2 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/tmp/

# compiled output
/dist/
/declarations/
Expand All @@ -14,12 +16,5 @@
/testem.log
/yarn-error.log

# ember-try
/.node_modules.ember-try/
/npm-shrinkwrap.json.ember-try
/package.json.ember-try
/package-lock.json.ember-try
/yarn.lock.ember-try

# broccoli-debug
/DEBUG/
9 changes: 6 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
# unconventional js
/blueprints/*/files/

# vendored bootstrap CSS
/public/vendor/bootstrap.css

# compiled output
/dist/

# misc
/coverage/
!.*
.*/

# ember-try
/.node_modules.ember-try/
/pnpm-lock.yaml
ember-cli-update.json
*.html
3 changes: 2 additions & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ module.exports = {
plugins: ['prettier-plugin-ember-template-tag'],
overrides: [
{
files: '*.{js,ts,gjs,gts}',
files: '*.{js,gjs,ts,gts,mjs,mts,cjs,cts}',
options: {
singleQuote: true,
templateSingleQuote: false,
},
},
// ...
Expand Down
9 changes: 3 additions & 6 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# unconventional files
/blueprints/*/files/

# vendored bootstrap CSS
/public/vendor/bootstrap.css

# compiled output
/dist/

# addons
/.node_modules.ember-try/

# vendor
public/vendor/*
2 changes: 1 addition & 1 deletion .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

module.exports = {
extends: ['stylelint-config-standard', 'stylelint-prettier/recommended'],
extends: ['stylelint-config-standard'],
rules: {
'custom-property-pattern': null,
'block-no-empty': null,
Expand Down
13 changes: 10 additions & 3 deletions app/app.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
import Application from '@ember/application';
import Resolver from 'ember-resolver';
import loadInitializers from 'ember-load-initializers';
import config from 'netrunnerdb/config/environment';
import config from "./config/environment";
import './font-awesome'; // Add this import statement for Font Awesome setup
import { importSync, isDevelopingApp, macroCondition } from '@embroider/macros';

import compatModules from "@embroider/virtual/compat-modules";

if (macroCondition(isDevelopingApp())) {
importSync('./deprecation-workflow');
}

export default class App extends Application {
modulePrefix = config.modulePrefix;
podModulePrefix = config.podModulePrefix;
Resolver = Resolver;
Resolver = Resolver.withModules(compatModules);
}

loadInitializers(App, config.modulePrefix);
loadInitializers(App, config.modulePrefix, compatModules);
2 changes: 1 addition & 1 deletion app/components/banlist/banned.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default class Banned extends Component {

{{#each this.bannedCards as |card|}}
<li>
<CardLinkTo @printing={{card}} class='text-truncate'>
<CardLinkTo @printing={{card}} class="text-truncate">
{{card.title}}
</CardLinkTo>
</li>
Expand Down
4 changes: 2 additions & 2 deletions app/components/banlist/points.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ export default class Points extends Component {
<li>
<strong>
{{formatMessage
'{amount, plural, one {# Point} other {# Points} }'
"{amount, plural, one {# Point} other {# Points} }"
amount=points
}}
</strong>
<ul>
{{#each cards as |card|}}
<li>
<CardLinkTo @printing={{card}} class='text-truncate'>
<CardLinkTo @printing={{card}} class="text-truncate">
{{card.title}}
</CardLinkTo>
</li>
Expand Down
18 changes: 9 additions & 9 deletions app/components/banlist/side.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default class Side extends Component {
}

<template>
<div class='col-6'>
<div class="col-6">
<h3 style={{capitalize}}>{{@side}} Cards</h3>

{{#if this.hasBanned}}
Expand All @@ -37,9 +37,9 @@ export default class Side extends Component {
<li>
<strong>Restricted</strong>
<ul>
{{#each (get @restriction @side 'restricted') as |restricted|}}
{{#each (get @restriction @side "restricted") as |restricted|}}
<li>
<CardLinkTo @printing={{restricted}} class='text-truncate'>
<CardLinkTo @printing={{restricted}} class="text-truncate">
{{restricted.title}}
</CardLinkTo>
</li>
Expand All @@ -55,13 +55,13 @@ export default class Side extends Component {
<strong>Global Penalty</strong>
<ul>
{{#each
(get (get @restriction @side) 'global_penalty')
(get (get @restriction @side) "global_penalty")
as |global_penalty|
}}
<li>
<CardLinkTo
@printing={{global_penalty}}
class='text-truncate'
class="text-truncate"
>
{{global_penalty.title}}
</CardLinkTo>
Expand All @@ -87,7 +87,7 @@ export default class Side extends Component {
<strong>Universal Influence</strong>
<ul>
{{#let
(get (get @restriction @side) 'threeUniversalInfluence')
(get (get @restriction @side) "threeUniversalInfluence")
as |threeInf|
}}
{{#if threeInf.length}}
Expand All @@ -96,7 +96,7 @@ export default class Side extends Component {
<ul>
{{#each threeInf as |card|}}
<li>
<CardLinkTo @printing={{card}} class='text-truncate'>
<CardLinkTo @printing={{card}} class="text-truncate">
{{card.title}}
</CardLinkTo>
</li>
Expand All @@ -106,7 +106,7 @@ export default class Side extends Component {
{{/if}}
{{/let}}
{{#let
(get (get @restriction @side) 'oneUniversalInfluence')
(get (get @restriction @side) "oneUniversalInfluence")
as |oneInf|
}}
{{#if oneInf.length}}
Expand All @@ -115,7 +115,7 @@ export default class Side extends Component {
<ul>
{{#each oneInf as |card|}}
<li>
<CardLinkTo @printing={{card}} class='text-truncate'>
<CardLinkTo @printing={{card}} class="text-truncate">
{{card.title}}
</CardLinkTo>
</li>
Expand Down
24 changes: 12 additions & 12 deletions app/components/box-link.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,27 @@ export default class CardListsComponent extends Component {

<template>
<LinkTo
@route='set'
@model='rebellion_without_rehearsal'
class='box-link latest-set'
@route="set"
@model="rebellion_without_rehearsal"
class="box-link latest-set"
>
<div class='row'>
<div class='col-2 col-lg-4'>
<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%;'
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="col-10 col-lg-8 position-relative">
<div
class='position-absolute w-75'
style='top:50%; transform:translateY(-50%)'
class="position-absolute w-75"
style="top:50%; transform:translateY(-50%)"
>
<div>
Latest set:
</div>
<div class='fst-italic'>
<div class="fst-italic">
Rebellion without Rehearsal
</div>
</div>
Expand Down
Loading
Loading